atlas

Research map / Large language models / Language, safety and interpretability

How Do Language Models Compose Functions?

NeurIPS 2026 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that LLMs exhibit a compositionality gap on two-hop factual/lexical tasks and use either a compositional (computing f(x) en route) or direct mechanism, with the choice predicted by whether the task is a translation in embedding space.

Problem

Whether feedforward LLMs solve compositional two-hop tasks g(f(x)) using compositional mechanisms that compute the intermediate f(x), or through direct, idiomatic mechanisms, and what determines which is used.

Approach

Combines a compositionality-gap evaluation on many lexical two-hop tasks with logit lens and token-identity patchscope decoding of residual streams to classify compositional vs. direct processing, and links the choice to whether the task is approximated by a linear translation from input embedding to output unembedding space (r^2 = 0.65).

Key results

Surprising findings

Limitations

Experimental setup

Datasets: WikiData IMDb Non-Commercial Datasets Opus-MT translations antonym lists num2words

Benchmarks: compositional two-hop task suite (factual, lexical, arithmetic, color rotation, string manipulation)

Metrics: exact match accuracy compositionality gap reciprocal rank cosine similarity of translation reconstruction r^2 correlation causal effect of activation patching

Baselines: GPT-4o DeepSeek-V3 o4-mini DeepSeek-R1

Builds on: compositionality gap (Press et al.) logit lens token identity patchscope activation patching function vectors

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy