Paper: 2611.34831 — Repairing the Trustworthiness of Distilled Language Models Authors: Kumar Shubham, Devendra Vyas, Vidushi Agarwal, Jayin Khanna, Prathosh AP Categories: cs.AI, cs.CL Reading scope: Original arXiv HTML, main Sections 1–6 and Appendices A–C, without text excerpting; Figure 1 inspected. This is a source-based reading, without independent review, code auditing, or experiment reproduction.

The Problem

“Where is the city of Bielefeld?” Appendix C pairs a desirable answer, “Bielefeld is in North Rhine-Westphalia,” with an undesirable one, “Bielefeld does not exist.” This is an example of the paper’s labeled preference data, rather than a recorded failure by one of its models. It makes the repair goal concrete: favor the first completion over the second.

The practitioner has a shipped, compact model trained to imitate a larger teacher. That process is called distillation. Its original training corpus is unavailable, so repeating the original training or tracking down problematic training examples is impractical. Directly training the student on new preferred answers might also change other behavior. The paper asks whether a targeted parameter update can improve answer preferences while keeping the student’s existing language-modeling performance close to its starting point.

The authors adapt an existing framework with two changes: a separate proxy corpus supplies information about which updates would disturb the student, and paired answers specify the behavior to change. The reference being protected is the shipped student itself.

The Explanation

Give the repair a direction and a restraint

For the Bielefeld pair, the update first needs a direction. Section 3.3 combines training on the preferred completion with a term comparing preferred and dispreferred completions through their odds ratio. Reinforcing one answer alone need not establish a strong preference over the other. The paired term makes that relative preference part of the objective.

These answers are scored word by word, averaging their log-likelihood over their length. This is useful for comparing supplied completions of different lengths. It also matters when interpreting the result: the experiment evaluates scores on those completions, rather than counting how often a freely generating model actually says the correct sentence.

The second part asks what the same update would disturb. A proxy corpus contains ordinary examples on which the existing student can be evaluated. The method estimates local sensitivity around the student’s current weights: some combinations of parameter changes would alter its predictions more sharply than others. That sensitivity is the curvature used to reshape the preference-driven update. Sections 3.2–3.4 explain the two parts.

Original Figure 1: unavailable distillation data on the left; shipped student, proxy corpus, preference data, and repair on the right

Figure 1, the authors’ schematic of the data flow and intended repair goals. The measurements below establish the observed gains and costs.

The full objective penalizes changes to the student’s predictions on proxy examples and large changes to its weights, while rewarding the desired preference change. The framework is called the proximal Bregman response function, or PBRF. Here its practical role is to couple the correction to a local restraint on what else moves.

A language model has too many weights to build and invert the full curvature matrix. The authors use a Fisher-based approximation and EK-FAC, which represents relevant activation and gradient statistics in smaller factors. Appendix A then applies the approximated inverse curvature to the preference gradient—the proposed direction for changing the weights—and makes one local repair step. This is an approximation around the original checkpoint, not a guarantee that arbitrary large or repeated edits preserve it.

Appendix B uses 10,000 examples from each proxy corpus to estimate those factors. The preference-loss coefficient is fixed at 0.1, and the repair step size is tuned over five values from 0.01 to 0.7. A damping term stabilizes the inverse. The correction therefore depends on the proxy examples, approximation, and chosen step size; it is not an unconstrained injection of facts.

Read the two measurements together

Truthfulness is evaluated with TruthfulQA answer pairs, and machine ethics with Commonsense Ethics examples. The trust datasets have an 80/20 training–test split: the training portion drives repair, and the held-out portion measures its result. The tables report a log-odds metric, Log-O, whose captions specify that lower is better. Their capability measure is perplexity, or PPL: how difficult the held-out text is for the model to predict, with lower again better. Perplexity alone does not measure every useful capability.

The post-training experiments use GPT-2 students of 120M, 340M, and 760M parameters, distilled from a 1.5B teacher, with PPL evaluated on DollyEval. The pre-training experiments use Qwen students of 200M, 500M, and 1.2B parameters, distilled from a 1.8B teacher. Appendix B names “OpenAI LAMBDA” as their PPL evaluation dataset, substituted for evaluation on the full Pile corpus. The following examples come directly from Tables 1–2:

Repair settingLog-O, before → afterPPL, before → after
GPT-2 760M, ethics, U-NI proxy-3.51 → -3.8116.49 → 16.71
GPT-2 760M, truthfulness, U-NI proxy6.29 → 5.9916.49 → 16.38
Qwen 1.2B, ethics, OpenWebText proxy-3.42 → -3.7131.56 → 31.67
Qwen 1.2B, truthfulness, OpenWebText proxy5.25 → 4.9331.56 → 31.51

The first row improves the reported ethics score while worsening PPL. The paper calls its Log-O change an 8.55% relative improvement: the score moves by 0.30, divided by the starting magnitude of 3.51. This is not an 8.55 percentage-point increase in ethical answers. Its PPL rises by 1.33%.

The truthfulness rows show a different outcome: the reported preference metric improves and PPL also falls slightly. A repair need not worsen both measurements. But the under-1% cost in the abstract is not universal. Table 1’s largest PPL degradation is 1.56%, for GPT-2 340M with the U-NI ethics repair. Across the pre-training settings, the maximum reported PPL degradation is 0.35%.

The proxy choice also changes the balance. Section 4.2 reports generally larger preference-score gains with U-NI than S-NI, while S-NI usually produces smaller PPL changes. Both improve the targeted scores in the reported runs. The evidence supports trying alternative proxies; it does not establish that any generic corpus protects any deployment task equally well.

Core Concepts

Preference is measured on supplied answers. The Bielefeld pair specifies which response should win. Length-normalized likelihoods let the objective compare those responses, but an improvement there still needs testing on open-ended generation before it becomes a claim about real answer frequencies.

The proxy defines the restraint. It supplies examples for estimating what the existing model is sensitive to. It does not reconstruct the unavailable distillation corpus or restore a complete record of the teacher’s behavior. If an important deployed task is poorly represented, protecting predictions on the proxy may not protect that task.

Curvature reshapes a small update. The preference gradient gives the requested correction; the curvature approximation weights and mixes it according to local sensitivity. Damping prevents nearly flat estimated directions from yielding enormous steps. Step size still determines how far the repaired weights move from the checkpoint where the estimate was made.

The Insight

A repair needs two specifications: what should change, and what should remain stable. This method supplies them through preference pairs and a proxy-based local restraint. Its useful result is a measured shift in targeted scores with mostly small PPL changes in these small models.

The proxy is therefore part of the repair’s definition, rather than interchangeable background data. Choosing it means choosing which existing behavior informs the restraint. A practical deployment must check that choice against the work the model actually needs to keep doing.

A Critical Reading

The main assumption is that sensitivity estimated on proxy examples is useful for preserving the student’s original capability. The experiments compare several proxies, but the paper offers no general guarantee for the missing distillation distribution. Its largest tested student is 1.2B parameters, and Section 6 explicitly leaves larger models, broader trustworthiness dimensions, and open-ended generation for future work.

Both tables compare repaired models with unrepaired students and alternative proxies. They do not include a plain preference-training repair baseline or separate ablations of the curvature and paired-answer terms. We can inspect before–after changes, but cannot establish from these tables how much each component contributes, or how much better the restraint works than a simpler repair. There are also no teacher rows measuring the original teacher–student trustworthiness gap.

The metric convention needs care. Section 3 defines a preferred-to-dispreferred odds ratio that grows when the preferred answer wins; the result tables call lower Log-O better. The conversion between those conventions is not explicit in the supplied method and evaluation descriptions. I follow the table captions for the reported changes and keep the raw values, without translating them into answer probabilities. Appendix B lists step-size tuning but does not identify a separate validation split for selecting it, and the tables give no run-to-run uncertainty. These details limit how precisely the reported gains can be assessed.

What You Can Use

If you can access a distilled model’s weights and gradients, this paper suggests a repair experiment with separate checks. Build preferred–dispreferred pairs for the behavior you need to change. Choose proxy examples that exercise the behavior you need to preserve, then examine the update’s effect on held-out preference scores and actual deployment tasks.

For the Bielefeld-style problem, also ask new questions and inspect generated answers. Record the capability cost as well as the preference gain, including cases where PPL worsens beyond your tolerance. These are practical evaluation steps inferred from the method and its limits; they have not been demonstrated as a complete deployment recipe by this paper.

论文: 2611.34831 — Repairing the Trustworthiness of Distilled Language Models 作者: Kumar Shubham、Devendra Vyas、Vidushi Agarwal、Jayin Khanna、Prathosh AP 分类: cs.AI、cs.CL 阅读范围: 原始 arXiv HTML,正文第1—6节及附录A—C,未截取文字;已查看图1。 本文据原文解读,没有独立评审、代码审计或实验复现。

问题

“比勒费尔德这座城市在哪里?”附录C为这个问题配了两种回答:希望模型偏好的回答是“在北莱茵—威斯特法伦州”,不希望它偏好的回答是“比勒费尔德不存在”。 这是论文的偏好数据示例,不是某个受测模型出错的对话记录。 它把目标说清楚了:让前一种回答更占优势。

使用者手里只有已经交付的小模型。 它曾通过模仿大模型接受训练,这个过程叫蒸馏,但原来的训练语料现在拿不到。 重新跑原训练,或找出哪些旧样本带坏了它,都很难。 直接拿正确回答继续训练,又可能改动已经会做的事情。 论文问的是:能否用一次有针对性的参数更新,修正回答偏好,同时让原有语言建模表现接近修复前?

作者给已有框架加了两处改动:用另外一份代理语料估计哪些更新会扰动模型,再用成对回答规定要修正的方向。 这里要尽量保住的参考点,是交付时的小模型本身。

翻译

给修复一个方向,也给它约束

在比勒费尔德这对回答上,第一步是定方向。 第3.3节把两种要求合起来:一边训练模型更好地预测希望它给出的回答,一边通过几率比比较它对好、坏回答的相对偏好。 只抬高好答案的分数,并不能直接规定它要比坏答案更占优势;成对比较把这项要求也放进目标。

回答逐词计分,再按长度取平均对数似然,也就是平均看每个词得到模型多少支持。 这样便于比较长短不同的候选回答。 但它也限定了结果的含义:实验给这些现成回答打分,没有统计模型自由生成时究竟说对了多少次。

第二部分要看,同一个改动还会扰动什么。 代理语料是一批可以拿来检查现有模型的普通例子。 方法在当前权重附近估计敏感程度:某些参数一起变化,会比另一些变化更快地影响原有预测。 这种局部敏感关系,就是这里要用的“曲率”;它用来重新调整偏好目标提出的更新方向。 两部分的关系见第3.2—3.4节。

原图1:左侧是已不可得的蒸馏数据,右侧用交付模型、代理语料和偏好数据完成修复

图1展示作者设计的数据路线与修复目标;实际改善和代价要看下方实验数据。

完整目标同时管三件事:代理样本上的预测别变太多,模型权重别移动太远,需要的回答偏好则要改变。 这个框架叫近端Bregman响应函数,简称PBRF。 在这里,它把想做的修正,同局部约束接在一起。

语言模型的权重太多,完整曲率矩阵既难存,也难求逆。 作者用Fisher信息近似,再用EK-FAC把相关激活和梯度统计写成较小的因子。 附录A将近似逆曲率作用在偏好梯度上——梯度给出改变权重的方向——随后只做一次局部修复更新。 估计围绕原检查点展开,不能据此保证大幅修改或反复修改仍能保住它。

附录B从每份代理语料取10000个样本估计这些统计量。 偏好损失的系数固定为0.1,修复步长从0.01到0.7之间的五个候选值里调选;阻尼项负责稳定求逆。 结果取决于代理例子、近似方式和步长,并不是把事实直接灌进去就完事。

两把尺子一起读

真实性使用TruthfulQA回答对,机器伦理使用Commonsense Ethics样本。 两类数据按80/20划分:训练部分推动修复,留出的测试部分测修复结果。 表格报告对数几率指标Log-O,表注规定越低越好。 能力指标是困惑度PPL:模型预测留出文本有多困难,同样越低越好。 困惑度并不包办模型的所有本领。

后训练实验使用120M、340M和760M参数的GPT-2学生,教师为1.5B,困惑度在DollyEval上测。 预训练实验使用200M、500M和1.2B参数的Qwen学生,教师为1.8B。 附录B把这组困惑度评测集写作“OpenAI LAMBDA”,以它替代对完整Pile语料的评测。 以下数据直接取自表1和表2:

修复条件Log-O,修复前 → 后PPL,修复前 → 后
GPT-2 760M,伦理,U-NI代理-3.51 → -3.8116.49 → 16.71
GPT-2 760M,真实性,U-NI代理6.29 → 5.9916.49 → 16.38
Qwen 1.2B,伦理,OpenWebText代理-3.42 → -3.7131.56 → 31.67
Qwen 1.2B,真实性,OpenWebText代理5.25 → 4.9331.56 → 31.51

第一行的伦理评分改善,困惑度却变差了。 论文把Log-O的变化记作相对改善8.55%:分数移动0.30,再除以原分数绝对值3.51。 这不是“符合伦理的回答比例增加8.55个百分点”。 这一行的困惑度上升1.33%。

真实性两行则出现另一种结果:偏好指标改善,困惑度还略降了一点。 修复并非必然让两项指标此消彼长。 但摘要里“困惑度代价低于1%”也不是全部设置都成立:表1最大恶化为1.56%,来自GPT-2 340M的U-NI伦理修复。 预训练设置里,报告的最大困惑度恶化为0.35%。

代理语料也影响两项指标怎样取舍。 第4.2节报告,U-NI通常比S-NI带来更大的偏好评分改善,S-NI则通常让困惑度变动更小。 两种选择都改善了受测目标分数。 结果支持尝试不同代理,却没有证明随便一份通用语料都能同样保护任意部署任务。

核心概念

偏好是在给定回答上测的。 比勒费尔德这对回答规定了谁该占上风。 按长度归一的似然,让目标可以比较候选回答;要把改善解释成实际回答频率,还得再测自由生成。

代理数据规定约束看什么。 它提供样本,帮助估计现有模型对哪些变化敏感。 它没有重建原蒸馏语料,也没有找回教师行为的完整记录。 若部署中的重要任务在代理里很少出现,保护代理上的预测,未必保护了那项任务。

曲率调整的是一次小更新。 偏好梯度提出要怎样修正,曲率近似再按局部敏感程度调整不同参数组合。 阻尼避免近乎平坦的估计方向产生过大步子。 步长仍决定权重离计算曲率的原检查点走多远。

洞见

修复得同时说清两件事:什么要改,什么要尽量稳住。 这篇方法用回答对规定前者,用代理数据提供的局部约束规定后者。 目前有用的结果,是这些小模型的目标评分移动了,而大多数困惑度变化较小。

代理语料因此也是修复定义的一部分。 选它,就是选哪些现有行为来帮助约束更新。 落到部署时,还得对照模型真正需要继续做的工作,检查这个选择是否合适。

博导审稿

关键预设是:代理样本上估出的敏感关系,能帮助保护学生原有能力。 论文比较了几份代理语料,但没有给出对不可得蒸馏分布的普遍保证。 最大受测学生为1.2B参数;第6节明确把更大模型、更广可信维度和自由生成留给后续工作。

两张结果表比较了修复前后,也比较了不同代理,却没有普通偏好训练的修复基线,没有分别拆掉曲率项和成对回答项的消融。 所以能观察到前后变化,不能仅凭这些表确定每个零件贡献多少,或它比更简单的修复更能保住能力。 表里也没有教师行,无法量出原本教师与学生的可信表现差距。

指标约定还需要留心:第3节定义的是好回答相对坏回答的几率比,好回答占优时它应变大;实验表注却规定Log-O越低越好。 方法和评测说明没有把这两种约定的转换明确写出来。 本文依照表注读变化,保留原始值,不把它们换算成回答概率。 附录B列了步长调参,但没有明确指定选步长的独立验证划分;表格也没有运行间的不确定性。 这些细节限制了我们能把增益判断到多精确。

启发

若能访问蒸馏模型的权重和梯度,可以照这篇论文设计一个分开验收的修复实验。 为需要改的行为准备好、坏回答对;为需要保住的行为选代理样本,再同时检查留出偏好分数和实际部署任务。

遇到比勒费尔德这类问题,还要换新问题,看模型真正生成了什么。 记录偏好增益,也记录能力代价,包括困惑度恶化超过自己容忍范围的设置。 这些是从方法及其边界推出来的评测步骤,论文尚未把它们验证成完整的部署方案。