FlyHash tested for LLM agent memory; quality holds, savings do not
Original title: FlyHash for LLM Agent Memory: An Empirical Validation and a New Application
Matched-bit tests beat SimHash on neighbor quality, but HNSW is smaller and faster at ordinary scale.
The paper applies FlyHash, a sparse random-projection and winner-take-all locality-sensitive hash inspired by the fruit fly olfactory circuit, to LLM agent memory retrieval. Across 10 seeds and four datasets in two modalities, a matched-bit protocol preserved neighbor structure better than SimHash, including on non-circular agent-memory relevance labels. At equal bits, FlyHash codes were larger and slower to compare than SimHash, and HNSW indexing dominated both hash methods at ordinary scale. The authors release an implementation, an agent-memory demo, and a write-up of comparison pitfalls they corrected.
Unconfirmed: The claim of a first application of FlyHash to LLM agent memory is the authors' own.
- Quality advantage held across 10 seeds and four datasets spanning two modalities.
- A sparse-set comparison recovered most, but not all, of a naive latency gap.
- The advantage also held on genuine agent-memory relevance labels, not only embedding nearest-neighbor proxies.
- Authors say this is, to their knowledge, the first FlyHash use for LLM agent memory.
From the original article
1 min read at huggingface.coLarge language model (LLM) agents increasingly rely on external memory stores to retain information across conversations, typically via dense vector embeddings searched with approximate nearest-neighbor methods.
By Mohan Bheemadolu, Chrisogonas O. Odhiambo · huggingface.co
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.