Find examples where a trained model performs poorly or fails unexpectedly.
See which parts of an input most influenced a specific model prediction.
Test whether a model's output changes consistently when you edit an input.
Compare two models side by side on the same data.
| pair-code/lit | archestra-ai/archestra | adrianhajdin/portfolio | |
|---|---|---|---|
| Stars | 3,653 | 3,653 | 3,652 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | moderate | hard | easy |
| Complexity | 3/5 | 4/5 | 2/5 |
| Audience | researcher | ops devops | vibe coder |
Figures from each repo's GitHub metadata at analysis time.
Requires Python 3.9+ and, for source builds, a separate yarn/frontend build step.
LIT, short for Learning Interpretability Tool, is a browser-based tool for understanding why machine learning models behave the way they do. It is aimed at researchers and developers who have already built or trained a model and want to inspect it: finding cases where it fails, understanding why it made a particular prediction, or checking whether it behaves consistently when you change small things in the input. The tool works with text, image, and tabular data, and is compatible with popular machine learning frameworks like TensorFlow and PyTorch. It can be run as a standalone web server on your machine, or embedded directly inside notebook environments like Jupyter or Google Colab for more interactive use. The browser interface offers several ways to explore a model. Local explanations use highlighting called salience maps to show which parts of an input most influenced a prediction. Aggregate analysis lets you compute custom metrics, slice your data into subgroups, and visualize how the model arranges its outputs in an embedding space, which is a geometric representation of how the model relates different inputs to each other. A counterfactual generator lets you edit an example and immediately see how the model's prediction changes, which is useful for stress-testing the model or finding edge cases. Side-by-side mode lets you compare two different models on the same data. LIT is extensible: you can connect your own model by writing a short Python wrapper that follows the tool's data and model APIs. Additional interpretability components can be added on both the backend and frontend sides. The project is developed by PAIR (People and AI Research at Google) and includes live demos, a user guide, and a published research paper describing the design.
LIT is a visual, browser-based tool that lets researchers inspect and understand why a trained machine learning model made its predictions.
Mainly TypeScript. The stack also includes TypeScript, Python, TensorFlow.
Not stated in the README.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.