Optimizing LLM Queries in Relational Data Analytics Workloads
Not on the map. Why?
Abstract (arXiv)
Batch data analytics is a growing application for Large Language Models (LLMs). LLMs enable users to perform a wide range of natural language tasks, such as classification, entity extraction, and translation, over large datasets. However, LLM inference is highly costly and slow: for example, an NVIDIA L4 GPU running Llama3-8B can only process 6 KB of text per second, taking about a day to handle 15 GB of data; processing a similar amount of data costs around 10K on OpenAI's GPT-4o. In this paper, we propose novel techniques that can significantly reduce the cost of LLM calls for relational data analytics workloads. Our key contribution is developing efficient algorithms for reordering the rows and the fields within each row of an input table to maximize key-value (KV) cache reuse when performing LLM serving. As such, our approach can be easily applied to existing analytics systems and serving platforms. Our evaluation shows that our solution can yield up to 3.4x improvement in job completion time on a benchmark of diverse LLM-based queries using Llama 3 models. Our solution also achieves a 32% cost savings under OpenAI and Anthropic pricing models.
Key facts. Cited by 20 papers in the map (data through 7 Oct 2026). Builds on 10 of its 34 references that are in the map. First posted on arXiv 9 Mar 2024.
Builds on
10 of 34 references.
References · 10
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,362
- 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2016Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filteringcited by 517
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
- 2024Hydragen: High-Throughput LLM Inference with Shared Prefixescited by 71
Built on by
Citing papers per year: 2024: 8; 2025: 6; 2026: 6.
20 papers.
Sort:
By area:
- 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 48
- 2024A Declarative System for Optimizing AI Workloadscited by 35
- 2024Text2SQL is Not Enough: Unifying AI and Databases with TAGcited by 34
- 2024Semantic Operators: A Declarative Model for Rich, AI-based Data Processingcited by 29
- 2024UQE: A Query Engine for Unstructured Databasescited by 18
- 2024TQA-Bench: Evaluating LLMs for Multi-Table Question Answeringcited by 17
- 2024Conveyor: Efficient Tool-aware LLM Serving with Tool Partial Executioncited by 16
- 2025Top Ten Challenges Towards Agentic Neural Graph Databasescited by 13
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspectivecited by 10
- 2024Tool Calling: Enhancing Medication Consultation via Retrieval-Augmented Large Language Modelscited by 6
- 2025Batch Query Processing and Optimization for Agentic Workflowscited by 6
- 2025MoE-Lens: Towards the Hardware Limit of High-Throughput MoE LLM Serving Under Resource Constraintscited by 3
8 more
- 2025Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimizationcited by 3
- 2024On-Device LLMs for SMEs: Challenges and Opportunitiescited by 2
- 2025Let the Barbarians In: How AI Can Accelerate Systems Performance Researchcited by 2
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigmcited by 1
- 2026AIChilles: Automatically Uncovering Hidden Weaknesses in AI-Evolved Systemscited by 1
- 2026stratum: A System Infrastructure for Massive Agent-Centric ML Workloadscited by 0
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregatescited by 0
- 2026PipeMax: Enhancing Offline LLM Inference on Commodity GPU Serverscited by 0
- 2026AIChilles: Automatically Uncovering Hidden Weaknesses in AI-Evolved Systems14 Jun 2026
- 2026PipeMax: Enhancing Offline LLM Inference on Commodity GPU Servers4 May 2026
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregates28 Apr 2026
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective17 Mar 2026
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigm5 Mar 2026
- 2026stratum: A System Infrastructure for Massive Agent-Centric ML Workloads3 Mar 2026
- 2025Let the Barbarians In: How AI Can Accelerate Systems Performance Research16 Dec 2025
- 2025Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimization25 Nov 2025
- 2025Barbarians at the Gate: How AI is Upending Systems Research7 Oct 2025
- 2025Batch Query Processing and Optimization for Agentic Workflows2 Sep 2025
- 2025MoE-Lens: Towards the Hardware Limit of High-Throughput MoE LLM Serving Under Resource Constraints12 Apr 2025
- 2025Top Ten Challenges Towards Agentic Neural Graph Databases24 Jan 2025
8 more
- 2024TQA-Bench: Evaluating LLMs for Multi-Table Question Answering29 Nov 2024
- 2024On-Device LLMs for SMEs: Challenges and Opportunities21 Oct 2024
- 2024Text2SQL is Not Enough: Unifying AI and Databases with TAG27 Aug 2024
- 2024Semantic Operators: A Declarative Model for Rich, AI-based Data Processing16 Jul 2024
- 2024UQE: A Query Engine for Unstructured Databases23 Jun 2024
- 2024Conveyor: Efficient Tool-aware LLM Serving with Tool Partial Execution29 May 2024
- 2024A Declarative System for Optimizing AI Workloads23 May 2024
- 2024Tool Calling: Enhancing Medication Consultation via Retrieval-Augmented Large Language Models27 Apr 2024
- 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 48
- 2024A Declarative System for Optimizing AI Workloadscited by 35
- 2024Text2SQL is Not Enough: Unifying AI and Databases with TAGcited by 34
- 2024Semantic Operators: A Declarative Model for Rich, AI-based Data Processingcited by 29
- 2024UQE: A Query Engine for Unstructured Databasescited by 18
- 2024TQA-Bench: Evaluating LLMs for Multi-Table Question Answeringcited by 17
- 2025Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimizationcited by 3
- 2024On-Device LLMs for SMEs: Challenges and Opportunitiescited by 2
- 2025Let the Barbarians In: How AI Can Accelerate Systems Performance Researchcited by 2
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigmcited by 1
- 2026AIChilles: Automatically Uncovering Hidden Weaknesses in AI-Evolved Systemscited by 1
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregatescited by 0
- 2026AIChilles: Automatically Uncovering Hidden Weaknesses in AI-Evolved Systems14 Jun 2026
- 2026Evergreen: Efficient Claim Verification for Semantic Aggregates28 Apr 2026
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigm5 Mar 2026
- 2025Let the Barbarians In: How AI Can Accelerate Systems Performance Research16 Dec 2025
- 2025Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimization25 Nov 2025
- 2025Barbarians at the Gate: How AI is Upending Systems Research7 Oct 2025
- 2024TQA-Bench: Evaluating LLMs for Multi-Table Question Answering29 Nov 2024
- 2024On-Device LLMs for SMEs: Challenges and Opportunities21 Oct 2024
- 2024Text2SQL is Not Enough: Unifying AI and Databases with TAG27 Aug 2024
- 2024Semantic Operators: A Declarative Model for Rich, AI-based Data Processing16 Jul 2024
- 2024UQE: A Query Engine for Unstructured Databases23 Jun 2024
- 2024A Declarative System for Optimizing AI Workloads23 May 2024
Similar, not cited
Close in wording, no citation either way
- 2025BucketServe: Bucket-Based Dynamic Batching for Smart and Efficient LLM Inference Serving
- 2026Kalypso: Relational LLM Serving
- 2024Multi-Bin Batching for Increasing LLM Inference Throughput
- 2023Efficient LLM Inference on CPUs
- 2026BatchDAG: LLM-Planned Execution Graphs for Scalable Ad-Hoc Analysis Over Enterprise Data
- 2025A Survey of LLM × DATA
- 2024Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache
- 2024M'elange: Cost Efficient Large Language Model Serving by Exploiting GPU Heterogeneity