AdaBool:基于自适应数据表示的稀疏布尔矩阵处理
AdaBool: Sparse Boolean Matrix Processing with Adaptive Data Representation
AI总结:
AdaBool是一种稀疏布尔矩阵乘法框架,通过自适应数据表示划分矩阵块并采用异构GPU执行模型,在生产与公开工作负载上性能较代表性基准提升超一个数量级。
摘要:
许多数据处理任务围绕着确定两组实体之间是否存在逻辑关系展开,这种模式可自然建模为稀疏布尔矩阵乘法(Sparse Boolean Matrix Multiplication, SpBMM)。在布尔语义下,矩阵表示无需存储数值,只需编码非零元素的位置,这使其非常适合数据压缩,以大幅降低内存访问开销。然而,关键挑战在于最有效的压缩方式高度依赖稀疏性分布:不同方法在不同稀疏度水平下表现最佳,而真实世界的矩阵往往在不同区域呈现出急剧变化的稀疏性。因此,将整个矩阵强制采用任何固定的单一表示方式,都会错失大量优化机会。我们提出AdaBool,这是一种SpBMM框架,旨在通过自适应数据表示协调这种矛盾。AdaBool将矩阵划分为细粒度元素块,并为每个块采用与其局部稀疏性最匹配的编码方式。在这种自适应编码的基础上,AdaBool引入了异构GPU执行模型,该模型按编码类型对块进行分组,并将其映射到匹配的处理路径,从而实现跨GPU资源的高效执行与调度。我们通过底层系统优化实现了AdaBool的端到端部署,在生产和公开工作负载上对其进行评估,结果显示其性能比代表性基准高出一个数量级以上。
英文摘要:
Many data processing tasks revolve around determining whether logical relationships exist between two sets of entities, a pattern that can be naturally modeled as Sparse Boolean Matrix Multiplication (SpBMM). Under Boolean semantics, matrix representations no longer need to store numerical values and instead focus on encoding the positions of non-zero elements, making it highly amenable to data compression for substantially lower memory access overhead. The key challenge, however, is that the most effective compression depends heavily on sparsity distribution: different methods perform best at different sparsity levels, while real-world matrices often contain sharply varying sparsity across regions. Consequently, forcing the entire matrix into any fixed, monolithic representation leaves considerable optimization opportunities untapped. We present AdaBool, a SpBMM framework designed to reconcile this tension through an adaptive data representation. AdaBool partitions matrices into fine-grained element blocks and represents each block with the encoding best matched to its local sparsity. On top of this adaptive encoding, AdaBool introduces a heterogeneous GPU execution model that groups blocks by encoding type and maps them to matching processing paths, enabling efficient execution and scheduling across GPU resources. We implement AdaBool end to end with low-level system optimizations, evaluate it on both production and public workloads, and show that it outperforms representative baselines by over an order of magnitude.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。