Acquiring Bidirectionality via Large and Small Language Models

Takumi Goto, Hiroyoshi Nagao, Yuta Koreeda
8/19/2024
cs.CL

No official code found. Best implementation: hitachi-nlp/backward-llm (1 star, Apache-2.0, last commit 2024-12-25).

Abstract

Using token representation from bidirectional language models (LMs) such as BERT is still a widely used approach for token-classification tasks. Even though there exist much larger unidirectional LMs such as Llama-2, they are rarely used to replace the token representation of bidirectional LMs. In this work, we hypothesize that their lack of bidirectionality is keeping them behind. To that end, we propose to newly train a small backward LM and concatenate its representations to those of existing LM for downstream tasks. Through experiments in named entity recognition, we demonstrate that introducing backward model improves the benchmark performance more than 10 points. Furthermore, we show that the proposed method is especially effective for rare domains and in few-shot learning settings.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Combining LLM with backward LLM to obtain good token representations

11Shell, PythonDec 10, 20241 years agoApache-2.0

Cite this paper

@article{goto2024acquiring,
  title  = {Acquiring Bidirectionality via Large and Small Language Models},
  author = {Takumi Goto and Hiroyoshi Nagao and Yuta Koreeda},
  year   = {2024},
  eprint = {2408.09640},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.09640v2}
}

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

Discussion