arXiv Science⌕ Search

arXiv · 2611.40912

Fixed-Capacity Limits of Linearizable Mergeable Cardinality Sketches: Tight Bounds and CapPCSA

Abstract

Strictly mergeable cardinality sketches evaluate COUNT(DISTINCT) across arbitrary aggregation trees with states bit-identical to sequential union. Variable-length or overflow-prone designs (e.g., Apache CPC and multi-cell Fishmonger) approach Pettie and Wang's linearizable Shannon-entropy floor of 1.980. Yet fixed-width Parquet columns and bounded-slot frames require zero-overflow (delta = 0) fixed wire capacity, where prior fixed-size linearizable sketches suffer memory-variance products (MVPs) strictly above 3.00 on 64-bit universes. We close this gap with three contributions. First, we prove that deterministic fixed capacity raises the asymptotically tight linearizable limits to 2.45926 (+24.2% above 1.980) for inverse-Fisher MVP and 1.82043 (+11.8% above 1.62862) for state-change rate, alongside an implication-DAG criterion and linearizable top-collapse corollary. On matched 64-bit windows, a left-shifted integration window converges at O((ln ln d)/d) and certifies non-vacuous bounds 2.355-2.363. Second, we construct CapPCSA, a pooled-tail PCSA closure matching both limits asymptotically and certifying five 64-bit configurations with inverse-Fisher UB below 3.00 (+14.7%-+25.5% Exact / +14.9%-+26.9% Fast above matched lower bounds), paired with zero-allocation delta = 0 codecs (CapPCSA-Fast, 15.9-34.3 us at g = 2,048 on M5; RawEF). Across 16 real-hash phases, Fast achieves 2.79-2.83 mean MVP (cutting 23.6%-26.5% vs. ExaLogLog-28/32b). Dual-host and Parquet runs map the system trade-offs: CapPCSA leads fixed-wire catalog size and FLBA NONE/LZ4 storage, ties ULL-8b and CPC on 16-phase ZSTD MVP, and trades higher working RAM and small-n hashing cost for provable delta = 0. Third, we prove a continuous smoothed ExaLogLog relaxation diverges as (ln Lambda + ln ln Lambda)/I_0 + O(1) for Lambda = log_2 log_2 U.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Bowen Jiang, Xue Wang, Tao Yao. 2026-11-30. Fixed-Capacity Limits of Linearizable Mergeable Cardinality Sketches: Tight Bounds and CapPCSA. https://arxiv.science/abs/2611.40912

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

ABISS: Evaluating Text-to-SQL Systems Through Agent Interaction

Real-world users frequently pose ambiguous or unanswerable questions that current Large Language Model (LLM)-based Text-to-SQL systems handle poorly. Three interconnected gaps hinder progress: incomplete taxonomies, the lack of scalable generation of realistic benchmark data, and evaluation limited to fixed, idealized conversations. We address these gaps through three contributions: (1) a unified taxonomy of 8 categories covering ambiguous and unanswerable questions; (2) a multi-agent generation pipeline that generates Natural Language Questions (NLQs), grounds them in SQL, and applies a ten-stage validation pipeline with council-based checks; and (3) ABISS (Ambiguity Benchmark using Interaction-Simulated Sessions), a dynamic simulation environment where Text-to-SQL agents interact with style-aware simulated users across multi-turn dialogues. Experiments with ten models, nine of them open-source, on BIRD- and Spider-based datasets reveal two bottlenecks. First, models often fail to recognize that a question is ambiguous, although they usually name its subcategory correctly once they do, and the correct label helps mostly on the questions whose type they miss. Second, models lose most when they answer without asking: once the simulated user supplies the missing information, their SQL is nearly as accurate as when it is given in advance. We release our code and a link to the datasets on GitHub (https://github.com/giosullutrone/ABISS-Evaluating-Text-to-SQL-Systems-Through-Agent-Interaction).

cs.DB↗

Where Should the Vectors Live? Locality-Aware Retrieval for RAG on Geo-Distributed SQL

Enterprise retrieval-augmented generation (RAG) increasingly runs vector search inside geo-distributed SQL databases, where the corpus is fresh, transactional, and subject to data-residency rules. Where the vectors live relative to their users then decides retrieval latency, freshness, and compliance. We compare five placement strategies on a three-region deployment of a commercially available geo-distributed SQL database with emulated wide-area latency and its native vector index: a centralized table, follower reads, a global table, and home-region partitioning searched globally or locally. The workload is 20,963 SQuAD passages with real questions. Approximate nearest neighbor search amplifies network distance: a remote top-10 query costs 4.2 round trips beyond its local cost, so medians span 6.4 ms to over 700 ms (112x) across strategies that differ only in placement. Local strategies pay elsewhere, in staleness, write latency, or missed answers. We propose LARR, a locality-aware retrieval router that searches the home partition first and escalates to a cross-region fan-out only when the best local distance exceeds a calibrated threshold. With 90% of questions issued from the answer's home region, LARR matches the fan-out's hit@10 (70.7% vs. 70.5%; 95% CI of the difference [-1.4, +1.9] points) at 5.9x lower mean latency. The result holds live on held-out questions, with production-style three-node-per-region replication, and on three real cloud regions (6.1x). With a second, transformer-based embedding model, LARR matches the fan-out at 3.5x lower latency, and its throughput advantage persists under concurrent load. A replicated centroid sketch (LARR-S) sharpens escalation when locality is weaker. We also report a pitfall with partitioned vector indexes.

cs.DB↗

Refetch times of AI crawlers: a paired comparison with Googlebot

AI answer engines learn about the web through three types of crawlers: training crawlers collect pages for future models, search crawlers keep the engine's index up-to-date, and user fetchers retrieve a page when a user's prompt triggers it. When a publisher changes a page, an answer engine can show the change only after one of these crawlers fetches the page again. Previous works have analyzed request counts and distinct pages, but none have measured how long a crawler takes to refetch a page. In this work, we measure the refetch time of ten crawlers (including eight AI crawlers) on Prerender customer sites using a Kaplan-Meier survival analysis, and compare it with Googlebot on the same domains in the same months. Googlebot fetched half of its pages again within 13 days on a typical customer's site. AI search crawlers are slower: OpenAI's took 28 days and Perplexity's more than 90. Training crawlers differ by operator, from 6 days for Meta's to 46 for Anthropic's and 66 for OpenAI's. User fetchers come back as often as users ask: OpenAI's took 10 days. A bootstrap and a sign test over customer accounts find these gaps significant, and they survive our robustness checks. We conclude that a change to a page can take weeks longer to reach AI search indexes than to reach Google's, and one and a half to two months to reach OpenAI's and Anthropic's training crawlers, which matters to every publisher whose prices, stock or facts change.

cs.DB↗