[Paper Review] Feature Adaptation of Pre-Trained Language Models across Languages and Domains with Robust Self-Training
This paper proposes class-aware feature self-distillation (CFd), a self-training method that adapts pre-trained language model (PrLM) features to new domains and languages without fine-tuning. By jointly maximizing mutual information and minimizing intra-class feature distances, CFd improves robustness to noisy pseudo-labels, achieving consistent accuracy gains across cross-domain and multilingual sentiment classification tasks on Amazon review datasets.
Adapting pre-trained language models (PrLMs) (e.g., BERT) to new domains has gained much attention recently. Instead of fine-tuning PrLMs as done in most previous work, we investigate how to adapt the features of PrLMs to new domains without fine-tuning. We explore unsupervised domain adaptation (UDA) in this paper. With the features from PrLMs, we adapt the models trained with labeled data from the source domain to the unlabeled target domain. Self-training is widely used for UDA which predicts pseudo labels on the target domain data for training. However, the predicted pseudo labels inevitably include noise, which will negatively affect training a robust model. To improve the robustness of self-training, in this paper we present class-aware feature self-distillation (CFd) to learn discriminative features from PrLMs, in which PrLM features are self-distilled into a feature adaptation module and the features from the same class are more tightly clustered. We further extend CFd to a cross-language setting, in which language discrepancy is studied. Experiments on two monolingual and multilingual Amazon review datasets show that CFd can consistently improve the performance of self-training in cross-domain and cross-language settings.
Motivation & Objective
- To address the challenge of adapting pre-trained language models (PrLMs) to new domains and languages without fine-tuning.
- To improve the robustness of self-training in unsupervised domain adaptation (UDA) by reducing the negative impact of noisy pseudo-labels.
- To develop a feature adaptation module (FAM) that learns discriminative features from PrLMs through class-aware self-distillation.
- To extend the method to multilingual settings using XLM-R, which maps multiple languages into a shared semantic space.
- To empirically validate that CFd reduces the error of the ideal joint hypothesis, indicating improved generalization.
Proposed method
- Propose class-aware feature self-distillation (CFd), which distills features from a pre-trained language model (PrLM) into a feature adaptation module (FAM) to improve feature discriminativeness.
- Maximize mutual information (MI) between PrLM features and FAM features to ensure the FAM captures high-level semantic representations.
- Minimize intra-class feature distances in the FAM output to tighten class clusters and enhance inter-class separability.
- Use a re-ranking strategy to prioritize high-confidence pseudo-label predictions and balance class distribution in the target domain.
- Integrate an attention mechanism over the last N layers of the PrLM to combine intermediate features effectively, outperforming simple averaging.
- Extend CFd to cross-lingual settings using XLM-R, enabling adaptation across languages by leveraging its multilingual representation space.
Experimental results
Research questions
- RQ1Can feature self-distillation improve the robustness of self-training in unsupervised domain adaptation without fine-tuning pre-trained language models?
- RQ2How does incorporating class-aware clustering in feature distillation affect model generalization and error reduction on target domains?
- RQ3To what extent can CFd improve performance in cross-lingual and cross-domain sentiment classification using multilingual pre-trained models?
- RQ4Does the attention mechanism over multiple layers of the PrLM enhance feature representation compared to single-layer or average-layer fusion?
- RQ5How does CFd compare to baseline self-training and other distillation methods in reducing the error of the ideal joint hypothesis?
Key findings
- CFd consistently improves self-training performance across all cross-domain and cross-lingual settings on the MonoAmazon and MultiAmazon datasets.
- On the MonoAmazon dataset, CFd achieves a 70.95% accuracy in the BK→M cross-domain setting, outperforming the baseline (66.59%) and the Fd-only variant (70.16%).
- The joint error of the ideal hypothesis is reduced by CFd, with the lowest error observed in the BK→M setting, confirming improved generalization.
- The intra-class loss is dramatically reduced from 966.38 (baseline) to 12.17 with CFd, indicating tighter class clustering in the FAM feature space.
- The A-distance metric shows that p+CFd achieves the smallest domain discrepancy (0.22), indicating better domain alignment and reduced domain shift.
- Using attention over the last 10 layers of XLM-R with CFd yields the best performance, outperforming both single-layer and average-layer (AVE) feature fusion strategies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.