mlsanityData to 24 Nov 2026

FlyHash for LLM Agent Memory: An Empirical Validation and a New Application

arXiv 2611.05791 ↗Submitted 4 Nov 2026cs.AI cs.LGcited by 0

On the map: LLM agents and tool use → Agent memory systems

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 18 of its 31 references that are in the map. Submitted 4 Nov 2026.

Builds on

18 of 31 references.

Closest ancestors · 7

Same direction, newest first

  1. 2026MemOps: Benchmarking Lifecycle Memory Operations in Long-Horizon Conversations14 Jul
  2. 2026HiGMem: A Hierarchical and LLM-Guided Memory System for Long-Term Conversational Agents20 Apr
  3. 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers8 Mar
  4. 2026Beyond RAG for Agent Memory: Retrieval by Decoupling and Aggregation2 Feb
  5. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
  6. 2024On the Structural Memory of LLM Agents17 Dec
  7. 2024Evaluating Very Long-Term Conversational Memory of LLM Agents27 Feb

Other references · 11

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,559
  2. 2017Billion-scale similarity search with GPUscited by 2,575
  3. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 893
  4. 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 876
  5. 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 370
  6. 2024RaBitQ: Quantizing High-Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor Searchcited by 57
  7. 2020Bio-Inspired Hashing for Unsupervised Similarity Searchcited by 14
  8. 2016A Revisit of Hashing Algorithms for Approximate Nearest Neighbor Searchcited by 6
  9. 2021Federated Nearest Neighbor Classification with a Colony of Fruit-Flies: With Supplementcited by 5
  10. 2018Improving Similarity Search with High-dimensional Locality-sensitive Hashingcited by 3
  11. 2019Polytopes, lattices, and spherical codes for the nearest neighbor problemcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026MemGym: a Long-Horizon Memory Environment for LLM Agents
  2. 2026MemRefine: LLM-Guided Compression for Long-Term Agent Memory
  3. 2026DimMem: Dimensional Structuring for Efficient Long-Term Agent Memory
  4. 2026Memory in the LLM Era: Modular Architectures and Strategies in a Unified Framework
  5. 2026Evaluating Memory Structure in LLM Agents
  6. 2025Rethinking Memory in LLM based Agents: Representations, Operations, and Emerging Topics
  7. 2026Beyond Memory Construction: Rethinking Memory Access for LLM-based Conversational Agents
  8. 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions