arXiv(opens in a new tab)cs.CLAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.20319

Inducing Task Models from Computer-Use Traces

Yucheng Jiang, Zora Zhiruo Wang, Ruishi Chen, Diyi Yang

Abstract

Naturalistic computer-use traces, passively recorded screenshots and mouse or keyboard actions, are a valuable resource for deriving symbolic, auditable, and reusable models of how everyday work is done. Such models matter as computer-use agents enter real work, where agents need to learn how tasks are actually performed, and organizations need to audit and reuse that knowledge. However, inducing such task models is challenging, as activity is observed only as low-level events and real-world work is multi-threaded with interleaved goals. Existing methods assume a given task or a single workflow, and produce step-level summaries rather than structured task models. We introduce Task Model Induction (TMI), which (i) discovers the latent tasks in an unconstrained trace, disentangling concurrent activity, and (ii) for each latent task, induces a task model pairing a hierarchical objective model of recursive goal decomposition with a procedure model of the control flow that organized the execution. Intrinsically, on controlled human and agent trajectories, TMI recovers interleaved tasks with 0.974 agreement against ground-truth groupings and reconstructs 74.9% of the observed execution steps, far more than the strongest workflow induction baseline. Extrinsically, skills derived from TMI’s task models improve held-out task accuracy by 30.0% over the strongest baseline.

1 Introduction

Naturalistic computer-use activity traces, passively recorded sequences of screenshots and mouse or keyboard events, are a valuable resource for deriving symbolic, auditable, and reusable models of how everyday work is done Shaikh et al. (2025); Wang et al. (2025). Most of this work is never documented, and the expertise it encodes remains tacit. Recovering the objectives a user pursued and the procedures they followed turns a recording into an explicit account of what was accomplished and how, which people can audit for systematic patterns in human and AI work Wang et al. (2025), reuse as documentation, and transfer to new practitioners. Beyond human use, such traces support agent learning from human activity without costly annotation Lu et al. (2025); Song et al. (2026), and personalization, where activity-based user models let systems anticipate user goals Shaikh et al. (2026).

Figure

Figure 1: Task model induction from computer-use traces. Screenshots and input events are grounded into semantic actions, whose interleaved spans are assigned to latent tasks. Each task is represented as a hierarchy pairing objectives with control-flow operators.

Modeling these traces, however, poses three challenges. At the signal level, raw events such as cursor movements, key presses, and screen pixels carry little semantic meaning, and bridging perceptual observations to semantic intent requires substantial interpretation Yang et al. (2023); You et al. (2024); Zheng et al. (2024); Shaw et al. (2023). At the structural level, naturalistic work is multi-threaded, with users switching among unrelated goals within a single session and pursuing interleaved sub-objectives within a single task Czerwinski et al. (2004); González and Mark (2004); Mark et al. (2008); Adamczyk and Bailey (2004); Iqbal and Horvitz (2007); Salvucci et al. (2009). At the representational level, a trace captures the executed path but does not directly reveal either the goal hierarchy that motivated each step or the control flow that organized the execution Stanton (2006); Card (2018); Diaper and Stanton (2003).

Prior approaches address these challenges only partially. LLM summarization condenses the session into free-form prose, blending concurrent tasks and discarding goal hierarchy and control flow. Prompting an LLM directly for a task model recovers the schema but not the execution structure, as our direct generation baseline shows (§4.3). Workflow induction recovers a stepwise decomposition of the activity Chen et al. (2024); Wang et al. (2025) but treats the recording as one continuous workflow, leaving interleaved tasks entangled, sub-objectives flattened, and iteration and branching unexpressed Wang et al. (2025); Zang et al. (2025). Trace-analysis methods assume the root task is given in advance Wang et al. (2024); Grohs et al. (2024) and do not extend to sessions with latent and diverse tasks.

We address these gaps by defining a task model, an explicit representation of a single task that pairs its goal hierarchy with the control flow of its execution. The objective model represents the goal hierarchy as a recursive decomposition of the task into the (sub-)objectives the user pursued Wing (2006); Stanton (2006). The procedure model represents the control flow as a composition of sequencing and iteration operators, the structured programming constructs that remain observable in a trace Böhm and Jacopini (1966). Recovering task models from naturalistic computer-use traces (§2) requires a system to jointly discover the latent tasks of an unconstrained session and induce a task model for each, with no tasks, boundaries, or descriptions given in advance (Figure 1).

We introduce Task Model Induction (TMI) (§3), a method that addresses the three challenges in turn. Event grounding and activity segmentation recovers what each raw event did from its visual context and groups the results into semantic actions and activities, bridging low-level signal and local intent (§3.1). Latent task induction untangles the multi-threaded activity stream, discovering tasks and assigning possibly non-contiguous activities to each without a pre-specified task set (§3.2). Task model construction builds each task’s objective and procedure models under formal validity constraints and reconciles them into a unified model in which objective scope and control flow are mutually consistent (§3.3).

We evaluate TMI both intrinsically via controlled reconstructions of human computer-use sessions (§4), and extrinsically via downstream agent learning (§5). On trajectories built from a dataset of recorded real human work sessions (Wang et al., 2025), our method recovers interleaved tasks with 0.974 agreement against ground-truth task groupings and matches 74.9% of observed execution steps against 30.3% for the strongest workflow induction baseline. Using the induced task model to generate reusable agent skills, evaluated on held-out SkillLearnBench (Zhong et al., 2026) tasks, improves task accuracy by 30.0% over baseline.

Our contributions are as follows.

  • We formalize the task model for induction from unconstrained traces, a representation that pairs hierarchical objective decomposition with structured control flow, grounded in computational thinking and the structured programming theorem.
  • We propose Task Model Induction (TMI), a method that grounds raw events into semantic activities, untangles interleaved sessions into latent tasks, and induces each task’s objective and procedure models independently before reconciling them into a unified model under formal validity constraints.
  • Intrinsic and extrinsic evaluation show that our method recovers interleaved tasks and their execution structure more faithfully than workflow induction baselines, and that the induced task models yield more effective skills for downstream agents.

References (13)