mlsanityData to 14 Oct 2026

Fluent dreaming for language models

arXiv 2402.01702 ↗First posted 24 Jan 2024cs.CL cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

Feature visualization, also known as "dreaming", offers insights into vision models by optimizing the inputs to maximize a neuron's activation or other internal component. However, dreaming has not been successfully applied to language models because the input space is discrete. We extend Greedy Coordinate Gradient, a method from the language model adversarial attack literature, to design the Evolutionary Prompt Optimization (EPO) algorithm. EPO optimizes the input prompt to simultaneously maximize the Pareto frontier between a chosen internal feature and prompt fluency, enabling fluent dreaming for language models. We demonstrate dreaming with neurons, output logits and arbitrary directions in activation space. We measure the fluency of the resulting prompts and compare language model dreaming with max-activating dataset examples. Critically, fluent dreaming allows automatically exploring the behavior of model internals in reaction to mildly out-of-distribution prompts. Code for running EPO is available at https://github.com/Confirm-Solutions/dreamy. A companion page demonstrating code usage is at https://confirmlabs.org/posts/dreamy.html

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 15 of its 26 references that are in the map. First posted on arXiv 24 Jan 2024.

Builds on

15 of 26 references.

References · 15

  1. 2013Intriguing properties of neural networkscited by 5,155
  2. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  3. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
  4. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  5. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
  6. 2022Toy Models of Superpositioncited by 971
  7. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
  8. 2015Understanding Neural Networks Through Deep Visualizationcited by 334
  9. 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 334
  10. 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 191
  11. 2021An Interpretability Illusion for BERTcited by 97
  12. 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
3 more
  1. 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
  2. 2021Bridge the Gap Between CV and NLP! A Gradient-based Textual Adversarial Attack Frameworkcited by 28
  3. 2018Interpretable Textual Neuron Representations for NLPcited by 16

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 1.

5 papers.