Conditional Language Learning with Context

Xiao Zhang, Miao Li, Ji Wu
6/1/2024

No official code found. Best implementation: xiaozeroone/conditional_finetune (4 stars, Apache-2.0, last commit 2024-05-31).

Abstract

Language models can learn sophisticated language understanding skills from fitting raw text. They also unselectively learn useless corpus statistics and biases, especially during finetuning on domain-specific corpora. In this paper, we propose a simple modification to causal language modeling called conditional finetuning, which performs language modeling conditioned on a context. We show that a context can"explain away"certain corpus statistics and make the model avoid learning them. In this fashion, conditional finetuning achieves selective learning from a corpus, learning knowledge useful for downstream tasks while avoiding learning useless corpus statistics like topic biases. This selective learning effect leads to less forgetting and better stability-plasticity tradeoff in domain finetuning, potentially benefitting lifelong learning with language models.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
40PythonMay 31, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2024conditional,
  title  = {Conditional Language Learning with Context},
  author = {Xiao Zhang and Miao Li and Ji Wu},
  year   = {2024},
  eprint = {2406.01976},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2406.01976},
  journal = {ICML 2024 2024}
}

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

Discussion