Skip to content

Commit 92cc816

Browse files
committed
Flatten graph retrieval latency
1 parent e86af4b commit 92cc816

4 files changed

Lines changed: 613 additions & 349 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ no future or current-turn leakage, hidden labels absent, text-only RAG
4949
baselines. Artifact:
5050
`eval_runs/msc_frontier_late_200dlg_gpt55_20260630T053427Z/judge_openai_gpt55_four_system_clean.json`.
5151

52+
A post-optimization full replay on the same 9,130-turn MSC slice preserved the
53+
native probe behavior exactly while flattening graph-retrieval latency. The 9
54+
progress checkpoints reported `GraphRetrieve.total` between 13.7 ms and 27.7
55+
ms, and the 9 judged probe turns reported 21.8-28.6 ms. Non-timing probe fields,
56+
retrieved/working memory IDs, retrieval counts, memory counts, and consolidation
57+
counts matched the saved baseline exactly. Artifact:
58+
`build/graph_profile/full_msc_verify_final/summary.json`.
59+
5260
An earlier local blind-judge pass (2026-06-28) on a one-year sparse replay,
5361
judged by Gemma4-12B-AWQ over vLLM at a 131,072-token context, completed 93/93
5462
judgments.

docs/paper/_manuscript/index.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3736,9 +3736,11 @@ path</td>
37363736
<tr>
37373737
<td>retrieval seed surface</td>
37383738
<td>current-memory embedding lookup instead of all reconstruction
3739-
versions</td>
3740-
<td>latest reconstruction remains visible without unbounded scan
3741-
growth</td>
3739+
versions; recent seed and same-source expansion use the live retrieval
3740+
surface cache before SQL fallback</td>
3741+
<td>latest reconstruction remains visible without unbounded scan growth,
3742+
and source-neighbor behavior is preserved without per-seed table
3743+
scans</td>
37423744
</tr>
37433745
<tr>
37443746
<td>graph expansion</td>
@@ -3773,6 +3775,18 @@ The important correctness point is that these are implementation changes
37733775
to the retained engine. They do not reintroduce the removed semantic
37743776
batch stack.
37753777

3778+
On 2026-06-30, a full Meta MSC replay rerun verified the retrieval-cache
3779+
optimization on the same 9,130-turn slice used for the hosted
3780+
frontier-judge artifact. The run preserved native probe behavior
3781+
exactly: all non-timing probe fields, retrieved/working memory IDs,
3782+
retrieval counts, memory counts, and consolidation counts matched the
3783+
saved baseline. At 1,000-event progress checkpoints,
3784+
`GraphRetrieve.total` was 13.7-27.7 ms after optimization versus
3785+
31.4-323.5 ms in the baseline. Across the 9 judged probe turns,
3786+
`GraphRetrieve.total` was 21.8-28.6 ms after optimization versus
3787+
81.6-303.6 ms in the baseline. The verification artifact is
3788+
`build/graph_profile/full_msc_verify_final/summary.json`.
3789+
37763790
## Verification Gates
37773791

37783792
The optimization and cutover work is gated by:

docs/paper/sections/11_optimization.qmd

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ The current branch includes the following implementation-level changes:
5858
|---|---|---|
5959
| SQLite execution | prepared-statement reuse in the store layer | same SQL semantics, lower repeated parse overhead |
6060
| vector ranking | bounded top-k selection and architecture SIMD kernels in the vector path | same candidate contract; SIMD accepted after output checks |
61-
| retrieval seed surface | current-memory embedding lookup instead of all reconstruction versions | latest reconstruction remains visible without unbounded scan growth |
61+
| retrieval seed surface | current-memory embedding lookup instead of all reconstruction versions; recent seed and same-source expansion use the live retrieval surface cache before SQL fallback | latest reconstruction remains visible without unbounded scan growth, and source-neighbor behavior is preserved without per-seed table scans |
6262
| graph expansion | retained edge types only: `co_occurs`, `similar_to`, `reinforces`, `causes`, `derived_from` | removed fact, label-bank, and temporal-retrieval side paths cannot influence rank |
6363
| reconstruction | knob-bounded retrieval-time reconstruction append | constructive recall remains non-decoder and can be disabled cleanly |
6464
| memory storage | avoid redundant object-store writes for single-signal memory payloads | durable payload identity is preserved |
@@ -67,6 +67,17 @@ The current branch includes the following implementation-level changes:
6767
The important correctness point is that these are implementation changes to the
6868
retained engine. They do not reintroduce the removed semantic batch stack.
6969

70+
On 2026-06-30, a full Meta MSC replay rerun verified the retrieval-cache
71+
optimization on the same 9,130-turn slice used for the hosted frontier-judge
72+
artifact. The run preserved native probe behavior exactly: all non-timing probe
73+
fields, retrieved/working memory IDs, retrieval counts, memory counts, and
74+
consolidation counts matched the saved baseline. At 1,000-event progress
75+
checkpoints, `GraphRetrieve.total` was 13.7-27.7 ms after optimization versus
76+
31.4-323.5 ms in the baseline. Across the 9 judged probe turns,
77+
`GraphRetrieve.total` was 21.8-28.6 ms after optimization versus 81.6-303.6 ms
78+
in the baseline. The verification artifact is
79+
`build/graph_profile/full_msc_verify_final/summary.json`.
80+
7081
## Verification Gates
7182

7283
The optimization and cutover work is gated by:

0 commit comments

Comments
 (0)