ParEVO:为不规则数据合成代码:通过智能进化实现高性能并行
ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution
AI总结:
针对不规则数据并行计算难题,ParEVO框架通过构建数据集、微调模型及进化编码代理,合成高性能并行算法,在基准测试中加速显著,优于商业模型及专家基线。
摘要:
从顺序计算到并行计算的转变对现代高性能应用至关重要,但并发编程学习曲线陡峭,不规则数据结构更具挑战。当前大语言模型在此类任务常失败。我们用ParEVO弥合差距,贡献包括数据集、微调模型和进化编码代理,在基准测试中加速显著,优于现有模型。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。