Kush Jain
1 previous affiliation
- Carnegie Mellon University2021–2025
- PhD student · 2021–2025
Research Overview
Kush Jain focuses on the intersection of machine learning and software engineering, with a primary emphasis on automated software testing, program analysis, and the rigorous evaluation of large language models (LLMs) for code generation. His work addresses the challenges of ensuring software reliability by developing advanced mutation testing techniques, creating high-fidelity benchmarks for generative AI, and designing agentic systems for autonomous test suite generation. Currently a Research Scientist at Mistral AI, Jain’s research trajectory has evolved from applying formal methods to software verification toward leveraging neural models to automate and validate complex engineering tasks.
Research Trajectory
The early phase of Jain’s research was characterized by an investigation into the application of mutation testing within the domain of formal verification. During his time at UT Austin, he explored how traditional software testing metrics could be adapted to evaluate the completeness of formal specifications. This work resulted in the development of mCoq: mutation analysis for Coq verification projects, which introduced a framework for mutating proof definitions to detect incomplete or vacuous specifications in the Coq proof assistant. This period established a foundational interest in using mutation analysis—a technique that measures test suite effectiveness by injecting synthetic faults—as a proxy for software quality and specification rigor.
As his work progressed at Carnegie Mellon University, Jain shifted toward optimizing the efficiency and practical utility of testing frameworks. He participated in research regarding parallel execution models for bounded exhaustive testing, which aimed to scale rigorous testing methods to larger state spaces. He also contributed to empirical studies of industrial-scale software, such as identifying gaps in the fuzzing efforts of the Bitcoin Core project. These efforts highlighted a recurring problem in software engineering: the reliance on structural metrics like code coverage, which often fail to capture the actual bug-detecting capabilities of a test suite.
This observation led to a significant research thread focused on The Disconnect Between Structural Coverage and Bug Detection. Jain’s work sought to bridge this gap by making mutation testing—historically a computationally expensive process—more accessible through machine learning. In Contextual Predictive Mutation Testing, he explored using the contextual information of code to predict the outcomes of mutation analysis, thereby reducing the need for exhaustive execution. This line of inquiry culminated in an analytical framework for understanding Mind the Gap: The Difference Between Coverage and Mutation Score Can Guide Testing Efforts, which provided developers with actionable insights into where their testing efforts were most likely to fail in detecting real-world defects.
With the emergence of large language models as central tools in the software development lifecycle, Jain’s focus transitioned toward Mutation Analysis for Robust AI Software Engineering. He began investigating how LLMs could be used not just to write code, but to generate the tests required to validate that code. This shift required a fundamental re-evaluation of how AI-generated code is benchmarked. He identified that existing benchmarks often relied on "toy" problems that did not reflect the complexity of real-world software repositories, leading to a "shallow correctness" problem where models pass simple tests without demonstrating true reasoning or robustness.
Current Directions
Jain’s current research is centered on the Shifting from Static Benchmarks to Dynamic Evaluation, specifically within the context of software testing. A major contribution in this area is the development of TestGenEval, a benchmark designed to move beyond isolated code snippets. By utilizing real-world Python projects, this work challenges models to perform test completion and generation tasks that require an understanding of cross-file dependencies and complex execution logic. This research has revealed significant limitations in the ability of current state-of-the-art models to reason about Neural Program Execution and Mental State Tracking, as even high-performing models struggle to achieve substantial code coverage on complex, multi-file projects.
To address these limitations, Jain has moved toward Multi-turn Iterative Code Generation and Refinement. His recent work on agentic systems, such as TestForge, explores how feedback loops—incorporating execution results and error logs—can guide LLMs to iteratively improve the quality of generated test suites. This approach aims to combine the creative generative capabilities of LLMs with the rigorous "truth" provided by Language Agnostic Representations for Cross Language Portability.
In his current role at Mistral AI, Jain participates in the development of large-scale reasoning and multimodal models. While his contributions to projects like the Magistral reasoning models and the Voxtral audio-chat family involve broad collaborative efforts in reinforcement learning and multimodal integration, they reflect a continued commitment to building AI systems that can perform verifiable tasks in complex, real-world environments.
Representative Work
mCoq: mutation analysis for Coq verification projects In this work, Jain introduced the first mutation analysis tool for the Coq proof assistant. The research addressed a critical gap in formal verification: the difficulty of determining whether a set of proved theorems actually covers the intended properties of a system. By defining a set of mutation operators specific to the Gallina specification language and the Coq tactic language, the tool allows developers to identify "vacuous" proofs—theorems that are technically correct but fail to test the underlying logic because the specification is incomplete. This work demonstrated that mutation testing principles could be successfully ported from imperative programming to the domain of formal logic.
Contextual Predictive Mutation Testing Mutation testing is notoriously resource-intensive, as it requires executing a test suite for every generated mutant. Jain proposed a machine learning-based approach to mitigate this cost by predicting whether a mutant will be "killed" (detected) by a test suite without actually running the code. Unlike previous predictive models that relied on simple code features, this work leveraged the contextual representation of code—capturing the relationship between the mutated statement and the surrounding program logic. The results showed that incorporating context significantly improves prediction accuracy, making mutation analysis more viable for continuous integration pipelines.
Mind the Gap: The Difference Between Coverage and Mutation Score Can Guide Testing Efforts This paper investigates the empirical relationship between code coverage and mutation scores. While coverage is a standard industry metric, Jain argues that it is a "happy path" metric that does not guarantee bug detection. By analyzing the "gap" between these two metrics across various open-source projects, the research identifies specific code patterns and testing behaviors where high coverage masks poor fault detection. The work provides a methodology for developers to use this gap as a diagnostic tool, directing their manual testing efforts toward areas of the codebase that are executed but not rigorously validated.
TestGenEval: A Real World Unit Test Generation and Test Completion Benchmark Addressing the limitations of existing LLM benchmarks like HumanEval, Jain developed TestGenEval to evaluate models on real-world software engineering tasks. The benchmark consists of over 1,200 file pairs from popular Python repositories, requiring models to generate tests for complex classes and functions. The evaluation uses rigorous metrics, including statement coverage and mutation scores, to assess the functional correctness of the generated tests. The findings highlighted a significant "reasoning gap," showing that while LLMs are proficient at writing syntactically correct code, they often fail to generate tests that cover edge cases or complex execution paths in large-scale systems.
TestForge: Feedback-Driven, Agentic Test Suite Generation TestForge represents a shift toward agentic workflows for software testing. Jain developed a system where an LLM acts as an agent that not only generates tests but also executes them, observes the failures, and reads the resulting stack traces to refine its output. This iterative process allows the agent to overcome common LLM failures, such as hallucinations of API calls or incorrect assumptions about object states. By grounding the generative process in the reality of the execution environment, TestForge produces test suites that are more robust and achieve higher coverage than those produced by traditional one-shot generation methods.
Improving Examples in Web API Specifications using Iterated-Calls In-Context Learning This research focuses on the automated documentation and testing of web APIs. Many API specifications lack high-quality examples, which are essential for both human understanding and automated testing tools. Jain introduced "Iterated-Calls In-Context Learning" (IcIcl), a technique that uses LLMs to generate diverse and valid examples for API parameters. By iteratively prompting the model and using previous outputs to encourage diversity, the method overcomes the tendency of standard in-context learning to produce repetitive or "safe" examples. This work demonstrates the utility of LLMs in maintaining the peripheral artifacts of software development that are often neglected by developers.
Profile updated
| Title | Venue | Year |
|---|---|---|
| Timestral | arXiv | 2026 |
| Ministral 3 | arXiv | 2026 |
| Voxtral TTS | arXiv | 2026 |
| Shieldstral | arXiv | 2026 |
| Voxtral Realtime | Open | 2026 |
| Robostral Navigate | arXiv | 2026 |
| Improving Examples in Web API Specifications using Iterated-Calls In-Context Learning | Ast | 2025 |
| TestForge: Feedback-Driven, Agentic Test Suite Generation | arXiv | 2025 |
| Magistral | arXiv | 2025 |
| Voxtral | arXiv | 2025 |
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake