ScarfBench: A Benchmark for Cross-Framework Application Migration in Enterprise Java
This paper introduces ScarfBench, a comprehensive benchmark for evaluating the ability of AI coding agents to perform behavior-preserving cross-framework migrations of enterprise Java applications across Spring, Jakarta EE, and Quarkus, revealing that current state-of-the-art models struggle significantly with this complex refactoring task.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a very old, well-built house. It's been lived in for decades, and it works perfectly for the family inside. But the neighborhood is changing. The old roads (the old software framework) are being paved over, and new, faster highways (modern frameworks) are being built. The family wants to move their furniture and keep their daily routine exactly the same, but they have to move into a house built on a completely different foundation with different plumbing, electrical wiring, and door handles.
This is the problem SCARFBENCH is trying to solve.
The Problem: Moving a House, Not Just Painting It
In the world of computer software, many big companies run their systems on "Java," a popular programming language. These systems are often built on three specific "frameworks" (think of these as different architectural styles or blueprints): Spring, Jakarta EE, and Quarkus.
Over time, companies want to switch from one style to another to save money or run faster. But you can't just swap the paint. You have to move the entire house.
- The Challenge: It's not just changing a few words. You have to rewrite how the house is wired, how the doors open, and how the water flows, all while making sure the family inside doesn't notice a single difference in their daily life.
- The Current State: Experts say this is incredibly hard. Until now, no one had a good way to test if Artificial Intelligence (AI) could do this job.
The Solution: SCARFBENCH (The "Moving Test")
The authors created a giant test called SCARFBENCH. Think of it as a "Moving Simulator" for software.
- The Setup: They took 34 different "houses" (software applications) that were built in one style (e.g., Spring).
- The Goal: They asked AI agents (smart computer programs) to rebuild these exact same houses in a different style (e.g., Quarkus or Jakarta), keeping the family's daily routine (the software's behavior) exactly the same.
- The Proof: They didn't just ask the AI, "Did you finish?" They built a strict "Oral Exam" (a test suite). The new house had to:
- Pass the building inspector (compile).
- Turn on the lights and water (deploy).
- Let the family walk through the front door, sit in the living room, and turn on the TV exactly as they did before (pass behavioral tests).
The Results: The AI is Still Learning to Move
The researchers tested five of the smartest AI coding agents available today. Here is what they found:
- The Score is Low: Even the best AI only managed to successfully move about 12% to 15% of the houses perfectly.
- The "Fake Success" Trap: Many AIs could build a house that looked good on paper and even turned on the lights (it compiled and deployed), but when the family tried to use it, the doors didn't open or the water didn't flow. The AI could translate the words of the blueprint, but it couldn't understand the logic of the house.
- Some Moves are Harder: Moving from one style to another was easier than others. Moving to the Jakarta style was the hardest; the AI failed to even get the house built (compile) in more than half the attempts.
- One Success: Out of 204 different moving tasks, only one was completed perfectly by an AI, where the new house worked exactly like the old one.
Why This Matters
This paper doesn't say AI is useless. It says that while AI is getting good at writing code, it is still terrible at re-architecting complex systems. It's like having a robot that can write a poem, but if you ask it to move your entire kitchen to a new house and keep the fridge working, it might put the fridge in the bedroom.
The authors released this "Moving Simulator" (the benchmark) so that other researchers can use it to teach AI how to do these complex moves better in the future. They are essentially saying, "Here is a measuring stick; use it to see if your new AI can actually move the house, not just paint the walls."
In short: SCARFBENCH is a reality check. It shows that while AI is great at small tasks, moving entire software systems from one modern framework to another without breaking them is still a job that requires human-level understanding, and current AI is not quite there yet.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.