Few-Shot Learning with Siamese Networks and Label Tuning

Thomas Müller, Guillermo Pérez-Torró, Marc Franco-Salvador
3/28/2022
cs.CLcs.LG

Official code: symanto-research/few-shot-learning-label-tuning (28 stars, Python, last commit 2023-02-20).

Abstract

We study the problem of building text classifiers with little or no training data, commonly known as zero and few-shot text classification. In recent years, an approach based on neural textual entailment models has been found to give strong results on a diverse range of tasks.

Show full abstract

In this work, we show that with proper pre-training, Siamese Networks that embed texts and labels offer a competitive alternative. These models allow for a large reduction in inference cost: constant in the number of labels rather than linear. Furthermore, we introduce label tuning, a simple and computationally efficient approach that allows to adapt the models in a few-shot setup by only changing the label embeddings. While giving lower performance than model fine-tuning, this approach has the architectural advantage that a single encoder can be shared by many different tasks.

View on arXivView PDF

Code Implementations(1)

A few-shot learning method based on siamese networks.

283Python, ShellFeb 28, 20223 years agoNOASSERTION

Similar Papers

Cite this paper

@article{mller2022fewshot,
  title  = {Few-Shot Learning with Siamese Networks and Label Tuning},
  author = {Thomas Müller and Guillermo Pérez-Torró and Marc Franco-Salvador},
  year   = {2022},
  eprint = {2203.14655},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.14655}
}

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

Discussion