Improve model card: Add abstract and prominent GitHub link (#1)
Browse files- Improve model card: Add abstract and prominent GitHub link (f7831e65a381a737f0322cc6cd266043b62b5e42)
Co-authored-by: Niels Rogge <[email protected]>
README.md
CHANGED
|
@@ -3,20 +3,28 @@ base_model:
|
|
| 3 |
- Qwen/Qwen2.5-VL-3B-Instruct
|
| 4 |
language:
|
| 5 |
- en
|
|
|
|
| 6 |
license: apache-2.0
|
|
|
|
| 7 |
tags:
|
| 8 |
- gui
|
| 9 |
- agent
|
| 10 |
- gui-grounding
|
| 11 |
- reinforcement-learning
|
| 12 |
-
pipeline_tag: image-text-to-text
|
| 13 |
-
library_name: transformers
|
| 14 |
---
|
| 15 |
|
| 16 |
# InfiGUI-G1-3B
|
| 17 |
|
| 18 |
This repository contains the InfiGUI-G1-3B model from the paper **[InfiGUI-G1: Advancing GUI Grounding with Adaptive Exploration Policy Optimization](https://arxiv.org/abs/2508.05731)**.
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
The model is based on `Qwen2.5-VL-3B-Instruct` and is fine-tuned using our proposed **Adaptive Exploration Policy Optimization (AEPO)** framework. AEPO is a novel reinforcement learning method designed to enhance the model's **semantic alignment** for GUI grounding tasks. It overcomes the exploration bottlenecks of standard RLVR methods by integrating a multi-answer generation strategy with a theoretically-grounded adaptive reward function, enabling more effective and efficient learning for complex GUI interactions.
|
| 21 |
|
| 22 |
## Quick Start
|
|
@@ -72,7 +80,7 @@ def load_image(img_path: str) -> Image.Image:
|
|
| 72 |
|
| 73 |
|
| 74 |
def visualize_points(original_image: Image.Image, points: list,
|
| 75 |
-
new_width: int, new_height: int
|
| 76 |
original_width: int, original_height: int) -> None:
|
| 77 |
"""Draw prediction points on original image and save as output.png."""
|
| 78 |
output_img = original_image.copy()
|
|
@@ -90,8 +98,8 @@ def visualize_points(original_image: Image.Image, points: list,
|
|
| 90 |
|
| 91 |
# Draw circle
|
| 92 |
circle_radius = 20
|
| 93 |
-
draw.ellipse([original_x - circle_radius, original_y - circle_radius
|
| 94 |
-
original_x + circle_radius, original_y + circle_radius]
|
| 95 |
fill=(255, 0, 0))
|
| 96 |
|
| 97 |
# Draw label
|
|
@@ -125,7 +133,8 @@ def main():
|
|
| 125 |
|
| 126 |
# Prepare model inputs
|
| 127 |
instruction = "shuffle play the current playlist"
|
| 128 |
-
system_prompt = 'You FIRST think about the reasoning process as an internal monologue and then provide the final answer.\
|
|
|
|
| 129 |
prompt = f'''The screen's resolution is {new_width}x{new_height}.
|
| 130 |
Locate the UI element(s) for "{instruction}", output the coordinates using JSON format: [{{"point_2d": [x, y]}}, ...]'''
|
| 131 |
|
|
@@ -164,8 +173,6 @@ if __name__ == "__main__":
|
|
| 164 |
|
| 165 |
To reproduce the results in our paper, please refer to our repo for detailed instructions.
|
| 166 |
|
| 167 |
-
For more details on the methodology and evaluation, please refer to our [paper](https://arxiv.org/abs/2508.05731) and [repository](https://github.com/InfiXAI/InfiGUI-G1).
|
| 168 |
-
|
| 169 |
## Results
|
| 170 |
|
| 171 |
Our InfiGUI-G1 models, trained with the AEPO framework, establish new state-of-the-art results among open-source models across a diverse and challenging set of GUI grounding benchmarks.
|
|
@@ -242,4 +249,4 @@ If you find this work useful, we would be grateful if you consider citing the fo
|
|
| 242 |
journal={arXiv preprint arXiv:2501.04575},
|
| 243 |
year={2025}
|
| 244 |
}
|
| 245 |
-
```
|
|
|
|
| 3 |
- Qwen/Qwen2.5-VL-3B-Instruct
|
| 4 |
language:
|
| 5 |
- en
|
| 6 |
+
library_name: transformers
|
| 7 |
license: apache-2.0
|
| 8 |
+
pipeline_tag: image-text-to-text
|
| 9 |
tags:
|
| 10 |
- gui
|
| 11 |
- agent
|
| 12 |
- gui-grounding
|
| 13 |
- reinforcement-learning
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
# InfiGUI-G1-3B
|
| 17 |
|
| 18 |
This repository contains the InfiGUI-G1-3B model from the paper **[InfiGUI-G1: Advancing GUI Grounding with Adaptive Exploration Policy Optimization](https://arxiv.org/abs/2508.05731)**.
|
| 19 |
|
| 20 |
+
[](https://github.com/InfiXAI/InfiGUI-G1)
|
| 21 |
+
|
| 22 |
+
## Paper Abstract
|
| 23 |
+
|
| 24 |
+
The emergence of Multimodal Large Language Models (MLLMs) has propelled the development of autonomous agents that operate on Graphical User Interfaces (GUIs) using pure visual input. A fundamental challenge is robustly grounding natural language instructions. This requires a precise spatial alignment, which accurately locates the coordinates of each element, and, more critically, a correct semantic alignment, which matches the instructions to the functionally appropriate UI element. Although Reinforcement Learning with Verifiable Rewards (RLVR) has proven to be effective at improving spatial alignment for these MLLMs, we find that inefficient exploration bottlenecks semantic alignment, which prevent models from learning difficult semantic associations. To address this exploration problem, we present Adaptive Exploration Policy Optimization (AEPO), a new policy optimization framework. AEPO employs a multi-answer generation strategy to enforce broader exploration, which is then guided by a theoretically grounded Adaptive Exploration Reward (AER) function derived from first principles of efficiency eta=U/C. Our AEPO-trained models, InfiGUI-G1-3B and InfiGUI-G1-7B, establish new state-of-the-art results across multiple challenging GUI grounding benchmarks, achieving significant relative improvements of up to 9.0% against the naive RLVR baseline on benchmarks designed to test generalization and semantic understanding. Resources are available at this https URL .
|
| 25 |
+
|
| 26 |
+
## Model Description
|
| 27 |
+
|
| 28 |
The model is based on `Qwen2.5-VL-3B-Instruct` and is fine-tuned using our proposed **Adaptive Exploration Policy Optimization (AEPO)** framework. AEPO is a novel reinforcement learning method designed to enhance the model's **semantic alignment** for GUI grounding tasks. It overcomes the exploration bottlenecks of standard RLVR methods by integrating a multi-answer generation strategy with a theoretically-grounded adaptive reward function, enabling more effective and efficient learning for complex GUI interactions.
|
| 29 |
|
| 30 |
## Quick Start
|
|
|
|
| 80 |
|
| 81 |
|
| 82 |
def visualize_points(original_image: Image.Image, points: list,
|
| 83 |
+
new_width: int, new_height: int,\
|
| 84 |
original_width: int, original_height: int) -> None:
|
| 85 |
"""Draw prediction points on original image and save as output.png."""
|
| 86 |
output_img = original_image.copy()
|
|
|
|
| 98 |
|
| 99 |
# Draw circle
|
| 100 |
circle_radius = 20
|
| 101 |
+
draw.ellipse([original_x - circle_radius, original_y - circle_radius,\
|
| 102 |
+
original_x + circle_radius, original_y + circle_radius],\
|
| 103 |
fill=(255, 0, 0))
|
| 104 |
|
| 105 |
# Draw label
|
|
|
|
| 133 |
|
| 134 |
# Prepare model inputs
|
| 135 |
instruction = "shuffle play the current playlist"
|
| 136 |
+
system_prompt = 'You FIRST think about the reasoning process as an internal monologue and then provide the final answer.\
|
| 137 |
+
The reasoning process MUST BE enclosed within <think> </think> tags.'
|
| 138 |
prompt = f'''The screen's resolution is {new_width}x{new_height}.
|
| 139 |
Locate the UI element(s) for "{instruction}", output the coordinates using JSON format: [{{"point_2d": [x, y]}}, ...]'''
|
| 140 |
|
|
|
|
| 173 |
|
| 174 |
To reproduce the results in our paper, please refer to our repo for detailed instructions.
|
| 175 |
|
|
|
|
|
|
|
| 176 |
## Results
|
| 177 |
|
| 178 |
Our InfiGUI-G1 models, trained with the AEPO framework, establish new state-of-the-art results among open-source models across a diverse and challenging set of GUI grounding benchmarks.
|
|
|
|
| 249 |
journal={arXiv preprint arXiv:2501.04575},
|
| 250 |
year={2025}
|
| 251 |
}
|
| 252 |
+
```
|