Coursework · Northwestern MSDS 453 (NLP)

Sparse vs. dense representations for short social-media text

Do pretrained sentence embeddings find richer unsupervised structure in short posts than bag-of-words, and is the extra compute worth it? I compared TF-IDF, Doc2Vec, and Sentence-BERT under matched conditions on two corpora.

Role
Solo project
Timeline
Spring 2026
Stack
scikit-learn, Gensim, sentence-transformers

Setup

  • Sentiment140: about 100K tweets with binary sentiment labels, so clustering can be scored against ground truth.
  • Bluesky: about 100K unlabeled English posts from a 7.8M-post corpus, as a contemporary, exploratory test.
  • K-means on each representation with k chosen by silhouette; LDA topics with T chosen by Cv coherence; VADER as a no-training sentiment baseline.
Two line charts of silhouette score versus k for Sentence-BERT clusters on Sentiment140 and Bluesky; all scores are below 0.025.
Sentence-BERT silhouette scores stay near zero for every k on both corpora.

Findings

RepresentationBest silhouette (S140 / Bluesky)ARI vs. sentiment
TF-IDF0.007 / 0.0080.01
Doc2Vec0.034 / 0.037 (k = 2 only)0.00
Sentence-BERT0.019 / 0.0230.00
  • No representation recovers the sentiment partition through unsupervised clustering; short, noisy posts resist it.
  • Dense embeddings beat TF-IDF only slightly, which matters little when ARI is about zero across the board.
  • LDA coherence tracked corpus diversity (0.62 on Bluesky vs. 0.49 on Sentiment140), not representation quality.
  • VADER, with no training at all, reached F1 = 0.75 on binary sentiment, a bar clustering never approached.

Takeaway

For this kind of text, the overhead of dense embeddings is hard to justify for unsupervised sentiment discovery. A cheap lexicon baseline is the honest benchmark to beat.