AI Learns to Budget Its Own Words Before It Starts Writing
A new research technique teaches AI models to count the cost of every token they generate, cutting wasted computation without hurting quality.

Key points
- Apple ML Research published the Length Value Model (LenVM), a framework that predicts how many tokens an AI will still need to generate at every step of its output.
- Each generated token, the smallest chunk of text an AI processes (roughly three-quarters of a word), carries a small negative cost, pushing the model toward concision.
- Current AI systems manage output length only at the whole-sequence level; LenVM works token by token, giving far finer control.
- The researchers frame length control as a value-estimation problem, borrowing from reinforcement learning, the branch of AI training that rewards or penalises a model for its behaviour.
Every time a chatbot answers your question, it builds its reply one small chunk at a time. Each chunk is a token. More tokens mean more compute time and higher costs for whoever runs the service. For users, it's usually just a longer wait for an answer that didn't need to be long.
Previous fixes were blunt. Engineers would tell a model "keep your answer under 200 words" and hope for the best. The model had no running sense of what it was spending, word by word.
LenVM changes that. Apple ML Research's system gives the model a live count of its remaining generation budget at every decoding step, the moment it picks each new token. Think of it as a taxi meter ticking over with every tenth of a mile, not a flat fare agreed at the start.
Teaching the model to care is the clever part. Assigning a constant small penalty to every token generated means the model, trained to maximise its reward, learns on its own that unnecessary words cost it. It becomes self-editing without an engineer setting a hard cap.
Apple ML Research has been moving steadily on efficiency questions. We covered their CLaRa framework on 15 July 2026, which compresses documents before feeding them to an AI to cut irrelevant context. LenVM attacks the other end of the same problem: not what goes in, but how much comes out.
Does shorter always mean worse?
No, and that's the point. The model trims length on tasks that don't need long answers while keeping quality intact where depth is genuinely required. The goal isn't brevity for its own sake; it's fit-for-purpose length.
For ordinary users this plays out in two ways: snappier responses in daily chat tools, and lower running costs that providers might eventually pass on. For the industry it sketches a path toward models that regulate their own computation, rather than waiting for a human to impose a ceiling.
Watch whether this approach travels beyond Apple's own work. A technique this transferable tends to get picked up fast, and the real test will be whether it holds up at the scale of production deployments, not just research benchmarks.



