Part 3 · Writing the answer · Chapter 14
Fitting a word budget
In one sentence: when an answer must fit a length limit, you either cut sentences by rule or have a model rewrite the answer shorter, and each way loses something different.
Why you should care
Real answers have limits: a screen, a reader's patience, a contest rule. A model asked for full coverage will often write too much. What you do with the overflow decides which facts survive. It can also quietly break citations, which is worse than losing a fact.
Words you need
- Word budget
- The most words an answer may have.
- Trimming
- Removing whole sentences until the answer fits. Nothing is rewritten.
- Compression
- Rewriting the answer in fewer words while trying to keep its facts.
- Extractive
- Built only from sentences that already exist. Trimming is extractive.
- Abstractive
- Newly written text. Compression is abstractive.
- Redundant sentence
- A sentence that adds nothing new. In our rule: one whose cited documents were all cited earlier.
- Citation drift
- After a rewrite, a sentence cites a document that no longer supports what the sentence says.
- Gate
- A test a change must pass before it is allowed to ship.
Core The idea
Suppose the limit is 1,000 words and the draft has 1,400. There are three options.
| Option | How | Keeps | Risks |
|---|---|---|---|
| Ask for less | Put the limit in the prompt | One step, no extra cost | Models count words poorly. Drafts still run over, or stop early and miss parts. |
| Trim | Delete sentences by a fixed rule | Every remaining sentence is exactly as written, with its citations | Whole facts vanish. Which ones depends on the rule. |
| Compress | A model rewrites the draft to fit | More facts in fewer words | The rewrite can change a fact or attach it to the wrong source. |
A trimming rule
A good trimming rule deletes the least valuable sentences first. Ours works in three passes, each from the end of the answer backwards, and stops as soon as the answer fits:
- Remove sentences that have no citation.
- Remove sentences whose cited documents were all cited by an earlier sentence.
- Remove sentences from the tail.
Pass 2 rests on a guess: a sentence that draws on no new document probably adds little. The guess is cheap to compute and sometimes wrong, since one document can hold many facts.
Compression needs a gate
Compression merges and rewrites sentences. When two sentences with different sources become one, which sources should the new sentence cite? A model can get this wrong without any sign in the text. So a compressed answer must be tested: sample sentences, open the cited documents, and check that each one still supports its sentence. Set the pass mark before you look.
Watch and read
- SiteTREC RAG 2026 track page The answer length limit and the citation rules. Read 14 Nov 2026
- PaperEnabling Large Language Models to Generate Text with Citations Gao and others, 2023. How to measure whether a citation supports its sentence. Checked 15 Nov 2026
We have not found a video or a plain-language article on this exact topic that we would recommend. The textbook name for the general problem is “summarization”, with the two kinds named above.
How we did it at TREC 2026
Our prompt asked for 45 to 70 sentences, and a draft of that size can run past the limit. We first built the trimming rule above and applied it to all six runs at 1,000 words. A copy of the rule, written again from scratch for our checks, reproduces every trimmed file exactly.
In the last two days before we submitted, we tried compression. A model was asked to rewrite each raw draft into at most 980 words, keeping every distinct fact and the document identifiers of the sentences it came from. Each compressed answer then went through the same trim, assembly and repair as before.
We set a gate: a compressed run would replace the trimmed one only if at least 95% of sampled citations still supported their sentences.
| Run | Draft written by | Passed the gate? | What we submitted | Mean words |
|---|---|---|---|---|
isu-cov2-ft | gpt-5-mini | Yes | Compressed | 887.9 |
isu-cov2-gpt5mini | gpt-5-mini | Yes | Compressed | 854.1 |
isu-cov2-gemini3f | gemini-3-flash | Yes | Compressed | 666.9 |
isu-cov2-gen-dsv32 | deepseek-v3.2 | No | Trimmed | 946.8 |
isu-cov2-qwen36p | qwen-3.6-plus | No | Trimmed | 954.1 |
isu-cov2-gen-haiku45 | claude-haiku-4.5 | No | Trimmed | 920.6 |
Mean words per answer on the 42 evaluated narratives, counted as space-separated words. No submitted answer is above 1,000.
The compression script used gpt-5-mini, whatever model wrote the draft. Our notes from that week record what happened when it rewrote other models' drafts: the citations drifted. Three runs failed the gate and kept their trimmed files.
What surprised us
Two smaller surprises:
- A compressor can refuse quietly. On one narrative the compression came back at 1,452 words, far over its limit of 980. The trim then removed 18 sentences. That answer is mostly the original draft, cut by rule, inside a run we describe as compressed.
- Compressed answers came out shorter than they had to be. The Gemini run averages 667 words against a limit of 1,000. Unused budget is room where more facts could have gone.
Try it
- Write the three-pass trimming rule as a function. Test it on an answer of fifteen cited sentences with a limit of 150 words.
- Ask a model to compress the same answer to 150 words and keep the citations. Count the words it returns.
- For five compressed sentences, open the cited documents. Does each one still support its sentence?
- Which facts did trimming lose that compression kept, and the other way round?
Check yourself
- What is the difference between trimming and compression?
- What does pass 2 of our trimming rule assume?
- What is citation drift, and why is it hard to see?
- Why set the pass mark of a gate before looking at the results?
- How did the gate harm our comparison of generators?
Answers
- Trimming deletes whole sentences and rewrites nothing. Compression rewrites the answer in fewer words.
- That a sentence citing only documents already cited adds little that is new.
- A rewritten sentence cites a document that no longer supports it. The text reads well, so only opening the document shows the error.
- So the decision cannot be bent to favour the result you hoped for.
- Some runs were then shortened by a model and others by rule, so the runs no longer differ in the generator alone.
Go deeper
- Budget inside the prompt. Models follow “about 40 sentences” better than “at most 1,000 words”. A sentence target plus a hard check afterwards is a workable pair.
- Value per word. A better trimming rule would score each sentence by the key facts it adds per word and drop the lowest. That needs an estimate of the facts, which Chapter 18 provides.
- Compress per part. Compressing each part of the answer on its own keeps sources closer to their facts and lowers the risk of drift.
- Check all citations, not a sample. With an automatic support checker, every sentence of a compressed answer can be tested and only the failing sentences sent back.
- Length and score. Longer answers can cover more nuggets. When runs differ in length, a score difference may partly be a length difference. Report mean words next to every score, as the table above does.
- Project idea. On one set of drafts, compare three shorteners: our rule, a value-per-word rule, and model compression. Report nugget coverage and citation support for each.