Skip to content

Repository files navigation

GerAV
Towards New Heights in German Authorship Verification using Fine-Tuned LLMs on a New Benchmark

📄 arXiv

Repository structure

  • training/: fine-tuning pipeline and dataset loaders
  • lora_configs/: model- and dataset-specific training configs
  • paper_checkpoints/: saved checkpoints and tuned models
  • av_baselines/: baseline authorship verification evaluation code
  • evaluation/: metric and threshold utilities
  • data/: data preprocessing and dataset construction scripts
  • slurm_training.sh and slurm_eval.sh: Slurm job entry points

Usage

Dataset Creation

1. Twitter

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"

Training

1. Lora-Tuning

python training/train.py --config lora_configs/configs_reddit_in_domain/qwen-2.5-7b-instruct.toml

For cluster training:

sbatch slurm_training.sh

2. Valla Baselines

This 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 sbert

specifying which models to train on which dataset.

Evaluation

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/scores

The model and dataset names used by evaluation are defined in av_baselines/apply_all_baselines.py.

Notes on the datasets will follow soon

📖 Citation

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"
}

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages