Beyond Schema Conformance with Executable Verification for Scientific Configuration Repair
This paper demonstrates that while fine-tuning and retrieval-augmented generation significantly improve the structural validity of LLM-generated scientific configurations for a finite-element solver, these gains do not reliably translate to numerical correctness, highlighting the critical need for executable verification over schema conformance or model judgment alone.
Original paper licensed under CC BY 4.0 (https://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
In the quiet, high-stakes world of scientific computing, researchers rely on complex digital instructions to simulate the behavior of the physical universe. These instructions, known as configuration files, tell powerful software exactly how to set up a simulation, what materials to use, and what measurements to take. For decades, scientists have written these files by hand, but a new wave of artificial intelligence promises to write them automatically. Large language models, the same type of technology that can draft emails or write stories, are increasingly being asked to generate these technical blueprints. The hope is that these models can speed up discovery by handling the tedious details of setup. However, a critical question remains: just because a computer can read the file and start running does not mean the file actually tells the computer to do the right thing. A file can be perfectly formatted and grammatically correct according to the software's rules, yet still instruct the machine to calculate the wrong physics.
This gap between a file that looks right and a result that is right is the focus of a new study by Wasif Masood and Shoaib Noor of Empirisch Tech GmbH. They investigated whether artificial intelligence could not only generate these scientific files but also fix them when they contained errors, and whether the fixes actually worked. To test this, they used Palace, a sophisticated open-source software tool used to model electromagnetic waves, which are essential for designing everything from medical imaging devices to next-generation antennas. The researchers built a rigorous testing ground where they deliberately broke valid configuration files in specific ways, such as changing a number to a word, removing a required section, or altering a physical unit like meters to kilometers. They then asked various versions of an AI model to repair these broken files. The researchers did not stop at checking if the AI produced a file that the software could read; they went further to see if the repaired file produced the exact same numerical results as the original, trusted version.
The study revealed a stark reality about the current state of artificial intelligence in science. When the AI was tested on configuration files that were similar to the ones it had seen during its training, it performed quite well at the surface level. It could successfully generate files that followed the correct syntax and passed the software's initial checks. In fact, for these familiar cases, the system managed to produce structurally valid files in 96 percent of attempts and got the software to run without crashing in 93 percent of cases. However, the true test was whether the simulation produced the correct numbers. When the researchers compared the AI's output to the trusted reference values, the success rate dropped significantly. Only 63 percent of the repairs on these familiar cases actually reproduced the correct physical behavior.
The situation became much more difficult when the researchers tested the AI on entirely new, unseen configuration files that were created after the model stopped learning. Here, the gap between a file that looks good and a result that is good widened dramatically. The AI managed to create files that the software could read in 89 percent of cases and get the software to run in 81 percent of cases. Yet, when it came to producing the correct numerical results, the success rate plummeted to just 41 percent. This drop is partly explained by the fact that this set of new tasks included 12 specific cases where the instructions were intentionally incomplete: the prompts asked the AI to change a physical length scale but did not provide the correct target value or enough information to determine it uniquely. Because the correct answer was missing from the task description itself, a perfect repair was impossible by design for these specific cases. Even when the researchers excluded these underspecified tasks, the success rate on the remaining new cases was still significantly lower than on the familiar ones, suggesting that while artificial intelligence has become quite good at mimicking the structure and format of scientific instructions, it struggles to understand the underlying physical logic required to generate the correct outcome. The model can learn the shape of the file, but it has not yet learned to reliably learn the physics inside it.
The researchers also explored whether adding extra tools could help the AI bridge this gap. They tried giving the model access to a search engine to find relevant documentation and a calculator to handle basic math, and they allowed the model to try fixing its own mistakes if the software rejected the first attempt. These additions did improve the results, particularly for the new, unseen cases, but they did not close the divide between a file that runs and a file that is correct. Even with these aids, the system could not consistently ensure that the simulation matched the intended physical reality. This indicates that the problem is not just a lack of information or a simple calculation error, but a deeper difficulty in translating a scientific goal into a precise set of instructions that yields the right numbers.
Perhaps the most surprising finding was that the AI itself cannot be trusted to judge its own work. The researchers asked advanced AI models to act as judges, looking at the generated files and deciding if they were correct without running the actual simulation. These "blind" judges were inconsistent and often wrong. On some sets of tests, a judge would reject almost every file that was actually correct, while on others, it would accept almost everything. This inconsistency proves that relying on an AI to check another AI's work is unreliable when the stakes involve precise scientific calculations. The only dependable way to know if a scientific configuration is correct is to actually run the simulation and compare the numbers to a known standard.
The study concludes that for artificial intelligence to be truly useful in scientific configuration, we must move beyond simple checks that only verify if a file is formatted correctly. A file that passes a syntax check is necessary, but it is not enough. The researchers suggest that the field must adopt a standard where generated configurations are verified by actually running them and checking the numerical results against trusted references. Until this happens, the promise of AI in scientific computing will remain limited to generating files that look right, rather than files that do the right thing. The path forward requires a shift in how we evaluate these tools, prioritizing the physical truth of the output over the structural perfection of the input.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.