LessWrong (30+ Karma)

“Towards Multimodal Interpretability: Learning Sparse Interpretable Features in Vision Transformers” by hugofry


Listen Later

Two Minute Summary

In this post I present my results from training a Sparse Autoencoder (SAE) on a CLIP Vision Transformer (ViT) using the ImageNet-1k dataset. I have created an interactive web app, 'SAE Explorer', to allow the public to explore the visual features the SAE has learnt, found here: https://sae-explorer.streamlit.app/ (best viewed on a laptop). My results illustrate that SAEs can identify sparse and highly interpretable directions in the residual stream of vision models, enabling inference time inspections on the model's activations. To demonstrate this, I have included a 'guess the input image' game on the web app that allows users to guess the input image purely from the SAE activations of a single layer and token of the residual stream. I have also uploaded a (slightly outdated) accompanying talk of my results, primarily listing SAE features I found interesting: https://youtu.be/bY4Hw5zSXzQ.

The primary purpose of this post is [...]

---

Outline:

(00:08) Two Minute Summary

(02:44) Motivation

(04:18) What is a Vision Transformer?

(06:01) What is CLIP?

(07:42) Training the SAE

(08:43) Examples of SAE Features

(09:04) Interesting and Amusing Features

(09:19) Era/Time Features:

(09:48) Place/Culture Features:

(10:24) Film/TV Features:

(10:41) Texture Features:

(10:49) Miscellaneous Features:

(11:07) NSFW Features:

(11:47) How Trustworthy are Highest Activating Images?

(12:27) Tennis Feature

(12:46) Border Terrier Feature

(12:52) Mushrooms Feature

(12:58) Birds on Branches/in Foliage

(13:05) Training Performance

(13:08) Sparsity and _l_0_

(13:56) MSE, _l_1_ and Model Losses

(14:26) Identifying the Ultra-Low Density Cluster

(18:58) Neuron Alignment

(21:56) Future Work

The original text contained 1 footnote which was omitted from this narration.

---

First published:

April 29th, 2024

Source:

https://www.lesswrong.com/posts/bCtbuWraqYTDtuARg/towards-multimodal-interpretability-learning-sparse-2

---

Narrated by TYPE III AUDIO.

...more
View all episodesView all episodes
Download on the App Store

LessWrong (30+ Karma)By LessWrong


More shows like LessWrong (30+ Karma)

View all
The Daily by The New York Times

The Daily

112,952 Listeners

Astral Codex Ten Podcast by Jeremiah

Astral Codex Ten Podcast

130 Listeners

Interesting Times with Ross Douthat by New York Times Opinion

Interesting Times with Ross Douthat

7,230 Listeners

Dwarkesh Podcast by Dwarkesh Patel

Dwarkesh Podcast

535 Listeners

The Ezra Klein Show by New York Times Opinion

The Ezra Klein Show

16,199 Listeners

AI Article Readings by Readings of great articles in AI voices

AI Article Readings

4 Listeners

Doom Debates by Liron Shapira

Doom Debates

14 Listeners

LessWrong posts by zvi by zvi

LessWrong posts by zvi

2 Listeners