Blog

5 days ago

Experimental Results from a Self-Improving Retrieval System for Conversational Memory

The biology-inspired mutation layer didn't work. A learned MLP adapter and segmentation mutation both produced ~zero NDCG lift on LongMemEval. The control loop was sound; the perturbations weren't load-bearing. A recall diagnostic reframed the project: 78% of relevant entries never reached the cross-encoder. Bi-encoder recall was the ceiling, not the mutation layer. Standard IR wins compounded: 0.95-cosine dedup plus BM25 alongside vector plus cross-encoder rerank took NDCG@10 from 0.22 to 0.34. BM25 alone beat pretrained embeddings by 76% on this corpus. Clustered retrieval-induced forgetting (Anderson 1994, ported as far as I can tell for the first time) added +1.9pp NDCG with p=0.0001 on LongMemEval. Regresses on NFCorpus: the mechanism is scoped to single-user long-term conversation memory, not general IR. Write-time LLM enrichment (gist plus anticipated queries via Haiku) was the biggest single lever: +8.3pp NDCG on covered queries. A regex-tokenizer fix that BM25 had been missing was worth +1.4pp NDCG on the headline benchmark. Six independent ablations (reranker swap, BGE bi-encoder, multi-field BM25, field-boosted BM25, late chunking on a GPU, k_deep sweep) all bounced off the same ceiling: BM25 supplies the candidates the reranker is already ranking well. Model-layer swaps are theatre when one component dominates. Ported the whole stack to Rust: single binary, ratatui TUI, PyO3 plus napi-rs bindings, Claude Code plus Codex CLI plugins. Cross-project search dropped from 6–7s to 1.7s. Lesson: check the bottleneck before extending the mechanism.

Source: HackerNoon →


Share

BTCBTC
$81,040.00
0.37%
ETHETH
$2,291.77
1.35%
USDTUSDT
$1.000
0.01%
BNBBNB
$677.62
1.78%
XRPXRP
$1.45
1.54%
USDCUSDC
$1.000
0.01%
SOLSOL
$95.25
1.49%
TRXTRX
$0.349
0.52%
FIGR_HELOCFIGR_HELOC
$1.04
0.73%
DOGEDOGE
$0.112
0.83%
WBTWBT
$59.40
0.74%
USDSUSDS
$1.000
0%
ADAADA
$0.274
1.94%
ZECZEC
$581.44
5.23%
HYPEHYPE
$40.57
2.28%
LEOLEO
$9.99
0.84%
BCHBCH
$440.30
1.37%
XMRXMR
$413.58
0.55%
LINKLINK
$10.39
1.07%
TONTON
$2.31
3.71%