Welcome to the Adaptive Beam Search repository! This repo is official code for " Adaptive Beam Search with Shannon Entropy for Data-centric Reasoning in LLMs" , PAKDD 2026 by Yoonji Kim, Yujin Jeong, Jieun Kim.
This repository supports running adaptive beam search on a variety of reasoning tasks across multiple models and prompting strategies.
- CoT: Chain-of-Thought
- ToT: Tree-of-Thoughts
- Date Understanding: CoT
- Game of 24: ToT
git clone https://github.com/yoongja/ABS.git
cd ABSpip install -r requirements.txtCreate a .env file in the project root and add the necessary variables:
# For using OpenAI models like GPT-4
OPENAI_API_KEY="your-openai-api-key"Create a data/ directory in the project root and place the dataset files inside:
data/
├── gsm8k.json
├── aqua.json
├── date_understanding.json
├── csqa.json
├── strategyqa.json
└── game_of_24.json
Navigate to the GPT directory and run:
cd adaptive_beam_search/gpt/
bash scripts/run_gsm8k.shNavigate to the LLaMA directory and run:
cd adaptive_beam_search/llama/
bash scripts/run_gsm8k.sh