BabelBench: An Omni Benchmark for Code-Driven Analysis of Multimodal and Multistructured Data

Xuwu Wang, Qiwen Cui, Yunzhe Tao, Yiran Wang, Ziwei Chai, Xiaotian Han, Boyi Liu, Jianbo Yuan, Jing Su, Guoyin Wang, Tingkai Liu, Liyu Chen, Tianyi Liu, Tao Sun, Yufeng Zhang, Sirui Zheng, Quanzeng You, Yang Yang 0009, Hongxia YangarXiv 2024 · DOI

Introduction

While Large Language Models (LLMs) have demonstrated remarkable proficiency in text-based reasoning and basic image description, real-world data analysis remains a significant challenge. Professional tasks often involve "omni-data"—a complex mixture of unstructured images, semi-structured tables, and textual instructions. Existing benchmarks like MMLU or MME primarily focus on knowledge retrieval or simple conversation, failing to test the "agentic" workflow required for professional data science.

BabelBench is a new benchmark designed to evaluate LLMs as agents capable of solving complex problems by analyzing multimodal (images) and multistructured (tables/CSVs) data through code execution.

The Agentic Workflow

The core of BabelBench is a framework that treats the LLM as an agent operating within a Python sandbox. The workflow follows a "ReAct" (Reason + Act) style:

  1. Perception & Planning: The model receives a prompt, images, and data files, then determines which data source to prioritize.
  2. Action (Code Execution): The model generates Python code to process the tables or images.
  3. Observation & Iteration: The sandbox returns the code output or an error. The model must then refine its plan or provide a final answer.
An example of the BabelBench agentic workflow, showing an LLM analyzing a traffic image and a CSV file to determine peak hours.

This iterative process tests the model's ability to debug its own scripts and align information across different modalities—a critical skill for real-world applications.

The BabelBench Dataset

The benchmark consists of 247 meticulously curated, human-annotated problems. These tasks are categorized into two main domains:

  • Perception: Tasks such as counting, color recognition, celebrity/landmark identification, OCR, and artwork analysis.
  • Reasoning: Tasks involving commonsense, spatial, logical, and mathematical reasoning.

Problems are further ranked by difficulty (Easy, Medium, Hard) to provide a comprehensive view of model capabilities. The evaluation pipeline is automated, matching model-extracted variables against ground-truth values using exact, fuzzy, or numerical tolerance matching.

Evaluation and Results

BabelBench was used to evaluate 13 prominent models, including commercial leaders like GPT-4, Gemini Pro 1.5, and Claude 3 Opus, as well as open-source models like LLaVa.

The results highlight a significant performance gap. GPT-4 leads the field but achieved a score of only 42.11%, failing more than half the time. Gemini-Pro-1.5 followed with 34.01%. A staggering "open-source chasm" exists, with most open-source models scoring below 10%.

Radar chart illustrating model performance across different task categories, highlighting weaknesses in spatial and mathematical reasoning.

Key findings include:

  • Alignment Bottlenecks: Models frequently fail to map text constraints to the correct data in images or tables.
  • Low Adversity Quotient: Models struggle to recover from errors, often repeating the same mistake in subsequent code execution steps.
  • Category-Specific Weaknesses: Performance plummeted on tasks requiring spatial reasoning, mathematical reasoning, and counting.

Conclusion

BabelBench reveals that agentic multi-step reasoning across multimodal and multistructured data remains a "frontier" capability. Even the most advanced models struggle with the alignment and error-recovery required for true "omni-data" problem-solving. Future work will focus on expanding the dataset and incorporating more diverse tools, such as web browsing and specialized APIs, to further bridge the gap between benchmarks and real-world data science.

Summary updated

BibTeX
@misc{wang2024babelbench,
  author = {Xuwu Wang and Qiwen Cui and Yunzhe Tao and Yiran Wang and Ziwei Chai and Xiaotian Han and Boyi Liu and Jianbo Yuan and Jing Su and Guoyin Wang and Tingkai Liu and Liyu Chen and Tianyi Liu and Tao Sun and Yufeng Zhang and Sirui Zheng and Quanzeng You and Yang Yang and Hongxia Yang},
  title = {{BabelBench: An Omni Benchmark for Code-Driven Analysis of Multimodal and Multistructured Data}},
  year = {2024},
  eprint = {2410.00773},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.00773},
}
Figure