Research map / Large language models / Alignment and preferences
Leveraging Importance Sampling to Detach Alignment Modules from Large Language Models
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes the Residual Alignment Model (RAM), which frames LLM alignment as importance sampling with a frozen upstream proposal model and a small autoregressive residual aligner, trained at sequence level and decoded token-by-token with a low first-token latency.
Problem
Alignment of large pretrained LLMs usually requires retraining the full model, and existing decoupled alignment modules (e.g., Aligner) suffer from high first-token latency and out-of-distribution inputs from reference responses.
Approach
Formalizes residual alignment as importance sampling: the product of a frozen proposal LM and a separately trained autoregressive residual aligner defines the aligned distribution. The aligner is trained by a sequence-level SFT-derived loss and decoded via a propose-align-reduce token-level self-normalized importance sampling scheme that avoids waiting for full upstream responses.
Key results
- On UltraChat, Llama3.1-8B proposal with a 1B residual aligner reaches 6.46 LC / 3.68 WR (Qwen2.5-Eval) vs 2.34 / 1.60 for the Aligner variant, and the 8B warmed-up model alone gets 5.06 / 2.93.
- On Anthropic-HH, DPO 8B with a 1B residual aligner improves GPT4-Eval helpfulness LC from 68.03 to 72.22, and DPO 14B with a 3B aligner improves it from 74.53 to 75.39 (WR 74.25 to 74.75).
- First-token latency for Llama8B+R.A. 1B is 0.31 s versus 10.14 s for the Aligner variant and 0.022 s for SFT alone.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Add a Residual Aligner to the warmed-up proposal model | RAM with Llama3.1-8B / Llama3.2-1B · TL;DR Summarization | GPT4-Eval LC: 65.72 -> 70.19 | Helped |
| Add a Residual Aligner to the SFT proposal model | RAM with Llama3.1-8B / Llama3.2-1B · UltraChat | GPT4-Eval LC: 8.64 -> 10.57 | Helped |
| Add a Residual Aligner to the SFT proposal model | RAM with Qwen2.5-14B / Qwen2.5-3B · TL;DR Summarization | GPT4-Eval LC: 66.89 -> 71.56 | Helped |
| Add a Residual Aligner to DPO | Llama3.1-8B DPO · Anthropic-HH helpfulness | GPT4-Eval LC: 68.03 -> 72.22 | Helped |
| Add a Residual Aligner to DPO | Llama3.1-8B DPO · Anthropic-HH harmlessness | GPT4-Eval LC: 73.06 -> 79.89 | Helped |
| Add a Residual Aligner to DPO | Qwen2.5-14B DPO · Anthropic-HH helpfulness | GPT4-Eval LC: 74.53 -> 75.39 | Helped |
| Add a Residual Aligner to DPO | Qwen2.5-14B DPO · Anthropic-HH harmlessness | GPT4-Eval LC: 71.41 -> 74.76 | Helped |
| Replace RAM with Controlled Decoding | Warmed-up Llama3.1-8B · Anthropic-HH helpfulness | GPT4-Eval LC: 65.11 -> 58.08 | Hurt |
| Replace RAM with Controlled Decoding | Warmed-up Llama3.1-8B · Anthropic-HH harmlessness | GPT4-Eval LC: 67.63 -> 67.00 | Hurt |
| Use token-level RAM decoding instead of Aligner decoding | Llama8B · TL;DR Summarization | first-token latency (s): 10.14 -> 0.31 | Helped |
| Vary α from 1e-5 to 0.1 (ablation) | Llama3 RAM · Anthropic-HH | win rate: 1.07 standard deviation; 1.67% coefficient of variation | No clear effect |
| Vary α from 1e-5 to 0.1 (ablation) | Qwen2.5 RAM · Anthropic-HH | win rate: 1.33 standard deviation; 2.17% coefficient of variation | No clear effect |
Surprising findings
- The Aligner baseline underperforms even the unaligned SFT proposal model on Anthropic-HH, attributed to OOD reference-response inputs at inference.
Limitations
- Requires the proposal and residual aligner to share a vocabulary, limiting use across model families and closed-source models.
- Token-level sampling can add overhead beyond SFT in decoding (first-token latency 0.31 s vs 0.022 s for SFT).
- Performance gains from larger residual aligners are modest, and the method is evaluated only on two open model families.
Experimental setup
Datasets: UltraChat TL;DR Summarization Anthropic-HH
Benchmarks: AlpacaEval 2 TL;DR Summarization test split Anthropic-HH helpful-base and harmless-base test split
Metrics: length-controlled win rate win rate first-token latency
Baselines: Aligner SFT DPO Controlled Decoding warmed-up proposal model
Builds on: Aligner Residual EBM Controlled Decoding DPO
Closest papers by meaning
- Aligner: Efficient Alignment by Learning to Correct (NeurIPS 2024 · similarity 0.91)
- Principled Data Selection for Alignment: The Hidden Risks of Difficult Examples (ICML 2025 · similarity 0.90)
- Learn Your Reference Model for Real Good Alignment (ICLR 2025 · similarity 0.90)
- Restoring Calibration for Aligned Large Language Models: A Calibration-Aware Fine-Tuning Approach (ICML 2025 · similarity 0.89)
- Progressively Label Enhancement for Large Language Model Alignment (ICML 2025 · similarity 0.89)
- Clean First, Align Later: Benchmarking Preference Data Cleaning for Reliable LLM Alignment (NeurIPS 2025 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
