Skip to content

Resolve relative dates when stored (LoCoMo temporal F1 0.108 to 0.331), and synonym groups for the merge - #17

Merged
FMXExpress merged 6 commits into
mainfrom
claude/optimistic-allen-i3bd3d
Nov 9, 2026
Merged

FMXExpress merged 6 commits into
mainfrom
claude/optimistic-allen-i3bd3d

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

Both changes were benchmarked. The full write-up is in bench/README.md under "Checking what won".

Dates (Mem.Dates, [agent] resolve_dates=1)

A relative date in a stored message gets the absolute date added after it: "last Saturday" becomes "last Saturday (the Saturday before 25 May 2023)". The date is worked out from the message's own leading date (a /log line), else from the time it is stored. The original words stay, and the date is added only once.

LoCoMo sample 0, 1.5B, all 152 questions (bench/results/locomo-small-s0-dates.json):

multi-hop temporal open-domain single-hop mean of the four all
before 0.171 0.108 0.094 0.263 15.9 19.2
dates resolved 0.143 0.331 0.080 0.266 20.5 24.0
  • Temporal questions: 25 of 37 scored higher and 3 lower.
  • The multi-hop and open-domain drops are answers reworded without dates, such as "single" becoming "not currently in a romantic relationship". These columns have only 32 and 13 questions.
  • A-MEM reports a mean of 20.7 at the same model size, over all ten samples.

Synonym groups for the merge (Mem.Guard.Related, SynonymSubjects, TAgent.SameSubject)

  • New groups: job now includes profession, occupation, trade, career and vocation. A new group covers city, town, hometown, village and residence.
  • Stricter bar for synonym matches: a slot that matches only through a synonym merges only when the judge gives P ≥ 0.97 (the rescue bar), and never on the rules alone.
third set, 48 new pairs wrong merges missed
before 0 14
groups, first version 5 3
groups and the synonym rule 0 3
  • Other sets: the held-out set now misses 9, down from 14, with 0 wrong merges. The tuning set stays at 0 wrong and 0 missed.
  • Caveat: the rule was written after seeing the third set's wrong merges.

Also

  • merge_judge --reuse rescoring without the judge
  • score_merge.py rows for the synonym rule
  • bench_integration.answer_text keeps bracketed date answers

Test plan

  • make test-pascal passes, including the new dates_test (11 cases)
  • Integration benchmark, 1.5B: 88/96, with answers identical to before (integration-small-fixes.json)
  • All three merge sets scored with bench/jev/score_merge.py
  • LoCoMo sample 0 with the dates

Generated by Claude Code

…ynonyms for the merge rules

Mem.Dates: "last Saturday" is stored as "last Saturday (the Saturday before 25 May 2023)",
against the message's own leading date (a /log line) or the time it is stored
([agent] resolve_dates, default on). Mem.Guard's Related table groups profession,
occupation, trade, career and vocation with job, and town, hometown, village and
residence with city. merge_judge --reuse re-scores a rule change with the judge's
earlier p. A third merge test set checks the groups on new wordings and traps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
…r, never on rules alone

On the third merge set the wider job and city groups let "Marek was born in Graz" over
"Marek's city is Bergen" through the 0.9 veto (5 wrong merges; p 0.91 to 0.95, where true
rewordings scored 0.98 and more). Such pairs now need p >= rescue_min (0.97), and with no
judge they are kept apart. Third set: 14 missed and 0 wrong before, 3 and 0 now; tuning
set unchanged at 0 and 0; held-out 14 to 9 missed, 0 wrong. merge_judge records synonym.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
@FMXExpress
FMXExpress merged commit 0a6c814 into main Nov 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants