Skip to main content
QUICK REVIEW

[Paper Review] ParEVO: Synthesizing Code for Irregular Data: High-Performance Parallelism through Agentic Evolution

Liu Yang, Zeyu Nie|arXiv (Cornell University)|Mar 3, 2026
Parallel Computing and Optimization TechniquesComputer Science0 citations
TL;DR

ParEVO trains specialized LLMs and uses an Evolutionary Coding Agent to synthesize and optimize high-performance parallel code for irregular data, achieving large speedups and matching human baselines.

ABSTRACT

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.

Motivation & Objective

  • Motivate and address the challenge of parallelizing irregular data workloads (graphs, sparse structures) where static scheduling fails and sequential bias hampers LLMs.
  • Propose a data-centric synthesis pipeline using ParlayLib primitives to generate correct-by-construction parallel code.
  • Introduce an Evolutionary Coding Agent (ECA) that iteratively improves code using compiler, race detectors, and profilers as feedback.
  • Fine-tune multiple LLMs on a ParlayLib/Rust Primitive grounding to align generation with correct semantics of parallel primitives.
  • Demonstrate strong empirical gains compared to commercial models and expert human baselines across C++ and Rust benchmarks.

Proposed method

  • Create the Parlay-Instruct corpus via a Teacher-Student-Critic loop with strict compile-and-test verification.
  • Fine-tune DeepSeek, Qwen, and Gemini models on ParlayLib and Rust primitives using LoRA and a multi-stage alignment pipeline.
  • Formalize code generation as an evolutionary search over ASTs with a population of candidates and fitness based on compilation, tests, race detection, and performance.
  • Use a MAP-Elites selection to maintain diversity across code length, cyclomatic complexity, and synchronization frequency.
  • Employ external deterministic tools (compilers, dynamic race detectors) as the ground-truth judge rather than relying on LLMs for correctness assessment.
  • Evaluate using ParEval, PBBS/RPB baselines, and DMOJ held-out problems, measuring Build@1, Pass@1, and Speedup@1.

Experimental results

Research questions

  • RQ1Can fine-tuning LLMs on ParlayLib primitives produce compilable and semantically correct parallel code for irregular data?
  • RQ2Does an Evolutionary Coding Agent leveraging runtime feedback improve both correctness and performance beyond single-shot generation?
  • RQ3What is the performance trade-off (alignment tax) between stronger semantic grounding and peak runtime speedups?
  • RQ4How well does ParEVO generalize to Rust and C++ irregular parallel workloads beyond training data?
  • RQ5How do ParEVO-generated solutions compare to expert human-written baselines in complex irregular kernels?

Key findings

  • Gemini-2.5-Parlay achieves an average 106x speedup over the baseline on ParEval tasks, with a maximum of 1103x.
  • Fine-tuned models reach near-perfect Build@1 rates and substantially higher Pass@1 and Speedup@1 compared to base models.
  • ParEVO’s semantic alignment enables the model to correctly use ParlayLib primitives (e.g., sort_inplace with generic auto parameters for complex types) and improve runtime speedups (e.g., 17.5x in a complex sorting task).
  • The Evolutionary Coding Agent yields a 2.2x performance gain over single-shot generation in ablation studies with 30 iterations.
  • ParEVO matches or exceeds expert PBBS/RPB baselines across multiple problems (e.g., Maximal Independent Set, Maximal Matching) with notable speedups (up to ~4.1x in Rust kernels).
  • Strong scaling results show near-linear speedups up to 64 cores for several irregular kernels (e.g., FFT DFT scaling reaching ~40x).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.