Text Generation
Most language tasks ask a model to choose — a label, a span, a tree. Text generation asks it to produce something that was not in the input at all, and that changes both how it is built and how you can tell whether it worked.
How the text comes out
Generation is autoregressive: the model predicts a distribution over the next token, one token is chosen, it is appended to the context, and the loop runs again until a stop token. Two separable decisions live inside that loop — the model supplies the distribution, and a decoding algorithm decides what to do with it, whether that is beam search for a translation that must stay faithful or nucleus sampling for a dialogue turn that should not be identical twice. The task family splits the same way:
- Grounded generation — translation, summarisation, paraphrase — where a source text constrains what may be said.
- Open-ended generation — continuation, dialogue, headline variants — where many outputs are equally valid.
Why it is hard to trust
Because there is no single correct answer, evaluation never fully works. BLEU and ROUGE compare against reference texts and penalise a perfectly good rewording; embedding-based scores such as BERTScore help but still drift from human judgement; a careful human evaluation remains the real arbiter. The characteristic failures are fluency's own doing: output that reads beautifully and states something false, loops that repeat a phrase indefinitely, and long passages that wander away from the source they were meant to summarise. Fluency arrives early and cheaply; faithfulness does not come with it.
Text generation is the task family whose output is new text rather than a label or a span — translation, summarisation, paraphrase, dialogue and open-ended continuation. It is produced autoregressively, one token at a time, with a decoding algorithm turning the model's distribution into a string. Because many outputs are acceptable, it resists automatic evaluation: reference-overlap metrics penalise valid rewordings, and fluent output carries no guarantee of factual faithfulness.
There is a difference between answering a multiple-choice question and writing the essay. Picking an option means choosing from a list someone else wrote. Writing means producing something that did not exist before.
Text generation is the second kind of job: software producing new sentences rather than labelling existing ones. Translating a paragraph, shortening a report, replying in a chat window — all of it is generation. The system builds its answer one word at a time, each choice shaped by everything it has written so far. That is why generated text reads so smoothly, and also why it can be smoothly wrong: sounding right and being right are not the same thing, and nothing in the process guarantees the second.