Abacus: A Cost-Based Optimizer for Semantic Operator Systems
Not on the map. Why?
Abstract (arXiv)
LLMs enable an exciting new class of data processing applications over large collections of unstructured documents. Several new programming frameworks have enabled developers to build these applications by composing them out of semantic operators: a declarative set of AI-powered data transformations with natural language specifications. These include LLM-powered maps, filters, joins, etc. used for document processing tasks such as information extraction, summarization, and more. While systems of semantic operators have achieved strong performance on benchmarks, they can be difficult to optimize. An optimizer for this setting must determine how to physically implement each semantic operator in a way that optimizes the system globally. Existing optimizers are limited in the number of optimizations they can apply, and most (if not all) cannot optimize system quality, cost, or latency subject to constraint(s) on the other dimensions. In this paper we present Abacus, an extensible, cost-based optimizer which searches for the best implementation of a semantic operator system given a (possibly constrained) optimization objective. Abacus estimates operator performance by leveraging a minimal set of validation examples, prior beliefs about operator performance, and/or an LLM judge. We evaluate Abacus on document processing workloads in the biomedical and legal domains (BioDEX; CUAD) and multi-modal question answering (MMQA). We demonstrate that, on-average, systems optimized by Abacus achieve 6.7%-39.4% better quality and are 10.8x cheaper and 3.4x faster than the next best system.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 23 of its 50 references that are in the map. First posted on arXiv 20 May 2025.
Builds on
23 of 50 references.
References · 23
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2023MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGIcited by 2,080
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2024Mixture-of-Agents Enhances Large Language Model Capabilitiescited by 438
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
- 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 236
- 2021MultiModalQA: Complex Question Answering over Text, Tables and Imagescited by 179
- 2013Finite-Time Analysis of Kernelised Contextual Banditscited by 177
- 2024MileBench: Benchmarking MLLMs in Long Contextcited by 88
- 2024Archon: An Architecture Search Framework for Inference-Time Techniquescited by 60
11 more
- 2024DocETL: Agentic Query Rewriting and Evaluation for Complex Document Processingcited by 52
- 2018BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video Analyticscited by 41
- 2024Fine-Tuning and Prompt Optimization: Two Great Steps that Work Better Togethercited by 40
- 2017NoScope: Optimizing Neural Network Queries over Video at Scalecited by 37
- 2024Semantic Operators: A Declarative Model for Rich, AI-based Data Processingcited by 34
- 2023CAESURA: Language Models as Multi-Modal Query Plannerscited by 20
- 2018Physical Representation-based Predicate Optimization for a Visual Analytics Databasecited by 19
- 2021Accelerating Approximate Aggregation Queries with Expensive Predicatescited by 10
- 2023BioDEX: Large-Scale Biomedical Adverse Drug Event Extraction for Real-World Pharmacovigilancecited by 10
- 2023Extract-Transform-Load for Video Streamscited by 7
- 2023Accelerating Aggregation Queries on Unstructured Streams of Datacited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 11.
13 papers.
Sort:
By area:
- 2025AgenticData: An Agentic Data Analytics System for Heterogeneous Datacited by 22
- 2025Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimizationcited by 5
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Modelscited by 3
- 2026CTIFoundry: An Agent-Native Corpus Scaffold for Cyber Threat Intelligencecited by 2
- 2026Both Ends Count! Just How Good are LLM Agents at "Text-to-Big SQL"?cited by 1
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregatescited by 0
- 2026Opti-Q: A Constraint-Based Optimization Framework for Multi-LLM Question Planningcited by 0
- 2026Search over the Visual World: Persistent Visual Memory, Layered Indexes, and Source-Grounded Evidencecited by 0
- 2026Efficiently Linking Unstructured Data for Multi-step Reasoningcited by 0
- 2026KathDB-FAO: Synthesized Query Plans in a Multimodal DBMScited by 0
- 2026Fail Loudly: An Auditable Runtime for Agentic Data Analysiscited by 0
- 2026Semantic Views: Certified Reuse of LLM Labels Across Semantic Queriescited by 0
1 more
- 2026Same Query, Different Answer: Run-to-Run Variance in Semantic Query Processing9 Oct 2026
- 2026Semantic Views: Certified Reuse of LLM Labels Across Semantic Queries8 Oct 2026
- 2026Fail Loudly: An Auditable Runtime for Agentic Data Analysis26 Sep 2026
- 2026KathDB-FAO: Synthesized Query Plans in a Multimodal DBMS23 Sep 2026
- 2026Efficiently Linking Unstructured Data for Multi-step Reasoning16 Sep 2026
- 2026CTIFoundry: An Agent-Native Corpus Scaffold for Cyber Threat Intelligence19 Aug 2026
- 2026Search over the Visual World: Persistent Visual Memory, Layered Indexes, and Source-Grounded Evidence8 Aug 2026
- 2026Opti-Q: A Constraint-Based Optimization Framework for Multi-LLM Question Planning17 Jun 2026
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregates28 Apr 2026
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models16 Mar 2026
- 2026Both Ends Count! Just How Good are LLM Agents at "Text-to-Big SQL"?25 Feb 2026
- 2025Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimization25 Nov 2025
1 more
- 2025AgenticData: An Agentic Data Analytics System for Heterogeneous Datacited by 22
- 2026CTIFoundry: An Agent-Native Corpus Scaffold for Cyber Threat Intelligencecited by 2
- 2026Both Ends Count! Just How Good are LLM Agents at "Text-to-Big SQL"?cited by 1
- 2026Fail Loudly: An Auditable Runtime for Agentic Data Analysiscited by 0
- 2026Fail Loudly: An Auditable Runtime for Agentic Data Analysis26 Sep 2026
- 2026CTIFoundry: An Agent-Native Corpus Scaffold for Cyber Threat Intelligence19 Aug 2026
- 2026Both Ends Count! Just How Good are LLM Agents at "Text-to-Big SQL"?25 Feb 2026
- 2025AgenticData: An Agentic Data Analytics System for Heterogeneous Data7 Aug 2025
- 2025Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimizationcited by 5
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Modelscited by 3
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregatescited by 0
- 2026Opti-Q: A Constraint-Based Optimization Framework for Multi-LLM Question Planningcited by 0
- 2026Search over the Visual World: Persistent Visual Memory, Layered Indexes, and Source-Grounded Evidencecited by 0
- 2026KathDB-FAO: Synthesized Query Plans in a Multimodal DBMScited by 0
- 2026Semantic Views: Certified Reuse of LLM Labels Across Semantic Queriescited by 0
- 2026Same Query, Different Answer: Run-to-Run Variance in Semantic Query Processingcited by 0
- 2026Same Query, Different Answer: Run-to-Run Variance in Semantic Query Processing9 Oct 2026
- 2026Semantic Views: Certified Reuse of LLM Labels Across Semantic Queries8 Oct 2026
- 2026KathDB-FAO: Synthesized Query Plans in a Multimodal DBMS23 Sep 2026
- 2026Search over the Visual World: Persistent Visual Memory, Layered Indexes, and Source-Grounded Evidence8 Aug 2026
- 2026Opti-Q: A Constraint-Based Optimization Framework for Multi-LLM Question Planning17 Jun 2026
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregates28 Apr 2026
- 2026100x Cost & Latency Reduction: Performance Analysis of AI Query Approximation using Lightweight Proxy Models16 Mar 2026
- 2025Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimization25 Nov 2025