Repository navigation
Guard licence for derived facts (78 to 88 of 96), a backlog fix for the summary, and LoCoMo - #16
Merged
Merged
Conversation
…er; held-out merge test set - Mem.Guard.DerivedLicenses: "Your grandpa Zoe's city is Oslo." licenses "Zoe lives in Oslo." for "Which of my relatives lives in Oslo?" (and the value for "Which city does my grandpa live in?"). With derived facts in memory, all 11 answers the rule guard withheld were right, 10 of them backed by a derived fact. Benchmark pending. - /log <text>: a message into the conversation log without a reply or fact extraction, for loading recorded conversations - bench/bench_locomo.py: LoCoMo (2402.17753) on the real agent, token F1 per category as Mem0 and A-MEM report them - bench/jev/merge_cases_heldout.json: 68 pairs the merge thresholds were never tuned on (nicknames, reworded attributes, addresses; pets, parent/child, siblings, same name another relation, past kept as history) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
…trieval at 1.5B Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
…8 to 88 of 96 (inverse 13 to 22) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
… turn After a long import (/log, 419 LoCoMo turns) the running summary tried to send the whole backlog in one 24k-token call; it failed, the summary never advanced, and every later turn failed again. Each call now takes what fits in half the context. The bench parser keeps an answer that starts with a bracketed date. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
…ne 53/96, held-out merge set Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
…n MemGPT and A-MEM at the same size Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each change was benchmarked and kept only if it won. The full write-up is in
bench/README.mdunder "Checking what won".Kept
Mem.Guard.DerivedLicenses). A derived fact ("Your sister Ana's job is nurse.") now licenses the answer it backs. Ten of the eleven inverse failures were correct answers that the rule guard was withholding. On the 1.5B agent, the integration benchmark goes from 78 to 88 of 96, with inverse questions going from 13 to 22 of 24.TAgent.MaybeSummarize). After a long import (/log), the running summary sent the whole backlog in one call, 24k tokens for LoCoMo's 419 turns. The call failed, the summary never advanced, and every later turn failed again. Each call now takes what fits in half the context./log <text>. It stores a message in the searchable conversation log without a reply. It is used to load recorded conversations.bench/bench_locomo.py). Sample 0, 152 questions: F1 19.2 overall, with a mean of 15.9 over the four categories. At Qwen2.5-1.5B, A-MEM reports 8.6 for the whole conversation in the prompt, about 9.4 for MemGPT and MemoryBank, and 20.7 for A-MEM. That puts memagent above full context, MemGPT and MemoryBank, and below A-MEM. Temporal questions are the weakest (0.11).bench/jev/make_merge_cases_heldout.py, 68 pairs).Measured and not adopted
rag_all) scores 53/96 against 78/96 for retrieval and is 2.5× slower, so it stays off.Relatedsynonym table lacks "profession", "occupation" and "trade", and has no group for "city" and "town". That one-line fix is left for a third test set, so it isn't tuned on the held-out pairs.Test plan
makebuilds cleanlybench/results/integration-small-derive-guard.json(88/96) andintegration-small-allfacts.json(53/96)bench/results/locomo-small-s0.json)bench/jev/score_merge.pyGenerated by Claude Code