Skip to content
FrancescaDelGaudioPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

Repository files navigation

DiDi: Dissecting Distributed Vector Search

Code, configurations, and experiment scripts for the paper DiDi: Dissecting Distributed Vector Search (Del Gaudio, Azizi, Palpanas).

📄 Appendix of the paper: DiDi_appendix.pdf (details on the evaluated methods; load-balancing and communication-volume graphs for all datasets and node counts; runtime breakdown, communication split / RDMA gain and throughput-gain bounds at every recall target).

Evaluated systems

System Paper Code
GP-ANN* Gottesbüren et al., Unleashing Graph Partitioning for Large-Scale Nearest Neighbor Search, arXiv:2403.01797 (2024) larsgottesbueren/gp-ann
Pyramid* Deng et al., Pyramid: A General Framework for Distributed Similarity Search on Large-scale Datasets, IEEE BigData (2019) EBUCILONG/Distributed-HNSW
Harmony Xu et al., Harmony: A Scalable Distributed Vector Database for High-Throughput Approximate Nearest Neighbor Search, arXiv:2506.14707 (2025) xuqianmamba/Harmony
CoTra Zhi et al., Towards Efficient and Scalable Distributed Vector Search with RDMA, arXiv:2507.06653 (2025) xiangyuzhi/CoTra
DistributedANN* Adams et al., DistributedANN: Efficient Scaling of a Single DiskANN Graph Across Thousands of Computers, arXiv:2509.06046 (2025) our implementation

* = our version (see systems/README.md).

Repository layout

DiDi/
├── env.example.sh             # paths, external dependencies, compiler / MPI per system
├── systems/                   # the five systems (see systems/README.md)
│   ├── gp-ann/  pyramid/  distributedann/  cotra/  harmony/
│   └── build_all.sh           # builds every binary used by the experiments
├── datasets/                  # download, subsampling, ground truth
├── configs/
│   ├── datasets.yaml          # input files of every dataset, as each system reads them
│   ├── <system>/index.yaml    # index-construction parameters
│   ├── <system>/search.yaml   # search configurations of the recall / QPS sweeps
│   └── operating_points.yaml  # configuration of every recall target (Fig. 6, Fig. 11)
└── experiments/
    ├── common/                # launchers (launch.sh), config resolver (didi.py), log parsers
    ├── 1_index_construction/  # Fig. 4, Table 2
    ├── 2_search_performance/  # Fig. 5, Fig. 6
    ├── 3_time_breakdown/      # Fig. 7
    ├── 4_comm_replay/         # Fig. 8-9, Table 3
    ├── 5_native_rdma/         # Fig. 10
    ├── 6_load_balance/        # Fig. 11
    └── 7_skew/                # Fig. 12

Every experiment folder has run.sh (launches the runs inside a Slurm allocation, with mpirun / srun), slurm.sbatch (template that calls run.sh), collect.py (parses the logs into the CSV of the figure) and, where needed, params.yaml (configurations and repeats specific to the experiment). run.sh --dry-run prints the commands without running them.

Hardware and software used in the paper

  • Nodes: 2× AMD EPYC 7H12 (128 cores), 512 GB RAM; up to 8 nodes; 100 Gb/s InfiniBand
  • Open MPI over UCX: 4.1.1 (GP-ANN*, Harmony, DistributedANN*), 4.1.8 (Pyramid*); CoTra uses native RDMA
  • 16 threads per process for every search

Prerequisites

Needed by Dependency Version used in the paper
all Linux cluster with Slurm, InfiniBand (libibverbs, librdmacm) 100 Gb/s, mlx5
all CMake 3.29
all Python 3 with NumPy and PyYAML; curl —
GP-ANN* C++20 compiler, Open MPI, OpenMP; tcmalloc (optional) gcc 11.3, Open MPI 4.1.1
Pyramid* C++ compiler, Open MPI, OpenMP, Boost (system, filesystem, regex, thread, program_options, date_time, chrono), Eigen 3, Faiss (MIPS indexes) gcc 15.3, Open MPI 4.1.8, Eigen 3.4.0
DistributedANN* C++17 compiler, Open MPI, OpenMP gcc 10.3, Open MPI 4.1.1
CoTra C++20 compiler, Boost ≥ 1.58 (serialization, iostreams, program_options, system, filesystem), Intel MKL and OpenMP (oneAPI), Faiss, libaio, memcached + libmemcached, gperftools (tcmalloc) gcc 10.3
Harmony C++20 compiler (gcc ≥ 13), Open MPI, OpenMP, Intel MKL, Eigen 3, GoogleTest gcc 13, Open MPI 4.1.1, MKL 2020 U4

Faiss 1.8.0 (Pyramid*, CoTra) and CoTra's libraries (libaio, libevent, memcached, libmemcached, gperftools, fmt) and GoogleTest (Harmony) are built by systems/deps.sh into $DEPS_DIR, with the versions of the paper; Faiss from the sources in systems/harmony/third_party/faiss, the others from their official releases (checked by SHA-256). Harmony needs a C++20 compiler (gcc ≥ 13), set as CC / CXX in its toolchain (e.g. conda install -c conda-forge gxx=13). Paths to the other dependencies and the compiler / MPI of each system are set in env.sh (template: env.example.sh).

Reproducing the experiments

cp env.example.sh env.sh && $EDITOR env.sh      # paths, dependencies, toolchains
./systems/deps.sh                               # Faiss + CoTra libraries -> $DEPS_DIR
./systems/build_all.sh                          # all binaries -> $BUILD_DIR

# datasets (official files, subsets, exact ground truth, every system's format) -> $DATA_DIR
for d in DEEP10M DEEP100M TTI10M TTI100M MSMARCO10M MSMARCO100M; do
  sbatch datasets/prepare.sbatch all $d
done
sbatch datasets/prepare.sbatch learn                  # DEEP learn set, only for Fig. 12
python3 datasets/relative_contrast.py                 # Table 1 (median RC_100 on the 10M datasets)

E=experiments
# Fig. 4 / Table 2: one index per system, dataset and node count
sbatch -N 8 $E/1_index_construction/slurm.sbatch --system cotra --dataset DEEP100M --nodes 8
# Fig. 5 / 6: search sweeps on the same setups
sbatch -N 8 $E/2_search_performance/slurm.sbatch --system cotra --dataset DEEP100M --nodes 8
# Fig. 7 (DEEP100M, 8 nodes): gp-ann | pyramid | cotra | distributedann
sbatch -N 8 $E/3_time_breakdown/slurm.sbatch --system pyramid
# Fig. 8-9 / Table 3 (after Fig. 7): gp-ann | pyramid | distributedann
sbatch -N 8 $E/4_comm_replay/slurm.sbatch --system pyramid
# Fig. 10: gp-ann | pyramid
sbatch -N 8 $E/5_native_rdma/slurm.sbatch --system pyramid
# Fig. 12: generate the workloads once, then every system on every workload
sbatch -N 1 $E/7_skew/slurm.sbatch --step workloads
sbatch -N 8 $E/7_skew/slurm.sbatch --step runs --system pyramid --workload r1a_p50

# tables of the figures (CSV in $OUTPUT_DIR/<experiment>/)
for c in $E/{1_index_construction,2_search_performance,6_load_balance,3_time_breakdown,4_comm_replay,5_native_rdma,7_skew}/collect.py; do
  python3 $c
done

Datasets

Dataset Dim Metric Queries Scales Source
DEEP 96 L2 10,000 (ID) 10M, 100M Yandex DEEP (big-ann-benchmarks)
TTI (Text-to-Image) 200 IP 10,000 (OOD) 10M, 100M Yandex Text-to-Image (big-ann-benchmarks)
MsMarco (Web Search) 768 IP 9,376 (OOD) 10M, 100M MS MARCO Web Search, SimANS vectors
source env.sh
sbatch -t 1-00:00:00 datasets/prepare.sbatch all DEEP100M   # DEEP10M DEEP100M TTI10M TTI100M MSMARCO10M MSMARCO100M
sbatch -t 04:00:00   datasets/prepare.sbatch learn          # DEEP learn set, only for experiments/7_skew
python3 datasets/relative_contrast.py                       # Table 1 (relative contrast)

prepare.py downloads only the bytes it needs from the official files (subsets are prefixes, except DEEP10M, which is the official base.10M.fbin), takes the official ground truth where it exists (DEEP100M, TTI100M), computes the exact one otherwise (DEEP10M, TTI10M: top-100; MsMarco: top-10), and writes every input format of the five systems at the paths of configs/datasets.yaml.

Citation

@article{delgaudio2026didi,
  title   = {DiDi: Dissecting Distributed Vector Search},
  author  = {Del Gaudio, Francesca and Azizi, Ilias and Palpanas, Themis},
  year    = {2026},
  note    = {Under submission}
}

The systems evaluated are the work of their authors; see systems/README.md for the original repositories, the commits our versions start from, and their licenses.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages