SyncAI.news, a Varaisys broadcasting
ScarfBench: Benchmarking AI Agents for Enterprise Java Framework Migration
HF

Hugging Face Blog

· 1 min read

AI LabsHugging Face Blog

ScarfBench: Benchmarking AI Agents for Enterprise Java Framework Migration

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.

Figure: Spring → Jakarta Migration Example

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

Introducing ScarfBench

ScarfBench provides 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.

Benchmark at a Glance

Figure: ScarfBench Construction Pipeline

Original source

This story was published by Hugging Face Blog. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on huggingface.co

Similar News