A reproducible sentiment-classification benchmark across MyAnimeList reviews and five classic English datasets. Fixed splits and seeds support comparisons of accuracy, macro-F1, training time, inference speed, memory and model size. It replaces the older GURA BiGRU experiment.
What it's good for
Before choosing a sentiment model, see what each option costs as well as what it scores: accuracy and macro-F1 next to training time, speed, VRAM and size, on identical splits. The best frozen embedding lands within two points of fine-tuning, so the budget gets a vote too.
Diagrams
Main paths only. The edge cases stayed in the code.
Half a minute of TF-IDF on a CPU beat GURA's best claimed IMDB score.
Point at a box to see what it connects to.
Download the Parquet bundlePinned Hugging Face revision
SHA-256 matches?
Stop: the file changedUpdate the config on purpose
Clean, dedupe, split with seed 42Row ids fingerprinted
Result file already there?
Which kind of method?
Fit LR, pick C on validationTF-IDF or frozen embeddings
Fine-tune, keep best epochBy validation macro-F1
Compare label words' first tokensZero- or eight-shot, no generation
Score the test split onceOnce, not until it agrees
Write one JSON resultScores, time, VRAM, size
Another method or dataset left?
Write tables, charts and README
Download the Parquet bundle(Pinned Hugging Face revision) → SHA-256 matches?
SHA-256 matches? → yes: Clean, dedupe, split with seed 42 → no: Stop: the file changed
Stop: the file changed(Update the config on purpose)
Clean, dedupe, split with seed 42(Row ids fingerprinted) → Result file already there?
Result file already there? → yes, skip: Another method or dataset left? → no: Which kind of method?
Which kind of method? → fixed features: Fit LR, pick C on validation → encoders: Fine-tune, keep best epoch → local LLM: Compare label words' first tokens
Fit LR, pick C on validation(TF-IDF or frozen embeddings) → Score the test split once
Fine-tune, keep best epoch(By validation macro-F1) → Score the test split once
Compare label words' first tokens(Zero- or eight-shot, no generation) → Score the test split once
Score the test split once(Once, not until it agrees) → Write one JSON result
Write one JSON result(Scores, time, VRAM, size) → Another method or dataset left?
Another method or dataset left? → yes: Result file already there? → no: Write tables, charts and README
Write tables, charts and README
Features
Six datasets with fixed splits and seeds
TF-IDF, embeddings, ModernBERT, DeBERTa-v3 and local-model baselines
Accuracy, macro-F1, runtime, memory and model-size reports
Dataset bundle available on Hugging Face
Macro-F1 for all seven methods; zero-shot Qwen's 37.3 on SUBJ is not a typo
What I learned
Re-running ModernBERT on IMDB with the same seed moved macro-F1 from 91.6 to 90.9, so gaps under a point between fine-tuned models are noise.
Zero-shot, the 2B LLM called 98% of SUBJ sentences 'subjective'; eight examples in the prompt fixed that but hurt MR and MyAnimeList.
Re-reading the 2023 bundle found half the IMDB training set was generated word salad and the MyAnimeList scores slid out of line with their text.
How it fits together
Simplified on purpose. The real thing has more arrows and at least one config file nobody understands.
Screenshots
Quality against speed: fine-tuned encoders score highest, TF-IDF runs fastest
GURA's 2023 chart readings next to the best held-out test accuracy today
Related projects
Spin-off · Master's thesis + Big Data
Language & sentimentAI & machine learning33 stars on GitHub
An unofficial, reproducible re-run of a BlackboxNLP 2018 paper's IMDb experiments: four ways to preprocess the text, two neural models, every run traceable. It started as research for my master's thesis in 2019. That version had three bugs; this one fixes them and says where they were.