Abstract
Large Language Models (LLMs) demonstrate a significant gap between their generative and discriminative capabilities. While they excel at producing creative content, they often struggle to accurately judge or correct their own outputs. This paper introduces Generative Self-Aggregation (GSA), a novel prompting strategy that leverages an LLM's generative strengths to improve performance. By generating multiple diverse reasoning paths and then synthesizing them into a single response, GSA outperforms traditional self-correction and voting-based methods across various benchmarks, including mathematics, coding, and open-ended dialogue.
Introduction
The rapid advancement of Large Language Models (LLMs) has enabled them to tackle increasingly complex tasks. However, multi-step reasoning remains a challenge. Current approaches to mitigate errors typically involve self-correction (where a model identifies and fixes its own mistakes) or selection-based methods (where a model chooses the best answer from a set of candidates). These methods rely on the model's discriminative ability—its capacity to act as a judge. Recent research suggests that LLMs, primarily trained on next-token prediction, are inherently better at generation than evaluation. This paper explores Generative Self-Aggregation (GSA) as a way to bypass the "bad judge" problem by staying within the generative domain.
The Problem: The Discriminative Gap
Standard training objectives for LLMs focus on maximizing the likelihood of the next token, which aligns well with generative tasks. In contrast, discriminative tasks—such as grading a response or selecting the best option from a list—require a different type of reasoning that models often lack. When asked to self-correct, models may fail to spot subtle logical errors. When asked to choose from multiple options, they may be swayed by the confidence of a response rather than its correctness. This "discriminative gap" limits the effectiveness of traditional refinement strategies.
Methodology: Generative Self-Aggregation (GSA)
GSA addresses these limitations by treating multiple model outputs not as candidates for selection, but as "reference material" for a final generative step. The process consists of two main stages:
- Diverse Response Generation: The model is prompted to generate $n$ diverse responses to a single query. This is achieved through sampling techniques like temperature or nucleus sampling, which encourage the model to explore different reasoning paths.
- Context-Enriched Response Synthesis: Instead of selecting one response or performing a majority vote, the model is provided with all $n$ generated responses as context. It is then prompted to review these diverse perspectives and synthesize a single, improved final answer.
As shown in Figure 1, GSA differs from Standard Chain-of-Thought (CoT) and Self-refine by aggregating the collective intelligence of multiple reasoning paths. Even if some initial samples contain errors, the synthesis step allows the model to identify and combine correct intermediate steps into a coherent whole.
Experimental Results
The researchers evaluated GSA against several baselines, including greedy decoding, Self-Consistency (majority voting), and "choose-from-N" (selection). To ensure a fair comparison, the computational budget was standardized to four model calls for all multi-call methods.
- Mathematics and Logic: On the MATH benchmark, GSA significantly improved the performance of Llama 3 8B, achieving 32.46% accuracy compared to 29.28% for greedy decoding. It also outperformed the selection-based method (31.28%).
- Hard Science: In the GPQA benchmark (expert-level science questions), GSA achieved 42.17% with GPT-4o Mini. Notably, the selection-based "choose-from-N" method actually decreased performance to 38.39%, highlighting the "bad judge" tax.
- Open-Ended Tasks: GSA showed substantial gains in areas where voting is impossible. On Alpaca Eval, it reached a 55.85% win rate against GPT-4-Turbo, a significant jump from the 47.99% baseline.
- Coding: On the MBPP benchmark, GSA consistently surpassed both self-refinement and selection methods across various model sizes.
Key Insights
- Synthesis Over Selection: LLMs are more "confident" (measured by lower Negative Log-Likelihood) when generating a new synthesized response than when trying to select an index from a list. This suggests that synthesis better aligns with the model's internal representations.
- Aggregating Truth: GSA can produce a correct final answer even when none of the initial samples are entirely correct. By observing multiple attempts, the model can piece together the correct logic scattered across different samples.
- Reasoning Evolution: Case studies indicate that GSA doesn't merely copy the best sample; it often simplifies and refines the reasoning, leading to more elegant and accurate solutions.
Conclusion and Future Work
Generative Self-Aggregation demonstrates that LLMs can improve their own performance by acting as synthesizers rather than judges. By leveraging generative strengths, GSA provides a robust framework for complex reasoning tasks. Future research could explore using GSA to generate high-quality synthetic datasets for fine-tuning, potentially allowing models to "bootstrap" their own intelligence. However, challenges remain regarding inference costs and context window limitations as the number of aggregated samples increases.
Summary updated