Skip to main content
QUICK REVIEW

[Paper Review] Investigating the Role of Prompting and External Tools in Hallucination Rates of Large Language Models

Liam Barkley, Brink van der Merwe|arXiv (Cornell University)|Oct 25, 2024
Mental Health Research TopicsPsychology4 citations
TL;DR

This paper empirically evaluates prompting strategies and tool-augmented LLM agents to reduce hallucinations in large language models across GSM8K, TriviaQA, and MMLU benchmarks. It finds that simpler prompting techniques like SC (sampling and voting) outperform complex frameworks, and that external tools—especially in weaker models—often increase hallucination rates due to flawed tool usage, undermining reliability despite added capabilities.

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.

Motivation & Objective

  • To investigate how different prompting strategies affect hallucination rates in large language models across diverse NLP tasks.
  • To evaluate the impact of integrating external tools (e.g., search, Python interpreter) into LLM agents on hallucination frequency.
  • To determine whether agent architectures improve accuracy or instead introduce new hallucinations due to complex tool management.
  • To compare the performance of black-box prompting techniques and tool-augmented agents against a baseline control strategy on standardized benchmarks.
  • To provide actionable insights for deploying reliable LLM applications by identifying effective prompting and tool-use patterns.

Proposed method

  • Applied a range of prompting strategies—including Chain-of-Thought (CoT), Self-Consistency (SC), Chain-of-Verification (CoV), and Correctness-Promoting (CP)—to LLMs on three benchmark datasets.
  • Implemented tool-augmented agent architectures (e.g., ReAct, DDGA) that enable LLMs to use external tools like Wikipedia and DuckDuckGo for information retrieval.
  • Used the 8B parameter LLaMA 3.1 model as the base LLM to ensure reproducibility and assess performance on a smaller, less powerful model.
  • Evaluated hallucination rates by comparing model outputs against gold-standard answers in GSM8K, TriviaQA, and MMLU datasets.
  • Measured success through correct answer rates and hallucination frequency, with tool usage tracked via logs of successful and failed tool calls.
  • Used a control strategy (no prompting or tool use) as the baseline for comparison across all prompting and agent frameworks.

Experimental results

Research questions

  • RQ1Which prompting strategy minimizes hallucination rates across different types of NLP tasks (e.g., math, trivia, multi-domain reasoning)?
  • RQ2How does integrating external tools into LLM agents affect hallucination rates compared to standard prompting or baseline inference?
  • RQ3Does the complexity of agent architectures (e.g., ReAct, DDGA) lead to higher hallucination rates due to mismanagement of tool calls?
  • RQ4To what extent do tool-augmented agents improve accuracy, and under what conditions do they degrade performance?
  • RQ5Can user-augmented tool results (e.g., DDGA) outperform LLM-driven tool usage (e.g., ReAct) in reducing hallucinations?

Key findings

  • The Self-Consistency (SC) prompting strategy, which aggregates multiple sampled responses and selects the majority answer, achieved the lowest hallucination rate on mathematical reasoning tasks (GSM8K).
  • The Correctness-Promoting (CP) strategy, which refrains from answering when responses contradict, achieved a strong balance between answer coverage and hallucination reduction.
  • The ReAct agent with DuckDuckGo (ReAct-DDG) failed to improve accuracy over the control method on TriviaQA, indicating that complex agent architectures can worsen performance.
  • The DDGA prompting strategy—where users augment the LLM prompt with DuckDuckGo results—significantly outperformed its control baseline on TriviaQA, suggesting user-augmented retrieval is more reliable than LLM-driven tool use.
  • The chain architecture agent showed higher hallucination rates than the control strategy across all benchmarks, with the Riza Python interpreter and Wikipedia tools being invoked most frequently but with high failure rates.
  • Tool usage was often ineffective: the model made unsuccessful tool calls in over 30% of cases, particularly with the Python interpreter on the MMLU dataset, indicating poor tool invocation reliability in smaller models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.