Proximity Graph Batch Merging for Concurrent HNSW Updates

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional implementations of Hierarchical Navigable Small World (HNSW) graphs face challenges in handling concurrent updates while maintaining structural integrity and search quality, particularly in distributed systems, leading to bottlenecks and inefficiencies in high-throughput applications.

Innovation Solution

A method involving a distributed system with proximus nodes that maintain local updates in batches, merge them into a main graph, and utilize a coordinator node to implement parallel updates, ensuring efficient concurrent operations without degrading search quality.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If strict locking mechanisms are implemented to ensure graph consistency during updates, then reliability is improved, but productivity deteriorates due to serialization of operations

Engineering Contradiction:
Improvegraph consistencyVSAvoidupdate throughput
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system segments the proximity graph into multiple independent partitions distributed across different nodes. Each partition can be updated independently without requiring locks on the entire graph, enabling parallel updates while maintaining consistency within each partition. This resolves the contradiction by allowing high throughput through parallelism while preserving reliability through partition-level consistency.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a version vector mechanism as an intermediary that coordinates updates across partitions without requiring strict locking. Version vectors allow nodes to detect conflicts and resolve them asynchronously, enabling concurrent updates to proceed in parallel while maintaining eventual consistency. This mediator approach preserves both productivity through parallelism and reliability through conflict detection and resolution.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If multiple independent graphs are used with periodic merging, then productivity is improved through parallel updates, but device complexity increases due to memory overhead and consistency maintenance

Engineering Contradiction:
Improveupdate throughputVSAvoidmemory overhead
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system divides the proximity graph into multiple partitions distributed across different nodes, each maintaining its own independent copy. This segmentation enables parallel updates to proceed simultaneously on different nodes without requiring periodic merges of entire graphs. The memory overhead is reduced compared to maintaining multiple complete independent graphs, as each node only stores its local partition.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements background optimization processes that periodically refine graph structures and relationships in the background without blocking foreground update operations. This preliminary action approach allows the system to maintain multiple partitions in parallel for high throughput updates while periodically optimizing their internal structures, reducing the complexity overhead of maintaining consistency across partitions.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If fast update procedures are implemented, then productivity is improved, but manufacturing precision deteriorates due to degraded search accuracy

Engineering Contradiction:
Improveupdate speedVSAvoidsearch accuracy
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

By segmenting the graph into partitions, the system can apply fast update procedures to individual partitions without affecting the entire graph. Each partition maintains its own search quality, and the distributed nature ensures that updates to one partition do not degrade search accuracy in other partitions. This allows high-speed updates to proceed while preserving overall search precision.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a unified architecture that handles both fast updates and high-quality searches through the same partitioned structure. The distributed partitioned graph serves multiple functions simultaneously: it enables rapid parallel updates while maintaining search quality through local optimization. This multi-functional approach resolves the contradiction by making the same system capable of both fast updates and accurate searches, rather than requiring separate mechanisms for each.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20250378107A1Parallel or simultaneous inserts and updates to a single proximity graph
Publication Date: 2025.12.11 SHINDE ASHISH KRISHNADEO
  • US20250378107A1 patent drawing
  • US20250378107A1 patent drawing
  • US20250378107A1 patent drawing

AI summary

In one aspect, a method for parallel processing of updates to a proximity graph begins with providing a distributed system that comprises a plurality of proximus nodes. The method then proceeds with receiving an update request for the proximity graph at a selected proximus node from the plurality of proximus nodes. At the selected proximus node, the method involves maintaining a batch of updates in a local graph. The process continues with creating a batch graph comprising accumulated updates at each proximus node of the plurality of proximus nodes. Following this, a coordinator node merges the batch graph with a main graph to implement the updates. Finally, the method concludes by making the merged updates available for querying.