Search arXiv⌕ Search

arXiv subjects

Jianxing Xu

Publications and source records attributed to Jianxing Xu.

2 recordsLinked to original sources

SiblingAttention: Efficient Prefill-Decode Attention Parallelism via Tensor-Vector Specialization

To improve GPU utilization, modern large language model (LLM) serving systems leverage hybrid batching and chunked prefill techniques to process prefill and decode requests together. While such batching naturally enables joint processing of prefill and decode tokens in the model's token-wise layers, attention requires dedicated techniques to exploit prefill-decode parallelism. POD-Attention enables concurrent prefill-decode attention execution within the same GPU streaming multiprocessor (SM), but contention between prefill and decode attention for tensor units (Tensor Cores) causes serialization while leaving vector units (CUDA Cores) underutilized. In this paper, we propose SiblingAttention, an attention kernel that enables effective intra-SM prefill-decode parallelism via tensor-vector specialization. SiblingAttention specializes warpgroups within each persistent CTA to execute either prefill or decode attention, mapping their major computations to the tensor and vector units, respectively, thus mitigating compute unit contention. Building on this, we introduce on-chip storage optimizations that reduce the memory footprints of individual warpgroups and asymmetrically allocate the register and shared memory resources, ensuring prefill-decode attention co-residency under hardware constraints. Furthermore, we develop adaptive work-tile scheduling that allows prefill warpgroups to switch roles and atomically acquire remaining decode work tiles, alleviating workload imbalance under decode-heavy scenarios. Evaluations on Hopper GPUs show that SiblingAttention achieves up to 2.07x mean speedup in prefill-decode attention over POD-Attention across diverse hybrid batch configurations, with near-optimal parallelism efficiency. When integrated into vLLM, SiblingAttention further improves end-to-end serving throughput by up to 15.4% and reduces P95 TTFT by up to 27.7% over POD-Attention.

cs.AR↗

QiMeng-Xpiler: Transcompiling Tensor Programs for Deep Learning Systems with a Neural-Symbolic Approach

Heterogeneous deep learning systems (DLS) such as GPUs and ASICs have been widely deployed in industrial data centers, which requires to develop multiple low-level tensor programs for different platforms. An attractive solution to relieve the programming burden is to transcompile the legacy code of one platform to others. However, current transcompilation techniques struggle with either tremendous manual efforts or functional incorrectness, rendering "Write Once, Run Anywhere" of tensor programs an open question. We propose a novel transcompiler, i.e., QiMeng-Xpiler, for automatically translating tensor programs across DLS via both large language models (LLMs) and symbolic program synthesis, i.e., neural-symbolic synthesis. The key insight is leveraging the powerful code generation ability of LLM to make costly search-based symbolic synthesis computationally tractable. Concretely, we propose multiple LLM-assisted compilation passes via pre-defined meta-prompts for program transformation. During each program transformation, efficient symbolic program synthesis is employed to repair incorrect code snippets with a limited scale. To attain high performance, we propose a hierarchical auto-tuning approach to systematically explore both the parameters and sequences of transformation passes. Experiments on 4 DLS with distinct programming interfaces, i.e., Intel DL Boost with VNNI, NVIDIA GPU with CUDA, AMD MI with HIP, and Cambricon MLU with BANG, demonstrate that QiMeng-Xpiler correctly translates different tensor programs at the accuracy of 95% on average, and the performance of translated programs achieves up to 2.0x over vendor-provided manually-optimized libraries. As a result, the programming productivity of DLS is improved by up to 96.0x via transcompiling legacy tensor programs.

cs.CL↗