Skip to content
Tan-HexiangPublic

About

The impletementation for ACL26 main paper "BaseCal: Unsupervised Confidence Calibration via Base Model Signals"

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BaseCal

This is the impletementation for ACL26 main paper "BaseCal: Unsupervised Confidence Calibration via Base Model Signals"

Reproduction

1. Environment

conda create -n basecal python=3.10 -y && conda activate basecal

# Core dependencies
pip install torch==2.6.0
pip install "transformers>=4.45.0,<5.0.0" jsonlines netcal scikit-learn matplotlib regex openai filelock datasets "pyarrow>=14.0.0,<18.0.0" pandas accelerate

# vLLM (for LM Judge in Step 3, QA datasets only)
pip install "pyzmq>=23.0.0,<27.0.0" tiktoken
pip install "vllm==0.8"

2. Download Datasets

bash data/download_and_preprocess.sh

Outputs data/{triviaqa,nq,squad,webquestion,mmlu}/{train,dev,test}.json.

3. Generation

Generate model responses and obtain correctness labels (EM for MMLU, LM Judge for QA) to build the calibration dataset.

Edit paths in scripts/run_generation.sh, then:

bash scripts/run_generation.sh

Run for each (dataset, model, split) combination. The script auto-starts a vLLM Judge server for QA datasets.

4. BaseCal

Edit paths in scripts/run_basecal.sh, then:

bash scripts/run_basecal.sh

Results saved to output/basecal/<dataset>/<model>/result.json.

Citation

@article{tan2026basecal,
  title={BaseCal: Unsupervised Confidence Calibration via Base Model Signals},
  author={Tan, Hexiang and Yang, Wanli and Zhang, Junwei and Chen, Xin and Tang, Rui and Su, Du and Wang, Jingang and Wang, Yuanzhuo and Sun, Fei and Cheng, Xueqi},
  journal={arXiv preprint arXiv:2601.03042},
  year={2026}
}

About

The impletementation for ACL26 main paper "BaseCal: Unsupervised Confidence Calibration via Base Model Signals"

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages