Building an Interpretability Playground with Activation Steering

ramp · Tech · 2026 · source Agentic: no · promotional bias: med · summary-only (no fetched source) · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: LLM interpretability and controllability

Ramp wanted an interpretability playground that could steer model behavior at inference time without retraining, while exposing the practical engineering problems of layer choice, multiplier calibration, model instability, and GPU startup latency.

Constraints:

Architecture

Ramp built Steer, an activation-steering playground. It computes steering vectors for target concepts, injects those vectors into selected model layers during inference, migrated from Qwen 2.5 7B to Gemma 3 27B-IT, tested 1,280 layer/multiplier configurations, and deployed on Modal serverless GPUs with snapshots to reduce cold starts.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  user[User] --> steer-playground[Steer Playground]
  steer-playground --> steering-vector-engine[Steering Vector Engine]
  steering-vector-engine --> gemma-model[Gemma Model]
  steer-playground --> modal-gpu-runtime[Modal GPU Runtime]
  modal-gpu-runtime --> gemma-model[Gemma Model]
  experiment-grid[Experiment Grid] --> steering-vector-engine[Steering Vector Engine]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
User Person experimenting with model steering concepts. Steer Playground
Steer Playground Interactive interface for configuring and running activation steering. Steering Vector Engine, Modal GPU Runtime
Steering Vector Engine Computes and applies steering vectors at selected layers. Gemma Model
Gemma Model Gemma 3 27B-IT model used for stable steering experiments. Steering Vector Engine
Modal GPU Runtime Serverless GPU infrastructure with snapshots for faster startup. Steer Playground, Gemma Model
Experiment Grid Layer and multiplier search over steering configurations. Steering Vector Engine

Data flow

A user selects a concept and steering intensity. Steer applies a steering vector to targeted activations during the model forward pass, runs the selected model on Modal GPU infrastructure, and returns generated behavior that reflects the steering experiment.

“Ramp built Steer, an interpretability playground that uses activation steering to modify LLM behavior at inference time without retraining. The system allows users to steer models toward specific concepts by adding steering vectors to activations at targeted layers during the forward pass.”summary, stated
“The system allows users to steer models toward specific concepts by adding steering vectors to activations at targeted layers during the forward pass.”summary, stated

Why this architecture

Ramp used activation steering because it let the system demonstrate controllable model behavior without retraining. The move to Gemma 3 27B-IT and calibration over many configurations addressed the model stability and layer-selection problems that made the initial approach unreliable.

“Ramp built Steer, an interpretability playground that uses activation steering to modify LLM behavior at inference time without retraining. The system allows users to steer models toward specific concepts by adding steering vectors to activations at targeted layers during the forward pass.”summary, stated
“After initially struggling with Qwen 2.5 7B's instability and limited capacity, they migrated to Gemma 3 27B-IT and conducted extensive experiments across 1,280 configurations to determine optimal layer selection and multiplier calibration.”summary, stated

Models used: Qwen 2.5 7B · Gemma 3 27B-IT

Scale

Alternatives considered (roads not taken)

Fine-tune or retrain the model for each behavior.

Rejected because: Steer modifies behavior at inference time without retraining.

“This case study illuminates a sophisticated approach to modifying LLM behavior at inference time without fine-tuning or retraining, offering insights into both the technical challenges of deploying such systems and the architectural differences between modern transformer models.”summary, stated

Continue with Qwen 2.5 7B.

Rejected because: The summary reports instability and limited capacity with that model.

“After initially struggling with Qwen 2.5 7B's instability and limited capacity, they migrated to Gemma 3 27B-IT and conducted extensive experiments across 1,280 configurations to determine optimal layer selection and multiplier calibration.”summary, stated

Use uncalibrated layer injection.

Rejected because: Layer selection and multiplier calibration required broad experimentation.

“After initially struggling with Qwen 2.5 7B's instability and limited capacity, they migrated to Gemma 3 27B-IT and conducted extensive experiments across 1,280 configurations to determine optimal layer selection and multiplier calibration.”summary, stated

Patterns

latency-optimization (inference)

Modal snapshots reduce serverless GPU cold-start latency for interactive steering.

“snapshot capabilities to reduce cold starts”summary, stated

eval-driven-development (experimentation)

Ramp used a 1,280-configuration experiment grid to calibrate layers and multipliers.

“conducted extensive experiments across 1,280 configurations”summary, stated

model-routing (model selection)

The team changed model family after Qwen 2.5 7B proved unstable.

“migrated to Gemma 3 27B-IT”summary, stated

Tradeoffs

Control technique

Chose Activation steering over Fine-tuning or retraining.

Rationale: The playground needed interactive behavior changes at inference time.

“modify LLM behavior at inference time without retraining”summary, stated

Model choice

Chose Gemma 3 27B-IT over Qwen 2.5 7B.

Rationale: Gemma provided better stability and capacity for the demonstrations.

“migrated to Gemma 3 27B-IT”summary, stated

Hosting

Chose Modal serverless GPU snapshots over Unoptimized cold-start GPU serving.

Rationale: Interactive exploration required shorter startup latency.

“deployed on Modal's serverless GPU infrastructure with snapshot capabilities”summary, stated

Gotchas (what bit them)

Activation steering is model-architecture sensitive.

Root cause: Layer choice and sparse global attention behavior affect steering quality.

Resolution: Target sparse global attention layers with calibrated multipliers.

“targets sparse global attention layers with carefully calibrated multipliers”summary, stated

A smaller model may not be stable enough for interpretability demos.

Root cause: Qwen 2.5 7B had instability and limited capacity.

Resolution: Migrate to Gemma 3 27B-IT.

“Qwen 2.5 7B's instability and limited capacity”summary, stated

Evaluation

Ramp evaluated Steer by sweeping 1,280 configurations, comparing model stability, choosing layers and multipliers, and measuring cold-start reduction on Modal.

Metrics: Configuration count · Cold-start latency · Layer selection quality · Multiplier calibration · Model stability

“determine optimal layer selection and multiplier calibration”summary, stated

Outcomes

The summary reports 1,280 configurations, Gemma 3 27B-IT, and cold-start reduction from 60-120 seconds to 5-12 seconds.

“Ramp built Steer, an interpretability playground that uses activation steering to modify LLM behavior at inference time without retraining.”summary, stated