Abstract
Fine-tuning large language models (LLMs) requires high-quality, diverse instruction data. Existing automated methods often suffer from diversity collapse and task drift. We present Task-Centric Instruction Augmentation (TCIA), a framework that decomposes instructions into queries and constraints, using a search-based approach to generate variants. TCIA maintains high task relevance and diversity across multiple iterations, leading to significant performance gains on specialized tasks without compromising general capabilities.
Introduction
Fine-tuning large language models (LLMs) is a balancing act between general-purpose utility and task-specific mastery. While automated methods like WizardLM generate massive synthetic datasets, they frequently encounter two major pitfalls: diversity collapse, where instructions become repetitive, and task drift, where instructions lose relevance to the original objective over successive iterations.
Researchers at Zoom Communications have introduced TCIA (Task-Centric Instruction Augmentation) to address these challenges. TCIA systematically expands instruction datasets by decomposing prompts into a "query + constraints" format and employing a search-based generation approach. This method prevents task drift, yielding an 8.7% average performance boost on real-world tasks and occasionally outperforming models like GPT-4o in specialized domains.
Methodology
TCIA treats instruction generation as a structured search problem in a discrete space of queries and constraints. The framework follows a six-step pipeline:
- Instruction State Decomposition: Natural language instructions are broken down into a Base Query ($Q$) and a set of Constraints ($C$). For instance, "Write a concise 200-word travel ad" becomes $Q$: "Write a travel ad" and $C$: ["Must be concise", "Under 200 words"].
- Instruction Database Construction: A large pool of $(Q, C)$ pairs is built from public datasets like Tulu-3.
- Breadth-First Search (BFS) Augmentation: To create new instructions, the system performs three operations on a seed instruction: Add a constraint from a similar task, Remove a constraint, or Replace a constraint with a semantically similar one.
- Back-to-Natural-Language: An LLM converts the modified constraint sets back into fluid, human-readable prompts.
- Validation: A critique LLM ensures the new prompt is logically consistent and includes all intended constraints.
- Multi-LLM Sampling & Filtering: Top-tier models (e.g., Claude 3.5, GPT-4o) generate responses, which are then filtered by an "LLM-as-a-Judge" to ensure high quality.
Results and Analysis
TCIA demonstrates superior control over the augmentation process by operating in a discrete space. This approach effectively mitigates the issues of repetitive templates and relevance loss seen in prior methods.
As shown in the figure above, TCIA maintains significantly higher diversity and task relevance compared to WizardLM as the number of augmentation "hops" increases. While WizardLM's on-task ratio drops to approximately 40% by the third hop, TCIA remains near 100%.
Key performance highlights include:
- Performance Gains: Llama-3.1-8B models fine-tuned with TCIA data achieved an 8.7% average improvement over baselines.
- Specialized Excellence: In meeting-related tasks, the TCIA-tuned 8B model outperformed GPT-4o.
- Generalization: TCIA-tuned models maintained or improved scores on general benchmarks like MMLU-Pro, avoiding the common "alignment tax."
- Constraint Adherence: TCIA models achieved an 87.6% pass rate for strict formatting rules, compared to 29.4% for the baseline.
Conclusion
TCIA offers a robust framework for generating high-fidelity synthetic data that remains aligned with specific task objectives. Future work will explore extending TCIA to multi-turn dialogues, automating the refinement of ambiguous seed prompts, and applying the "query + constraints" logic to multimodal tasks involving image and video.
Summary updated