Lumos首次提供语言模型系统行为的形式化认证框架,可检测自动驾驶中视觉语言模型的安全缺陷。
Lumos: Let there be Language Model System Certification
- 基于图结构的指令生成语言,支持对语言模型系统行为进行形式化建模。
- 在雨天右转场景下发现主流视觉语言模型安全失败概率超90%。
- 模块化设计便于快速适应新威胁,适合安全评估与合规验证场景。
我们提出首个系统性框架Lumos,用于指定并形式化认证语言模型系统(LMS)的行为。Lumos是一种基于图的确定性概率编程语言,支持生成独立同分布的提示(prompt)。它通过图结构提供提示分布的结构性视图,从采样子图生成随机提示,并通过集成统计验证器支持任意提示分布下的LMS认证。我们为Lumos提供了混合语义(操作语义与指称语义),实现规范的严格解释。仅用少量可组合构造,Lumos即可编码现有复杂关系与时间特性规范,还首次实现了自动驾驶场景中视觉语言模型(VLM)的安全规范。基于此,我们发现当前最先进的VLM Qwen-VL在雨天右转条件下产生错误且不安全响应的概率不低于90%,揭示显著安全风险。其模块化结构支持快速更新规范,以应对不断演化的威胁。我们进一步集成提示级确定性验证器,获得对大模型生成分布隐私性的保证。实验表明,先进大模型可在零样本设置下自动生成正确的Lumos规范,证明其易用性。Lumos是首个系统化、可扩展的语言级框架,推动了语言模型系统认证的广泛应用。
原文摘要 · Abstract (English)
We introduce the first principled framework, Lumos, for specifying and formally certifying Language Model System (LMS) behaviors. Lumos is an imperative probabilistic programming DSL over graphs, with constructs to generate independent and identically distributed prompts for LMS. It offers a structured view of prompt distributions via graphs, forming random prompts from sampled subgraphs. Lumos supports certifying LMS for arbitrary prompt distributions via integration with statistical certifiers. We provide hybrid (operational and denotational) semantics for Lumos, providing a rigorous way to interpret the specifications. Using only a small set of composable constructs, Lumos can encode existing LMS specifications, including complex relational and temporal specifications. It also facilitates specifying new properties - we present the first safety specifications for vision-language models (VLMs) in autonomous driving scenarios developed with Lumos. Using these, we show that the state-of-the-art VLM Qwen-VL exhibits critical safety failures, producing incorrect and unsafe responses with at least 90% probability in right-turn scenarios under rainy driving conditions, revealing substantial safety risks. Lumos's modular structure allows easy modification of the specifications, enabling LMS certification to stay abreast with the rapidly evolving threat landscape. We further integrate a prompt-level deterministic verifier to obtain guarantees over the privacy of the LLM generation distribution over a prompt distribution. Lumos is simple to program in, requiring only a few constructs, as evidenced by state-of-the-art large language models generating correct Lumos specifications in zero-shot settings. Lumos is the first systematic and extensible language-based framework for specifying and certifying LMS behaviors, paving the way for a wider adoption of LMS certification.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。