Abstract
Large Language Models (LLMs) often struggle with complex, multi-constraint instructions, frequently failing to satisfy all requirements simultaneously. Traditional solutions rely on knowledge distillation from proprietary models like GPT-4, which is costly and limits the independence of open-source models. This paper introduces MuSC (Multi-granularity Self-Contrastive Training), a framework that enables LLMs to improve their instruction-following capabilities through self-alignment. By decomposing instructions into atomic constraints and utilizing token-level uncertainty to weight training, MuSC significantly enhances performance on complex tasks without the need for external teacher models.
Introduction
While modern LLMs excel at general conversation, their performance degrades when faced with "hard" instructions involving multiple, specific constraints—such as strict word counts, negative constraints (e.g., "do not use the letter 'n'"), or specific formatting requirements. Current alignment techniques primarily use distillation, where a smaller model mimics the outputs of a larger, closed-source model. However, this creates a dependency on proprietary systems and may not scale for niche or specialized domains.
Existing self-alignment methods, where a model generates its own training data, often fail in complex scenarios because they cannot produce high-quality "negative" examples. Without a clear contrast between a successful and a failed response, the model cannot effectively learn the boundaries of constraint satisfaction. MuSC addresses this by introducing a dual-layered approach to preference data generation and optimization.
Methodology
MuSC operates through two distinct granularities: coarse-grained data construction and fine-grained optimization.
1. Coarse-grained: Constraint-aware Preference Data
To create effective training pairs, MuSC decomposes a complex instruction into its constituent "atomic" constraints. The framework then generates a "rejected" instruction by randomly removing one or more of these constraints. By prompting the model to respond to both the full instruction (the "chosen" target) and the simplified instruction (the "rejected" target), MuSC creates a structured preference pair. This allows the model to observe exactly how a response should change when specific rules are added or removed, providing a much stronger signal than random failure cases.
2. Fine-grained: Token-aware Preference Optimization
Standard Direct Preference Optimization (DPO) treats all tokens in a sequence with equal importance. MuSC improves upon this using Calibrated Confidence. The framework calculates the entropy (uncertainty) of the model at each token during the generation of rejected responses. High entropy indicates that the model is struggling to maintain logic or satisfy constraints at that specific point. MuSC assigns higher weights to these high-uncertainty tokens during training, forcing the model to focus its learning capacity on the specific moments where its reasoning typically breaks down.
Experimental Setup
Datasets
The researchers utilized two primary data sources for training:
- PreInst: 2,000 complex instructions sampled from the WizardLM dataset.
- SelfInst: Instructions generated autonomously by the model using the Self-Instruct method.
Benchmarks
To evaluate the framework, the authors employed four rigorous benchmarks:
- CFBench, FollowBench, and ComplexBench: Specialized evaluations focusing on multi-constraint satisfaction and rule adherence.
- AlpacaEval2: A standard benchmark used to ensure that the model's general conversational ability and "common sense" remained intact during specialized training.
Results and Discussion
The authors evaluated MuSC across several model families, including LLaMA-3-8B, Qwen2-7B, and Qwen2.5 models up to 32B parameters.
Constraint Satisfaction
On CFBench, MuSC demonstrated a clear advantage. For LLaMA-3-8B, the Constraint Satisfaction Rate (CSR) improved from 0.64 to 0.70. The method scaled effectively with model size; the Qwen2.5-32B model achieved a CSR of 0.89, showcasing the framework's utility for larger architectures.
General Instruction Following
Crucially, improving constraint satisfaction did not come at the cost of general performance. On AlpacaEval2, the win rate (LC %) for LLaMA-3-8B increased from 21.07% to 23.87%. This suggests that learning to follow complex rules actually enhances the model's overall logic and response quality.
Comparison with Self-Alignment Baselines
MuSC consistently outperformed other self-alignment strategies such as Self-Reward and Self-Correct. While those methods often struggle to generate meaningful contrast for complex tasks, MuSC’s structured approach to "corrupting" instructions provided a more reliable training signal.
Conclusion and Future Work
MuSC demonstrates that LLMs can "bootstrap" their way to higher complexity without relying on frontier models like GPT-4. By focusing on structured negativity and token-level uncertainty, MuSC provides a scalable path for improving open-source models.
Future research directions include applying MuSC to long-form synthesis and multi-modal tasks, such as image or video generation, where following intricate, multi-part prompts remains a significant challenge. Additionally, the authors aim to test the framework on frontier-scale open models (70B+ parameters) to further explore the limits of self-contrastive training.
Summary updated