← Latest papers
💻 computer science

InteractScience: Programmatic and Visually-Grounded Evaluation of Interactive Scientific Demonstration Code Generation

This paper introduces InteractScience, a novel benchmark and hybrid evaluation framework designed to assess Large Language Models' ability to generate interactive scientific demonstration code by combining programmatic functional testing with visually-grounded qualitative analysis across five scientific domains.

Original authors: Qiaosheng Chen, Yang Liu, Lei Li, Kai Chen, Qipeng Guo, Gong Cheng, Fei Yuan

Published 2026-05-21
📖 5 min read🧠 Deep dive

Original authors: Qiaosheng Chen, Yang Liu, Lei Li, Kai Chen, Qipeng Guo, Gong Cheng, Fei Yuan

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 are asking a very smart, well-read robot to build you a science experiment. You don't just want a picture of a volcano or a paragraph explaining how gravity works. You want a working, interactive simulation where you can drag a slider to change the wind speed and watch a virtual rocket fly, or push a button to see how planets orbit.

The paper "InteractScience" is about testing how good today's smartest AI robots are at building these specific kinds of interactive science demos.

Here is the breakdown of what they did, using simple analogies:

The Problem: The "Smart Talker" vs. The "Smart Builder"

The authors noticed that current AI models are great at two separate things:

  1. Talking about science: If you ask, "What forces act on a block on a ramp?" the AI can write a perfect textbook answer.
  2. Building static websites: If you ask, "Make me a blog with a blue header," the AI can write the code, and it looks nice.

But, when you ask the AI to combine them—"Make an interactive website where I can slide a block down a ramp and see the physics forces change in real-time"—the AI often fails. It might build a ramp that looks real, but when you slide the block, it flies off the screen because the math is wrong, or the buttons don't actually do anything.

It's like hiring an architect who can describe a house beautifully and lay bricks perfectly, but when asked to build a house with a working elevator, the elevator shaft is empty, or the doors open to a brick wall.

The Solution: A New "Report Card" (InteractScience)

The researchers built a new testing ground called InteractScience. Instead of just asking the AI to write code and hoping it works, they created a strict grading system with two distinct parts, like a teacher checking both the math and the drawing on a student's project.

Part 1: The "Robot Inspector" (Programmatic Functional Testing)

Imagine a robot inspector who doesn't care how pretty the website looks. This robot has a checklist of specific actions:

  • "Click the 'Start' button."
  • "Move the slider to 50%."
  • "Check if the number on the screen changed from 10 to 20."

If the AI's code fails to do exactly what the robot asked, it gets a zero for this part. This checks if the logic works.

Part 2: The "Art Critic" (Visually-Grounded Qualitative Testing)

Imagine an art critic who looks at the final picture. But this isn't just a human guessing; it's a super-smart AI judge.

  • The judge has a Reference Photo (the "Gold Standard" of what the demo should look like).
  • The judge has a Checklist (e.g., "Is the arrow pointing the right way?" "Is the curve smooth?").
  • The judge compares the AI's result to the photo and the checklist.

This checks if the science and visuals are correct.

What They Found

The researchers tested 30 different AI models (both free and paid) on 150 different science problems, ranging from easy (math graphs) to hard (complex physics simulations).

Here is the big surprise they found:

  • The "Shell" is good: Most AIs are great at building the "shell" of the app. They can make the buttons, sliders, and menus appear and work. If you click a button, it clicks. (This is like the robot inspector passing the "click" test).
  • The "Brain" is broken: However, when the AI actually tries to do the science, it often fails. The slider might move, but the physics equation behind it is wrong. The ball might fall, but it falls the wrong way.
  • The Gap: There is a huge gap between "making the buttons work" and "making the science work." The AI can build a car with working doors and a shiny paint job, but the engine doesn't turn the wheels.

Why This Matters

The paper argues that we can't just trust AI to build science tools yet. If a student uses an AI-generated simulation to learn physics, and the simulation has a hidden math error, the student learns the wrong thing.

InteractScience is the first tool that forces AI to prove it can do both the coding and the science correctly, not just one or the other. It's a reality check for the future of AI in education.

The Bottom Line

The paper concludes that while AI is getting better at writing code, it still struggles to integrate deep scientific knowledge into those codes. It's like a student who can memorize the dictionary but hasn't learned how to write a story. The researchers hope this new test will help developers fix these "brain" errors so that in the future, AI can truly be a reliable partner in science and education.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →