ZLZhenhao Li

Zhenhao Li

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Zhenhao Li has a total of 10 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Reinforcement Learning in the Software Development Lifecycle: Methods, Applications, and Reward Design

    by He Yang Yuan, Xin Wang, Pengyu Xue, Boyuan Chen, Dayi Lin, Zishuo Ding, Zhenhao Li, Weiyi Shang

    Reinforcement learning (RL) has emerged as a powerful paradigm for addressing sequential decision-making challenges across the software development life cycle (SDLC). To understand how this paradigm is being operationalized in practice, this systematic literature review examines 85 studies published between January 2020 and March 2026 that apply RL to the seven core SDLC phases: planning, analysis, design, development, testing, deployment, and maintenance. We analyze publication trends and venues, map RL applications to specific SDLC tasks, catalog the RL algorithms employed, and provide a taxonomy of reward modeling strategies and their parameters.Our findings reveal a rapid growth of RL-for-SDLC research since 2022, with the testing phase being the most extensively studied (56.47% of studies) while other phases show steady expansion. Reward designs have evolved from sparse binary outcomes (e.g., test-pass/fail) to dense, multi-objective signals that incorporate execution semantics, coverage metrics, intrinsic curiosity, formal verification feedback, and human preferences. We highlight common reward patterns, their influence on learning behavior, and trade-offs that frequently lead to reward hacking or unstable training in software environments. This survey provides researchers and practitioners with a structured overview of how RL is operationalized across the SDLC, emphasizing reward engineering as a critical factor in agent effectiveness. We conclude by outlining promising directions for future research, including broader lifecycle coverage and the development of more robust reward mechanisms for production-ready software engineering automation.

  • Open Access

    Evaluating Software Process Models for Multi-Agent Class-Level Code Generation

    by Wasique Islam Shafin, Nakhla Rafi, Zhenhao Li, Tse-Hsun Chen

    Modern software systems require code that is not only functional but also maintainable and well-structured. Although Large Language Models (LLMs) are increasingly used to automate software development, most studies focus on isolated, single-agent function-level generation. This work examines how process structure and role specialization shape multi-agent LLM workflows for class-level code generation. We simulate a Waterfall-style development cycle covering Requirement, Design, Implementation, and Testing using three LLMs (GPT-4o-mini, DeepSeek-Chat, and Claude-3.5-Haiku) on 100 Python tasks from the ClassEval benchmark. Our findings show that multi-agent workflows reorganize, rather than consistently enhance, model performance. Waterfall-style collaboration produces cleaner and more maintainable code but often reduces functional correctness (-37.8\% for GPT-4o-mini and -39.8\% for DeepSeek-Chat), with Claude-3.5-Haiku as a notable exception (+9.5\%). Importantly, process constraints shift failure characteristics: structural issues such as missing code decrease, while semantic and validation errors become more frequent. Among all stages, Testing exerts the strongest influence by improving verification coverage but also introducing new reasoning failures, whereas Requirement and Design have comparatively modest effects. Overall, this study provides empirical evidence that software process structure fundamentally alters how LLMs reason, collaborate, and fail, revealing inherent trade-offs between rigid workflow discipline and flexible problem-solving in multi-agent code generation.

  • Open Access

    Defects4Log: Benchmarking LLMs for Logging Code Defect Detection and Reasoning

    by Xin Wang, Zhenhao Li, Zishuo Ding

    Logging code is written by developers to capture system runtime behavior and plays a vital role in debugging, performance analysis, and system monitoring. However, defects in logging code can undermine the usefulness of logs and lead to misinterpretations. Although prior work has identified several logging defect patterns and provided valuable insights into logging practices, these studies often focus on a narrow range of defect patterns derived from limited sources (e.g., commit histories) and lack a systematic and comprehensive analysis. Moreover, large language models (LLMs) have demonstrated promising generalization and reasoning capabilities across a variety of code-related tasks, yet their potential for detecting logging code defects remains largely unexplored. In this paper, we derive a comprehensive taxonomy of logging code defects, which encompasses seven logging code defect patterns with 14 detailed scenarios. We further construct a benchmark dataset, \dataset, consisting of 164 developer-verified real-world logging defects. Then we propose an automated framework that leverages various prompting strategies and contextual information to evaluate LLMs' capability in detecting and reasoning logging code defects. Experimental results reveal that LLMs generally struggle to accurately detect and reason logging code defects based on the source code only. However, incorporating proper knowledge (e.g., detailed scenarios of defect patterns) can lead to 10.9\% improvement in detection accuracy. Overall, our findings provide actionable guidance for practitioners to avoid common defect patterns and establish a foundation for improving LLM-based reasoning in logging code defect detection.