Gehao Zhang
· 2 previous affiliations
- University of Massachusetts AmherstSince 2024
- PhD student · Since 2024
- Current
- Ant Group2020–2024
- Researcher · 2020–2024
Research Overview
Gehao Zhang focuses on the intersection of large language models and software engineering, with specific emphasis on code generation, formal verification, and model security. His trajectory spans from developing multi-lingual code models and repository-level intelligence to advancing prompt inversion techniques. Most recently, his work addresses the robustness of code watermarking and the capacity of lightweight models to perform complex formal reasoning.
Research Trajectory
Early work in Zhang's trajectory involved broad collaborative efforts to build and optimize code-centric large language models. He participated in the development of CodeFuse-13B: A Pretrained Multi-lingual Code Large Language Model, an open-source system designed to handle both English and Chinese prompts across more than forty programming languages. This work emphasized the use of high-quality pre-training datasets filtered by program analyzers to improve performance across the software engineering lifecycle. Concurrently, he contributed to research addressing the computational overhead of utilizing extensive codebase contexts for code assistance. This effort led to RepoGenix: Dual Context-Aided Repository-Level Code Completion with Language Models, which introduced context-aware selection technologies to efficiently compress analogous and relevant contexts, thereby improving prediction accuracy without increasing inference latency.
Expanding into generative model interpretability and specialized software engineering applications, Zhang explored both text-to-image diffusion models and automated debugging. He co-developed EDITOR: Effective and Interpretable Prompt Inversion for Text-to-Image Diffusion Models, a technique designed to reconstruct semantically aligned text prompts from generated images. This method improves upon existing inversion techniques in textual alignment and interpretability, carrying implications for data attribution and AI ethics. Returning to software engineering domains, he participated in the design of FlexFL: Flexible and Effective Fault Localization With Open-Source Large Language Models. This framework leverages privacy-friendly open-source models to identify bug locations by flexibly incorporating diverse artifacts, such as bug reports and test cases, to achieve state-of-the-art fault localization performance.
His most recent primary research focuses on formal reasoning efficiency and the security of AI-generated code. He led the investigation in Breaking the Myth: Can Small Models Infer Postconditions Too?, demonstrating that a lightweight 7-billion parameter model, when fine-tuned on targeted reasoning-postcondition triples, can generate repository-aware code specifications with an accuracy rivaling much larger proprietary models. This work contributes to several research areas, including the direction of Automated Generation of Formal Specifications and Proofs, the broader area of Structural Context for Repository Level Code Intelligence, and the research direction Data Efficient Reasoning through Structured Thought Processes. It also advances methodologies in the area of Rigorous Verification for LLM Code Generation.
Additionally, Zhang has critically examined the robustness of mechanisms designed to track AI-generated code. In Disappearing Ink: Obfuscation Breaks N-gram Code Watermarks in Theory and Practice, he demonstrated that existing N-gram-based watermarking schemes—often relied upon for authorship attribution and misuse detection—are highly vulnerable to sophisticated code obfuscation techniques. By showing how significantly code can be altered while preserving semantics, this research highlights critical weaknesses in current detection strategies. It directly advances the research direction Semantic Preserving Transformations for Code Watermarking as well as the broader area of Watermarking and Detection for Low-Entropy Source Code.
Current Directions
The most recent papers in the evidence indicate a dual focus on the efficiency of formal reasoning and the security of AI-generated software artifacts. One major direction investigates how lightweight, open-source models can be optimized to perform complex formal reasoning and generate rigorous code specifications, challenging the assumption that such tasks require massive proprietary models. Through targeted supervised fine-tuning and structured thought processes, this work seeks to make formal verification more computationally accessible.
Concurrently, recent work addresses the vulnerabilities of AI-generated code tracking. By evaluating how semantic-preserving transformations and obfuscation can defeat existing N-gram watermarks, this research aims to expose the limitations of current defensive simulations. The overarching goal of this direction is to establish more robust, theoretically grounded frameworks for authorship attribution and misuse detection in software engineering.
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