Spandan Garg
· 1 previous affiliation
- Microsoft (United States)Since 2020
- Researcher · Since 2020
Research Overview
Spandan Garg focuses on artificial intelligence for software engineering, specifically the evaluation and enhancement of large language models for complex coding tasks. His work explores how AI agents handle multi-file codebases and stateful reasoning over long horizons. Recently, his research addresses the benchmarking of coding agents, investigating the distinction between genuine problem-solving capabilities and memorization in state-of-the-art models.
Research Trajectory
Spandan Garg's research trajectory centers on the intersection of artificial intelligence and software engineering, with a particular emphasis on how large language models (LLMs) and AI agents interact with complex codebases. A major theme in his recent work is the rigorous evaluation of these models to understand their practical utility and limitations in real-world software development scenarios.
In 2025, Garg collaborated on the development of new evaluation frameworks designed to test the limits of AI coding agents. He contributed to RefactorBench: Evaluating Stateful Reasoning in Language Agents Through Code, which introduced a handcrafted benchmark of multi-file refactoring tasks. This work demonstrated that while human developers can navigate these tasks with high accuracy, AI agents frequently fail due to an inability to track their own prior actions. By introducing state-aware interfaces, the research showed substantial improvements in agent performance, contributing to the broader research direction of Active State Management for Long Horizon Agents.
Continuing the focus on rigorous evaluation, Garg also participated in research examining the validity of existing software engineering benchmarks. In The SWE-Bench Illusion: When State-of-the-Art LLMs Remember Instead of Reason, he and his collaborators investigated whether the impressive performance of recent LLMs on popular benchmarks reflects generalizable problem-solving skills or merely the memorization of learned artifacts. By introducing diagnostic tasks, this work highlighted the necessity of distinguishing between true reasoning capabilities and data contamination in the assessment of coding models.
Current Directions
The most recent papers in the evidence address the critical evaluation and improvement of AI agents for software engineering. Current work investigates the mechanisms by which language models process complex, multi-step coding tasks, focusing on the distinction between genuine reasoning and memorization in established benchmarks. Additionally, this research explores methods for improving agent architectures, particularly through state-aware interfaces that help models maintain context and track their own actions over extended, multi-file operations.
Profile updated
Loading new papers…
Loading research neighbors…
See something wrong? Report a mistake