Models that detect misinformation often never leave the research notebook they were trained in. NoKe, built by Entropic member Lucas Germinari, treats fake news detection as a full software and machine learning engineering problem instead.
It has a reproducible training pipeline, compares tree-based models against fine-tuned transformers on a benchmark dataset, includes tools for interpreting errors, and serves predictions through a containerized API and a browser extension.
Data and models
NoKe is trained and evaluated on LIAR-PLUS, a well-studied benchmark of political claims labelled with six levels of truthfulness, plus speaker metadata, the speaker's history of true and false statements, and justification texts.
Two model families are compared:
- Baseline classifier: a scikit-learn Random Forest. A custom
TreeFeaturizerturns each input into TF-IDF n-gram vectors, "credit score" bins derived from the speaker's track record (compute_credit_bins.py), and categorical context metadata. - Transformer: a
RobertaForSequenceClassificationmodel from Hugging Face Transformers, fine-tuned with PyTorch Lightning, which takes care of the training loop, learning-rate scheduling and validation logging.
Reproducibility and MLOps
- Dependencies: managed with
uvfor fast, deterministic installs. - Data Version Control (DVC): pipeline stages in
dvc.yamllink ingestion, preprocessing, credit-bin computation and training, so each step only reruns when its inputs change. - Experiment tracking: MLflow records parameters, loss curves, confusion matrices and validation metrics (F1, accuracy, AUC).
- Data validation: a Great Expectations suite (
fake_news_data_suite.json) checks processed data for schema conformity and leakage before any training starts. - Continuous integration: GitHub Actions runs the pytest suites for featurization, data loading and model interfaces on every update.
Interpretability and deployment
To see why a statement gets flagged, the error analysis uses SHAP (Shapley Additive Explanations). SHAP values measure how much individual words and speaker credit scores push a prediction, which helps confirm the model relies on real signal rather than dataset artifacts.
Serving is made of three pieces:
- API: a FastAPI app with a
/api/predict-fakenessendpoint. - Container: a Dockerfile that packages the server, model artifacts and dependencies into one image.
- Browser extension: a Chrome extension (
manifest.json,content.js) that lets you select text on any page and get a veracity assessment right there.

