paper-with-me

홈 › Papers

Attribution-Guided Masking for Robust Cross-Domain Sentiment Classification

2026-05-04 · Shubham Harkare, Arvind Yogesh Suresh Babu, Yash Kulkarni arxiv

While pre-trained Transformer models achieve high accuracy on in-domain sentiment classification, they frequently experience severe performance degradation when transferring to out-of-domain data. We hypothesize that this generalization gap is driven by reliance on domain-specific spurious tokens. After demonstrating that post-hoc-token-level attribution drift fails to predict this gap, we propose Attribution-Guided Masking (AGM), a training time intervention that dynamically detects and penalizes highly attributed spurious tokens during fine-tuning. AGM's core component is a gradient based attribution masking loss ($\mathcal{L}_{mask}$), which can optionally be combined with a counterfactual contrastive loss to enforce domain-invariant representations, all without requiring target-domain labels or human annotation. Evaluated in a strict zero-shot transfer setting across four diverse domains with eight random seeds, AGM achieves competitive generalization compared to five strong baselines on the hardest transfer (Sentiment140): $Δ$ = 0.244 versus DANN (0.264), DRO (0.248), Fish (0.247), and IRM (0.238), while uniquely providing token-level interpretability into which features drive the generalization gap. Our qualitative analysis confirms that AGM suppresses attribution on domain-specific tokens such as @mentions, hashtags, and slang, shifting reliance toward domain-invariant sentiment markers. Our ablation study further confirms that attribution-guided masking is the critical component: removing it or replacing it with random token selection consistently degrades performance on difficult transfers.

📄 PDF Abstract BibTeX arXiv:2605.03091

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

TAME: Token Attribution and Masking for Emergent misalignment

2026-09-15 · Md Rayhanul Masud, Md Rizwan Parvez arxiv

Fine-tuning an aligned language model on narrow, flawed data can induce harmful behavior far outside the training domain, known as emergent misalignment (EM). Prior work has localized EM in model weights, activations, an…

What represents ``style'' in authorship attribution?

2018-08-01 · COLING 2018 8 · Kalaivani Sundararajan, Damon Woodard

Authorship attribution typically uses all information representing both content and style whereas attribution based only on stylistic aspects may be robust in cross-domain settings. This paper analyzes different linguist…

Authorship AttributionLanguage ModelingLanguage ModellingSentence

Task-Informed Anti-Curriculum by Masking Improves Downstream Performance on Text

2025-02-18 · Andrei Jarca, Florinel Alin Croitoru, Radu Tudor Ionescu

Masked language modeling has become a widely adopted unsupervised technique to pre-train language models. However, the process of selecting tokens for masking is random, and the percentage of masked tokens is typically f…

Authorship AttributionLanguage ModelingLanguage ModellingMasked Language Modeling+4

Learning to Share by Masking the Non-shared for Multi-domain Sentiment Classification

2021-04-17 · Jianhua Yuan, Yanyan Zhao, Bing Qin, Ting Liu

Multi-domain sentiment classification deals with the scenario where labeled data exists for multiple domains but insufficient for training effective sentiment classifiers that work across domains. Thus, fully exploiting …

General ClassificationMulti-Domain Sentiment ClassificationSentenceSentiment Analysis+1

Train No Evil: Selective Masking for Task-Guided Pre-Training

2020-04-21 · EMNLP 2020 11 · Yuxian Gu, Zhengyan Zhang, Xiaozhi Wang, Zhiyuan Liu 외

Recently, pre-trained language models mostly follow the pre-train-then-fine-tuning paradigm and have achieved great performance on various downstream tasks. However, since the pre-training stage is typically task-agnosti…

Language ModelingLanguage ModellingMasked Language ModelingSentiment Analysis