Skip to main content

VRAVEN

VRAVEN raven signature

Visual Reasoning and Activation Visualisation for Explainable Networks
Compiler-assisted causal decompilation and scientific explanation for PyTorch models.

Documentation · Quick start · PyPI · Issues

VRAVEN investigates how a trained neural network forms a decision. It captures internal evidence, tests selected relationships through interventions, searches for bounded counterfactuals and reports both coverage and unresolved computation.

It separates observational evidence from causal evidence and never treats a visually convincing explanation as proof by itself.

Install

VRAVEN requires Python 3.10 or newer. A clean virtual environment is recommended.

python3.13 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install vraven==0.10.0
vraven doctor

On Windows PowerShell, activate with .venv\Scripts\Activate.ps1.

Start simply

Create one local demonstration report:

vraven demo --mode gradient \
  --report-format html \
  --output vraven-demo.html

Or point the beginner workflow at a self-contained model folder:

vraven bundle ./my-model
vraven analyse ./my-model

The model-folder guide shows how to keep model.pt, its architecture, representative input and defaults together in a validated VRAVEN bundle.

What it can do

  • ✅ Explain one prediction in fast, gradient or causal mode
  • ✅ Capture PyTorch computation into the architecture-neutral Mechanism IR
  • ✅ Discover and track candidate internal concepts across layers
  • ✅ Compile and measure targeted internal interventions
  • ✅ Recover and test compact executable decision programmes
  • ✅ Produce contrastive and bounded counterfactual evidence
  • ✅ Run adversarial, stability, LRP and supported formal analyses
  • ✅ Analyse datasets, compare models and follow checkpoint evolution
  • ✅ Export one HTML, PDF or JSON report per invocation
  • ✅ Report evidence coverage, limitations and unresolved computation

Run vraven features for the installed capability inventory or use the command chooser to select one focused workflow.

Python

import vraven

report = vraven.explain(model, inputs, target=1, mode="causal")
report.export_html("vraven-report.html")

Advanced configuration remains available through the Python API without making the basic workflow depend on dozens of positional arguments.

Methodology

Figure 3 is the twelve-stage methodology:

VRAVEN twelve-stage methodology

The editable source is docs/assets/vraven-methodology.drawio.

Scientific boundaries

VRAVEN does not claim that every model can be fully captured, every discovered direction has human meaning, or a recovered programme is globally unique. Internal counterfactual validity is distinct from real-world domain validity. Unsupported operations and weak or missing evidence are reported rather than hidden.

Security and privacy

Processing is local by default and VRAVEN adds no telemetry. Full Python-pickled models are blocked unless trusted loading is explicitly enabled. Never load an untrusted pickle.

Project

VRAVEN is experimental alpha research software licensed under Apache-2.0. See CONTRIBUTING.md, LICENSE and NOTICE.

Metadata

Release files for vraven 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vraven 0.10.0
File Size Uploaded Provenance Actions
vraven-0.10.0.tar.gz 438.7 kB With provenance Details for vraven-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vraven 0.10.0
File Interpreter ABI Platform Actions
vraven-0.10.0-py3-none-any.whl Python 3 none any Details for vraven-0.10.0-py3-none-any.whl

Total release size: 927.2 kB

Release files / vraven-0.10.0.tar.gz

Download URL vraven-0.10.0.tar.gz
Size 438.7 kB
Tags Source
SHA-256 checksum
How to use checksums
530e84210871d86a35b07a4a06cae8f5fc4248033288fbe43a7385f502a3bbce
BLAKE2b-256 checksum
How to use checksums
1b9c76bc721cc44a3f4cc7afb5330a83e6788fbaf1612b8a940e77e5089d02f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / vraven-0.10.0-py3-none-any.whl

Download URL vraven-0.10.0-py3-none-any.whl
Size 488.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13ed871ae69203145041ca785499667861e5c7958390bf842447e40ea0e9b81e
BLAKE2b-256 checksum
How to use checksums
14c631ccb8d9bba9d754b8d3fa506589e55bd7427c1818c6c563bf750ce53fad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Security for vraven 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vraven-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page