YYYuan Yuan

Yuan Yuan

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

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Yuan Yuan has a total of 55 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • TUBench: Benchmark Large Vision-Language Models on Trustworthiness With Unanswerable Questions

    by Xingwei He, Cheng Huang, Qianru Zhang, A-Long Jin, Linlin Yu, Yuan Yuan, Siu-Ming Yiu

  • Open Access

    Fusing LLMs and Genetic Algorithm for High-Quality Unit Test Generation

    by Yiwen Fu, Xiang Gao, Binhang Qi, Yuan Yuan, Hailong Sun

    Unit testing is essential for early defect detection and software reliability. Existing automated test generation tools, including both search-based and Large Language Model (LLM)-centric approaches, still face significant challenges, including difficulties in producing compilable and executable tests for complex projects, limited coverage with insufficient exploration of control flows and edge cases, and a lack of systematic feedback mechanisms that integrate global search, semantic reasoning, and adaptive refinement. To address these limitations, we present LegaTest , an automated unit test generation framework that synergizes LLM with Genetic Algorithms (GA) through a coordinated Generation–Repair–Optimization process. LegaTest begins with a dual-prompt strategy to generate structurally sound and semantically meaningful test seeds, which are then iteratively refined using execution feedback and coverage guidance. The framework integrates LLM-driven insights with GA operators such as greedy selection, LLM-guided crossover, and semantic-driven mutation. Multi-strategy test repair with hierarchical criteria progressively resolves syntactic and semantic errors, improving both correctness and robustness. On the Defects4J benchmark as well as four Java projects adopted from the experimental setup of ChatUniTest, LegaTest achieves 66.95% line, 54.37% branch, and 74.16% method coverage with 93.3% generation success and 18.7% semantically meaningful assertions, outperforming existing tools by up to 34.7% in coverage, 59.6% in generation success, and 16.5% in assertions, while maintaining concise test suites.

  • Open Access

    Reference-Based Retrieval-Augmented Unit Test Generation

    by Zhe Zhang, Xingyu Liu, Yuanzhang Lin, Xiang Gao, Hailong Sun, Yuan Yuan

    Automated unit test generation has been widely studied, with Large Language Models (LLMs) recently showing significant potential. LLMs like GPT-4, trained in vast text and code data, excel in various code-related tasks, including unit test generation. However, existing LLM-based approaches often focus solely on the context within the code itself, such as referenced variables, while neglecting broader task-specific contexts, such as the utility of referring to existing tests of relevant methods in unit test generation. Moreover, in the context of unit test generation, these tools prioritize high code coverage, often at the expense of practical usability, correctness, and maintainability. In response, we propose Reference-Based Retrieval Augmentation , a novel mechanism that extends LLM-based Retrieval-Augmented Generation (RAG) to retrieve relevant information by considering task-specific context. In the unit test generation task, for a given focal method, the reference relationships is defined as the reusability or referentiality of tests between the focal method and other methods. To generate high-quality unit tests for the focal method, the test reference relationships are then used to retrieve relevant methods and their existing unit tests. Specifically, we account for the unique structure of unit tests by dividing the test generation process into Given , When , and Then phases. When generating unit tests for a focal method, we retrieve pre-existing tests of other relevant methods, which can provide valuable insights for any of the Given , When , and Then phases. We implement this approach in a tool called RefTest , which sequentially performs preprocessing, test reference retrieval, and unit test generation, using an incremental strategy in which newly generated tests guide the creation of subsequent ones. We evaluated RefTest on 12 open source projects with 1,515 methods, and the results demonstrate that RefTest consistently outperforms existing tools in terms of correctness, completeness, and maintainability of the generated tests.


  • Robust UAV Spectrum Scheduling Under Incomplete Information: A Fuzzy Framework Based on PPO-Assisted Evolutionary Reinforcement Learning

    by Lu Sun, Shengen Zhao, Liangtian Wan, Kaihui Liu, Jie Wang, Yuan Yuan, Yun Lin, Bo Ai

    In unmanned aerial vehicle (UAV) search and rescue missions, UAV swarms equipped with joint radar-communication (JRC) equipment play a pivotal role by collaboratively detecting terrain in rescue zones, locating buried personnel, and transmitting critical information in real time to command centers, serving as a core technology to enhance mission efficiency. However, complex rescue environments often involve incomplete information and jamming interference, increasing scheduling uncertainty and reducing system robustness. To address this challenge, this paper presents a realistic spectrum scheduling model tailored for UAV search and rescue scenarios. The model integrates a fuzzy rule-based system (FRBS) to quantify and manage interference uncertainties arising from incomplete data, enabling robust decision-making for dynamic spectrum resource allocation. Further, an evolutionary reinforcement learning (ERL)-based framework is proposed to develop a proximal policy optimization (PPO)-enhanced clustered pied kingfisher optimizer (PCPKO). By deeply fusing adaptive clustering strategies with PPO’s dynamic hyperparameter tuning mechanism, PCPKO effectively balances global exploration and local exploitation capabilities in spectrum allocation. Simulation results show that PCPKO significantly outperforms traditional algorithms in spectrum utilization, system stability, and global optimization. Compared with the benchmark algorithms, PCPKO improves spectrum utilization by 20% to 34% and reduces the frequency conflict rate by 5% to 20%. This validates its excellent anti-interference capability and robustness in complex environments, providing an efficient and reliable solution for UAV search and rescue spectrum scheduling.


  • CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generation

    by Kefan Li, Yuan Yuan, Hongyue Yu, Tingyu Guo, Shijie Cao

    Large Language Models (LLMs) have shown remarkable performance in automated code generation. However, existing approaches often rely heavily on pre-defined test cases, which become impractical in scenarios where such cases are unavailable. While prior works explore filtering techniques between programs and test cases, they overlook the refinement of test cases. To address this limitation, we introduce CoCoEvo, a novel LLM-based co-evolution framework that simultaneously evolves programs and test cases. CoCoEvo eliminates the dependency on pre-defined test cases by generating both programs and test cases directly from natural language problem descriptions and function headers. The framework employs specialized evolutionary operators, including LLM-based crossover and mutation operators for program evolution, along with an additional test case generation operator for test case evolution. Additionally, we propose optimization strategies such as a crossover rate scheduler to balance exploration and convergence, and a multi-objective optimization method for test case selection. Experimental results on multiple state-of-the-art LLMs demonstrate that CoCoEvo surpasses existing methods, achieving state-of-the-art performance in automated code generation and testing. These results underscore the potential of co-evolutionary techniques in advancing the field of automated programming.


  • Open Access

    How Well Do Large Language Models Serve as End-to-End Secure Code Agents for Python?

    by Jianian Gong, Nachuan Duan, Ziheng Tao, Zhaohui Gong, Yuan Yuan, Minlie Huang


  • Open Access

    Multi-Agent Reinforcement Learning based Edge Content Caching for Connected Autonomous Vehicles in IoV

    by Xiaolong Xu, Linjie Gu, Muhammad Bilal, Maqbool Khan, Yiping Wen, Guoqiang Liu, Yuan Yuan

    Connected Autonomous Vehicle (CAV) Driving, as a data-driven intelligent driving technology within the Internet of Vehicles (IoV), presents significant challenges to the efficiency and security of real-time data management. The combination of Web3.0 and edge content caching holds promise in providing low-latency data access for CAVs’ real-time applications. Web3.0 enables the reliable pre-migration of frequently requested content from content providers to edge nodes. However, identifying optimal edge node peers for joint content caching and replacement remains challenging due to the dynamic nature of traffic flow in IoV. Addressing these challenges, this article introduces GAMA-Cache, an innovative edge content caching methodology leveraging Graph Attention Networks (GAT) and Multi-Agent Reinforcement Learning (MARL). GAMA-Cache conceptualizes the cooperative edge content caching issue as a constrained Markov decision process. It employs a MARL technique predicated on cooperation effectiveness to discern optimal caching decisions, with GAT augmenting information extracted from adjacent nodes. A distinct collaborator selection mechanism is also developed to streamline communication between agents, filtering out those with minimal correlations in the vector input to the policy network. Experimental results demonstrate that, in terms of service latency and delivery failure, the GAMA-Cache outperforms other state-of-the-art MARL solutions for edge content caching in IoV.


  • A Novel Memetic Algorithm for Energy-efficient Distributed Heterogeneous Flexible Job Shop Scheduling: Case Studies in UAVs Delivery

    by Shijie Cao, Yuan Yuan

    Unmanned aerial vehicles(UAVs) are gaining more and more attention due to their low cost and high efficiency in delivery problems, and they can be converted into job shop scheduling problems. In this paper, a UAVs delivery problem is modeled as an energy-efficient distributed heterogeneous flexible job shop scheduling problem(EEDHFJSP), an extension of the flexible job shop scheduling problem, with the objectives of minimizing makespan and total energy consumption. We propose a memetic algorithm with a novel neighborhood structure and a heuristic selection strategy(NSHSM). A new neighborhood structure is designed to consider energy efficiency, combined with a classic neighborhood structure for flexible job shop scheduling to perform local search. Additionally, a heuristic selection operator strategy is developed based on the characteristics of these two neighborhood structures. NSHSM is compared with five state-of-the-art multi-objective optimization algorithms, including MOEA/D, NSGA-2, TS-NSGA-2, IMANS, and DQCE. Experimental results demonstrate that NSHSM outperforms the compared algorithms in terms of both makespan and total energy consumption, highlighting its effectiveness in solving the EEDHFJSP and UAVs delivery problem.


  • Code Multiview Hypergraph Representation Learning for Software Defect Prediction

    by Shaojian Qiu, Mengyang Huang, Yun Liang, Chaoda Peng, Yuan Yuan

    Software defect prediction technology aids the reliability assurance team in identifying defect-prone code and assists the team in reasonably allocating limited testing resources. Recently, researchers assumed that the topological associations among code fragments could be harnessed to construct defect prediction models. Nevertheless, existing graph-based methods only concentrate on features of single-view association, which fail to fully capture the rich information hidden in the code. In addition, software defects may involve multiple code fragments simultaneously, but traditional binary graph structures are insufficient for representing these multivariate associations. To address these two challenges, this article proposes a multiview hypergraph representation learning approach (MVHR-DP) to amplify the potency of code features in defect prediction. MVHR-DP initiates by creating hypergraph structures for each code view, which are then amalgamated into a comprehensive fusion hypergraph. Following this, a hypergraph neural network is established to extract code features from multiple views and intricate associations, thereby enhancing the comprehensiveness of representation in the modeling data. Empirical study shows that the prediction model utilizing features generated by MVHR-DP exhibits superior area under the curve (AUC), F-measure, and matthews correlation coefficient (MCC) results compared to baseline approaches across within-project, cross-version, and cross-project prediction tasks.