cs.LGOct 28, 2026

Causal Attention on CPU: A Cache-Aware and Load-Balanced Scheduling Kernel for Prefill

Authors: Kwun Fung Lau, Frost Mitchell, Kanya Mo, Emani Ashok

Organizations: Intel Corp., USA.

Abstract

Agentic AI drives significant productivity gains across diverse domains, but concurrent long-context prefills from multiple agents can saturate GPU compute resources. Although CPUs offer a viable alternative, existing CPU attention kernels fall short in adapting to multi-tier cache hierarchies and lack effective thread scheduling. To address this, we introduce CACPU, a high-performance attention kernel featuring tiered cache blocking and an in-kernel task dispatching mechanism designed for causal full-sequence prefilling. CACPU achieves up to a 2.01x speedup over PyTorch SDPA, FlexAttention, and SGLang attention kernels. Integrated into SGLang, it reduces Time to First Token (TTFT) of Llama-3.1-8B by up to 1.74x while preserving model accuracy.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. AttnFuse: A Composable DSL for Compiling Attentions to Fused GPU Kernels

    Sep 11, 2026Varun Kumar Dasoju, Tian ZhaoEfficient AttentionGPU Kernel Optimization

  2. CompactAttention: Accelerating Chunked Prefill with Block-Union KV Selection

    May 16, 2026Jiwon Song, Dongwon Jo, Beomseok Kang +1Self-AttentionKV-Cache Management