Urgent.News

What's breaking now, across thousands of outlets.

AI

AI Hallucinations Are Not a Bug, They're a Feature

One of the most common complaints or criticisms about AI is perhaps its tendency to hallucinate. In AI terminology, a hallucination occurs when a chatbot generates information that is false or fabricated while presenting it as if it were true. I remember an example from more than a year ago. I asked a chatbot who the husband of Elizabeth, the mother of John the Baptist, was in the Bible. The…

Artificial intelligence (AI) systems have long been criticized for their propensity to generate false or fabricated information known as hallucinations. A hallucination occurs when a chatbot presents fabricated information as if it were true. To illustrate the issue, a chatbot once incorrectly stated that Elizabeth, the mother of John the Baptist, was married to Aaron, when the correct answer is Zechariah.

The reason AI models like this chatbot can hallucinate is due to the way they function. These models learn statistical patterns and relationships from vast amounts of text data. When given a prompt, they use this learned knowledge to predict the most appropriate response. In the aforementioned example, the model likely associated "priest" with "Aaron" based on statistical learnings, resulting in an incorrect answer.

Although larger AI models with more training data may exhibit fewer hallucinations, no amount of statistical pattern recognition can guarantee that every generated answer will be factually correct. Therefore, it is essential to implement measures to reduce the occurrence of these errors. One common approach is Retrieval Augmented Generation (RAG), which allows AI systems to retrieve relevant information from external knowledge bases to ground their responses in accurate context.

However, merely providing an AI system with access to a knowledge base is not sufficient to eliminate all hallucinations. An additional step is necessary: establishing a standard that requires the AI agent to ground its responses in the retrieved text. This concept is exemplified by SAFi, which builds knowledge bases on-the-fly and attaches them as sources of truth to AI agents.

By requiring the agent to ground its responses in the retrieved text, the system can significantly reduce the likelihood of hallucinations, particularly those that contradict the provided information. For instance, if the documentation states that a widget is blue, the system should not confidently claim that it is yellow. The ultimate goal is not to create an infallible AI but to build systems capable of recognizing when they may be wrong, verifying their reasoning against reliable sources, and flagging contradictions before those answers reach the user.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

More from Wednesday 9 September →