FastOCR: Dynamic Visual Fixation via KV Cache Pruning for Efficient Document Parsing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tang, Zihan, Shen, Leqi, Chen, Hui, Wang, Ao, Wan, Ben, Feng, Yan, Zhang, Ke, Zhao, Sicheng, Liu, Tongxuan, Ding, Guiguang
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918508084854784
author Tang, Zihan
Shen, Leqi
Chen, Hui
Wang, Ao
Wan, Ben
Feng, Yan
Zhang, Ke
Zhao, Sicheng
Liu, Tongxuan
Ding, Guiguang
author_facet Tang, Zihan
Shen, Leqi
Chen, Hui
Wang, Ao
Wan, Ben
Feng, Yan
Zhang, Ke
Zhao, Sicheng
Liu, Tongxuan
Ding, Guiguang
contents Vision-Language Models (VLMs) have shown strong promise on Optical Character Recognition (OCR), yet the sheer number of visual tokens required to encode dense documents incurs prohibitive inference cost. Existing pruning methods rely on physical eviction, e.g., permanently discarding visual tokens during the prefill stage. While effective for natural images, this strategy fundamentally breaks down on OCR, where virtually every visual token may correspond to a character or structural element, and any irreversible loss leads to catastrophic accuracy degradation. We observe that, although document images appear globally dense and seemingly unprunable, the model's attention to them is in fact temporally sparse: at each decoding step it concentrates on a small region that shifts gradually across steps, much as a human reader fixates on successive words rather than perceiving an entire page at once. Motivated by this Dynamic Visual Fixation phenomenon, we recast the intractable global pruning problem as a tractable local, dynamic one and propose FastOCR, a training-free framework with two complementary modules. Specifically, Focal-Guided Pruning identifies a small set of focal layers and selects the most task-relevant visual tokens from them at each step, while Cross-Step Fixation Reuse exploits the gradual shift of fixation to warm-start each step from the previous one. By dynamically adjusting which tokens are attended rather than evicting any from the cache, FastOCR avoids permanent information loss. Extensive experiments show that FastOCR serves as a plug-and-play acceleration module, generalizing consistently across five VLMs of varying sizes and architectures. On Qwen2.5-VL, FastOCR retains 98% of the unpruned model's accuracy while attending to only 5% of the visual tokens per decoding step, reducing attention latency by 3.0$\times$.
format Preprint
id arxiv_https___arxiv_org_abs_2605_17447
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle FastOCR: Dynamic Visual Fixation via KV Cache Pruning for Efficient Document Parsing
Tang, Zihan
Shen, Leqi
Chen, Hui
Wang, Ao
Wan, Ben
Feng, Yan
Zhang, Ke
Zhao, Sicheng
Liu, Tongxuan
Ding, Guiguang
Computer Vision and Pattern Recognition
Computation and Language
Vision-Language Models (VLMs) have shown strong promise on Optical Character Recognition (OCR), yet the sheer number of visual tokens required to encode dense documents incurs prohibitive inference cost. Existing pruning methods rely on physical eviction, e.g., permanently discarding visual tokens during the prefill stage. While effective for natural images, this strategy fundamentally breaks down on OCR, where virtually every visual token may correspond to a character or structural element, and any irreversible loss leads to catastrophic accuracy degradation. We observe that, although document images appear globally dense and seemingly unprunable, the model's attention to them is in fact temporally sparse: at each decoding step it concentrates on a small region that shifts gradually across steps, much as a human reader fixates on successive words rather than perceiving an entire page at once. Motivated by this Dynamic Visual Fixation phenomenon, we recast the intractable global pruning problem as a tractable local, dynamic one and propose FastOCR, a training-free framework with two complementary modules. Specifically, Focal-Guided Pruning identifies a small set of focal layers and selects the most task-relevant visual tokens from them at each step, while Cross-Step Fixation Reuse exploits the gradual shift of fixation to warm-start each step from the previous one. By dynamically adjusting which tokens are attended rather than evicting any from the cache, FastOCR avoids permanent information loss. Extensive experiments show that FastOCR serves as a plug-and-play acceleration module, generalizing consistently across five VLMs of varying sizes and architectures. On Qwen2.5-VL, FastOCR retains 98% of the unpruned model's accuracy while attending to only 5% of the visual tokens per decoding step, reducing attention latency by 3.0$\times$.
title FastOCR: Dynamic Visual Fixation via KV Cache Pruning for Efficient Document Parsing
topic Computer Vision and Pattern Recognition
Computation and Language
url https://arxiv.org/abs/2605.17447