TL;DR
Vision-Language Models (VLMs) are increasingly used to store interaction history as images ("visualized memory"), assuming visual tokens can seamlessly replace text. This paper tests that assumption using a spatial $n$-back task and uncovers a massive "modality gap": models perform significantly worse when grids are presented as images rather than text. Deeper process-level analysis reveals that for complex memory loads, VLMs completely abandon the instructed tracking strategy, defaulting to a simple, recency-biased (1-back) comparison.
What Problem Does This Paper Address?
As context windows fill up, an emerging engineering practice is to render task states or interaction histories into images, treating them as a compact "visual memory substrate" for VLMs to read later. This practice implicitly assumes that swapping text tokens for visual tokens doesn't change how a model updates and compares information internally.
The authors challenge this assumption by investigating whether changing the representational code (text vs. vision) alters the underlying cognitive computations. They use the classic psychological spatial $n$-back task—where an agent must state whether a current stimulus matches one shown exactly $n$ steps ago—to probe online updating, temporal context binding, and resistance to proactive interference in state-of-the-art models.
Methods
The authors evaluate several model families, primarily focusing on Qwen2.5-7B-Instruct and its vision-language counterpart Qwen2.5-VL-7B-Instruct (with robustness checks on Llama 3 models).
The experimental design consists of:
- Task Design: A spatial $n$-back task over an $N \times N$ grid ($N \in \{3, 4, 5, 7\}$) with memory loads $n \in \{1, 2, 3\}$.
- Modality Formats:
- Text-grid: The grid is rendered as an ASCII layout using underscores and an 'X' for the target.
- Vision-grid: The exact same grid is programmatically rendered as a $256 \times 256$ image lattice.
- Process Diagnostics:
- Lag-scan analysis: Instead of just measuring final accuracy, the authors extract the model's token-level log-probabilities to calculate a continuous "match evidence score." They then correlate this evidence against different historical lags ($k=1, 2, 3$) to see which step the model is actually comparing the current input against.
- Grid-size manipulation: By varying the grid size, they alter the statistical frequency of "recent-repeat lures" (locations that repeated recently but not at the target lag $n$) to measure how well models resist proactive interference.
Datasets
The authors did not use standard pre-existing datasets. Instead, they synthetically pre-generated controlled trial sequences (50 independent blocks of 24 trials each, totaling 1,200 trials per condition) to strictly isolate the effects of memory load, grid size, and modality. They also ran a single-trial location recognition probe as a baseline readability check to ensure the vision tokens were fully legible to the models.
Key Insights and Ideas
- The Modality Gap: VLMs exhibit a severe performance drop when processing visual grids compared to text grids, even though a baseline readability check proved they can perfectly recognize coordinates in a single image. Vision tokens are fundamentally less robust for rapid, online working memory operations.
- Task-Set Drift (The 1-Back Trap): When given a 2-back or 3-back task in the visual modality, the models' internal evidence doesn't actually track the 2-back or 3-back target. Instead, the graded evidence consistently peaks at a lag of $k=1$. The model essentially defaults to a "did I just see this in the very last step?" heuristic.
- Grid Size as an Interference Shield: Counterintuitively, models perform better on larger grids (e.g., $7 \times 7$ vs $3 \times 3$). The authors proved this isn't due to prompt length or token counts, but because a larger state space naturally reduces the chance of accidental repetitions ("lures"), thereby lowering proactive interference.
Key Results
- Performance Collapse under Visual Load: While text-grid conditions maintain high accuracy and sensitivity ($d'$) at 1-back, the vision-grid condition lags behind. At 2-back and 3-back, the vision modality's sensitivity drops to near-chance ($d' \approx 0$).
- Evidence of Recency Bias: The lag-scan diagnostic clearly shows that for nominal instructions of $n=2$ and $n=3$, the model's internal match evidence aligns strongest with a scoring lag of $k=1$.
- Block-Level Collapse: In small grids ($3 \times 3$), dense repetitions cause the model to completely lose match evidence, often triggering a degenerate response policy where the model predicts "non-match" on essentially all trials within a block.
Limitations and Future Work
- Scaffolding and Prompting: The study intentionally used simple, zero-shot prompts. It remains an open question whether prompt-based scaffolding (like Chain-of-Thought or external memory logging) would fix the visual working memory gap or simply introduce alternative heuristics.
- Modality Scope: The study only compares text and vision. The authors suggest extending this controlled $n$-back framework to audio modalities in newer native omni models to see if the modality gap generalizes.
- Engineering Takeaway: The authors clarify that visual token substitution is still highly useful for static, long-context retrieval (like OCR-based compression). However, developers should be highly cautious about using images to support rapid, online state updating and temporal binding.
Summary updated