ChatPaper.aiChatPaper

ParEVO:面向不规则数据的代码合成:基于智能体进化的高性能并行化方案

ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution

March 3, 2026
作者: Liu Yang, Zeyu Nie, Andrew Liu, Felix Zou, Deniz Altinbüken, Amir Yazdanbakhsh, Quanquan C. Liu
cs.AI

摘要

从串行计算到并行计算的转型对现代高性能应用至关重要,但并发编程的陡峭学习曲线阻碍了这一进程。这一挑战在非规则数据结构(如稀疏图、不平衡树和非均匀网格)中尤为突出——静态调度在此类场景下失效,数据依赖关系也难以预测。当前的大语言模型在处理这类任务时往往表现不佳,生成的代码常存在隐蔽的竞态条件、死锁及次优扩展性问题。 我们提出的ParEVO框架填补了这一空白,该框架专为合成非规则数据的高性能并行算法而设计。我们的贡献包括:(1)Parlay-Instruct语料库:通过"批判-优化"流程合成的13,820项任务数据集,明确筛选出能有效利用工作-跨度并行原语且经验证高效的算法;(2)专精优化的DeepSeek、Qwen和Gemini模型:通过微调使概率生成与ParlayLib库的严谨语义对齐;(3)进化编码代理:利用编译器、动态竞态检测器和性能分析器的反馈迭代修复代码,提升"最后一公里"的正确性。 在ParEval基准测试中,ParEVO实现了平均106倍(最高1103倍)的整体加速比,在复杂非规则图问题上更获得稳健的13.6倍加速,显著优于当前最先进的商业模型。此外,我们的进化方法在特定高度非规则内核上实现了最高4.1倍的加速,与顶尖人类专家基线持平。源代码与数据集详见https://github.com/WildAlg/ParEVO。
English
The transition from sequential to parallel computing is essential for modern high-performance applications but is hindered by the steep learning curve of concurrent programming. This challenge is magnified for irregular data structures (such as sparse graphs, unbalanced trees, and non-uniform meshes) where static scheduling fails and data dependencies are unpredictable. Current Large Language Models (LLMs) often fail catastrophically on these tasks, generating code plagued by subtle race conditions, deadlocks, and sub-optimal scaling. We bridge this gap with ParEVO, a framework designed to synthesize high-performance parallel algorithms for irregular data. Our contributions include: (1) The Parlay-Instruct Corpus, a curated dataset of 13,820 tasks synthesized via a "Critic-Refine" pipeline that explicitly filters for empirically performant algorithms that effectively utilize Work-Span parallel primitives; (2) specialized DeepSeek, Qwen, and Gemini models fine-tuned to align probabilistic generation with the rigorous semantics of the ParlayLib library; and (3) an Evolutionary Coding Agent (ECA) that improves the "last mile" of correctness by iteratively repairing code using feedback from compilers, dynamic race detectors, and performance profilers. On the ParEval benchmark, ParEVO achieves an average 106x speedup (with a maximum of 1103x) across the suite, and a robust 13.6x speedup specifically on complex irregular graph problems, outperforming state-of-the-art commercial models. Furthermore, our evolutionary approach matches state-of-the-art expert human baselines, achieving up to a 4.1x speedup on specific highly-irregular kernels. Source code and datasets are available at https://github.com/WildAlg/ParEVO.
PDF32May 8, 2026