Case study Part 3 of 6 · wording and blending
Wording and blending
Jev answers one statement about each paragraph, so the wording of that statement looked like the obvious lever. We tested 22 ways of asking, blended them ten ways, and tried giving Jev a draft answer to read against. Three lessons came out of it. Rewording barely moved the top of the list. Blending many wordings helped a little, mostly past the top 40. The blend that mattered most combined the original ranking with one draft-aware statement.
What Jev sees
Each paragraph is one question in a Jev request, and the user's question sits in the state. Jev never sees the neighboring paragraphs unless we add them. Here is the shape, with placeholders where the corpus text goes:
state: { library: "<one line describing the collection>", question: "<the user's question>" }question: Paragraph from "<document title>" (<source>, <date>), <section heading>: <paragraph text, 200 to 1,500 characters> This paragraph states something an answer to the question in `question` would rely on.answer: the probability that the statement is true → rank all paragraphs by it # Score: the expected level, 0 to 1. Choice: report + 0.6 × support + 0.1 × background
That last line is rely, the wording we kept. Most of the other wordings are also true-or-false statements (Nouls). Two use richer types, both asking "How useful is this paragraph for answering the question in `question`?":
- Score, with four graded levels: "Unrelated to the question", "On the topic, but an answer would not use it", "Gives supporting detail an answer could use", "States something an answer must report".
- Choice, with four options: "States a specific fact or view an answer should report", "Gives supporting detail or an example an answer could use", "Background on the topic only", "Not relevant to the question".
How the wordings were tested
Jev read all 28,167 paragraphs with rely for each of the 24 questions. Every other wording then reranked each question's rely top 2,000, which keeps the cost down. It also means no wording got a chance to reach deeper than rely already had. Opus graded paragraphs from 0 to 3, blind to rank: each question's top 250, then the top 100 of every variant, 8,363 paragraphs in all. Grade 2 or above counts as useful. The measure is the share of a question's useful paragraphs that a list reaches, compared with rely's list at the same depth. Wordings were chosen on the 16 tuning questions before the 8 held-out results were read.
Besides rely, eight wordings came from the repo's existing list, four of them compared earlier on the textbooks, and we added seven for this test. Opus proposed six more after studying what rely ranked badly. Asking rely a second time gives the noise floor, about one point.
Change in useful paragraphs reached, in points, against rely. Bold marks a 95% interval above zero. Hover a number for its interval.
| Way of asking | Top 40, tuning | Top 40, held out | Top 100, tuning | Top 100, held out |
|---|---|---|---|---|
| rely Noul · earlier set This paragraph states something an answer to the question in `question` would rely on. | base | base | base | base |
| rely-again Noul · earlier set The same statement as rely, asked again: the noise floor. | +0.4 | -1.1 | +0.9 | +0.6 |
| help Noul · earlier set This paragraph would help answer the question in `question`. | -0.0 | -1.4 | +2.0 | -0.9 |
| required Noul · earlier set Answering the question in `question` correctly requires the information in this paragraph. | -2.2 | -2.0 | -0.3 | -1.3 |
| facts Noul · earlier set A good answer to the question in `question` would include facts stated in this paragraph. | -2.7 | -0.6 | +0.6 | -0.5 |
| context Noul · earlier set This paragraph gives useful background or context for an answer to the question in `question`. | -2.5 | -2.2 | +0.5 | -3.5 |
| quote Noul · earlier set An answer to the question in `question` would quote or closely paraphrase this paragraph. | -4.4 | -2.7 | -0.8 | -2.2 |
| direct Noul · earlier set This paragraph directly answers part of the question in `question`. | -4.1 | -3.4 | -2.1 | -2.6 |
| specific Noul · earlier set This paragraph states a specific figure, date, name, decision or quoted view that an answer to the question in `question` should report. | -5.0 | +3.1 | +0.8 | -0.8 |
| omit Noul · earlier set Leaving this paragraph out would make the answer to the question in `question` less correct or less complete. | -2.2 | -2.1 | +1.2 | -0.0 |
| notes Noul · added for this test Someone researching the question in `question` would highlight this paragraph in their notes. | +0.7 | -2.8 | +3.7 | -1.8 |
| evidence Noul · added for this test This paragraph contains a concrete claim, number, example or first-hand remark that is evidence for some part of an answer to the question in `question`, even if it does not use the question's words. | +0.9 | -0.1 | +3.6 | +0.2 |
| implied Noul · added for this test Read in light of the source's title and date, this paragraph says something that bears on the question in `question`, even if the subject is only implied. | +2.2 | -0.3 | +5.4 | -1.1 |
| rely+prev Noul · added for this test This paragraph states something an answer to the question in `question` would rely on. (shown with the previous paragraph) | -2.4 | -1.0 | -0.8 | +0.5 |
| evidence+prev Noul · added for this test This paragraph contains a concrete claim, number, example or first-hand remark that is evidence for some part of an answer to the question in `question`, even if it does not use the question's words. (shown with the previous paragraph) | -0.2 | -1.7 | +3.5 | +1.6 |
| score4 Score · added for this test How useful is this paragraph for answering the question in `question`? Four levels, from unrelated to must report. | +1.1 | +0.1 | +6.4 | +0.5 |
| choice4 Choice · added for this test How useful is this paragraph for answering the question in `question`? Four options: report, support, background, none. | +1.4 | -1.0 | +7.7 | -0.7 |
| gives-specific-answer Noul · proposed by Opus This paragraph contains a specific figure, date, name, decision, or stated reason that directly answers some part of `question`, even if it appears only as a table row, a footnote, or a spoken remark. | -5.4 | -0.8 | -0.6 | -2.1 |
| serves-any-subpart Noul · proposed by Opus This paragraph supplies information for at least one of the distinct things `question` asks, including minor or late clauses, not only its main subject. | -2.5 | -0.4 | +1.9 | +0.8 |
| matches-period-and-subject Noul · proposed by Opus The facts in this paragraph concern the same entity, event, and time period that `question` asks about, not an earlier occurrence or a different entity sharing similar terms. | -7.4 | -12.4 | -6.6 | -20.1 |
| more-than-context Noul · proposed by Opus Beyond identifying or describing the entities named in `question`, this paragraph reports an outcome, amount, change, judgment, or plan that `question` asks for. | -4.7 | +1.6 | -0.2 | -0.1 |
| not-boilerplate Noul · proposed by Opus This paragraph is not standard repeated text such as a company description, division blurb, contact line, or accounting-method explanation; its content is particular to what `question` asks. | -1.7 | +0.5 | +1.5 | -4.5 |
| indirect-match Noul · proposed by Opus Read together with its source title and date, this paragraph provides something `question` asks for, even if it refers to the subject indirectly, through an anecdote, a garbled transcription, a different language, or names the question only paraphrases. | -4.0 | +2.7 | -0.7 | +4.6 |
Winners on tuning questions didn't hold
The dashed line is where the held-out gain equals the tuning gain. Most wordings that did well on tuning questions fell close to zero on held-out ones, and Opus's indirect-match wording did the reverse:
With 16 and 8 questions, a few points either way is mostly noise. Of the single wordings and the ten pairings with rely we tested, only rely plus a graded Score, with their log-odds summed, had a 95% interval above zero on both sets: +4.3 [2.5, 6.2] and +2.1 [0.5, 4.3] at top 100. Even that added only 2 gold facts on tuning questions and none on held-out ones. It's a different result from email, where wording moved accuracy a lot. Our guess is that a ranking cares less about wording than a threshold does, and that most misses here come from what Jev is shown. We haven't tested that explanation.
Why useful paragraphs rank low
Opus was shown about 210 useful paragraphs that ranked 41 to 250 on the tuning questions, and about 130 useless ones in the top 40, at most 15 and 10 a question. Its rough shares, out of about 180 and 110 that it counted:
Useful, ranked low
- 35%: table rows or footnotes whose headers were cut off
- 20%: answer a late part of a multi-part question
- 17%: spoken or machine-garbled transcript
- 10%: refer to the subject only indirectly
Useless, ranked high
- 27%: background that names the right entities but answers nothing
- 23%: repeated boilerplate, such as company blurbs
- 18%: the right kind of fact for the wrong period or instance
- 12%: method or accounting text, or tables that stop before the answer row
- 11%: the same keyword for a different entity
- 9%: off-topic conversation in transcripts
Opus aimed its six wordings at both lists. None reliably helped. A table row without its header doesn't say what its numbers mean, however the question is put. That's why we expect restoring table headers and speaker labels to matter more than more wordings, though that isn't measured yet.
Wording also changes the score scale. On the textbooks, the share of paragraphs scoring 0.5 or more ran from 0.8% to 12.9% across wordings. A fixed "hot" threshold belongs to one wording, so rank instead, or normalize before mixing wordings.
Blending: many answers per paragraph
One request can carry many questions, so a paragraph can be asked several ways at once and the answers combined in code. To reuse what we had, we scored each wording in its own pass and blended the saved scores. That should give the same answers as asking them together, though we didn't check. The flow:
We blended the 21 wordings that ranked sensibly, one pass per wording: all but the period-and-subject wording, which failed as a ranker, and the repeat of rely. The options, from simplest to most learned:
| Blend | How it works | What to watch |
|---|---|---|
| Max of probabilities | A paragraph ranks by its best answer from any wording (Score and Choice give 0-to-1 values, not true probabilities) | A wording with a looser scale dominates, and noise from any one wording gets through |
| Max of z-scores | Standardize each wording's log-odds first, then take the best | Fixes the scale problem, not the noise |
| Mean of log-odds | Average the evidence across wordings | Treats wordings as separate witnesses, but they're correlated |
| Mean of z-scores | The same after standardizing | Nearly identical to mean of log-odds here |
| Median of z-scores | The middle answer | Ignores one odd wording, and also ignores one sharp one |
| Mean of the top 3 z-scores | Between max and mean | One more number to choose |
| Reciprocal rank fusion | Sum 1 / (60 + rank) across wordings, using ranks only | Needs no calibration, so it can mix wordings, models or BM25 |
| A few wordings chosen on tuning questions | rely plus 2 or 4 wordings added one at a time by what helped most on tuning questions, then reciprocal rank | Selection overfits like any tuning |
| Logistic regression | Learned weights on the 21 z-scores, fitted to graded paragraphs plus a sample of ungraded ones counted as not useful | Needs labels, and the weights mislead (below) |
| CatBoost ranker | A learned ranker (YetiRank) on the z-scores plus source, length, digit share and heading | Needs labels, learns this corpus, and needs refitting elsewhere |
How they did
All 24 questions, top 100, against rely. The two learned blends were judged one question at a time, each time trained on the other 23:
| Blend, all 24 questions | Top 40 | Top 100 | Questions better / worse at 40 | Gold facts at 40 / 100 |
|---|---|---|---|---|
rely alone | — | — | — | 96 / 113 |
| Max of probabilities | +2.4 [0.4, 4.7] | +4.1 [1.6, 6.8] | 10 / 9 | 97 / 114 |
| Max of z-scores | +1.4 [−0.9, 4.0] | +5.7 [2.1, 10.3] | 7 / 11 | 94 / 118 |
| Median of z-scores | +0.9 [−0.7, 2.8] | +4.9 [2.6, 7.3] | 9 / 6 | 92 / 118 |
| Reciprocal rank, all 21 | +1.0 [−0.4, 2.6] | +5.0 [2.6, 7.5] | 13 / 5 | 95 / 119 |
| Mean of z-scores | +1.5 [−0.2, 3.5] | +5.5 [2.8, 8.7] | 14 / 5 | 96 / 120 |
| Mean of log-odds | +1.6 [−0.1, 3.7] | +5.7 [3.0, 8.9] | 14 / 5 | 96 / 121 |
| Mean of the top 3 z-scores | +1.0 [−1.0, 3.3] | +5.9 [2.7, 9.9] | 10 / 8 | 93 / 120 |
| Logistic, leave one question out | +1.9 [−0.1, 4.1] | +7.0 [3.7, 10.6] | 14 / 5 | 98 / 121 |
| CatBoost, leave one question out | +3.1 [0.8, 5.7] | +9.2 [5.5, 13.9] | 14 / 5 | 109 / 124 |
The fairer test trains only on the 16 tuning questions and judges on the 8 held out:
| Blend, 8 held-out questions | Top 40 | Top 100 | Questions better / worse at 100 |
|---|---|---|---|
| Max of probabilities | +1.8 [−1.2, 5.1] | +2.1 [−1.6, 6.1] | 4 / 2 |
| Mean of log-odds | +1.2 [0.6, 1.9] | +2.8 [0.7, 6.0] | 6 / 0 |
| Reciprocal rank, all 21 | +1.1 [0.5, 1.7] | +2.8 [0.6, 6.1] | 6 / 1 |
| 3 wordings chosen on tuning, reciprocal rank | +1.7 [−0.4, 4.3] | +1.2 [−1.3, 4.2] | 3 / 4 |
| 5 wordings chosen on tuning, reciprocal rank | +1.6 [0.5, 2.7] | +1.3 [−0.5, 3.7] | 4 / 1 |
| Logistic, trained on tuning | +1.4 [0.1, 3.2] | +4.3 [0.2, 8.9] | 6 / 2 |
| CatBoost, trained on tuning | +1.1 [−0.4, 2.7] | +4.1 [1.4, 7.2] | 6 / 0 |
What we take from these:
- Blending helps a little, mostly further down. At top 40 every blend is within about 3 points of
rely. At top 100 most gain 4 to 9 points over all 24 questions, and 1 to 4 on the 8 held out. If you read only a short list, blending isn't worth the cost. - Average, don't take the max. Max looks fine on totals, but at top 40 it's better on 10 questions and worse on 9. Mean of log-odds, mean of z-scores and reciprocal rank were the steadiest simple blends. On held-out questions at top 100, mean of log-odds and reciprocal rank were better on 6 and worse on at most 1.
- A hand-picked few didn't beat all 21. At top 100 on held-out questions, three or five wordings chosen on tuning questions gained +1.2 and +1.3, against +2.8 for all 21 blended by reciprocal rank. At top 40 they were about the same.
- Learned blends win, but at a price. CatBoost gained the most in the leave-one-out test. It also saw source, length, digit share and heading, and we didn't test it without them, so some of the gain may not come from the wordings. On held-out questions it and logistic were about level, +4.1 and +4.3 at top 100. Both need graded paragraphs to train on, and fitted to this corpus, they would need refitting on another.
- Don't read the logistic weights as a ranking of wordings. In the fit on tuning questions, the largest were four-way Choice +0.77, notes +0.62 and Opus's more-than-context +0.58. "Help" got −0.85 and "evidence" −0.73, probably because correlated wordings split the credit, though we didn't check. A negative weight here doesn't mean a wording is bad.
On cost, the 20 extra wordings over each question's top 2,000 cost about $0.41 a question, roughly 2 cents each, a little more for Score, Choice and the wordings that show the previous paragraph. The full rely read costs $0.233.
The blend that mattered most: a draft-aware reread
The biggest gain didn't come from rewording the question. It came from giving Jev something new to read against: the first answer. In the second pass, the state holds the question and a draft, and Jev judges each paragraph against both. We tried the three parts of the idea alone, as a max, as one combined statement, and blended with rely. The exact statements are in part 4. Missed gold facts found in added paragraphs, all 24 questions, of 65:
| Second-pass ranking | 20 added | 40 added | 60 added |
|---|---|---|---|
Read further down rely | 15 | 20 | 24 |
| "Corrects" alone | 15 | 22 | 26 |
| "Adds" alone | 18 | 22 | 26 |
| "Expands" alone | 18 | 22 | 23 |
| Max of the three | 19 | 25 | 27 |
| One combined statement | 21 | 27 | 29 |
Combined, blended with rely by reciprocal rank | 28 | 31 | 32 |
Two blending lessons repeat here. One statement that names all three things found 2 more missed facts than the max of three separate statements at each depth, though the max reached slightly more useful paragraphs. And blending the new ranking with the old one beat replacing it. Our guess is that rely still tracks what the question asks while the draft-aware statement tracks what the draft lacks, but we didn't test that. The combined statement over only rely's top 2,000 found the same facts as over every paragraph, for about $0.02 a pass instead of $0.29. Part 6 follows this pass through as a sequence diagram, along with what it did to the answers.
What we would use
read every paragraph with one plain statement (rely)if you will read more than about 40: ask a handful of different wordings over the top 2,000 blend by mean of log-odds or reciprocal rank # not max with graded examples: a learned ranker, refitted per corpus, checked on held-out questionswrite a draftreread the top 2,000 with the draft in the state, one combined statementblend that with rely by reciprocal rank; add the best new paragraphsfix what Jev is shown before adding wordings # table headers, speaker labels
Options we haven't tried
- Paragraph in the state, wordings as the questions. We put each paragraph in the question text, so 21 wordings bill the paragraph 21 times. With the paragraph in the state, it would be billed once. At about 200 tokens a paragraph and 30 a wording, that's roughly 830 tokens a paragraph against about 4,200, five times fewer. But it needs one request per paragraph, 2,000 a question, which is about 25 s at 80 requests a second. That's an estimate, and we haven't checked that Jev scores the same way in that layout.
- Weighted reciprocal rank, giving
relyor the draft-aware list more weight than the others. - Choosing wordings per question, for instance a transcript wording only when the top list is mostly spoken text.
- Blending across models. Reciprocal rank needs no shared scale, so Jev, another decision model and BM25 could share one list.
Limits. One pass of Opus grades, which saw a sample of gold facts. Variants only reranked rely's top 2,000. The second-pass table counts facts found in paragraphs, not facts stated in answers, and its blend was chosen after seeing the results of seven methods. All 24 questions have now been inspected, so a further held-out claim needs fresh ones. The wording test cost $30.38: $16.44 for Jev and $13.94 for Opus grading and analysis.
Next: The loop, built: the recipe, the exact statements and the second pass in context.