Introduction
Spreadsheets are ubiquitous tools for data organization, designed specifically for human consumption through a two-dimensional grid. While Large Language Models (LLMs) have demonstrated proficiency in processing spreadsheets serialized as text (e.g., CSV or HTML), this transformation strips away the rich visual cues—such as cell borders, background colors, and font styles—that humans use to infer structure and meaning. This paper investigates the potential of Vision Language Models (VLMs) to bridge this gap by interpreting spreadsheets directly from images, evaluating their ability to perceive both content and visual context.
The Visual Gap in Spreadsheet Comprehension
Most AI approaches treat spreadsheets as "machine-friendly" linear text. However, critical information is often encoded visually: a bolded header row, a red-filled "Total" cell, or specific border styles that delineate table boundaries. The researchers address whether state-of-the-art VLMs, such as GPT-4V and Gemini-pro, can leverage these signals. The study identifies where these models excel and where they fail compared to specialized, non-vision-based systems.
Probing VLM Capabilities
To systematically evaluate VLM performance, the authors designed a suite of four probing tasks:
- Optical Character Recognition (OCR): Testing the model's ability to read cell text and maintain the correct sequence.
- Spatial Position Perception: Evaluating whether the model can map a specific cell value to its correct grid address (e.g., "B26").
- Visual Format Recognition: Assessing the identification of bold text, fill colors, and various border types.
- Spreadsheet Table Detection: A complex task requiring the model to identify the exact coordinate range (e.g., "A2:N32") of tables within a sheet.
Methodological Enhancements
The researchers introduced three "spreadsheet-to-image" optimization settings to assist the models:
- Column Width Adjustment: Optimizing cell widths to ensure text is neither truncated nor excessively spaced.
- Style Standardization: Normalizing fonts and colors to reduce visual noise.
- Address Augmentation: Explicitly rendering the cell address inside the cell (e.g., "A1, Revenue") to provide a navigational anchor.
For the table detection task, the authors proposed a Boundary Decoding method. Rather than asking the VLM for abstract pixel coordinates, they prompted the model to identify the text values located on the four edges of the table. A custom mapping algorithm then translated these text anchors back into grid coordinates.
Key Insights and Results
The study utilized the TableSense dataset, converted into high-quality images. The findings reveal a significant disparity between different types of visual tasks:
The Spatial Bottleneck
VLMs struggle significantly with spatial navigation. Models frequently commit "off-by-one" errors because they cannot reliably count rows and columns in a compact grid. While vanilla spatial perception scores were dismal (F1 scores of 12-17%), Address Augmentation boosted Gemini-pro’s F1 score to 85.55%. This suggests the bottleneck is not the model's ability to read, but its ability to navigate the grid structure.
OCR and Alignment
Both GPT-4V and Gemini-pro performed well in OCR, achieving F1 scores of approximately 80% when using Longest Common Substring (LCS) matching. However, their performance is fragile; missing a single cell can shift an entire sequence, causing "Strict" evaluation metrics to fail even when the majority of the text is correctly identified.
Format Blindness
Surprisingly, visual formatting remains a major hurdle. The models struggled to distinguish between top and bottom borders or to consistently identify bold text, with F1 scores for format recognition hovering between 17% and 22%.
Table Detection
VLMs currently lag behind specialized models. While the specialized CNN-based TableSense achieves an F1 of 78.17%, the best zero-shot VLM performance (GPT-4V) reached only 25.79%. However, the Boundary Decoding method showed that leveraging the models' linguistic strengths to solve spatial problems is more effective than direct coordinate prediction.
Limitations and Future Directions
The primary constraints for current VLMs are input resolution and file size limits; large spreadsheets often lose critical detail when resized for model input. Additionally, the study found that one-shot prompting can be counterproductive, as models often hallucinate the structure of the provided example onto the target data.
Future work should focus on training open-source VLMs specifically on large-scale spreadsheet-image pairs and developing advanced segmentation techniques to process massive spreadsheets without sacrificing spatial context.
Summary updated