Search arXiv⌕ Search

arXiv subjects

Shanghao Liu

Publications and source records attributed to Shanghao Liu.

4 recordsLinked to original sources

SemMV: Materialized Views for Semantic Query Processing over Evolving Data

Semantic query processing extends databases with semantic predicates evaluated by large language models (LLMs). Since LLM inference dominates the cost of semantic queries, existing systems employ various query optimization strategies to reduce this cost. Optimizing queries in isolation, however, overlooks redundant LLM calls across related queries that repeatedly access incrementally changing data. Exploiting this redundancy poses three challenges: determining which prior results can be reused, efficiently evaluating the rows those results leave undecided, and deciding when to refresh stored results as data change. In this paper, we present SemMV, a system that reduces semantic query processing cost by reusing prior results through materialized views. Specifically, SemMV comprises four components to address the aforementioned challenges. First, the validator conservatively judges relations between predicates to reduce the risk of incorrect reuse. Second, the query rewriter translates these relations into execution plans that reuse stored decisions to eliminate redundant LLM calls. Third, the two-sided scan algorithm reduces LLM calls on undecided rows, stopping when estimated precision and recall reach the specified target. Fourth, the maintenance manager proactively refreshes a view only when the expected savings from its reuse outweigh the refresh cost. Experiments on various real-world datasets and query workloads show that SemMV achieves a 57% reduction in total LLM calls and a 40% reduction in average query latency compared with re-executing every query, while keeping recall and precision against reference labels within 1% of the re-execution baseline.

cs.DB↗

Decoupling Logical Masks from GPU Execution for Dynamic Block-Sparse Attention

Attention computation makes inference expensive in video diffusion transformers (vDiTs), which generate videos through iterative denoising. Block-sparse attention (BSA) reduces this cost by computing only blocks selected by a logical mask, which specifies the attention interactions to compute. Existing BSA runtimes either fix one physical execution plan per block geometry, which limits adaptation to varying masks and graphics processing units (GPUs), or plan each mask at runtime, which adds preparation overhead to every request. Because masks change across requests, this per-mask planning must be repeated, so its cost can outweigh the execution-time savings. We present Tessera, a runtime for dynamic BSA that decouples logical masks from GPU execution through two-layer physical execution plans that preserve the specified attention interactions. First, its physical mapping layer retains, combines, or subdivides logical blocks into physical tiles suited to different mask shapes and GPU architectures. Second, its task organization layer groups and schedules tiles within GPU tasks to reuse data, expose parallelism, and overlap data movement with computation. Third, its plan selector chooses a plan for each request with low overhead, through either a plan table built from offline profiling or a calibrated cost model, which extends selection to masks outside the profiled distribution and to a new GPU with about 100 calibration requests. Implemented with specialized CUDA kernels for four NVIDIA GPU generations and evaluated on 2,312 real attention masks and two video diffusion models, Tessera achieves up to $2.88\times$ BSA request speedup over baseline systems in these models and speeds up their 50-step loop by $1.21$--$1.24\times$.

cs.AR↗

VLALagBench: Understanding When and Why VLA Inference Latency Matters

Vision-language-action (VLA) models offer a promising path toward general-purpose robot manipulation. While inference latency can affect task success in a constantly evolving physical world, the relationship between latency and task success rate remains poorly understood. In this paper, we introduce VLALagBench, a comprehensive benchmark for studying VLA inference latency sensitivity across task types, object speeds, execution modes (synchronous and asynchronous), and VLA policies. Using VLALagBench, we find that even a modest inference latency of 100 ms can nearly halve task success on moving targets, with sensitivity varying substantially across tasks and policies. These differences reflect task-specific requirements for precision and continuous motion. By overlapping inference with action execution, asynchronous execution can recover some of the lost success at the cost of more frequent inference requests. Building on these findings, we develop an empirical model that predicts task success from limited calibration data, achieving root-mean-square prediction errors of only 5.7-7.8% across various VLA policies. Given an inference system's latency and per-robot throughput, these predictions guide the selection of system-specific VLA algorithm configurations to maximize task success. We believe VLALagBench and these findings provide a solid foundation for future robotics algorithm-system co-design.

cs.RO↗

SPADE: An Input-Adaptive Sparse Attention Engine for Fast Video Diffusion Models Inference

Video diffusion transformers (vDiTs) generate high quality but pay quadratic self-attention cost, making inference prohibitive at video-token scales. The challenge is input-adaptive sparsity: selecting critical Q/K/V tokens with negligible overhead and executing them for end-to-end gains. We present SPADE, a training-free sparse-attention engine of three parts: (i) vDiT-SSR, a specification defining 3D blocking candidates and formalizing dynamic masks via Summarizer/Estimator expressions; (ii) runtime scheme generation using SICS and a head-wise policy; and (iii) an executor with low-overhead index search, flash block-sparse attention, and kernel grouping. Across Hunyuan-Video and Wan 2.1/2.2 for text-to-video and image-to-video generation, SPADE raises sparsity and speed while preserving quality, accelerating attention by 2.26x-3.40x and end-to-end inference by 1.49x-1.80x. Our code is open-sourced at https://github.com/6somehow/DAC-SPADE.

cs.CV↗