NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enhancing Trustworthiness of Fine-Tuned LLMs via Regularized Subset Selection

Kumar Shubham, Nishant Sharma, Karn Tiwari, Prathosh ApICLR 2026

TL;DR

Supervised fine-tuning (SFT) often makes Large Language Models (LLMs) more helpful but less trustworthy, inadvertently introducing biases or untruths. This paper proposes a two-stage "surgical" repair method that identifies the specific training samples responsible for these failures and uses a specialized gradient update to neutralize their influence. This approach improves trustworthiness by up to 21% while keeping general performance and fluency virtually untouched.

The Problem: The Hidden Cost of Fine-Tuning

When we fine-tune an LLM on a specific dataset (Supervised Fine-Tuning or SFT), the primary goal is usually better task performance, measured by lower "perplexity" (how well the model predicts the next word). However, SFT is a double-edged sword: even seemingly "benign" datasets can contain subtle patterns that inadvertently teach the model to be biased, unethical, or untruthful.

Traditionally, fixing these issues requires Reinforcement Learning from Human Feedback (RLHF) or full retraining on "cleaner" data. Both are prohibitively expensive, requiring massive compute resources and human-annotated datasets. Furthermore, these methods often suffer from an "alignment tax," where the model becomes safer but significantly less capable or fluent. The authors tackle the challenge of "data debugging"—finding and fixing the specific parts of the training data that caused the trust issues without starting from scratch.

Methods: A Two-Stage Surgical Repair

The authors propose a compute-efficient framework to repair post-SFT models, enhancing trustworthiness while preserving downstream performance.

Overview of the proposed two-stage framework for repairing LLMs.

Stage 1: Regularized Subset Selection

  • Data Attribution: Using a technique called EK-FAC (Eigenvalue-Corrected Kronecker Factored Approximate Curvature), the authors trace failures in trustworthiness (e.g., a biased response) back to the specific training samples that likely caused them.
  • DPP-based Regularization: Instead of just picking the "worst" samples, they use Determinantal Point Processes (DPP). This ensures the selected subset of "bad" data is diverse. If you only select many similar bad samples, the repair process can become unstable and "over-correct" in one specific direction, hurting the model's general knowledge.

Stage 2: Model Repairing via PBRF

  • The model is updated using gradient ascent on the selected "detrimental" subset. Essentially, the model is told to "unlearn" these specific examples by increasing their loss.
  • To prevent the model from collapsing, they use the Proximal Bregman Response Function (PBRF). This framework acts as a constraint, ensuring the updated model stays functionally close to the original post-SFT model, thereby preserving its low perplexity and general reasoning capabilities.

Experimental Setup

  • Training Data: The static subset of the Anthropic HH (Helpful-Harmless) dataset.
  • Trustworthiness Evaluation: TruthfulQA (truthfulness), MMLU Commonsense subset (machine ethics), and DecodingTrust (stereotypical bias).
  • General Capabilities: GSM8K (mathematical reasoning) and the full MMLU (multi-domain knowledge).
  • Models Tested: The Pythia family (1.4B to 6.9B) and Qwen2.5 family (1.5B to 7B).

Key Insights

  • The Neighborhood Effect: The authors formally demonstrate that increasing the loss on one detrimental sample also increases the loss on its "neighbors" in the embedding space. This justifies why a small, diverse subset is enough to clean up large swaths of the model's behavior.
  • Diversity is Stability: Simply targeting the most harmful samples isn't enough. Without the DPP-based diversity constraint, the repair process often causes the model's perplexity to spike, effectively "breaking" its ability to speak fluently.
  • Trust Trade-offs: Interestingly, truthfulness and machine ethics are sometimes negatively correlated. Improving a model's adherence to ethical norms can occasionally make it slightly less "truthful" on certain edge cases, highlighting the inherent difficulty of perfect alignment.

Key Results

  • Significant Trust Gains: The method achieved up to a 21.7% improvement in truthfulness (Qwen2.5-7B) and an 18.2% reduction in stereotypical bias (Pythia-6.9B).
  • Minimal "Alignment Tax": Across all tests, the impact on perplexity was kept below 1%, and general reasoning scores (GSM8K/MMLU) remained stable with over 99% agreement between the original and repaired models.
  • High Efficiency: While retraining can take hours or days, this repair process takes minutes. For a Pythia-1.4B model, the repair on 100 samples took roughly 11 seconds, compared to over 6 hours for retraining.
  • Superiority over Baselines: The PBRF-based repair consistently outperformed standard gradient ascent and KL-regularized methods in balancing trust and performance.

Limitations and Future Work

The method relies heavily on having high-quality "trustworthiness" evaluation sets to identify detrimental training samples; if an evaluation set misses a specific bias, the method cannot find the responsible data. Additionally, while tested on models up to 7B parameters, the behavior of much larger models (70B+) remains to be validated. Future research could also explore how this method handles intentional "data poisoning" or adversarial attacks designed to bake harmful behaviors into a model.

Summary updated

BibTeX
@inproceedings{shubham2026enhancing,
  author = {Kumar Shubham and Nishant Sharma and Karn Tiwari and Prathosh AP},
  title = {{Enhancing Trustworthiness of Fine-Tuned LLMs via Regularized Subset Selection}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=cXo4vQudaa},
}
Figure