[Feature]: Integrate OMEGA adaptive early termination into zvec
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem / Motivation
HNSW usually depends on a fixed ef_search budget. In real workloads, that budget often has to be tuned
conservatively, which means many easy queries still pay unnecessary traversal and comparison cost.
OMEGA is designed to turn this fixed budget into adaptive early termination: it monitors the current HNSW search
state and decides whether the target recall has already been reached.
More importantly, OMEGA is not just another learned stopping heuristic. Its key advantage is one-model for multi-K: it reduces an arbitrary top-K ANN query into repeated top-1 ANN decisions, so a single learned model can be reused across different K values and different recall targets. This avoids the need to retrain separate models or repeatedly retune search parameters for each K.
Proposed Solution
Integrate OMEGA into zvec as a built-in capability on top of HNSW.
This includes:
- OMEGA index and query parameters
- integration with the HNSW search loop through hooks
- offline training and model persistence
- support for one-model-for-multi-K query serving
- runtime fallback to plain HNSW when OMEGA is unavailable or not applicable
Alternatives Considered
-
Keep using only fixed-budget HNSW tuning:
this is simple, but it still relies on a single global budget such asef_search, which does not address query-level variation and cannot provide one-model-for-multi-K behavior. -
Build a separate OMEGA-specific search path:
this would duplicate the existing HNSW search implementation and increase long-term maintenance cost. We prefer integrating OMEGA as a query-time control layer on top of the current HNSW path. -
Train or tune separate learned/search configurations for different K values:
this increases offline cost and operational complexity. One of OMEGA's main advantages is that a single model can serve multiple K values and recall targets.
Affected Area
{"label" => "C++ Core (storage, indexing)"}, {"label" => "Python API / Bindings"}, {"label" => "Testing / CI / Coverage"}
- Ngôn ngữ chính
- C++
- Star
- 16.3k
- Fork
- 1k
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 32
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của alibaba/zvec
-
[Feature]: IVF_TIEREDQ index type, with a learned variable-bit codec (25–44% less index memory than `IVF_RABITQ` at equal recall)Có thể đã có người làm @richyreachy đã nhận 7 ngày trước. Đang mởfeature
alibaba/zvec#909 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Support an opt-in portable x86 FastPFOR build without SSE4.1Có thể đã có người làm @egolearner đã nhận 20 ngày trước. Đang mở
alibaba/zvec#875 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Enhance]: Reduce vector index block fragmentation caused by frequent flushesCó thể đã có người làm @feihongxu0824 đã nhận 22 ngày trước. Đang mởenhancement
alibaba/zvec#869 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Performance]:High-selectivity range filter materializes a full bitmap — `bitset_set_list` ~49% CPU, dwarfing the ANN searchCó thể đã có người làm @zhourrr đã nhận 22 ngày trước. Đang mởenhancement
alibaba/zvec#868 · 13 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Performance] Warm-query latency on small collections with query() and query_internal_ids() in v0.8.0Có thể làm lại được @egolearner đã nhận 33 ngày trước và không có pull request nào đang mở. Đang mở
alibaba/zvec#841 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
deprecation internal refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
realloc(ptr, 0) on glibc leaves the freed block in the capture as a leakCó thể đã có người làm @ADAMAMZAR đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
bloomberg/memray#1097 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
new-compilers request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
compiler-explorer/compiler-explorer#9640 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
deepseek-ai/DeepEP#839 ·
Maintainer thường phản hồi trong vòng 6 ngày