| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Official implementation for:
Observations and Remedies for Large Language Model Bias in Self-Consuming Performative Loop
Yaxuan Wang, Zhongteng Cai, Yujia Bao, Xueru Zhang, Yang Liu
arXiv:2601.05184
This repository studies bias dynamics in self-consuming loops and provides training, data generation/selection, and mitigation pipelines across multiple tasks (News, NuminaMath, and Preference).
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtOptional (recommended) cache setup:
export SCPL_CACHE_DIR=/path/to/hf_cache
export HF_HOME=$SCPL_CACHE_DIRExpected source files:
Round-0 preference data is built by init_preference_data.py from Hugging Face datasets (defaults are configured in the script).
Numina round-0 data is prepared by init_numina_data.py.
Before running News bias evaluation, prepare the classifier artifact and make sure the path used in evaluate_bias_vllm.py points to your generated checkpoint.
python bias_classifier.py# One variant
VARIANT=syn_dynamic MAX_ROUND=3 bash runs/news/finetuning.sh
VARIANT=syn_dynamic MAX_ROUND=3 bash runs/news/retrain.sh
# All 7 variants
RUN_ALL=1 MAX_ROUND=3 bash runs/news/finetuning.sh
RUN_ALL=1 MAX_ROUND=3 bash runs/news/retrain.sh# finetuning mode (default)
METHOD=reweight MAX_ROUND=3 bash runs/mitigation/news_mitigation.sh
RUN_ALL=1 MAX_ROUND=3 bash runs/mitigation/news_mitigation.sh
# retraining mode
TRAIN_MODE=retrain RUN_ALL=1 MAX_ROUND=3 bash runs/mitigation/news_mitigation.shVARIANT=syn_dynamic MAX_ROUND=3 bash runs/numina/finetuning.sh
VARIANT=syn_dynamic MAX_ROUND=3 bash runs/numina/retrain.sh
RUN_ALL=1 MAX_ROUND=3 bash runs/numina/finetuning.shPreference evaluation is handled by an external codebase: GAIR-NLP/Preference-Dissection
# finetuning / retraining loops
VARIANT=syn_dynamic MAX_ROUND=5 bash runs/preference/finetuning.sh
RUN_ALL=1 MAX_ROUND=5 bash runs/preference/retrain.sh
# mitigation
METHOD=reweight TRAIN_MODE=finetune bash runs/preference/mitigation.sh
# Please refer to our path `Preference-Dissection/visualization/evaluate.sh` for the evaluation code.Please use scripts under runs/dpo/.
bash runs/multi-source.shbash runs/easy_run.sh@article{wang2026observations,
title={Observations and Remedies for Large Language Model Bias in Self-Consuming Performative Loop},
author={Wang, Yaxuan and Cai, Zhongteng and Bao, Yujia and Zhang, Xueru and Liu, Yang},
journal={arXiv preprint arXiv:2601.05184},
year={2026}
}| Back | FazBrowse Home | New Git URL |