Alignment-Aware Model Adaptation via Feedback-Guided Optimization

Gaurav Bhatt, Aditya Chinchure, Jiawei Zhou, Leonid Sigal

Abstract: Fine-tuning is the primary mechanism for adapting foundation models to downstream tasks; however, standard approaches largely optimize task objectives in isolation and do not account for secondary yet critical alignment objectives (e.g., safety and hallucination avoidance). As a result, downstream fine-tuning can degrade alignment and fail to correct pre-existing misaligned behavior. We propose an alignment-aware fine-tuning framework that integrates feedback from an external alignment signal through policy-gradient-based regularization. Our method introduces an adaptive gating mechanism that dynamically balances supervised and alignment-driven gradients on a per-sample basis, prioritizing uncertain or misaligned cases while allowing well-aligned examples to follow standard supervised updates. The framework further learns abstention behavior for fully misaligned inputs, incorporating conservative responses directly into the fine-tuned model. Experiments on general and domain-specific instruction-tuning benchmarks demonstrate consistent reductions in harmful and hallucinated outputs without sacrificing downstream task performance. Additional analyses show robustness to adversarial fine-tuning, prompt-based attacks, and unsafe initializations, establishing adaptively gated alignment optimization as an effective approach for alignment-preserving and alignment-recovering model adaptation.

Introduction

When fine-tuning Large Language Models (LLMs) for specific downstream tasks, such as medical Q&A or specialized coding, the standard approach is Supervised Fine-Tuning (SFT). While effective for task performance, SFT often ignores critical "alignment" properties like safety and factual truthfulness. This narrow optimization can cause models to "forget" safety guardrails or become more prone to hallucinations.

A major challenge in addressing this is the conflicting gradient problem. If training data contains a harmful request, the SFT objective pushes the model to answer, while an alignment objective pushes it to refuse. Fixed-weight penalties often fail, either under-regularizing (allowing harmful behavior) or over-regularizing (degrading task performance).

Methodology: The AWARE Framework

To solve this, we introduce AWARE (Adaptive Weighted Alignment REgularization). This framework integrates alignment feedback directly into the fine-tuning process without requiring curated safety datasets.

Overview of the AWARE framework architecture, illustrating the flow from input to adaptive gating and loss calculation.

Core Components

  1. Black-Box Verifier Feedback: During training, the model generates $k$ candidate responses. An external, frozen LLM (the verifier) scores these for alignment properties like safety or factuality.
  2. Adaptive Soft-Gating: Instead of a fixed weight, AWARE uses the mean and variance of verifier scores across the $k$ samples to calculate a dynamic weight ($\beta$).
  3. Well-Aligned: If the model is confident and aligned (high mean, low variance), the alignment weight drops, allowing standard SFT.
  4. Uncertain/Misaligned: If the model is uncertain or misaligned (low mean, high variance), the alignment weight increases to force policy adjustment.
  5. Learned Abstention: For persistently misaligned inputs, AWARE overrides the gradient to teach the model "creative abstention"—context-aware refusals generated by the verifier.

Experimental Results and Analysis

We evaluated AWARE on general instruction-following (ALPACA) and biomedical (BIO-INSTRUCT) tasks. To test safety, we intentionally poisoned fine-tuning data with unsafe samples from BEAVERTAILS and evaluated on the HEX-PHI benchmark.

Analysis of distributional shifts in alignment rewards before and after fine-tuning, alongside safety performance comparisons.

Key Findings

  • Safety Recovery: In adversarial setups with 10% harmful data, standard SFT resulted in a 92.5% Harmful Score (HS). AWARE reduced this to 33.7% while maintaining high task quality (BERTScore of 35.7), outperforming baselines like DPO-C.
  • Hallucination Reduction: On Llama-3.2-3B, AWARE achieved the lowest hallucination rates (~12%) compared to standard SFT and RL-based baselines like TruthRL.
  • Variance as a Signal: By utilizing the variance of rewards, AWARE identifies when a model is uncertain about its safety, preventing the optimization from trusting noisy signals.
  • Sample Efficiency: AWARE achieves stable alignment with as few as $k=3$ or $4$ samples, making it more efficient than traditional RL methods like GRPO.

Conclusion

AWARE provides a robust mechanism for preserving and recovering alignment during downstream adaptation. While it introduces some computational overhead due to on-policy generation, its ability to dynamically balance task learning with safety feedback makes it a powerful tool for developing reliable foundation models. Future work will focus on improving computational efficiency and robustness against adversarial feedback.

Summary updated

BibTeX
@misc{bhatt2026alignment,
  author = {Gaurav Bhatt and Aditya Chinchure and Jiawei Zhou and Leonid Sigal},
  title = {{Alignment-Aware Model Adaptation via Feedback-Guided Optimization}},
  year = {2026},
  eprint = {2602.02258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.02258},
}
Figure