Niels Mündler

Niels Mündler

ETH Zurich
2 previous affiliations
18Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Niels Mündler focuses on the safety, reliability, and formal verification of code generation systems. His early work explored interactive theorem proving and the detection of logical inconsistencies in language models. Currently, his research emphasizes rigorous repository-level evaluation, constrained decoding techniques, and the security implications of deploying large language models for complex software engineering tasks.

Research Trajectory

Mündler’s early research bridges formal methods and the reliability of large language models. He initially focused on interactive theorem proving, detailing the formal verification of an imperative data structure in A Verified Implementation of B+-Trees in Isabelle/HOL (2022). Transitioning to the evaluation of generative models, he investigated logical failures in reasoning chains. In Self-contradictory Hallucinations of Large Language Models: Evaluation, Detection and Mitigation (2024), he introduced methods to detect and mitigate internal inconsistencies within model responses by leveraging the models' own reasoning capabilities rather than relying on external knowledge bases.

Building on this focus on reliability, his work expanded into automated software testing. He explored the capacity of LLM-based agents to formalize user issues into executable tests in Code Agents are State of The Art Software Testers (2024). This direction culminated in SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents, a benchmark demonstrating that AI agents can effectively translate natural language bug reports into reproduction tests, thereby significantly improving the precision of automated software engineering.

In 2025, Mündler addressed the syntactic and functional limitations of LLM code generation. To bridge generative models and formal program analysis, he developed techniques for constrained decoding. Type-Constrained Code Generation with Language Models introduced a method utilizing type systems to guide LLMs, reducing compilation errors and improving functional correctness across various tasks.

Concurrently, he investigated the area of Repository Level Evaluation of Large Language Models for Code. With collaborators, he developed BaxBench: Can LLMs Generate Correct and Secure Backends?, which evaluates the ability of models to generate production-ready backend applications. This work highlighted a critical vulnerability, contributing to the research direction The Security Blind Spot of Functionally Correct Code by revealing that a large portion of functionally correct programs generated by advanced models still contain severe security flaws. He further explored adversarial software perturbations in Black-Box Adversarial Attacks on LLM-Based Code Completion, demonstrating how optimized comments can stealthily increase insecure code suggestions, advancing work in the broader area of Informed Initialization for Efficient Adversarial Attacks.

Mündler’s most recent work scales these security and evaluation frameworks while extending constrained decoding to new architectures. He expanded his prior work on syntactic constraints in Constrained Decoding of Diffusion LLMs with Context-Free Grammars (2026), presenting a method to enforce context-free grammar constraints on diffusion models for multi-region infilling tasks. To support ongoing security validation, he participated in developing AutoBaxBuilder: Bootstrapping Code Security Benchmarking, an automated pipeline that generates complex code security benchmarks and exploits, further expanding his focus on the security blind spots of functionally correct code.

His 2026 research also tackles higher-level software architecture challenges. CodeTaste: Can LLMs Generate Human-Level Code Refactorings? introduced a benchmark for multi-file code refactoring, revealing that while agents can follow explicit blueprints, they struggle to independently identify structural technical debt. Finally, he examined the practical utility of technical documentation in Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?, finding that current practices for providing repository-level context files often fail to improve agent success rates.

Current Directions

The most recent papers in the evidence address the rigorous evaluation of AI coding agents and the enforcement of structural constraints on generative models. Recent work investigates how to scale security benchmarking through automated, LLM-powered pipelines that generate functional tests and exploits. Additionally, Mündler and his collaborators are exploring the limitations of current code agents in complex, repository-level tasks, such as identifying necessary multi-file refactorings and effectively utilizing repository context files. He also continues to advance constrained decoding techniques, adapting formal language intersection methods to ensure the syntactic correctness of outputs from diffusion-based language models.

Profile updated

See something wrong? Report a mistake