MCP
YD

Yangruibo Ding

33 papers in the library · Same-name authors told apart using DBLP

Papers

30
CyberDualEval: Measuring Dual-Use Cyber Risks in Frontier Language Models
Magnus SaeboFrancesco PiccoliMaxwell WatsonPranjali ThakurYangruibo DingZhuo Zhang
CyberDualEval is a 430-task benchmark for measuring dual-use cyber risk in frontier language models, targeting the gap left by benchmarks that assess either raw offensive capability or generic refusal behavior while overlooking whether benign security utility is preserved as materially misuse-advancing assistance is refused. Each task is decomposed into three phases of increasing operationalization—security analysis, proof-of-concept generation, and exploit generation—and annotated with a Task Weaponization Score quantifying the work remaining to turn the resulting artifact into unauthorized misuse; ten closed- and open-weight models are assessed on both correct compliance and task performance, with four deterministic mechanisms determining per-phase success on a large subset. The evaluation finds that no existing frontier model effectively navigates helping with safe requests while refusing risky ones, instead being overly cautious, whereas recent open-weight models rarely refuse and show strong validated accuracy on risky requests.
arXivarXiv · · November 23, 2026
0
0
Skeleton Coding: Program Structure as Control for AI Agents
Aditya GolatkarAlessandro AchilleRenos ZabounidisVlad SobalYangruibo DingBaishakhi RayJonathan BuckGuy Van den BroeckMaryam FazelPietro PeronaWei XiaStefano Soatto
The number of behavioral specifications an agent needs depends on the program structure it chooses, so users cannot know a priori whether tests are complete, since the same tests may leave one structure underdetermined while another needs different edge cases or exponentially more examples. The authors introduce Skeleton Coding, in which humans jointly specify the structure in a high-level, code-like format alongside behavioral specifications. Modeling AI-assisted coding as a control problem shows that skeletons can exponentially reduce the tests users must supply; across four models and three benchmarks, the best skeletons cut mean test error by 48.4% over the best end-to-end specifications, and by up to 27% even with a complete reference implementation available.
arXivarXiv · · October 28, 2026
0
The Next Challenge for Agentic Cybersecurity: A Realistic, Contamination-Free Reverse Engineering Benchmark
Jeremy SpenceNicholas AssaderaghiFeng XiaoJinhao ZhuNikil RaviXiangyu QiMatthew JagielskiRaluca Ada PopaEric WallaceGuannan WeiYangruibo DingZhuo Zhang
We introduce SRE-Bench, the first realistic, contamination-free reverse engineering (RE) benchmark. Built from scratch by experts over 5,000 hours, it comprises 19 private, real-world-scale programs (averaging 16.9K lines), 44 in-house anti-analysis mechanisms, 262 binary instances, and 1,572 graded tasks. Evaluating 13 agentic settings across 11 models shows that even frontier agents (GPT-5.6-Sol, Claude-Fable-5.1) solve only 31.5% and 26.9% of instances, indicating that source-code security success does not translate to binary analysis. Without budget or safety constraints, GPT-6-Astra achieves near-perfect pass@4 but candidate selection remains hard. SRE-Bench establishes RE as a distinct frontier for agentic cybersecurity.
arXivarXiv · · August 11, 2026
0
1
CyberDualEval: Measuring Dual-Use Cyber Risks in Frontier Language Models
Magnus SaeboFrancesco PiccoliMaxwell WatsonPranjali ThakurYangruibo DingZhuo Zhang
CyberDualEval is a benchmark of 430 vulnerable tasks for measuring a dual-use cyber risk that existing benchmarks miss: whether a model preserves benign security utility while refusing assistance that materially advances misuse. Each task is decomposed into security analysis, proof-of-concept generation, and exploit generation, and is annotated with a Task Weaponization Score quantifying how much work remains to turn the resulting artifact into unauthorized misuse; evaluation covers both correct compliance and task performance, with four deterministic mechanisms for per-phase success on a large subset. Evaluating frontier and open-source models shows that no existing frontier model effectively balances helping with safe requests and refusing risky ones, being overly cautious, while recent open-weight models rarely refuse and show strong validated accuracy on risky requests.
OpenReviewOpenReview · · May 5, 2026
0
OpenSage: Self-programming Agent Generation Engine
Hongwei LiZhun WangQinrun DaiYuzhou NieJinjun PengRuitong LiuJingyang ZhangKaijie ZhuJingxuan HeLun WangYangruibo DingYueqi Chen  +2
OpenSage is the first agent development kit (ADK) that lets LLMs automatically create agents with self-generated topology and toolsets, while also providing comprehensive, structured memory support. It enables agents to build and manage their own sub-agents and toolkits, features a hierarchical graph-based memory system, and includes a specialized toolkit for software engineering. Experiments on three benchmarks with various backbone models show OpenSage outperforms existing ADKs, with ablation studies validating each design component.
arXivarXiv · · February 18, 2026
0
4
To Defend Against Cyber Attacks, We Must Teach AI Agents to Hack
Terry Yue ZhuoYangruibo DingWenbo GuoRuijie Meng
This position paper argues that AI agents will inevitably automate vulnerability discovery and exploitation at scale, breaking the current security balance that relies on human labor scarcity. The authors claim existing defenses—data filtering, safety alignment, and output guardrails—fail against adversaries controlling open-weight models. They propose three actions: building comprehensive benchmarks covering the full attack lifecycle, advancing from workflow-based to trained agents for in-wild vulnerability discovery, and implementing governance that restricts offensive agents to audited cyber ranges with staged release. The paper treats offensive AI capabilities as essential defensive infrastructure.
arXivarXiv · · February 1, 2026
0
4
SWE-Spot: Building Small Repo-Experts with Repository-Centric Learning
Jinjun PengMagnus SaeboTianjun ZhongJunfeng YangShi-Xiong ZhangBaishakhi RaySimin ChenYangruibo Ding
The authors propose Repository-Centric Learning (RCL) to train small language models as repo-specialized experts, addressing their weak generalization to unfamiliar codebases. RCL prioritizes vertical depth in single repositories over the prevailing Task-Centric Learning (TCL) breadth, using a four-unit Repository-Centric Experience to convert static code into interactive training signals. Trained as SWE-Spot-4B, these compact models, under matching teacher and data budgets, outperform TCL consistently and match or exceed open-weight models up to 8× larger and commercial efficiency-focused models across SWE tasks on seven repositories.
arXivarXiv · · January 29, 2026
1
1
DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle
Yuheng TangKaijie Zhu…Yangruibo Ding
DevOps-Gym benchmarks AI agents across the full software DevOps cycle—build and configuration, monitoring, issue resolving, and test generation—going beyond isolated code generation. It provides 700+ tasks from 30+ Java and Go projects, collected via a semi-automated mechanism with expert quality control. Evaluation of state-of-the-art models reveals fundamental limitations, especially in issue resolving and test generation, and inability to handle monitoring or build and configuration, highlighting the need for further research.
arXivarXiv · · January 27, 2026
0
16
Position: To Defend Against Cyber Attacks, We Must Teach AI Agents to Hack
Terry Yue ZhuoYangruibo DingWenbo GuoRuijie Meng
This position paper argues that AI-agent-driven cyber attacks are inevitable, so defending against them requires developing offensive AI capabilities. The authors claim existing defenses—data filtering, safety alignment, and guardrails—cannot stop adversaries who control open-weight models or bypass safety controls. They propose three actions: building benchmarks spanning the full attack lifecycle, advancing from workflow-based to trained agents for discovering in-the-wild vulnerabilities at scale, and implementing governance that confines offensive agents to audited ranges, stages release by capability tier, and distills findings into safe defensive-only agents. They recommend treating offensive capabilities as essential defensive infrastructure, mastering them in controlled settings before adversaries do.
OpenReviewOpenReview · January 19, 2026
0
OpenSage: Self-programming Agent Generation Engine
Hongwei LiZhun WangQinrun DaiYuzhou NieJinjun PengRuitong LiuJingyang ZhangKaijie ZhuJingxuan HeLun WangYangruibo DingYueqi Chen  +2
OpenSage is the first agent development kit (ADK) that enables LLMs to automatically create agents with self-generated topology and toolsets, while providing comprehensive structured memory support. It allows agents to create and manage their own sub-agents and toolkits, features a hierarchical graph-based memory system, and includes a specialized toolkit for software engineering tasks. Experiments across three benchmarks with various backbone models show advantages over existing ADKs, with ablation studies validating each component's effectiveness.
OpenReviewOpenReview · · January 14, 2026
0
Rethinking Kernel Program Repair: Benchmarking and Enhancing LLMs with RGym
Kareem ShehadaYifan WuWyatt D. FengAdithya IyerGryphon KumfertYangruibo DingZhiyun Qian
RGym is a lightweight, platform-agnostic framework for evaluating LLM-based automated program repair on the Linux kernel using local commodity hardware. Built on RGym, a simple pipeline applies specialized localization (call stacks and blamed commits) to avoid costly oracles. On 143 filtered kernel bugs, GPT-5 Thinking achieves a 43.36% pass rate costing under $0.20 per bug, with ablation and feedback-based retries further improving performance.
arXivarXiv · · November 19, 2025
0
1
DevOps-Gym: Benchmarking AI Agents in Software DevOps Cycle
Yuheng TangKaijie Zhu…Yangruibo Ding
DevOps-Gym is introduced as the first end-to-end benchmark for evaluating AI agents across core DevOps workflows: build and configuration, monitoring, issue resolving, and test generation. It comprises 700+ real-world tasks from 30+ Java and Go projects, using a semi-automated data collection mechanism with expert validation. Evaluation of state-of-the-art models reveals fundamental limitations: they struggle with issue resolving and test generation and cannot handle monitoring or build and configuration, highlighting the need for research in automating the full DevOps cycle.
OpenReviewOpenReview · · September 20, 2025
0
Rethinking Kernel Program Repair: Benchmarking and Enhancing LLMs with RGym
Kareem ShehadaYifan WuWyatt D. FengAdithya IyerGryphon KumfertYangruibo DingZhiyun Qian
This paper introduces RGym, a lightweight, platform-agnostic evaluation framework for automated program repair in the Linux kernel, running on local commodity hardware. Built on RGym, the authors propose a simple APR pipeline using specialized localization techniques (call stacks, blamed commits) instead of the unrealistic oracles in prior work like KGym. On a verified dataset of 143 bugs, the method achieves up to a 43.36% pass rate with GPT-5 Thinking at under $0.20 per bug. Ablation studies show that localization, prompt structure, model choice, and feedback-based retries all contribute to success.
OpenReviewOpenReview · · September 4, 2025
0
Co-PatcheR: Collaborative Software Patching with Component(s)-specific Small Reasoning Models
Yuheng TangHongwei LiKaijie ZhuMichael YangYangruibo DingWenbo Guo
Co-PatcheR is a collaborative software patching system that replaces a single end-to-end model with small, specialized reasoning models for each sub-task. It uses a 14B-parameter model for two-step localization and patch generation with critique, and two additional models for hybrid validation: generating issue-reproducing test cases (with and without assertions) and judging correctness. A majority vote selects the final patch. On SWE-bench-Verified, Co-PatcheR achieves a 46% resolved rate using three 14B models, outperforming prior methods that used a single 70B model, while requiring less training resources.
arXivarXiv · · May 25, 2025
0
17
Co-PatcheR: Collaborative Software Patching with Component-specific Small Reasoning Models
Yuheng TangHongwei LiKaijie ZhuMichael YangYangruibo DingWenbo Guo
Co-PatcheR is the first collaborative software patching system using small, specialized reasoning models for individual pipeline components. It trains separate 14B models for localization with patch generation and critique, and for validation via issue-reproducing tests with majority-vote selection. This achieves a 46% resolved rate on SWE-bench-Verified with only three 14B models, surpassing SOTA specialized patchers while using the least training resources. Ablations validate the task designs, training data size, model scale, and test-phase scaling.
OpenReviewOpenReview · May 12, 2025
0
15
SemCoder: Training Code Language Models with Comprehensive Semantics Reasoning
Yangruibo DingJinjun PengMarcus J. MinGail KaiserJunfeng YangBaishakhi Ray
SemCoder trains code LLMs to reason about code semantics via a novel monologue reasoning strategy. Using PyX, a corpus of executable Python samples with descriptions and tests, it teaches models to link static text with dynamic execution states by reasoning over functional descriptions, statement-level effects, and input/output behavior. The resulting 6.7B-parameter model matches or outperforms GPT-3.5-turbo on code generation and execution reasoning benchmarks and shows improved debugging and self-refinement.
OpenReviewOpenReview · May 15, 2024
0
105
Vulnerability Detection with Code Language Models: How Far Are We?
Yangruibo DingYanjun FuOmniyyah IbrahimChawin SitawarinXinyun ChenBasel AlomairDavid WagnerBaishakhi RayYizheng Chen
This paper argues that existing code language model (code LM) evaluations for vulnerability detection are unreliable due to poor dataset quality and unrealistic metrics. The authors introduce PrimeVul, a dataset with improved labeling, de-duplication, and chronological splitting. Evaluations show that state-of-the-art models, including GPT-4, perform near random guessing under PrimeVul's realistic settings, revealing a large gap between current capabilities and practical deployment needs.
arXivarXiv · · March 27, 2024
0
470
CYCLE: Learning to Self-Refine the Code Generation
Yangruibo DingMarcus J. MinGail KaiserBaishakhi Ray
The paper proposes CYCLE, a framework that learns to self-refine code generation from test-suite feedback. Evaluated on HumanEval, MBPP, and APPS, CYCLE maintains or improves one-time generation quality while significantly boosting self-refinement capability. Across model sizes (350M–3B parameters), CYCLE consistently improves performance by up to 63.5% and outperforms code LMs with 3× more parameters in self-refinement.
arXivarXiv · · March 27, 2024
0
105
Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChain
Marcus J. MinYangruibo DingLuca BurattiSaurabh PujarGail KaiserSuman JanaBaishakhi Ray
This paper introduces IdentityChain, a framework for evaluating the self-consistency of Code LLMs—a property distinct from conventional accuracy. Self-consistency requires that a model's generated natural language specification for its own code and its generated code for its own specification agree. Tests on eleven Code LLMs reveal that they fail to preserve this consistency, indicating a lack of shared semantic understanding between natural and programming languages. IdentityChain also serves as a debugging tool to expose model weaknesses.
arXivarXiv · · October 21, 2023
0
61
CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completion
Yangruibo DingZijian WangWasi Uddin AhmadHantian DingMing TanNihal JainMurali Krishna RamanathanRamesh NallapatiParminder BhatiaDan RothBing Xiang
CrossCodeEval is a benchmark for cross-file code completion, built from real-world repositories in Python, Java, TypeScript, and C#. It uses static analysis to identify completion points that strictly require cross-file context. Experiments show that state-of-the-art models struggle without such context, and even with it, performance remains far from solved, making CrossCodeEval a test of both model comprehension and retrieval methods.
arXivarXiv · · October 17, 2023
0
350
Beyond Accuracy: Evaluating Self-Consistency of Code Large Language Models with IdentityChain
Marcus J. MinYangruibo DingLuca BurattiSaurabh PujarGail KaiserSuman JanaBaishakhi Ray
This paper introduces IdentityChain, a framework to evaluate the self-consistency of Code LLMs alongside conventional accuracy. Self-consistency is formally defined as a model's ability to generate natural language specifications for its own code and generate code for its own specifications. Testing eleven Code LLMs, the authors show they fail to preserve self-consistency, which is distinct from accuracy, and demonstrate IdentityChain's use as a debugging tool to expose three major model weaknesses.
OpenReviewOpenReview · · September 23, 2023
0
TRACED: Execution-aware Pre-training for Source Code
Yangruibo DingBen SteenhoekKexin PeiGail KaiserWei LeBaishakhi Ray
TRACED pre-trains code language models on source code paired with executable inputs and their execution traces, teaching the model to statically estimate dynamic code properties such as branch coverage and runtime variable values. This bridges the gap between static language models and program execution. Evaluated on three downstream tasks, TRACED improves complete execution path prediction by 12.4% and runtime variable value prediction by 25.2% over statically pre-trained models, and also achieves gains in clone retrieval and vulnerability detection on four benchmarks.
arXivarXiv · · June 13, 2023
0
93
Automated Code Editing with Search-Generate-Modify
Changshu LiuPelin CetinYogesh PatodiaSaikat ChakrabortyYangruibo DingBaishakhi Ray
This paper introduces SARGAM, a tool for automated code editing that combines search, generation, and modification. The central contribution is a hybrid approach where a retrieved patch, even if imperfect, guides a code generator toward a candidate patch, which is then slightly modified to yield the intended edit. SARGAM demonstrates superior performance on edit generation and automated program repair tasks compared to state-of-the-art methods.
arXivarXiv · · June 10, 2023
0
28
CONCORD: Clone-aware Contrastive Learning for Source Code
Yangruibo DingSaikat ChakrabortyLuca BurattiSaurabh PujarAlessandro MorariGail KaiserBaishakhi Ray
The paper proposes CONCORD, a self-supervised contrastive learning method for code that incorporates developer behavior of code cloning. It learns representations by pulling benign clones closer and pushing deviant clones apart. CONCORD reduces pre-training resource needs while improving downstream SE tasks, including clone and bug detection, and can enhance existing pre-trained models.
arXivarXiv · · June 5, 2023
0
28
CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completion
Yangruibo DingZijian WangWasi Uddin AhmadHantian DingMing TanNihal JainMurali Krishna RamanathanRamesh NallapatiParminder BhatiaDan RothBing Xiang
CrossCodeEval is a multilingual benchmark for cross-file code completion, built from real-world permissively-licensed repositories in Python, Java, TypeScript, and C#. Using a static-analysis approach, it pinpoints examples that require cross-file context for accurate completion. Experiments show that state-of-the-art models like CodeGen and StarCoder struggle without this context, improve when it is added, yet still fall short of peak performance, making CrossCodeEval useful for assessing both context utilization and code retrieval methods.
OpenReviewOpenReview · · June 1, 2023
0
TraceFixer: Execution Trace-Driven Program Repair
Islem BouzeniaYangruibo DingKexin PeiBaishakhi RayMichael Pradel
TraceFixer is a neural program repair technique that predicts source-code edits to fix a divergence between actual and desired program behavior. Its key contribution is using an execution trace of the incorrect code (obtained automatically via instrumentation) together with the user-specified correct state at the divergence point as input to the model, in addition to learning from source-code edits. On single-line Python bugs, this trace-driven approach improves top-10 fix accuracy by 13–20% over a baseline that uses only source-code edits, and fixes 10 of 20 real-world bugs.
arXivarXiv · · April 25, 2023
0
14
CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Context
Yangruibo DingZijian WangWasi Uddin AhmadMurali Krishna RamanathanRamesh NallapatiParminder BhatiaDan RothBing Xiang
CoCoMIC improves code completion by jointly modeling in-file and cross-file context. It introduces CCFINDER, a tool that retrieves the most relevant cross-file context from other files in the same project, and a framework that integrates this context with existing pretrained code language models. On code completion, CoCoMIC achieves a 33.94% relative increase in exact match and a 28.69% relative increase in identifier matching when cross-file context is provided.
arXivarXiv · · December 20, 2022
0
143
NatGen: Generative pre-training by "Naturalizing" source code
Saikat ChakrabortyToufique AhmedYangruibo DingPremkumar DevanbuBaishakhi Ray
NatGen introduces a new pre-training objective called "Naturalizing" source code, which leverages code's bimodal nature (formal and natural channels). The method applies six classes of semantic-preserving transformations to create unnatural code forms, then trains a generative model to recover the original, more natural program. This approach, without manual supervision, achieves state-of-the-art performance on code generation, translation, and refinement, rivaling CodeT5, and excels in zero-shot and few-shot learning.
arXivarXiv · · June 15, 2022
0
196
VELVET: a noVel Ensemble Learning approach to automatically locate VulnErable sTatements
Yangruibo DingSahil SunejaYunhui ZhengJim LaredoAlessandro MorariGail KaiserBaishakhi Ray
VELVET is an ensemble learning approach that combines graph-based and sequence-based neural networks to automatically locate vulnerable statements in source code. It captures both local and global context of program graphs to understand code semantics and vulnerable patterns. In a static analysis setting, VELVET achieves 4.5× better performance than baseline static analyzers on real-world data. For isolated vulnerability localization, it achieves 99.6% and 43.6% top-1 accuracy on synthetic and real-world data, respectively, outperforming baseline deep-learning models by 5.3–29.0%.
arXivarXiv · · December 20, 2021
0
99
Towards Learning (Dis)-Similarity of Source Code from Program Contrasts
Yangruibo DingLuca BurattiSaurabh PujarAlessandro MorariBaishakhi RaySaikat Chakraborty
DISCO is a self-supervised model for identifying functional (dis)similarity of source code. Instead of relying on large random datasets, it uses structure-guided transformations to generate synthetic code clones and inject security bugs, creating targeted program contrasts. A Transformer is pre-trained on these contrasts with a new cloze objective that encodes local tree-based context, such as parent or sibling nodes. Using only 5% of the training data of state-of-the-art models, DISCO outperforms them in vulnerability and code clone detection.
arXivarXiv · · October 8, 2021
0
162
Frequent collaborators
Baishakhi Ray (17)
Wenbo Guo (8)
Gail Kaiser (7)
Hongwei Li (6)
Kaijie Zhu (6)
Saikat Chakraborty (6)
Jinjun Peng (4)
Lun Wang (4)
Dawn Song (4)
Yuheng Tang (4)
Michael Yang (4)
Marcus J. Min (4)