Track: General. Demo video (2:08): https://youtu.be/xaV33zHHZf8. Every number below comes from ml/results/results.md and the files it links to, or from the spike and run reports in docs/research/ and docs/plans/. Numbers that can only be measured on the iPhone are proxies or estimates and say so; the method is in perf-proxy.

Inspiration

Interpretability research usually happens in notebooks on static images. We wanted to hold a vision model's internal features in our hand: point a phone at the world and watch, live, which concepts the model uses where, then poke one and see the model change its mind.

What it does

Point an iPhone at anything and LiveScope shows, live and on-device, which interpretable features a vision transformer uses, patch by patch:

  • Live feature map. A sparse autoencoder (SAE) we trained decomposes DINOv2's internal state into 8,192 features. Every camera frame, the app draws the strongest features as a dot field over the 16 x 16 image patches, with labels on a readout rail.
  • Matryoshka zoom. The same patch explained at three levels: Coarse (512 features), Mid (2,048) and Fine (8,192). One SAE, nested dictionaries, so "animal" at Coarse and "dog nose" at Fine are the same model at different resolutions.
  • Tap to inspect. Freeze the frame, tap a patch, and see every feature active there with its label, strength and example crops.
  • Causal check. Remove one feature from the model's internal state and the model's own ImageNet answer changes, while removing a comparable feature (matched on size and spread) barely moves it. On the sample dog photo, removing the "dog nose" feature takes "boxer" from 0.30 to 0.09.

To our knowledge, LiveScope is the first public tool to run a vision-transformer sparse autoencoder live on a phone camera, combining per-patch features, Matryoshka coarse-to-fine zoom on the same patch, and on-device feature ablation that changes the classifier's answer next to a matched control; earlier work does these offline or in the browser on static images (Stevens et al. 2025; Zaigrajew et al. 2025; Nabeshima 2024). See docs/research/prior-art.md.

How we built it

  • Backbone. DINOv2 ViT-S/14 with registers (Meta, Apache-2.0), read at the output of block 11 of 12, 224 x 224 input, 256 patch tokens.
  • SAE. Matryoshka BatchTopK SAE, 384 -> 8,192 features, nested levels 512 / 2,048 / 8,192, about 32 active features per patch. We wrote the training code from scratch and trained it on 200M patch tokens streamed from COCO 2017 on one rented RTX 5090. Both candidate layers (10 and 11) trained together from one backbone pass in 32 minutes. The whole rental, including labelling, cost $2.13.
  • Labels. Qwen3-VL-8B (Apache-2.0) described the top-activating Open Images crops of each feature. Each label was then tested on held-out crops it never saw, mixed with look-alike crops from other features. Only labels that pass are shown (1,244 at our 0.75 threshold).
  • On device. Three Core ML models: an encoder (backbone fused with the SAE encoder) on the Neural Engine, a tiny CPU top-k model, and a "tail" (the last transformer block plus DINOv2's ImageNet head) for the causal readout. Splitting top-k out of the Neural Engine model took the Mac proxy latency from 16.5 ms to 5.5 ms. 99.3% of encoder ops run on the Neural Engine. Core ML fp16 matches PyTorch fp32 at patch cosine 0.9999.
  • App. SwiftUI and Metal, one shared package for iOS and a Mac webcam target. Analysed frames and overlays are drawn together, so the overlay never lags the image. The UI is a dark "precision instrument": dot-matrix map, tick-scale level control, mono numerals, one amber accent.
  • Process. A design spec with 50 recorded decisions, three rounds of independent review, and one conductor agent coordinating ML and app worker agents, each in its own git worktree.

Results

Layer 11 (shipped)
Explained variance, Coarse / Mid / Fine (COCO held-out) 0.687 / 0.804 / 0.835
Dead features 0%
Core ML vs PyTorch, patch cosine 0.9999 (min 0.9966)
Causal check: ablated feature beats matched control 98.6% of 500 images; median probability drop 0.155 vs 0.001
Zoom: Map changes between Coarse and Fine 65.4% of covered patches
SAE keeps the model's answer (top-1 agreement, COCO) 81.6%
Mac encoder + top-k (proxy) 5.48 ms p50
Pipeline on the Mac Neural Engine (proxy, 30 fps for 120 s) frame 5.8 / 11.7 / 14.4 ms p50/p95/p99, 30 fps sustained; app memory peak 105 MB in the simulator
Full Mac app, iPhone-like limits (device-like, not the device; 10 min at 30 fps) frame 13.6 / 17.3 / 18.5 ms p50/p95/p99, 30.0 fps, memory peak 281 MB, no thermal warning
iPhone 16 Pro latency and fps estimate about 15-20 ms per frame in the full app, 30 fps sustained; not yet measured on device (perf-proxy)
iOS app size 94.2 MB

Caveat: the causal check picks the feature with the largest attribution to the predicted class, so it shows that a class-relevant feature matters more than a comparable one; the effect sizes are the informative part.

Challenges we ran into

  • Top-k on the Neural Engine. In-graph top-k and its integer outputs cost more than the whole backbone, and concatenating integer tensors pushed the entire model off the Neural Engine. Splitting into an ANE encoder and a CPU top-k model fixed both.
  • Slot budget. The coarse level needed 26 slots per patch, not 8; we measured it on the trained SAE and changed the model contract before the app used it.
  • The first causal metric failed. Ablating the strongest feature by mass picked broad background features and showed nothing (52%). Picking the feature by its effect on the predicted class and keeping the matched control showed a clear effect (98.6%).
  • The labeller labelled our marker. 14-18% of first-pass labels described the red box we drew around the active patch; a second pass fixed all but a few dozen.
  • A $7 GPU budget. One rental did training and labelling for both layers, guarded by a local watchdog that would destroy the instance before the cap.

Accomplishments that we're proud of

  • A real SAE, trained by us, running inside a phone camera loop with exact per-feature heatmaps and exact ablations.
  • Every number in the app and in this writeup is measured, and the failures are reported next to the passes.
  • Total compute spend: $2.13.

What we learned

  • Interpretability tools become intuitive when they are live: moving the camera answers questions faster than browsing a dashboard.
  • On-device ML is as much about graph surgery (where top-k runs, which tensors cross the Neural Engine boundary) as about model size.
  • Causal claims need a control and an honest selection rule; the first rule we tried would have produced a misleading demo.

What's next

  • Measure and tune on the iPhone 16 Pro (latency, frame rate, stability of the rail).
  • Owner-curated demo features and the related-versus-unrelated causal check (SC9b) with a VLM judge.
  • More layers and larger dictionaries, feature steering, and text search over labels.

Credits

DINOv2 (Meta, Apache-2.0), COCO 2017 (training activations only, not redistributed), Open Images V7 (CC BY 2.0 crops with per-image attribution), Qwen3-VL-8B-Instruct (Apache-2.0). All LiveScope code was written during the hackathon, starting with the first commit on 2026-11-28. Code, models and full attribution: https://github.com/byeolki/livescope

Built With

Share this project:

Updates

Submission history