TL;DR
Large Language Models (LLMs) often struggle with complex instructions containing multiple constraints. This paper introduces "constraint back-translation," a novel, cost-effective method to generate high-quality datasets for training LLMs to better follow these intricate instructions. The proposed method, along with the resulting CRAB dataset and a reverse training technique, significantly improves LLM performance on complex instruction-following benchmarks.
What Problem Does This Paper Address?
Modern Large Language Models (LLMs) have demonstrated remarkable capabilities, yet they falter when faced with instructions that include multiple, specific constraints. These constraints can range from length requirements and specific formatting to stylistic nuances and content mandates. Existing approaches to improve this "complex instruction following" often involve synthesizing new datasets by having advanced LLMs generate responses to complex instructions. However, this method is limited by the very capability it aims to improve – advanced LLMs themselves struggle to perfectly follow complex instructions, leading to noisy data and requiring laborious filtering. This paper addresses the need for a more efficient and effective way to generate high-quality training data for complex instruction following, reducing reliance on the already-limited capabilities of advanced LLMs.
Methods
The core innovation of this paper is constraint back-translation. Instead of directly generating complex instruction-response pairs, this method leverages existing high-quality, unconstrained instruction-response pairs. The key insight is that the responses in these existing datasets often implicitly satisfy certain constraints. The process involves:
- Data Collection: Gathering a large set of high-quality instruction-response pairs from existing datasets.
- Constraint Back-translation: Using an advanced LLM (Llama3-70B-Instruct) to infer and generate the constraints that the existing response already satisfies. This is done by providing the LLM with the original instruction and response, and asking it to identify implicit constraints.
- Constraint Combination: Combining these inferred constraints with the original instruction to create a new, complex instruction-response pair.
To further enhance LLM understanding, the authors also propose a reverse training technique. This involves training the LLM to predict the constraints given an instruction-response pair, which is hypothesized to deepen the model's comprehension of constraints. The final training objective is a combination of standard supervised fine-tuning (forward training) and this reverse training.
Datasets
- Training Data: The authors introduce a new dataset called CRAB (Complex Response-Aligned Benchmark). CRAB is constructed using the constraint back-translation method and comprises 13,500 complex instruction-response pairs. The seed data for CRAB was sampled from existing high-quality instruction-following datasets, including:
- Alpaca GPT4
- Orca Chat
- Evol Instruct
- OpenAssistant
- ShareGPT (used for mixture training)
- UltraFeedback (used for DPO training)
- Evaluation Datasets: The models were evaluated on:
- IFEval: A benchmark with 541 instructions, primarily focusing on strict lexical and formatting constraints, automatically validated by Python scripts.
- FollowBench: A fine-grained benchmark with 820 instructions across various NLP tasks, categorized by difficulty (L1-L5) and constraint types (content, situation, style, format, example, mixed). It is evaluated using Python scripts or GPT-4.
- AlpacaEval 2.0: Used to assess general instruction-following capabilities.
Key Insights and Ideas
- Implicit Constraints are Abundant: High-quality LLM responses often implicitly adhere to constraints, even if not explicitly stated in the prompt. This observation is the foundation of constraint back-translation.
- Cost-Effective Data Generation: Constraint back-translation significantly reduces the cost and complexity of generating training data for complex instructions, as it doesn't require an LLM to follow complex instructions during generation, only to identify them.
- Reverse Training Enhances Comprehension: Training LLMs to generate constraints from instruction-response pairs (reverse training) appears to improve their overall understanding of constraints, leading to better performance.
- Response Quality Matters: The authors hypothesize that generating responses without constraints first, and then adding constraints, leads to higher quality content than generating responses conditioned on both instruction and constraints simultaneously. This is supported by their analysis showing that responses generated with constraints can sometimes be less engaging and understandable.
Key Results
- Significant Improvement: Models trained on CRAB (Llama3CRAB, MistralCRAB) significantly outperformed their base models and other open-source models on complex instruction-following benchmarks like IFEval and FollowBench.
- Competitive Performance: Llama3CRAB and MistralCRAB achieved competitive, and in some cases superior, performance compared to specialized models like Conifer, which were trained using more traditional complex instruction-following data generation pipelines.
- Generalization: The proposed method also showed improvements in general instruction-following capabilities, as evidenced by AlpacaEval 2.0 results.
- DPO Boost: Further training with Direct Preference Optimization (DPO) consistently improved model performance.
- Ablation Studies: Removing any of the key components (reverse training, forward training, in-context demonstrations) led to a performance drop, validating the effectiveness of the proposed approach.
Limitations and Future Work
- Constraint Diversity: For certain constraint types, like "style," the diversity of generated constraints is limited by the diversity of the original responses in the seed data. If the original responses lack stylistic variety, the generated style constraints will also be limited.
- Larger Models: The study was conducted with moderate-sized LLMs due to computational constraints. The authors believe using larger base models could yield even more advanced LLMs for complex instruction following.
- Future Work:
- Combining constraint back-translation with other data generation methods to improve diversity for specific constraint types (e.g., style).
- Exploring DPO data generation specifically for complex instruction following.
- Investigating the impact of using larger base models.
Summary updated