CDW-CoT: Clustered Distance-Weighted Chain-of-Thoughts Reasoning

📅 2025-01-21
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Existing chain-of-thought (CoT) prompting methods employ static, uniform prompts, lacking instance-level adaptability and thus exhibiting limited generalization on complex reasoning tasks. To address this, we propose a dynamic instance-adaptive CoT framework featuring the first clustering-driven, distance-weighted prompt probability modeling: K-means clustering is performed in the prompt embedding space, and a distance-aware probability distribution is learned to generate personalized CoT prompts for each input. The method is compatible with mainstream open-source LLMs—including LLaMA2 and LLaMA3—and achieves substantial improvements across six diverse reasoning benchmarks: average accuracy increases by 25.34% on LLaMA2-13B and 15.72% on LLaMA3-8B. These results empirically validate that instance-aware prompting significantly enhances reasoning robustness and cross-task transferability.

Technology Category

Application Category

📝 Abstract
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).
Problem

Research questions and friction points this paper is trying to address.

Adaptability
Problem-Solving Strategies
Targeted Approach
Innovation

Methods, ideas, or system contributions that make the work stand out.

Cluster Distance Weighting
Chain of Thought
Problem-Specific Strategy
🔎 Similar Papers
No similar papers found.
Y
Yuanheng Fang
Harbin Institute of Technology, Weihai, 264209, Shandong, China
Guoqing Chao
Guoqing Chao
Harbin Institute of Technology, Weihai
Machine learningData miningMedical informatics
W
Wenqiang Lei
Sichuan University, Chengdu, 610065, Sichuan, China
Shaobo Li
Shaobo Li
University of illinois Urbana Champaign
D
Dianhui Chu
Harbin Institute of Technology, Weihai, 264209, Shandong, China