Toufique Ahmed

Toufique Ahmed

IBM Research - Thomas J. Watson Research Center
2 previous affiliations
13Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Toufique Ahmed focuses on the intersection of Large Language Models (LLMs) and software engineering, with a specific emphasis on enhancing the reliability, calibration, and autonomy of AI agents in complex programming environments. His work spans automated program repair, code summarization, and the development of neuro-symbolic pipelines for test-driven development. Currently a Staff Research Scientist at IBM T.J. Watson Research Center, Ahmed’s research trajectory reflects a transition from using human-centric feedback for code repair to building autonomous systems capable of repository-level reasoning and execution-verified software maintenance.

Research Trajectory

The early phase of Ahmed’s research was centered on improving Automated Program Repair (APR) by leveraging human-generated artifacts. A primary contribution during this period was the development of Review4Repair: Code Review Aided Automatic Program Repairing, where he served as the senior researcher. This work addressed a significant limitation in traditional APR: the reliance on sparse test suites as the sole oracle for correctness. By training a sequence-to-sequence model on over 55,000 code review pairs, Ahmed demonstrated that natural language instructions within code reviews contain critical information about the nature of bugs and their expected solutions. This approach achieved a 20% improvement in Top-1 accuracy over existing learning-based techniques and extended the capabilities of automated repair to include stylistic and non-code errors that were previously unaddressed.

Following this focus on human-in-the-loop repair, Ahmed’s work shifted toward understanding the underlying representations and training objectives of code-specific language models. This period involved investigating how models internalize program semantics versus mere syntax. In Towards Understanding What Code Language Models Learned, the research explored whether models like GraphCodeBERT were "stochastic parrots" or if they captured robust semantic representations. By testing models on syntactically transformed but semantically identical code—such as reversing comparison operands or swapping control flow blocks—the work provided evidence that these models could resolve complex logical dilemmas even when the code's form was absent from their training data. This period also included participation in the development of generative pre-training methods, such as "naturalizing" source code to improve model performance.

As LLMs became more integrated into the software development lifecycle, Ahmed’s focus turned toward the reliability and calibration of these models. In Calibration and Correctness of Language Models for Code, he participated in an extensive study of the "confidence-accuracy" gap in coding assistants. The research found that LLMs are often poorly calibrated out of the box, frequently providing incorrect code with high confidence. The study proposed post-processing techniques, including Platt scaling and retrieval-augmented few-shot prompting, to align model confidence with actual performance, thereby making LLMs more dependable for industrial use.

Current Directions

Ahmed’s recent work addresses the "final boss" of automated software engineering: Repository Level Fault Localization for Autonomous Agents. Moving beyond isolated code snippets, his current research focuses on resolving bugs buried within large, multi-file repositories. This involves the development of agents capable of Coordinated Multi File Reasoning for Repository Level Code Repair, where a single high-level issue may require interdependent changes across multiple modules.

A central pillar of this current phase is the advancement of Test-Driven Development (TDD) via LLMs. Ahmed led the development of Otter: Generating Tests from Issues to Validate SWE Patches, a system that generates software tests directly from issue descriptions before a fix is even implemented. Otter utilizes a self-reflective action planner and rule-based code repair to navigate the challenge of testing code that is either missing or known to be faulty. This work is supported by the introduction of TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?, a high-quality benchmark designed to evaluate an agent's ability to perform "fail-to-pass" test generation.

To support these autonomous agents, Ahmed has also explored the optimization of the testing environment. The framework TestPrune addresses the computational overhead of running massive regression suites during the repair process. By selecting only the most relevant tests to provide as "hints" to the LLM, the framework reduces the size of test suites by over 1,000x while simultaneously improving bug resolution rates. This line of work emphasizes Closed-Loop Reasoning and Iterative Plan Refinement, where agents use execution feedback to refine their understanding of a bug and the effectiveness of a proposed patch.

Representative Work

The following papers represent key milestones in Ahmed's research, illustrating the evolution from guided program repair to autonomous, execution-verified software engineering agents.

Ahmed’s ongoing research continues to investigate the "reliability gap" in automated tools, specifically addressing Overfitting in Automated Program Repair. This work examines the tendency of models to generate patches that pass existing tests but fail to generalize to hidden requirements, a critical hurdle for the deployment of autonomous agents in production software environments.

Profile updated

See something wrong? Report a mistake