CoolFace
Apppublic

Peppinob/concept-swap-explorer

sourceHugging Facegpl-3.0updated 4mo agoView on Hugging Face
0likes
App README

Concept Swap Explorer -- Cross-Domain Circuit Steering

Interactive visualization of circuit steering experiments across 4 knowledge domains. Explore how feature-level interventions on attribution-graph circuits redirect model outputs from one concept to another.


Domains

DomainEntitiesPrompt patternRuns
USA States50 states"The capital of the state containing [City] is..."4
Book Characters & Authors10 characters"The book featuring [Character] was written by..."4
Paintings & Painters10 paintings"The first name of the painter of [Painting] is..."4
Products & Founders12 products"The company that makes [Product] was founded by..."4

Use the Run dropdown in the header to switch between domains and experiment types (labeled swaps, random-feature controls, field-add controls).


What This Shows

For each domain the demo visualizes experiments where we:

  1. 1.Trace the attribution-graph circuit a language model uses to answer a factual prompt
  2. 2.Use Probe Prompting to identify concept-related CLT features and group them into supernodes
  3. 3.Swap source features out (ablate) while amplifying target features, then measure how the model's output changes

The Steering Matrix

Each cell shows the result of swapping a source entity's circuit into a target entity's context:

TierResultMeaning
T5PERFECTModel outputs the target answer
T4Partial + AnswerTarget-domain content with the correct answer entity
T3PartialTarget-domain content without the exact answer
WWrong AnswerNeither source nor target answer
T2SuppressedSource suppressed, no target content
T1Source PersistsSource answer still appears in output

Click Any Cell

See detailed results including:

  • Default vs steered model outputs
  • Token probability changes
  • Logit-flip trajectory (when available)
  • Links to Neuronpedia circuit visualizations

Experiment Types

Each domain includes multiple run types:

  • Labeled -- swap matched supernodes between source and target circuits
  • Random -- swap the same number of randomly chosen features (control)
  • Field-add -- inject only target features without ablating source (control)

Related Research


Data

This Space visualizes 41,784 swap runs across 4 domains and 4 experimental conditions (labeled, matched-random, field-additivity, adaptive M-search), all performed on Gemma-2-2B with Cross-Layer Transcoders.


Version: 2.0.0 Model: Gemma-2-2B License: GPL-3.0

Peppinob/concept-swap-explorer · CoolFace