mlsanityData to 7 Oct 2026

Optimizing LLM Queries in Relational Data Analytics Workloads

arXiv 2403.05821 ↗First posted 9 Mar 2024cs.LG cs.DBcited by 20

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

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  3. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  4. 2017Billion-scale similarity search with GPUscited by 2,477
  5. 2018FEVER: a large-scale dataset for Fact Extraction and VERificationcited by 1,362
  6. 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
  7. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  8. 2016Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filteringcited by 517
  9. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
  10. 2024Hydragen: High-Throughput LLM Inference with Shared Prefixescited by 71

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 8; 2025: 6; 2026: 6.

20 papers.

Sort:

By area:

  1. 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 48
  2. 2024A Declarative System for Optimizing AI Workloadscited by 35
  3. 2024Text2SQL is Not Enough: Unifying AI and Databases with TAGcited by 34
  4. 2024Semantic Operators: A Declarative Model for Rich, AI-based Data Processingcited by 29
  5. 2024UQE: A Query Engine for Unstructured Databasescited by 18
  6. 2024TQA-Bench: Evaluating LLMs for Multi-Table Question Answeringcited by 17
  7. 2024Conveyor: Efficient Tool-aware LLM Serving with Tool Partial Executioncited by 16
  8. 2025Top Ten Challenges Towards Agentic Neural Graph Databasescited by 13
  9. 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspectivecited by 10
  10. 2024Tool Calling: Enhancing Medication Consultation via Retrieval-Augmented Large Language Modelscited by 6
  11. 2025Batch Query Processing and Optimization for Agentic Workflowscited by 6
  12. 2025MoE-Lens: Towards the Hardware Limit of High-Throughput MoE LLM Serving Under Resource Constraintscited by 3
8 more
  1. 2025Beyond Relational: Semantic-Aware Multi-Modal Analytics with LLM-Native Query Optimizationcited by 3
  2. 2024On-Device LLMs for SMEs: Challenges and Opportunitiescited by 2
  3. 2025Let the Barbarians In: How AI Can Accelerate Systems Performance Researchcited by 2
  4. 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigmcited by 1
  5. 2026AIChilles: Automatically Uncovering Hidden Weaknesses in AI-Evolved Systemscited by 1
  6. 2026stratum: A System Infrastructure for Massive Agent-Centric ML Workloadscited by 0
  7. 2026Evergreen: Efficient Claim Verification for Semantic Aggregatescited by 0
  8. 2026PipeMax: Enhancing Offline LLM Inference on Commodity GPU Serverscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025BucketServe: Bucket-Based Dynamic Batching for Smart and Efficient LLM Inference Serving
  2. 2026Kalypso: Relational LLM Serving
  3. 2024Multi-Bin Batching for Increasing LLM Inference Throughput
  4. 2023Efficient LLM Inference on CPUs
  5. 2026BatchDAG: LLM-Planned Execution Graphs for Scalable Ad-Hoc Analysis Over Enterprise Data
  6. 2025A Survey of LLM × DATA
  7. 2024Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache
  8. 2024M'elange: Cost Efficient Large Language Model Serving by Exploiting GPU Heterogeneity