Why is 'answer in exactly 50 characters' harder than it sounds for an LLM?
Show answer & explanation
Answer: It predicts token steps
It predicts token steps ✓ — The model produces text as a sequence of tokens, then those tokens decode back into characters. Because one token can become one letter, part of a word, punctuation, or a whole word, exact character budgets are awkward without a separate checking step. Generation happens in token steps, while the requirement is measured in characters.
It cannot count words — Counting words is the wrong target here. The user asks for characters, while the model generates one token step after another. Exact length needs a separate character-count check.
It forgets punctuation — Punctuation can cause off-by-one mistakes, but punctuation is just one example of the deeper issue. Spaces, capitalization, and partial words all count as characters while being tokenized in uneven ways. The mismatch is structural, not merely forgetfulness.
More Technology questions
- Why can a satellite redness index flag rusting Arctic rivers but not identify chemically hazardous streams?
- A service publishes a fresh random number every minute, plus a public log in which each entry carries a fingerprint of the entry before it. What does that chaining add?
- Why can a wall of lava lamps used as a camera feed improve encryption even though the cryptographic software that consumes it is deterministic?
- Why can an attacker who learns a pseudorandom generator's seed and algorithm reconstruct later outputs?
- Why is a physical noise source secure against an attacker who knows the code, unlike a phone game shuffle?
- Why do quiet EVs need alert sounds at parking-lot speeds before tire noise becomes audible?