Skip to main content
arXiv is now an independent nonprofit! Learn more
archive
Search Submit Donate Log in

Computer Science > Computation and Language

(cs)
[Submitted on 24 May 2023 (v1), last revised 20 Oct 2023 (this version, v2)]

Title:Meta-Learning Online Adaptation of Language Models

Authors:Nathan Hu, Eric Mitchell, Christopher D. Manning, Chelsea Finn
View a PDF of the paper titled Meta-Learning Online Adaptation of Language Models, by Nathan Hu and 3 other authors
View PDF
Abstract:Large language models encode impressively broad world knowledge in their parameters. However, the knowledge in static language models falls out of date, limiting the model's effective "shelf life." While online fine-tuning can reduce this degradation, we find that naively fine-tuning on a stream of documents leads to a low level of information uptake. We hypothesize that online fine-tuning does not sufficiently attend to important information. That is, the gradient signal from important tokens representing factual information is drowned out by the gradient from inherently noisy tokens, suggesting that a dynamic, context-aware learning rate may be beneficial. We therefore propose learning which tokens to upweight. We meta-train a small, autoregressive model to reweight the language modeling loss for each token during online fine-tuning, with the objective of maximizing the out-of-date base question-answering model's ability to answer questions about a document after a single weighted gradient step. We call this approach Context-aware Meta-learned Loss Scaling (CaMeLS). Across three different distributions of documents, our experiments find that CaMeLS provides substantially improved information uptake on streams of thousands of documents compared with standard fine-tuning and baseline heuristics for reweighting token losses.
Comments: EMNLP 2023 Camera Ready
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2305.15076 [cs.CL]
  (or arXiv:2305.15076v2 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2305.15076
arXiv-issued DOI via DataCite

Submission history

From: Eric A Mitchell [view email]
[v1] Wed, 24 May 2023 11:56:20 UTC (4,878 KB)
[v2] Fri, 20 Oct 2023 22:49:24 UTC (4,717 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Meta-Learning Online Adaptation of Language Models, by Nathan Hu and 3 other authors
  • View PDF
  • TeX Source
license icon view license

Current browse context:

cs.CL
< prev   |   next >
new | recent | 2023-05
Change to browse by:
cs

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
Loading...

Bookmark

BibSonomy Reddit

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
We gratefully acknowledge support from our major funders, member institutions, , and all contributors.
About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab)
Major funding support from
Simons Foundation Simons Foundation International Schmidt Sciences