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

Lotta Kiefer, Christoph Leiter, Sotaro Takeshita, Elena Schmidt, Steffen Eger

TL;DR

The authors introduce GerAV, the first large-scale German Authorship Verification benchmark, containing over 400k text pairs from Twitter and Reddit. By fine-tuning open-source LLMs (like Gemma-3-12b) using LoRA, they significantly outperform traditional baselines and even beat zero-shot GPT-5 by 0.08 F1 points, demonstrating that localized, smaller models can dominate forensic text analysis.

What Problem Does This Paper Address?

Authorship Verification (AV)—determining if two texts were written by the same person—is a critical tool for plagiarism detection, fighting misinformation, and forensic investigations (such as those conducted by the German Federal Criminal Police Office).

However, the vast majority of AV research and datasets focus exclusively on English. Because authorial style is deeply tied to language-specific grammar, syntax, and morphology, models evaluated on English don't translate well to other languages. Furthermore, real-world forensic scenarios often involve short, noisy social media posts across different topics, a setup poorly represented in existing non-English datasets.

Methods

The researchers fine-tuned several state-of-the-art open-source LLMs (including gemma_3_12b_it, llama-3.1-8b-instruct, llama-3.2-3b-instruct, and qwen-2.5-7b-instruct) using Low-Rank Adaptation (LoRA). They framed AV as a binary classification task, prompting the models to answer "Yes" or "No" to whether two texts share an author.

Figure 1: Overview of our approach. The figure presents the GerAV benchmark and its structure, illustrating how the datasets are used as input for AV models during training and testing. Based on a decision threshold, the models predict whether a given pair of texts was written by the same or by different authors. Each pair consists of one or several posts from a single author, contrasted with post(s) from either the same or another author. The figure represents these post pairs as T1 and T2 (Twitter, in blue) and R1 and R2 (Reddit, in orange).

They systematically compared these fine-tuned models against:

  1. Traditional Baselines: Feature-based and neural baselines (ngram, ppm, hlstm, sbert) adapted for German inputs.
  2. Style Embedding Models: Modern multilingual style representation models (mStyleDistance, msr).
  3. Zero-Shot LLMs: Commercial heavyweights like GPT-5 using advanced Linguistically Informed Prompting (LIP).

Datasets

The core contribution is the GerAV benchmark, a massive dataset of over 400k labeled text pairs curated from German Reddit and Twitter. To enable granular analysis, the dataset is split into distinct subsets:

  • Twitter (tw): Short, character-limited micro-blogging texts.
  • Reddit In-Domain (rid): Message pairs drawn from the same topical subreddit.
  • Reddit Cross-Domain (rcd): Message pairs drawn from completely different subreddits (clustered into 14 distinct domains using GPT-4o) to test if models rely on topic cues rather than style.
  • Reddit Profile-Based (rpb): Concatenated posts from a single user profile to evaluate performance on longer text inputs.
  • Mixed (mix): A balanced combination of all the above sources.

Key Insights and Ideas

  • The Specialization vs. Generalization Trade-Off: Models trained on a specific subset (like Twitter or cross-domain Reddit) perform exceptionally well on that exact data type but fail to generalize to others. However, training on the Mixed dataset mitigates this, yielding robust models that perform well across all text lengths and domains.
  • Length Matters (A Lot): There is a massive correlation (Spearman's $\rho$ up to 0.94) between text length and verification accuracy. Short texts (under 100 words) lack stylistic signals, but performance plateaus and stabilizes around 500 words.
Figure 3: F1-Score per message length in words (up to 2500) on the mixed test set. ρ is the Spearman correla- tion between message length and F1 scores. We display the results with bucket sizes increasing on a log-scale, to account for less examples existing for longer messages.
  • Language Specificity is Non-Negotiable: Applying an English-trained Twitter model to the German Twitter test set caused a massive 0.12 drop in F1 score, proving that dominant English pre-training cannot fully compensate for language-specific stylistic nuances.
  • High Data Efficiency: Halving the training data multiple times showed that performance only drops by 0.04 F1 when using just a quarter of the dataset, making LoRA fine-tuning highly viable for low-resource scenarios.

Key Results

  • The fine-tuned Gemma-3-12b (mix) model was the clear winner, achieving an average F1-score of 0.83 across all test splits, outperforming the best baseline (Multilingual Style Representation) by 0.09 absolute points.
Figure 2: F1-Scores for the baselines and our GerAV models. The y-axis shows the model names and the x-axis shows the evaluated test set. Brackets indicate the training set used: Mix Reddit Twitter (mix), Reddit Cross Domain (rcd), Reddit In Domain (rid), Reddit Profile Based (rpb) and Twitter (tw). The subscript t de- notes the validation set used to tune decision thresholds for the baselines. Column-wise best results are shown in bold. The best-performing model groups for each dataset (defined as those that statistically outperform all other models (p < 0.01) and show no statistically signif- icant differences within the group) are marked with an asterisk next to the score.
  • In a direct head-to-head on a stratified subset, the fine-tuned Gemma-3-12b model achieved an F1-score of 0.81, beating GPT-5's best zero-shot performance (0.73) by a wide margin.
  • Cross-domain verification proved more difficult than in-domain verification by an average of 0.06 F1 points across all models, confirming that topic shifts remain a challenge for style detection.

Limitations and Future Work

  • Lack of Interpretability: The fine-tuned LLMs act as black boxes, providing binary answers without explaining why they believe two texts share an author—a major hurdle for forensic or legal applications where explainability is legally required.
  • Content Bias: While the cross-domain dataset helps, the influence of topical content vs. pure authorial style needs deeper investigation to ensure models aren't just matching topics.
  • Scope Constraints: The benchmark is limited to social media (Twitter/Reddit) and does not yet cover cross-platform verification (e.g., matching a tweet to a Reddit post) or longer formal text genres.
  • No Human Baseline: The study lacks a direct comparison against professional forensic linguists or human performance baselines.

Summary updated

BibTeX
@inproceedings{kiefer2026gerav,
  author = {Lotta Kiefer and Christoph Leiter and Sotaro Takeshita and Elena Schmidt and Steffen Eger},
  title = {{GerAV: Towards New Heights in German Authorship Verification using Fine-Tuned LLMs on a New Benchmark}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.1991},
}
Figure