Pith

open record

sign in

arxiv: 2501.12862 · v1 · pith:Z4K5VRKE · submitted 2025-01-22 · cs.SE · cs.AI· cs.LG

Mutation-Guided LLM-based Test Generation at Meta

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:Z4K5VRKErecord.jsonopen to challenge →

classification cs.SE cs.AIcs.LG
keywords faultsllm-basedmetamutantsspecifictesttestscode
0
0 comments X
read the original abstract

This paper describes Meta's ACH system for mutation-guided LLM-based test generation. ACH generates relatively few mutants (aka simulated faults), compared to traditional mutation testing. Instead, it focuses on generating currently undetected faults that are specific to an issue of concern. From these currently uncaught faults, ACH generates tests that can catch them, thereby `killing' the mutants and consequently hardening the platform against regressions. We use privacy concerns to illustrate our approach, but ACH can harden code against {\em any} type of regression. In total, ACH was applied to 10,795 Android Kotlin classes in 7 software platforms deployed by Meta, from which it generated 9,095 mutants and 571 privacy-hardening test cases. ACH also deploys an LLM-based equivalent mutant detection agent that achieves a precision of 0.79 and a recall of 0.47 (rising to 0.95 and 0.96 with simple pre-processing). ACH was used by Messenger and WhatsApp test-a-thons where engineers accepted 73% of its tests, judging 36% to privacy relevant. We conclude that ACH hardens code against specific concerns and that, even when its tests do not directly tackle the specific concern, engineers find them useful for their other benefits.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Improving LLM-Driven Test Generation by Learning from Mocking Information

    cs.SE 2026-04 unverdicted novelty 6.0

    MOCKMILL uses mocking information from existing tests to guide LLMs in producing unit tests that achieve higher code coverage and kill more mutants than prior tests or baseline LLM approaches on 10 Java classes.

  2. Improving Dynamic Specification Inference with LLM-Generated Counterexamples

    cs.SE 2026-04 unverdicted novelty 6.0

    LLMs produce counterexamples that remove up to 11.68% of invalid assertions from dynamic inference and raise precision by up to 7% on benchmarks without hurting recall.

  3. Mutation-Guided Unit Test Generation with a Large Language Model

    cs.SE 2025-06 conditional novelty 6.0

    MUTGEN incorporates mutation feedback into LLM prompts and uses iteration to generate unit tests that achieve higher mutation scores than EvoSuite or vanilla LLM prompting on 204 benchmark subjects.

  4. A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standards

    cs.SE 2025-05 unverdicted novelty 3.0

    Survey mapping LLM applications in software quality assurance to established standards including ISO/IEC 12207, ISO 25010, CMMI, and TMM, with case studies, challenges, and future directions.