ResearchResearch paperLarge Language Models1 source · Oct 13, 2026

LLMs program using Reusable and Composable Abstract Representations

We show that the activations of LLMs capture this shared structure in reusable and composable abstract representations when they generate code.

Key points

  • When writing code, the same computation can be expressed in different programming languages and through different implementation strategies.
  • Using activation steering, we show that function, programming language, and implementation strategy can be independently manipulated.
  • We additionally find that finetuning on examples of arbitrarily defined functions in one programming language transfers to other languages, consistent with the models reusing abstract features of code generation that are shared across different examples.
  • Finally, to study how such abstract representations come to be, we implement a minimal model of shared, reusable, and composable structure in a synthetic setting, and show that transformers trained on such data learn representations that reuse these parts flexibly across contexts.

Sources (1)

  • [1]LLMs program using Reusable and Composable Abstract Representations
    arXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 13, 09:56 PM
    We show that the activations of LLMs capture this shared structure in reusable and composable abstract representations when they generate code.
    When writing code, the same computation can be expressed in different programming languages and through different implementation strategies.

Extractive summary: sentences quoted from the sources.

Before this

  1. Oct 13, 2026PairIT: Autoregressive Transformers for Low-Data Molecule Optimization
  2. Oct 13, 2026Run fast, private agents on-device with LFM2.5-24B-A2B
  3. Oct 13, 2026CryoTracer: A Synthetic-to-Real System for Filament Instance Tracing in Cryo-EM
  4. Oct 13, 2026DriveWLA: Unifying Future Dynamics and Scene Semantics through World-Language-Action Modeling for Autonomous Driving
  5. Oct 12, 2026Towards Universal Calibration for In-Context Classification
  6. Oct 12, 2026unslothai/unsloth v0.1.906-beta: Browser Use + Qwen-Image-2.1-Turbo

Related