Abstract
Large Language Model (LLM) alignment often relies on synthetic data generation, yet standard methods like Self-Instruct frequently suffer from redundancy and poor coverage of rare safety risks. We present DATA ADVISOR, a framework that introduces dataset-level awareness into the generation process. By dynamically summarizing the current dataset and identifying underrepresented "weaknesses," DATA ADVISOR proactively guides the generator to fill critical gaps. Our experiments demonstrate significant improvements in safety alignment across multiple benchmarks without degrading general model utility.
Introduction
The alignment of Large Language Models (LLMs) with human values is a critical step in their deployment. A common strategy involves using a teacher LLM to generate large-scale instruction-following or safety-oriented datasets, a process exemplified by the "Self-Instruct" paradigm. However, this approach is often "blind": the data generator lacks a global perspective on the dataset it is creating. This leads to two primary failures: the repetition of common biases and the neglect of "long-tail" safety risks, such as specific forms of cyberbullying or complex legal issues. While post-generation filtering can mitigate some risks, it is inefficient, often discarding the majority of generated content.
Methodology
DATA ADVISOR addresses these issues by transforming data generation into a strategic, self-aware loop. The framework consists of three iterative stages:
- Data Summarization: The system maintains a running summary of the dataset's thematic coverage. To ensure scalability, this summary is updated incrementally as new batches of data are produced.
- Weakness Identification: An "Advisor" LLM evaluates the summary against predefined safety principles. It identifies specific categories or scenarios that are missing or underrepresented (e.g., "spatiotemporal manipulation").
- Data Generation with Advice: The data generator is then prompted with specific "Advice" to target these identified weaknesses, moving from generic generation to controlled, exploratory generation.
Experimental Setup
The framework was evaluated on its ability to improve safety alignment. We generated 10,000 safety alignment data points using DATA ADVISOR and fine-tuned three 7B-parameter base models: Mistral-v0.1, Llama2, and Falcon. Performance was measured using the CatQA (550 questions) and BeaverTails (700 questions) safety benchmarks. To ensure general capabilities were preserved, we also evaluated the models on the Massive Multitask Language Understanding (MMLU) benchmark.
Results and Discussion
Models trained with DATA ADVISOR consistently outperformed those using standard Self-Instruct data. On average, safety scores increased by 10.1 points on CatQA and 4.6 points on BeaverTails.
As shown in the results, the framework is particularly effective in high-risk, fine-grained categories. For instance, in "Economic Harm" and "Illegal Activity," the performance gap between DATA ADVISOR and the baseline reached up to 24%. Crucially, this improvement in safety did not come at a cost to general intelligence; in fact, models saw a slight average increase of +1.6 in MMLU utility scores. This suggests that a more diverse and comprehensive safety dataset may enhance overall instruction-following and reasoning capabilities.
Key Insights
The success of DATA ADVISOR highlights the importance of dataset-level awareness. By forcing the generator to explore the fringes of the problem space, the framework achieves significantly higher n-gram diversity (up to 50% higher than standard methods), which correlates strongly with resistance to "jailbreak" attempts. The system's proactive nature makes it far more efficient than reactive filtering methods.
Conclusion and Future Work
DATA ADVISOR represents a shift from instance-level quality control to dataset-level strategic planning. While currently validated on 7B models for safety alignment, future research should explore its scalability to frontier models (70B+) and its applicability to other domains such as medical or legal instruction tuning. Additionally, incorporating human-in-the-loop feedback or a committee of advisors could further refine the weakness identification process.
Summary updated