ScaleLLM: A Technique for Scalable LLM-augmented Data Systems
Large language models (LLMs) offer powerful semantic insights for data analytics, but row-by-row LLM calls quickly become prohibitively expensive in large datasets. We introduce ScaleLLM, a novel system that substantially reduces both latency and cost on text classification tasks. ScaleLLM couples LLM-generated labels on a small subset of data with a lightweight machine learning model for large-scale inference. This approach provides significant speed-ups-up to 37×-while maintaining accuracy close to that of a full LLM baseline, converging within 1% of its accuracy in several tasks. ScaleLLM also provides cost-accuracy trade-off projections, giving users fine-grained control over performance trade-offs. Our demonstration illustrates ScaleLLM's reusable embedding views, efficient inference architecture, and potential for integration with query optimization frameworks in LLM-augmented database systems.
Authors
- Ryan Marcus (ORCID: https://orcid.org/0000-0002-1279-1124)
- Paul Loh
- Ashwin Alaparthi (ORCID: https://orcid.org/0009-0004-7889-1082)
Institutions
- University of Pennsylvania (US)
Publication Details
- Published
- 2025-06-17
- DOI
- https://doi.org/10.1145/3722212.3725130
- Primary Topic
- Mobile Crowdsensing and Crowdsourcing
- Type
- article
- Field-Weighted Citation Impact
- 0.00