Evidence Allocation — design¶
Status: shipped in 2.6.5, and the order mode cuts since 2.6.8. The first pre-release (2.6.5a1) ships the payload
sequence ordered across records (sections 3 and 4) as
CPERSONA_RECONSTRUCT_SEQUENCE=evidence, off by default. 2.6.5a3 adds the same
order behind a floor drawn by record length (whole, the end of section 4), also
off by default, and lite=true on reconstruct, which uses it at 2,800 characters. The coverage step of section 5 was
built on top of whole, judged on both packs' test questions, and set aside.
Each step is measured against a rule registered before any answer call
(section 7). SCHEMA_VERSION does not change: everything below
reads the blocks and int8 block vectors a store already has.
0. What this step is¶
reconstruct returns items cut to a payload budget by one fixed sequence
(section 7):
every head quote in item order, then each item's excerpts in turn. Since v1.2 a
head quote is the part of its record that matched, sized by the item's place —
800 characters for the first five items and 400 after them. The budget chooses
only how long a prefix of that sequence to return, so raising it never removes
anything (invariant 9).
The sequence decides how a smaller budget is spent, and it spends it on place in the window, not on evidence. This step orders the quoted passages by how likely they are to carry the answer, across every record in the window, and cuts that order instead.
1. What was measured first¶
Four instruments on OmniMemEval's LongMemEval-S (500 questions, v1.2 at the same search) fixed what the change has to do:
| Measured | Result |
|---|---|
| Removing items from the end (count curve) | Four items: 77.00% at 994.6 Context Tokens, against 81.60% at 1,786.7 with every item. Multi-session questions lose the most |
| Shortening every quote (quote curve) | At the same cost, worse than removing items at both points measured: 7.40 points below four items, 4.20 below six |
| What a context quotes (evidence metrics) | With every item, 96.2% of answer sessions are quoted, but only 21.9% of the quoted text comes from them. The first item carries an answer session on 426 of 500 questions |
| Where a shorter quote loses the evidence | The evidence turn left outside the quote, though in a quoted record, rises from 7.5% to 23.3% of evidence turns at 320/160 characters; none is lost by cutting a passage that was too long |
| Where the evidence ranks inside its record | Of 859 evidence turns in quoted answer records, the record's best-ranked passage reaches 62.9%; the second 16.3%, the third 6.3%, the fourth or fifth 6.4%, a later one 8.1%. Recomputed with the server's ranking, which reproduced all 5,888 quoted ranges |
The last two rows are the ones this design rests on. The turn that answers is often not the best-ranked passage of its record: a long quote reaches it by filling the second and third passages, and a short one does not. Removing items, the other uniform cut, loses the second session a multi-session question needs. Both cuts are blind to the evidence.
2. Candidate passages¶
A candidate passage is a block of a record in the window, extended to the range
that governs it (blocks.context_range: the sentence it sits in and a
neighbour that qualifies it). Every record of every item contributes its
blocks; a record with no current block set contributes the passages its quote
is divided into at read time, as today. Overlapping governing ranges of one
record are merged into one passage before ranking, so no text is offered twice.
3. One order across records (2.6.5a1)¶
Today rank_blocks orders the blocks of one record. Here every candidate
passage of every record is placed in one order, by reciprocal-rank fusion of
three ranks:
- the record's rank in the recall that produced the window;
- the passage's rank inside its record (the current
rank_blocksorder); - the passage's rank among all candidates by the cosine of its stored int8 vector to the query vector.
Ties are broken by the record's rank, then by the passage's position in its text, so the order is total and deterministic. No score is reported; the trace records each passage's three ranks.
Inside one record, this order differs from rank_blocks only by the extra
weight it gives the vector: the record's rank is the same for all of its
passages. Its use is across records, so it is measured as the payload sequence
of section 4, not inside today's sequence.
4. The payload sequence (2.6.5a1)¶
The payload sequence becomes the candidate passages in the order of section 3, independent of the budget. The budget then cuts this sequence exactly as it cuts today's: the response is the longest prefix that fits. Invariant 9 keeps its form — the budget only chooses the prefix, so raising it never removes a passage — but its first clause changes: the sequence no longer puts every head before any excerpt. A passage of the first record may now come before the only passage of the tenth, so a small budget can return fewer items with more of each. Section 1 is why: at the same cost, keeping every item thin lost more than keeping fewer items whole.
What a response looks like does not change. Items are still one per record,
in recall order; an item's content is the passages of its head record that
the prefix took, shown in text order and joined as a head quote is today
(ranges names them), and excerpts keep quoting the item's other claims; a
record with no passage inside the budget returns no item, and the omission is
reported as today. count keeps
its meaning, a ceiling on items. The trace records the sequence, and for each
passage its ranks (and, once section 5 is implemented, the parts it covered).
Excerpts follow every passage (2.6.8). Until 2.6.8 the excerpts were not in
this sequence: they took what the passages left of the budget. A larger budget
that took one more passage left less, so it could take an excerpt away, which
invariant 9 forbids (measured on a development question: from 5,623 to 5,700
characters, one quote grew by 151 characters and a later item's excerpts were
omitted). The sequence is now every passage, then the excerpts in the order of
section 7 (each item's first in item order, then each item's second), so an
excerpt is carried only once every passage is, and the budget again only
chooses a prefix. Under lite=true this changes a response only where an item
carried an excerpt while a passage was left out: at most 6 of LongMemEval-S's
500 questions (the ones whose lite=true response in 2.6.7 carried an excerpt
at all), and none of the private real-use pack's 300.
A floor by record length (2.6.5a3)¶
On the private real-use pack's development questions, the order of section 3 lost answers that today's sequence kept. The budget went to the second and third passages of the first records, and the items it then dropped were short records that held the answer: most of the evidence it lost sat in records no longer than one quote. On LongMemEval-S, where a record is a session and the answer is usually in the first item, the same order was the better one.
CPERSONA_RECONSTRUCT_SEQUENCE=whole keeps the order and puts a floor in front
of it, drawn by length. Every head record no longer than a quote
(CPERSONA_RECONSTRUCT_QUOTE_CHARS), which section 2 already gives as one
passage, the record itself, opens the sequence in item order. The passages of
the longer records follow in the order of section 3. A short record costs no
more than its own text, and the budget still cuts a prefix, so raising it never
removes a passage.
Two other floors were measured on the same development questions and set aside. Every record's best passage first spent the budget one passage deep on every long record: on the real-use pack it lost answers that sat in a long record's second passage, and on LongMemEval-S it gave up the depth the order gives the first records. A floor that also held records up to two quotes long, to one quote's worth of their passages, left the longest records outside it, and the lower-ranked records inside it pushed those out of the top ranks.
On those development questions whole showed at least the evidence evidence
showed, on both packs and at every budget measured. On the real-use pack it
still showed less than today's sequence at most budgets: what it ranks below its
floor includes records between one and two quotes long that today's sequence
quotes at the top ranks. evidence keeps its meaning; whole is a separate
value, and the default does not change.
5. Coverage (judged, set aside)¶
The coverage step was built, judged against whole and not shipped. It rebuilt
the order of whole by a greedy pass, still independent of the budget:
- Start from the order of
whole(section 4). - Take the first passage. Mark the parts of the question it holds: the
coverage ledger's parts, the words of the question that
trace.coveragerecords (a run of two or more kanji or katakana, or an ASCII identifier, after NFKC and lower case), found inside the passage's own range. - Place every passage left at its place in that order, moved up five places if it holds a part no passage taken so far holds, or down five places if every part it holds is already held, and take the first. A passage that holds no part keeps its place, and ties go to the earlier place. Repeat until every candidate is placed.
The passages of the first two records in item order were never moved down: those records are where the answer usually is, and a second passage of the same record repeats the question's words because it is about the same thing.
On the private real-use pack's development questions it showed more evidence
than whole at every budget measured (113 against 104 at 2,800), and on
LongMemEval-S's development questions it showed the answer sessions at least as
often. Three other orders were set aside there. Filling every record to its
head quote's size in item order first, as today's sequence does, showed the
most evidence on the real-use pack, but on LongMemEval-S, where a record is a
session, that is four items' worth of sessions, and it showed the answer
sessions as rarely as four items do. Filling only the first two records that
way first was level with keeping them from moving down, and moving passages
without keeping the first records showed less.
The registered test did not carry the development gain
(results).
On the private pack's 150 test questions at 2,800, coverage showed 121 of 196
evidence quotes against whole's 120, and 2 fewer than today's sequence at the
same characters; at 2,000 and 4,000 it showed 7 and 2 more than whole. On
LongMemEval-S's 400 test questions it changed 319 contexts and showed the
answer sessions about as often as whole (95.5% against 95.7%). At the same
characters, today's sequence, whole and coverage were within a few quotes
of each other on the real-use pack: once short records are protected, ordering
the window's passages by the question's words does not move the evidence shown
much. whole stays the sequence of lite=true, and from 2.6.8 of both
reconstruct modes.
6. What does not change¶
No model is called; content is a quotation of stored text; the result is
deterministic; every passage carries its record's reference. The schema, the
recall that produces the window and the meaning of count are unchanged.
7. How it is judged¶
- Primary: at a budget whose Context Tokens are at most 1,000, the 95% bootstrap interval of the paired accuracy difference against four items (77.00% at 994.6) has its lower bound above zero — better than today at the same cost.
- Secondary: against every item (81.60%), the lower bound at or above −2.0 points, the count curve's rule.
- Development and test are separated. Settings are chosen on the private
real-use pack's development questions and on 100 LongMemEval-S questions
drawn once by a fixed seed
(
v1_5_dev_questions.json); the claim is measured once, on the other 400. - The evidence metrics are reported beside accuracy at every point, and the controls (four items, six items, every item, and the two quote-curve points) reuse their recorded answers.
wholeagainstevidenceis judged at the budget of the 2.6.5a1 test, on the same 400 LongMemEval-S test questions and on the private pack's test questions, by the rules registered inprereg-omnimemeval-lme-v1_5-whole.md.coverageagainstwholewas registered the same way, at the same budget, inprereg-omnimemeval-lme-v1_5-coverage.md. The private pack's test, run first, did not meet its rule, and the LongMemEval-S answer stage was not run (section 5).
8. Deferred¶
- Splitting the question into clauses for coverage: the coverage step of section 5, on the ledger's lexical parts, did not move the evidence shown, so a finer split has no measured reason yet.
- A budget that adapts to the question (section 7 of the recall design defers adaptation until a fixed policy has a reproducible baseline and an audit contract; this design is that fixed policy).
- Sub-block evidence units and sparse or late-interaction scores from the embedding server.