Deconfounded Causality-aware Parameter-Efficient Fine-Tuning for Problem-Solving Improvement of LLMs

Ruoyu Wang, Xiaoxuan Li, Lina Yao · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language generation, yet they frequently falter when faced with tasks requiring rigorous logical reasoning, such as mathematics, physics, or symbolic logic. A primary reason for this is that LLMs often operate as "stochastic parrots," relying on statistical correlations within their training data rather than internalizing the underlying causal logic of a problem. This paper introduces Deconfounded Causal Adaptation (DCA), a novel parameter-efficient fine-tuning (PEFT) framework designed to mitigate this issue by explicitly separating general problem-solving strategies from specific input data through causal inference.

The Problem: Causal Confusion in Reasoning

The researchers identify a specific failure mode in current LLMs: causal confusion. When a model is prompted to solve a problem, its internal attention mechanisms often become overly sensitive to the specific values or tokens in the prompt. For instance, a model might correctly solve a symbolic task with one set of characters but fail when the characters are changed, even if the underlying logic remains identical. This suggests the model has formed a spurious correlation between the input data and the answer, rather than learning the invariant method required for the task.

Existing PEFT methods, such as LoRA or LLaMA-Adapter, do not explicitly address this confounding effect. While full fine-tuning might offer a solution, it is computationally prohibitive for most researchers and does not inherently guarantee the learning of causal structures.

Methodology: Deconfounded Causal Adaptation (DCA)

DCA is built upon the LLaMA-Adapter architecture, which utilizes a small number of learnable "adapter prompts" added to the top layers of a frozen LLM. The DCA approach refines this through three key steps:

1. Causal Formulation

The reasoning process is modeled as a Directed Acyclic Graph (DAG). The authors identify the prompt as a confounder—a variable that creates a "backdoor path," inducing spurious correlations between the general problem-solving skill ($X_G$) and the problem-specific information ($X_S$). To achieve true reasoning, the model must learn to block this backdoor path.

2. Adapter Splitting

To facilitate deconfounding, the learnable adapter prompt is divided into two distinct segments:

  • $X_G$ (General Strategy): Designated to capture the abstract logic and "how-to" steps of a task.
  • $X_S$ (Specific Context): Designated to handle the unique data points of the current prompt.

3. Causal Intervention via Regularization

To ensure that $X_G$ remains focused on the strategy rather than the data, the authors perform a mathematical intervention. They introduce a causal loss function ($\mathcal{L}_{causal}$) that penalizes the variance of the $X_G$ segment across different training samples. By forcing the "solving strategy" to remain invariant regardless of the specific input data, the model is compelled to learn a more robust, generalizable logic.

Experimental Evaluation

The authors evaluated DCA across several reasoning-heavy benchmarks to test its versatility:

  • Symbolic Reasoning: A challenging version of the "Last Letter Concatenation" task (specifically, second-to-last letter concatenation).
  • Commonsense Reasoning: The "Date Understanding" dataset from BIG-bench.
  • Arithmetic Reasoning: Evaluated using Math401 (basic arithmetic), AddSub (math word problems), and Math10k (complex word problems).

Key Results and Insights

DCA consistently outperformed vanilla LLaMA-Adapter and other popular PEFT methods while maintaining extreme efficiency.

  • Performance Gains: DCA achieved an average accuracy of 62.6% across all tasks, a significant improvement over the 57.8% achieved by the standard LLaMA-Adapter. Notable jumps included a 6.8% increase in symbolic reasoning and a 5.1% increase on the Math10k dataset.
  • Parameter Efficiency: With only 1.2 million tunable parameters, DCA outperformed or matched methods with significantly higher parameter counts, such as LoRA (4.2M) and Prefix-Tuning (7.0M).
  • Superiority over Instruction-Tuned Models: A LLaMA-7B model tuned with DCA outperformed several larger, general-purpose instruction-tuned models like Alpaca and Vicuna on these specific reasoning tasks. This highlights that general instruction tuning is often insufficient for specialized causal reasoning.
  • Attention Invariance: Visualization of attention patterns (via BertViz) confirmed that DCA-tuned models maintain focus on instructional tokens and task structure, whereas failing models tend to fixate on specific, irrelevant input tokens.

Limitations and Future Work

While DCA represents a significant step forward, it has limitations. The method's performance is sensitive to hyperparameters, such as the number of layers where causal loss is applied and the specific length of the $X_G$ segment. Additionally, DCA is specifically tailored for reasoning tasks where a clear "method" exists; it is not intended for open-ended creative tasks like storytelling. Future work may focus on automating hyperparameter selection and extending causal deconfounding to a broader range of generative tasks.

Summary updated

BibTeX
@inproceedings{wang2024deconfounded,
  author = {Ruoyu Wang and Xiaoxuan Li and Lina Yao},
  title = {{Deconfounded Causality-aware Parameter-Efficient Fine-Tuning for Problem-Solving Improvement of LLMs}},
  booktitle = {WISE},
  year = {2024},
  doi = {10.1007/978-981-96-0573-6\_12},
}
Figure