Top AI coding tools make mistakes one in four times
Benchmarking research shows leading AI models still struggle to reliably produce structured outputs used in software development
Benchmarking research shows leading AI models still struggle to reliably produce structured outputs used in software development
By Media RelationsNew research from the University of Waterloo shows that artificial intelligence (AI) still struggles with some basic software development tasks, raising questions about how reliably AI systems can assist developers.
As Large Language Models (LLMs) are increasingly incorporated into software development, developers have struggled to ensure that AI-generated responses are accurate, consistent, and easy to integrate into larger development workflows.
Previously, LLMs responded to software development prompts with free-form natural language answers. To address this problem, several AI companies, including OpenAI, Google and Anthropic, have introduced “structured outputs”. These outputs force LLM responses to follow predefined formats such as JSON, XML, or Markdown, making them easier for both humans and software systems to read and process.
A new benchmarking study from Waterloo, however, shows that the technology is not yet as reliable as many developers had hoped. Even the most advanced models achieved only about 75 per cent accuracy in the tests, while open-source models performed closer to 65 per cent.
The study evaluated 11 LLM models across 18 structured output formats and 44 tasks designed to assess how reliably the systems followed structured rules.
“With this kind of study, we want to measure not only the syntax of the code – that is, whether it’s following the set rules – but also whether the outputs produced for various tasks were accurate,” said Dongfu Jiang, a PhD student in computer science and co-first author on the research. “We found that while they do okay with text-related tasks, they really struggle on tasks involving image, video, or website generation.”
The study was a collaborative effort involving Waterloo’s Jialin Yang, an undergraduate student, and Dr. Wenhu Chen, an assistant professor of computer science, and incorporated annotations from 17 other researchers at Waterloo and around the world.
“There have been a lot of similar benchmarking projects happening in our labs recently,” Chen said. “At Waterloo, students often begin as annotators, then organize projects and create their own benchmarking studies. They’re not just using AI in their studies – they’re building, researching and evaluating it.”
While LLM-structured outputs are an exciting step for software development, the researchers say the systems are not yet reliable enough to operate without human oversight. “Developers might have these agents working for them, but they still need significant human supervision,” Jiang said.
The research, “StructEval: Benchmarking LLMs’ Capabilities to Generate Structural Outputs,” appears in Transactions on Machine Learning Research and will be presented at ICLR 2026.

A nurse checks the blood pressure and heart rate of a woman as both sit on a bed. Researchers have found that estrogen’s ability to relax blood vessels plays a key role in protecting women from high blood pressure and may inform more effective treatments after menopause. (Getty Images/ Happy Kikky)
Read more
New research sheds light on why premenopausal women face lower hypertension risk and what that means for treatment after menopause

A car’s exhaust pipe emits black carbon. This sooty form of pollution alters the “light environment” beneath the snow, affecting plant growth. (Kmatija/Getty Images)
Read more
Research into light and snow interactions provides new insights into how pollution can affect vegetation growth and impact ecosystems

Read more
Phantom Photonics’ quantum remote sensing technology offers precision for industries operating in extreme environments where GPS doesn’t work
The University of Waterloo acknowledges that much of our work takes place on the traditional territory of the Neutral, Anishinaabeg, and Haudenosaunee peoples. Our main campus is situated on the Haldimand Tract, the land granted to the Six Nations that includes six miles on each side of the Grand River. Our active work toward reconciliation takes place across our campuses through research, learning, teaching, and community building, and is co-ordinated within the Office of Indigenous Relations.