Skip to main content

VRAVEN

VRAVEN raven signature

Evidence-aware explainability for PyTorch models
Trace internal evidence, test selected mechanisms and create auditable reports.

Documentation · Quick start · Python API · PyPI · Issues

VRAVEN stands for Visual Reasoning and Activation Visualisation for Explainable Networks. It is an explainability and model-auditing toolkit for investigating how a trained neural network reaches a decision.

VRAVEN can capture internal evidence, inspect candidate concepts, test selected relationships through interventions, search for bounded counterfactuals and report what the analysis did—and did not—cover. It keeps observational evidence separate from causal evidence and does not present an attractive visualisation as proof by itself.

Install

VRAVEN requires Python 3.10 or newer. Use a clean virtual environment so the package and its PyTorch dependencies do not affect other projects.

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

On Windows PowerShell, activate the environment with .venv\Scripts\Activate.ps1. If installation reports that the release requires a newer Python version, run python --version and install Python 3.10 or newer.

Create your first report

Run the deterministic demonstration to create one self-contained HTML report:

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

Open vraven-demo.html in a browser. The report contains the prediction, evidence visualisations, analysis metadata and stated limitations.

Analyse your own model

For a saved state dictionary, provide the Python factory that rebuilds the model and a representative input tensor:

vraven analyse model.pt \
  --model-format state_dict \
  --model-factory my_project.models:Classifier \
  --input input.pt \
  --task explain \
  --preset standard \
  --format html \
  --output vraven-report.html

If the model has several files or configuration values, place them in a VRAVEN model bundle. The model-folder guide walks through the required files, validation and analysis commands.

A model.pt file does not always contain the model architecture. A saved state_dict also needs the model class or factory that created it. Full Python-pickled models should only be loaded when their source is trusted.

Python API

import vraven

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

Change the output extension to write one supported report per call, such as vraven-report.pdf or vraven-trace.json. See the API reference for the complete signatures and return types.

What VRAVEN can do

  • ✅ Explain an individual prediction in fast, gradient or causal mode
  • ✅ Capture PyTorch computation in an 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
  • ✅ Record evidence coverage, limitations and unresolved computation

Run vraven features for the capability inventory installed on your machine. Use the command guide to pick one focused workflow and see its parameters.

How the analysis fits together

VRAVEN connects model capture, internal concept discovery, intervention, programme recovery, counterfactual testing and evidence certification in one traceable workflow.

VRAVEN methodology from model capture to evidence certification

The workflow is not a claim that every analysis completes every stage. Reports identify unsupported operations, missing evidence and the scope within which a result was produced.

Choose the right starting point

Goal Start here
Install VRAVEN and create a first report Getting started
Analyse a model and its configuration files Model folders
Select a terminal workflow Command guide
Use VRAVEN from Python API reference
Choose a report format and understand its evidence Report guide
Review the scientific foundations Research foundations

Scientific boundaries

VRAVEN does not claim that every model can be fully captured, that every discovered direction has human meaning, or that a recovered programme is globally unique. Internal counterfactual validity is also distinct from real-world domain validity. Treat each result according to its stated evidence level, coverage and assumptions.

Privacy and security

Analysis runs locally by default and VRAVEN adds no telemetry. Full Python-pickled models are blocked unless trusted loading is explicitly enabled. Never load a pickle from an untrusted source.

Project status

VRAVEN is experimental research software. APIs, report schemas and supported operations may change before a stable 1.0 release. Contributions and reproducible bug reports are welcome; see CONTRIBUTING.md.

Licensed under Apache-2.0. See LICENSE and NOTICE.

Metadata

Release files for vraven 0.10.1

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.1
File Size Uploaded Provenance Actions
vraven-0.10.1.tar.gz 440.5 kB With provenance Details for vraven-0.10.1.tar.gz

Built distribution (wheel)

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

Total release size: 929.8 kB

Release files / vraven-0.10.1.tar.gz

Download URL vraven-0.10.1.tar.gz
Size 440.5 kB
Tags Source
SHA-256 checksum
How to use checksums
760c0ef544eab9a642401dc0f30ef3e82e19b36452c8e4255b36e14f84a2276d
BLAKE2b-256 checksum
How to use checksums
d80ee98492e450acffb9d09b5563c238376f1594ad99357bec106884f6a68eee
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.1-py3-none-any.whl

Download URL vraven-0.10.1-py3-none-any.whl
Size 489.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bf4513a1d6023d6a9092b6bafff06e694c8867028a3314bb8d8568c4b51f988
BLAKE2b-256 checksum
How to use checksums
b9ba199aeae590f266046f7165786f78243f4291c067dc42d6ae393fb7ae9bc9
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.1

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.1.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