Usage
Use the reranking code from the paper repository — it handles prompt construction, the sliding window and batching:
python scripts/rerank_llm.py --model JFJFJFen/DebiasFirst-Zephyr7B \
--dataset scifact --data_type beir --data_dir ../data/beir \
--output_dir ../data/beir/scifact/rank_100.json \
--rerank_output_dir ../outputs/beir/scifact/rerank.json \
--use_logits 1 --use_alpha 1 --llm_top_k 100 \
--window_size 20 --step_size 10 --do_batched 1
Citation
@article{debiasfirst2026,
title = {LLM-based Listwise Reranking under the Effect of Positional Bias},
journal = {arXiv preprint arXiv:2604.03642},
year = {2026}
}