<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Marc Erdmann – Blog</title>
    <link>https://marcerdmann.com/blog</link>
    <atom:link href="https://marcerdmann.com/feed.xml" rel="self" type="application/rss+xml"/>
    <description>Writings by Marc Erdmann on systems engineering, vector search, HNSW graphs, LSM-trees, and persistent data structures.</description>
    <language>en</language>
    <lastBuildDate>Tue, 16 Jun 2026 00:00:00 GMT</lastBuildDate>
    <item>
      <title>A Comparative Analysis of Data Structures for Persisting HNSW Graphs</title>
      <link>https://marcerdmann.com/blog/data-structures-for-persistent-hnsw</link>
      <guid isPermaLink="true">https://marcerdmann.com/blog/data-structures-for-persistent-hnsw</guid>
      <pubDate>Wed, 15 May 2024 00:00:00 GMT</pubDate>
      <description>Surveying key-value data structures for persisting HNSW graphs—the write-ahead log, LSM-tree, and value-log used by HNSWDB—and comparing four index-store designs by read, write, and space amplification.</description>
    </item>
    <item>
      <title>Extending the HNSW Algorithm for Dynamically Changing Graphs</title>
      <link>https://marcerdmann.com/blog/extending-the-hnsw-algorithm-for-dynamically-changing-graphs</link>
      <guid isPermaLink="true">https://marcerdmann.com/blog/extending-the-hnsw-algorithm-for-dynamically-changing-graphs</guid>
      <pubDate>Wed, 15 May 2024 00:00:00 GMT</pubDate>
      <description>The original HNSW algorithm handles neither repeated insertions nor deletions. HNSWDB adds reverse-neighbor connections plus modified insert, neighbor-update, and delete procedures to support dynamic datasets.</description>
    </item>
    <item>
      <title>Improving the Memory Efficiency of the Hierarchical Navigable Small World Search for Approximate Nearest Neighbor Queries</title>
      <link>https://marcerdmann.com/blog/improving-memory-of-k-anns-using-hnsw</link>
      <guid isPermaLink="true">https://marcerdmann.com/blog/improving-memory-of-k-anns-using-hnsw</guid>
      <pubDate>Wed, 15 May 2024 00:00:00 GMT</pubDate>
      <description>HNSW&apos;s in-layer search keeps a redundant visited-set alongside its candidate lists. We propose dropping it to align the search with beam search and reduce memory use in the HNSWDB reference implementation.</description>
    </item>
    <item>
      <title>Leveraging the Hierarchical Structure and Access Patterns of HNSW Graphs for Partial In-Memory Caching with TinyLFU</title>
      <link>https://marcerdmann.com/blog/leveraging-structure-and-access-patterns-in-hnsw-graphs-for-efficient-in-memory-caching</link>
      <guid isPermaLink="true">https://marcerdmann.com/blog/leveraging-structure-and-access-patterns-in-hnsw-graphs-for-efficient-in-memory-caching</guid>
      <pubDate>Wed, 15 May 2024 00:00:00 GMT</pubDate>
      <description>How HNSW&apos;s exponentially skewed access distribution makes a small hot set worth caching, and how the TinyLFU admission policy (frequency sketch, freshness halving, Doorkeeper) exploits it to keep persistent K-NN queries fast.</description>
    </item>
    <item>
      <title>Delta-Aware Persistence for HNSW Graphs: An LSM-Tree with a Custom Delta-Merge Operator</title>
      <link>https://marcerdmann.com/blog/lsm-tree-with-custom-merge-operator-for-hnsw-persistence</link>
      <guid isPermaLink="true">https://marcerdmann.com/blog/lsm-tree-with-custom-merge-operator-for-hnsw-persistence</guid>
      <pubDate>Wed, 15 May 2024 00:00:00 GMT</pubDate>
      <description>A proposed design for persisting HNSW graphs by treating neighbor-list updates as deltas, using either a value-log with delta-chains or an LSM-tree with a custom delta-merge operator to cut write amplification.</description>
    </item>
    <item>
      <title>Reverse Nearest Neighbor Queries with a Dynamic HNSW Index</title>
      <link>https://marcerdmann.com/blog/reverse-nearest-neighbor-queries-with-a-dynamic-hnsw-index</link>
      <guid isPermaLink="true">https://marcerdmann.com/blog/reverse-nearest-neighbor-queries-with-a-dynamic-hnsw-index</guid>
      <pubDate>Wed, 15 May 2024 00:00:00 GMT</pubDate>
      <description>A dynamic HNSW index stores a reverse-neighbor connection for every neighbor connection to make deletion cheap. The same bookkeeping turns reverse-nearest-neighbor retrieval — which elements reference X as a nearest neighbor — into a single key lookup, an approximate reverse-kNN over the graph&apos;s edges.</description>
    </item>
    <item>
      <title>Semantic Key Design with Fixed-Length Components for Efficient Key-Value Store Operations</title>
      <link>https://marcerdmann.com/blog/semantic-key-design-for-efficient-key-value-store-operations</link>
      <guid isPermaLink="true">https://marcerdmann.com/blog/semantic-key-design-for-efficient-key-value-store-operations</guid>
      <pubDate>Wed, 15 May 2024 00:00:00 GMT</pubDate>
      <description>We describe how semantic keys built from fixed-length, hashed components enable every result set required by a persistent HNSW index to be addressed with an exact key or prefix search in a key-value store.</description>
    </item>
  </channel>
</rss>