Official repository for our paper: “Incentivizing Truthful Language Models via Peer Elicitation Games”. Link Text
We introduce Peer Elicitation Games (PEG), a training-free, game-theoretic framework for eliciting truthfull behavior from LLMs.
.
├── initial_policy/ # Notebooks for generating initial LLM policies from various datasets
│ ├── initial_policy_diffModel_ARC.ipynb
│ ├── initial_policy_diffModel_GPQA.ipynb
│ └── initial_policy_diffModel_MMLU.ipynb
│
├── data/ # Includes pre-generated 12 initial policy datasets (3 models × 4 datasets = 12 files)
│ └── arc_policy_df_deepseek_llm_7b.csv
│ └── ...
├── peg_application/ # Notebook implementing the core PEG mechanism
│ └── PEG_mechanism.ipynb
- Clone the repo
git clone https://github.com/llm-anon-user/neurips2025-repo.git
cd neurips2025-repo- Install dependencies
pip install -r requirements.txt- Set your Hugging Face token (for data and model loading)
export HF_TOKEN=your_huggingface_tokenIf you'd like to skip LLM inference and use the initial policy from our paper:
- Open and run:
peg_application/PEG_mechanism.ipynb- This uses initial policy from Data/ folder and outputs updated policies and evaluation metrics
- Ensure you have set your HF_TOKEN environment variable. The notebooks require access to the Hugging Face allenai/ai2_arc and similar datasets. In the code, we use a placeholder string for the token:
os.environ["HF_TOKEN"] = "hf_***REDACTED***"Before running, replace this with your actual token or set it in your environment:
export HF_TOKEN=your_actual_tokenOr, in a notebook cell:
from huggingface_hub import login
login("your_actual_token")- Run the following notebooks to generate your own policies:
initial_policy/initial_policy_diffModel_ARC.ipynb
initial_policy/initial_policy_diffModel_GPQA.ipynb
initial_policy/initial_policy_diffModel_MMLU.ipynb- This will produce 12 new initial policy datasets, which you can then feed into PEG_mechanism.ipynb.
If you use this code or build on our method, please cite:
@article{chen2025incentivizing,
title={Incentivizing Truthful Language Models via Peer Elicitation Games},
author={Chen, Baiting and Zhu, Tong and Han, Jiale and Li, Lexin and Li, Gang and Dai, Xiaowu},
journal={arXiv preprint arXiv:2505.13636},
year={2025}
}