TL;DR
Demo2Tutorial is an agentic framework that automatically distills raw human screen recordings and interaction logs into structured, step-by-step multimodal tutorials. By bridging the gap between passive video demonstrations and actionable knowledge, it significantly accelerates human learning and boosts the planning success rates of GUI-automation agents.
What Problem Does This Paper Address?
Digital environments are rich with procedural knowledge, but capturing and sharing this expertise is surprisingly difficult. Currently, we rely on two main formats: raw screen recordings ("demonstrations") and curated step-by-step guides ("tutorials"). While demonstrations are easy to record, they are often long, untrimmed, and lack visual or verbal guidance, making them tedious to follow. Conversely, creating high-quality, image-text interleaved tutorials is incredibly labor-intensive, requiring manual context compression, key-frame selection, and precise visual annotations (like cropping or highlighting).
The authors address this bottleneck by automating the transformation of unstructured human computer-use experience into structured, pedagogical tutorials that benefit both human learners and AI agents.
Methods
The Demo2Tutorial framework operates via four core components:
- Human Experience Recorder (HE-Recorder): Captures full-screen video alongside low-level user actions (clicks, keystrokes) with precise temporal synchronization.
- Action Parser: Employs a Vision-Language Model (VLM), specifically GPT-4o, with a structured Chain-of-Thought prompting strategy to translate low-level actions into semantic descriptions of observations, actions, and inferred user intents.
- Step Planner: Uses a bottom-up strategy to abstract atomic actions into steps, cluster steps into chapters, and synthesize an overall tutorial goal. This is refined via an Actor-Critic loop where a Critic agent provides feedback on coverage and learnability to iteratively improve the draft.
- Tutorial Composer: Generates the final image-text interleaved document. It features an intelligent key-frame selection mechanism (scoring frames based on text relevance, sharpness, and stability) and applies adaptive visual highlights (using tools like SAM2 for UI segmentation, adding click markers, drag trajectories, and magnifying effects).
Datasets
The authors introduce TutorialBench, a new benchmark containing 110 tutorials across 7 common software applications (Microsoft Word, PowerPoint, Excel, and Adobe Acrobat, Premiere Pro, Photoshop, After Effects). The ground-truth tutorials were collected from official vendor websites, and corresponding raw demonstrations were recorded by human experts using the HE-Recorder.
For downstream agent evaluation, the authors utilize the OSWorld benchmark, focusing on Chrome and VLC tasks.
Key Insights and Ideas
- Demonstrations $\neq$ Tutorials: A key insight is that raw recordings showcase what a system does (passive), whereas tutorials teach how to do it (active). Transforming one to the other requires intent inference, not just action logging.
- Bottom-Up Abstraction Filters Noise: Instead of top-down task decomposition, grouping atomic actions into steps naturally filters out human mistakes, pauses, and irrelevant operations.
- Multimodal Synergy for Agents: For AI agents, text-only or image-only guidance is insufficient. Tightly coupled vision-language alignment provides the strongest grounding for complex action sequencing and interface reasoning.
- Automated Visuals Can Beat Humans: Surprisingly, automated key-frame selection and adaptive visual annotations can yield higher visual clarity scores than official human-authored documentation, which often lacks comprehensive step-by-step screenshots.
Key Results
- Tutorial Quality: On TutorialBench, Demo2Tutorial achieved an overall quality score of 86.2, outperforming official human-authored tutorials (79.1) and significantly beating vanilla multi-agent baselines (70.3).
- GUI Agent Performance: Integrating the generated tutorials into the Agent-S3 framework on the OSWorld benchmark led to massive planning improvements. For GPT-5, success rates jumped from 52.9% to 70.6% in Chrome and from 59.6% to 70.7% in VLC.
- Human Learning Efficiency: In a user study, participants using Demo2Tutorial's generated guides completed software tasks 10.5% faster (131.6s vs. 147.1s) than those watching raw demo videos. Furthermore, 80% of users preferred the tutorial format over video.

Limitations and Future Work
The authors note a few areas for improvement:
- Platform Scope: The current implementation focuses primarily on desktop environments; extending the framework to mobile and web platforms is a key next step.
- Computational Efficiency: The multi-step agentic pipeline (Action Parser, Actor-Critic Planner) relies heavily on LLM/VLM calls, which can be computationally expensive and slow.
- Personalization: Future iterations could explore generating personalized tutorials tailored to a user's specific skill level or language preferences.
Summary updated