Beyond Global Top-k: Certified Soft Aggregation over Semantic Facets

Search, recommendation and RAG applications increasingly ask aggregate questions of semantically retrieved content, such as the average rating of reviews about battery life per category. The standard pipeline answers them with one global top-k vector search followed by aggregation. We show that a single global ranked list is a poor plan for this query shape: it guarantees neither facet coverage nor bounded omitted weight. On a 1.35M-review catalogue with 33 categories, a top-100 retrieval answers only ten, because semantically similar items concentrate in few facets, not because the budget is small. Per-facet (grouped) retrieval repairs coverage and is our strongest baseline, but it still reports no error bound. We treat grouped relevance-weighted (softmax) aggregation as a database operator: per group a Nadaraya-Watson kernel regression estimator, evaluated with the max-shifted online softmax accumulator under exact predicates. We contribute (i) an overflow-safe mergeable execution with 40 bytes of state per facet, where plain SQL fails differently in two engines and PostgreSQL aborts on underflow even in the textbook max-shifted rewrite; (ii) incremental maintenance in which insertion and ordinary deletion are constant-time state updates, four to five orders of magnitude cheaper than recomputation, while deleting a facet's anchor costs one pass over that facet; and (iii) a deterministic per-facet error bound, the omitted softmax weight times the group's value range, with a plan that proposes a truncation from a sketch, verifies it against the true omitted mass, and repairs any facet that misses. Measured in our engine on three corpora (Amazon Reviews, StackExchange, IMDb), every delivered answer met its declared error budget. A row-count analysis assuming a score-ordered per-facet candidate generator shows the same bound could certify answers while reading 0.6-9.3% of the rows.

Authors

Publication Details

Journal
arXiv
Published
2026-11-30
Primary Topic
Advanced Database Systems and Queries
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Beyond Global Top-k: Certified Soft Aggregation over Semantic Facets

Xiaofei Zhang, Jiacheng Ding
arXiv
Advanced Database Systems and Queries
preprint

Beyond Global Top-k: Certified Soft Aggregation over Semantic Facets

Xiaofei Zhang, Jiacheng Ding
preprint en

Abstract

Search, recommendation and RAG applications increasingly ask aggregate questions of semantically retrieved content, such as the average rating of reviews about battery life per category. The standard pipeline answers them with one global top-k vector search followed by aggregation. We show that a single global ranked list is a poor plan for this query shape: it guarantees neither facet coverage nor bounded omitted weight. On a 1.35M-review catalogue with 33 categories, a top-100 retrieval answers only ten, because semantically similar items concentrate in few facets, not because the budget is small. Per-facet (grouped) retrieval repairs coverage and is our strongest baseline, but it still reports no error bound. We treat grouped relevance-weighted (softmax) aggregation as a database operator: per group a Nadaraya-Watson kernel regression estimator, evaluated with the max-shifted online softmax accumulator under exact predicates. We contribute (i) an overflow-safe mergeable execution with 40 bytes of state per facet, where plain SQL fails differently in two engines and PostgreSQL aborts on underflow even in the textbook max-shifted rewrite; (ii) incremental maintenance in which insertion and ordinary deletion are constant-time state updates, four to five orders of magnitude cheaper than recomputation, while deleting a facet's anchor costs one pass over that facet; and (iii) a deterministic per-facet error bound, the omitted softmax weight times the group's value range, with a plan that proposes a truncation from a sketch, verifies it against the true omitted mass, and repairs any facet that misses. Measured in our engine on three corpora (Amazon Reviews, StackExchange, IMDb), every delivered answer met its declared error budget. A row-count analysis assuming a score-ordered per-facet candidate generator shows the same bound could certify answers while reading 0.6-9.3% of the rows.

arXiv
Advanced Database Systems and Queries
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Beyond Global Top-k: Certified Soft Aggregation over Semantic Facets — Xiaofei Zhang, Jiacheng Ding · arXiv (2026) | TGRS Research Map | TGRS