全球大模型进展新闻浏览站
中文头版English
输入关键词,快速查找已抓取新闻。

今日版 / 2026年8月12日星期三

limbo logolimbo

数据更新时间

6月30日 18:32

启用来源

17

抓取状态

真实抓取

研究进展Hugging Face Blog

ScarfBench:评估AI代理迁移企业Java框架的基准

摘要

Hugging Face 博客发布 ScarfBench,这是一个用于评估 AI 代理在迁移企业 Java 框架任务中表现的基准。该基准旨在衡量 AI 在复杂代码迁移中的能力,为开发者提供参考。

背景解释

企业级 Java 框架迁移通常耗时且易出错,AI 代理有望自动化此过程。ScarfBench 提供了标准化评估,帮助开发者了解 AI 工具在真实场景中的表现,从而推动更高效的迁移实践。

原文译文

以下为抓取到的原文内容译文,已统一为站内阅读格式。

阅读原文

Back to Articles

ScarfBench: Benchmarking AI Agents for Enterprise Java Framework Migration

EnterpriseArticle

Published June 30, 2026

Upvote \ \ 24

  • ![](https://huggingface.co/Violette "Violette")
  • ![](https://huggingface.co/stamilse "stamilse")
  • ![](https://huggingface.co/ilmg "ilmg")
  • ![](https://huggingface.co/ydeng "ydeng")
  • ![](https://huggingface.co/saurabhjha1 "saurabhjha1")
  • ![](https://huggingface.co/SaylorTwift "SaylorTwift")
  • +18

![Raju Pavuluri's avatar](https://huggingface.co/rpavuluri)

Raju Pavuluri\ rpavuluri\ \ Follow

![IBM Research's avatar](https://huggingface.co/ibm-research "IBM Research")ibm-research

![Rahul Krishna's avatar](https://huggingface.co/rkrsn)

Rahul Krishna\ rkrsn\ \ Follow

![IBM Research's avatar](https://huggingface.co/ibm-research "IBM Research")ibm-research

![Srikanth Govindaraj Tamilselvam's avatar](https://huggingface.co/stamilse)

Srikanth Govindaraj Tamilselvam\ stamilse\ \ Follow

![IBM Research's avatar](https://huggingface.co/ibm-research "IBM Research")ibm-research

![Bridget M's avatar](https://huggingface.co/brmcg)

Bridget M\ brmcg\ \ Follow

![IBM Research's avatar](https://huggingface.co/ibm-research "IBM Research")ibm-research

![Ashita Saxena's avatar](https://huggingface.co/ashitasaxenaIBM)

Ashita Saxena\ ashitasaxenaIBM\ \ Follow

![IBM Research's avatar](https://huggingface.co/ibm-research "IBM Research")ibm-research

![George Safta's avatar](https://huggingface.co/george-safta)

George Safta\ george-safta\ \ Follow

![IBM Research's avatar](https://huggingface.co/ibm-research "IBM Research")ibm-research

![Advait Pavuluri's avatar](https://huggingface.co/apavuluri)

Advait Pavuluri\ apavuluri\ \ Follow

![IBM Research's avatar](https://huggingface.co/ibm-research "IBM Research")ibm-research

![Michele Merler's avatar](https://huggingface.co/mimerler)

Michele Merler\ mimerler\ \ Follow

![IBM Research's avatar](https://huggingface.co/ibm-research "IBM Research")ibm-research

⭐\ Star ScarfBench on GitHub

Modernizing enterprise applications is one of the largest and most expensive software engineering activities organizations undertake. Teams migrate applications across frameworks to improve maintainability, cloud readiness, developer productivity, and access to modern capabilities.

Recent advances in coding agents have sparked excitement around AI-assisted modernization. But an important question remains:

Can AI agents reliably modernize real-world enterprise applications?

Existing software engineering benchmarks have demonstrated impressive progress in bug fixing and code generation, but framework migration presents a fundamentally different challenge. Success requires not only translating code, but also preserving behavior, adapting build systems, and navigating runtime dependencies.

To address this gap, we introduce ScarfBench (Self-Contained Application Refactoring Benchmark), an open benchmark for evaluating AI agents on cross-framework migration tasks in Enterprise Java.

ScarfBench focuses on migrations across three major Java ecosystems:

  • Spring
  • Jakarta EE
  • Quarkus

Unlike traditional benchmarks that compare generated code against reference implementations, ScarfBench evaluates whether migrated applications actually build, deploy, and preserve behavior.

Why Migration Is Hard

Framework migration is much more than replacing annotations.

A simple repository migration can require changes across dependency injection, persistence configuration, queries, and framework descriptors. Small mistakes in any of these pieces can prevent successful deployment.

scarf-intro-anatomy

Figure: Spring → Jakarta Migration Example

Framework migration requires translating framework semantics, not just source code.

Introducing ScarfBench

ScarfBenchprovides a systematic way to evaluate AI agents on enterprise Java framework migration tasks.

Applications are required to:

  1. Build successfully.
  2. Deploy correctly.
  3. Pass behavioral validation.

This provides a much more realistic measure of modernization quality.

Benchmark at a Glance

| Metric | Value | | --- | --- | | Applications | 34 | | Framework implementations | 102 | | Migration tasks | 204 | | Lines of code | ~151K | | Source and test files | ~2,000 | | Expert-written tests | 1,331 |

ScarfBench includes both focused migration tasks and whole-application migrations.

scarf-intro-fig

Figure: ScarfBench Construction Pipeline

Starting from a JSR-based enterprise Java taxonomy, expert migrations create verified implementations across Spring, Jakarta EE, and Quarkus.

How Do Frontier Agents Perform?

We evaluated several state-of-the-art coding agents on ScarfBench.

Despite strong performance on traditional software engineering benchmarks, framework migration remains difficult. Success rates vary considerably across framework pairs and whole-application migrations remain particularly challenging.

leaderboard

Figure: Current Leaderboard

Source:scarfbench.info/leaderboard

Even the strongest current agents achieve less than 10% behavioral success, illustrating the gap between generating compilable code and preserving application behavior.

scarf_aggregate_progression

Figure: Compile → Deploy → Test Progression

Compile success consistently exceeds deploy success, which in turn exceeds behavioral success. Build success alone significantly overestimates migration quality.

sankey

Figure: Migration Outcomes by Target Framework

Migration difficulty depends strongly on the target framework, with Jakarta EE proving particularly challenging.

What We Learned About AI Agents for Java Modernization

Beyond measuring success rates, ScarfBench helps us understand how agents behave during modernization.

Can Agents Reliably Tell When a Migration Is Complete?

A migrated application is only useful if it actually builds and runs.

We therefore compared agent-reported outcomes against independent build verification.

#### Finding: Agents Are Overconfident

Claude Code reported successful builds for 29 out of 30 whole applications.

Only 22 of those applications actually built successfully.

Meanwhile, the single application classified as failed by the agent ultimately built correctly.

This suggests that agent self-assessment should not be treated as a reliable signal of migration completion.

Independent build and test validation remains essential.

How Do Agents Navigate Application Dependencies?

Framework migrations rarely affect a single file or layer.

Changes in configuration, services, databases, and web components often cascade across the application.

#### Finding: Migration Is Iterative Rather Than Linear

The most frequently visited layers were:

  • Configuration
  • Web
  • Database
  • Service

Common transitions included:

  • Configuration ↔ Web
  • Service ↔ Database

This suggests that migration is an iterative dependency-resolution process rather than a simple source-to-source transformation.

Where Do Agents Spend Most of Their Effort?

We used layer revisit frequency as a proxy for migration effort. Layers that required repeated visits typically involved debugging, dependency resolution, or framework adaptation.

#### Finding: Configuration Dominates Migration Effort

Rather than proceeding linearly, agents repeatedly returned to configuration-related artifacts while resolving framework differences and dependency issues.

What Challenges Are Not About Code Transformation?

Not every migration issue originates from source code.

#### Finding: Environment and Tooling Matter

Agents frequently struggled with environmental issues, including:

  • Docker cache inconsistencies
  • Port connectivity problems
  • Maven wrapper and build tooling issues

These operational concerns often delayed validation even when the source-code migration itself was largely complete.

failure-distribution

Figure: Failure Mode Distribution

Modernization failures span build systems, deployment environments, dependency injection, databases, endpoints, assertions, and infrastructure.

Key Takeaway

The biggest challenge in framework modernization is not translating Java code.

It is managing the web of dependencies across configuration, infrastructure, and runtime environments.

While frontier agents can automate substantial portions of the migration process, reliable validation and architectural reasoning remain critical for achieving successful outcomes.

ScarfBench helps expose these challenges and provides a standardized way to measure progress toward truly autonomous application modernization.

Explore ScarfBench

ScarfBench is designed as an open resource for researchers and practitioners.

Resources include:

  • Benchmark dataset
  • Evaluation infrastructure
  • Public leaderboard
  • Documentation
  • Open-source code

Researchers can compare agent architectures and techniques. Practitioners can use ScarfBench to evaluate modernization solutions before deploying them in production environments.

Website

https://scarfbench.info

Dataset

https://huggingface.co/datasets/ibm-research/ScarfBench

Space

https://huggingface.co/spaces/ibm-research/ScarfBench

GitHub Repository

https://github.com/scarfbench/scarfbench

Leaderboard

https://scarfbench.info/leaderboard

Paper

https://arxiv.org/abs/2605.06754

Framework migration remains one of the largest unsolved problems in AI-assisted software engineering. We hope ScarfBench helps the community measure progress and accelerate the next generation of AI-assisted application modernization.

We invite researchers, practitioners, and framework communities to evaluate their agents, contribute new migration scenarios and help advance the state of the art.

Datasets mentioned in this article 1

Spaces mentioned in this article 1

More from this author

![\ \ Build real agentic apps using CUGA: two dozen working examples on a lightweight harness\ \

  • ![](https://cdn-avatars.huggingface.co/v1/production/uploads/637bfdf60dc13843b468ac20/npxapKcW-cXX3J2JBl2vY.png)\

\ 36\ \ June 23, 2026](https://huggingface.co/blog/ibm-research/cuga-apps)

![\ \ Beyond LLMs: Why Scalable Enterprise AI Adoption Depends on Agent Logic\ \

  • ![](https://cdn-avatars.huggingface.co/v1/production/uploads/637bfdf60dc13843b468ac20/npxapKcW-cXX3J2JBl2vY.png)\

\ 89\ \ June 1, 2026](https://huggingface.co/blog/ibm-research/agent-logic-and-scalable-ai-adoption)

Community

EditPreview

Upload images, audio, and videos by dragging in the text input, pasting, or clicking here.

Tap or paste here to upload images

Comment

·Sign uporlog into comment

Upvote \ \ 24

  • ![](https://huggingface.co/Violette "Violette")
  • ![](https://huggingface.co/stamilse "stamilse")
  • ![](https://huggingface.co/ilmg "ilmg")
  • ![](https://huggingface.co/ydeng "ydeng")
  • ![](https://huggingface.co/saurabhjha1 "saurabhjha1")
  • ![](https://huggingface.co/SaylorTwift "SaylorTwift")
  • ![](https://huggingface.co/brmcg "brmcg")
  • ![](https://huggingface.co/rkrsn "rkrsn")
  • ![](https://huggingface.co/yarizk "yarizk")
  • ![](https://huggingface.co/vinodmut "vinodmut")
  • ![](https://huggingface.co/Ashitasaxena "Ashitasaxena")
  • ![](https://huggingface.co/DhavalPatel "DhavalPatel")
  • +12

Datasets mentioned in this article 1

Spaces mentioned in this article 1

来源地区

Global

热度分

73

分类

研究进展

语言

en