SWShaosheng Wang

Shaosheng Wang

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

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Shaosheng Wang has a total of 7 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • SCAgent : An LLM ‐Based Agent With State‐Aware Coordination for Automated Program Repair

    by Shaosheng Wang, Lu Lu, Shaojian Qiu

    Automated program repair (APR) has emerged as a promising technique for improving software reliability by automatically fixing bugs. Recent advances in large language models (LLMs), particularly LLM‐based agents, have further enhanced repair capabilities by enabling flexible patch generation and iterative reasoning. However, existing LLM‐based agent frameworks still suffer from several limitations, including unstructured repair processes, unproductive trial‐and‐error loops and the lack of explicit coordination between reasoning and action, which lead to inefficient and unstable repair behaviours. In this paper, we propose SCAgent, an LLM‐based agent for APR with state‐aware coordination. SCAgent structures the repair process into coordinated stages, including bug understanding, information gathering and patch generation, and dynamically controls transitions between these stages based on the repair context. Experimental results on Defects4J show that SCAgent correctly repairs 173 bugs. We further conduct a preliminary evaluation on GitBug‐Java to assess its potential generalizability, with SCAgent correctly repairing 15 bugs in a sampled subset of 100 bugs.


  • Integrating Retrieval Augmentation and Decoding Intervention for Automated Program Repair

    by Shaosheng Wang, Lu Lu, Shaojian Qiu, Zhihong Liang, Siliang Suo

    Automated program repair (APR) aims to automatically detect and fix software defects, thereby improving software reliability and reducing debugging effort. Recently, researchers have explored the retrieval augmentation techniques to enhance large code models' performance in program repair. Existing retrieval augmentation models often inject retrieved information at the input layer, which can lead to input sequence inflation and interfere with the encoder's ability to focus on the core repair task. Meanwhile, learning‐based methods frequently produce unreliable patches, lacking mechanisms to verify or refine low‐confidence outputs during generation. To address these challenges, this paper proposes RADI‐PR, a novel approach that integrates retrieval augmentation and decoding intervention at the model's output layer. RADI‐PR dynamically incorporates relevant repair patterns based on historical fixes and intervenes in low‐confidence generations to enhance both the accuracy and reliability of generated patches. Comprehensive evaluations on four benchmark datasets, including Java, FixJS, Codeflaws and TSSB‐3 M, show that RADI‐PR consistently outperforms baseline methods. RADI‐PR achieves improvements of up to 5.5% in Precision, 3.2% in F1‐score and 2.2% in Accuracy.