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

模糊测试大型语言模型以揭示隐藏行为

Fuzzing Large Language Models to Elicit Hidden Behaviours

School of Computing and Information Science(计算与信息科学学院)

Mohammed Abu Baker, Lakshmi Babu-Saheer

AI总结:

研究通过向模型权重或残差流注入高斯噪声的模糊测试方法,揭示后门模型中的隐藏行为,并提出基于代理任务的超参数选择策略,显著提升触发率。

摘要:

潜伏代理是欺骗的典型模型有机体:经过训练以表现正常,但在特定触发条件下产生不安全行为的模型。在不知道触发条件的情况下引出该行为尚未被系统研究。我们研究模糊测试:向模型权重或残差流激活中注入高斯噪声,并检查扰动后的输出是否揭示该行为。在6个后门模型(7B-13B)上,我们将两种模糊测试形式与温度采样基线进行直接比较。在6个模型中的4个上,模糊测试比温度采样更频繁地引出隐藏行为(在OpenHermes-13B上高达约6倍),且哪种形式胜出取决于任务,因此两种都值得运行。每种方法的超参数网格上的引出效果不均匀:均匀扫描在大多数模型上仅给出百分之几,而最佳单元格高出2-10倍,因此瓶颈在于超参数选择,而非技术本身。为了在没有真实标签的情况下选择超参数,我们使用一个廉价的代理任务(上下文秘密引出,其中将base64编码的秘密放入系统提示中让模型隐藏)并在其上运行汤普森采样以选择候选单元格,然后在真实后门上评估。在四个能够解码秘密的模型上,代理选择的单元格将激活模糊测试的引出率相对于均匀扫描均值提高了约4倍(在最佳模型上恢复了最佳单元格率的约70%),并将权重模糊测试提高了1.3-1.8倍。据我们所知,这是首次对潜伏代理后门进行模糊测试的系统研究,也是首次展示代理任务超参数选择迁移到真实任务引出。我们还建议将此类结果报告为(均匀基线、代理选择、神谕)三元组,因为这是先前工作经常模糊的三个不同声明。

英文摘要:

Sleeper agents are the canonical model organism of deception: models trained to behave normally but to emit an unsafe behaviour on a specific trigger. Eliciting that behaviour without knowing the trigger has not been studied systematically. We study fuzzing: injecting Gaussian noise into a model's weights or residual-stream activations and checking whether the perturbed outputs reveal the behaviour. On 6 backdoored models (7B-13B) we compare both forms of fuzzing head-to-head against temperature-sampling baselines. Fuzzing elicits the hidden behaviour more often than temperature sampling on 4 of 6 models (up to ~6x on OpenHermes-13B), and which form wins depends on the task, so both are worth running. Elicitation is uneven across each method's hyperparameter grid: a uniform sweep gives only a few percent on most models, while the best cell is 2-10x higher, so the bottleneck is hyperparameter selection, not the technique. To select hyperparameters without ground-truth access, we use a cheap proxy task (in-context secret elicitation, where a base64-encoded secret is placed in the system prompt for the model to hide) and run Thompson sampling on it to pick candidate cells, which we evaluate on the real backdoor. On the four models that can decode the secret, proxy-selected cells raise activation-fuzzing elicitation ~4x over the uniform-sweep mean (recovering ~70% of the best-cell rate on the best performing model) and weight-fuzzing by 1.3-1.8x. To our knowledge this is the first systematic study of fuzzing on sleeper-agent backdoors and the first to show proxy-task hyperparameter selection transferring to real-task elicitation. We also propose reporting such results as a (uniform-baseline, proxy-selected, oracle) triple, since these are three distinct claims that prior work has often blurred.

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

↑