Kechi Zhang
· 1 previous affiliation
- Peking UniversitySince 2017
- PhD student · Since 2021
- Undergrad student · 2017–2021
Research Overview
Kechi Zhang focuses on artificial intelligence for software engineering, code generation, and structural code representation. His early work explored heterogeneous graph representations and tool-augmented generation for programming tasks. More recently, he investigates reinforcement learning and alignment techniques to build autonomous software engineering agents capable of repository-level reasoning and end-to-end code development.
Research Trajectory
His early research investigated how to better capture the structural semantics of source code. In 2022, he proposed Learning to represent programs with heterogeneous graphs, which integrated abstract syntax trees and type information to overcome the limitations of homogeneous graph representations. Building on this foundation in code intelligence, he shifted toward enhancing the capabilities of large language models for code generation. He developed ToolCoder: Teach Code Generation Models to use API search tools, an approach that integrates external API search mechanisms to help models navigate unfamiliar or private libraries. Concurrently, he introduced Self-Edit: Fault-Aware Code Editor for Code Generation, a generate-and-edit framework that utilizes execution results from test cases to guide models in correcting their own programming errors.
By 2024, his focus expanded from standalone code snippets to complex software environments, contributing to the broader area of Repository-Level Code Intelligence for Large Language Models. He introduced CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges, an agent framework equipped with multiple programming tools to handle repository-scale dependencies and documentation. To support the massive context windows required for such tasks, he developed HiRoPE: Length Extrapolation for Code Models Using Hierarchical Position. This method leverages the inherent hierarchy of source code to extend context limits without additional training, advancing the research direction of Length Extrapolation in Transformer Positional Encodings and supporting the area of Repository Scale Context Constraints in Code Language Models.
In 2025, a significant portion of his work addressed the alignment and optimization of code models. He proposed Focused-DPO: Enhancing Code Generation Through Focused Preference Optimization on Error-Prone Points, a framework that heavily weights critical logic segments during Direct Preference Optimization to improve accuracy on competitive programming tasks. He further refined preference learning with CodeDPO: Aligning Code Models with Self Generated and Verified Source Code, which simultaneously optimizes for both the correctness and runtime efficiency of generated code. Extending alignment to autonomous workflows, he developed SEAlign: Alignment Training for Software Engineering Agent. This method uses Monte Carlo Tree Search principles to construct hierarchical trajectory trees, applying fine-grained optimization to reduce agent loops and improve issue resolution rates.
Parallel to his alignment research, he explored new paradigms for automated reasoning and software development. He contributed to Computational Thinking Reasoning in Large Language Models, which integrates a live Python execution environment into the model's reasoning loop. By training with reinforcement learning, this framework allows models to systematically decompose and verify their logic, contributing to the broader area of General Purpose Reasoning from Specialized Reinforcement Learning. He also collaborated on A Viable Paradigm of Software Automation: Iterative End-to-End Automated Software Development, which formalizes an iterative "Analyze-Plan-Implement-Deliver" loop for translating natural language intent into executable software.
His 2025 research also features fundamental architectural innovations designed to process hierarchical structures. Returning to code representation, he introduced Transformer-based code model with compressed hierarchy representation, which abstracts the influence of complete hierarchical structures into embeddings for code tokens. To address the limitations of standard Transformers in mastering formal grammars, he developed StackTrans: From Large Language Model to Large Pushdown Automata Model and the closely related Recursive Transformer: Boosting Reasoning Ability with State Stack. These models integrate differentiable, multi-head hidden state stacks between layers, significantly boosting structural reasoning and advancing work in Hybrid Architectures for Efficient Long Context Modeling. Additionally, he participated in the development of FAN: Fourier Analysis Networks, which embeds periodic trigonometric functions into neural layers to improve out-of-domain generalization.
The most recent papers in the evidence, published in 2026, focus on the evaluation and interpretability of advanced models. He collaborated on Detecting Data Contamination from Reinforcement Learning Post-training for Large Language Models, which addresses evaluation integrity and contributes to the research direction of Mitigating Entropy Collapse in Large Reasoning Models. He also contributed to Weights to Code: Extracting Interpretable Algorithms from the Discrete Transformer, an architecture designed to transition from continuous weights to discrete logic during training, enabling the extraction of human-readable algorithms from the model's internal mechanics.
Current Directions
Based on the most recent papers in the evidence, current work investigates the intersection of reinforcement learning, architectural design, and agentic workflows for software engineering. A major focus is the development of execution-guided reasoning frameworks that allow models to simulate and verify their own logic, moving beyond static generation toward dynamic, computational problem-solving. Additionally, ongoing research explores fundamental modifications to Transformer architectures—such as differentiable memory stacks and discrete weight transitions—to improve structural reasoning, handle massive context windows, and extract interpretable algorithms. Finally, the alignment of autonomous agents remains an active area, with efforts directed at optimizing multi-step decision-making and ensuring the reliability of models trained via reinforcement learning.
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