Skip to content
Nat Lee

Keyboard shortcuts

Turn these off if they get in the way of a screen reader or voice control. The setting is saved in this browser.

1
Home
2
Work
3
Projects
4
About
5
Experience
/
Search projects
?
Show this panel

AI/ML

Spin-off · Master's thesis + Big Data

Sentiment Bundle Benchmark

Compare sentiment models on the same terms

TF-IDF, embeddings, fine-tuned encoders and a local language model, evaluated on fixed splits across six sentiment datasets. The successor to GURA.

Role
Creator & Maintainer
Period
2026 – 2026.11
Status
Completed
Categories
Language & sentimentAI & machine learning
Origin
Master's thesis +Big Data
Stack
  • Python
  • PyTorch
  • scikit-learn
  • Transformers
  • Parquet
Sentiment Bundle Benchmark, screenshot 1

Overview

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.

  1. Download the Parquet bundle(Pinned Hugging Face revision) → SHA-256 matches?
  2. SHA-256 matches? → yes: Clean, dedupe, split with seed 42 → no: Stop: the file changed
  3. Stop: the file changed(Update the config on purpose)
  4. Clean, dedupe, split with seed 42(Row ids fingerprinted) → Result file already there?
  5. Result file already there? → yes, skip: Another method or dataset left? → no: Which kind of method?
  6. 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
  7. Fit LR, pick C on validation(TF-IDF or frozen embeddings) → Score the test split once
  8. Fine-tune, keep best epoch(By validation macro-F1) → Score the test split once
  9. Compare label words' first tokens(Zero- or eight-shot, no generation) → Score the test split once
  10. Score the test split once(Once, not until it agrees) → Write one JSON result
  11. Write one JSON result(Scores, time, VRAM, size) → Another method or dataset left?
  12. Another method or dataset left? → yes: Result file already there? → no: Write tables, charts and README
  13. 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
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.
  • Quality against speed: fine-tuned encoders score highest, TF-IDF runs fastest
    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
    GURA's 2023 chart readings next to the best held-out test accuracy today
  • Spin-off · Master's thesis + Big Data
    Language & sentimentAI & machine learning33 stars on GitHub

    GURA

    The earlier BiGRU + self-attention sentiment experiment. Preserved for reference; current comparisons live in Sentiment Bundle Benchmark.

    2019Archived
  • Spin-off · Master's thesis
    Language & sentimentAI & machine learning11 stars on GitHub

    IMDb Preprocessing Study

    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.

    2019Completed
  • Work · Big Data
    Language & sentimentAI & machine learning

    Sentiment Analysis Platform

    Led the sentiment engine behind a company's social-listening products, reading more than three billion crawled posts. Most of them were complaints.

    2021Completed