arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.23277cs.AI
收藏

GIF: 局部几何信息流控制用于大语言模型

GIF: Locally Sound Geometric Information Flow Control for LLMs

Columbia University(哥伦比亚大学)

Adam Storek, Nikolaus Holzer, Zhuo Zhang, Suman Jana

AI总结:

提出GIF框架,利用LLM雅可比矩阵和局部输出几何上界香农互信息,实现可扩展的信息流追踪,在提示注入和隐私泄露任务中达到近完美召回,且计算成本低。

摘要:

大语言模型越来越多地中介代理系统中敏感数据、不可信输入和特权操作之间的交互,带来安全和隐私风险。这些风险包括操纵下游工具使用的提示注入,以及通过模型输出泄露机密信息。最近基于信息流控制(IFC)的防御方法显示出前景,但缺乏用于推理通过模型本身的信息流的原则性语义基础。由于在自回归LLM中任何输入标记都可能影响任何输出标记,现有方法遭受严重的污点爆炸。我们提出几何信息流(GIF),一个用于追踪从输入标记到输出的信息流的语义框架。GIF使用LLM雅可比矩阵和局部输出几何来上界扰动输入跨度与模型输出之间的香农互信息,产生一个可通过自动微分和低秩近似在大模型上计算的可扩展度量。与基于注意力或相关性归因的启发式方法不同,GIF满足局部几何合理性,并且我们提供了一个完全机械化的Lean 4证明,证明在局部正则性假设下它上界由给定提示引起的真实信息流。我们在多个提示注入和隐私泄露基准上评估了GIF在完整性和机密性任务上的表现。即使没有下游解分类器,GIF也实现了近乎完美的召回,优于基于注意力的基线。结合轻量级基于LLM的解分类器,它匹配或超过了直接LLM作为判断基线的F1分数(如GPT-5.5高推理),同时使用高达81倍更低的标记成本。使用小型替代模型检测到的GIF流可迁移到更大的最先进模型和其他模型家族,即使替代模型小200倍,这表明无需梯度访问的黑盒部署。

英文摘要:

Large language models increasingly mediate interactions between sensitive data, untrusted inputs, and privileged actions in agentic systems, creating security and privacy risks. These range from prompt injections that manipulate downstream tool use to leakage of confidential information through model outputs. Recent Information Flow Control (IFC)-based defenses show promise but lack a principled semantic foundation for reasoning about information flow through the model itself. Since any input token may influence any output token in an autoregressive LLM, existing approaches suffer from severe taint explosion. We present Geometric Information Flow (GIF), a semantic framework for tracking information flow from input tokens to outputs. GIF uses the LLM Jacobian and local output geometry to upper-bound the Shannon mutual information between perturbed input spans and model outputs, yielding a scalable measure computable on large models via automatic differentiation and low-rank approximation. Unlike attention-based or correlational attribution heuristics, GIF satisfies local geometric soundness, and we provide a fully mechanized Lean 4 proof that it upper-bounds the true information flow induced by a given prompt under local regularity assumptions. We evaluate GIF on integrity and confidentiality tasks across multiple prompt-injection and privacy-leakage benchmarks. GIF achieves near-perfect recall even without a downstream declassifier, outperforming attention-based baselines. Combined with lightweight LLM-based declassifiers, it matches or exceeds the F1 of direct LLM-as-judge baselines such as GPT-5.5 xhigh reasoning while using up to 81x lower token cost. GIF flows detected with small surrogate models transfer to larger state-of-the-art models and other model families, even when the surrogate is up to 200x smaller, suggesting black-box deployment without gradient access.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑