Improving Consistency in Large Language Models through Chain of Guidance

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Raj, Harsh, Gupta, Vipul, Rosati, Domenic, Majumdar, Subhabrata
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917933948600320
author Raj, Harsh
Gupta, Vipul
Rosati, Domenic
Majumdar, Subhabrata
author_facet Raj, Harsh
Gupta, Vipul
Rosati, Domenic
Majumdar, Subhabrata
contents Consistency is a fundamental dimension of trustworthiness in Large Language Models (LLMs). For humans to be able to trust LLM-based applications, their outputs should be consistent when prompted with inputs that carry the same meaning or intent. Despite this need, there is no known mechanism to control and guide LLMs to be more consistent at inference time. In this paper, we introduce a novel alignment strategy to maximize semantic consistency in LLM outputs. Our proposal is based on Chain of Guidance (CoG), a multistep prompting technique that generates highly consistent outputs from LLMs. For closed-book question-answering (Q&A) tasks, when compared to direct prompting, the outputs generated using CoG show improved consistency. While other approaches like template-based responses and majority voting may offer alternative paths to consistency, our work focuses on exploring the potential of guided prompting. We use synthetic data sets comprised of consistent input-output pairs to fine-tune LLMs to produce consistent and correct outputs. Our fine-tuned models are more than twice as consistent compared to base models and show strong generalization capabilities by producing consistent outputs over datasets not used in the fine-tuning process.
format Preprint
id arxiv_https___arxiv_org_abs_2502_15924
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Improving Consistency in Large Language Models through Chain of Guidance
Raj, Harsh
Gupta, Vipul
Rosati, Domenic
Majumdar, Subhabrata
Computation and Language
I.2.6; I.5.1
Consistency is a fundamental dimension of trustworthiness in Large Language Models (LLMs). For humans to be able to trust LLM-based applications, their outputs should be consistent when prompted with inputs that carry the same meaning or intent. Despite this need, there is no known mechanism to control and guide LLMs to be more consistent at inference time. In this paper, we introduce a novel alignment strategy to maximize semantic consistency in LLM outputs. Our proposal is based on Chain of Guidance (CoG), a multistep prompting technique that generates highly consistent outputs from LLMs. For closed-book question-answering (Q&A) tasks, when compared to direct prompting, the outputs generated using CoG show improved consistency. While other approaches like template-based responses and majority voting may offer alternative paths to consistency, our work focuses on exploring the potential of guided prompting. We use synthetic data sets comprised of consistent input-output pairs to fine-tune LLMs to produce consistent and correct outputs. Our fine-tuned models are more than twice as consistent compared to base models and show strong generalization capabilities by producing consistent outputs over datasets not used in the fine-tuning process.
title Improving Consistency in Large Language Models through Chain of Guidance
topic Computation and Language
I.2.6; I.5.1
url https://arxiv.org/abs/2502.15924