LEAP: LLM-powered End-to-end Automatic Library for Processing Social Science Queries on Unstructured Data
Not on the map. Why?
Abstract (arXiv)
Social scientists are increasingly interested in analyzing the semantic information (e.g., emotion) of unstructured data (e.g., Tweets), where the semantic information is not natively present. Performing this analysis in a cost-efficient manner requires using machine learning (ML) models to extract the semantic information and subsequently analyze the now structured data. However, this process remains challenging for domain experts. To demonstrate the challenges in social science analytics, we collect a dataset, QUIET-ML, of 120 real-world social science queries in natural language and their ground truth answers. Existing systems struggle with these queries since (1) they require selecting and applying ML models, and (2) more than a quarter of these queries are vague, making standard tools like natural language to SQL systems unsuited. To address these issues, we develop LEAP, an end-to-end library that answers social science queries in natural language with ML. LEAP filters vague queries to ensure that the answers are deterministic and selects from internally supported and user-defined ML functions to extend the unstructured data to structured tables with necessary annotations. LEAP further generates and executes code to respond to these natural language queries. LEAP achieves a 100% pass @ 3 and 92% pass @ 1 on QUIET-ML, with a 1.06 average end-to-end cost, of which code generation costs 0.02.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 7 Jan 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 4; 2026: 3.
7 papers.
- 2025REPRO-Bench: Can Agentic AI Systems Assess the Reproducibility of Social Science Research?cited by 21
- 2025ScaleDoc: Scaling LLM-based Predicates over Large Document Collectionscited by 2
- 2026Multi-Segment Attention: Enabling Efficient KV-Cache Management for Faster Large Language Model Servingcited by 2
- 2025LoopServe: An Adaptive Dual-phase LLM Inference Acceleration System for Multi-Turn Dialoguescited by 1
- 2025DRAMA: Unifying Data Retrieval and Analysis for Open-Domain Analytic Queriescited by 1
- 2026SODIUM: From Open Web Data to Queryable Databasescited by 0
- 2026BI-Agent and BI-Bench: Towards Automating End-to-End Business Intelligencecited by 0
- 2026BI-Agent and BI-Bench: Towards Automating End-to-End Business Intelligence16 Sep 2026
- 2026Multi-Segment Attention: Enabling Efficient KV-Cache Management for Faster Large Language Model Serving1 Jun 2026
- 2026SODIUM: From Open Web Data to Queryable Databases19 Mar 2026
- 2025DRAMA: Unifying Data Retrieval and Analysis for Open-Domain Analytic Queries31 Oct 2025
- 2025ScaleDoc: Scaling LLM-based Predicates over Large Document Collections16 Sep 2025
- 2025REPRO-Bench: Can Agentic AI Systems Assess the Reproducibility of Social Science Research?25 Jul 2025
- 2025LoopServe: An Adaptive Dual-phase LLM Inference Acceleration System for Multi-Turn Dialogues18 Jul 2025