Skip to content

QCATS: Query Context-Aware Transformer Slicing for Efficient Predictive Query Processing

Oct 2026 · 0 citations
Computer Science

TL;DR

The proposed QCATS is a query context-aware transformer slicing framework that enables efficient sparse inference inside database systems and achieves up to 4.42x latency reduction while preserving prediction accuracy comparable to dense baselines.

Abstract

In-database predictive query processing increasingly applies Transformer-based models within relational pipelines. However, existing in-database inference typically exposes only tuple-level model inputs to the inference runtime, leaving relational predicates and metadata statistics invisible to neural execution planning. In this paper, we propose QCATS, a query context-aware transformer slicing framework that enables efficient sparse inference inside database systems. QCATS executes at query granularity: instead of routing individual tokens or tuples during inference, it uses query predicates and metadata statistics to pre-select context-aligned FFN slices before model execution. The framework comprises offline expert construction and lightweight query-level routing that dynamically selects experts during execution. QCATS further introduces system optimizations, including asynchronous CPU-GPU pipelines and routing-aware batching. Experiments on four predictive-query workloads with BERT-base and Qwen-0.6B show that QCATS achieves up to 4.42x latency reduction while preserving prediction accuracy comparable to dense baselines.

View source

Similar papers

Open access 2024

HYPERION-Q: A Graph-Guided Self-Validating and Hardware-Aware Framework for High-Performance Query Processing

Modern data management systems must simultaneously address three critical challenges: efficient query optimization for large queries, reliable detection of logical errors in database engines, and high-performance processing across heterogeneous hardware architectures. Traditional query optimizers rely on dynamic progra...

Praveen Kumar Kumbum, Ramachandra Reddy Vangala · 1 citation
Preprint Oct 2026

NousDB - A Fast Query Engine for Semantic Analytics

This work presents NousDB, a high-performance semantic analytics engine built on Apache DataFusion, and proposes an extended relational algebra with three semantic operators and formal algebraic properties that enable principled query rewriting and cross-operator optimization.

Christos Tsapelas, Georgia Koutrika, Y. Ioannidis · 0 citations
Preprint Oct 2026

Prune First, Decide Fast: Scalable Semantic Query Processing with JEVDB

JEVDB is presented, a scalable semantic database system that uses fast, typed decision models for semantic filters, joins, classification, and ranking, while selectively escalating uncertain cases to generative LLMs.

Zheng-Le Wang, Han-Xu Yan, Fuheng Zhao et al. · 4 citations · ⚡1

Phase-Scoped Query Layouts for Reference-Preserving Speculative Decoding

A phase-scoped query-to-batch (QB) transformation that preserves an existing greedy reference while retaining batched projections and feed-forward computation and establishes a concrete local implementation benefit and distinguish the representation, state and backend conditions that a reference-preserving deployment m...

Cheng-Zhan Li · 0 citations
Open access 2025

CODAQ: Context-Oriented Distributed Adaptive Query Processing for Large-Scale Graph and Data Systems

Modern data-driven applications increasingly rely on distributed graph databases and machine learning pipelines to extract knowledge from massive datasets. However, efficient query processing in distributed environments remains challeng-ing due to issues such as graph partitioning inefficiencies, dynamic connectivity u...

Praveen Kumar Kumbum, Ramachandra Reddy Vangala · 4 citations
Jul 2026

The Data World is Not Flat: Efficient Factorized Execution for Relational Systems

A novel code-generating engine with factorization that enables intra-query-parallelized query execution on factorized representations and generates code to overcome their CPU-unfriendly layout, offering a unified and scalable solution for modern workloads.

Stefan Lehner, Thomas Neumann · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.