GerAV
Towards New Heights in German Authorship Verification using Fine-Tuned LLMs on a New Benchmark
training/: fine-tuning pipeline and dataset loaderslora_configs/: model- and dataset-specific training configspaper_checkpoints/: saved checkpoints and tuned modelsav_baselines/: baseline authorship verification evaluation codeevaluation/: metric and threshold utilitiesdata/: data preprocessing and dataset construction scriptsslurm_training.shandslurm_eval.sh: Slurm job entry points
Get access to the original dataset from: https://zenodo.org/records/7528718 and store the files locally.
For preprocessing and filtering:
python data/preprocessing/twitter/filter_twitter.py \
--input "path/to/original/files" \
--output "path/to/store/output/csv"For AV pair sampling:
python data/preprocessing/twitter/twitter_pair_sampling.py \
--in_file "path/to/twitter_filtering/output.csv" \
--out_dir "path/to/store/twitter/pairs"python training/train.py --config lora_configs/configs_reddit_in_domain/qwen-2.5-7b-instruct.tomlFor cluster training:
sbatch slurm_training.shThis part of the code is based on and adapted to our GerAV benchmark from the repository belonging to Tyo et al. (2022): https://github.com/JacobTyo/Valla.git. Please refer to the required setup and environment configuration as described in the original repository before running the baslines.
To run a basline:
python baslines/Valla/run_baselines.py \
--data_path "path/to/your/dataset" \
--new_root "dataset_name" \
--models ngram ppm adh sbertspecifying which models to train on which dataset.
HF_HOME=${HF_HOME} python av_baselines/apply_all_baselines.py \
--model_list baseline_qwen-2.5-7b-instruct \
--dataset_list twitter \
--output_dir outputs/scoresThe model and dataset names used by evaluation are defined in av_baselines/apply_all_baselines.py.
Notes on the datasets will follow soon
If you use this work in your research, please cite it as:
@inproceedings{kiefer-etal-2026-gerav,
title = "{G}er{AV}: Towards New Heights in {G}erman Authorship Verification using Fine-Tuned {LLM}s on a New Benchmark",
author = "Kiefer, Lotta and
Leiter, Christoph and
Takeshita, Sotaro and
Schmidt, Elena and
Eger, Steffen",
editor = "Liakata, Maria and
Moreira, Viviane P. and
Zhang, Jiajun and
Jurgens, David",
booktitle = "Findings of the {A}ssociation for {C}omputational {L}inguistics: {ACL} 2026",
month = jul,
year = "2026",
address = "San Diego, California, United States",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.findings-acl.1991/",
doi = "10.18653/v1/2026.findings-acl.1991",
pages = "40050--40069",
ISBN = "979-8-89176-395-1"
}