DiversiGATE: A Comprehensive Framework for Reliable Large Language Models

Shima Imani, Ali Beyram, Harsh ShrivastavaarXiv 2023

TL;DR

DiversiGATE is a new unified framework that consolidates various Large Language Model (LLM) verification techniques into two core stages: Diversification and Aggregation. Building on this, the authors introduce SelfLearner, an unsupervised model that iteratively refines its own reasoning, boosting accuracy on the challenging GSM8K math benchmark from 54.8% to 61.8%.

What Problem Does This Paper Address?

Despite their impressive capabilities, LLMs are notorious for "hallucinations"—generating confident but factually incorrect or illogical information. To combat this, researchers have developed various "verification" strategies like Self-Consistency (sampling multiple paths) or WebGPT (using search results).

However, these methods were largely developed in isolation. This paper addresses the lack of a cohesive theory for LLM reliability by proposing a single framework that explains how these diverse methods work and how they can be improved. The goal is to move beyond static prompting toward models that can autonomously improve their reasoning over time.

Methods

The authors propose DiversiGATE (Diversification and aggreGATion for vErification), a two-step process:

  1. Diversification: The model generates a variety of candidate answers for a single query by varying the "context." This might involve changing the temperature setting, using different few-shot exemplars, or even querying external search engines.
  2. Aggregation: The model processes these diverse candidates to find a consensus. Common techniques include majority voting, filtering based on specific keywords, or using the LLM to summarize the results into a final answer.
Figure 1. DiversiGATE framework. Proposed unified frame- work consisting of two steps, namely, ‘Diversification’ module followed by an ‘Aggregation’ module. The given input query Q is conditioned on diverse contexts {c1, · · · , cK} when pass- ing through LLMs. These contexts can be different LLM set- tings such as temperature or different input prompts like in zero- shot or few-shot settings. This generates a diverse set of outputs {D1, · · · , DK} which are then aggregated to give the final output answer. A single phase of the framework is depicted above. A multi-phase (or chaining) of the above framework can represent many existing approaches designed to increase LLM’s reliability.

The paper’s primary innovation is the SelfLearner model. SelfLearner applies DiversiGATE in a "chain of phases." In Phase I, it uses a zero-shot Chain-of-Thought (CoT) prompt ("Let's think step-by-step") to generate an initial answer. In Phase II, it uses the output from Phase I as a one-shot prompt to generate $K$ new diverse answers, which are then aggregated via majority voting. This allows the model to "learn" from its own generated reasoning paths without needing human-labeled data.

Figure 2. SelfLearner model. It uses a chain of phases (or instances) of the DiversiGATE framework, with each phase utilizing the output of the previous one with their own customized ‘Diversification’ and ‘Aggregation’ modules.

Datasets

The researchers evaluated their framework using two primary sources:

  • Synthetic Dataset: 500 multiplication and 500 division problems generated by the authors to test basic arithmetic reliability.
  • GSM8K: A standard benchmark of 8,500 high-quality, linguistically diverse grade school math word problems that require multi-step reasoning.

Key Insights and Ideas

  • Unsupervised Learning via Prompting: SelfLearner demonstrates that an LLM can improve its performance simply by looking at its own previous reasoning as a "one-shot" example. It doesn't discard incorrect answers; instead, the aggregation step (majority voting) naturally filters out the noise.
  • Diversification is a Reliability Multiplier: The authors found that even providing a random one-shot prompt from the dataset—regardless of whether it was the "perfect" example—improved reliability compared to zero-shot querying.
  • Division vs. Multiplication: The study revealed that LLMs are significantly more prone to hallucination during division tasks than multiplication. However, the DiversiGATE approach provided a larger relative boost to division accuracy (a 14% jump vs. 3.2% for multiplication), suggesting that verification is most effective where the model is most uncertain.

Key Results

The experiments showed that the multi-phase approach consistently outperforms standard prompting:

  • GSM8K Performance: The SelfLearner model achieved a significant jump in accuracy, moving from 54.8% to 61.8% after two phases. Small-scale tests (100 questions) suggested that accuracy continues to climb as more phases are added, reaching up to 64% by Phase 5.
  • Synthetic Arithmetic: On division tasks, the zero-shot baseline was only 78.4%. The SelfLearner (with $K=20$ samples) raised this to 92.4%.
Accuracy results for synthetic multiplication and division tasks.

Limitations and Future Work

While promising, the authors note that SelfLearner's performance can eventually saturate; adding more phases doesn't guarantee infinite improvement. Additionally, computational constraints limited the number of phases they could run on the full GSM8K dataset.

Future research directions include:

  • Smarter Aggregators: Using an LLM itself as the aggregation module to "judge" which reasoning path is most logical.
  • Scaling: Evaluating the framework across different LLM architectures and sizes to see if the reliability gains hold for smaller, more efficient models.
  • Optimized Diversification: Developing more sophisticated ways to generate diverse contexts beyond simple one-shot prompting.

Summary updated

BibTeX
@misc{imani2023diversigate,
  author = {Shima Imani and Ali Beyram and Harsh Shrivastava},
  title = {{DiversiGATE: A Comprehensive Framework for Reliable Large Language Models}},
  year = {2023},
  eprint = {2306.13230},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.13230},
}
Figure