Efficient End-to-End Visual Document Understanding with Rationale Distillation
Wang Zhu, Alekh Agarwal, Mandar Joshi, Robin Jia, Jesse Thomason, Kristina Toutanova
TL;DR
This work tackles the inefficiency of tool-heavy visual document understanding by teaching a compact image-to-text model to reason through short, tool-generated rationales. By distilling rationales from OCR, charts, and LLMs into a small student model and training it with multi-task objectives, the approach achieves substantial accuracy gains on InfoVQA, DocVQA, and ChartQA with minimal inference overhead. Key contributions include a robust augmentation and filtering pipeline, rationale-based multi-task training (QRA, ASR, QRACI, ALRCI), and a detailed analysis of rationale types, robustness, and efficiency. The results demonstrate that RD can match or exceed stronger baselines while dramatically reducing engineering complexity and computation compared to full tool pipelines, with strong potential for extension to broader document and multimodal tasks.
Abstract
Understanding visually situated language requires interpreting complex layouts of textual and visual elements. Pre-processing tools, such as optical character recognition (OCR), can map document image inputs to textual tokens, then large language models (LLMs) can reason over text. However, such methods have high computational and engineering complexity. Can small pretrained image-to-text models accurately understand visual documents through similar recognition and reasoning steps instead? We propose Rationale Distillation (RD), which incorporates the outputs of OCR tools, LLMs, and larger multimodal models as intermediate "rationales", and trains a small student model to predict both rationales and answers. On three visual document understanding benchmarks representing infographics, scanned documents, and figures, our Pix2Struct (282M parameters) student model finetuned with RD outperforms the base model by 4-5% absolute accuracy with only 1% higher computational cost.
