ScreenLLM: Stateful Screen Schema for Efficient Action Understanding and Prediction

Yiqiao Jin, Stefano Petrangeli, Yu Shen, Gang WuWWW 2025 · DOI

Abstract

Graphical User Interface (GUI) agents face significant challenges in processing high-resolution screen recordings due to data sparsity and computational overhead. This paper introduces ScreenLLM, a framework that utilizes a "stateful screen schema"—a compact, structured textual representation of UI interactions. By focusing on key frames and discrete UI element changes, ScreenLLM enables Multimodal Large Language Models (MLLMs) to efficiently understand and predict user actions. Experimental results on the PsTuts dataset demonstrate that ScreenLLM provides up to a 40.7% improvement in action description and significantly enhances intent prediction in proprietary models like GPT-4o.

Introduction

Automating tasks within complex software environments requires agents that can interpret user interactions in real-time. However, standard video processing techniques are ill-suited for GUIs, which are predominantly static and contain high-frequency, small-scale visual information (e.g., menu text). Current MLLMs often struggle with the "resolution bottleneck," where downsampling leads to the loss of critical UI details. ScreenLLM addresses these issues by converting dynamic visual data into a structured textual schema, preserving semantic information while reducing the input dimensionality for the LLM.

Methods

The ScreenLLM framework centers on the generation of a Stateful Screen Schema. This process transforms raw visual input into a format optimized for LLM reasoning through several specialized modules:

  • Key Frame Extraction: Instead of uniform sampling, the system identifies frames based on "second-order pixel changes." This isolates discrete UI events (e.g., a dialog box appearing) while ignoring continuous motions like canvas zooming.
  • UI Element & Cursor Detection: The system detects regions of change, applies Optical Character Recognition (OCR) to extract textual content, and utilizes a custom CNN to track the cursor's coordinates.
  • Schema Composition: The extracted metadata—including timestamps, cursor positions, and UI text—is formatted into a structured text block.
  • Memory Module: To provide temporal context, a memory module tracks and summarizes historical actions, allowing the model to maintain a "state" of the user's workflow.
The ScreenLLM architecture, illustrating the pipeline from visual input and key frame detection to the generation of the stateful screen schema and final LLM prediction.

Experimental Evaluation

The framework was evaluated using the PsTuts dataset, a collection of high-resolution Adobe Photoshop tutorials. Photoshop serves as a rigorous benchmark due to its professional-grade complexity and nested UI structures. The evaluation compared fine-tuned open-source models (LLaVA-7B/13B) and zero-shot proprietary models (GPT-4o) using the proposed schema.

Visual demonstration of UI element detection and extraction from a full-resolution Photoshop workspace.

Results and Discussion

ScreenLLM achieved substantial performance gains across multiple dimensions:

  • Action Understanding: LLaVA-13B showed a 40.7% improvement in BLEU-2 and a 16.5% improvement in ROUGE-L over standard video-based fine-tuning.
  • Intent Prediction: For GPT-4o, the schema-based approach improved BLEU-2 for future intention prediction by 24.0% compared to zero-shot baselines.
  • Instruction Following: The use of the structured schema reduced the model's failure rate to follow output formats to 0% for LLaVA models.
  • Tool Identification: Accuracy in identifying specific Photoshop tools improved by up to 39.1%.

These results suggest that structured text is an effective proxy for high-resolution video in GUI tasks. By extracting semantic information before LLM processing, ScreenLLM bypasses the resolution limits of current vision encoders.

Conclusion

ScreenLLM introduces an efficient, stateful approach to GUI action understanding. By leveraging a textual schema, the framework achieves superior performance in both describing current actions and predicting future intent. Future research will focus on expanding the framework to diverse software domains and optimizing the pipeline for real-time autonomous execution.

Summary updated

BibTeX
@inproceedings{jin2025screenllm,
  author = {Yiqiao Jin and Stefano Petrangeli and Yu Shen and Gang Wu},
  title = {{ScreenLLM: Stateful Screen Schema for Efficient Action Understanding and Prediction}},
  booktitle = {The Web Conference},
  year = {2025},
  doi = {10.1145/3701716.3718379},
}
Figure