LM2 Compiling a Language Model into Another Model Weights
Naman Chawla, Chhavi Dhiman
Key points
From the paper's conclusion- We compare this approach with QwenPU, which executes the stories260K language model on an embedded processor.
Abstract
Deploying a conversational model and a specialist together could avoid maintaining a separate specialist service. We present LM2, which embeds a trained story generator into a larger conversational model. The larger model handles the conversation and invokes the generator for story requests. We constrain the generator arithmetic during training so its calculations can be compiled directly into added model layers. We compare this approach with QwenPU, which executes the stories260K language model on an embedded processor. LM2 requires one host token per generated character, compared with approximately 25,000 for QwenPU. However, its story generator predicts held out text less well, i.e. 1.145 bits per character versus 0.894 for stories260K, where lower is better. The Qwen3.5, 0.8B implementation occupies 18.1 GB and generates the same characters as a standalone integer implementation of the inner model in the tested runs. These results illustrate a tradeoff between host-token cost and text-prediction performance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- DConstrain: Compiling Context-Parameterized Transitions for Diffusion Language Model Constrained DecodingarXiv · 2026
- A Tool in the Forward Pass: Frozen Tape Modules as Layers of a Small Language ModelarXiv · 2026
- AgentPRO: Coordinating Compiler Optimizations for LLM Agent WorkflowsarXiv · 2026
- CompressionBench: How can your coding agents compress LLMs?arXiv · 2026
- Together Compiler: Continual Compilation for AI InferencearXiv · 2026
- Epoch: Compiling Diffusion Blocks for Sparse MoE ServingarXiv · 2026