Abstract
Training large language models (LLMs) with open-domain instruction data has yielded remarkable success in aligning to end tasks and user preferences. Extensive research has highlighted that enhancing the quality and diversity of instruction data consistently improves performance. However, the impact of data complexity, as a crucial metric, remains relatively unexplored in three aspects: (1) scaling law, where the sustainability of performance improvements with increasing complexity is uncertain, (2) additional tokens, whether the improvement brought by complexity comes from introducing more training tokens, and (3) curriculum tuning, where the potential advantages of incorporating instructions ranging from easy to difficult are not yet fully understood. In this paper, we propose \textit{tree-instruct} to systematically enhance the complexity of instruction data in a controllable manner. This approach adds a specified number of nodes into the instruction semantic tree, yielding new instruction data based on the modified tree. By adjusting the number of added nodes, we can control the difficulty level in the modified instruction data. Our preliminary experiments reveal the following insights: (1) Increasing complexity consistently leads to sustained performance improvements. For instance, using 1,000 instruction data and 10 nodes resulted in a substantial 24% increase in win rate. (2) Under the same token budget, a few complex instructions outperform diverse yet simple instructions. (3) Curriculum instruction tuning might not yield the anticipated results; focusing on increasing complexity appears to be the key.
Introduction
Instruction tuning has become the standard recipe for transforming raw base models into helpful assistants. While researchers have extensively explored the dimensions of data diversity and quality, the specific role of complexity has remained largely unquantified. Does increasing the difficulty of instructions lead to better alignment, or does it merely introduce noise?
A new study from researchers at HKUST and Alibaba Group introduces Tree-Instruct, a novel method to surgically increase instruction complexity. Their work uncovers surprising "scaling laws" for how LLMs learn from complex data, suggesting that complexity may be the "secret sauce" for efficient alignment.
The Tree-Instruct Methodology
To study complexity in isolation, the authors developed Tree-Instruct. Unlike previous methods like WizardLM’s Evol-Instruct, which rely on open-ended LLM rewriting and often suffer from "thematic drift," Tree-Instruct operates directly on the semantic structure of the instruction.
The process follows three distinct steps:
- Tree Construction: An instruction is parsed into a semantic tree representing its grammatical and logical structure.
- Node Expansion: New nodes (specifically nouns and verbs) are added to the tree. The number of added nodes (e.g., 3, 6, or 10) serves as a direct, controllable proxy for the complexity level.
- Tree Sentenceization: The expanded tree is converted back into fluent natural language.
By operating on the tree rather than the raw text, the method forces the model to "fill in" complexity within the structural constraints of the original prompt, ensuring the resulting instruction remains on-topic while becoming significantly more challenging.
Experimental Results
The study utilized a subset of 1,000 samples from Alpaca-GPT-4 and the OpenChat-6K dataset for training, evaluating performance using AlpacaEval and MT-Bench.
The Complexity Scaling Law
A primary finding is the existence of a "Complexity Scaling Law." As the number of added nodes increases, so does the model's win rate. Specifically, adding 3, 6, and 10 nodes to the same 1,000 instructions resulted in performance gains of 13%, 20%, and 26% respectively. Performance does not plateau; it continues to climb as instructions become more difficult.
Complexity vs. Volume
One critical question was whether complexity is simply a proxy for more training tokens. To test this, the researchers compared 1,000 complex instructions (Tree-10-nodes) against 4,000 simple instructions (Alpaca-4K). Despite the Alpaca-4K dataset having a larger total token count, the complex dataset achieved a 16.8% higher win rate. This suggests that a few complex instructions are significantly more effective than a large number of simple, diverse ones.
Curriculum Learning
Interestingly, the study found that curriculum learning—starting with easy instructions and progressing to hard ones—did not provide the anticipated benefit. Models trained exclusively on the most complex data (Tree-10-nodes) outperformed those trained on a gradual curriculum, suggesting that LLMs do not require a "warm-up" with simpler tasks.
Conclusion
The Tree-Instruct study provides strong evidence that instruction complexity is a vital lever for LLM alignment. By focusing on structural complexity rather than just data volume or diversity, developers can achieve superior performance with significantly smaller, more efficient datasets. Future work will explore the limits of this scaling law and its application to specialized domains like mathematics and complex programming logic.
Summary updated