[Paper Review] AuditLLM: A Tool for Auditing Large Language Models Using Multiprobe Approach
AuditLLM is a novel open-source tool that audits large language models (LLMs) for response consistency using a multiprobe approach, generating diverse paraphrased questions from a single prompt to detect inconsistencies indicative of hallucinations or bias. It employs two modes—live and batch—using BERT-based semantic similarity (MPNet) to quantitatively measure response consistency, enabling researchers and practitioners to identify reliability issues in LLMs systematically.
As Large Language Models (LLMs) are integrated into various sectors, ensuring their reliability and safety is crucial. This necessitates rigorous probing and auditing to maintain their effectiveness and trustworthiness in practical applications. Subjecting LLMs to varied iterations of a single query can unveil potential inconsistencies in their knowledge base or functional capacity. However, a tool for performing such audits with a easy to execute workflow, and low technical threshold is lacking. In this demo, we introduce ``AuditLLM,'' a novel tool designed to audit the performance of various LLMs in a methodical way. AuditLLM's primary function is to audit a given LLM by deploying multiple probes derived from a single question, thus detecting any inconsistencies in the model's comprehension or performance. A robust, reliable, and consistent LLM is expected to generate semantically similar responses to variably phrased versions of the same question. Building on this premise, AuditLLM generates easily interpretable results that reflect the LLM's consistency based on a single input question provided by the user. A certain level of inconsistency has been shown to be an indicator of potential bias, hallucinations, and other issues. One could then use the output of AuditLLM to further investigate issues with the aforementioned LLM. To facilitate demonstration and practical uses, AuditLLM offers two key modes: (1) Live mode which allows instant auditing of LLMs by analyzing responses to real-time queries; and (2) Batch mode which facilitates comprehensive LLM auditing by processing multiple queries at once for in-depth analysis. This tool is beneficial for both researchers and general users, as it enhances our understanding of LLMs' capabilities in generating responses, using a standardized auditing platform.
Motivation & Objective
- To address the lack of accessible, low-threshold tools for auditing LLMs for consistency and reliability.
- To detect inconsistencies in LLM responses that may indicate hallucinations, bias, or functional flaws.
- To provide a standardized, interpretable auditing framework using multiple paraphrased probes derived from a single input question.
- To support both real-time and large-scale auditing through live and batch processing modes.
- To enhance transparency and reliability of LLMs in mission-critical applications such as healthcare, education, and finance.
Proposed method
- Uses a two-LLM pipeline: LLM1 generates diverse paraphrased probes from a user-provided question using prompt engineering and a human-in-the-loop technique.
- LLM2 processes each probe and generates responses, which are then evaluated for semantic similarity.
- Employs the sentence-transformer model (all-mpnet-base-v2) to compute cosine similarity between response pairs, quantifying consistency.
- Applies a 60% semantic similarity threshold to highlight consistent responses and flag inconsistencies.
- Supports two operational modes: live mode for real-time auditing and batch mode for processing multiple queries with configurable relevance and diversity scores.
- In batch mode, users upload a question set, and AuditLLM generates five probes per question using Mistral 7B, then evaluates and reports response consistency via similarity metrics.
Experimental results
Research questions
- RQ1How can LLMs be systematically audited for response inconsistency using multiple paraphrased versions of a single question?
- RQ2To what extent do different LLMs exhibit semantic consistency when responding to semantically similar but linguistically varied queries?
- RQ3Can a multiprobe approach using LLM-generated paraphrases effectively reveal hallucinations or biases in LLM outputs?
- RQ4How do relevance and diversity scores in probe generation affect the detection of inconsistencies in LLM responses?
- RQ5What quantitative metrics can reliably measure and visualize response consistency across varied LLM prompts?
Key findings
- AuditLLM successfully identifies inconsistencies in LLM responses by measuring semantic similarity between outputs generated from paraphrased probes, with a 60% similarity threshold used to flag divergent responses.
- In batch mode, the tool demonstrated that a higher slope in the regression line of probe similarity vs. response similarity indicates greater consistency, even across diverse probes.
- A lower slope in the response similarity vs. probe similarity plot indicates higher inconsistency, suggesting potential hallucinations or bias in the audited LLM.
- The tool enables comparative auditing across multiple LLMs by generating and analyzing response distributions using the same input set.
- The batch mode supports scalable auditing by processing multiple questions simultaneously and delivering email-based reports with similarity metrics and visualizations.
- The system's reliance on BERT-based sentence embeddings (MPNet) enables robust, interpretable, and quantitative assessment of semantic consistency in LLM outputs.
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.