DAdEE: Unsupervised Domain Adaptation in Early Exit PLMs
<|reference_start|>DAdEE: Unsupervised Domain Adaptation in Early Exit PLMs: Pre-trained Language Models (PLMs) exhibit good accuracy and generalization ability across various tasks using self-supervision, but their large size results in high inference latency. Early Exit (EE) strategies handle the issue by allowing the samples to exit from classifiers attached to the intermediary layers, but they do not generalize well, as exit classifiers can be sensitive to domain changes. To address this, we propose Unsupervised Domain Adaptation in EE framework (DADEE) that employs multi-level adaptation using knowledge distillation. DADEE utilizes GAN-based adversarial adaptation at each layer to achieve domain-invariant representations, reducing the domain gap between the source and target domain across all layers. The attached exits not only speed up inference but also enhance domain adaptation by reducing catastrophic forgetting and mode collapse, making it more suitable for real-world scenarios. Experiments on tasks such as sentiment analysis, entailment classification, and natural language inference demonstrate that DADEE consistently outperforms not only early exit methods but also various domain adaptation methods under domain shift scenarios. The anonymized source code is available at https://github.com/Div290/DAdEE.<|reference_end|>
@article{bajpai2024dadee:,
    title={DAdEE: Unsupervised Domain Adaptation in Early Exit PLMs},
    author={Divya Jyoti Bajpai and Manjesh Kumar Hanawal},
    journal={arXiv preprint arXiv:2410.04424},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.04424},
    primaryClass={cs.CL cs.AI}
}