arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.03001cs.AI
收藏

侵入式上下文工程以控制大语言模型

Invasive Context Engineering to Control Large Language Models

McGill University(麦吉尔大学)

Thomas Rivasseau

AI总结:

本文提出侵入式上下文工程方法,通过在LLM上下文中插入控制句子以提升其安全性,避免长上下文场景下的数据短缺问题。

摘要:

当前对大语言模型操作控制的研究通过在训练中使用偏好示例、提示和输入/输出过滤来提高模型对对抗攻击和不良行为的鲁棒性。尽管取得了良好效果,但LLM仍易受滥用,且随着上下文长度增加,越狱概率也随之增加。在长上下文情况下,对LLM安全性的需求愈发迫切。我们提出将控制句子插入LLM上下文中作为侵入式上下文工程,以部分解决该问题。我们建议该技术可推广至思维链过程以防止欺骗。侵入式上下文工程不依赖于LLM训练,避免了在长上下文情况下训练模型时出现的数据短缺问题。

英文摘要:

Current research on operator control of Large Language Models improves model robustness against adversarial attacks and misbehavior by training on preference examples, prompting, and input/output filtering. Despite good results, LLMs remain susceptible to abuse, and jailbreak probability increases with context length. There is a need for robust LLM security guarantees in long-context situations. We propose control sentences inserted into the LLM context as invasive context engineering to partially solve the problem. We suggest this technique can be generalized to the Chain-of-Thought process to prevent scheming. Invasive Context Engineering does not rely on LLM training, avoiding data shortage pitfalls which arise in training models for long context situations.

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

↑