Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer
Imagine you are trying to figure out how a group of strangers are related to each other, like building a family tree for a massive crowd. In the world of biology, scientists do this all the time with bacteria and viruses to understand how they evolve. The tool they use to draw these trees is called "Neighbour Joining."
For years, the fastest way to draw these trees has been like a master craftsman using a custom-made, hand-tuned chisel. This "chisel" is a piece of computer code called RapidNJ. It's incredibly fast because it was built by expert human programmers who tweaked every single screw to make it run as efficiently as possible.
The Experiment: Can an AI Apprentice Do Better?
This paper asks a bold question: In 2026, can a super-smart AI coding assistant, acting like a highly skilled apprentice, build a tool that is even faster than the master craftsman's hand-tuned chisel?
To test this, the researchers didn't just let the AI guess. They set up a strict "safety harness." Think of this harness as a rigorous quality control inspector. Every time the AI wrote a new line of code, the inspector checked it against a trusted reference (called QuickTree) to make sure the answer was 100% correct. If the AI made a mistake, the code was rejected immediately. This ensured that while the AI was trying to be faster, it never sacrificed accuracy.
The Result: A New Champion
The AI, guided by this strict inspector, created a new tool called SwiftNJ.
When they put SwiftNJ head-to-head against the old champion (RapidNJ) on a test set of 59 different data puzzles:
- SwiftNJ was, on average, nearly twice as fast (specifically, it took only about 56% of the time the old tool needed).
- It beat the old tool in 58 out of the 59 tests.
- Crucially, on 400 extra tests, SwiftNJ produced the exact same perfect family trees as the trusted reference, proving it didn't cut corners to get its speed.
The Takeaway
This study shows that in the specific, high-stakes world of building evolutionary trees, a human-guided AI can actually outperform the best human-written code that has been optimized for years. It suggests that if you give an AI a strict "rulebook" to ensure it never makes mistakes, it can find clever shortcuts to make complex scientific tools run much faster. However, the paper stops there, noting that we still need to see if this trick works for other types of scientific problems.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.