TAG-INSTRUCT: Controlled Instruction Complexity Enhancement through Structure-based Augmentation

He Zhu, Zhiwen Ruan, Junyou Su, Xingwei He, Yun Chen, Wenjia Zhang, Guanhua Chen · DOI

Abstract

Instruction tuning is critical for aligning Large Language Models (LLMs) with human intent. However, current methods for increasing instruction complexity, such as Evol-Instruct, often rely on vague prompts like "make this harder," which lack precision and introduce linguistic noise. This paper presents TAG-INSTRUCT, a framework that operates in a structured "tag space" to enhance instruction complexity. By compressing instructions into semantic tags and using Reinforcement Learning (RL) to strategically expand them, TAG-INSTRUCT produces high-quality synthetic data that significantly improves model performance across standard benchmarks.

1. Introduction

To develop high-performing LLMs, researchers require instruction-tuning datasets that are diverse, complex, and challenging. The prevailing industry standard, Prompt-based Augmentation (e.g., Evol-Instruct), utilizes a "teacher" model to rewrite instructions into more difficult versions. While effective, this approach suffers from two primary flaws: a lack of quantifiable control over difficulty and the presence of "auxiliary content"—fluff in raw text that obscures the core semantic task. TAG-INSTRUCT addresses these issues by shifting the augmentation process from raw text to a structured semantic representation.

2. The TAG-INSTRUCT Framework

TAG-INSTRUCT introduces a three-stage "Compress & Operation" pipeline designed to isolate and enhance the semantic core of an instruction.

2.1 Semantic Encoding (Compress)

Instead of manipulating raw tokens, the system uses an LLM to extract "essential tags" that represent the core concepts of an instruction. For example, a prompt regarding website development might be compressed into a tag set such as {book_listing, author_info, web_develop}. This abstraction removes linguistic noise and focuses the augmentation on the underlying task structure.

2.2 RL-guided Tag Expansion (Operation)

The core innovation of TAG-INSTRUCT is the use of Reinforcement Learning to guide the expansion of these tag sets. The authors utilize Shapley values—a concept from cooperative game theory—to quantify the specific contribution of each tag to the complexity of a model's response. A policy model is then trained using Direct Preference Optimization (DPO) to select new, high-utility tags (e.g., adding responsive_design or user_authentication) that maximize the complexity of the resulting instruction.

2.3 Instruction Synthesis (Decode)

In the final stage, the expanded tag set and the original instruction are provided to a teacher model. The model acts as a decoder, synthesizing a new, more complex natural language instruction that incorporates the additional semantic requirements. This iterative process allows for progressive difficulty increases while maintaining semantic coherence.

3. Experimental Setup

3.1 Datasets and Baselines

The authors utilized Alpaca-5k (a subset of Alpaca-Clean) as the base dataset. To construct the tag pool and calculate utility scores, they leveraged Magpie-500k as a seed. The framework was evaluated against standard augmentation methods like Evol-Instruct and CodecLM.

3.2 Evaluation Benchmarks

Models were tested on three primary benchmarks designed to simulate human preferences and complex multi-turn reasoning:

  • AlpacaEval 2.0 (Length Controlled)
  • MT-Bench
  • ArenaHard-Auto

4. Key Insights

4.1 The "Tag Space" Advantage

Operating in tag space reduces the search space for augmentation. It is computationally and semantically more efficient for a model to decide to add a "database integration" concept than to attempt to hallucinate complex prose from scratch.

4.2 Response Length as a Proxy for Difficulty

The research found that response length, when controlled for verbosity, serves as a strong proxy for instruction difficulty. This correlation provided the reward signal necessary for the RL policy to identify high-utility tags.

4.3 Semantic Density

High-utility tags—those that most effectively increase difficulty—tend to be semantically "denser." For instance, a tag like security implies a broad range of derived meanings (authentication, encryption, threat detection), whereas a low-utility tag like math_expression_eval is narrow and offers less room for complexity expansion.

5. Results

TAG-INSTRUCT demonstrated significant performance gains, particularly for the LLaMA-3-8B model:

  • Win Rate: On AlpacaEval 2.0, TAG-INSTRUCT achieved a 19.21% win rate, a substantial increase from the 5.09% baseline.
  • Benchmark Superiority: On ArenaHard, it scored 22.1, outperforming CodecLM (19.2) and Evol-Instruct (16.8).
  • Scaling Efficiency: The framework showed that 5,000 high-quality, augmented instructions could outperform models trained on 192,000 standard instructions (e.g., WizardLM).
  • Small Model Impact: The LLaMA-3.2-3B model saw its win rate jump from 4.73% to 14.81% after TAG-INSTRUCT augmentation, proving the method's efficacy for smaller architectures.

6. Limitations and Future Work

Despite its success, TAG-INSTRUCT faces challenges regarding "discretization loss," where compressing nuanced human intent into a few tags may lose subtle context. Furthermore, while response length is a useful proxy for complexity, it may not fully capture logical correctness in specialized fields. Future research will explore applying this tag-based approach to highly structured domains such as code generation and advanced mathematics.

Summary updated

BibTeX
@inproceedings{zhu2025tag,
  author = {He Zhu and Zhiwen Ruan and Junyou Su and Xingwei He and Yun Chen and Wenjia Zhang and Guanhua Chen},
  title = {{TAG-INSTRUCT: Controlled Instruction Complexity Enhancement through Structure-based Augmentation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure