Preprint
Large Language Models

The Role of Prompting and External Tools in Hallucination Rates of LLMs

Liam Barkley, Brink van der Merwe
October 25, 2024arXiv.org14 citations

14

Citations

0

Influential Citations

arXiv.org

Venue

2024

Year

Abstract

Large Language Models (LLMs) are powerful computational models trained on extensive corpora of human-readable text, enabling them to perform general-purpose language understanding and generation. LLMs have garnered significant attention in both industry and academia due to their exceptional performance across various natural language processing (NLP) tasks. Despite these successes, LLMs often produce inaccuracies, commonly referred to as hallucinations. Prompt engineering, the process of designing and formulating instructions for LLMs to perform specific tasks, has emerged as a key approach to mitigating hallucinations. This paper provides a comprehensive empirical evaluation of different prompting strategies and frameworks aimed at reducing hallucinations in LLMs. Various prompting techniques are applied to a broad set of benchmark datasets to assess the accuracy and hallucination rate of each method. Additionally, the paper investigates the influence of tool-calling agents (LLMs augmented with external tools to enhance their capabilities beyond language generation) on hallucination rates in the same benchmarks. The findings demonstrate that the optimal prompting technique depends on the type of problem, and that simpler techniques often outperform more complex methods in reducing hallucinations. Furthermore, it is shown that LLM agents can exhibit significantly higher hallucination rates due to the added complexity of external tool usage.

Analysis

Why This Paper Matters

Hallucinations remain a critical barrier to the reliable deployment of large language models in real-world applications. While prompt engineering has been widely touted as a mitigation strategy, there is limited systematic evidence comparing different approaches across diverse tasks. This paper addresses that gap by providing a comprehensive empirical evaluation of prompting techniques and tool-calling agents, offering actionable insights for practitioners.

The finding that simpler prompting techniques often outperform more complex methods challenges the prevailing trend toward elaborate prompt structures. This is significant because it suggests that over-engineering prompts may introduce unnecessary complexity without proportional benefit, and that a more measured approach could yield better reliability. Additionally, the investigation into tool-calling agents reveals a potential downside of augmenting LLMs with external tools, which is increasingly common in agentic systems.

Technical Contributions

  • Empirical comparison of prompting strategies: The paper systematically evaluates multiple prompting techniques (e.g., chain-of-thought, self-consistency, etc.) on benchmark datasets, measuring both accuracy and hallucination rates.
  • Analysis of tool-calling agents: It extends the evaluation to LLM agents that use external tools, quantifying the impact on hallucination rates.
  • Task-dependent performance: The study demonstrates that the optimal prompting technique varies by problem type, providing a nuanced view rather than a one-size-fits-all recommendation.
  • Simplicity vs. complexity: A key contribution is the observation that simpler techniques often yield lower hallucination rates than more complex ones, which is counterintuitive and practically valuable.

Results

While the abstract does not provide specific numerical metrics, the key results are clear: the best prompting technique is not universal but depends on the task. Simpler methods frequently achieve lower hallucination rates than complex ones, suggesting that added complexity can be detrimental. Furthermore, tool-calling agents show significantly higher hallucination rates, likely due to the increased complexity and potential for error propagation from external tools. These findings are based on a broad set of benchmarks, though the exact datasets and models are not specified in the abstract.

Significance

This research has immediate practical implications for AI practitioners: it cautions against blindly adopting complex prompting frameworks and highlights the need to match the technique to the problem. It also raises awareness about the risks of tool-calling agents, which are becoming prevalent in autonomous systems. By quantifying these trade-offs, the paper contributes to a more empirical foundation for prompt engineering and agent design, ultimately supporting the development of more trustworthy LLM applications. Future work could expand on this by detailing the specific benchmarks and models, and by exploring hybrid approaches that balance simplicity and capability.