QA-LIGN: Aligning LLMs through Constitutionally Decomposed QA

Jacob Dineen, Aswin Rrv, Qin Liu, Zhikun Xu, Xiao Ye, Ming Shen, Zhaonan Li, Shijie Lu, Chitta Baral, Muhao Chen, Ben Zhou

TL;DR

This paper introduces QA-LIGN, a novel framework for aligning Large Language Models (LLMs) that replaces opaque, monolithic reward signals with interpretable, principle-specific evaluations. By decomposing alignment goals into structured natural language programs, QA-LIGN enables a "draft, critique, revise" training process that significantly improves LLM safety and helpfulness without sacrificing core capabilities, outperforming existing methods.

What Problem Does This Paper Address?

Aligning LLMs with desired behaviors like helpfulness, honesty, and harmlessness is crucial for their safe and effective deployment. Traditional methods, like Reinforcement Learning from Human Feedback (RLHF), rely on scalar rewards derived from preference judgments. However, these rewards are often "black boxes," entangling multiple objectives into a single, opaque score. This lack of transparency makes it difficult to understand why a model succeeds or fails, hinders targeted improvements, and can lead to unintended trade-offs, such as models refusing benign requests to maximize harmlessness. The paper addresses this challenge by proposing a method to make the reward signal interpretable and modular, allowing for more precise and effective alignment.

Methods

QA-LIGN introduces a three-stage framework:

  1. Program Generation: A strong LLM is prompted with a "constitution" (a set of principles like Harmlessness, Honesty, Helpfulness) to generate a hierarchical evaluation program. This program consists of structured, natural language questions (binary and graded) that assess specific dimensions of an LLM's response. These programs are fixed and do not require human annotation beyond initial generation and light editing.
  2. Think SFT Priming: The LLM policy is fine-tuned on a small dataset of "draft, critique, revision" examples. The critique is generated by applying the QA-LIGN evaluation program to the draft response. This stage teaches the model the self-reflection and revision workflow.
  3. Symbolic-Reward RL: The model is further trained using Group Relative Policy Optimization (GRPO). During this stage, the QA-LIGN program evaluates both the initial draft and the revised response. The multi-axis scores from the program are aggregated into a single scalar reward, which drives the policy updates. A safety-first constraint is incorporated into the reward aggregation to prioritize harmlessness. An improvement bonus is also added to incentivize genuine self-correction.

Datasets

  • Training Data: 1600 "vanilla harmful" prompts from the WildJailbreak dataset were used for training. An additional 500 prompts from the same dataset were used for the SFT stage.
  • Evaluation Datasets:
    • Safety Benchmarks: AdvBench, JailbreakBench, ALERT, MaliciousInstruct, StrongREJECT, SORRY-Bench, HarmBench (with seven attack methods), and UAT.
  • General Capabilities: GSM8K (math), CommonsenseQA (CSQA), and ARC-Challenge (science).
  • False Refusal Rate: SGX and OR-Bench (safe-prompt suites).

No new benchmarks were introduced; existing ones were used to evaluate performance across safety, helpfulness, and general capabilities.

Key Insights and Ideas

  • Interpretability Enhances Alignment: The core idea is that making reward signals transparent and modular, rather than opaque, leads to more effective LLM alignment.
  • Decomposition is Key: Breaking down broad principles (like harmlessness) into specific, natural language questions allows for fine-grained feedback and targeted improvements.
  • Draft-Reflect-Revise Workflow: Integrating a self-critique and revision step directly into the training pipeline is crucial for improving safety without resorting to blanket refusals.
  • Pareto Optimality Achieved: QA-LIGN demonstrates that it's possible to achieve strong safety performance and maintain high helpfulness, challenging the notion of an inherent safety-helpfulness trade-off.
  • Sample Efficiency: QA-LIGN achieves competitive safety performance with significantly fewer training steps compared to other methods.

Key Results

  • Safety: QA-LIGN reduced attack success rates (ASR) by up to 68.7% on generic safety benchmarks and achieved 50.9% ASR on HarmBench, outperforming DPO and other GRPO variants. It approached the performance of DPO trained for 8x more steps.
  • False Refusals: QA-LIGN maintained very low false refusal rates (FRR) of 0.67%, significantly lower than DPO baselines.
  • General Capabilities: QA-LIGN matched or exceeded the performance of uncensored baselines and DPO variants on GSM8K, CSQA, and ARC-Challenge, demonstrating minimal "alignment tax."
  • Human Evaluation: 98.2% of self-corrections generated by QA-LIGN were judged as genuine improvements by human evaluators.

Limitations and Future Work

  • Computational Overhead: The symbolic reward decomposition approach incurs substantial computational cost due to multiple LLM queries per rollout. This can hinder scalability to larger datasets or longer dialogues. Careful engineering is needed to make it practical at scale.
  • Reliance on LLM-as-Judge: The method's efficacy depends on the consistency and alignment of the LLM judge. There's a risk of reward hacking if the policy learns to exploit idiosyncrasies of the judge's criteria. However, the large number of checks (167) makes simultaneous exploitation challenging.
  • Rigidity of Programs: Fixed symbolic QA programs might miss problematic behaviors or failure modes not covered by the questions.
  • Draft-Revision Dependency: While QA-LIGN encourages improvement, harmful content in initial drafts might persist with limited training. Longer training runs are expected to mitigate this.
  • Future Work: The authors suggest that with longer training horizons, drafts would improve, leading to even better revisions. They also note that QA-LIGN can be adapted for deployment-time use by omitting intermediate outputs. The framework's modularity allows for easy reweighting of principles or introduction of new dimensions.

Summary updated

BibTeX
@inproceedings{dineen2025qa,
  author = {Jacob Dineen and Aswin RRV and Qin Liu and Zhikun Xu and Xiao Ye and Ming Shen and Zhaonan Li and Shijie Lu and Chitta Baral and Muhao Chen and Ben Zhou},
  title = {{QA-LIGN: Aligning LLMs through Constitutionally Decomposed QA}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=n4ylFWzDSw},
}
Figure