HoMe: Toward Practical Harness Optimization of Memory Systems for AI Assistants: what it means for business leaders
HoMe automates the tuning of an AI assistant's memory system, using versioned memory and failure tracing to find code-level fixes that raise answer quality while cutting query-time tokens by 41 to 59 percent.
1. What the method is
HoMe is a framework that automatically improves the harness of an assistant's memory system: the code, prompts and configuration that decide what gets written to memory, how it is maintained, what is retrieved and how answers are produced. The language model itself stays fixed. An optimizer agent proposes edited versions of the harness, a diagnoser agent explains why the last version failed, and an experiment manager decides which candidates are worth a paid evaluation and how to run it cheaply. Every candidate, its diagnosis and its results are committed to a Git repository, so each attempt builds on the earlier ones and any earlier candidate can serve as a parent. The distinguishing features are a diagnosis step that traces a wrong answer back to the stage and conversation session where the evidence was lost, and a gate that forces the early candidates to change mechanisms, not just wording.
2. Why the method was developed
A memory system has to be tuned per application: a medical assistant must keep symptom histories faithfully, while a scheduling assistant should overwrite stale events. That tuning is done by hand today and must be repeated as usage grows. Earlier automated optimizers allow full code edits but in practice drift toward the cheap ones; in the authors' runs, every candidate proposed by the MemPro baseline changed only prompts or parameters. Two things make the problem hard over long histories. A wrong answer may stem from a fact never written, a later revision that overwrote it, a retrieval miss, or a misreading at answer time, and the score alone does not say which. And each evaluation rebuilds memory over hundreds of sessions before asking a single question, so evaluation dominates cost: one full serial pass on the authors' 250 training cases took 153.5 hours.
3. Who should care
Product and engineering teams that run assistants with persistent memory are the direct audience, because this replaces weeks of manual retrieval and prompt tuning with a supervised overnight run. Whoever owns inference spend should look at it for a different reason: the optimized harnesses cut query-time tokens roughly in half, which is a recurring saving on every user question. Evaluation and quality teams matter here more than usual, since the method optimizes against whatever test cases and judge we supply, and its output is only as good as that set. Platform and security owners should note that an agent is rewriting production-bound code, 1,200 to 1,400 line edits per run in the paper, so review and sandboxing are part of the cost. Buyers of memory products can use the results as a benchmark for what vendors' default configurations leave on the table.
4. How the method works
While memory is built for a test case, the system commits the memory files to Git after every session, so the difference between two commits shows exactly what one session changed. For a failed question, a case-study agent works backward: if the retrieved material held the answer, answering failed; if only stored memory held it, retrieval failed; otherwise construction failed, and the diffs show whether the fact was never written or later overwritten. Many such agents run in parallel, and the diagnoser groups their findings to separate shared defects from one-off cases. On cost, a truncated smoke test rejects broken candidates, and a gate rejects prompt-only or parameter-only edits during the first evaluations. A sampler picks a subset of cases weighted toward recent and persistent failures while keeping some uniform coverage. When an edit leaves memory construction untouched, the previously built memory is restored and only retrieval and answering are rerun.
5. How it was evaluated
The authors implemented HoMe on ReMe, an open-source file-based memory system whose hand-tuned harness was already strong, and tested on two long-conversation benchmarks. LongMemEval-S has 500 single-question cases averaging 115K tokens of history, split evenly into training and test. BEAM was optimized on its 100K variant, 20 cases of 20 questions, and tested on the 1M variant, 35 cases averaging 1.04M tokens. Baselines were A-MEM, SimpleMem, the original ReMe, and MemPro, an automated optimizer started from the same harness with the same model and coding agent. HoMe was allowed six formal evaluations per benchmark after one full initial evaluation, each on 28 LongMemEval cases or 100 BEAM questions from 10 cases; MemPro was allowed up to eight on larger sets. An LLM judge scored answers. All methods used Qwen models, a small one for memory construction and a larger one elsewhere. The baselines' key settings were tuned on the test sets.
6. How it performed
On LongMemEval-S the score rose from 0.888 to 0.916 while tokens per query fell from 43.9K to 17.9K; the 59 percent token cut is statistically significant, the score gain is not. On BEAM-1M the score rose from 0.650 to 0.704 with tokens down 41 percent, both significant. MemPro's selected harness scored 0.812 on LongMemEval-S, below its starting point. One BEAM run took 10.4 hours and 185M tokens, against 331M for MemPro. The gains are uneven: multi-session questions slipped on LongMemEval-S, and knowledge update and information extraction lost 0.108 and 0.074 on BEAM. The last two candidates did not improve on earlier ones, and the authors warn of overfitting as edits accumulate. Everything rests on one memory system, one model family, two benchmarks and an LLM judge. Our call: pilot it on any assistant where we already have a trustworthy evaluation set, with human review of every code change it proposes. (Source: arXiv 2611.34624, 2026)
← Back to dossier index