Architecture

LLM Augmented LLMs (CALM)

First page
LLM Augmented LLMs (CALM)
Paper summary

Google's CALM composes a large anchor LLM with smaller specialist models via learned cross-attention, unlocking new capabilities without retraining either model.

Ask this paper

Key points
01

Cross-attention composition: Small cross-attention layers learn to route information between the anchor LLM and an augmenting specialist model, combining their representations at multiple depths.

02

Low-resource language boost: Augmenting PaLM 2-S with a small specialist model trained on low-resource languages materially improves English translation and arithmetic reasoning in those languages.

03

+40% code gains: Augmenting with a code-specialist model delivers roughly a 40% improvement over the base code model on code generation and explanation tasks.

04

Modular capability growth: Suggests a future where capability extension happens by composing cheap specialists against an expensive frozen base, rather than retraining the base model on every new domain.

Abstract

Foundational models with billions of parameters which have been trained on large corpora of data have demonstrated non-trivial skills in a variety of domains. However, due to their monolithic structure, it is challenging and expensive to augment them or impart new skills. On the other hand, due to their adaptation abilities, several new instances of these models are being trained towards new domains and tasks. In this work, we study the problem of efficient and practical composition of existing foundation models with more specific models to enable newer capabilities. To this end, we propose CALM -- Composition to Augment Language Models -- which introduces cross-attention between models to compose their representations and enable new capabilities. Salient features of CALM are: (i) Scales up LLMs on new tasks by 're-using' existing LLMs along with a few additional parameters and data, (ii) Existing model weights are kept intact, and hence preserves existing capabilities, and (iii) Applies to diverse domains and settings. We illustrate that augmenting PaLM2-S with a smaller model trained on low-resource languages results in an absolute improvement of up to 13\% on tasks like translation into English and arithmetic reasoning for low-resource languages. Similarly, when PaLM2-S is augmented with a code-specific model, we see a relative improvement of 40\% over the base model for code generation and explanation tasks -- on-par with fully fine-tuned counterparts.

Every Monday
Get next week’s papers.
Subscribe on Substack