LatentLens: Revealing Highly Interpretable Visual Tokens in LLMs
Abstract
Lay Summary
Large Language Models (LLMs) are now used everywhere with remarkable success and yet they are trained in a very simple way: predicting the next word given the previous words. With this training they learn a lot about the world in general. And despite being trained to only process text input, somehow they can very quickly be adapted to also understand the visual world (images, videos, ...). How do they accomplish being such good visual models as well? The field of "interpretability" tries to answer such questions: How do models internally represent knowledge, how do they arrive at certain decisions and generated content? In this specific study, we propose a new interpretability tool to understand whether the LLM translates "visual tokens", so small regions of the images, into something like "words". We hypothesized that the only way a model that knows the abstract world of language can make sense of images is by "translating" them into meaningful words. And our hypothesis proved correct: most visual tokens are indeed represented similar to the inherent word space of the LLM. With such a tool, which we call LatentLens, we can now better understand why an LLM might sometimes fail to answer questions about images or videos. And our findings also get us closer to a scientific understanding of the internal complex workings of AI models.