Upstream feature: recall scoring changes (recency from day one, abandonment handling) #23

Closed
opened 2026-11-02 10:38:36 +00:00 by tim · 2 comments
Owner

Seen in upstream v7.0.3 (2026-10-21, Rust rewrite): https://code.squarecows.com/ric/omnimem/releases

What upstream changed in recall scoring:

  • Recency now declines from the day a memory is written (our decay starts after RECENCY_DECAY_DAYS, default 90).
  • Abandoned outcomes score higher than before (ours: 0.1x experience weight).
  • Recording an abandonment no longer suppresses other memories.

Why it may fit: these are scoring-behaviour changes, so they should be evaluated, not copied blindly. scripts/embedding_bench.py and the recall pipeline tests give a way to measure a change before adopting it. The release notes give no numbers, so the reasoning would need to come from the upstream code or our own benchmark.

Rough size: small to implement (multipliers in memory/recall.py), but needs a benchmark run first. Per the licence/provenance precedent, land it as its own release so a ranking move can be attributed.

Upstream version looked at: v7.0.5.

Close this issue if you do not want it. Comment ok to approve it for implementation.

Seen in upstream **v7.0.3** (2026-10-21, Rust rewrite): https://code.squarecows.com/ric/omnimem/releases **What upstream changed in recall scoring:** - Recency now declines from the day a memory is written (our decay starts after `RECENCY_DECAY_DAYS`, default 90). - Abandoned outcomes score higher than before (ours: 0.1x experience weight). - Recording an abandonment no longer suppresses other memories. **Why it may fit:** these are scoring-behaviour changes, so they should be evaluated, not copied blindly. `scripts/embedding_bench.py` and the recall pipeline tests give a way to measure a change before adopting it. The release notes give no numbers, so the reasoning would need to come from the upstream code or our own benchmark. **Rough size:** small to implement (multipliers in `memory/recall.py`), but needs a benchmark run first. Per the licence/provenance precedent, land it as its own release so a ranking move can be attributed. Upstream version looked at: v7.0.5. Close this issue if you do not want it. Comment `ok` to approve it for implementation.
Author
Owner

Ok.

Ok.
tim closed this issue 2026-11-02 20:16:33 +00:00
Author
Owner

Shipped as v6.10.0 (PR #28, release PR #29), benchmark first as its own release.

The existing benches cannot see this change (LongMemEval ingests everything "now" with no outcomes), so I added scripts/recall_scoring_bench.py with controlled ages and recorded outcomes, and read the Rust recall.rs at v7.0.5 for the exact curve. Three paired seeds against a real valkey-search and the real model:

  • newer of two statements ranks first, both inside the 90-day cliff: 48% -> 88%
  • dead end in the top 3: 0% -> 99% (missing from the top 10: 97% -> 0%). The keyword fast path only warns when the query names the dead end (100% then, 0% for a task-only query), so this is not redundant with it
  • auto-suppressed topics: 20 -> 0
  • cost: exact source memory MRR 0.551 -> 0.527, hit@5 75.0% -> 71.1% (consistent in sign on all seeds, templated corpus so near-duplicates are common); working approach above its own dead end 100% -> 96%

Needed beyond the issue text: recall reads the stored experience_weight, so migrate_abandoned_weight resets existing abandoned memories at startup. Suppressions made by earlier versions stay: review with list_suppressions(). Details in docs/recall-scoring.md.

Shipped as v6.10.0 (PR #28, release PR #29), benchmark first as its own release. The existing benches cannot see this change (LongMemEval ingests everything "now" with no outcomes), so I added `scripts/recall_scoring_bench.py` with controlled ages and recorded outcomes, and read the Rust `recall.rs` at v7.0.5 for the exact curve. Three paired seeds against a real valkey-search and the real model: - newer of two statements ranks first, both inside the 90-day cliff: 48% -> 88% - dead end in the top 3: 0% -> 99% (missing from the top 10: 97% -> 0%). The keyword fast path only warns when the query names the dead end (100% then, 0% for a task-only query), so this is not redundant with it - auto-suppressed topics: 20 -> 0 - cost: exact source memory MRR 0.551 -> 0.527, hit@5 75.0% -> 71.1% (consistent in sign on all seeds, templated corpus so near-duplicates are common); working approach above its own dead end 100% -> 96% Needed beyond the issue text: recall reads the stored `experience_weight`, so `migrate_abandoned_weight` resets existing abandoned memories at startup. Suppressions made by earlier versions stay: review with `list_suppressions()`. Details in `docs/recall-scoring.md`.
Sign in to join this conversation.
No labels
upstream-feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/omnimem#23
No description provided.