Series AIB10 Deck Log

~1 min read

Why the Sentiment Model Was Rebuilt from the Data Up

Found data leakage, domain mismatch, and overfitting in the sentiment model, so the data was rebuilt from scratch. A real-news dataset via Gemini auto-labeling, retraining automated in CI with a regression guard, and groundwork for a Chrome extension.

UnderwayMLData

Log

On Jun 22, three defects turned up in the sentiment model (TensorFlow): data leakage, domain mismatch, and overfitting. The root cause was training data drawn from a different distribution than real news. So the data was rebuilt first.

  • Built a real-news sentiment dataset via a Gemini auto-labeling pipeline (batch progress logs, local-generation onboarding included)
  • Retrained on 266 real articles and recorded the results as they were in the README
  • Declared the labeled dataset a version-controlled asset so data is managed like code
  • Added a CI workflow for automatic dataset increments and retraining, with a regression guard that blocks backsliding

On Jun 30, the Chrome extension code moved into the main repository and CORS was opened for the extension origin. AIB10, served only as a web service until now, is ready to run inside the browser.

Judgment

Key point

When a model misbehaves, the temptation is to tweak the model. All three defects, though, traced back to data, and the order of work followed that. Lay the data down again first and manage it as an asset. Then move retraining from hands to CI and let the regression guard prevent backsliding. From here, the model retrains itself as the data grows.

Related

Portfolio'AIB10' — AI News Summarization & Sentiment AnalysisOperationsAIB10 — AI-powered news summarization and sentiment analysisJournalThe Single-Server Infrastructure Behind AIB10JournalAIB10's Logic Design, from Collection to AlertsJournalThe Features and Screens That Went Into AIB10JournalEnding AIB10, and the 80 Days Without a Single Sign-up

2 more — see all under AIB10 in Operations ›