cs.AIAug 20, 2026

SCAFFOLD: A Large-Scale Structured Dataset of Computer Science Research Figures with Diagram QA and Chain-of-Thought Reasoning Traces

Authors: Ranjit Raut, Aarav Subedi, Sagun Rai, Sudan Jha

Organizations: Department of Artificial Intelligence Kathmandu University Dhulikhel, Nepal · Department of Computer Science and Engineering Kathmandu University Dhulikhel, Nepal

Abstract

Computer science papers rely heavily on diagrams: architecture drawings, system flowcharts, and pipeline schematics that often carry more information than the text around them. There is currently no public dataset that pairs this specific kind of figure with captions, context, questions, answers, and step-by-step reasoning, which is exactly what is needed to train a vision-language model to understand them. We present SCAFFOLD\footnote{https://github.com/theranjitraut/scaffold}, a large-scale structured dataset of computer science research figures with diagram QA and Chain-of-Thought reasoning traces. This dataset consists of (image, caption, context, question-answer, chain-of-thought) tuples from arXiv computer science papers prepared using layout detection and PDF parsing, with an AI-assisted question-generation step. The resulting large-sized SCAFFOLD-157K dataset spans 3,058 papers with 29,887 figures (157,387 pairs), a medium-sized SCAFFOLD-37K dataset (36,797 pairs), and a small-sized SCAFFOLD-12K dataset (12,000 pairs). We used SCAFFOLD-12K for baseline experiments on Qwen2.5-VL-3B-Instruct.

Figures & tables

Explore similar work

CardsList
  1. From Terminology to Diagrams: Visual-Instruction Generation for Scientific Diagram Understanding

    Sep 1, 2026Raul Ortega, José Manuel Gómez-PérezVisual Question AnsweringScientific QA

  2. DiagramBank: A Quality-Audited Dataset of Scientific Schematic Diagrams with Multi-Level Document Context

    Feb 28, 2026Ling Yue, Tingwen Zhang, Jiaying Wang +2Document Image UnderstandingDocument Understanding

  3. DRAGON: A Benchmark for Evidence-Grounded Visual Reasoning over Diagrams

    Apr 28, 2026Anirudh Iyengar Kaniyar Narayana Iyengar, Tampu Ravi Kumar, Gaurav Najpande +4VLM EvaluationVisual Reasoning