Repository navigation
Description
π Problem
Saat menjalankan LongMemEval Oracle subset (500 questions), 8 questions get Recall@5 = 0.0 β the correct session is completely missing from results. Root cause: default score threshold filters out relevant results.
π Root Cause Analysis
Reproduced manually with question 5d3d2817:
Query: "What was my previous occupation?"
Expected answer: "Marketing specialist at a small startup"
Evidence session: answer_235eb6fb (16K chars, 12 turns)
| Recall Command | Results | Score |
|---|---|---|
recall --tags longmemeval (no --min) |
0 results β | β |
recall --tags longmemeval --min 0.0 |
1 result β | 0.40 |
recall --tags longmemeval --min 0.30 |
1 result β | 0.40 |
recall --tags longmemeval --min 0.35 |
1 result β | 0.40 |
recall (no tags, no --min) |
1 result β | 0.40 |
The default threshold (when --min is not specified) is higher than 0.40, filtering out a result that IS relevant and IS in the correct namespace/tags. Yet explicitly passing --min 0.30 returns it.
This means the implicit default threshold is stricter than the documented --min 0.30 default.
π Impact on Benchmark
8 misses out of 500 (98.4% β should be ~100% with fix):
| Question ID | Category | Recall@5 | Likely Cause |
|---|---|---|---|
5d3d2817 |
single-session-user | 0.000 | Threshold filters relevant session |
f4f1d8a4_abs |
single-session-user | 0.000 | Same β abstention question |
gpt4_59149c78 |
temporal-reasoning | 0.500 | Partial β some sessions filtered |
0bc8ad93 |
temporal-reasoning | 0.667 | Partial |
gpt4_5dcc0aab |
temporal-reasoning | 0.800 | Partial |
gpt4_a1b77f9c |
temporal-reasoning | 0.833 | Partial |
gpt4_7abb270c |
temporal-reasoning | 0.833 | Partial |
a3838d2b |
temporal-reasoning | 0.833 | Partial (Recall@10 = 1.0) |
π‘ Recommended Fix
Option A: Fix in benchmark harness (immediate, no core change)
Add --min 0.0 to the recall command in benchmarks/longmemeval/run_eval.py:
# Line 133-137 β current:
output = run_uteke(args, store_path, [
"recall", question,
"--limit", "50",
"--tags", "longmemeval",
])
# Fix:
output = run_uteke(args, store_path, [
"recall", question,
"--limit", "50",
"--tags", "longmemeval",
"--min", "0.0", # Disable threshold for fair retrieval evaluation
])Rationale: Benchmark retrieval needs to see ALL ranked results to fairly evaluate Recall@k. Score threshold is a UX feature for production usage, not a retrieval quality measure. Every other benchmark system (Mem0, Zep, paper baselines) evaluates raw retrieval ranking without threshold filtering.
Option B: Review default threshold behavior in uteke core (investigate)
The real question: why does the implicit default threshold filter a score of 0.40?
- Is the default
--minactually higher than 0.30 when not explicitly set? - Is there a separate internal threshold (e.g.,
min_score_strictconfig) that activates without--min? - The
--strictflag exists (min_score_strict) β is it being applied by default in JSON mode?
Recommendation: Investigate the threshold chain. If the default is intentionally strict for production UX, document it. If it's unintentional, consider lowering the implicit default to 0.30 to match the documented behavior.
Option C: Temporal-aware retrieval (future, v0.14+)
The 6 temporal-reasoning misses share a pattern: queries like "Which pair of shoes did I clean last month?" or "What is the order of the six museums I visited?"
These need temporal context that pure embedding similarity doesn't capture well. Future improvement:
- Timestamp metadata in recall ranking (time decay / boost)
- Time-aware query expansion (paper's approach)
- This is a known hard problem β paper's best system also scores lowest on temporal-reasoning
π― Priority
- Option A (harness fix): P0 β blocks accurate benchmark reporting, 5-minute fix
- Option B (threshold investigation): P1 β affects real users potentially
- Option C (temporal retrieval): P2 β future enhancement, not a regression
π Reproduction
# Using uteke v0.13.1
export PATH="/opt/data/.local/bin:$PATH"
STORE="/tmp/uteke-threshold-bug"
rm -rf $STORE
# Insert a session about marketing
uteke --store $STORE --namespace test --json remember \
"user: I've used Trello in my previous role as a marketing specialist at a small startup" \
--tags test --type context
# Recall WITHOUT --min β 0 results (BUG)
uteke --store $STORE --namespace test --json recall \
"What was my previous occupation?" --limit 50 --tags test
# Recall WITH --min 0.0 β 1 result, score 0.40 (CORRECT)
uteke --store $STORE --namespace test --json recall \
"What was my previous occupation?" --limit 50 --tags test --min 0.0Environment
- Uteke v0.13.1 (ARM-native)
- EmbeddingGemma 300M Q4 ONNX
- Oracle Cloud ARM Ampere Altra
Activity
fix(benchmark): disable score threshold in LongMemEval harness (#995)
fix(benchmark): disable score threshold in LongMemEval harness (#995) (β¦
ajianaz commentedon Aug 11, 2026
Fixed in PR #996. Benchmark harness now uses --min 0.0 to disable CLI default threshold (0.3). Threshold chain inconsistency (CLI 0.3 / API 0.0 / MCP 0.0) documented in configuration.md and api-reference.md.
chore: release v0.13.2 (#997)
fix(benchmark): disable score threshold in LongMemEval harness (#995) (β¦
chore: release v0.13.2 (#997)