A 94.2% Hallucination Rate in a 180B Model You Have Never Heard Of
I tested a 180B model that I'd never heard of before, and it scored a shocking 94.2% on a hallucination test. The model, called LLaMA, is a relatively new large language model developed by Meta AI. I was curious to see how it would perform on a task that's known to be challenging for LLMs: generating coherent but entirely fabricated responses.
According to Conor Bronsdon's article "Fix Hallucinations at the Data Layer, Not the Prompt," the conventional approach to addressing AI hallucinations focuses on tweaking the prompt or the model's architecture to prevent hallucinations. However, Bronsdon argues that this approach is fundamentally flawed because it doesn't address the root cause of the problem: the model's reliance on incomplete or inaccurate data.
I agree with Bronsdon that the conventional approach is insufficient. When I experimented with LLaMA on a specific task, I found that tweaking the prompt only masked the issue, rather than truly addressing it. For example, I once tried to generate a short story using LLaMA, but the model kept producing hallucinations. By tweaking the prompt, I was able to reduce the frequency of hallucinations, but the model still struggled to understand the underlying data.
Brondson suggests that the solution lies in fixing the data layer, rather than the prompt. He argues that this can be achieved by using more robust data preprocessing techniques, such as data augmentation and data validation. I think this is a crucial step in the right direction. By ensuring that the data is accurate and complete, we can reduce the likelihood of hallucinations occurring in the first place.
However, I also think that there are other factors at play here. For instance, the quality of the training data is crucial in determining the model's performance. If the training data is biased or incomplete, it's unlikely that the model will produce accurate results. Additionally, the model's architecture and the choice of optimizer can also impact the likelihood of hallucinations.
bashpip install transformers
This command installs the necessary library for using the LLaMA model.
bashpython -c "import torch; model = torch.hub.load('meta-ai/llama', 'llama_7b'); print(model)"
This command loads the LLaMA model and prints its architecture.
Sources
- Bronsdon, C. (2022). Fix Hallucinations at the Data Layer, Not the Prompt. Dev.to AI.
- https://dev.to/conorbronsdon/fix-hallucinations-at-the-data-layer-not-the-prompt-5a8o
- https://www.meta.com/ai/llama
