Analysis updated 2026-08-16 · repo last pushed 2019-10-30
Debug a biased model by pinpointing exactly which inputs are causing unexpected decisions.
Explain why a recommendation system suggested a specific item based on user features.
Compare different interpretability algorithms against each other for research purposes.
Interactively explore which features drove a prediction using the Insights web interface.
| zpao/captum | 0xallam/posthog | 0xallam/search-engine | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | — | Python | C++ |
| Last pushed | 2019-10-30 | 2026-03-26 | 2023-08-23 |
| Maintenance | Dormant | Maintained | Dormant |
| Setup difficulty | moderate | moderate | hard |
| Complexity | 3/5 | 3/5 | 3/5 |
| Audience | developer | pm founder | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a working PyTorch environment and an existing PyTorch model to analyze.
Captum is a tool that helps you understand why a machine learning model made a specific prediction. When complex models like deep neural networks produce an output, it is often a mystery which pieces of input data actually drove that decision. This library lifts the hood on those models, showing you exactly which features contributed to the result and how strongly they pushed the outcome one way or another. At a high level, the library analyzes your model and assigns "attribution scores" to each piece of input data. A positive score means that specific feature helped drive the prediction, while a negative score means it pushed against it. The larger the number, the stronger the influence. It works by comparing the actual input against a neutral baseline, like an empty or zeroed-out version of the input, and mathematically tracing how the model's output changes as it moves from that baseline to the real data. It can also peek inside the model to show which internal components, or "neurons," are doing the heavy lifting for a given prediction. Machine learning developers and researchers are the primary users. A developer building a movie recommendation system, for instance, could use this to figure out why the system keeps suggesting a specific film, was it the user's past viewing history, the genre, or the actor? If a model starts making unexpected or biased decisions, engineers can use these tools to pinpoint exactly which inputs are causing the problem and fix the underlying logic. Researchers can also use it to test and compare different interpretability algorithms against each other. The project also includes a web-based visualization interface called Insights, which lets users interactively explore these attribution scores. It is worth noting that the library is still in beta and under active development, meaning features are still evolving. It also requires a specific machine learning framework called PyTorch to function, as it was built specifically to work with PyTorch models.
Captum is a tool for understanding why a machine learning model made a specific prediction. It shows which pieces of input data drove a model's decision and how strongly each feature influenced the outcome.
Dormant — no commits in 2+ years (last push 2019-10-30).
No license information was provided in the explanation.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.