SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.07666 · EMNLP · 2025

MoLoRAG: Bootstrapping Document Understanding via Multi-modal Logic-aware Retrieval

Hong Cheng, Xixi Wu, Yanchao Tan, Nan Hou, Ruiyang Zhang

arXiv · PDF · Open in the Atlas

Code that ran

8 of 16 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 8 no recorded run), measured 2026-11-24; 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/2509.07666.json · badge: /api/ran/2509.07666.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
WxxShirley/MoLoRAG canonical (classifier label)
classifier basis: census
8 ran · 8 no recorded run
FunctionStatusWhere it lives
answer_score Ran
ran, honoured the contract we drafted
WxxShirley/MoLoRAG/evaluate/eval_qa.py
pointer only (licence: NONE) · get_code("933545346d5ea128")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WxxShirley/MoLoRAG 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_rag_one_sample Ran
ran; our contract draft was wrong, not the code
WxxShirley/MoLoRAG/evaluate/eval_rag.py
pointer only (licence: NONE) · get_code("52ed8e218d2f3328")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WxxShirley/MoLoRAG 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_image_path Ran
ran; our contract draft was wrong, not the code
WxxShirley/MoLoRAG/VLMModels/Qwen_VL.py
pointer only (licence: NONE) · get_code("ed94e91a8da902c1")
How it ran

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

generate_prompt Ran
ran; our contract draft was wrong, not the code
WxxShirley/MoLoRAG/VLMRetriever/data_collection.py
pointer only (licence: NONE) · get_code("8c8321c2a981f64b")
How it ran

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

generate_relevance_prompt Ran
ran; our contract draft was wrong, not the code
WxxShirley/MoLoRAG/VLMRetriever/data_collection.py
pointer only (licence: NONE) · get_code("27aa86e35c8341d6")
How it ran

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

get_clean_string Ran
ran; our contract draft was wrong, not the code
WxxShirley/MoLoRAG/evaluate/eval_qa.py
pointer only (licence: NONE) · get_code("78a13be43172d1d1")
How it ran

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

levenshtein_distance Ran
ran, honoured the contract we drafted
WxxShirley/MoLoRAG/evaluate/eval_qa.py
pointer only (licence: NONE) · get_code("5fbdf0aff19a1398")
How it ran

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

mrr_cell Ran
ran; our contract draft was wrong, not the code
WxxShirley/MoLoRAG/evaluate/eval_rag.py
pointer only (licence: NONE) · get_code("3f3d282ff7b44be8")
How it ran

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

generate_relevance_prompt_detailed Not yet run
unverified (harvested, no recorded run)
WxxShirley/MoLoRAG/VLMRetriever/data_collection.py
pointer only (licence: NONE) · get_code("1e8c567bc17d4241")
How it ran

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

get_response_concat Not yet run
unverified (harvested, no recorded run)
WxxShirley/MoLoRAG/VLMModels/DeepSeek_VL.py
pointer only (licence: NONE) · get_code("866239531dfd6e64")
How it ran

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

init_model Not yet run
unverified (harvested, no recorded run)
WxxShirley/MoLoRAG/VLMModels/DeepSeek_VL.py
pointer only (licence: NONE) · get_code("1a151d04ac3ef01b")
How it ran

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

init_model Not yet run
unverified (harvested, no recorded run)
WxxShirley/MoLoRAG/VLMModels/LLaMA_VL.py
pointer only (licence: NONE) · get_code("90cb0a11ac3396d9")
How it ran

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

invoke_deepseek_api Not yet run
unverified (harvested, no recorded run)
WxxShirley/MoLoRAG/LLMBaseline/apis.py
pointer only (licence: NONE) · get_code("fa1dc221a3dffac3")
How it ran

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

invoke_gpt4o_api Not yet run
unverified (harvested, no recorded run)
WxxShirley/MoLoRAG/LLMBaseline/apis.py
pointer only (licence: NONE) · get_code("7fe7bfc454416874")
How it ran

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

invoke_llm_api Not yet run
unverified (harvested, no recorded run)
WxxShirley/MoLoRAG/LLMBaseline/apis.py
pointer only (licence: NONE) · get_code("5503d226ec6f4ec2")
How it ran

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

ndcg_cell Not yet run
unverified (harvested, no recorded run)
WxxShirley/MoLoRAG/evaluate/eval_rag.py
pointer only (licence: NONE) · get_code("c5d0362d0d15e424")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WxxShirley/MoLoRAG 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 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 16 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.

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

Repositories linked to this paper

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

Abstract

Document Understanding is a foundational AI capability with broad applications, and Document Question Answering (DocQA) is a key evaluation task. Traditional methods convert the document into text for processing by Large Language Models (LLMs), but this process strips away critical multi-modal information like figures. While Large Vision-Language Models (LVLMs) address this limitation, their constrained input size makes multi-page document comprehension infeasible. Retrievalaugmented generation (RAG) methods mitigate this by selecting relevant pages, but they rely solely on semantic relevance, ignoring logical connections between pages and the query, which is essential for reasoning. To this end, we propose MoLoRAG, a logicaware retrieval framework for multi-modal, multi-page document understanding. By constructing a page graph that captures contextual relationships between pages, a lightweight VLM performs graph traversal to retrieve relevant pages, including those with logical connections often overlooked. This approach combines semantic and logical relevance to deliver more accurate retrieval. After retrieval, the top-K pages are fed into arbitrary LVLMs for question answering. To enhance flexibility, MoLoRAG offers two variants: a training-free solution for easy deployment and a fine-tuned version to improve logical relevance checking. Experiments on four DocQA datasets demonstrate average improvements of 9.68% in accuracy over LVLM direct inference and 7.44% in retrieval precision over baselines. Codes and datasets are released at https://github.com/WxxShirley/MoLoRAG. Question How many days with overflow do Outfall 002A (Southwest Hoboken) and Outfall 005A (Central Hoboken

For agents

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

get_harvested_code_for_paper("2509.07666")
get_code_for_paper("2509.07666")
have("2509.07666")

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

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

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

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

Connect an agent — have() is free.