Official code release for Causal Preference Elicitation (CaPE)
Edwin V. Bonilla, He Zhao, Daniel M. Steinberg (ICML 2026)
Implementation and maintenance of the CaPE codebase by Edwin V. Bonilla.
- Pre-print: https://arxiv.org/abs/2602.01483
- Repository: https://github.com/csiro-funml/CaPE
From a fresh clone (assuming python points to python3.14):
python -m venv .venv
source .venv/bin/activatepip install -r requirements.txt
./reproduce_paper.shThis runs the paper experiments and regenerates figures using the plotting pipeline.
dag/,feedback/,generation/,inference/,likelihood/,metrics/,expts/– core library modulesexperiments/– paper experiment entrypointsscripts/– helper scripts (cluster submission, plotting, misc)configs/– reference hyperparameters (YAML)docs/– dataset setup notesresults/,figures/,data/– generated artifacts (gitignored)
- Sachs (HITL):
python experiments/run_sachs_hitl.py - Synthetic (cluster):
bash scripts/cluster/submit_synthetic_cluster.sh - CausalBench (cluster):
bash scripts/cluster/submit_causalbench_cluster.sh - Plots from saved results:
bash scripts/plots/generate_all_plots.sh
Results ready to be parsed by scripts/generate_paper_figures.sh and regenerate the figures in the submission can be found in results_final.zip
Scripts for launching the synthetic and causalbench experiments in the cluster are at scripts/cluster/submit_causalbench_cluster.sh and scripts/cluster/submit_synthetic_cluster.sh.
If you use this code, please cite:
@inproceedings{bonilla2026cape,
title={Causal Preference Elicitation},
author={Bonilla, Edwin V. and Zhao, He and Steinberg, Daniel M.},
booktitle={International Conference on Machine Learning},
year={2026},
doi={10.48550/arXiv.2602.01483}
}
Citation metadata is also available via CITATION.cff.
Licensed under the Apache License 2.0.