Pixel Auto-Encoder: Reconstructing Language Model Activations Through Pixel Art
Organizations: Shibaura Institute of Technology
Abstract
Interpreting the high-dimensional internal representations of large language models (LLMs) remains a challenging problem. Recent approaches have explored translating these representations into human-understandable forms, particularly natural language. In this work, we explore the use of images as an alternative target modality for interpreting LLM activations. As a first step toward this goal, we introduce Pixel Auto-Encoder, which converts intermediate LLM activations into , 32-color pixel art and reconstructs them for subsequent computation within the model. By encouraging the intermediate representations to resemble predefined concept images, we investigate whether LLM activations can be expressed visually while preserving the model's language capabilities. We find that the model can produce target-aligned images for some concepts, and that replacing pixel representations with concept images can influence next-token predictions. However, we also observe a trade-off between visual alignment and language-model performance, as well as sensitivity to pixel-level changes that are difficult to interpret visually. These findings demonstrate the feasibility and limitations of image-based representations of LLM activations.
Figures & tables
| Model | KL | Perplexity | Recon. error |
|---|---|---|---|
| Base model | 0 | 19.5 | |
| No image loss, 150k steps | 0.118 (0.106–0.134) | 20.8 | 0.144 |
| Image loss, 150k steps (ref.) | 0.392 | 26.2 | 0.303 |
| Weight | Share of positions | Similarity to target | Recon. error | KL | Recon. error (no image loss) |
|---|---|---|---|---|---|
| 0 | 50% | 0.056 | 0.214 | 0.242 | 0.132 |
| 0–0.04 | 10% | 0.201 | 0.276 | 0.332 | 0.150 |
| 0.04–0.09 | 10% | 0.283 | 0.309 | 0.376 | 0.154 |
| 0.09–0.18 | 10% | 0.381 | 0.352 | 0.452 | 0.155 |
| 0.18–0.34 | 10% | 0.488 | 0.423 | 0.583 | 0.157 |
| 0.34–1 | 10% | 0.614 | 0.601 | 0.971 | 0.164 |
| Operation | KL | Perplexity | Similarity to target |
|---|---|---|---|
| No operation | 0.653 | 41.2 | 0.898 |
| 1% of pixels to random colors | 1.385 | 84.1 | 0.880 |
| 5% | 3.591 | 727 | 0.813 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Similarity | |
| Overall | 0.224 (0.200–0.252) |
| Positions with target-image weight in the top 10% | 0.614 |
| Positions with target-image weight 0 (50% of all) | 0.056 |
| Model without image loss |
| Replaced position | Rank (median) before → after | In top 10 | Ranked 1st |
|---|---|---|---|
| She poured herself a cup [of] | 754 → 24 | 8 / 18 | 1 / 18 |
| Last summer we traveled [to] | 1,332 → 8 | 10 / 18 | 3 / 18 |
| My favorite animal is [the] | 823 → 8 | 10 / 18 | 6 / 18 |
| My favorite animal [is] the | 990 → 8 | 9 / 18 | 4 / 18 |
| Total | 37 / 72 | 14 / 72 |
| Base model | LFM3-1.7B ( Liquid AI 2026 ) (24 layers, hidden size 2,048) |
| Bottleneck position | Output of layer 14 ( ; layers are counted from 0) |
| Encoder | 2,048 → 2,048 → 1,024 MLP (one hidden layer, GELU) |
| Decoder | 1,024 → 2,048 → 2,048 MLP (one hidden layer, GELU) |
| Trained parameters | About 12.6M in the Encoder and Decoder, about 24.7M in the Phase 3 LoRA |
| Pixel vector | 32×32 pixels, 32 colors (5,120 bits per position) |
| Image data | 1,613 concepts of Mulberry Symbols ( Mulberry Symbols n.d. ) |
LLM Interpretability
Large language model (LLM) interpretability studies how internal representations and computations produce outputs, and how they can be explained or controlled.
See all 846 papers