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

Aligners: Decoupling LLMs and Alignment

Lilian Ngweta, Mayank Agarwal, Subha Maity, Alex Gittens, Yuekai Sun, Mikhail Yurochkin

Abstract

Traditionally, aligning Large Language Models (LLMs) with human values requires expensive, model-specific fine-tuning that often degrades general performance—a phenomenon known as the "alignment tax." This paper introduces a modular framework that decouples alignment from the base LLM. By training small, portable "aligner" models and "inspectors," the system post-processes the outputs of any LLM to ensure they are ethical, factual, and helpful. Our results demonstrate that small aligners (e.g., Phi-2) can successfully align much larger models (e.g., Llama-2-70B) and even outperform models that underwent extensive human-centric fine-tuning.

Introduction

As Large Language Models (LLMs) become increasingly integrated into daily applications, ensuring their safety and helpfulness is paramount. Current alignment techniques, such as Reinforcement Learning from Human Feedback (RLHF) and Supervised Fine-Tuning (SFT), are resource-intensive and rigid. They must be repeated for every new model and every new safety criterion. Furthermore, these methods often inadvertently reduce a model's reasoning capabilities or general performance.

This research proposes a paradigm shift: treating alignment as a separate, modular service applied to model outputs rather than an intrinsic property of the model itself. This approach aims to provide a cost-effective, flexible, and robust solution to the alignment problem.

The Aligner Framework

The proposed pipeline consists of three core stages designed to transform potentially unsafe LLM outputs into aligned responses.

Figure 1: The proposed pipeline for decoupling alignment from LLMs, involving synthetic data generation, training of modular inspectors and aligners, and iterative post-processing.

1. Synthetic Data Generation

To bypass the high costs of human labeling, the authors employ a "teacher" model (Falcon 40B) to generate training data. Using a "Topic-Guided Red-Teaming" approach, they create triples consisting of an input prompt ($x$), a misaligned response ($y$), and a corrected response ($y'$). This dataset, containing over 100,000 samples, covers ethical, factual, and helpfulness criteria.

2. Aligner and Inspector Models

  • Aligner Models: Small LLMs (ranging from GPT-2 Large to Phi-2) are fine-tuned to act as "correctors." They take the original prompt and the unsafe response as input to generate a revised version.
  • Inspector Models: BERT-based binary classifiers detect specific types of misalignment. They act as gatekeepers, scoring responses to determine if intervention is necessary.

3. The Aligner Squad

In practice, multiple specialized aligners (e.g., Ethical, Factual) work in tandem. Inspectors determine which aligner is required for a given output. If a response is flagged, the appropriate aligner modifies it, and the inspectors re-evaluate the new version. This iterative process continues until the response meets the safety criteria or a maximum iteration limit is reached.

Experimental Results

The effectiveness of the "Aligner Squad" was evaluated using both synthetic benchmarks and the public BeaverTails-Evaluation dataset, which covers 14 distinct harm categories.

Figure 6: Performance comparison of aligner models against various baselines. The top table shows win rates across different model sizes, while the bottom chart details performance across specific harm categories.

As shown in Figure 6, the aligner squad achieved significant performance gains. When evaluated by GPT-4, responses processed by a Phi-2-based aligner squad achieved win rates of over 70% against base Falcon-40B and Llama-2-13B models. Notably, these small aligners often produced safer and more helpful responses than models specifically tuned for chat, such as Llama-2-13B-Chat. The data also indicates a clear scaling trend: as the size of the underlying aligner model increases, so does the quality of the alignment.

Key Insights and Discussion

  • Transferability: A primary finding is that alignment is transferable. Small models trained on synthetic data can effectively align massive models they never encountered during training.
  • Mitigating the Alignment Tax: Because the system uses inspectors to only modify responses when necessary, the base model's original reasoning and performance remain untouched for safe prompts.
  • Modularity and Flexibility: This framework allows for "plug and play" alignment. New safety concerns can be addressed by training a small, specific aligner rather than retraining a massive base model.
  • Cross-Style Improvement: Interestingly, the authors observed that applying an "ethical" aligner often improved the "helpfulness" of a response, suggesting a positive correlation between different alignment styles.

Limitations and Future Work

While promising, the approach has limitations. The quality of the aligner is inherently capped by the quality of the synthetic data from the teacher model. Additionally, running multiple models (LLM + Inspectors + Aligners) introduces inference latency. Future work will focus on expanding the "squad" to cover a broader range of harm categories and addressing deep-seated factual hallucinations, which remain a challenge for smaller models.

Conclusion

Decoupling alignment from LLMs offers a scalable and efficient path toward safer AI. By utilizing a modular squad of small aligners and inspectors, developers can ensure safety without sacrificing the core capabilities of large-scale models, providing a flexible framework for the evolving landscape of AI safety requirements.

Summary updated

BibTeX
@inproceedings{ngweta2024aligners,
  author = {Lilian Ngweta and Mayank Agarwal and Subha Maity and Alex Gittens and Yuekai Sun and Mikhail Yurochkin},
  title = {{Aligners: Decoupling LLMs and Alignment}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.808},
}
Figure