Technical details

How we prepared the data, trained and evaluated the models, and computed everything shown on this site.

This page collects the details behind the corpora, models and results on this site: how the data are converted and split, how labels are mapped, how models are trained and scored, which hyperparameters we use, and on which hardware everything ran.

Data format and preprocessing

Label mapping and gold labels

Splits

Models and training

Encoders

XLM-RoBERTa base (FacebookAI/xlm-roberta-base, multilingual; trained on all corpora) and DeBERTa-v3 base (microsoft/deberta-v3-base, English corpora only). As a baseline, a bag-of-words logistic regression.

Objective and model selection (all category models)

Kinds of models

Hyperparameters

XLM-RoBERTa baseDeBERTa-v3 baseBag-of-words baseline
Inputsubword tokens, at most 256hashed unigrams and bigrams, 220 buckets
OptimiserAdamW, learning rate 2·10−5, linear warm-up over 10% of the steps, weight decay 0.01SGD, learning rate 0.5, L2 10−6
Batch size16–
Epochsat most 15, early stopping with patience 3 (validation macro-F1)8, best epoch on validation
Thresholdsper label, tuned on validation (0.10–0.90)
Seeds13, 42, 2026
LanguagesEnglish, GermanEnglishEnglish, German

The details of each model on the model pages list its training configuration, number of epochs, thresholds and training time.

Evaluation

Corpus details

Demo

The demo runs the no perspective model, the perspective model or the 30-corpora model in your browser with transformers.js 3.8.1 (ONNX Runtime Web). The model is stored in half precision (fp16, about 570 MB) and served from this server. Every text gets the same token, [not-specified], in front of it. Category thresholds are those tuned on validation; valence, arousal and appraisals are the sigmoid outputs in 0–1. Texts are processed only on your device.

Online batch processing: a text file with one text per line (up to 10,000 lines) is read in the browser and analysed in a background thread (Web Worker), one line after another; batching is not used, so that every line gets the same scores as in the demo. On a laptop CPU this takes about 10 lines per second, about 2 with the role tagger. The results are assembled in the browser as a TSV file; nothing is uploaded.

Compute and runtimes

Totals

Runs or jobsHours
Training time of all models (sum over every training run with a record, including earlier versions that were later replaced; one GPU per run)1,216 runs267 h
Bag-of-words baselines (CPU)432 runs0.8 h
GPU hours of all experimentsabout 320 h
  TinyGPU (job accounting: training, prediction, prompted language models, data generation; including 6 h of failed or timed-out jobs)1,385 jobs276 h
    of these on RTX 2080 Ti / RTX 3080 / A100226 / 34 / 16 h
  H100 server (estimate from the run records: 91 h of run time, two runs sharing one GPU)252 runsabout 45 h

Not counted: runs whose records were deleted (the first training version of 5 November 2026 and 60 runs retrained on 12 November), and jobs on the H100 server that left no run records (for instance data generation with language models). The total is therefore a lower bound.

Per kind of model

Training time per run (one GPU; prediction on the test sets not included):

ModelsEncoderRunsMedian per runLongest runTotal
Single-corpus and combined models, all corporaXLM-R1246 min4.1 h36 h
DeBERTa905 min1.4 h15 h
Our corpora, incl. domain models and our-corpora modelXLM-R675 min18 min5.8 h
DeBERTa484 min9 min2.9 h
All labels of a corpusXLM-R724 min31 min8.5 h
DeBERTa604 min30 min6.9 h
Dimension modelsXLM-R452 min9 min1.9 h
DeBERTa452 min8 min2.0 h
Released single-corpus modelsboth283 min6 min1.4 h
Context-ContArgAboth124 min6 min0.8 h
No perspective and perspective models (current label map)XLM-R625 min26 min2.4 h
Experiments towards the no perspective and perspective modelsXLM-R9619 min45 min33 h
Bag-of-words baseline (CPU)–189< 1 min2 min< 0.3 h

The longest run is the 30-corpora model (XLM-R, 4.1 hours).

Prediction time

Measured on a fixed random sample of 4,000 test texts from all corpora (on the CPU 500), in random order; on average 28 tokens per text, so mostly short texts. Tokenisation is included, the first batch is not timed; the GPU runs use half precision and batches of 64, the CPU runs full precision and batches of 16. Mean over three repetitions on the GPU (scripts/bench_predict.py, 13 Nov 2026). The model's size, not its task, determines the speed: all our XLM-RoBERTa models, including the no perspective and perspective models, are as fast as the one measured here.

ModelHardwareSeconds per 1,000 tokensSeconds per 1,000 textsTexts per second
XLM-RoBERTa baseNVIDIA RTX 2080 Ti0.030.91,140
DeBERTa-v3 baseNVIDIA RTX 2080 Ti0.061.8570
XLM-RoBERTa baseApple M3 CPU, 4 threads0.92737
DeBERTa-v3 baseApple M3 CPU, 4 threads1.64721

Prompted language models, for comparison (all test texts, one NVIDIA A100 40 GB, or four with tensor parallelism for the three large models, vLLM, prompt and answer included; from the run records):

ModelSeconds per 1,000 textsTexts per second
Mistral 7B v0.32148
Llama 3.1 8B2540
Qwen3 8B2540
Granite 3.3 8B3826
Gemma 3 12B3926
gpt-oss 120B (four A100)10101
Qwen3 32B (four A100)3231
Llama 3.3 70B (four A100)9411

On the GPU, a fine-tuned XLM-RoBERTa model labels about 25 to 45 times as many texts per second as the small prompted language models, and 10 to 100 times as many as the large ones on four A100s, on much smaller hardware. gpt-oss is fast for its size because only about 5 billion of its parameters are active per token.