Shengyu Fu
Author directory2026
SWE-Edit: Rethinking Code Editing for Efficient SWE-Agent
Yikai Zhang | Jiaxin Pei | Kenan Li | Qirui Jin | Maoquan Wang | Jin Pan | Yu Kang | Shengyu Fu | Elsie Nallipogu | Junjie Hu | Yufan Huang | Zijian Jin
Findings of the Association for Computational Linguistics: EMNLP 2026
Yikai Zhang | Jiaxin Pei | Kenan Li | Qirui Jin | Maoquan Wang | Jin Pan | Yu Kang | Shengyu Fu | Elsie Nallipogu | Junjie Hu | Yufan Huang | Zijian Jin
Findings of the Association for Computational Linguistics: EMNLP 2026
Large language model agents have made strong progress on software engineering, yet current systems suffer from a context coupling problem: the standard code editing interface conflates code inspection, modification planning, and edit execution within a single context window, forcing agents to interleave exploratory viewing with strictly formatted edit generation. Irrelevant context accumulates and edit reliability degrades. We propose SWE-Edit, which decomposes the editing interface into two specialized subagents: a Viewer that extracts task-relevant code on demand, and an Editor that executes modifications from high-level natural language plans—letting the main agent focus on reasoning while delegating context-intensive operations to clean context windows. We further show that effective edit-format selection can be trained into a small model rather than requiring frontier-scale capacity: GRPO training on Qwen3-8B improves edit success by 12.5 pp and brings an 8B open-source editor to parity with GPT-5-nano on downstream SWE-Bench resolve rate, with the learned adaptive find-replace/whole-file-rewrite policy contributing primarily on the cost axis (-11.8% agent cost). To enable rapid editor iteration, we release PR-Edit, a lightweight editor-level evaluation that rank-orders the editor models we test consistently with their downstream SWE-Bench resolve rate. We release our code at https://github.com/microsoft/SWE-Edit.
HyDRA: Hybrid Dynamic Routing Architecture for Heterogeneous LLM Pools
Aashna Garg | Siddharth Singha Roy | Shengyu Fu | Federico Brancasi | Jinu Jang | Giuseppe Cianci
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: Industry Track
Aashna Garg | Siddharth Singha Roy | Shengyu Fu | Federico Brancasi | Jinu Jang | Giuseppe Cianci
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: Industry Track
Production LLM deployments maintain heterogeneous model pools spanning order-of-magnitude cost differences, yet existing routers make binary strong-vs-weak decisions coupled to specific model identities, requiring retraining on every catalog change. We present HyDRA (Hybrid Dynamic Routing Architecture), which uses a lightweight ModernBERT encoder to predict capability requirements (reasoning, code generation, debugging, and tool use) for each query. It then selects the cheapest model meeting those requirements through shortfall matching. HyDRA decouples the learned predictor from the model catalog, enabling catalog changes without retraining. On SWE-Bench Verified, HyDRA is 0.3 QR points below always-strong (not statistically significant) at 54.1% cost savings. On a held-out multilingual evaluation set, the same checkpoint retains 80.6% of oracle-routing quality at 37.5% cost savings, tunable to 79.1% retention at 56.1% savings. A 14-day A/B flight with close to 1M users per arm found statistically significant improvements in latency, time-to-first-token, reliability, and user activity. Deployed across GitHub Copilot VS Code Chat, GitHub Copilot CLI, and GitHub Copilot extensions, HyDRA demonstrates cross-lingual routing consistency across 16 languages and 4 language groups.
2025
Skeleton-Guided-Translation: A Benchmarking Framework for Code Repository Translation with Fine-Grained Quality Evaluation
Xing Zhang | Jiaheng Wen | Fangkai Yang | Yu Kang | Pu Zhao | Junhao Wang | Maoquan Wang | Yufan Huang | Shengyu Fu | Elsie Nallipogu | Qingwei Lin | Yingnong Dang | Saravan Rajmohan | Dongmei Zhang
Findings of the Association for Computational Linguistics: EMNLP 2025
Xing Zhang | Jiaheng Wen | Fangkai Yang | Yu Kang | Pu Zhao | Junhao Wang | Maoquan Wang | Yufan Huang | Shengyu Fu | Elsie Nallipogu | Qingwei Lin | Yingnong Dang | Saravan Rajmohan | Dongmei Zhang
Findings of the Association for Computational Linguistics: EMNLP 2025
Code translation benchmarks are essential for evaluating the accuracy and efficiency of LLM-based systems. Existing benchmarks mainly target individual functions, overlooking repository-level challenges like intermodule coherence and dependency management. Recent repository-level efforts exist, but suffer from poor maintainability and coarse evaluation granularity. We introduce Skeleton-Guided-Translation, a framework for benchmarking Java-to-C# translation at the repository level, featuring fine-grained quality evaluation. It follows a two-step process: first translating repository “skeletons”, then refining the entire repository guided by these skeletons. Based on this, we present TRANSREPO-BENCH , the first test-driven benchmark of high-quality Java repositories paired with C# skeletons, unit tests, and build configurations. Our adaptive unit tests support multiple and incremental translations without manual tuning, enhancing automation and scalability. We also propose fine-grained metrics that evaluate translation quality per test case, overcoming limitations of binary metrics in distinguishing build failures. Evaluations using TRANSREPO-BENCH reveal issues like broken cross-file references, showing that our structured approach reduces dependency errors and preserves interface consistency.
2023
Code Execution with Pre-trained Language Models
Chenxiao Liu | Shuai Lu | Weizhu Chen | Daxin Jiang | Alexey Svyatkovskiy | Shengyu Fu | Neel Sundaresan | Nan Duan
Findings of the Association for Computational Linguistics: ACL 2023
Chenxiao Liu | Shuai Lu | Weizhu Chen | Daxin Jiang | Alexey Svyatkovskiy | Shengyu Fu | Neel Sundaresan | Nan Duan
Findings of the Association for Computational Linguistics: ACL 2023
Code execution is a fundamental aspect of programming language semantics that reflects the exact behavior of the code. However, most pre-trained models for code intelligence ignore the execution trace and only rely on source code and syntactic structures. In this paper, we investigate how well pre-trained models can understand and perform code execution. We develop a mutation-based data augmentation technique to create a large-scale and realistic Python dataset and task for code execution, which challenges existing models such as Codex. We then present CodeExecutor, a Transformer model that leverages code execution pre-training and curriculum learning to enhance its semantic comprehension. We evaluate CodeExecutor on code execution and show its promising performance and limitations. We also demonstrate its potential benefits for code intelligence tasks such as zero-shot code-to-code search and text-to-code generation. Our analysis provides insights into the learning and generalization abilities of pre-trained models for code execution.
Search
Fix author
Co-authors
- Yufan Huang 2
- Yu Kang 2
- Elsie Nallipogu 2
- Maoquan Wang 2
- Federico Brancasi 1
- Weizhu Chen 1
- Giuseppe Cianci 1
- Yingnong Dang 1
- Nan Duan 1
- Aashna Garg 1
- Junjie Hu 1
- Jinu Jang 1
- Daxin Jiang 1
- Qirui Jin 1
- Zijian Jin 1
- Kenan Li 1
- Qingwei Lin 1
- Chenxiao Liu 1
- Shuai Lu 1
- Jin Pan 1
- Jiaxin Pei 1
- Saravan Rajmohan 1
- Siddharth Singha Roy 1
- Neel Sundaresan 1
- Alexey Svyatkovskiy 1
- Junhao Wang 1
- Jiaheng Wen 1
- Fangkai Yang 1
- Dongmei Zhang 1
- Xing Zhang 1
- Yikai Zhang 1
- Pu Zhao 1