Search arXiv⌕ Search

arXiv subjects

Jieming Zheng

Publications and source records attributed to Jieming Zheng.

2 recordsLinked to original sources

The State of RL4SE: A Task-Oriented Review of Research on Reinforcement Learning for Software Engineering

Reinforcement Learning (RL) has emerged as a promising paradigm for addressing complex decision-making challenges in software engineering (SE). As RL is increasingly applied to SE tasks, existing RL4SE studies exhibit substantial diversity in problem formulations, algorithm usage, and MDP modeling. In response, this systematic literature review surveys and synthesizes 146 studies published between 2006 and June 2025 on RL for SE, providing a task-oriented perspective on how RL techniques have been applied across SE domains. We categorize existing work according to core SE tasks and analyze their distribution across the software lifecycle, revealing a strong concentration on quality assurance tasks, particularly GUI exploration and testing, test generation, test case prioritization, and robustness testing. We further examine how SE problems are formulated as RL tasks, focusing on state, action, and reward design as well as the adoption of RL algorithms. In addition, we identify persistent challenges shared across SE subtasks, such as balancing state-action granularity with combinatorial growth and designing effective rewards, while also highlighting emerging research opportunities. By organizing existing studies in a task-oriented manner, this survey aims to guide researchers in better aligning RL techniques with practical SE needs and making informed design choices for specific SE tasks.

cs.SE↗

When LLMs Invent Rust Crates: An Empirical Study of Hallucination Patterns and Mitigation

Large Language Models (LLMs) have become powerful tools for code generation, yet they remain prone to hallucinations$\unicode{x2013}$producing plausible but incorrect or fabricated outputs. Among these, package hallucination, where an LLM suggests non-existent dependencies, poses an emerging security risk to the software supply chain. While previous studies focus on popular languages like Python or JavaScript, in this work we present the first large-scale empirical study on crate hallucination in LLM-generated Rust code. We construct a multi-source dataset combining coding tasks from Stack Overflow, GitHub, and LLM-generated tasks, and evaluate both commercial and open-source models under various decoding settings. Our analysis reveals that, unlike prior findings in Python and JavaScript, hallucination behavior in Rust follows a distinct pattern: different models exhibit surprisingly consistent hallucination rates, and these rates show minimal sensitivity to model parameters. Furthermore, we investigate prompt engineering strategies to mitigate hallucinations without sacrificing code quality. This study provides new insights into the reliability and security implications of LLM-assisted Rust development, offering guidance for future research and safer model deployment in software engineering workflows.

cs.SE↗