The source document starts from a practical product failure: a model can say the right thing and still feel wrong because the answer does not fit the mobile screen.
The sites we like set a useful bar. Cursor makes research feel immediately product-adjacent. Thinking Machines keeps the writing direct and unornamented. Anthropic gives product and research updates a calm editorial frame. This page uses that structure, but the skin is Kaon: dark, low-key, and carried by a single bloom of color.
The problem
Most generation systems still treat length as a token setting. That is too far away from the product. The same answer can be comfortable on a large phone and overwhelming on a small Android screen, even if the token count is identical.
max_tokens is only an upper bound. It does not define a target, it
does not understand script density across languages, and it does not know whether
130 words appear as one heavy block or three readable turns.
The method
The note turns interface constraints into language signals the model can learn: calibrate real mobile surfaces, map available space into a compact length bucket, put that target in the prompt, then use reward training to connect the target to rendered UI behavior.
latin_words_091_110 latin_words_111_130 latin_words_121_140 latin_words_131_150
The important constraint is that online inference stays lightweight. The training loop can use renderers, screenshots, and reward models, but production only needs a small UI prompt derived from device and language information.
Bucket-fit hit rate after UI-aware reward training.
Over-long responses nearly disappeared on the evaluation set.
Mean words moved into the calibrated target range instead of hitting a blunt cap.
The reward design separates three ideas that are easy to collapse: length fit, reading structure, and information density. That is the right distinction. The goal is not to make everything shorter; it is to make each answer right-sized for the surface.
What changes in the product
The document checks the result where it matters: real Android ChatView screenshots. Small screens should stop overflowing. Medium screens should land in the target band. Large screens should use their extra room instead of going thin.
Small screen: Bookshop prompt
same target, different sceneSmall screen: Galaxy A06
long tail compressed into 90-110 wordsMedium screen: Galaxy A15
stabilized around 111-130 wordsLarge screen: iPhone Pro Max
extra space used instead of wastedSecond large-screen case
same direction on a different promptMy read
This is the right direction because it treats model behavior and interface behavior as one system. That is where frontier product quality is moving: capable models that also understand the small physical constraints of the work surface.
The next useful benchmark is not only "did the model answer?" It is "did the answer fit the moment?"
- Keep The rendered-capacity bucket. It is more honest than a generic token cap.
- Measure Visible completion, scroll pressure, follow-up rate, regeneration rate, and device split.
- Watch Over-compression. A response can fit the box and still omit the decisive detail.
Article based on the Feishu research document. Blog structure referenced Cursor, Thinking Machines, and Anthropic; brand treatment follows the Kaon design asset package.