SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.14021 · CVPR · 2025

MP-GUI: Modality Perception with MLLMs for GUI Understanding

Ziwei Wang, Sheng Zhou, Jiajun Bu, Liangcheng Li, Zirui Shao, Shengchu Zhao, Weizhi Chen, Leyang Yang, Hanbei Zhan, Jiongchao Jin

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 2 failures of our instrument; 4 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/2503.14021.json · badge: /api/ran/2503.14021.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
BigTaige/MP-GUI canonical (classifier label)
classifier basis not recorded on the link
8 ran · 4 no recorded run
FunctionStatusWhere it lives
chat Ran
ran on a synthesized input
BigTaige/MP-GUI/pipeline/vllm_pipeline_v2.py
code served (permissive licence) · get_code("dd863a03e032ee31")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Set seed for reproducibility
torch.manual_seed(0)

# Construct arguments for the chat function
ARGS = {
    'img_url': 'https://example.com/image.jpg',
    'query': 'What is in this image?'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
concat_pad_data_collator Ran
ran on a synthesized input
BigTaige/MP-GUI/model/internvl/patch/pad_data_collator.py
code served (permissive licence) · get_code("c025eeea3e7ee863")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

IGNORE_INDEX = -100

# Create sample features - each feature is a dict with input_ids, labels, and optionally label/label_ids, pixel_values, image_flags
features = [
    {
        'input_ids': torch.LongTensor([1, 2, 3]),
        'labels': torch.LongTensor([0, 1, 2]),
        'label': torch.tensor(5),
        'pixel_values': torch.randn(2, 3, 4),
        'image_flags': torch.tensor([1, 0]),
    },
    {
        'input_ids': torch.LongTensor([4, 5]),
        'labels': torch.LongTensor([1, 2]),
        'label': torch.tensor(3),
        'pixel_values': torch.randn(3, 3, 4),
        'image_flags': torch.tensor([1, 1, 0]),
    }
]

ARGS = {
    'features': features,
    'pad_id': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_clean_data Ran
ran on a synthesized input
BigTaige/MP-GUI/data_tools/XML_format_get_spatial_relationship_prediction_data.py
code served (permissive licence) · get_code("e24dcde1d77081a5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os
from PIL import Image
import numpy as np

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a small test image (PNG file)
test_image_path = os.path.join(temp_dir, 'test.png')
img = Image.new('RGB', (800, 600), color='red')
img.save(test_image_path)

# Create a corresponding JSON file with the expected structure
test_json_path = os.path.join(temp_dir, 'test.json')
test_data = {
    'children': [
        {
            'componentLabel': 'On/Off_Switch',
            'bounds': [10, 20, 100, 50],
            'iconClass': 'icon_switch',
            'children': [
                {
                    'componentLabel': 'Text_Button',
                    'bounds': [15, 25, 90, 45],
                    'iconClass': 'icon_button'
                }
            ]
        },
        {
            'componentLabel': 'Button',
            'bounds': [110, 20, 200, 50],
            'iconClass': 'icon_button2'
        }
    ]
}

with open(test_json_path, 'w') as f:
    json.dump(test_data, f)

ARGS = {
    'json_path': test_json_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_length_grouped_indices Ran
ran; our contract draft was wrong, not the code
BigTaige/MP-GUI/model/internvl/patch/train_sampler_patch.py
pointer only (licence: MIT); the stored copy get_code serves, from fqhank/align-kd, is pointer only (licence: NONE) · get_code("fac53f6bae1b69a4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from fqhank/align-kd, and GitHub detected no licence in that repository 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.

judge Ran
ran on a synthesized input
BigTaige/MP-GUI/data_tools/XML_format_get_spatial_relationship_prediction_data.py
code served (permissive licence) · get_code("63bbe0118077916d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# bbox1: list of 4 numbers representing bounding box coordinates
bbox1 = [10, 20, 30, 40]

# bbox2: list of 4 numbers representing another bounding box
bbox2 = [15, 25, 35, 45]

# size: tuple of (width, height) for image dimensions
size = (100, 100)

ARGS = {
    "bbox1": bbox1,
    "bbox2": bbox2,
    "size": size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
label_formulate Ran
ran on a synthesized input
BigTaige/MP-GUI/data_tools/XML_format_get_spatial_relationship_prediction_data.py
code served (permissive licence) · get_code("0001daa41fec04a5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    'label': 'On/Off_Switch'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pad_data_collator Ran
ran on a synthesized input
BigTaige/MP-GUI/model/internvl/patch/pad_data_collator.py
code served (permissive licence) · get_code("c98153c6978bb741")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create sample features with input_ids, labels, and optional label field
features = [
    {
        'input_ids': torch.LongTensor([101, 2054, 2003]),
        'labels': torch.LongTensor([0, 1, 0]),
        'label': 1,
    },
    {
        'input_ids': torch.LongTensor([101, 2054]),
        'labels': torch.LongTensor([0, 1]),
        'label': 0,
    }
]

ARGS = {
    'features': features,
    'pad_id': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_to_even_chunks Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
BigTaige/MP-GUI/model/internvl/patch/train_sampler_patch.py
code served (permissive licence) · get_code("10893c4608c08075")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyzing the function:
# - indices: a list/sequence of indices that will be iterated over
# - lengths: a dict-like or list-like object that maps indices to their lengths (accessed via lengths[index])
# - num_chunks: an integer specifying how many chunks to split into

# Create sample data
indices = [0, 1, 2, 3, 4, 5]
lengths = {0: 10, 1: 15, 2: 8, 3: 12, 4: 9, 5: 11}
num_chunks = 3

ARGS = {
    "indices": indices,
    "lengths": lengths,
    "num_chunks": num_chunks,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
apply_rotary_pos_emb Not yet run
unverified (harvested, no recorded run)
BigTaige/MP-GUI/model/internvl/patch/llama2_flash_attn_monkey_patch.py
code served (permissive licence) · get_code("3408dd47e939d760")
How it ran

no invocation recorded.

forward Not yet run
unverified (harvested, no recorded run)
BigTaige/MP-GUI/model/internvl/patch/llama_flash_attn_monkey_patch.py
code served (permissive licence) · get_code("021dddfe7e4fc462")
How it ran

no invocation recorded.

forward_2 Not yet run
unverified (harvested, no recorded run)
BigTaige/MP-GUI/model/internvl/patch/llama_flash_attn_monkey_patch.py
code served (permissive licence) · get_code("f67aecf10b83d6b9")
How it ran

no invocation recorded.

get_conv_template Not yet run
unverified (harvested, no recorded run)
BigTaige/MP-GUI/model/internvl/conversation.py
pointer only (licence: MIT); the stored copy get_code serves, from yzy-bupt/LiveStar, is pointer only (licence: NONE) · get_code("04b172bb0c32a0de")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from yzy-bupt/LiveStar, and GitHub detected no licence in that repository 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 1 the same month, 3 later) and 5 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
get_conv_template 69 other papers
53 dated earlier, 12 later, 3 same year, order not determinable, 1 undated
1911.03705 (2019-11)
CommonGen: A Constrained Text Generation Challenge for Generative Commonsense Reasoning
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2204.07705 (2022-04)
SUPER-NATURALINSTRUCTIONS: Generalization via Declarative Instructions on 1600+ NLP Tasks
and 66 more not named here
split_to_even_chunks 40 other papers
32 dated earlier, 1 the same month, 7 later
2304.05884 (2023-04)
Unicom: Universal and Compact Representation Learning for Image Retrieval
2304.08485 (2023-04)
Visual Instruction Tuning
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 37 more not named here
apply_rotary_pos_emb 6 other papers
4 dated earlier, 1 later, 1 same year, order not determinable
2309.17452 (2023-09)
ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving
2312.00401 (2023-12)
VIoTGPT: Learning to Schedule Vision Tools in LLMs towards Intelligent Video Internet of Things
2312.14187 (2023-12)
WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuning
and 3 more not named here
get_length_grouped_indices 2 other papers
2 dated earlier
2410.17434 (2024-10)
LongVU: Spatiotemporal Adaptive Compression for Long Video-Language Understanding
2412.01282 (2024-12)
Align-KD: Distilling Cross-Modal Alignment Knowledge for Mobile Vision-Language Model Enhancement
forward 1 other paper
1 dated earlier
2501.06986 (2025-01)
Rethinking the Mixture of Vision Encoders Paradigm for Enhanced Visual Understanding in Multimodal LLMs
forward_2 1 other paper
1 dated earlier
2501.06986 (2025-01)
Rethinking the Mixture of Vision Encoders Paradigm for Enhanced Visual Understanding in Multimodal LLMs
pad_data_collator 1 other paper
1 dated earlier
2501.06986 (2025-01)
Rethinking the Mixture of Vision Encoders Paradigm for Enhanced Visual Understanding in Multimodal LLMs

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

Graphical user interface (GUI) has become integral to modern society, making it crucial to be understood for human-centric systems. However, unlike natural images or documents, GUIs comprise artificially designed graphical elements arranged to convey specific semantic meanings. Current multi-modal large language models (MLLMs) already proficient in processing graphical and textual components suffer from hurdles in GUI understanding due to the lack of explicit spatial structure modeling. Moreover, obtaining high-quality spatial structure data is challenging due to privacy issues and noisy environments. To address these challenges, we present MP-GUI, a specially designed MLLM for GUI understanding. MP-GUI features three precisely specialized perceivers to extract graphical, textual, and spatial modalities from the screen as GUItailored visual clues, with spatial structure refinement strategy and adaptively combined via a fusion gate to meet the specific preferences of different GUI understanding tasks. To cope with the scarcity of training data, we also introduce a pipeline for automatically data collecting. Extensive experiments demonstrate that MP-GUI achieves impressive results on various GUI understanding tasks with limited data. Our codes and datasets are publicly available at https://github.com/BigTaige/MP-GUI.

For agents

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

get_harvested_code_for_paper("2503.14021")
get_code_for_paper("2503.14021")
have("2503.14021")

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

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

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

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

Connect an agent — have() is free.