A Unified Causal View of Instruction Tuning

Lu Chen, Wei Huang, Ruqing Zhang, Wei Chen, Jiafeng Guo, Xueqi Cheng · Submission to ICLR 2024 · Rejected

TL;DR

Standard instruction tuning often latches onto spurious correlations in training data rather than true causal mechanisms, hurting generalization to new distributions and tasks. This paper proposes a meta Structural Causal Model (meta-SCM) that unifies multi-task NLP under a single causal framework, backed by a provable Uniform Identifiability Condition (UIC). Guided by this theory, the authors introduce Structural Instruction Tuning (SIT), an architecture that dynamically isolates and predicts from task-specific causal latent factors, yielding dramatic zero-shot and few-shot improvements on unseen datasets and tasks.

What Problem Does This Paper Address?

Instruction tuning enables language models to generalize to unseen tasks by formatting data into sequence-to-sequence instructions. However, models trained across diverse datasets tend to exploit surface-level statistical cues (spurious correlations) between prompt templates, context words, and labels—largely due to sampling biases inherent to specific training datasets. When deployed on unseen domains or new task distributions, these non-causal statistical associations break down.

While Structural Causal Models (SCMs) offer tools to formalize invariant Data Generating Processes (DGPs), prior work has mostly hand-crafted separate SCMs for individual, narrow tasks. Integrating diverse NLP tasks into a single structural causal framework with theoretical identifiability guarantees has remained an open challenge.

Methods

The paper frames multi-task NLP via a generative meta-SCM:

  • Causal Formulation: Let $X_t$ and $Y_t$ denote source context and target label for task $t$, $D$ denote dataset-specific biases, and $L = \{L_1, \dots, L_n\}$ denote shared latent linguistic factors (e.g., syntax, denotative semantics, sentiment polarity). Backdoor paths through $D$ induce spurious correlations between $Y_t$ and non-causal factors. While the source context $X_t$ requires all latent factors to reconstruct, generating $Y_t$ requires only a task-dependent subset of $L$.
  • Uniform Identifiability Condition (UIC): The authors prove that the underlying latent factors can be identified (up to permutation and scaling) without mixing information if and only if no two distinct latent factors share the exact same child set of tasks.
  • Structural Instruction Tuning (SIT) Architecture: Built on a BART-large backbone, SIT consists of four core modules:
  • Task-guided Latent Encoder: Maps source text and hybrid (discrete + continuous) prompts into latent representations $h_l$.
  • SCM Latent Module: Uses the task representation to generate a binary mask $m_t$, selecting only the task-relevant causal latent factors $h_l^t$.
  • Source Reconstruction Decoder: Reconstructs the full source sequence $x$ from all latent factors, ensuring no linguistic information is discarded prematurely.
  • Target Prediction Decoder: Predicts target sequence $y$ strictly using the task-selected causal latent factors.
  • Objective Function: Combines target prediction loss, source reconstruction loss, a smooth differentiable UIC Loss (penalizing redundant latent-factor columns in the task-factor adjacency matrix), and a Task Distinction Loss (preventing different tasks from collapsing onto identical causal factors).
[Prompt + Source] --> [Task-guided Latent Encoder] --> All Latent Factors (L)
                                                             |          |
                              (All Factors) -----------------+          | (Task-guided Mask)
                                    |                                   v
                                    v                           [Causal Factors]
                       [Reconstruction Decoder]                         |
                                    |                                   v
                                    v                          [Prediction Decoder]
                             Source Text (x)                            |
                                                                        v
                                                                 Target Label (y)

Datasets

The authors evaluate on 21 established NLP benchmarks across 7 tasks:

  • Training Mixture (9 datasets): Summarization (XSUM, CNNDM), Reading Comprehension (DuoRC-self, DuoRC-para), Topic Classification (AG News, Trec), Paraphrase Detection (PAWS), and Sentiment Analysis (IMDB, Yelp).
  • Held-out Out-of-Domain (6 datasets): Gigaword (summarization), SQuAD (reading comprehension), DBPedia (topic classification), MRPC, QQP (paraphrase detection), and SST-2 (sentiment analysis).
  • Held-out Unseen Tasks (6 datasets): Linguistic Acceptability (CoLA) and Natural Language Inference (QNLI, RTE, WNLI, MNLI-m, MNLI-mm).

No new datasets were created.

Key Insights and Ideas

  • Identifiability across topologies: Unlike typical causality literature that proves identifiability for a single, fixed causal graph, Theorem 2 provides a general necessary and sufficient matrix condition applicable across varying task combinations.
  • Latents as a structural bridge: Instead of forcing prompt embeddings directly to predict target tokens, SIT forces prompts to act as a selector over a shared library of latent language properties. This restricts predictions to task-relevant causal factors.
  • Isolating causal factors prevents OOD failure: Spurious correlations (e.g., words like "pizza" co-occurring disproportionately with positive sentiment) live in non-causal latent dimensions and get blocked from influencing the prediction decoder.

Key Results

  • In-Domain Superiority: SIT outperformed vanilla instruction tuning across all 9 training datasets. On PAWS, accuracy increased by +37.57% (76.75% vs. 55.79%), illustrating that structural selection shines where training sample sizes are constrained.
  • Out-of-Domain (OOD) Generalization: SIT achieved stronger OOD transfer on 5 of 6 held-out datasets within the same tasks, notably jumping +60.51% relative improvement on Gigaword (ROUGE-L 20.08 vs. 12.51).
  • Cross-Task Generalization: On completely unseen tasks, SIT outperformed vanilla tuning on 4 of 6 datasets, gaining +31.30% relative accuracy on RTE (62.09% vs. 47.29%).
  • Few-Shot Adaptation: When fine-tuned on 1,024 examples of difficult, unseen zero-shot tasks (CoLA and DBPedia), SIT adapted significantly faster, reaching 69.03% on CoLA (compared to vanilla IT's 38.16%) and 93.16% on DBPedia (compared to 76.33%).
  • Ablations: Removing either the UIC loss or Task Distinction loss degraded zero-shot performance across the board, empirically validating the theoretical constraints.

Limitations and Future Work

  • Instruction Dependence: SIT still relies on human-crafted prompts to formulate task representations and drive causal factor selection; the authors aim to explore self-supervised task discovery from raw data.
  • Model Scale: Experiments were restricted to BART-large (~400M parameters). Verifying how explicit SCM regularization interacts with massive LLMs (where parametric knowledge is far more dominant) remains untested.
  • Scope of Tasks: The evaluation centers on classical classification, QA, and summarization; complex multi-hop or symbolic reasoning was not explored and will likely require more expressive SCM structures.

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