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
- Hyperparameters
- Evaluation
- Corpus details
- Demo
- Compute and runtimes
Data format and preprocessing
- One record is one text from one perspective. The perspective says whose emotion is annotated: writer (the author's emotion, reported by the author or reconstructed by annotators), experiencer (a person in the text), reader (what the text made readers feel) or not specified (the corpus does not say whose emotion it annotates). A corpus with two perspectives on the same texts has two records per text.
- Annotation layers are optional and present only when a corpus has them: emotion categories, intensities, valence–arousal(–dominance), appraisals, emotion components, roles (experiencer, cue, target, stimulus as text spans) and context. The original annotation is always kept next to the mapped one.
- Conversion. Each corpus is converted from its published archive, which is kept unchanged with its SHA-256 checksum. Texts are not otherwise modified, except where stated in a corpus's notes (for example, character markers removed in the fan-fiction corpora).
- What is left out. The unified data contain no annotator or worker IDs and no demographic or personality information, even where the original release has them.
- Context-ContArgA embeds each ContArgA argument in a short description of its situation (speaker, topic, the reader's stance and familiarity), one record per reader. The template is shown with the corpus and its models.
Label mapping and gold labels
- Shared label set: anger, disgust, fear, joy, sadness, surprise, shame/guilt, trust, and no emotion. Shame and guilt are merged.
- Mapping. Original labels are mapped by a reviewed table (
configs/label_map.yaml): 133 general rules plus corpus-specific ones. Synonyms and intensity variants are mapped to the shared label they belong to, for example annoyance and frustration to anger, worry and nervousness to fear, disappointment to sadness, embarrassment and remorse to shame/guilt, amusement and excitement to joy. Labels without a counterpart (such as pride, relief, love, hope or curiosity) are not mapped; they stay in the original annotation and are learned by the models on all labels. - Gold labels for evaluation. For single-label, multi-label and intensity annotations, a shared label holds if its mapped score is at least 0.5. Corpora that rate emotions only by intensity on 1–5 count a label from a rating of 4. For label distributions (several annotators), the gold labels are the most frequent label(s) of the original distribution, mapped afterwards, so that votes for unmapped labels are not redistributed.
- Training targets are the mapped scores themselves, that is, soft targets for distributions. Texts without any shared label are left out of training on shared labels.
- Valence, arousal, appraisals and components are scaled linearly to 0–1 from each corpus's own scale. For comparisons across corpora, the appraisal schemes are mapped to 16 core appraisals (pleasantness, unpleasantness, suddenness, familiarity, goal relevance, goal conduciveness, self/other/situational responsibility, self/other/situational control, attention, effort, urgency, certainty); some dimensions are inverted to fit, and dimensions without a counterpart stay corpus-specific.
Splits
- Default: 80% training, 10% validation, 10% test, assigned by a hash (SHA-1) of the normalised text (lower case, punctuation removed). Identical texts therefore get the same split in every corpus, which prevents leakage between corpora that reuse texts.
- Official or grouped splits where needed: the official splits of SSEC and BRIGHTER, the paper test set of crowd-enVent, and splits grouped by author (REMAN), scenario (COPING), poem (PO-EMO), story (fan fiction), post (APPReddit) or argument (ContArgA, Context-ContArgA). Where a corpus has an official test set only, 10% of its training data are set aside for validation.
- The split is stored in every record of the downloads.
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)
- Multi-label binary cross-entropy over the labels of the training data, with soft targets for distributions.
- Each label's positive examples are weighted by √(negatives / positives), clipped to 1–10, so that rare labels are not ignored.
- After each epoch, a threshold per label is chosen on the validation data (grid 0.10 to 0.90 in steps of 0.05). The epoch with the best validation macro-F1 is kept; training stops after 3 epochs without improvement, at most 15 epochs. The thresholds are stored with the model and used for all predictions.
- If no label reaches its threshold, the most probable label is predicted.
- Every configuration is trained with three seeds (13, 42, 2026); results are means over the seeds. Released models are the seed-13 runs.
Kinds of models
- Corpus-specific models on the shared labels, one per corpus and perspective.
- Models on all labels of a corpus: the shared labels plus every unmapped original label, named by its normalised original name. Labels without a counterpart are scored only within their own corpus.
- Domain models, the 30-corpora model and the our-corpora model: one model per kind of text, and two general models for categories only, trained on the union of the training data of their corpora (one perspective per corpus): the 30-corpora model‡ on corpora of ours and of other groups, including automatically labelled ones (non-commercial research only), and the our-corpora model on our corpora without COPING (non-commercial license).
- Dimension models: one model per corpus with valence–arousal, appraisal or component annotations. A small head per kind of annotation sits on the encoder (sigmoid outputs in 0–1, binary cross-entropy with soft targets, missing values masked). Where the corpus also has categories, the model learns them jointly. Model selection on validation: the mean of category macro-F1 and the dimension score (Pearson r for ratings, macro-F1 for yes/no annotations).
- No perspective model‡ and perspective model‡ (the general models with emotion dimensions, downloadable for non-commercial use; the no perspective model runs the demo, batch processing and the case studies, the perspective model can be chosen in the demo and batch processing). The no perspective model is one XLM-RoBERTa model trained on 27 corpora, only on labels made by people: corpora whose labels were created automatically (from hashtags or keywords: TEC, CARER, the German part of XED, IEST) and CrowdFlower are left out. Every text starts with the same token,
[not-specified], so it does not distinguish whose emotion is meant. The perspective model follows the same recipe with a token for the perspective of each corpus. Category losses are masked to the labels a corpus annotates (missing labels are not treated as negatives). Corpora are sampled with probability proportional to n1/3 (n = training texts). Up to 20,000 steps, validation every 1,000 steps, early stopping after 3 checks without gain in the mean macro-F1 over corpora. Heads for valence–arousal (2), the 16 core appraisals, each appraisal scheme, and the 5 components were then added: 3,000 steps training only the heads (learning rate 10−4), then 10,000 steps training everything (encoder 2·10−5). Finally, the component head alone was retrained with 232 further texts that we chose by active learning and labelled ourselves. - Event check: a further head of the no perspective model and the perspective model that decides whether a text describes an event, so that appraisals are only reported for such texts. Trained together with the other heads on 1,003 texts we annotated ourselves (802 for training, 201 held out). On the held-out texts it reaches an AUC of 0.89; the threshold is set there so that the gate finds 95% of the event texts.
- Prompted language models without training: Gemma 3 12B, Qwen3 8B, Granite 3.3 8B, Llama 3.1 8B and Mistral 7B v0.3, and three larger ones, Qwen3 32B, Llama 3.3 70B and gpt-oss 120B (instruction-tuned versions), all with the same prompt (shown in the details of their rows in the cross-corpus results). The prompt puts the text first and gives a short definition of each label. Greedy decoding (temperature 0), at most 256 answer tokens (1,024 when an answer was cut off), texts cut at 2,000 characters, run with vLLM. Qwen3 runs without its thinking mode; gpt-oss reasons briefly before answering (reasoning effort low, at most 2,048 answer tokens, 4,096 on retry). Every label the model names counts as predicted.
Hyperparameters
| XLM-RoBERTa base | DeBERTa-v3 base | Bag-of-words baseline | |
|---|---|---|---|
| Input | subword tokens, at most 256 | hashed unigrams and bigrams, 220 buckets | |
| Optimiser | AdamW, learning rate 2·10−5, linear warm-up over 10% of the steps, weight decay 0.01 | SGD, learning rate 0.5, L2 10−6 | |
| Batch size | 16 | – | |
| Epochs | at most 15, early stopping with patience 3 (validation macro-F1) | 8, best epoch on validation | |
| Thresholds | per label, tuned on validation (0.10–0.90) | ||
| Seeds | 13, 42, 2026 | ||
| Languages | English, German | English | English, German |
The details of each model on the model pages list its training configuration, number of epochs, thresholds and training time.
Evaluation
- Cells. A model trained on corpus A (row) is tested on the test split of corpus B (column). Test texts of B that also occur in A's training or validation data (after normalisation) are removed.
- Labels. A cell is scored only on labels both corpora have. By default, it is the macro-F1 over anger, fear, joy and sadness, which nearly all corpora annotate; texts with none of them are left out. With other labels picked, a cell is the mean F1 of these labels and stays empty if a corpus lacks one.
- Share of in-corpus performance (transfer ratio): a cell divided by the test corpus's own model on the same labels, same backbone and seed. Raw macro-F1 is not comparable between cells with different labels; the ratio is.
- Dimensions. Valence–arousal: Pearson r, mean over the dimensions both corpora share. Appraisals: Pearson r on the core appraisals both schemes have. Components: macro-F1. Cells with fewer than two shared dimensions are marked.
- Prompted models are scored on their answers as they are; no label is forced when none is named.
- Nothing is selected or tuned on test data: thresholds, epochs and model choices use validation data only.
Corpus details
- Characteristic words: weighted log-odds ratio with an informative Dirichlet prior (Monroe, Colaresi and Quinn, 2008), each label (or high/low appraisal, valence–arousal or component group) against the rest of the corpus. Words are lower-cased letter sequences without URLs and stop words; a word must occur in at least 3 texts of the group; 15 words per group.
- Similar corpora: by vocabulary (cosine similarity of document-frequency vectors) and by label distribution (cosine similarity of the shares of the shared labels, over at least 4 labels both corpora annotate). Corpora that annotate the same texts are listed separately.
- Example texts: up to 12 per label for our corpora, 3 for corpora of other groups, with user names and links masked; texts with offensive words are skipped.
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
- TinyGPU cluster of NHR@FAU (Erlangen): most training and prediction runs on single NVIDIA GeForce RTX 2080 Ti (11 GB) GPUs, some on RTX 3080 (10 GB); the prompted language models on A100 (40 GB).
- Group server with two NVIDIA H100 GPUs: earlier versions of the no perspective and perspective models and their experiments; the current versions were trained on TinyGPU (on the H100 server two runs per GPU, about 90 seconds per 1,000 training steps).
- Software: PyTorch 2.6 (CUDA 12.4) and transformers 5.22 for most runs; the newest runs use PyTorch 2.11 (CUDA 12.8). The baseline is plain NumPy.
Totals
| Runs or jobs | Hours | |
|---|---|---|
| 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 runs | 267 h |
| Bag-of-words baselines (CPU) | 432 runs | 0.8 h |
| GPU hours of all experiments | about 320 h | |
| TinyGPU (job accounting: training, prediction, prompted language models, data generation; including 6 h of failed or timed-out jobs) | 1,385 jobs | 276 h |
| of these on RTX 2080 Ti / RTX 3080 / A100 | 226 / 34 / 16 h | |
| H100 server (estimate from the run records: 91 h of run time, two runs sharing one GPU) | 252 runs | about 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):
| Models | Encoder | Runs | Median per run | Longest run | Total |
|---|---|---|---|---|---|
| Single-corpus and combined models, all corpora | XLM-R | 124 | 6 min | 4.1 h | 36 h |
| DeBERTa | 90 | 5 min | 1.4 h | 15 h | |
| Our corpora, incl. domain models and our-corpora model | XLM-R | 67 | 5 min | 18 min | 5.8 h |
| DeBERTa | 48 | 4 min | 9 min | 2.9 h | |
| All labels of a corpus | XLM-R | 72 | 4 min | 31 min | 8.5 h |
| DeBERTa | 60 | 4 min | 30 min | 6.9 h | |
| Dimension models | XLM-R | 45 | 2 min | 9 min | 1.9 h |
| DeBERTa | 45 | 2 min | 8 min | 2.0 h | |
| Released single-corpus models | both | 28 | 3 min | 6 min | 1.4 h |
| Context-ContArgA | both | 12 | 4 min | 6 min | 0.8 h |
| No perspective and perspective models (current label map) | XLM-R | 6 | 25 min | 26 min | 2.4 h |
| Experiments towards the no perspective and perspective models | XLM-R | 96 | 19 min | 45 min | 33 h |
| Bag-of-words baseline (CPU) | – | 189 | < 1 min | 2 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.
| Model | Hardware | Seconds per 1,000 tokens | Seconds per 1,000 texts | Texts per second |
|---|---|---|---|---|
| XLM-RoBERTa base | NVIDIA RTX 2080 Ti | 0.03 | 0.9 | 1,140 |
| DeBERTa-v3 base | NVIDIA RTX 2080 Ti | 0.06 | 1.8 | 570 |
| XLM-RoBERTa base | Apple M3 CPU, 4 threads | 0.9 | 27 | 37 |
| DeBERTa-v3 base | Apple M3 CPU, 4 threads | 1.6 | 47 | 21 |
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):
| Model | Seconds per 1,000 texts | Texts per second |
|---|---|---|
| Mistral 7B v0.3 | 21 | 48 |
| Llama 3.1 8B | 25 | 40 |
| Qwen3 8B | 25 | 40 |
| Granite 3.3 8B | 38 | 26 |
| Gemma 3 12B | 39 | 26 |
| gpt-oss 120B (four A100) | 10 | 101 |
| Qwen3 32B (four A100) | 32 | 31 |
| Llama 3.3 70B (four A100) | 94 | 11 |
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.

