TL;DR
This paper introduces FlipVQA-Miner, an automated pipeline that extracts high-quality Question-Answer (QA) and Visual Question-Answer (VQA) pairs from textbooks. By overcoming challenges like cross-page dependencies and complex layouts, FlipVQA-Miner enables the creation of a large-scale, human-verified dataset (FlipVQA-83K) that significantly improves the reasoning abilities of Large Language Models (LLMs) at a fraction of the cost of manual annotation.
What Problem Does This Paper Address?
The development of advanced AI models, particularly Large Language Models (LLMs), heavily relies on high-quality, reasoning-oriented training data. However, existing datasets face significant limitations: synthetic data often lacks authenticity and diversity, while expert-curated datasets are prohibitively expensive and slow to scale. Textbooks, rich with human-verified knowledge and complex problems, represent an ideal data source, but their intricate layouts (multi-column text, separated questions and answers, interleaved figures) make automated extraction of structured QA/VQA pairs extremely challenging. Existing document parsing tools can extract text and layout elements but fail to capture the crucial semantic relationships needed for training. This gap hinders the ability of LLMs to learn robust reasoning skills grounded in real-world educational content.
Methods
FlipVQA-Miner tackles this challenge with a two-stage pipeline:
1. FlipVQA-Miner: Multimodal Knowledge Extraction: * Structural Content Parsing: Utilizes a powerful Vision-Language Model (VLM) called MinerU 2.5 to convert raw PDF documents into a structured format, preserving spatial metadata and decomposing content into fine-grained blocks (text, equations, images). * Identifier-Guided Semantic Reconstruction (ISR): This novel mechanism employs an LLM (Gemini 2.5 Pro) that operates on block identifiers rather than raw text. This approach effectively resolves long-range dependencies and cross-page discontinuities by grouping related content (questions, answers, figures) and reconstructing coherent QA/VQA pairs, even when components are physically separated. The system can handle both text-only QA and multimodal VQA by inserting relevant image IDs into the textual context.
2. Multi-stage Data Curation Pipeline: This pipeline refines the raw extractions into AI-ready supervision signals:
- Sub-question Decoupling: Breaks down compound questions into independent, self-contained sub-questions.
- Problem Type Classification: Categorizes problems (e.g., Calculation, Multiple-choice) to facilitate objective evaluation.
- Semantic Answer Extraction: Derives concise, verifiable answers from lengthy textbook solutions.
- Quality Filtering: Ensures questions are clear, answers are correct and paired, and data is self-contained, removing reliance on external context.
- Empirical Difficulty Estimation: Quantifies problem difficulty to enable targeted training.
- Reasoning-Oriented CoT Synthesis: Generates detailed Chain-of-Thought (CoT) sequences using specialized LLMs, ensuring logical integrity through a reject sampling and verification protocol.
Datasets
- Newly Introduced Dataset: FlipVQA-83K, a large-scale dataset comprising 83,834 QA and VQA pairs (13,842 VQA, 69,992 QA) spanning 11 academic disciplines. This dataset is derived from 544 college-level educational PDF documents.
- Evaluation Benchmarks: The paper evaluates its method on a wide range of QA benchmarks (MMLU, MMLU-Pro, BBH, SuperGPQA, GSM8K, AIME, MATH500, UGPhysics) and VQA benchmarks (MMMU, OlympicArena, MathVerse, MathVista, MatSciBench), including both general and domain-specific reasoning tasks.
Key Insights and Ideas
- Textbooks as a Rich, Untapped Resource: The paper highlights that textbooks, despite their complex structure, are a goldmine of high-quality, human-verified reasoning data that can be effectively leveraged with the right tools.
- Identifier-Guided Semantic Reconstruction (ISR) is Key: The core innovation of FlipVQA-Miner is its ISR mechanism. By using block identifiers instead of raw text, LLMs can efficiently resolve long-range dependencies and reconstruct semantically coherent QA/VQA pairs, overcoming the limitations of traditional layout-aware parsing.
- Multi-stage Curation is Crucial for High-Fidelity Data: Simply extracting raw QA/VQA pairs is insufficient. The multi-stage curation pipeline, especially the CoT synthesis, is vital for transforming this raw data into robust, verifiable supervision signals that truly enhance LLM reasoning.
- Cost-Effective Data Generation: FlipVQA-Miner achieves a significant cost reduction (up to 50x) compared to manual annotation, making the creation of large-scale, high-quality datasets economically feasible.
- CoT Length Matters for Reasoning: Longer CoT sequences, particularly those derived from complex reasoning tasks, lead to improved model performance on challenging benchmarks, underscoring the importance of detailed reasoning chains.
- Cross-modal Reasoning Requires More Tokens: VQA tasks inherently demand more output tokens from LLMs than text-only QA, especially as task difficulty increases, indicating the substantial effort required for visual grounding and multimodal translation.
Key Results
- High Extraction Accuracy: FlipVQA-Miner achieves excellent extraction performance, with text F1 scores above 0.98 and image placement precision of 1.0 across diverse document types.
- Significant Cost Savings: The pipeline reduces VQA data construction costs by approximately 50x compared to manual annotation, and 8x compared to MinerU-assisted human workflows.
- Improved LLM Reasoning: Models fine-tuned on the FlipVQA-83K dataset demonstrate significantly improved reasoning abilities and cross-domain generalization across both textual and multimodal benchmarks, outperforming strong baselines. For instance, fine-tuning Qwen3-8B-Base on FlipVQA-83K consistently improves performance on various reasoning tasks.
- Effective CoT Synthesis: The curated CoT data leads to better performance, especially on challenging reasoning benchmarks.
- Modality Mixing Benefits: Joint training with both QA and VQA data consistently yields the best performance, demonstrating synergy between textual and visual reasoning improvements.
Limitations and Future Work
- Distributional Differences: The paper notes a slight performance decrease on MathVista, potentially due to distributional differences between the textbook-centric FlipVQA-83K and MathVista's focus on logic puzzles and figures.
- Difficulty Distribution: The difficulty of questions exhibits a bimodal distribution (either very easy or very hard), suggesting that models tend to master concepts or fail consistently. VQA pairs generally yield higher difficulty scores than QA pairs.
- Future Work: The authors suggest that their pipeline provides a scalable paradigm for human-knowledge-grounded data curation, implying potential for further expansion to other domains and types of educational materials. The success of joint training also points towards continued exploration of optimal data mixing strategies.
Summary updated