Odyssey: A Journey in the Land of Distributed Data Series Similarity Search

Manos Chatzakis, Panagiota Fatourou, Eleftherios Kosmas, Themis Palpanas, Botao Peng · DOI

Abstract

As data series collections scale to billions of sequences, traditional single-node indexing methods encounter a "memory wall," where performance is bottlenecked by disk I/O. While distributed systems offer a potential solution, they are often plagued by load imbalance and high data movement costs. This paper presents Odyssey, a high-performance distributed framework for exact similarity search. Odyssey introduces predictive query scheduling based on initial best-so-far (BSF) distances, a work-stealing mechanism that avoids data shuffling, and density-aware partitioning using Gray Code. Experimental results on datasets exceeding one billion series demonstrate that Odyssey achieves up to a 6.6x speedup over state-of-the-art competitors and exhibits near-linear scalability.

1. Introduction

The proliferation of sensors in fields ranging from finance to seismology has led to an explosion of data series—ordered sequences of data points. Analyzing these massive collections requires efficient similarity search, the process of finding the nearest neighbor to a given query. While single-node indexes have been optimized using SIMD and multi-threading, they fail when datasets exceed available RAM. Transitioning to distributed environments introduces significant challenges, including the "three monsters" of distributed search: load imbalance, prohibitive data movement costs, and the trade-off between storage efficiency and query performance.

2. The Odyssey Framework

Odyssey addresses these challenges by building upon the iSAX (indexable Symbolic Aggregate approximation) index with several distributed-native innovations.

2.1 Predictive Query Scheduling

A primary cause of load imbalance is the unpredictable nature of query execution time. Odyssey leverages a key observation: the initial "best-so-far" (BSF) distance—an early approximation of the final result—correlates strongly with total execution time. By employing a linear regression model to estimate query difficulty, Odyssey implements a "hardest-first" scheduling strategy, ensuring that computationally intensive queries do not bottleneck the cluster at the end of a batch.

2.2 Work-Stealing without Data Shuffling

To maintain high CPU utilization, Odyssey employs a work-stealing mechanism. When a node becomes idle, it "steals" tasks from busier neighbors. Unlike traditional approaches that require moving raw data across the network, Odyssey nodes steal the instruction to process specific index partitions. By utilizing flexible data replication, idle nodes can often process these stolen tasks using local data copies, bypassing network bottlenecks.

2.3 Density-Aware Partitioning

To prevent data "hotspots," Odyssey utilizes Gray Code ordering for data partitioning. This technique ensures that mathematically similar data series are geographically distributed across different nodes in the cluster. This distribution naturally balances the computational effort required for pruning—the process of skipping irrelevant data—across the entire system.

3. Experimental Evaluation

The framework was evaluated against massive real-world and synthetic datasets, including:

  • Billion-Scale Collections: Deep (1B embeddings), Sift (1B image descriptors), and Yan-TtI (1B image/text vectors).
  • Scientific Data: Seismic (100M) and Astro (270M) records.
  • Synthetic Benchmarks: Random walk datasets scaling from 100GB up to 1.6TB.

4. Key Results

Odyssey demonstrates significant performance gains over existing distributed solutions like DPiSAX and MESSI. Key findings include:

  • Superior Throughput: Odyssey is up to 6.6x faster than its closest competitors.
  • Linear Scalability: The framework exhibits near-linear scale-up; doubling the node count approximately halves the query latency.
  • Scheduling Efficiency: The dynamic prediction strategy (PREDICT-DN) improved performance by up to 150% compared to standard static assignment methods.

5. Conclusion and Future Work

Odyssey represents a significant advancement in distributed similarity search, successfully navigating the complexities of load balancing and data movement at the billion-series scale. While the current framework relies on partial replication for optimal work-stealing, future iterations aim to refine prediction models using more complex machine learning techniques. Additionally, the authors plan to extend Odyssey to support subsequence matching and approximate similarity search to further enhance its versatility in large-scale data analysis.

Summary updated

BibTeX
@article{chatzakis2023odyssey,
  author = {Manos Chatzakis and Panagiota Fatourou and Eleftherios Kosmas and Themis Palpanas and Botao Peng},
  title = {{Odyssey: A Journey in the Land of Distributed Data Series Similarity Search}},
  journal = {Proc. VLDB Endow.},
  year = {2023},
  doi = {10.14778/3579075.3579087},
}
Figure