Abstract
Fine-tuning pre-trained language models (PLMs) often leads to a trade-off between adapting to new tasks and preserving the broad commonsense knowledge acquired during pre-training. This phenomenon, known as catastrophic forgetting, is often countered by weight regularization, which can inadvertently cause negative transfer by preserving irrelevant information. This paper presents Causal Effect Tuning (CET), a novel fine-tuning framework that utilizes causal inference to identify and maintain transferable knowledge. By modeling fine-tuning as a causal graph and leveraging the concept of "colliding effects," CET effectively bridges the gap between pre-training and task-specific adaptation. Our evaluation across six commonsense reasoning benchmarks and three Named Entity Recognition (NER) tasks shows that CET consistently outperforms state-of-the-art fine-tuning methods, especially in low-resource scenarios.
Introduction
Fine-tuning is the de facto standard for adapting models like RoBERTa or T5 to downstream applications. However, practitioners face a persistent dilemma: the model may overfit the target dataset and lose its internal "world knowledge" (catastrophic forgetting), or it may retain old knowledge that conflicts with the new task (negative transfer). Existing solutions typically constrain model weights to stay close to their pre-trained initialization. However, these methods are often too blunt, as they do not distinguish between knowledge that is beneficial to the target task and knowledge that is not.
This research proposes a shift from statistical association to causal inference. By treating the pre-training data and the target data as independent causes of the model's hidden features, we can more precisely control which information is preserved during the fine-tuning process.
Methodology
The Causal Graph and Colliding Effects
The authors represent the fine-tuning process using a causal graph where pre-trained data ($P$) and target data ($X$) both influence the model's hidden features ($H$). In vanilla fine-tuning, the causal link from $P$ to the final output essentially disappears as the model updates.
To restore this link without requiring access to the original, massive pre-training datasets, CET utilizes the theory of colliding effects. In causal theory, if two independent causes ($P$ and $X$) share a common effect ($H$), conditioning on that effect makes the causes dependent. By conditioning on the hidden features of the pre-trained model, CET can "retrieve" the influence of the pre-training data and apply it to the current task.
Heuristic KNN Retrieval
To implement this causal conditioning for Commonsense Question Answering (QA), the authors employ a K-Nearest Neighbor (KNN) approach. They introduce a specific heuristic: questions that share the same "gold answer" are likely to rely on the same underlying commonsense knowledge. For instance, if the answer to a question is "airplane," the model should consider other questions involving "fast cargo transport" or "fixed-wing aircraft" to ensure the concept of an airplane remains consistent across the model's internal representations.
Training Objective
The CET training objective is a unified loss function consisting of two parts:
- Vanilla Objective: Standard cross-entropy loss to learn task-specific patterns from the current sample.
- Causal Objective: A consistency loss that ensures the model's predictions for a target sample are aligned with the predictions of its retrieved "knowledge neighbors."
To mitigate negative transfer, CET uses a similarity threshold ($\theta$). If a sample does not have sufficiently similar neighbors in the knowledge space, the model defaults to vanilla fine-tuning, preventing the enforcement of irrelevant pre-trained associations.
Experimental Results
Commonsense Reasoning Benchmarks
CET was evaluated on six major benchmarks: CommonsenseQA (CSQA), OpenBookQA (OBQA), ARC (Easy & Challenge), QASC, PIQA, and SocialIQA (SIQA). The method outperformed nine competitive fine-tuning baselines, including Mixout, RecAdam, and ChildTuning. Notable gains were observed in QASC and OBQA, where CET improved accuracy by 3.53% and 2.64%, respectively, over vanilla fine-tuning.
Low-Resource Performance
The method proved particularly robust in low-resource settings. When trained on only 5% or 10% of the available data, CET maintained a significant lead over other methods. This suggests that CET effectively leverages the robust knowledge already present in the PLM to compensate for the lack of task-specific training examples.
Versatility and Synergy
Beyond QA, CET was tested on three Named Entity Recognition (NER) datasets (CoNLL2003, OntoNotes5, and I2B2), where it consistently improved F1 scores. Furthermore, CET demonstrated synergy with external knowledge sources. When integrated with QAGNN (a model using external Knowledge Graphs), CET provided a further performance boost, indicating that the model's internal knowledge and external structured data are complementary.
Discussion and Limitations
While CET provides a significant performance advantage, it introduces additional computational overhead. The requirement to retrieve and process KNNs for every training sample increases both GPU memory usage and total training time. Additionally, the "gold answer" heuristic can be affected by polysemy; for example, the answer "apple" might retrieve neighbors related to both the fruit and the technology company, potentially introducing noise into the causal objective.
Conclusion
Causal Effect Tuning (CET) offers a theoretically grounded approach to the problem of catastrophic forgetting in PLMs. By framing the preservation of knowledge as a causal inference problem, CET allows for a more surgical adaptation of models to new tasks. Future work will focus on optimizing the retrieval process to reduce computational costs and extending the framework to broader text classification and generation tasks.
Summary updated