Veselin Raychev
4 previous affiliations
- INSAIT2024–2026
- Researcher · 2024–2026
- Snyk Limited2020–2023
- Head of AI · 2020–2023
- DeepCode AG2016–2020
- CTO · 2016–2020
- ETH Zurich2012–2016
- PhD student · 2012–2016
Research Overview
Veselin Raychev focuses on probabilistic models of source code, automated program repair, and the evaluation of large language models in software engineering. His early work established foundational methods for predicting program properties from large codebases using structured machine learning. More recently, he investigates the capabilities and limitations of AI coding agents, emphasizing their functional correctness, security, and architectural reasoning in complex repositories.
Research Trajectory
The trajectory begins with foundational work in the probabilistic modeling of source code. In 2016, with collaborators, he developed a generative model called probabilistic higher order grammar (PHOG) in PHOG: Probabilistic Model for Code. This work generalized probabilistic context-free grammars by allowing productions to be conditioned on rich program contexts, advancing the research direction of Structural Awareness in Neural Code Intelligence and addressing challenges in the broader area of Expressivity Constraints in Grammar-Constrained Program Synthesis.
Building on these probabilistic foundations, he introduced a scalable approach for inferring program properties from massive codebases in Predicting program properties from 'big code'. By transforming programs into representations suitable for structured prediction, this research leveraged conditional random fields to jointly predict properties of unseen programs. This methodology enabled the development of the JSNICE prediction engine, demonstrating how machine learning could be practically applied to large-scale software analysis.
By 2021, his focus expanded to automated code remediation and the application of deep learning to software engineering tasks. He participated in the development of a hybrid system for identifying and correcting naming idioms in source code, detailed in Learning to find naming issues with big code and small supervision. This method combined the unsupervised mining of large codebases with supervised classification to filter false positives, achieving high precision on real-world repositories. In parallel, he contributed to TFix: Learning to Fix Coding Errors with a Text-to-Text Transformer, a system that framed code repair as a text-to-text translation problem. By fine-tuning the T5 Transformer on a large dataset of GitHub commits, TFix successfully automated the resolution of numerous JavaScript errors. This work significantly advanced several research areas, including Neural Machine Translation for Automated Code Transformation, Natural Language Pretraining for Software Engineering, and Mapping Natural Language to Source Code Semantics.
As large language models became central to artificial intelligence, his research adapted to address their fundamental training challenges. In Mitigating Catastrophic Forgetting in Language Transfer via Model Merging, he and his co-authors tackled the problem of capability degradation when adapting open-weight models to new languages. They proposed Branch-and-Merge (BaM), an iterative merging technique that fine-tunes models on data subsets to produce high-quality weight updates while preserving the base model's original competencies.
In recent years, his work has increasingly scrutinized the practical deployment and evaluation of AI coding agents. He contributed to the creation of a rigorous evaluation framework in BaxBench: Can LLMs Generate Correct and Secure Backends?. Moving beyond isolated code snippets, this benchmark assessed whether advanced reasoning models could generate complete, production-ready backend applications. The findings highlighted critical vulnerabilities in AI-generated code, contributing to the research direction of The Security Blind Spot of Functionally Correct Code.
This critical evaluation of AI agents continued into 2026 across multiple dimensions of software engineering. He participated in the development of the CodeTaste benchmark, presented in CodeTaste: Can LLMs Generate Human-Level Code Refactorings?, which revealed a significant "discovery gap" where agents fail to identify necessary architectural improvements without explicit blueprints. Further investigating agent behavior, he co-authored Coding Agents Don't Know When to Act, which introduced the FIXEDBENCH dataset to measure "action bias." The study demonstrated that state-of-the-art models frequently make unnecessary edits to already-resolved codebases, inadvertently introducing technical debt. Finally, he contributed to an empirical assessment of repository-level context mechanisms in Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?. This research found that providing context files to coding agents did not significantly improve success rates and often increased computational costs, challenging prevailing assumptions about context management in automated coding workflows.
Current Directions
Recent work investigates the rigorous evaluation and behavioral analysis of large language models deployed as autonomous coding agents. The most recent papers in the evidence address the gap between generating isolated, functionally correct code snippets and engineering secure, production-ready software systems. This includes developing benchmarks to test multi-file code refactoring capabilities and assessing the security vulnerabilities inherent in AI-generated backend applications. Additionally, current research explores the operational behaviors of coding agents, specifically their tendency toward "action bias"—making unnecessary modifications to stable codebases—and the empirical effectiveness of repository-level context files in guiding agent actions.
Profile updated
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