paper-with-me

Papers

Larch: Learned Query Optimization for Semantic Predicates

2026-06-06 · Fuheng Zhao, Pawel Liskowski, Zihan Li, Benjamin Han, Puxuan Yu, Varich Boonsanong, Dimitris Tsirogiannis, Anupam Datta arxiv

With the advent of Large Language Models (LLMs), many database systems introduced semantic operators that enabled analytical queries over unstructured data (e.g. text, images, videos). Semantic operators typically incur high inference costs and latencies making semantic (AI) SQL queries challenging to apply on large scale datasets. At the same time, their semantic nature leads database engines to treat them as black boxes, making AISQL queries difficult to optimize. In this paper, we introduce Larch, a framework for optimizing the execution of semantic filters in AI SQL queries. Larch was inspired by two key observations: i) the high latency of semantic operators leaves significant room for computationally-heavy runtime optimization techniques, ii) unstructured data are typically accompanied by semantic information in the form of embeddings allowing for efficient semantic comparisons between AI_FILTER prompts and data values. Based on these two key observations, we present two Larch variants: Larch-A2C and Larch-Sel. Larch-A2C encodes arbitrary semantic filters expression tree using an embedding-augmented Gated Graph Neural Network and formulates the filter evaluation order as a Markov decision process. In contrast, Larch-Sel leverages a supervised learning model to predict filter selectivities, subsequently applying dynamic programming to find a near-optimal evaluation order for each input row. Evaluated across diverse real-world datasets and comprehensive synthetic workloads, both Larch variants always outperform existing semantic filter optimization techniques in terms of token usage. Our results demonstrate that Larch is robust across diverse workloads, reducing total token cost overhead by 3x-19x compared to Palimpzest and Quest.

📄 PDF Abstract BibTeX arXiv:2606.07923

Code (0)

등록된 구현이 없습니다.

Tasks

Graph Neural Network

Similar Papers 제목 키워드 기반

LLM4Hint: Leveraging Large Language Models for Hint Recommendation in Offline Query Optimization

2025-07-04 · Suchen Liu, Jun Gao, Yinjun Han, Yang Lin arxiv

Query optimization is essential for efficient SQL query execution in DBMS, and remains attractive over time due to the growth of data volumes and advances in hardware. Existing traditional optimizers struggle with the cu…

Hydro: Adaptive Query Processing of ML Queries

2024-03-22 · Gaurav Tarlok Kakkar, Jiashen Cao, Aubhro Sengupta, Joy Arulraj 외

Query optimization in relational database management systems (DBMSs) is critical for fast query processing. The query optimizer relies on precise selectivity and cost estimates to effectively optimize queries prior to ex…

Tuning Deep Active Learning for Semantic Role Labeling

2021-06-01 · IWCS (ACL) 2021 6 · Skatje Myers, Martha Palmer

Active learning has been shown to reduce annotation requirements for numerous natural language processing tasks, including semantic role labeling (SRL). SRL involves labeling argument spans for potentially multiple predi…

Active LearningSemantic Role LabelingSentence

LARCH: Large Language Model-based Automatic Readme Creation with Heuristics

2023-08-06 · Yuta Koreeda, Terufumi Morishita, Osamu Imaichi, Yasuhiro Sogawa

Writing a readme is a crucial aspect of software development as it plays a vital role in managing and reusing program code. Though it is a pain point for many developers, automatically creating one remains a challenge ev…

Language ModelingLanguage ModellingLarge Language Model

Synthesizing Video Trajectory Queries

2021-10-08 · NeurIPS Workshop AIPLANS 2021 12 · Stephen Mell, Favyen Bastani, Stephan Zdancewic, Osbert Bastani

We propose a novel framework called Quivr for synthesizing queries to identify events of interest in video data. For instance, Quivr can be used to identify instances of human driving behaviors such as lane changes or le…

Active LearningObject Tracking