arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.19368cs.SE
收藏

OS-Bench:评估跨操作系统代码迁移的SWE智能体

OS-Bench: Evaluating SWE Agents on Cross-OS Code Migration

Georgia Institute of Technology(佐治亚理工学院);Microsoft(微软)

Qirui Jin, Kenan Li, Liao Zhu, Lingching Tung, Yikai Zhang, Yijia Wu, Zijian Jin, Pengfei Gao, Yu Kang, Qingwei Lin, Wenke Lee

AI总结:

该研究针对跨OS代码迁移这一SWE智能体的薄弱环节,构建了含140个任务的OS-Bench基准,评估多款模型后发现其迁移成功率低,为提升平台感知SWE智能体提供了测试平台。

摘要:

语言模型(LM)智能体越来越多地基于源自GitHub问题和拉取请求的仓库级软件工程(SWE)基准进行评估。尽管这些基准涵盖了广泛的开发任务,但它们对一个常见但技术上独特的挑战提供的见解有限:将现有实现从一个操作系统(OS)迁移到另一个操作系统,同时保留在两个系统上的行为。我们引入OS-Bench,这是一个用于Linux和Windows之间跨OS代码迁移的可执行基准。案例研究表明,跨平台功能通常在一个OS上实现后才会添加对另一个OS的支持,受此启发,OS-Bench通过比较同一仓库在两个系统上收集的执行覆盖率来识别迁移机会。然后验证特定于平台的区域,将其组织成五个迁移场景,并转换为带有目标平台测试和源平台回归测试的仓库级任务。生成的基准包含来自111个仓库的140个经过验证的任务,涉及C、C++、C#、Go和Rust,其中包括91个从Windows到Linux的迁移和49个从Linux到Windows的迁移。我们使用SWE-agent、Claude Code、OpenHands和Win-agent评估了六个模型。最佳配置在Linux目标任务上仅达到26.4%的成功率,在Windows目标任务上仅达到20.4%的成功率,同时保留了两个系统的正确性。这些结果表明,跨OS迁移是一项具有挑战性且探索不足的能力,而OS-Bench是改进平台感知SWE智能体的测试平台。

英文摘要:

Language-model (LM) agents are increasingly evaluated on repository-level software engineering (SWE) benchmarks derived from GitHub issues and pull requests. Although these benchmarks cover a broad range of development tasks, they provide limited insight into a common yet technically distinct challenge: migrating an existing implementation from one operating system (OS) to another while preserving behavior on both. We introduce OS-Bench, an executable benchmark for cross-OS code migration between Linux and Windows. Motivated by case studies showing that cross-platform features are frequently implemented on one OS before support is added for another, OS-Bench identifies migration opportunities by comparing execution coverage collected from the same repository on both systems. Platform-specific regions are then verified, organized into five migration scenarios, and transformed into repository-level tasks with target-platform tests and source-platform regression tests. The resulting benchmark contains 140 validated tasks from 111 repositories across C, C++, C#, Go, and Rust, comprising 91 Windows-to-Linux and 49 Linux-to-Windows migrations. We evaluate six models with SWE-agent, Claude Code, OpenHands, and Win-agent. The best configurations achieve only 26.4% success on Linux-target tasks and 20.4% on Windows-target tasks while preserving correctness across both systems. These results indicate that cross-OS migration is a challenging and underexplored capability, and OS-Bench is a testbed for improving platform-aware SWE agents.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑