跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 分布式、并行与集群计算

arXiv:2610.13474 (cs)
[提交于 2026年10月9日 (v1),最后修订于 2026年11月25日 (此版本, v2)]

标题:CompileMask: Bridging the Gap Between Expressiveness and Efficiency in Attention Masking

作者:Hongzheng Li, Jiacheng Wan, Zhaolong Xing, Zhida Jiang, Yuanhang Yang, Junhua Shu, Jiaxing Wang, Xupeng Miao, Yingxia Shao, Zhen Chen, Ke Zhang
查看论文《CompileMask: Bridging the Gap Between Expressiveness and Efficiency in Attention Masking》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Modern attention workloads require diverse masks whose shapes depend on per-sequence parameters, yet efficient attention kernels natively support only a small set of mask patterns. Existing methods for custom masks face an expressiveness-efficiency trade-off. Predicate-based methods are expressive but evaluate a user-defined predicate on every element at substantial cost, whereas interval-based methods execute efficiently but lack the expressiveness for complex masks. We present CompileMask, which bridges this gap by compiling the mask predicate users write into an Execution Descriptor that the attention kernel executes efficiently. We design a compiler that automatically lowers a mask predicate into an intermediate representation and generates a mask-specific preprocessing kernel, which builds the descriptor for each batch with a few expressions per row rather than by evaluating the predicate on every element. We further propose Tile-local Records, a compact representation of row visibility within each tile that lets the attention kernel check every element with a few integer operations, so that masking stays efficient even for complex masks. Experiments show that CompileMask achieves up to $3.3\times$ speedup over FlexAttention and up to $1.2\times$ over FlashMask in single-operator benchmarks, while supporting complex masks that FlashMask cannot express.
主题: 分布式、并行与集群计算 (cs.DC)
引用方式: arXiv:2610.13474 [cs.DC]
  (或者 arXiv:2610.13474v2 [cs.DC] 对于此版本)
  https://doi.org/10.48550/arXiv.2610.13474

提交历史

来自:Hongzheng Li
[v1] 2026年10月9日 星期五 12:10:13 UTC (378 KB)
[v2] 2026年11月25日 星期三 09:44:45 UTC (555 KB)
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.DC
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-11
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站