Example-based Hypernetworks for Out-of-Distribution Generalization

Tomer Volk, Eyal Ben-David, Ohad Amosy, Gal Chechik, Roi Reichart
3/27/2022
cs.CLcs.AIcs.LG

Official code: TomerVolk/Hyper-PADA (7 stars, Python, last commit 2024-02-02).

Abstract

As Natural Language Processing (NLP) algorithms continually achieve new milestones, out-of-distribution generalization remains a significant challenge. This paper addresses the issue of multi-source adaptation for unfamiliar domains: We leverage labeled data from multiple source domains to generalize to unknown target domains at training.

Show full abstract

Our innovative framework employs example-based Hypernetwork adaptation: a T5 encoder-decoder initially generates a unique signature from an input example, embedding it within the source domains' semantic space. This signature is subsequently utilized by a Hypernetwork to generate the task classifier's weights. We evaluated our method across two tasks - sentiment classification and natural language inference - in 29 adaptation scenarios, where it outpaced established algorithms. In an advanced version, the signature also enriches the input example's representation. We also compare our finetuned architecture to few-shot GPT-3, demonstrating its effectiveness in essential use cases. To our knowledge, this marks the first application of Hypernetworks to the adaptation for unknown domains.

View on arXivView PDF

Code Implementations(1)

Official code repository for the paper: "Example-based Hypernetworks for Out-of-Distribution Generalization".

71Python, ShellMar 27, 20222 years ago

Similar Papers

Cite this paper

@article{volk2022examplebased,
  title  = {Example-based Hypernetworks for Out-of-Distribution Generalization},
  author = {Tomer Volk and Eyal Ben-David and Ohad Amosy and Gal Chechik and Roi Reichart},
  year   = {2022},
  eprint = {2203.14276},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.14276}
}

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/2203.14276.svg)](https://codeofpaper.com/paper/2203.14276)

Discussion