Tag-Instruct: Controlled Instruction Complexity Enhancement through Structure-based Augmentation

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

Abstract

High-quality instruction data is critical for fine-tuning Large Language Models (LLMs), yet current augmentation methods often lack controllability and precision. We present TAG-INSTRUCT, a framework that enhances instruction complexity by operating within a structured "tag space" rather than raw text. By compressing instructions into semantic tags and using Reinforcement Learning (RL) guided by Shapley values to expand them, TAG-INSTRUCT provides a systematic approach to data synthesis. Experimental results show that models trained on just 5,000 TAG-INSTRUCT samples can outperform those trained on datasets nearly 40 times larger, achieving state-of-the-art performance on benchmarks like AlpacaEval 2.0.

Introduction

The performance of modern LLMs is heavily dependent on the complexity and diversity of their instruction-tuning data. While prompt-based augmentation methods like Evol-Instruct have become industry standards, they suffer from two primary limitations: high search space complexity due to linguistic noise and a lack of quantifiable precision in defining "complexity." TAG-INSTRUCT addresses these issues by moving instruction augmentation from ambiguous natural language prompts into a structured, mathematically grounded framework.

Methodology: The Tag-Instruct Framework

TAG-INSTRUCT utilizes a three-stage "Compress & Operation" pipeline to systematically increase instruction difficulty.

The TAG-INSTRUCT pipeline: Semantic Compression, Tag Expansion via RL, and Instruction Reconstruction.

1. Semantic Compression (Encode)

Raw instructions are first compressed into a compact set of "semantic tags" using a teacher LLM. For instance, a prompt regarding web development might be reduced to tags like book_listing, author_info, and web_develop. This process filters out auxiliary content and focuses the augmentation on core semantic intents.

2. Tag Complexity Expansion (RL-guided)

To determine which tags most effectively increase complexity, the framework employs Reinforcement Learning (specifically Direct Preference Optimization). A policy model is trained to suggest new tags that enhance complexity while maintaining semantic alignment. The "utility" of a tag is quantified using Shapley values from cooperative game theory, using response length as a proxy for complexity.

3. Instruction Reconstruction (Decode)

The expanded tag set, combined with the original instruction, is processed by a teacher model to synthesize a new, more complex instruction that incorporates the additional semantic requirements.

Experimental Results

The framework was evaluated using a LLaMA3-8B base model fine-tuned on the Alpaca-5k dataset. Benchmarking was conducted on AlpacaEval 2.0 (with length control), MT-Bench, and ArenaHard-Auto.

Comparative performance on AlpacaEval 2.0 (Length Control), showing Tag-Instruct's superiority over other augmentation methods.

Efficiency and Scaling

TAG-INSTRUCT demonstrates remarkable data efficiency. A model trained on 5,000 TAG-INSTRUCT samples achieved a 19.21% win rate on AlpacaEval 2.0, significantly higher than the 5.69% win rate of the same model trained on the 192,000-sample WizardLM dataset. Furthermore, when utilizing a more powerful teacher model (Qwen2.5-72B-Instruct), the win rate improved to 42.76%.

Discussion and Conclusion

TAG-INSTRUCT proves that structured, concept-level operations in a tag space are more stable and effective than word-level tweaks in raw token space. By identifying "semantically rich" tags—those that provide significant "surface area" for complex reasoning—the framework allows for the generation of fundamentally more challenging training data.

While currently reliant on response length as a proxy for utility, future iterations could incorporate dimensions like logical rigor or factual accuracy. Nonetheless, TAG-INSTRUCT represents a significant shift toward intentional, quantifiable instruction synthesis for the next generation of LLMs.

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