mlsanityData to 7 Oct 2026

RedParrot: Accelerating NL-to-DSL for Business Analytics via Query Semantic Caching

arXiv 2604.22758 ↗First posted 7 Mar 2026cs.IR cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Recently, at Xiaohongshu, the rapid expansion of e-commerce and advertising demands real-time business analytics with high accuracy and low latency. To meet this demand, systems typically rely on converting natural language (NL) queries into Domain-Specific Languages (DSLs) to ensure semantic consistency, validation, and portability. However, existing multi-stage LLM pipelines for this NL-to-DSL task suffer from prohibitive latency, high cost, and error propagation, rendering them unsuitable for enterprise-scale deployment. In this paper, we propose RedParrot, a novel NL-to-DSL framework that accelerates inference via a semantic cache. Observing the high repetition and stable structural patterns in user queries, RedParrot bypasses the costly pipeline by matching new requests against cached "query skeletons" (normalized structural patterns) and adapting their corresponding DSLs. Our core technical contributions include (1) an offline skeleton construction strategy, (2) an online, entity-agnostic embedding model trained via contrastive learning for robust matching, and (3) a heterogeneous Retrieval-Augmented Generation (RAG) method that integrates diverse knowledge sources to handle unseen entities. Experiments on six real enterprise datasets from Xiaohongshu show RedParrot achieves an average 3.6x speedup and an 8.26% accuracy improvement. Furthermore, on new public benchmarks adapted from Spider and BIRD, it boosts accuracy by 34.8%, substantially outperforming standard in-context learning baselines.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 34 references that are in the map. First posted on arXiv 7 Mar 2026.

Builds on

21 of 34 references.

References · 21

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  3. 2025Qwen3 Technical Reportcited by 8,195
  4. 2020Supervised Contrastive Learningcited by 2,803
  5. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,175
  6. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  7. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  8. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
  9. 2024TableGPT2: A Large Multimodal Model with Tabular Data Integrationcited by 69
  10. 2023Large Language Model based Long-tail Query Rewriting in Taobao Searchcited by 61
  11. 2023Grammar Prompting for Domain-Specific Language Generation with Large Language Modelscited by 58
  12. 2024VisEval: A Benchmark for Data Visualization in the Era of Large Language Modelscited by 43
9 more
  1. 2018Apache Calcite: A Foundational Framework for Optimized Query Processing Over Heterogeneous Data Sourcescited by 24
  2. 2025Pneuma: Leveraging LLMs for Tabular Data Representation and Retrieval in an End-to-End Systemcited by 22
  3. 2023Solo: Data Discovery Using Natural Language Questions Via A Self-Supervised Approachcited by 11
  4. 2024ChatBI: Towards Natural Language to Complex Business Intelligence SQLcited by 9
  5. 2024KcMF: A Knowledge-compliant Framework for Schema and Entity Matching with Fine-tuning-free LLMscited by 8
  6. 2024DataLab: A Unified Platform for LLM-Powered Business Intelligencecited by 7
  7. 2024Learning Metadata-Agnostic Representations for Text-to-SQL In-Context Example Selectioncited by 2
  8. 2025LakeVisage: Towards Scalable, Flexible and Interactive Visualization Recommendation for Data Discovery over Data Lakescited by 2
  9. 2025TableCopilot: A Table Assistant Empowered by Natural Language Conditional Table Discoverycited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026DSL-R1: From SQL to DSL for Training Retrieval Agents across Structured and Unstructured Data with Reinforcement Learning
  2. 2025Semantic Caching for Low-Cost LLM Serving: From Offline Learning to Online Adaptation
  3. 2025BenchPress: A Human-in-the-Loop Annotation System for Rapid Text-to-SQL Benchmark Curation
  4. 2026BatchDAG: LLM-Planned Execution Graphs for Scalable Ad-Hoc Analysis Over Enterprise Data
  5. 2026Synthetic Data Powers Product Retrieval for Long-tail Knowledge-Intensive Queries in E-commerce Search
  6. 2025SemBench: A Benchmark for Semantic Query Processing Engines
  7. 2026PIPE-RDF: An LLM-Assisted Pipeline for Enterprise RDF Benchmarking
  8. 2025Comparative Analysis of Neural Retriever-Reranker Pipelines for Retrieval-Augmented Generation over Knowledge Graphs in E-commerce Applications