Metraipolis › archive › dc_31f3872facc3
When Plans Change Answers: Formalizing Cost-Accuracy Optimization for Semantic Queries — arXiv:2610.08089
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.08089
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T11:21:27.064Z
- SHA-256 of the archived text
8839c5312f9d13908593a78cd4f3089a6c4ca252eecdd2802a28b7e1ee5669a0- Stable URL of this page
https://metraipolis.com/documento/dc_31f3872facc3
How to cite
When Plans Change Answers: Formalizing Cost-Accuracy Optimization for Semantic Queries — arXiv:2610.08089 — arXiv (en), https://arxiv.org/abs/2610.08089 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_31f3872facc3 (Metraipolis archive dc_31f3872facc3, sha256 8839c5312f9d13908593a78cd4f3089a6c4ca252eecdd2802a28b7e1ee5669a0)
BibTeX
@misc{dc31f3872facc3,
title = {When Plans Change Answers: Formalizing Cost-Accuracy Optimization for Semantic Queries — arXiv:2610.08089},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.08089},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_31f3872facc3; sha256 8839c5312f9d13908593a78cd4f3089a6c4ca252eecdd2802a28b7e1ee5669a0},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.08089. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In semantic query engines, predicates are evaluated by machine-learned models, and the choice of a query plan affects not only the cost of a query but also its result. Existing systems either apply a fixed threshold to each semantic operator or tune accuracy per operator, without accounting for how errors propagate through joins. We give a formal problem definition for cost-accuracy optimization of such queries. Our starting point is the calibrated confidence that decision models such as Jev attach to each decision. It yields an expected error for every decision; weighting these errors by each decision's contribution to the output (in the simplest case, its fan-out) gives the expected output quality of a plan without any labeled data, and the same computation in reverse turns an output-level accuracy target into a price on each base or intermediate tuple. Building on this, we define an oracle semantics for relational algebra with semantic operators, physical plans as pairs of a logical plan and a decision policy, declarative output-level targets, and a hierarchy of plan equivalence. We show that accuracy is plan-invariant under pointwise-deterministic policies, and that selection pushdown is not quality-sound when escalation bands are calibrated on the plan's own candidates. Expected quality can be computed in polynomial time under bag semantics; under set semantics it follows the dichotomy of tuple-independent probabilistic databases when every relation carries a semantic predicate. Choosing which tuples to drop is NP-hard, while the optimization problem decomposes into per-tuple decisions through two Lagrange multipliers. Simulations on a synthetic workload illustrate these effects; an evaluation on real engines is left for future work. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Databases (cs.DB) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2610.08089 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-07T11:15:24.793Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).