ΑΙhub.org
 

Making it easier to verify an AI model’s responses


by
15 November 2024



share this:

An image of multiple 3D shapes representing speech bubbles in a sequence, with broken up fragments of text within them.Wes Cockx & Google DeepMind / Better Images of AI / AI large language models / Licenced by CC-BY 4.0

By Adam Zewe

Despite their impressive capabilities, large language models are far from perfect. These artificial intelligence models sometimes “hallucinate” by generating incorrect or unsupported information in response to a query.

Due to this hallucination problem, an LLM’s responses are often verified by human fact-checkers, especially if a model is deployed in a high-stakes setting like health care or finance. However, validation processes typically require people to read through long documents cited by the model, a task so onerous and error-prone it may prevent some users from deploying generative AI models in the first place.

To help human validators, MIT researchers created a user-friendly system that enables people to verify an LLM’s responses much more quickly. With this tool, called SymGen, an LLM generates responses with citations that point directly to the place in a source document, such as a given cell in a database.

Users hover over highlighted portions of its text response to see data the model used to generate that specific word or phrase. At the same time, the unhighlighted portions show users which phrases need additional attention to check and verify.

“We give people the ability to selectively focus on parts of the text they need to be more worried about. In the end, SymGen can give people higher confidence in a model’s responses because they can easily take a closer look to ensure that the information is verified,” says Shannon Shen, an electrical engineering and computer science graduate student and co-lead author of a paper on SymGen.

Through a user study, Shen and his collaborators found that SymGen sped up verification time by about 20 percent, compared to manual procedures. By making it faster and easier for humans to validate model outputs, SymGen could help people identify errors in LLMs deployed in a variety of real-world situations, from generating clinical notes to summarizing financial market reports.

Shen is joined on the paper by co-lead author and fellow EECS graduate student Lucas Torroba Hennigen; EECS graduate student Aniruddha “Ani” Nrusimha; Bernhard Gapp, president of the Good Data Initiative; and senior authors David Sontag, a professor of EECS, a member of the MIT Jameel Clinic, and the leader of the Clinical Machine Learning Group of the Computer Science and Artificial Intelligence Laboratory (CSAIL); and Yoon Kim, an assistant professor of EECS and a member of CSAIL. The research was recently presented at the Conference on Language Modeling.

Symbolic references

To aid in validation, many LLMs are designed to generate citations, which point to external documents, along with their language-based responses so users can check them. However, these verification systems are usually designed as an afterthought, without considering the effort it takes for people to sift through numerous citations, Shen says.

“Generative AI is intended to reduce the user’s time to complete a task. If you need to spend hours reading through all these documents to verify the model is saying something reasonable, then it’s less helpful to have the generations in practice,” Shen says.

The researchers approached the validation problem from the perspective of the humans who will do the work.

A SymGen user first provides the LLM with data it can reference in its response, such as a table that contains statistics from a basketball game. Then, rather than immediately asking the model to complete a task, like generating a game summary from those data, the researchers perform an intermediate step. They prompt the model to generate its response in a symbolic form.

With this prompt, every time the model wants to cite words in its response, it must write the specific cell from the data table that contains the information it is referencing. For instance, if the model wants to cite the phrase “Portland Trailblazers” in its response, it would replace that text with the cell name in the data table that contains those words.

“Because we have this intermediate step that has the text in a symbolic format, we are able to have really fine-grained references. We can say, for every single span of text in the output, this is exactly where in the data it corresponds to,” Torroba Hennigen says.

SymGen then resolves each reference using a rule-based tool that copies the corresponding text from the data table into the model’s response.

“This way, we know it is a verbatim copy, so we know there will not be any errors in the part of the text that corresponds to the actual data variable,” Shen adds.

Streamlining validation

The model can create symbolic responses because of how it is trained. Large language models are fed reams of data from the internet, and some data are recorded in “placeholder format” where codes replace actual values.

When SymGen prompts the model to generate a symbolic response, it uses a similar structure.

“We design the prompt in a specific way to draw on the LLM’s capabilities,” Shen adds.

During a user study, the majority of participants said SymGen made it easier to verify LLM-generated text. They could validate the model’s responses about 20 percent faster than if they used standard methods.

However, SymGen is limited by the quality of the source data. The LLM could cite an incorrect variable, and a human verifier may be none-the-wiser.

In addition, the user must have source data in a structured format, like a table, to feed into SymGen. Right now, the system only works with tabular data.

Moving forward, the researchers are enhancing SymGen so it can handle arbitrary text and other forms of data. With that capability, it could help validate portions of AI-generated legal document summaries, for instance. They also plan to test SymGen with physicians to study how it could identify errors in AI-generated clinical summaries.

Read the work in full

Towards verifiable text generation with symbolic references, Lucas Torroba Hennigen, Shannon Zejiang Shen, Aniruddha Nrusimha, Bernhard Gapp, David Sontag and Yoon Kim.




MIT News

            AUAI is supported by:



Subscribe to AIhub newsletter on substack



Related posts :

The accountability vacuum: Agentic AI in high-stakes domains

, and   24 Aug 2026
In the latest issue of AI Matters, Larry Medsker and Sumit Virmani define the accountability vacuum faced by the deployment of agentic AI systems into an unprepared world.

Congratulations to the #IJCAI-ECAI 2026 distinguished paper award winners

  21 Aug 2026
Find out who has won the prestigious awards at the conference in Bremen.

The Machine Ethics podcast: MLops and HCI with Demetrios Brinkmann

In this episode, Ben chats to Demetrios about ML and MLops, narrow machine learning being still relevant, vibe coding, working with agents, and more.
AI pioneers

On Rashomon sets, the mathematics of simplicity, and why we don’t need black boxes: an interview with Cynthia Rudin

  19 Aug 2026
We speak to AI Pioneer Cynthia Rudin about interpretability, noise, and the case against complexity for complexity's sake.

#IJCAI-ECAI 2026: social media round-up part one

  18 Aug 2026
What have participants been getting up to during the opening days in Bremen?

#AAMAS2026 blue sky award winner: Foundation world models for agents in changing environments

  17 Aug 2026
Hear from the AAMAS 2026 Best Blue Sky Paper Award winner.

What’s coming up at IJCAI-ECAI 2026?

  14 Aug 2026
Find out what the programme has in store for attendees in Bremen.
coffee corner

AIhub Coffee Corner: does AI change the way we think?

  13 Aug 2026
The AIhub coffee corner captures the musings of AI experts over a short conversation.



AUAI is supported by:







Subscribe to AIhub newsletter on substack




 















©2026.05 - Association for the Understanding of Artificial Intelligence