arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2611.00748cs.AI
收藏

继承还是学习?蒸馏语言模型中的后门选择性

Inherited or Learned? Backdoor Selectivity in Distilled Language Models

BRAC University(BRAC大学)

Dipto Sumit, Sanzar Rahman, Ramisa Faria Puspita, Samiha Fairooz Urbi, Farig Sadeque

AI总结:

该研究探究蒸馏语言模型的后门选择性,发现随机插入的触发器经蒸馏后选择性降低,附加触发器的选择性变化因模型而异,且部分后门是学生自主学习而非继承自教师。

摘要:

蒸馏是构建小型语言模型的常规步骤,被植入后门的教师模型会将其后门传递给学生模型。本文研究当后门是触发固定弃权(不执行)的稀有字符串时,学生模型会继承什么。保持触发器固定,仅改变其出现位置:随机词边界处或附加到指令后,在精确触发器、6个控制字符串及干净输入上比较教师模型与学生模型。在Qwen2.5、Llama 3.2和Gemma 3上,当5%的迁移提示被触发时,所有9种教师-学生流水线中,随机插入的触发器在蒸馏后选择性降低;而附加的触发器在Qwen和Llama中选择性提升,在Gemma中变化很小。在无教师的情况下用相同提示训练的学生模型表明,上述现象大多并非继承而来。Llama和Gemma的学生仅从150个中毒示例中学习附加后门,仅Qwen的0.5B学生需要教师。数据还确定了触发器的作用位置:Gemma教师对任何位置的触发器都有响应,但其学生仅在触发器附加时才响应。审计应在相同输入上比较教师与学生,探测多个触发器位置,并纳入无教师训练的学生模型。

英文摘要:

Distillation is a routine step in building small language models, and a backdoored teacher can pass its backdoor to the student. We study what a student inherits when the backdoor is a rare string that triggers a fixed refusal. Keeping the trigger fixed, we vary only where it appears, at a random word boundary or appended to the instruction, and compare teachers and students on the exact trigger, six control strings and clean inputs. Across Qwen2.5, Llama 3.2 and Gemma 3, with 5% of transfer prompts triggered, randomly inserted triggers become less selective after distillation in all nine teacher-student pipelines, while appended triggers gain selectivity in Qwen and Llama and change little in Gemma. Students trained on the same prompts without a teacher show that much of this is not inherited. Llama and Gemma students learn an appended backdoor from the 150 poisoned examples alone, and only Qwen's 0.5B student needs the teacher. The data also sets where the trigger works. Gemma teachers respond to it anywhere, but their students only when it is appended. Audits should compare teacher and student on the same inputs, probe several trigger positions and include a student trained without the teacher.

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

↑