OSU-NLP-Group/UGround
[ICLR'25 Oral] UGround: Universal GUI Visual Grounding for GUI Agents
🎯 什么是 UGround?
UGround 是一个开源研究项目,致力于解决图形用户界面(GUI)代理的 视觉定位 问题。给定一张截图和一段自然语言描述(例如:“点击 发送 按钮”),模型会预测出所指 UI 元素的 (x, y) 坐标。代码、预训练权重、训练数据和评估套件均已公开发布,该工作被 ICLR 2025 接受为口头论文。
📚 主要贡献
| 组件 | 提供内容 |
|---|---|
| 模型家族 | 基于 Qwen2-VL 的三种尺寸视觉语言模型(2B、7B、72B),经过微调用于 GUI 定位(命名为 UGround-V1)。 |
| 训练数据 | 超过 100 万张带有边界框标注的 GUI 截图(UGround-V1 数据集),托管在 Hugging Face 上。还提供一个“仅框”版本。 |
| 评估套件 | 四个成熟 GUI 定位基准(ScreenSpot、Multimodal-Mind2Web、OmniAct、AndroidControl)的即用型评估脚本,以及一个实时代理基准(Mind2Web-Live-SeeAct-V、AndroidWorld-SeeAct-V)。 |
| 演示 | 一个 Hugging Face Spaces 网页演示,支持上传图像和描述,并返回预测坐标。 |
| 论文与结果 | ICLR 2025 完整论文、arXiv 预印本,以及展示最先进性能的排行榜(例如,72B 模型在 ScreenSpot 上平均得分 89.4%)。 |
🚀 快速开始(推理)
1. 安装所需 Python 包
pip install "git+https://github.com/huggingface/transformers@21fac7abba2a37fae86106f87fcf9974fd1e3830"
pip install accelerate qwen-vl-utils "vllm==0.6.1"
2. 使用 vLLM 运行模型(高吞吐量服务)
# 7B 检查点示例
vllm serve osunlp/UGround-V1-7B \
--api-key <your-token> \
--dtype float16
仓库推荐使用 float16 以获得更稳定的解码。
3. 构建定位提示
def format_openai_template(description, base64_image):
return [{
"role": "user",
"content": [
{"type": "image_url",
"image_url": {"url": f"data:image/jpeg;base64,{base64_image}"}},
{"type": "text",
"text": f"""你的任务是根据描述,帮助用户识别屏幕上特定区域/元素/对象的精确坐标 (x, y)。
- 返回一个单一字符串 "x, y",指向描述元素的中心。
- 如果描述模糊,请选择最合理的元素。
- 模型输出的坐标范围为 [0, 1000);请通过 (宽度/1000, 高度/1000) 缩放以获得像素值。
描述: {description}
回答:"""
]
}]
将 messages 列表以 temperature=0 发送到 vLLM 的 OpenAI 兼容端点,即可获得确定性坐标。
📂 仓库结构(概览)
train/– 在 UGround 数据上微调 Qwen2-VL 的脚本。offline_evaluation/– 四个静态基准(ScreenSpot、Multimodal-Mind2Web、OmniACT、AndroidControl)的代码和结果。online_experiments/– 外部仓库链接,用于在交互式环境中运行模型(Mind2Web-Live-SeeAct-V、AndroidWorld-SeeAct-V)。README.md– 本概述、权重、数据、演示和引用链接。
📊 性能亮点(ScreenSpot 基准)
| 模型 | 大小 | 平均得分 |
|---|---|---|
| UGround-V1-2B (Qwen2-VL) | 2B | 77.7 |
| UGround-V1-7B (Qwen2-VL) | 7B | 86.3 |
| UGround-V1-72B (Qwen2-VL) | 72B | 89.4 |
| Claude (Computer-Use) | – | 82.9 |
72B 检查点在 标准 ScreenSpot 设置中超越了所有先前模型,并在与 GPT-4o 作为规划器搭配使用时,达到了 代理 设置下的最佳得分。
🌐 资源与链接
- 主页: https://osu-nlp-group.github.io/UGround
- 论文 (arXiv): https://arxiv.org/abs/2410.05243
- 模型权重 (Hugging Face): https://huggingface.co/collections/osunlp/uground-677824fc5823d21267bc9812
- 演示 (HF Spaces): https://huggingface.co/spaces/orby-osu/UGround
- 训练数据: https://huggingface.co/datasets/osunlp/UGround-V1-Data(也提供“仅框”版本)
- 排行榜: https://gui-agent.github.io/grounding-leaderboard/
📜 引用
@inproceedings{gou2024uground,
title={Navigating the Digital World as Humans Do: Universal Visual Grounding for GUI Agents},
author={Boyu Gou and Ruohan Wang and Boyuan Zheng and Yanan Xie and Cheng Chang and Yiheng Shu and Huan Sun and Yu Su},
booktitle={International Conference on Learning Representations},
year={2025},
url={https://openreview.net/forum?id=kxnoqaisCT}
}
TL;DR: UGround 提供了一个开箱即用、高性能的视觉语言模型,可从自然语言中定位 UI 元素,包含数据、权重、基准和实时演示——是任何需要 GUI 感知代理的研究或产品开发的坚实基础。
相关
- 项目
- 项目
- 项目
- 项目