Research Overview

Software Testing

During my master’s research in parallel computing, I often ran into bugs such as data races that produced wrong results or slowed programs down. At our first meeting, Ajitha Rajan encouraged me to study how to test these programs. I’m grateful for the full PhD scholarship she offered me. I began with GPU kernels and later worked on smart contracts and mobile GUIs. In my early years at ByteDance, my team and I developed Fastbot into a GUI testing tool used across products including TikTok and Douyin. Its open-source release also drew interest from developers. During those years, I founded ByteDance’s first Software Engineering Lab.

GPU Kernels

I define coverage and mutation criteria for measuring GPU-kernel test effectiveness , investigate the distinctive correctness challenges of GPU programs , and generate OpenCL tests by combining fuzzing with constraint solving .

Smart Contracts

I build reusable Solidity instrumentation infrastructure and combine static and dynamic analyses to detect smart-contract vulnerabilities . I then empirically compare competing testing techniques to understand their relative strengths and limitations .

Mobile GUI

I develop change-aware Android GUI testing guided by code changes and deep reinforcement learning . I also study human-like interaction for large commercial apps , reusable model-based exploration whose open-source implementation has earned more than 1k GitHub stars , and defects triggered by system settings . For visual quality, I use computer vision to detect game-text glitches and graph neural networks to compare mobile layouts .

Concurrent Programs

I expose Go concurrency defects through directional, synchronization-aware interleaving exploration and automate test oracles for determining whether concurrency-bug executions are correct .

Developer & Service Testing

I bring automated testing into everyday development through practical unit-test generation for Go and industrial infrastructure that integrates server-side test generation, execution, and fault localization .

LLMs for Software Engineering

While building developer tools at ByteDance, we wondered how far we could shift testing left. Could automation help developers while they were still writing code? In 2022 we began exploring that idea with Codeverse, which grew into TRAE IDE and has served more than a million developers worldwide. I initially led the training and deployment of code question-answering models and built evaluations for question answering and code completion. I later helped shape TRAE’s research programme as a whole. Our lab also became known in the software engineering community for its work on coding agents and their evaluation.

Evaluation & Empirical Study

  • Code Completion

    I evaluate code-completion prompts through simulated developer behaviour and build repository-level benchmarks from real development contexts . I study security vulnerabilities in generated code , agent-based evaluation of complex code generation , and end-to-end CLI software generation . I also synthesize broader evidence across code foundation models and applications .

  • Question Answering

    I evaluate repository understanding with multilingual question-answering benchmarks and questions that require repository-wide reasoning . I extend this evaluation to fine-grained issue-solving capabilities , context-rich code review , and documentation-driven downstream tasks , while situating these results within the broader code-intelligence landscape .

  • Agents

    I benchmark fine-grained issue solving and systematically assess how far automated bug-fixing agents have progressed . I study prompting across the full development lifecycle in work selected for an oral presentation , efficient turn-control strategies , agent-generated tests , and end-to-end software generation . For long-horizon evaluation, I propose comparing full-task success with matched short-stage performance through the horizon residual . I also evaluate agents on real terminal workflows and study LLM-guided testing of terminal user interfaces against strong random baselines . With TUINaut, I compare the effort humans and agents spend interpreting and operating these interfaces . Beyond these settings, I investigate repository setup and learning from failure and practitioners’ real-world agent-building processes , connecting these findings to the broader evolution of code agents .

Application

  • Code Completion

    I improve code completion by selecting repository-level context and incorporating developers’ editing history .

  • Agents

    I build end-to-end bug-fixing agents and agents that reproduce bugs from issue descriptions . Trae Agent, whose open-source implementation has earned more than 10k GitHub stars, improves issue resolution through test-time scaling and ensemble reasoning . Repo2Run, selected as a NeurIPS Spotlight, supports agents with executable repository environments . GraphLocator, recipient of an ACM SIGSOFT Distinguished Paper Award, improves causal issue localization , while trajectory reduction lowers agent inference cost . For long-horizon agents, Ledger turns interaction history into explicit execution state to prevent stale and redundant actions . DBCooker specializes coding-agent workflows for database-kernel function synthesis through dependency inspection, interactive planning, and progressive debugging .

Model Training

  • Code Completion

    I train instruction-aware code models that align fill-in-the-middle completion with developers’ natural-language intent .

  • Question Answering

    I generate privacy-preserving, developer-like interaction data for training repository-level code question-answering systems .

  • Agents

    I train software agents with tool-interactive repository search , subtask-oriented supervised and reinforcement learning , and learned patch supervision .