MLIR-MRacle: Memory-Model-Aware Metamorphic Fuzzing of Concurrent MLIR
Aaron Gabayoyo, Aidan Dakhama, Ajitha Rajan
Key points
From the paper's conclusion- We present MLIR-MRacle, a memory-model-aware metamorphic fuzzer for concurrent MLIR programs.
Abstract
Multi-level compilers built on MLIR lower concurrent programs through many stages towards targets with potentially drastically different memory models, where an optimisation which appears reasonable, can silently change program behaviour. Testing these lowerings is hard: a concurrent program often has no single expected outcome, and existing MLIR fuzzers often assume determinism. We present MLIR-MRacle, a memory-model-aware metamorphic fuzzer for concurrent MLIR programs. MLIR-MRacle applies metamorphic relations gated by the target memory model, so that both the original and transformed programs remain well defined - executing both repeatedly, and comparing their outcome sets or distributions withone of two statistical oracles. A coverage guided campaign driver built on libafl is used to perform continuous fuzzing. MRs, memory models, oracles, and execution backends all provide extension points for future researchers and compiler engineers to build off this package. In a case study on Armv8 hardware, MLIR-MRacle ran over 145k trials across four configurations, reaching up to 93.6k compiler coverage edges, and found a bug in the OpenMP dialect verifier that has since been fixed upstream. Video: https://youtu.be/lKtGk0H97Ts?si=dWLUHl2CJ24ep6JY
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- RL–LLMfuzzer: reinforcement learning–guided dual–model differential fuzzing for compiler testingJournal of King Saud University - Computer and Information Sciences · 2026
- MLIRBench - A Benchmark and Dataset for Compiler and Hardware-Aware ReasoningarXiv · 2026
- MetaFORGE: A Meta-Learning Framework for Harness Optimization in Automated Code Generation for Parallel ComputingarXiv · 2026
- CONCUR: Benchmarking LLMs for Concurrent Code GenerationProceedings of the ACM on Software Engineering · 2026
- XLA from the Trenches: Correctness on TPU Workloads at ScalearXiv · 2026
- A Unifying Metatheorem on Weak-Memory RobustnessarXiv · 2026