CURE: Controlled Unlearning for Robust Embeddings — Mitigating Conceptual Shortcuts in Pre-Trained Language Models

Aysenur Kocak, Shuo Yang, Bardh Prenkaj, Gjergji Kasneci

Abstract

Pre-trained language models (PLMs) are prone to "shortcut learning," where they rely on spurious correlations—such as associating specific keywords with sentiment—rather than learning deep semantic nuances. This paper introduces CURE (Controlled Unlearning for Robust Embeddings), a lightweight, unsupervised framework designed to disentangle task-relevant content from biased concepts within the model's internal embeddings. By employing a reversal network to preserve essential information and a tunable contrastive learning objective, CURE achieves up to a 10-point F1 improvement on out-of-distribution (OOD) data. Notably, CURE remains 10x faster than state-of-the-art LLM-based debiasing methods with minimal parameter overhead.

1. Introduction

Despite their impressive performance, PLMs often latch onto "conceptual shortcuts" present in training data. For instance, if a restaurant review dataset frequently mentions "pizza" in positive contexts, a model might erroneously learn that the presence of the word "pizza" guarantees a high rating, failing when it encounters a negative review about a soggy crust. Existing debiasing methods often rely on manual text editing or expensive LLM-generated counterfactuals. CURE addresses these limitations by providing a computationally efficient, unsupervised method that operates directly on embeddings, offering fine-grained control over which biases to mitigate.

2. The CURE Framework

CURE operates through a three-step pipeline designed to refine the model's internal representations without requiring expensive text generation.

2.1 Concept-Irrelevant Extraction and the Reversal Network

The first stage utilizes a "content extractor" to filter out features associated with biased concepts. To prevent the model from discarding task-essential information—a common failure mode in debiasing—CURE incorporates a reversal network. Inspired by the logic of back-translation, this network attempts to reconstruct the original input from the filtered representation. If the reconstruction is successful, it confirms that the "meat" of the sentence has been preserved. Simultaneously, a concept classifier ensures that the filtered representation contains no detectable traces of the targeted bias.

2.2 Controllable Debiasing

CURE maps the original embeddings and the filtered "content" embeddings into a shared space using contrastive learning. A critical feature of this stage is the tunable margin ($M$), which allows researchers to control the degree of debiasing. This flexibility is vital; if a shortcut aligns with human intent (e.g., "humor" in movie reviews), users can choose to retain or even enhance that correlation rather than deleting it entirely.

2.3 Joint Training

The debiasing module is trained in tandem with a standard classification head. This ensures that the resulting embeddings are not only robust against shortcuts but also highly effective for the primary downstream task.

3. Experimental Setup

The framework was evaluated using two benchmark datasets restructured to test for spurious correlations:

  • IMDB: Movie reviews where specific concepts (e.g., "Story" or "Emotion") were intentionally imbalanced in the training set.
  • Yelp: Business reviews where concepts like "Food" or "Service" served as potential shortcuts.

Models were trained on "Group A" (imbalanced/biased) and tested on "Group B" (balanced/OOD) to measure their ability to generalize without relying on training-set shortcuts.

4. Key Results and Discussion

4.1 Robustness and Accuracy

CURE demonstrated significant gains in OOD performance. On the IMDB dataset, CURE achieved an absolute improvement of +10 points in F1 score compared to standard fine-tuning. On Yelp, the model saw a +2 point improvement, confirming its ability to ignore fragile correlations in favor of robust sentiment indicators.

4.2 Computational Efficiency

By performing debiasing in the embedding space rather than the text space, CURE is remarkably efficient. The training time per sample is approximately 59ms, compared to over 600ms for RAZOR, a leading LLM-driven approach. Furthermore, CURE adds only 2% additional parameters to the base model, making it a practical choice for production environments.

4.3 Qualitative Analysis

Using SHAP (SHapley Additive exPlanations) values, the researchers observed a distinct shift in model attention. While baseline models often split their focus between shortcuts (e.g., "service") and sentiment words (e.g., "great"), CURE-enhanced models shifted their focus almost entirely toward sentiment-expressive vocabulary.

5. Conclusion and Future Work

CURE provides a scalable and controllable solution for mitigating shortcut learning in PLMs. Its reliance on embedding-space manipulation and a reconstruction-based reversal network allows for robust performance without the high costs associated with LLM-based data augmentation. While current iterations rely on initial LLM-assisted concept labeling during preprocessing, future research will focus on "zero-label" concept discovery and testing the framework on ultra-large-scale models (70B+ parameters).

Summary updated

BibTeX
@misc{kocak2025cure,
  author = {Aysenur Kocak and Shuo Yang and Bardh Prenkaj and Gjergji Kasneci},
  title = {{CURE: Controlled Unlearning for Robust Embeddings — Mitigating Conceptual Shortcuts in Pre-Trained Language Models}},
  year = {2025},
  eprint = {2509.05230},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.05230},
}
Figure