Bootstrapping Fuzzers for Compilers of Low-Resource Language Dialects Using Language Models

Sairam Vaidya, Marcel Böhme, Loris D'Antoni
12/5/2025
1 citation
cs.SEcs.LGcs.PL

No official code found. Best implementation: large-loris-models/germinator (7 stars, Python, last commit 2026-04-24).

Abstract

Modern extensible compiler frameworks-such as MLIR-enable rapid creation of domain-specific language dialects. This flexibility, however, makes correctness harder to ensure as the same extensibility that accelerates development also complicates maintaining the testing infrastructure.

Show full abstract

Extensible languages require automated test generation that is both dialect-agnostic (works across dialects without manual adaptation) and dialect-effective (targets dialect-specific features to find bugs). Existing approaches typically sacrifice one of these goals by either requiring manually constructed seed corpora for each dialect, or by failing to be effective. We present a dialect-agnostic and dialect-effective grammar-based and coverage-guided fuzzing approach for extensible compilers that combines two key insights from existing work: (i) the grammars of dialects, which already encode the structural and type constraints, can often be extracted automatically from the dialect specification; and (ii) these grammars can be used in combination with pre-trained large language models to automatically generate representative and diverse seed inputs from the full dialect space without requiring any manual input or training data. These seeds can then be used to bootstrap coverage-guided fuzzers. We built this approach into a tool, Germinator. When evaluated on six MLIR projects spanning 91 dialects, Germinator generated seeds improve line coverage by 10-120% over grammar-based baselines. We compare against grammar-based baselines because they are the only class of existing automatic seed generators that can be applied uniformly across MLIR's heterogeneous dialect ecosystem. Germinator discovers 88 previously unknown bugs (40 confirmed), including 23 in dialects with no prior automated test generators, demonstrating effective and controllable testing of low-resource dialects at scale.

View on arXivView PDF

Code Implementations(1)

Bootstrapping Fuzzers for Compilers of Low-Resource Language Dialects Using Language Models

70Python, ANTLRDec 5, 20257 months ago

Similar Papers

Cite this paper

@article{vaidya2025bootstrapping,
  title  = {Bootstrapping Fuzzers for Compilers of Low-Resource Language Dialects Using Language Models},
  author = {Sairam Vaidya and Marcel Böhme and Loris D'Antoni},
  year   = {2025},
  eprint = {2512.05887},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.05887v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.05887.svg)](https://codeofpaper.com/paper/2512.05887)

Discussion