Papers › Focus Anywhere for Fine-grained Multi-page Document Understanding

Focus Anywhere for Fine-grained Multi-page Document Understanding

23 May 2024arXiv:2405.14295archive 2025-07-28

Chenglong Liu, Haoran Wei, Jinyue Chen, Lingyu Kong, Zheng Ge, Zining Zhu, Liang Zhao, Jianjian Sun, Chunrui Han, Xiangyu Zhang

Modern LVLMs still struggle to achieve fine-grained document understanding, such as OCR/translation/caption for regions of interest to the user, tasks that require the context of the entire page, or even multiple pages. Accordingly, this paper proposes Fox, an effective pipeline, hybrid data, and tuning strategy, that catalyzes LVLMs to focus anywhere on single/multi-page documents. We introduce a novel task to boost the document understanding by making LVLMs focus attention on the document-level region, such as redefining full-page OCR as foreground focus. We employ multiple vision vocabularies to extract visual hybrid knowledge for interleaved document pages (e.g., a page containing a photo). Meanwhile, we render cross-vocabulary vision data as the catalyzer to achieve a full reaction of multiple visual vocabularies and in-document figure understanding. Further, without modifying the weights of multiple vision vocabularies, the above catalyzed fine-grained understanding capabilities can be efficiently tuned to multi-page documents, enabling the model to focus anywhere in both format-free and page-free manners. Besides, we build a benchmark including 9 fine-grained sub-tasks (e.g., region-level OCR/summary, color-guided OCR) to promote document analysis in the community. The experimental results verify the superiority of our model.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.14295")

Code

Syntology Ran 7 of 8 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 2 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: community (archive-listed): 8 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Ucas-HaoranWei/Vary mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

8 samples harvested; 7 ran; 1 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
2ran · fixture could not drive it
3ran
1unverified

Licence: 8 of the 8 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Ucas-HaoranWei/Vary. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

alb_wrapper Ucas-HaoranWei/Vary/Vary-master/vary/model/plug/transforms.py community (archive-listed) ran no licence file found · pointer only · f1cb6f078273e8af · report
autocontrast_func Ucas-HaoranWei/Vary/Vary-master/vary/model/plug/blip_process.py community (archive-listed) ran no licence file found · pointer only · 293bca4e611ef1ce · report
equalize_func Ucas-HaoranWei/Vary/Vary-master/vary/model/plug/blip_process.py community (archive-listed) ran no licence file found · pointer only · f5c4d23cd0722d0a · report
get_rel_pos Ucas-HaoranWei/Vary/Vary-master/vary/model/vision_encoder/sam.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 733d7f0bedcb74c2 · report
identity_func Ucas-HaoranWei/Vary/Vary-master/vary/model/plug/blip_process.py community (archive-listed) ran · violated contract fingerprinted no licence file found · pointer only · 1dd2ab205689d45b · report
load_image Ucas-HaoranWei/Vary/Vary-master/vary/demo/run_opt.py community (archive-listed) ran · honoured contract no licence file found · pointer only · 9b3c1cb391672ccb · report
window_partition Ucas-HaoranWei/Vary/Vary-master/vary/model/vision_encoder/sam.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 105fa08885dc36cc · report
window_unpartition Ucas-HaoranWei/Vary/Vary-master/vary/model/vision_encoder/sam.py community (archive-listed) unverified no licence file found · pointer only · 27be441cc8213e52 · report

Tasks

Optical Character Recognition (OCR)document understanding

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections