CDW-CoT: Clustered Distance-Weighted Chain-of-Thoughts Reasoning
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
Large Language Models (LLMs) have recently achieved impressive results in complex reasoning tasks through Chain of Thought (CoT) prompting. However, most existing CoT methods rely on using the same prompts, whether manually designed or automatically generated, to handle the entire dataset. This one-size-fits-all approach may fail to meet the specific needs arising from the diversities within a single dataset. To solve this problem, we propose the Clustered Distance-Weighted Chain of Thought (CDW-CoT) method, which dynamically constructs prompts tailored to the characteristics of each data instance by integrating clustering and prompt optimization techniques. Our method employs clustering algorithms to categorize the dataset into distinct groups, from which a candidate pool of prompts is selected to reflect the inherent diversity within the dataset. For each cluster, CDW-CoT trains the optimal prompt probability distribution tailored to their specific characteristics. Finally, it dynamically constructs a unique prompt probability distribution for each test instance, based on its proximity to cluster centers, from which prompts are selected for reasoning. CDW-CoT consistently outperforms traditional CoT methods across six datasets, including commonsense, symbolic, and mathematical reasoning tasks. Specifically, when compared to manual CoT, CDW-CoT achieves an average accuracy improvement of 25.34% on LLaMA2 (13B) and 15.72% on LLaMA3 (8B).
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 22 of its 29 references that are in the map. First posted on arXiv 21 Jan 2025.
Builds on
22 of 29 references.
Closest ancestors · 8
Same direction, newest first
- 2023Navigate through Enigmatic Labyrinth A Survey of Chain of Thought Reasoning: Advances, Frontiers and Future27 Sep
- 2023Chain of Thought Prompting Elicits Knowledge Augmentation4 Jul
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Prompting10 Jun
- 2023Automatic Prompt Augmentation and Selection with Chain-of-Thought from Labeled Data24 Feb
- 2023Faithful Chain-of-Thought Reasoning31 Jan
- 2022Large Language Models are Better Reasoners with Self-Verification19 Dec
- 2022Automatic Chain of Thought Prompting in Large Language Models7 Oct
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Models21 Mar
Other references · 14
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 650
- 2016Solving General Arithmetic Word Problemscited by 360
- 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 350
- 2023MathPrompter: Mathematical Reasoning using Large Language Modelscited by 236
- 2022Making Large Language Models Better Reasoners with Step-Aware Verifiercited by 233
- 2023Black-Box Prompt Optimization: Aligning Large Language Models without Model Trainingcited by 122
- 2023Let's Sample Step by Step: Adaptive-Consistency for Efficient Reasoning and Coding with LLMscited by 115
- 2022Rationale-Augmented Ensembles in Language Modelscited by 111
2 more
- 2022Black-box Prompt Learning for Pre-trained Language Modelscited by 70
- 2023MoT: Memory-of-Thought Enables ChatGPT to Self-Improvecited by 38
Built on by
Citing papers per year: 2025: 3.
3 papers.
- 2025The CoT Encyclopedia: Analyzing, Predicting, and Controlling how a Reasoning Model will Thinkcited by 9
- 2025Pragmatic Inference Chain (PIC) Improving LLMs' Reasoning of Authentic Implicit Toxic Languagecited by 8
- 2025From Training to Generalization: Improving Moral Reasoning Through Pragmatic Inferencecited by 2
- 2025From Training to Generalization: Improving Moral Reasoning Through Pragmatic Inference28 Sep 2025
- 2025The CoT Encyclopedia: Analyzing, Predicting, and Controlling how a Reasoning Model will Think15 May 2025
- 2025Pragmatic Inference Chain (PIC) Improving LLMs' Reasoning of Authentic Implicit Toxic Language3 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2024ChainLM: Empowering Large Language Models with Improved Chain-of-Thought Prompting
- 2025CoT Vectors: Transferring and Probing the Reasoning Mechanisms of LLMs
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methods
- 2023Chain-Of-Thought Prompting Under Streaming Batch: A Case Study
- 2025Is Chain-of-Thought Reasoning of LLMs a Mirage? A Data Distribution Lens
- 2024Enhancing Chain of Thought Prompting in Large Language Models via Reasoning Patterns
- 2023Towards Better Chain-of-Thought Prompting Strategies: A Survey
- 2026Clustering as Reasoning: A k-Means Interpretation of Chain-of-Thought Graph Learning