From Behavioral Performance to Internal Competence: Interpreting Vision-Language Models with VLM-Lens
Hala Sheta, Eric Huang, Shuyu Wu, Ilia Alenabi, Jiajun Hong, Ryker Lin, Ruoxi Ning, Daniel Wei, Jialin Yang, Jiawei Zhou, Ziqiao Ma, Freda Shi
TL;DR
VLM-Lens addresses the need for systematic probing and interpretation of vision-language models by enabling extraction of intermediate representations across layers through a unified YAML-configurable interface. It supports 16 base VLMs and 30+ variants, with per-model environment setups and a SQL-based database to organize outputs for flexible analysis. The authors demonstrate two analyses—a probing framework for primitive concept competence and a Stroop-like color grounding task—showing that hidden representations encode task-relevant information and reveal layer- and model-dependent differences. Inference and memory benchmarking across models highlight practical trade-offs for deployment, underscoring the toolkit’s value for rigorous, beyond-accuracy evaluation and iterative improvement of multimodal systems.
Abstract
We introduce VLM-Lens, a toolkit designed to enable systematic benchmarking, analysis, and interpretation of vision-language models (VLMs) by supporting the extraction of intermediate outputs from any layer during the forward pass of open-source VLMs. VLM-Lens provides a unified, YAML-configurable interface that abstracts away model-specific complexities and supports user-friendly operation across diverse VLMs. It currently supports 16 state-of-the-art base VLMs and their over 30 variants, and is extensible to accommodate new models without changing the core logic. The toolkit integrates easily with various interpretability and analysis methods. We demonstrate its usage with two simple analytical experiments, revealing systematic differences in the hidden representations of VLMs across layers and target concepts. VLM-Lens is released as an open-sourced project to accelerate community efforts in understanding and improving VLMs.
