Skip to main content
QUICK REVIEW

[Paper Review] CogAgent: A Visual Language Model for GUI Agents

Wenyi Hong, Weihan Wang|arXiv (Cornell University)|Dec 14, 2023
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

CogAgent is an 18-billion-parameter visual language model designed for GUI understanding and navigation, leveraging a dual-branch architecture with low- and high-resolution image encoders to achieve human-level visual comprehension at 1120×1120 resolution. It outperforms LLM-based methods using extracted text on Mind2Web and AITW benchmarks, setting new state-of-the-art results on nine VQA and GUI reasoning tasks while reducing FLOPs by over 50% compared to baseline high-res models.

ABSTRACT

People are spending an enormous amount of time on digital devices through graphical user interfaces (GUIs), e.g., computer or smartphone screens. Large language models (LLMs) such as ChatGPT can assist people in tasks like writing emails, but struggle to understand and interact with GUIs, thus limiting their potential to increase automation levels. In this paper, we introduce CogAgent, an 18-billion-parameter visual language model (VLM) specializing in GUI understanding and navigation. By utilizing both low-resolution and high-resolution image encoders, CogAgent supports input at a resolution of 1120*1120, enabling it to recognize tiny page elements and text. As a generalist visual language model, CogAgent achieves the state of the art on five text-rich and four general VQA benchmarks, including VQAv2, OK-VQA, Text-VQA, ST-VQA, ChartQA, infoVQA, DocVQA, MM-Vet, and POPE. CogAgent, using only screenshots as input, outperforms LLM-based methods that consume extracted HTML text on both PC and Android GUI navigation tasks -- Mind2Web and AITW, advancing the state of the art. The model and codes are available at https://github.com/THUDM/CogVLM, with a new version of CogAgent-9B-20241220 available at https://github.com/THUDM/CogAgent.

Motivation & Objective

  • To develop a generalist visual language model capable of understanding and navigating GUIs using only screenshots, without relying on structured text like HTML or OCR.
  • To overcome the limitations of standard VLMs trained on natural images by constructing a large-scale GUI-specific pre-training dataset with OCR and GUI annotations.
  • To enable high-resolution visual understanding (up to 1120×1120) for recognizing tiny GUI elements while minimizing computational cost.
  • To achieve state-of-the-art performance on both generalist VQA benchmarks and specialized GUI agent benchmarks like Mind2Web and AITW.
  • To design an efficient architecture that decouples high-resolution feature extraction from the main model to reduce FLOPs and enable scalable inference.

Proposed method

  • CogAgent employs a dual-branch vision encoder: a standard low-resolution ViT (EVA2-CLIP-E) and a novel high-resolution cross-module with a smaller, dedicated image encoder (0.30B parameters) for 1120×1120 inputs.
  • The high-resolution branch uses cross-attention to attend to features from the low-resolution branch, enabling efficient fusion of fine-grained visual details without increasing the main model's sequence length.
  • The model is pre-trained on a large-scale GUI-specific dataset combining image captioning, OCR, and domain-specific GUI and grounding data to improve GUI understanding.
  • Fine-tuning is performed on downstream tasks such as VQA and GUI navigation using supervised fine-tuning with human-annotated instruction data.
  • Ablation studies use FLOPs and inference time as metrics to evaluate computational efficiency, with experiments conducted at resolutions of 224, 490, 756, and 1120.
  • The architecture allows for a 2.5× reduction in FLOPs at 1120×1120 resolution compared to the original CogVLM-17B at 490×490, due to the separation of high-res processing.

Experimental results

Research questions

  • RQ1Can a generalist visual language model outperform LLM-based agents that rely on extracted structured text (e.g., HTML or OCR) in GUI navigation tasks?
  • RQ2How can high-resolution visual inputs (up to 1120×1120) be efficiently processed in a VLM without incurring prohibitive computational costs?
  • RQ3To what extent does domain-specific pre-training data (e.g., GUIs, OCR, grounding) improve performance on GUI reasoning and navigation benchmarks?
  • RQ4Does a dual-branch architecture with cross-attention between low- and high-resolution features yield better performance and efficiency than monolithic high-res models?
  • RQ5Can a VLM achieve state-of-the-art performance on both generalist VQA and specialized GUI agent benchmarks simultaneously?

Key findings

  • CogAgent achieves state-of-the-art performance on five text-rich and four general VQA benchmarks, including VQAv2, OK-VQA, Text-VQA, ST-VQA, ChartQA, infoVQA, DocVQA, MM-Vet, and POPE.
  • On the Mind2Web benchmark, CogAgent achieves a 41.4% success rate using only screenshots, outperforming LLM-based methods that use extracted HTML text.
  • On the AITW benchmark, CogAgent achieves a 54.2% success rate with the full pre-training data (including GUI and grounding data), significantly outperforming models trained only on image captioning and OCR.
  • The high-resolution cross-module reduces FLOPs by over 50% at 1120×1120 resolution compared to the original CogVLM-17B architecture, with only a modest increase in computational overhead.
  • Ablation studies show that adding GUI-specific and grounding pre-training data improves performance on Mind2Web by 15.6 percentage points compared to models trained only on image captioning and OCR.
  • The model maintains strong generalization, achieving 78.2% on ST-VQA and 75.9% on OCRVQA at 1120×1120 resolution, demonstrating robustness across diverse visual reasoning tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.