flâneur — a map of the web's best reading

Fluent dreaming for language models

arxiv.org · 7,522 words · saved by 1 readers

This is experimental HTML to improve accessibility. We invite you to report rendering errors. Use Alt+Y to toggle on accessible reporting links and Alt+Shift+Y to toggle off. Learn more about this project and help improve conversions. [2]label=. 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 r

\setenumerate [2]label=. Fluent dreaming for language models T. Ben Thompson, Zygimantas Straznickas, Michael Sklar Confirm Labs t.ben.thompson@gmail.com (January 2024) Abstract 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 Optimi

Explore this link on the map →

related reading