TL;DR
Task Model Induction (TMI) is a new framework that transforms messy, low-level computer-use traces—like screenshots and clicks—into structured, auditable task models. By disentangling interleaved activities and reconciling hierarchical goals with control-flow logic (like loops and sequences), TMI enables AI agents to learn complex real-world skills from human demonstrations with 30% higher accuracy than previous methods.
What Problem Does This Paper Address?
We record more of our digital work than ever, yet raw computer-use traces are notoriously difficult for machines to "understand." A sequence of mouse clicks and keystrokes is semantically thin; it doesn't tell you why a user performed an action or how those actions relate to a broader objective.
Furthermore, real-world work is rarely linear. Users constantly switch between tasks—answering a Slack message while debugging code or checking a reference website while designing a UI. Existing methods for "workflow induction" typically assume a single, continuous task and produce flat, step-by-step summaries. They fail to capture the recursive nature of human goals (sub-tasks within tasks) and the underlying logic (e.g., "repeat this action for every user account") that makes a process reusable.
Methods
TMI introduces a multi-stage pipeline to bridge the gap between raw pixels and structured intent:
- Event Grounding & Activity Segmentation: Using Vision-Language Models (VLMs), raw events (like a click at specific coordinates) are grounded into semantic actions (e.g., "Click the share button"). These are then grouped into "activities"—the smallest units of work that satisfy a local objective.
- Latent Task Induction: This stage untangles the "multi-threaded" nature of work. TMI maintains profiles for discovered tasks, using "anchors"—referential identifiers like filenames, URLs, or project names—to assign new activities to the correct task thread, even if they are separated by long interruptions.
- Task Model Construction: For each discovered task, TMI builds two independent models:
- Objective Model: A hierarchical tree representing the recursive decomposition of goals (the what).
- Procedure Model: A model of control-flow operators—
SEQ(sequence),FOR(iteration over items), andWHILE(iteration until a condition is met)—derived from temporal patterns (the how). - Reconciliation: The two models are fused into a single tree. This is a critical step: the procedure model might correct the boundaries of an objective, while the objective model provides the semantic "why" for a loop identified in the procedure.
Datasets
The authors evaluated TMI using three primary sources:
- HumanWork: A dataset of 38 recorded sessions of real human professionals performing tasks in engineering, design, and data analysis.
- SkillsBench: A collection of 86 software engineering tasks executed by various coding agents (Claude, Codex, etc.).
- SkillLearnBench: A benchmark used for the "extrinsic" evaluation, testing how well the induced models help an agent perform new, held-out tasks.
Key Insights and Ideas
- The Power of Reconciliation: One of the paper's "aha" moments is that neither goal hierarchies nor control flows are sufficient on their own. Objective models often miss the repetitive structure of work, while procedure models often miss the underlying purpose. Fusing them creates a model that is both semantically rich and logically sound.
- Anchors Beat Adjacency: In multi-tasking environments, the activity that happens next in time is often unrelated to the current task. By tracking "anchors" (specific artifacts like
users.json), TMI can maintain task continuity across different applications and naming shifts. - Capturing Non-Linearity: Real work is full of "detours"—error corrections, exploratory searches, and revisions. TMI’s use of
WHILEandFORloops allows it to represent these messy spans as structured logic rather than just a long, confusing list of steps.
Key Results
- Task Disentanglement: TMI achieved a 0.974 Adjusted Rand Index (ARI) agreement against ground-truth task groupings, proving it can almost perfectly untangle interleaved work threads.
- Structural Fidelity: TMI reconstructed 74.9% of observed execution steps accurately, compared to just 30.3% for the strongest baseline (Workflow Summary).
- Downstream Performance: When used to generate "skills" for AI agents, TMI-based models led to a 30.0% relative accuracy gain on held-out tasks over the best baseline. This demonstrates that the induced models aren't just good descriptions—they are functional knowledge.
Limitations and Future Work
- Privacy: Because TMI processes raw screenshots and keystrokes, the traces often contain personally identifiable information (PII). The authors note that robust redaction techniques must be integrated before these models can be safely shared or used in production.
- Latent Selection Logic: While TMI captures sequences and loops well, it struggles with "selection" (if-then-else logic). This is because a trace only shows the path a user did take, not the alternative paths they could have taken.
- Error Propagation: As a multi-stage pipeline, errors in early stages (like grounding a click incorrectly) can propagate and affect the final task model structure. Improving the robustness of the initial VLM-based grounding is a key area for future research.
Summary updated