SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.01976 · 2024

A Bounding Box is Worth One Token: Interleaving Layout and Text in a Large Language Model for Document Understanding

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2407.01976.json · badge: /api/ran/2407.01976.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
laytextllm/laytextllm canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
collate_fn Ran
ran; our contract draft was wrong, not the code
laytextllm/laytextllm/infer/laytextllm_inference_ds.py
pointer only (licence: NONE) · get_code("d738681ea543c467")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, laytextllm/laytextllm 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.

collate_fn Ran
ran; our contract draft was wrong, not the code
laytextllm/laytextllm/train/laytextllm_train.py
pointer only (licence: NONE) · get_code("e82f4d776da04670")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, laytextllm/laytextllm 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.

count_parameters Ran
ran, honoured the contract we drafted
laytextllm/laytextllm/infer/laytextllm_inference.py
pointer only (licence: NONE) · get_code("f6b944f50d3f15ae")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, laytextllm/laytextllm 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.

evaluate_exact_match_accuracy Ran
ran, honoured the contract we drafted
laytextllm/laytextllm/eval/utils.py
pointer only (licence: NONE) · get_code("15713876351e02ec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, laytextllm/laytextllm 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.

evaluate_relaxed_accuracy Ran
ran, honoured the contract we drafted
laytextllm/laytextllm/eval/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from brandon3964/multimodal-task-vector, is pointer only (licence: NOASSERTION) · get_code("4ffcad52354b4806")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, laytextllm/laytextllm 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.

format_ocr_result Ran
ran; our contract draft was wrong, not the code
laytextllm/laytextllm/datasets/laytextllm_construct_example.py
pointer only (licence: NONE) · get_code("d25632b12d6e4670")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, laytextllm/laytextllm 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.

relaxed_correctness Ran
ran, violated the contract we drafted
laytextllm/laytextllm/eval/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from brandon3964/multimodal-task-vector, is pointer only (licence: NOASSERTION) · get_code("b3c8680ebd8739af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, laytextllm/laytextllm 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.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 3 later) and 4 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
count_parameters 180 other papers
135 dated earlier, 6 the same month, 33 later, 6 same year, order not determinable · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here
evaluate_relaxed_accuracy 6 other papers
2 dated earlier, 4 later
2406.08487 (2024-06)
Beyond LLaVA-HD: Diving into High-Resolution Large Multimodal Models
2406.15334 (2024-06)
Multimodal Task Vectors Enable Many-Shot Multimodal In-Context Learning
2410.16261 (2024-10)
Mini-InternVL: A Flexible-Transfer Pocket Multimodal Model with 5% Parameters and 90% Performance
and 3 more not named here
relaxed_correctness 6 other papers
2 dated earlier, 4 later
2406.08487 (2024-06)
Beyond LLaVA-HD: Diving into High-Resolution Large Multimodal Models
2406.15334 (2024-06)
Multimodal Task Vectors Enable Many-Shot Multimodal In-Context Learning
2410.16261 (2024-10)
Mini-InternVL: A Flexible-Transfer Pocket Multimodal Model with 5% Parameters and 90% Performance
and 3 more not named here

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-22.

Repositories linked to this paper

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

Abstract

Recently, many studies have demonstrated that exclusively incorporating OCR-derived text and spatial layouts with large language models (LLMs) can be highly effective for document understanding tasks. However, existing methods that integrate spatial layouts with text have limitations, such as producing overly long text sequences or failing to fully leverage the autoregressive traits of LLMs. In this work, we introduce Interleaving Layout and Text in a Large Language Model (LayTextLLM)} for document understanding. LayTextLLM projects each bounding box to a single embedding and interleaves it with text, efficiently avoiding long sequence issues while leveraging autoregressive traits of LLMs. LayTextLLM not only streamlines the interaction of layout and textual data but also shows enhanced performance in KIE and VQA. Comprehensive benchmark evaluations reveal significant improvements of LayTextLLM, with a 15.2% increase on KIE tasks and 10.7% on VQA tasks compared to previous SOTA OCR-based LLMs. All resources are available at https://github.com/LayTextLLM/LayTextLLM.

For agents

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

get_harvested_code_for_paper("2407.01976")
get_code_for_paper("2407.01976")
have("2407.01976")

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

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

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

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

Connect an agent — have() is free.