iRaven

Paper · Open models · Version v1

Repairing the Trustworthiness of Distilled Language Models

First published: arXiv, . Original

Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.

This page holds the text of the paper, converted to HTML; figures may be left out.

Knowledge distillation enables the deployment of large language models through smaller student models, but the compression process can introduce regressions in trustworthiness even when downstream performance is preserved. Repairing such failures is challenging because the original distillation corpus is often unavailable, while direct preference optimization may alter capabilities inherited from the teacher. We propose a targeted repair framework based on the proximal Bregman response function (PBRF) that addresses both limitations. We estimate the curvature required for PBRF using a surrogate proxy dataset, removing dependence on the original transfer corpus, and extend the framework to preference-based supervision through an odds-ratio objective. This enables the use of preferred and dispreferred response pairs while constraining changes to the distilled model. Our results show that the proposed approach improves targeted trustworthiness behaviors for both pre-training and post-training models while largely preserving downstream performance, providing a practical alternative to re-distillation or unconstrained preference optimization. Our experiment results show that across different distilled models, the trustworthy regression can be improved by up to 8% with less than 1% decrement in perplexity.

Abstract

Knowledge distillation enables the deployment of large language models through smaller student models, but the compression process can introduce regressions in trustworthiness even when downstream performance is preserved. Repairing such failures is challenging because the original distillation corpus is often unavailable, while direct preference optimization may alter capabilities inherited from the teacher. We propose a targeted repair framework based on the proximal Bregman response function (PBRF) that addresses both limitations. We estimate the curvature required for PBRF using a surrogate proxy dataset, removing dependence on the original transfer corpus, and extend the framework to preference-based supervision through an odds-ratio objective. This enables the use of preferred and dispreferred response pairs while constraining changes to the distilled model. Our results show that the proposed approach improves targeted trustworthiness behaviors for both pre-training and post-training models while largely preserving downstream performance, providing a practical alternative to re-distillation or unconstrained preference optimization. Our experiment results show that across different distilled models, the trustworthy regression can be improved by up to 8% with less than 1% decrement in perplexity.

1 Introduction

Recent advances in large language models (LLMs) Brown et al. (2020); Achiam et al. (2023) have been largely driven by scaling model size and parameter count. However, this improved capability comes with substantial computational and memory costs at inference, limiting deployment in resource-constrained settings. This trade-off has motivated growing interest in model compression methods that reduce inference cost while preserving performance.

Knowledge distillation Hinton et al. (2015); Sanh et al. (2019); Gu et al. (2024a) has emerged as a widely used approach to this challenge. It trains a compact student model to mimic the predictive behavior of a larger teacher over a transfer corpus, preserving the required teacher’s capability at lower inference cost. For LLMs, this offers a practical way to transfer the strengths of large models to smaller, more deployment-efficient students.

Despite its effectiveness, distillation does not necessarily preserve all aspects of the teacher’s behavior to the same extent. In particular, a student may closely match its teacher in terms of perplexity or downstream task accuracy while exhibiting substantial differences along dimensions that are critical for trustworthy deployment. We focus on two such dimensions: truthfulness, which concerns the factual accuracy of model-generated statements Lin et al. (2022); and machine ethics, which evaluates the extent to which model behavior conforms to broadly accepted norms and expectations Hendrycks et al. (2020).

Several aspects of distillation may contribute to trustworthiness differences between teacher and student models. The transfer corpus captures only part of the teacher’s behavioral distribution and may provide limited coverage of truthfulness or ethics-related examples Stanton et al. (2021); Lee et al. (2025). Such rare or context-dependent behaviors may therefore receive less supervision than dominant task-specific patterns Hooker et al. (2020); Lukasik et al. (2021). This imbalance may be further amplified by the student’s limited capacity Hooker et al. (2020); Du et al. (2023), which can favor patterns that dominate the transfer distribution. Consequently, a distilled model may retain comparable perplexity or downstream accuracy Du et al. (2023); Ramesh et al. (2023); Gonçalves and Strubell (2023) while exhibiting substantial differences in trustworthiness.

Correcting trustworthiness regressions after distillation can be both difficult and costly. One option is to repeat distillation with a curated transfer corpus that better covers the affected behaviors Fang et al. (2025). However, reproducing the original pipeline is often impractical, as foundation-model developers may not fully disclose the training data, compute, or methodological choices used to produce their models Bommasani et al. (2024); Wan et al. (2025). This is particularly limiting for released distilled checkpoints, whose reproduction may require access to the original transfer data and training recipe Guo et al. (2025). An alternative is to directly optimize the distilled student for the desired behaviors Rafailov et al. (2023), but doing so may alter capabilities inherited from the teacher and degrade downstream performance Lin et al. (2024).

An alternative is the proximal Bregman response function (PBRF) framework Bae et al. (2022); Grosse et al. (2023); Shubham et al. (2026), which constrains model updates relative to a reference model in both function and parameter space. Recent work has further shown that the required influence-function computations can scale to large language models Grosse et al. (2023). Building on this idea, Shubham et al. (2026) use PBRF-based updates to reduce the influence of training samples contributing toward trustworthiness failures while preserving post-SFT capabilities.

However, two challenges limit its direct use for repairing distilled language models. First, PBRF based updates typically requires access to the original training data to estimate proximity of the model in both functional and parameter space, whereas once a distilled model has been shipped the transfer corpus used for distillation is often unavailable. Second, existing formulations Grosse et al. (2023); Shubham et al. (2026) are designed primarily for supervised fine-tuning, where each input has a single target response. Trustworthiness datasets, in contrast, often use pairwise preferred and dispreferred responses. This mismatch motivates extending PBRF to explicitly support preference-based supervision.

We address these challenges with a targeted repair framework for distilled language models. First, we remove the dependence on the original distillation corpus by estimating the desired proximity and curvature required by PBRF using a surrogate proxy dataset. We empirically show that this approximation effectively constrains model updates and helps preserve the student’s downstream performance during repair. Second, we extend PBRF to preference data by formulating the repair objective using odds-ratio preference optimization Hong et al. (2024), enabling direct use of preferred and dispreferred response pairs. Together, these modifications allow targeted trustworthiness repair without access to the original distillation data, improving the desired behaviors while preserving the student’s existing capabilities.

Our contributions can be summarized as follows:

  • We propose a novel model repair framework for improving the trustworthiness of distilled language models while preserving their downstream capabilities.
  • We extend the existing PBRF-based repair framework to a more practical setting in which the original distillation dataset is unavailable at repair time, leveraging a proxy dataset instead.
  • We introduce a preference-aware PBRF objective that explicitly incorporates trustworthiness preference data into the repair optimization, enabling targeted improvement of undesirable model behaviors.

2 Related work

2.1 Trustworthiness of language models

Trustworthiness Wang et al. (2023); Lin et al. (2022); Nadeem et al. (2021); Hendrycks et al. (2020) is a key criterion for evaluating language models before deployment, spanning dimensions such as truthfulness, machine ethics and others. Importantly, gains in general model capability do not necessarily imply improved trustworthiness: even larger and more capable models can produce factual errors, exhibit bias, or remain vulnerable to adversarial prompts Lin et al. (2022); Wang et al. (2023). Moreover, downstream procedures such as fine-tuning, alignment, and distillation can alter these behaviors even when perplexity or task accuracy remains largely unchanged Shubham et al. (2026); Li et al. (2025).

Existing methods typically rely on preference optimization, safety-oriented fine-tuning, or inference-time safeguards Bai et al. (2022); Rafailov et al. (2023); Inan et al. (2024). However, these approaches can be costly or unsuitable for repairing an already trained model: additional optimization may disrupt previously acquired capabilities, while inference-time safeguards introduce extra computational overhead. The problem is further complicated for distilled models, where the original teacher outputs, transfer corpus, or distillation recipe may be unavailable. This motivates post-hoc repair methods that directly correct undesirable behaviors in the released model while preserving its existing capabilities.

2.2 Knowledge Distillation

Distillation compresses the capabilities of a teacher model into a student by training the student to match the teacher’s output distribution (Hinton et al., 2015), with sequence-level and on-policy variants extending this approach to autoregressive language models (Gu et al., 2024b; Gu et al., 2024a). While prior work has largely focused on preserving aggregate model capabilities, matching the teacher’s predictive behavior through distillation does not necessarily imply faithful transfer of all of its behavioral properties. In particular, substantial discrepancies can remain between the predictive distributions of the teacher and student even when the student achieves strong generalization performance, with the choice of transfer data and optimization procedure playing an important role in determining the degree of teacher–student agreement (Stanton et al., 2021). Such discrepancies become particularly important when considering properties beyond conventional task performance. Prior studies. Similarly, model compression (Ramesh et al., 2023; Gonçalves and Strubell, 2023), including knowledge distillation, can alter fairness and social-bias characteristics in ways that are not reflected by standard performance metrics .

Figure

Figure 1: Overview of post-hoc trustworthiness repair. Left: the shipped student is produced by a distillation process the practitioner does not observe; the distillation corpus Ddistill is unavailable after deployment (dashed), and the student inherits the teacher’s task performance but degraded trustworthiness. Right: our method repairs the shipped student without access to Ddistill, using a generic proxy corpus Dproxy to preserve capability and trustworthiness dataset Dtrust to restore the preferential behaviour, yielding a repaired student that improves trustworthiness at negligible cost to distillation performance.

3 Methods

3.1 Problem formulation

Let ℳT denote a teacher language model and ℳ(θ) a student model obtained by distilling ℳT on a transfer corpus 𝒟distill∼𝒫distill. We denote the parameters of the resulting distilled student by θdistill. Throughout, we assume that the original distillation corpus 𝒟distill is unavailable at post-hoc repair time after the model has been shipped.

Instead, we assume access to a proxy dataset 𝒟proxy, where 𝒟proxy≠𝒟distill. The proxy dataset is independent of the original distillation corpus and contains examples on which the capability acquired during distillation can be evaluated. It therefore serves as a surrogate for measuring whether the repair procedure preserves the student’s original capability.

We consider |𝒦| trustworthiness aspects. For each aspect j∈{1,…,|𝒦|}, we assume access to a small preference dataset

𝒟trustj={𝐯1,…,𝐯nj},𝐯i∼𝒫trustj,

Each preference sample 𝐯i=(mi,pi,oi) consists of an evaluation prompt mi, a proponent completion pi representing desirable behavior, and an opponent completion oi representing undesirable behavior. Importantly, 𝒟trustj is generally domain-agnostic: its examples are determined by the trustworthiness aspects of interest rather than by the downstream domain or the original distillation corpus.

Let ℛj(𝐯;θ) denote the violation of trustworthiness aspect j by ℳ(θ), and let 𝒞(x;θ) measure performance on the capability targeted during distillation, for example perplexity on the distillation task . For both quantities, lower values indicate better performance.

Since 𝒟distill is unavailable at repair time, our objective is to use only 𝒟proxy and 𝒟trustj to obtain repaired parameters θ. For a target trustworthiness aspect k, we seek to improve trustworthiness relative to the distilled model while preserving its original capability up to a tolerance ϵ:

𝔼𝐯∼𝒫trustk[ℛk(𝐯;θ)]≤𝔼𝐯∼𝒫trustk[ℛk(𝐯;θdistill)], |𝔼x∼𝒫distill[𝒞(x;θ)]−𝔼x∼𝒫distill[𝒞(x;θdistill)]|≤ϵ.

3.2 Approach

To achieve the objective defined in Eq. (1), we formulate the repair procedure in two stages. First, using the trustworthiness preference dataset 𝒟trustj, we model the preference between a proponent completion p and an opponent completion o for a prompt m. The proponent denotes the desired response whose likelihood should increase, while the opponent denotes the undesirable response to be suppressed during repair.

Second, within the PBRF framework Bae et al. (2022), we use the proxy dataset 𝒟proxy in place of the unavailable distillation corpus to estimate the curvature and proximity information required for repair, including the Gauss–Newton Hessian and Fisher information matrix Grosse et al. (2023). This enables the model to preserve capabilities acquired during distillation without access to the original transfer data.

To incorporate the preference dataset into the repair procedure, we first formulate a log-odds-based supervised fine-tuning Hong et al. (2024) objective that explicitly captures the relative preference of the proponent over the opponent. We then show how this preference-aware objective can be integrated into the PBRF formulation to obtain the final repair objective for the distilled model.

3.3 Preferential Dataset for Model Repair

Prior work, such as Shubham et al. (2026), has used PBRF-based objectives to mitigate the influence of training examples that negatively affect model trustworthiness. In these settings, undesirable examples are first identified from the supervised fine-tuning (SFT) dataset, after which the model is repaired by reducing their influence. Such approaches, however, require access to the original training data. In our setting, where the distillation dataset is unavailable, we instead use preference data to specify the desired model behavior. Given an input prompt m, the repair procedure should increase the model’s preference for the desirable, or proponent, completion p over undesirable alternatives. Examples associated with proponents and opponents are provided in appendix C.

A possible approach to incorporate a new behavior could be by fine-tuning the model directly on the proponent completions. For a proponent response p=(p1,…,pT) containing T tokens, we define its length-normalized log-likelihood as

log𝒫θ(p∣m)=1T∑t=1Tlog𝒫θ(pt∣m,p<t).

Accordingly, the SFT loss can be written as

ℒSFT(m,p;θ)=−log𝒫θ(p∣m).

While optimizing Eq. (3) increases the likelihood of the proponent response it does not guarantee that the model will not inadvertently generate an undesired response opponent(o) for input prompt (m).

To model this relative preference, we define the odds of a completion y conditioned on a prompt m as

oddsθ(y∣m)=𝒫θ(y∣m)1−𝒫θ(y∣m),

and define the corresponding log-odds ratio between the proponent and opponent as

rθ(m,p,o)=logoddsθ(p∣m)oddsθ(o∣m).

Intuitively, oddsθ(y∣m)=k implies that, under the probability interpretation in Eq. (4), generating y is k times more likely than not generating it Hong et al. (2024). Accordingly, the ratio in Eq. (5) provides a direct measure of the model’s relative preference for the proponent completion over the opponent completion.

We combine this relative preference signal with the standard SFT objective to obtain the following preference-aware optimization objective:

ℒpref(θ)=1|𝒟trustj|∑(mi,pi,oi)∼𝒟trustj[ℒSFT(mi,pi;θ)−α×ℒσ[log[oddsθ(pi∣mi)oddsθ(oi∣mi)]],

where α≥0 controls the contribution of the preference term, and ℒσ denotes the log-sigmoid function. Minimizing Eq. (6) jointly increases the likelihood of the proponent response and enlarges the preference margin between the proponent and opponent completions. Consequently, the repair procedure not only reinforces the desired behavior but also explicitly suppresses undesirable responses, rather than relying solely on increasing the likelihood of the proponent.

3.4 Distillation and Proximal Bregman Response Function

To ensure that the fine-tuning based on the log odds objective defined earlier does not alter the original capability of the distilled model we formulate the repairing of the model based on PBRF based objective. The overall objective is defined as follows:

θ(β)=argminθ∈ℝd1|𝒟proxy|∑x∈𝒟proxy[Ψ(ℳ(x,θ),ℳ(x,θdistill);t)]+βℒpref(θ)+λ2‖θ−θdistill‖2,

where,

Ψ(y^,y^′;t)=ℒ(y^,t)−ℒ(y^′,t)−∇y^ℒ(y^′,t)⊤(y^−y^′)

Intuitively, Ψ measures the divergence between the predictions of the original model and those obtained after updating the parameters on the proxy dataset 𝒟proxy, thereby constraining changes in the model’s functional behavior. The parameter-norm regularization further encourages the desired behavioral change to be achieved through a small update to the model parameters, while optimizing ℒpref ensures that the preference information contained in the trustworthiness dataset is effectively learned. Together, these terms define a constrained repair objective that preserves the distilled model’s behavior on the proxy dataset while enabling the acquisition of the desired trustworthiness properties through minimal parameter updates. Under the assumptions highlighted by Bae et al. (2022); Grosse et al. (2023) the overall solution for given optimization is

θ(β)≈θdistill−β(𝒢+λI)−1∇θℒpref(θdistill),𝒢=𝔼[J⊤Hy^J],J=∂y^∂θ,

where Hy^ denotes the Hessian of ℒ with respect to the output coordinates y^, J is the corresponding output, parameter Jacobian evaluated at θdistill, and λ>0 is a damping parameter that stabilizes the inverse.

A major computational bottleneck in extending the proposed method to highly parameterized models, including LLMs, is computing the inverse Gauss–Newton Hessian i.e., vector product (𝒢+λI)−1∇θℒpref(θdistill). Following prior work, we approximate 𝒢 using the Fisher information matrix Bae et al. (2022)and employ EK-FAC Grosse et al. (2023), an efficient Kronecker-factored approximation, to compute the resulting inverse Hessian–vector product. This approximation makes the proposed repair procedure computationally tractable for large language models and enables efficient estimation of the updated parameters θ(β).

The resulting approximate parameters θ(β) are then used to evaluate the trustworthiness of the repaired model.

4 Experiment

4.1 Setup

To evaluate the behavior of our approach, we conduct experiments along three dimensions. First, we examine whether the proposed repair strategy improves trustworthiness, specifically machine ethics and truthfulness, while preserving the capability of the distilled model as measured by perplexity. Second, we study how the choice of proxy dataset affects repair performance. Finally, since model distillation can be performed during both post-training and pre-training, we investigate whether the underlying distillation paradigm influences the effectiveness of the proposed repair strategy.

Across all experiments, we report the log-odds ratio, following Shubham et al. (2026), to quantify trustworthiness, together with perplexity on the corresponding distillation task to measure capability preservation. Truthfulness is evaluated using TruthfulQA Lin et al. (2022), while machine ethics is evaluated using the Commonsense dataset Hendrycks et al. (2020).

Table 1: Trustworthiness and capability evaluation before and after repair for Post training models using S-NI and U-NI based proxy datasets. Log-O denotes the log-odds metric and PPL denotes perplexity; lower values are better for both metrics. Δ denotes the relative change with respect to the distilled model, computed as 100×(Distilled−Method)/|Distilled|.

MetricModelMethodLog-O↓\boldsymbol{\Delta} (%)PPL↓\boldsymbol{\Delta} (%)
Machine EthicsGPT-2 120MDistilled−3.36–26.54–
Ours (U-NI)−3.60+7.1426.71−0.64
Ours (S-NI)−3.56+5.9526.64−0.38
GPT-2 340MDistilled−3.57–19.20–
Ours (U-NI)−3.81+6.7219.50−1.56
Ours (S-NI)−3.76+5.3219.42−1.15
GPT-2 760MDistilled−3.51–16.49–
Ours (U-NI)−3.81+8.5516.71−1.33
Ours (S-NI)−3.76+7.1216.59−0.61
TruthfulnessGPT-2 120MDistilled6.55–26.54–
Ours (U-NI)6.39+2.4426.58−0.15
Ours (S-NI)6.44+1.6826.57−0.11
GPT-2 340MDistilled5.71–19.20–
Ours (U-NI)5.62+1.5819.31−0.57
Ours (S-NI)5.62+1.5819.30−0.52
GPT-2 760MDistilled6.29–16.49–
Ours (U-NI)5.99+4.7716.38+0.67
Ours (S-NI)6.04+3.9716.46+0.18

For the post-training setting, we evaluate distilled student models from the GPT-2 family with 120M, 340M, and 760M parameters. These models are distilled from a GPT-2 1.5B teacher Gu et al. (2024a); Radford et al. (2019) on an instruction-following task using the DollyEval dataset Gu et al. (2024a). For the pre-training setting Gu et al. (2024b), we evaluate Qwen student models with 200M, 500M, and 1.2B parameters Bai et al. (2023), distilled from a Qwen 1.8B teacher Gu et al. (2024b); Bai et al. (2023). We additionally use FineWeb Penedo et al. (2024) and OpenWebText Gokaslan et al. (2019) as proxy datasets. All experiments are conducted using three NVIDIA A6000 GPUs. Further details on the datasets, models, hyperparameters, and evaluation protocol are provided in Appendix B.

4.2 Post training distillation

Table 1 reports the performance of the proposed repair strategy using two different proxy datasets, U-NI Honovich et al. (2023) and S-NI Wang et al. (2022), across the post-training distilled models. Overall, the results show that our method consistently improves both machine ethics and truthfulness relative to the corresponding distilled models, while largely preserving their original distillation capability. For machine ethics, the improvement in log odds (Log-O) ranges from 5.32% to 8.55% across model sizes and proxy datasets, whereas for truthfulness the improvement ranges from 1.58% to 4.77%. These gains are achieved with only a small change in perplexity: the largest degradation is 1.56%, and in most settings the change remains below 1%. Interestingly, for the GPT-2 760M model, repairing truthfulness also slightly improves perplexity, indicating that the trustworthiness improvement does not necessarily come at the expense of the distilled capability.

Comparing the two proxy datasets, U-NI generally produces larger improvements in the trustworthiness metrics, while S-NI tends to induce slightly smaller changes in perplexity. Nevertheless, both proxy choices consistently improve the target trustworthiness behavior while keeping the degradation in distillation performance below 2%. These results suggest that the proposed repair strategy is not strongly dependent on a particular proxy dataset and can effectively modify trust-related behavior even when the original distillation dataset is unavailable.

Table 2: Trustworthiness and capability evaluation before and after repair for pre-training models using FineWeb and OpenWebText (OWT) as proxy datasets. Log-O denotes the log-odds metric and PPL denotes perplexity; lower values are better for both metrics. Δ denotes the relative change with respect to the distilled model, computed as 100×(Distilled−Method)/|Distilled|. Positive values indicate improvement, while negative values indicate degradation.

MetricModelMethodLog-O↓\boldsymbol{\Delta} (%)PPL↓\boldsymbol{\Delta} (%)
Machine EthicsQwen 200MDistilled−3.35–41.20–
Ours (FineWeb)−3.55+5.9741.21−0.02
Ours (OWT)−3.61+7.7641.19+0.02
Qwen 500MDistilled−3.41–34.15–
Ours (FineWeb)−3.61+5.8734.17−0.06
Ours (OWT)−3.64+6.7434.16−0.03
Qwen 1.2BDistilled−3.42–31.56–
Ours (FineWeb)−3.60+5.2631.61−0.16
Ours (OWT)−3.71+8.4831.67−0.35
TruthfulnessQwen 200MDistilled5.57–41.20–
Ours (FineWeb)5.35+3.9541.12+0.19
Ours (OWT)5.27+5.3941.11+0.22
Qwen 500MDistilled5.41–34.15–
Ours (FineWeb)5.19+4.0734.11+0.12
Ours (OWT)5.15+4.8134.10+0.15
Qwen 1.2BDistilled5.25–31.56–
Ours (FineWeb)4.97+5.3331.52+0.13
Ours (OWT)4.93+6.1031.51+0.16

5 Pre-training distillation

Table 2 reports trustworthiness and capability results before and after repair for models pre-trained with FineWeb and OpenWebText (OWT) as proxy datasets. Across both trustworthiness dimensions and all three model scales, our method consistently improves the log-odds metric relative to the distilled baseline. On Machine Ethics, the relative improvement ranges from 5.26% to 8.48%, and on Truthfulness from 3.95% to 6.10%. These gains come at essentially no cost in language modeling capability: perplexity changes by at most 0.35%. The choice of proxy dataset has only a minor effect, although OWT yields slightly larger trustworthiness gains than FineWeb in every setting, suggesting that the repair procedure is robust to the particular corpus used as a proxy. Notably, the improvements do not diminish as model size grows from 200M to 1.2B parameters; the largest Machine Ethics gain (+8.48%) is obtained on Qwen 1.2B, indicating that the approach scales rather than relying on the limited capacity of smaller models.

6 Conclusion and Limitations

In this work, we introduced a preference-based framework for post-hoc repair of distilled language models without access to the original distillation data. By combining a small trustworthiness dataset with proxy data and PBRF-inspired functional regularization, our approach improves truthfulness and machine ethics while largely preserving model capabilities, as reflected by minor changes in perplexity. The method remains effective across post-training and pre-training distillation settings and different proxy datasets, demonstrating that trustworthiness regressions introduced during distillation can be mitigated after distillation. Our study is currently limited to MiniLLM GPT-2 models up to 760M parameters and MiniPLM Qwen models up to 1.2B parameters, with evaluations focused on TruthfulQA and Commonsense Ethics and curvature estimated using a single local EK-FAC step. Future work will extend the approach to larger models, broader trustworthiness dimensions, and open-ended generation settings.

References

  • [1] J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al. (2023) OpenAI. Technical report GPT-4 technical report.
  • [2] J. Bae, N. Ng, A. Lo, M. Ghassemi, and R. B. Grosse (2022) If influence functions are the answer, then what is the question?. Advances in Neural Information Processing Systems 35, pp. 17953–17967.
  • [3] J. Bai, S. Bai, Y. Chu, Z. Cui, K. Dang, X. Deng, Y. Fan, W. Ge, Y. Han, F. Huang, et al. (2023) Qwen technical report. arXiv preprint arXiv:2309.16609.
  • [4] Y. Bai, A. Jones, K. Ndousse, A. Askell, A. Chen, N. DasSarma, D. Drain, S. Fort, D. Ganguli, T. Henighan, et al. (2022) Training a helpful and harmless assistant with reinforcement learning from human feedback. arxiv. arXiv preprint arXiv:2204.05862.
  • [5] R. Bommasani, K. Klyman, S. Kapoor, S. Longpre, B. Xiong, N. Maslej, and P. Liang (2024) The foundation model transparency index v1. 1: may 2024. arXiv preprint arXiv:2407.12929.
  • [6] T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. (2020) Language models are few-shot learners. Advances in neural information processing systems 33, pp. 1877–1901.
  • [7] M. Du, S. Mukherjee, Y. Cheng, M. Shokouhi, X. Hu, and A. Hassan (2023) Robustness challenges in model distillation and pruning for natural language understanding. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pp. 1766–1778.
  • [8] L. Fang, X. Yu, J. Cai, Y. Chen, S. Wu, Z. Liu, Z. Yang, H. Lu, X. Gong, Y. Liu, et al. (2025) Knowledge distillation and dataset distillation of large language models: emerging trends, challenges, and future directions. Artificial Intelligence Review 59 (1), pp. 17.
  • [9] L. Gao, S. Biderman, S. Black, L. Golding, T. Hoppe, C. Foster, J. Phang, H. He, A. Thite, N. Nabeshima, et al. (2020) The pile: an 800gb dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027.
  • [10] A. Gokaslan, V. Cohen, E. Pavlick, and S. Tellex (2019) OpenWebText corpus. Note: http://Skylion007.github.io/OpenWebTextCorpus
  • [11] G. Gonçalves and E. Strubell (2023) Understanding the effect of model compression on social bias in large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 2663–2675.
  • [12] R. Grosse, J. Bae, C. Anil, N. Elhage, A. Tamkin, A. Tajdini, B. Steiner, D. Li, E. Durmus, E. Perez, et al. (2023) Studying large language model generalization with influence functions. arXiv preprint arXiv:2308.03296.
  • [13] Y. Gu, L. Dong, F. Wei, and M. Huang (2024) Minillm: knowledge distillation of large language models. In International Conference on Learning Representations, Vol. 2024, pp. 32694–32717.
  • [14] Y. Gu, H. Zhou, F. Meng, J. Zhou, and M. Huang (2024) Miniplm: knowledge distillation for pre-training language models. arXiv preprint arXiv:2410.17215.
  • [15] D. Guo, D. Yang, H. Zhang, J. Song, P. Wang, Q. Zhu, R. Xu, R. Zhang, S. Ma, X. Bi, et al. (2025) Deepseek-r1: incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948.
  • [16] D. Hendrycks, C. Burns, S. Basart, A. Critch, J. Li, D. Song, and J. Steinhardt (2020) Aligning ai with shared human values. arXiv preprint arXiv:2008.02275.
  • [17] G. Hinton, O. Vinyals, and J. Dean (2015) Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.
  • [18] J. Hong, N. Lee, and J. Thorne (2024) Orpo: monolithic preference optimization without reference model. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 11170–11189.
  • [19] O. Honovich, T. Scialom, O. Levy, and T. Schick (2023) Unnatural instructions: tuning language models with (almost) no human labor. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 14409–14428.
  • [20] S. Hooker, A. Courville, G. Clark, Y. Dauphin, and A. Frome (2020) What do compressed deep neural networks forget. arxiv. Learning 129, pp. 130.
  • [21] H. Inan, K. Upasani, J. Chi, R. Rungta, K. Iyer, Y. Mao, M. Tontchev, Q. Hu, B. Fuller, D. Testuggine, et al. (2024) Llama guard: llm-based input-output safeguard for human-ai conversations, 2023. URL https://arxiv. org/abs/2312.06674 2 (6), pp. 15.
  • [22] S. Lee, H. Seong, D. B. Lee, M. Kang, X. Chen, D. Wagner, Y. Bengio, J. Lee, and S. J. Hwang (2025) Harmaug: effective data augmentation for knowledge distillation of safety guard models. In International Conference on Learning Representations, Vol. 2025, pp. 68863–68882.
  • [23] A. J. Li, S. Krishna, and H. Lakkaraju (2025) More rlhf, more trust? on the impact of preference alignment on trustworthiness. In International Conference on Learning Representations, Vol. 2025, pp. 46561–46581.
  • [24] S. Lin, J. Hilton, and O. Evans (2022) Truthfulqa: measuring how models mimic human falsehoods. In Proceedings of the 60th annual meeting of the association for computational linguistics (volume 1: long papers), pp. 3214–3252.
  • [25] Y. Lin, H. Lin, W. Xiong, S. Diao, J. Liu, J. Zhang, R. Pan, H. Wang, W. Hu, H. Zhang, et al. (2024) Mitigating the alignment tax of rlhf. In Proceedings of the 2024 conference on empirical methods in natural language processing, pp. 580–606.
  • [26] M. Lukasik, S. Bhojanapalli, A. K. Menon, and S. Kumar (2021) Teacher’s pet: understanding and mitigating biases in distillation. arXiv preprint arXiv:2106.10494.
  • [27] M. Nadeem, A. Bethke, and S. Reddy (2021) StereoSet: measuring stereotypical bias in pretrained language models. In Proceedings of the 59th annual meeting of the association for computational linguistics and the 11th international joint conference on natural language processing (volume 1: long papers), pp. 5356–5371.
  • [28] D. Paperno, G. Kruszewski, A. Lazaridou, N. Pham, R. Bernardi, S. Pezzelle, M. Baroni, G. Boleda, and R. Fernández (2016) The lambada dataset: word prediction requiring a broad discourse context. In Proceedings of the 54th annual meeting of the association for computational linguistics (volume 1: Long papers), pp. 1525–1534.
  • [29] G. Penedo, H. Kydlíček, A. Lozhkov, M. Mitchell, C. Raffel, L. Von Werra, T. Wolf, et al. (2024) The fineweb datasets: decanting the web for the finest text data at scale. Advances in Neural Information Processing Systems 37, pp. 30811–30849.
  • [30] A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, I. Sutskever, et al. (2019) Language models are unsupervised multitask learners. OpenAI blog 1 (8), pp. 9.
  • [31] R. Rafailov, A. Sharma, E. Mitchell, C. D. Manning, S. Ermon, and C. Finn (2023) Direct preference optimization: your language model is secretly a reward model. Advances in neural information processing systems 36, pp. 53728–53741.
  • [32] K. Ramesh, A. Chavan, S. Pandit, and S. Sitaram (2023) A comparative study on the impact of model compression techniques on fairness in language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 15762–15782.
  • [33] V. Sanh, L. Debut, J. Chaumond, and T. Wolf (2019) DistilBERT, a distilled version of bert: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108.
  • [34] K. Shubham, N. Sharma, K. Tiwari, and P. AP (2026) Enhancing trustworthiness of fine-tuned llms via regularized subset selection. In International Conference on Learning Representations, Vol. 2026, pp. 48604–48645.
  • [35] S. Stanton, P. Izmailov, P. Kirichenko, A. A. Alemi, and A. G. Wilson (2021) Does knowledge distillation really work?. Advances in neural information processing systems 34, pp. 6906–6919.
  • [36] A. Wan, K. Klyman, S. Kapoor, N. Maslej, S. Longpre, B. Xiong, P. Liang, and R. Bommasani (2025) The 2025 foundation model transparency index. arXiv preprint arXiv:2512.10169.
  • [37] B. Wang, W. Chen, H. Pei, C. Xie, M. Kang, C. Zhang, C. Xu, Z. Xiong, R. Dutta, R. Schaeffer, et al. (2023) Decodingtrust: a comprehensive assessment of trustworthiness in {gpt} models.
  • [38] Y. Wang, S. Mishra, P. Alipoormolabashi, Y. Kordi, A. Mirzaei, A. Naik, A. Ashok, A. S. Dhanasekaran, A. Arunkumar, D. Stap, et al. (2022) Super-naturalinstructions: generalization via declarative instructions on 1600+ nlp tasks. In Proceedings of the 2022 conference on empirical methods in natural language processing, pp. 5085–5109.

Appendix A Algorithm

Algorithm 1 Preference-Based Post-hoc Model Repair

            0:


           Distilled model \mathcal{M}(\theta^{\mathrm{distill}}),
proxy dataset \mathcal{D}_{\mathrm{proxy}},
trustworthiness preference dataset \mathcal{D}_{\mathrm{trust}}^{j},
damping coefficient \lambda>0,
repair step size \beta>0



            0:


           Repaired model parameters \theta(\beta)



            1:


           Step 1: EK-FAC Computation on the Proxy Dataset



            2:


           Compute the EK-FAC factors using the distilled model and
the proxy dataset:





A,S\leftarrow\mathrm{EK\text{-}FAC}\big(\mathcal{M}(\theta^{\mathrm{distill}}),\mathcal{D}_{\mathrm{proxy}}\big),

where A and S denote the covariance factors associated with
the activations and pre-activation gradients.



            3:


           Use the EK-FAC factors to construct an efficient approximation
of the damped inverse Gauss–Newton matrix





\big(\mathcal{G}+\lambda I\big)^{-1},

where \mathcal{G} captures the local curvature of the distilled
model on \mathcal{D}_{\mathrm{proxy}} around the optimal parameter \theta^{distill}.



            4:


           Step 2: Preference Gradient and Inverse Hessian Vector Product



            5:


           Compute the preference-aware loss
\mathcal{L}_{\mathrm{pref}}(\theta^{\mathrm{distill}}) on
\mathcal{D}_{\mathrm{trust}}^{j} according to
Eq. (6).



            6:


           Using the EK-FAC approximation from Step 1, compute the
inverse Gauss–Newton Hessian–vector product:





\Delta\theta\leftarrow\big(\mathcal{G}+\lambda I\big)^{-1}\nabla_{\theta}\mathcal{L}_{\mathrm{pref}}(\theta)\Big|_{\theta=\theta^{\mathrm{distill}}}




            7:


           Step 3: Gradient-Descent Repair



            8:


           Update the distilled model parameters along the
preconditioned preference gradient:





\theta(\beta)\leftarrow\theta^{\mathrm{distill}}-\beta\,\Delta\theta.




            9:


           return  \theta(\beta)

Appendix B Training Procedure

For the post-training setting, we evaluate perplexity on the DollyEval test set, following the evaluation protocol used in [13]. This provides a direct measure of whether the repair procedure preserves the instruction-following capability acquired during distillation. For the pre-training setting, evaluating on the complete Pile corpus [9] is computationally prohibitive due to its scale; we therefore use OpenAI LAMBDA dataset [28] for perplexity evaluation.

For the trustworthiness datasets corresponding to machine ethics and truthfulness, we use an 80–20% train–test split. The training portion is used to construct the preference-based repair objective, while the held-out 20% split is used exclusively for evaluating the repaired model on the corresponding trustworthiness metric.

To estimate the curvature information required by our repair objective, we compute the EK-FAC factors using 10,000 samples from each candidate proxy dataset, namely S-NI, U-NI, FineWeb, and OpenWebText. Using the same number of samples across proxy datasets ensures that differences in repair behavior are primarily attributable to the choice of proxy distribution rather than to the amount of data used for curvature estimation.

For the repair step, the coefficient β is selected through hyperparameter tuning over {0.01,0.1,0.3,0.5,0.7}, which controls the magnitude of the parameter update. The preference-loss coefficient α is fixed to 0.1 across all experiments to maintain a consistent balance between the SFT and preference components of the repair objective. Unless otherwise specified, the same experimental protocol and hyperparameter configuration are used across model sizes and trustworthiness dimensions.

Appendix C Examples of Preferential dataset

C.0.1 Truthfulness

Note: [Question] denotes a placeholder for the corresponding question from the TruthfulQA dataset.

C.0.2 Machine Ethics