SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.02304 · ICCV · 2025

A Token-level Text Image Foundation Model for Document Understanding

Wei Shen, Hao Sun, Xiaokang Yang, Kai Zhou, Pei Fu, Zining Wang, Tongkun Guan, Chen Duan, Qianyi Jiang, Junfeng Luo, Zhengtao Guo, Tiezhu Yue

arXiv · PDF · Open in the Atlas

Code that ran

2 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2503.02304.json · badge: /api/ran/2503.02304.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Token-family/TokenFD community
Papers with Code archive
2 ran · 4 no recorded run
FunctionStatusWhere it lives
InternRMSNorm Ran
ran on a synthesized input · constructed an object; no result was computed
Token-family/TokenFD/internvl/model/internvl_chat/modeling_tokenvl_encoder.py
pointer only (licence: NONE) · get_code("c31b3d90d8a33e16")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Token-family/TokenFD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

InternVisionConfig Ran
ran on a synthesized input · constructed an object; no result was computed
Token-family/TokenFD/internvl/model/internvl_chat/modeling_tokenvl_encoder.py
pointer only (licence: NONE) · get_code("eed8a2928d96b1c8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Token-family/TokenFD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

InternAttention Not yet run
unverified (harvested, no recorded run)
Token-family/TokenFD/internvl/model/internvl_chat/modeling_tokenvl_encoder.py
pointer only (licence: NONE) · get_code("83892684bfe2e0e1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Token-family/TokenFD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

InternMLP Not yet run
unverified (harvested, no recorded run)
Token-family/TokenFD/internvl/model/internvl_chat/modeling_tokenvl_encoder.py
pointer only (licence: NONE) · get_code("18c5c1ce90f0d0cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Token-family/TokenFD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

InternVisionEncoderLayer Not yet run
unverified (harvested, no recorded run)
Token-family/TokenFD/internvl/model/internvl_chat/modeling_tokenvl_encoder.py
pointer only (licence: NONE) · get_code("f839726c1a050d44")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Token-family/TokenFD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TokenvlVisionExtra Not yet run
unverified (harvested, no recorded run)
Token-family/TokenFD/internvl/model/internvl_chat/modeling_tokenvl_encoder.py
pointer only (licence: NONE) · get_code("31c11be53eb3590e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Token-family/TokenFD when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
InternAttention
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2412.05271 (2024-12)
Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling
InternMLP
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2412.05271 (2024-12)
Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling
InternRMSNorm
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2412.05271 (2024-12)
Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling
InternVisionConfig
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2412.05271 (2024-12)
Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In recent years, general visual foundation models (VFMs) have witnessed increasing adoption, particularly as image encoders for popular multi-modal large language models (MLLMs). However, without semantically fine-grained supervision, these models still encounter fundamental prediction errors in the context of downstream text-image-related tasks, i.e., perception, understanding and reasoning with images containing small and dense texts. To bridge this gap, we develop TokenFD, the first token-level visual foundation model specifically tailored for text-image-related tasks, designed to support a variety of traditional downstream applications. To facilitate the pretraining of TokenFD, we also devise a high-quality data production pipeline that constructs the first token-level image text dataset, TokenIT, comprising 20 million images and 1.8 billion token-mask pairs. Furthermore, leveraging this foundation with exceptional image-as-text capability, we seamlessly replace previous VFMs with To-kenFD to construct a token-level visual-language MLLM, TokenVL, for VQA-based document understanding tasks. Finally, extensive experiments demonstrate the effectiveness of TokenFD and TokenVL. Code, demo, datasets, and weights are available at https://github.com/Token-family/TokenFD.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2503.02304")
get_code_for_paper("2503.02304")
have("2503.02304")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2503.02304.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2503.02304.svg)](https://syntology.ai/paper/2503.02304)

Connect an agent — have() is free.