Self-Consistency

term_id: self_consistency

Category: training_techniques

Definition

Primarily used with Large Language Models (LLMs), this technique improves accuracy by generating several diverse responses to a prompt via sampling. Instead of relying on greedy decoding, it aggregates these outputs and applies majority voting to determine the most consistent result. This method effectively reduces hallucinations and enhances logical reasoning capabilities in complex tasks like mathematical problem-solving or code generation.

Summary

Self-consistency is a decoding strategy where multiple reasoning paths are sampled and the most frequent answer is selected as the final output.

Key Concepts

  • Majority voting
  • Decoding strategy
  • LLM reasoning
  • Hallucination reduction

Use Cases

  • Mathematical word problems
  • Complex logical deduction
  • Code synthesis tasks