Parameter Space Inspector

COMPARISON / INTERPRETABILITY LIBRARIES

Parameter Space Inspector vs BertViz

BertViz is the classic notebook tool for attention in BERT, GPT-2 and encoder-decoder models, with head, model and neuron views. The Parameter Space Inspector shows attention inside a working desktop instrument on current models. Scope, model support, maintenance.

Updated 2026-10-16 · Markdown version

Short version. BertViz, by Jesse Vig, taught a generation of people what attention heads look like. It visualises attention and nothing else, is in maintenance mode, and its request for Llama support has been open since 2024. The Parameter Space Inspector shows attention for current models as one part of a larger picture, with the knock-outs that say whether a head mattered.

Side by side

Parameter Space Inspector BertViz
What it is Desktop instrument that opens a local model and measures it Interactive attention visualisation in Jupyter and Colab
Made by The Emergence Machine Jesse Vig
Licence Apache-2.0 Apache-2.0
How you use it Install the app; views with controls pip install bertviz; a few lines in a notebook; HTML export
Models Any GGUF for answers; any Hugging Face-format folder for inside views Most Hugging Face models with output_attentions=True; neuron view only for bundled BERT, GPT-2 and RoBERTa; Llama support requested, open
What it shows What each token looked at, in context, beside logit lens, neurons, patching, concept maps, cuts, features, timeline Head view, model view (all layers and heads), neuron view (query and key vectors)
Interventions Knock-outs with random controls, patching, cuts, steering None
Stated limits Inside views need GPU memory for the model Slow on long inputs and large models; attention does not directly explain predictions
Activity Active 1.4.1 on 2025-06-01 (dependency fix); README edit 2026-01

Where BertViz is the better choice

Teaching. The model view's grid of every layer and head is still the clearest picture of multi-head attention, and it works in a free Colab on GPT-2 in minutes.

Where the Inspector is the better choice

Working with a model you actually use, on your own machine, and asking whether what you see in the attention matters to the answer.

See it in a case study

Each of these is a published study you can repeat in the Inspector and change to your own question.

  • Knock-outs with random controls: Reproduce a published result tonight, which knocks out Pythia-410m's strongest induction heads beside the same number of random heads, so a loss counts only if random heads do not cause it.
  • Logit lens: Does it fold when you push back?, where the logit lens read "Canberra" from about layer 29 of Qwen3-4B and showed how the middle layers changed under pushback.
  • Patching: Where is the fact decided?, which mapped where copying one activation from the Eiffel Tower prompt brings "Paris" back: a band of middle layers at the subject's position.
  • Concept maps: Where is the fact decided?, which lit up "Bluetooth" and deleted 1,117 of its neurons over several rounds, against random neurons as a control, and the model still answered correctly.
  • Cuts: Find the tipping point before you prune, which cut growing shares of Qwen3-4B at random: coherent writing fell to 46% at 20% removed and the model wrote gibberish at 40%.
  • Steering: Does an AI dig in once it has been wrong?, which steered Qwen3-4B along a deference direction, with a random direction as a control, and found its own wrong answers then held it on Sydney for 16 turns with steering off.

Questions people ask

Does BertViz support Llama or Qwen?

Head and model views work on many Hugging Face models that return attentions; a Llama-specific update request has been open since 2024. The neuron view is limited to its bundled models.

Why does nothing render in my notebook?

The most-discussed BertViz issues are environment problems with ipywidgets and JupyterLab. The Inspector has no notebook dependency.

Can I save a figure?

BertViz exports HTML; image or vector export has been requested since 2019. The Inspector stores measurements rather than figures; the research log's scripts produce publishable charts.


Facts about BertViz verified on 2026-10-16 from its repository, releases and PyPI. Corrections welcome.