FlyHash for LLM Agent Memory: An Empirical Validation and a New Application
- ID: 5a7b1e91
- 原文链接: https://arxiv.org/abs/2611.05791
- PDF: https://arxiv.org/pdf/2611.05791v1
- 作者: Mohan Bheemadolu, Chrisogonas O. Odhiambo
- 日期: 2026-11-04
- 更新: 2026-11-04
- 分类: agents
- 来源类型: paper
- 标签: agent-memory, flyhash, retrieval
- 质量评分: 4/5
- 抓取时间: 2026-11-11T12:24:38Z
中文导读
首次把果蝇嗅觉回路启发的 FlyHash(稀疏随机投影 + 胜者全取的局部敏感哈希)用于 LLM 智能体记忆检索,并按工程视角回答三个问题:其一,在正确匹配比特数的协议下,FlyHash 对 SimHash 的质量优势跨 10 个随机种子、4 个数据集(两种模态)稳健成立,过程中还识别并修正了一个此前未被记录的基准比较陷阱;其二,质量优势不能直接兑换成工程收益——等比特下 FlyHash 编码更大、比较更慢,普通规模上稠密向量索引 HNSW 仍全面占优,作者引入的稀疏集合比较只追回部分时延差距,哈希方法的实际适用面比质量结论暗示的窄得多;其三,用真实、非循环的智能体记忆相关性标注(而非常见的"按 embedding 最近邻"代理标签)复测,质量优势依然成立。实现、可运行的 agent-memory demo 与完整方法学陷阱记录均已开源。
为什么值得关注
FlyHash 首次用于智能体记忆检索:质量优势稳健,但 HNSW 仍占实际优势。
这篇论文的价值在于诚实的负结果与正结果并列:它验证了一个非主流记忆索引方向的可行性(真实相关性标注下优势成立),同时明确指出该方向在等比特成本与时延上输给 HNSW,把"什么时候值得用哈希"的边界划清楚了。对做 agent 长期记忆、检索结构选型的团队,论文给出的匹配比特协议与比较陷阱说明本身就是可复用的评估方法论;对做神经启发计算(neural-inspired hashing)的研究者,这是一次少见的、面向真实 LLM 应用负载的实证检验。
关键信息
- 论文标题:FlyHash for LLM Agent Memory: An Empirical Validation and a New Application
- 作者:Mohan Bheemadolu, Chrisogonas O. Odhiambo
- arXiv:https://arxiv.org/abs/2611.05791
- 发布时间:2026-11-04
- arXiv 分类:Artificial Intelligence (cs.AI) ; Machine Learning (cs.LG)
- 备注:19 pages. Code, data and interactive demo: https://github.com/mohanji/flyhash-agent-memory (archived at https://doi.org/10.5281/zenodo.23903302)
- 三个核心结论:(1) 匹配比特协议下对 SimHash 的质量优势跨 10 种子/4 数据集稳健成立;(2) 等比特下编码更大更慢,普通规模 HNSW 占优,稀疏集合比较仅追回部分时延差距;(3) 换用真实非循环相关性标注后质量优势依然成立。
English Abstract
Large 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. The fruit fly's olfactory circuit computes a locality-sensitive hash of sensory input using a strikingly different mechanism - sparse random projection followed by winner-take-all competition - and prior work (Dasgupta et al., 2017) showed this scheme, dubbed FlyHash, preserves neighbor structure better per bit than conventional random-hyperplane hashing (SimHash) on several benchmarks. We apply FlyHash, to our knowledge for the first time, to LLM agent memory retrieval, and ask three questions a practitioner actually needs answered: does the quality advantage hold under a correctly matched-bit protocol (it does, robustly, across 10 seeds and four datasets spanning two modalities, with one specific, previously undocumented comparison pitfall identified and corrected along the way); does that advantage translate into real memory and latency savings, including against the dense-vector indexing (HNSW) practitioners default to today (no: at equal bits FlyHash's codes are larger and slower to compare than SimHash's, and HNSW dominates both hash methods at ordinary scale; a sparse-set comparison we introduce recovers most but not all of a naive latency gap, leaving hashing's practical case narrower and more specific than the quality result alone implies); and does the advantage survive genuine, non-circular agent-memory relevance labels rather than the nearest-neighbor-by-embedding proxy this literature otherwise relies on (it does). We report all three answers precisely, including the two that narrow rather than flatter the headline result, and release our implementation, a working agent-memory demo, and a full account of the methodological pitfalls we found and corrected.
English Summary
First application of FlyHash (the fruit fly olfactory circuit's locality-sensitive hash: sparse random projection plus winner-take-all) to LLM agent memory retrieval. Under a correctly matched-bit protocol, its quality advantage over SimHash holds robustly across 10 seeds and four datasets, after the authors identify and correct an undocumented comparison pitfall. Practically, the advantage does not translate: at equal bits FlyHash codes are larger and slower to compare, HNSW dominates both hash methods at ordinary scale, and an introduced sparse-set comparison recovers only part of the latency gap. The quality advantage does survive genuine, non-circular agent-memory relevance labels. Implementation, demo, and a full account of methodological pitfalls are released (19 pages, cs.AI/cs.LG, 2026-11-04).
Obsidian Notes
- 内容获取路径:
opencli arxiv paper 2611.05791 -f json成功,返回完整元数据与摘要(list 形式 JSON),内容页由元数据/摘要锚定。 - 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。
- 现代站点生成器按
content/5a7b1e91.md查找内容页;本文件写入 canonical content 目录,而不是openclaw/content/。