AI
New Benchmark Reveals LLMs Struggle with Robot Software Migration Tasks
Researchers introduce ROSTrans, a test suite that exposes weaknesses in large language models when adapting robotics code between ROS versions.
Researchers have unveiled a comprehensive benchmark that tests how well large language models handle a practical but demanding task in robotics: converting Robot Operating System (ROS) code from version 1 to version 2. The findings reveal significant limitations in current LLMs when tackling specialized software engineering challenges.
The ROSTrans Benchmark#
Dubbed ROSTrans, the evaluation framework draws from 70+ open-source ROS1 codebases and comprises 108 scaffolded code completion tasks. Rather than relying on abstract metrics, the benchmark emphasizes what matters in real robotics: whether migrated code actually runs correctly when nodes communicate via topics, services, actions, and parameters. Each task includes an executable reference implementation, a test suite that launches the software, and a containerized environment to ensure reproducible results.
Why ROS Migration Is Hard#
Migrating between ROS versions involves more than simple syntax updates. The process requires navigating inter-node coordination logic, middleware configuration, and lifecycle semantics that extend far beyond standard software development patterns. Many correctness issues only surface during runtime—a scenario where compile-only verification falls short.
LLM Performance Falls Short#
When six frontier models were evaluated with five stochastic generations per task, the results underscored the challenge. Models achieved a pass@1 rate below 10.9%. Even more revealing: 56.5% of generated samples compiled successfully but then failed when executed, while 32.0% failed runtime checks on migrated interfaces—errors that static analysis alone cannot catch.
Improvement Through Iterative Repair#
The researchers found that execution-guided repair offered a path forward. After three rounds of iterative refinement, Claude Opus 4.6 and GPT-5.5 reached success rates of 49.1% and 47.2%, respectively, demonstrating that feedback from execution failures can substantially boost model performance in specialized domains.

