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.
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· Journal of Data Science and...· 1 citation
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
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.
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...
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· Journal of Business Intellig...· 4 citations
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· Proceedings of the VLDB Endo...· 0 citations