A Unified Causal View of Instruction Tuning

Lu Chen, Wei Huang, Ruqing Zhang, Wei Chen, Jiafeng Guo, Xueqi Cheng · DOI

Abstract

Instruction tuning has significantly enhanced the zero-shot generalization capabilities of Large Language Models (LLMs). However, standard approaches often rely on surface-level correlations that fail under distribution shifts. This paper introduces Structural Instruction Tuning (SIT), a framework that leverages a meta Structural Causal Model (meta-SCM) to identify and isolate task-specific causal factors. By enforcing the Uniform Identifiability Condition (UIC), SIT ensures that latent causal factors are disentangled from spurious correlations. Experimental results across 21 datasets demonstrate that SIT significantly outperforms vanilla instruction tuning, particularly in out-of-domain and cross-task scenarios.

Introduction: The Problem of Spurious Correlations

Current instruction tuning methods treat tasks as natural language prompts, allowing models to exploit spurious correlations within training data. For instance, a model might associate specific keywords with a sentiment label simply because of sampling bias in the training set. When deployed on out-of-domain (OOD) data where these patterns change, performance degrades. To achieve robust generalization, models must capture the invariant Data Generating Process (DGP)—the underlying causal structure that remains constant across tasks and domains.

Methods: Structural Instruction Tuning (SIT)

The SIT framework is built on a theoretical meta-SCM that integrates diverse NLP tasks into a unified causal graph. Central to this is the Uniform Identifiability Condition (UIC), a mathematical guarantee that latent factors (e.g., syntax, semantics) can be uniquely identified from observed data.

The SIT architecture and its underlying causal graph.

The SIT architecture comprises four key modules:

  1. Task-guided Latent Encoder: Maps input text into a set of latent factors.
  2. SCM Latent Module: Uses task-specific masks, guided by instructions, to select only the causal factors relevant to the target task (e.g., selecting semantics for sentiment analysis while ignoring irrelevant lexical features).
  3. Source Reconstruction Decoder: Acts as a regularizer to ensure latent factors accurately represent the source text.
  4. Target Prediction Decoder: Generates the final output based solely on the selected causal factors.

Training involves a multi-objective loss function combining prediction accuracy, reconstruction quality, and a specialized UIC Loss to enforce disentanglement.

Experimental Setup and Results

The researchers evaluated SIT using 21 datasets covering seven NLP tasks, including summarization, reading comprehension, and sentiment analysis. Performance was compared against Multi-task Fine-Tuning (MFT) and Vanilla Instruction Tuning (Vanilla-IT).

Performance comparison of SIT against baseline methods across various training mixture datasets.

Key findings include:

  • OOD Robustness: On the Gigaword summarization dataset, SIT achieved a 60.51% improvement in Rouge-L over Vanilla-IT, demonstrating its ability to handle distribution shifts.
  • Cross-Task Generalization: SIT improved accuracy by 31.30% on the unseen RTE task compared to the baseline.
  • Sample Efficiency: In few-shot scenarios, SIT's performance gains were often double those of vanilla approaches, particularly on complex tasks like Linguistic Acceptability.

Conclusion

SIT shifts the paradigm of instruction tuning from pattern matching to causal reasoning. By explicitly modeling the causal structure of tasks and masking out spurious factors, SIT provides a more robust and generalizable foundation for LLM training. Future work will explore self-learning task distinctions and extending the framework to complex logical reasoning tasks.

Summary updated

BibTeX
@misc{chen2024unified,
  author = {Lu Chen and Wei Huang and Ruqing Zhang and Wei Chen and Jiafeng Guo and Xueqi Cheng},
  title = {{A Unified Causal View of Instruction Tuning}},
  year = {2024},
  eprint = {2402.06220},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.06220},
}
Figure