MMCode: Benchmarking Multimodal Large Language Models for Code Generation with Visually Rich Programming Problems

Kaixin Li, Yuchen Tian, Qisheng Hu, Ziyang Luo, Zhiyong Huang +1 more
4/15/2024
cs.CLcs.CVcs.SE

Official code: likaixin2000/MMCode (28 stars, last commit 2026-04-14).

Abstract

Programming often involves converting detailed and complex specifications into code, a process during which developers typically utilize visual aids to more effectively convey concepts. While recent developments in Large Multimodal Models have demonstrated remarkable abilities in visual reasoning and mathematical tasks, there is little work on investigating whether these models can effectively interpret visual elements for code generation. To this end, we present MMCode, the first multi-modal coding dataset for evaluating algorithmic problem-solving skills in visually rich contexts. MMCode contains 3,548 questions and 6,620 images collected from real-world programming challenges harvested from 10 code competition websites, presenting significant challenges due to the extreme demand for reasoning abilities. Our experiment results show that current state-of-the-art models struggle to solve these problems. The results highlight the lack of powerful vision-code models, and we hope MMCode can serve as an inspiration for future works in this domain. The data and code are publicly available at https://github.com/likaixin2000/MMCode.

View on arXivView PDF

Code Implementations(1)

[EMNLP 2024] Multi-modal reasoning problems via code generation.

281Python, Jupyter NotebookApr 14, 20246 months ago

Similar Papers

Cite this paper

@article{li2024mmcode,
  title  = {MMCode: Benchmarking Multimodal Large Language Models for Code Generation with Visually Rich Programming Problems},
  author = {Kaixin Li and Yuchen Tian and Qisheng Hu and Ziyang Luo and Zhiyong Huang and Jing Ma},
  year   = {2024},
  eprint = {2404.09486},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.09486v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.09486.svg)](https://codeofpaper.com/paper/2404.09486)

Discussion