IDANI: Inference-time Domain Adaptation via Neuron-level Interventions

Omer Antverg, Eyal Ben-David, Yonatan Belinkov
6/1/2022
cs.CLcs.AIcs.LG

Official code: technion-cs-nlp/idani (2 stars, Python, MIT, last commit 2022-07-14).

Abstract

Large pre-trained models are usually fine-tuned on downstream task data, and tested on unseen data. When the train and test data come from different domains, the model is likely to struggle, as it is not adapted to the test domain.

Show full abstract

We propose a new approach for domain adaptation (DA), using neuron-level interventions: We modify the representation of each test example in specific neurons, resulting in a counterfactual example from the source domain, which the model is more familiar with. The modified example is then fed back into the model. While most other DA methods are applied during training time, ours is applied during inference only, making it more efficient and applicable. Our experiments show that our method improves performance on unseen domains.

View on arXivView PDF

Code Implementations(1)

MIT

IDANI: Inference-time Domain Adaptation via Neuron-level Interventions

20PythonMay 23, 20224 years agoMIT

Similar Papers

Cite this paper

@article{antverg2022idani,
  title  = {IDANI: Inference-time Domain Adaptation via Neuron-level Interventions},
  author = {Omer Antverg and Eyal Ben-David and Yonatan Belinkov},
  year   = {2022},
  eprint = {2206.00259},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.00259}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.00259.svg)](https://codeofpaper.com/paper/2206.00259)

Discussion