[Paper Review] LLMAuditor: A Framework for Auditing Large Language Models Using Human-in-the-Loop
This paper proposes LLMAuditor, a human-in-the-loop framework for auditing large language models (LLMs) by generating diverse, valid question probes using one LLM and validating them via human assessment before using them to test consistency, hallucination, and bias in a different LLM. The method enables scalable, transparent, and rigorous auditing without circular validation, demonstrating effectiveness in detecting inconsistencies across multiple LLMs using probes from TruthfulQA.
As Large Language Models (LLMs) become more pervasive across various users and scenarios, identifying potential issues when using these models becomes essential. Examples of such issues include: bias, inconsistencies, and hallucination. Although auditing the LLM for these problems is often warranted, such a process is neither easy nor accessible for most. An effective method is to probe the LLM using different versions of the same question. This could expose inconsistencies in its knowledge or operation, indicating potential for bias or hallucination. However, to operationalize this auditing method at scale, we need an approach to create those probes reliably and automatically. In this paper we propose the LLMAuditor framework which is an automatic, and scalable solution, where one uses a different LLM along with human-in-the-loop (HIL). This approach offers verifiability and transparency, while avoiding circular reliance on the same LLM, and increasing scientific rigor and generalizability. Specifically, LLMAuditor includes two phases of verification using humans: standardized evaluation criteria to verify responses, and a structured prompt template to generate desired probes. A case study using questions from the TruthfulQA dataset demonstrates that we can generate a reliable set of probes from one LLM that can be used to audit inconsistencies in a different LLM. This process is enhanced by our structured prompt template with HIL, which not only boosts the reliability of our approach in auditing but also yields the delivery of less hallucinated results. The novelty of our research stems from the development of a comprehensive, general-purpose framework that includes a HIL verified prompt template for auditing responses generated by LLMs.
Motivation & Objective
- To address the challenge of auditing LLMs for issues like hallucination, bias, and inconsistency in a scalable and reliable way.
- To overcome the circular validation problem where an LLM evaluates its own responses by introducing human oversight in probe generation.
- To develop a generalizable, transparent, and scientifically rigorous framework for auditing LLMs across different architectures and training mechanisms.
- To ensure that LLM-generated probes accurately reflect the original intent of user queries through human verification.
Proposed method
- Use a different LLM (LLM1) to generate multiple rephrings of a given question, preserving the original intent.
- Design a structured prompt template to guide LLM1 in generating diverse, semantically consistent probes.
- Employ human assessors to validate generated probes using standardized qualitative criteria, ensuring relevance, novelty, and intent preservation.
- Use the validated probes to audit a different LLM (LLM2) for response consistency, hallucination, or bias.
- Apply the framework systematically to LLMs like Mistral 7B, Falcon, and Llama 2-7B using questions from the TruthfulQA dataset.
- Use comparative analysis of LLM2 responses to different probe variants to detect inconsistencies and potential model flaws.
Experimental results
Research questions
- RQ1How can a human-in-the-loop approach confirm the validity of probes generated based on the input question?
- RQ2How can LLM-generated probes with HIL validation be integrated into a framework for auditing LLM responses for consistency, bias, or hallucination?
- RQ3Can the proposed framework be generalized across different LLM architectures and training mechanisms?
- RQ4How effective is the HIL validation in reducing subjectivity and improving probe quality?
Key findings
- The human-in-the-loop validation process significantly improved probe quality by ensuring semantic consistency and intent preservation across rephrased questions.
- The framework successfully detected inconsistencies in LLM responses across different formulations of the same question, indicating potential hallucination or bias.
- Experiments using TruthfulQA questions showed measurable improvements in response quality and consistency when multiple probe variants were used.
- The method demonstrated generalizability across different LLMs, including Mistral 7B, Falcon, and Llama 2-7B, regardless of architecture or training data.
- The use of diverse probes revealed nuances in model behavior that were not apparent with single-question testing, enhancing audit depth.
- The framework supports auditing for various issues beyond hallucination, such as bias based on question framing or personas.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.