Abstract
REALIGN (Reformatted Alignment) is a novel approach to large language model alignment that prioritizes data quality over quantity. By reformatting existing instruction-tuning datasets to adhere to structured, human-preferred formats and verifying facts through external knowledge retrieval, REALIGN significantly enhances model performance. Experimental results show that LLaMA-2-13B’s math reasoning on GSM8K improved from 46.77% to 56.63%, demonstrating that structured presentation can unlock latent reasoning capabilities within pre-trained models.
Introduction
The alignment phase of Large Language Model (LLM) development typically relies on expensive human annotations or large-scale distillation from superior models. However, human data is hard to scale, and distilled data often suffers from hallucinations and inconsistent formatting. This paper introduces REALIGN, a method that improves alignment by upgrading the quality of existing datasets through structured reformatting and factual grounding. Instead of generating new data from scratch, REALIGN optimizes the presentation of existing knowledge.
The REALIGN Framework
The REALIGN approach operates on the principle that the necessary knowledge often exists within the base model or the source dataset but is obscured by poor presentation. The framework consists of three primary stages:
- Criteria Definition: Researchers identified 46 task categories and established "gold standard" formats for each. For instance, math problems are required to follow a structure of Analysis, Solution, Explanation, and Conclusion.
- Retrieval Augmentation (RAG): To mitigate hallucinations in knowledge-intensive tasks, the system retrieves external evidence via the Google Search API. This ensures that the reformatted responses are grounded in verifiable facts.
- Reformatting: Using a rewriter model (such as GPT-3.5), the original responses are transformed to meet the defined criteria while incorporating retrieved evidence. An adaptive rewriting mechanism ensures that responses already meeting the criteria are preserved to maintain original intent.
Format as a Reasoning Catalyst
A key finding of the REALIGN study is that the structure of a response significantly impacts a model's reasoning ability. By reformatting math responses into a structured sequence—Analysis -> Solution -> Explanation -> Conclusion—models like LLaMA-2-13B showed a nearly 10% improvement in accuracy. This suggests that structured formats help models learn underlying logic more effectively during the fine-tuning process, acting as a catalyst for reasoning rather than just a stylistic choice.
Key Results and Insights
The authors applied REALIGN to five popular datasets, including Open-Platypus, No Robots, Alpaca, GSM8K, and MATH, evaluating them across benchmarks like AlpacaEval, MT-Bench, and BBH.
- Performance Gains: REALIGN boosted LLaMA-2-13B’s GSM8K accuracy from 46.77% to 56.63% and Mistral-7B’s from 61.25% to 68.16% without adding any new training examples.
- The 5% Scaling Law: The authors discovered that using just 5% of the ReAligned Alpaca dataset achieved 67% of the total alignment gains. This indicates that models learn stylistic and structural preferences very efficiently, leveraging pre-existing knowledge once the output format is clarified.
- Factuality and Readability: Both human and automated evaluations (GPT-4) confirmed that ReAligned responses are more factual and significantly easier to read than original dataset responses.
- No "Alignment Tax": Unlike many alignment methods that degrade raw knowledge performance, REALIGN showed little to no negative impact on knowledge benchmarks like BBH and AGIEval.
Conclusion
REALIGN demonstrates that data quality—specifically in terms of format and factuality—is a more potent lever for model alignment than sheer data volume. By transforming existing datasets into structured, grounded instruction sets, developers can unlock significant latent capabilities in LLMs while reducing the noise associated with traditional synthetic data generation. Future work will look to extend this framework to multi-turn conversations and deeper mechanistic analysis of why these formats trigger better reasoning.
Summary updated