Diyi Yang: When Should a Proactive AI Agent Interrupt?

A helpful personal agent must infer needs, judge when to act and protect information about users and bystanders.

DYDiyi YangPonente · Stanford University
Canal
Stanford Online
Publicado
4 dic 2026
Vídeo
1:02:09
Lectura
11 min
Diapositivas
9
Original
inglés
Abrir en YouTube
Al desplazarte, el vídeo se reduce a la esquina inferior derecha y sigue reproduciéndose. Los subtítulos siguen tu idioma de lectura.
Idioma de lecturaDisponible en 2 idiomas
Este artículo aún no está en español, así que se muestra el original en inglés.
RESUMEN

En 30 segundos

A proactive agent does more than wait for a prompt: it observes context, infers a user’s needs and decides whether an interruption is worth the cost. Stanford’s Diyi Yang shows how user models and feedback can support those decisions, but also why more context exposes more private information. In one benchmark, a fine-tuned model still raised false alarms about half the time; in a separate 10-person study, a personalized agent improved a timing metric over a week. Yang proposes limited capture, contextual privacy checks and confirmation before sharing as possible safeguards.

  1. 1Proactivity means inferring needs before a user asksA reactive assistant waits for an instruction; a proactive one observes context and decides whether to offer help. The user may still approve the resulting action.
  2. 2An interrupt gate is separate from noticing an eventYang separates perception, user modeling, prediction and action, and adds a decision about whether and when the agent should speak.
  3. 3User models infer preferences with uncertaintyHer example turns computer activity into propositions and confidence estimates, while recognizing that the same observation can support several explanations.
  4. 4Interruption can be framed as a benefit-and-cost decisionThe GUMBO example weighs the chance and value of useful help against false interruptions and missed opportunities.
  5. 5Better benchmark scores still left many false alarmsOn one synthetic benchmark, a fine-tuned model’s false-alarm rate remained around 50%, illustrating how difficult it is to time useful help.
  6. 6A local observer can be separated from an execution agentYang describes Coco, which uses feedback to adapt its local observer. In a one-week study of 10 users, a proxy timing F1 rose from about 0.2 to 0.5.
  7. 7Personalization also exposes information about other peopleYang discusses contextual privacy, bystander data and sensitive inferences, alongside options such as local capture and confirmation before sharing.

Conclusiones

  1. Separate recognizing a possible need from deciding whether and when to interrupt.
  2. Compare the expected benefit of useful help with the costs of an unwanted interruption and a missed opportunity.
  3. Treat inferred preferences as uncertain and changeable, rather than facts about a person.
  4. Measure timing and the usefulness of the proposed help separately.
  5. Limit data collection, consider bystander consent and confirm sensitive disclosures.
TEXTO COMPLETO

Lee el texto editado por capítulos

Solo la transcripción
01

What proactive agents do before a request

Yang contrasts waiting for an explicit instruction with anticipating a need. She explains why context, tools and timing make the difference.

A proactive agent starts helping before a user explicitly asks. If I am still working on slides for a talk tomorrow, the question is what the agent would need to notice and know before offering useful help.

Recent assistants differ in what they can observe and do without an instruction. Better models, cheaper background computation, access to applications and memory across sessions have made this kind of system more practical to explore.

A reactive agent waits for the user to state a goal and supply the relevant context. A proactive agent tries to infer the goal, context and preferences, and decides when to offer help. The distinction depends on how well it models the user and when it chooses to speak.

Reactive and proactive assistance
DIAPOSITIVA 1 / 9Reactive and proactive assistanceA meeting request illustrates waiting for a command versus offering to help before the user asks.

Consider a meeting request in an email. In a reactive workflow, the person asks an assistant to schedule it. In a proactive workflow, the assistant notices the request and offers help; the person still decides whether to add the meeting to the calendar.

Background help could reduce both routine work and the burden of knowing exactly what to ask. Yang shows a research comparison in which proactive variants completed more tasks than a baseline, while emphasizing the broader design question of what the system should observe.

02

Older user models and mixed-initiative systems

Earlier interfaces modeled user behavior and the costs of intervening. Yang connects those ideas to current personal agents.

The idea of modeling a user is not new. Earlier researchers argued that a system needs some model of what it regulates; later interfaces considered what a user already knows and how that should change an explanation.

Models of computer use in the 1980s described alternative ways to accomplish a goal, such as saving a document through a menu or a keyboard shortcut. A keystroke-level model could estimate how long a sequence would take an experienced user.

In the 1990s, interface agents explored learning by watching repeated computer activity. Such an agent also needed to decide how confident it was before suggesting an action, an issue that reappears in today’s screen-aware systems.

Mixed-initiative systems consider both whether a person has a goal and whether the assistant takes action. Each combination has a potential benefit or cost. The decision is not just whether a model can perform an action, but whether its intervention helps at that moment.

Yang points to principles that remain relevant: reason about uncertainty in user goals, attention and timing; account for the cost of a bad guess; and use socially appropriate behavior. A system can also learn from recent interactions and observation.

Mixed-initiative design principles
DIAPOSITIVA 2 / 9Mixed-initiative design principlesThe slide connects automation with uncertainty, timing, attention and the cost of incorrect guesses.

Recommendation systems offer a related example. Suggesting a film, song or friend already involves a model of a person’s likely interest, even if the context is narrower than a personal agent operating across many applications.

03

Perceive, model, predict and act

Yang separates the steps of observing a user, inferring preferences, anticipating actions and deciding whether to help. Event triggers and interruption decisions are different components.

Yang proposes four components: perceive what the person is doing, model preferences and goals, predict what may happen next, and act by deciding whether, when and how to help. Prediction is optional; a system can also perceive, model and act without explicitly forecasting the next action.

Four components of proactive behavior
DIAPOSITIVA 3 / 9Four components of proactive behaviorYang organizes the problem into perception, user modeling, prediction and action.

Alongside familiar agent components such as tools, memory and reasoning, she highlights three additions. A trigger wakes the system, an interrupt gate decides whether and when to speak, and feedback from accepted or rejected suggestions can inform later behavior.

Triggers, interruption gates and feedback
DIAPOSITIVA 4 / 9Triggers, interruption gates and feedbackThe diagram adds proactive components to a conventional agent workflow.
04

Always-on does not mean running a model continuously

Event- and timer-driven agents can sleep between sessions while retaining state. Permission boundaries and the channel back to the user matter when no one is watching.

One example uses a personal device as a gateway for messages and application access while calling a remote model for inference. Access to local files and applications can be useful, but Yang notes that it is also a source of risk.

Instructions can define the agent’s job and limits; skills and tools describe work it may perform; and schedules can trigger work. A lightweight controller can keep expensive computation asleep for routine checks and wake the agent for a new event.

An always-on assistant need not run a large model continuously. It can wait, start a short session when an event arrives, write down state needed later and return to sleep. The next message or scheduled event starts another run.

Permissions define what can happen while the user is away, and an outbox determines how results reach the user. Without appropriate limits, background access could lead to consequential actions that the person did not intend.

When an event arrives, an agent can read its memory and permissions before selecting allowed tools. If it has something to report, it sends the result through the user-facing channel; the person’s response may itself become the next event.

05

Infer a user model from computer activity

A general user model turns observations into uncertain propositions about habits and preferences. Yang shows how such a model can make suggestions and why its knowledge must be updated.

Yang next introduces a general user model built from computer activity. Unlike an agent that wakes only for a message or timer, this approach can use ongoing observations to infer propositions about the user, each with an associated confidence.

For instance, seeing someone watch ice-cream recipes could indicate an interest in ice cream or cooking, but it could also be random browsing. A proposition and a confidence score are an inference, not proof of the person’s preference.

The model can build and update many such propositions as a person works. Some may describe habits or current concerns, with different confidence levels. The same observation can admit more than one explanation.

In one example, Yang is working on slides and receives a message asking about them. The model notices the context and suggests a draft message to a student who often helps with her presentations. The proposal reflects an inferred workflow rather than merely offering to write the slides itself.

At each step, a system might capture an observation, decide whether it is appropriate to use, retrieve related information and revise earlier propositions. Over time those updates form a local user model that a proactive assistant can consult.

06

Weigh the costs and benefits of an interruption

GUMBO frames intervention as a decision under uncertainty. A small user study explores the experience of suggestions informed by a user model.

Yang’s GUMBO example returns to mixed initiative: at a decision point, should the assistant interrupt? The question combines its confidence that help is useful with the benefit if it is right, the cost of a false interruption and the cost of missing a useful opportunity.

Earlier approaches often built separate estimates for those variables, allowing errors to compound. Yang describes using the user model to estimate the relevant quantities, with better information potentially improving later decisions.

One evaluation of the general user model examined 3,600 emails from 18 users. Yang says participants generally considered the inferences accurate and describes conservative confidence as desirable when the system is making claims about a person.

In a separate, qualitative study, five people tried the proactive system for more than a week. The researchers examined the propositions and suggestions it produced rather than relying only on a benchmark score.

One participant moving for an internship reported that the system drew together details such as timing, budget and concerns to suggest a plan. Yang contrasts that with the work of explicitly explaining each detail to a reactive assistant, including across languages.

A student asks what happens when a proposition becomes stale or conflicts with later information. Yang says the system updates recent information and can retain contextual descriptions and confidence, but evolving preferences and boundary cases remain difficult.

07

Predict what a person may do next

Yang presents a model trained on screen-use data to forecast actions. The approach retrieves relevant history and scores predictions against what later happens.

The next question is whether an agent can predict what a person will do on a computer. Not every proactive system needs an explicit prediction stage: scheduled triggers and standing goals are alternatives. Prediction is one possible way to decide what help might be useful.

If the user is already about to fix a typo, suggesting the same correction may add little value. A forecast can consider both what a person is likely to do and what they might not do, given a recent context window and a chosen future horizon.

Training such a model requires data. Yang describes screen recordings and associated interaction signals from a research dataset, including about 1,800 hours of use and 1.9 million screenshots in the material discussed. Later she says their sample included 20 users from a larger Stanford dataset.

New observations should inform predictions quickly. The approach retrieves relevant past reasoning for a particular user and uses it as context for the current forecast, rather than relying only on slow changes to model weights.

A prediction can be scored by waiting and observing what the person actually does. The system retrieves relevant past context, reasons about the current situation, predicts possible actions and compares them with later behavior; useful traces can return to memory.

Yang reports that the LongNAP approach performed better than the comparison methods on two models in the evaluation she shows. People varied considerably in predictability, and some forecasts drew on relevant activity from days earlier.

A student asks about the discomfort of having a system describe personal behavior. Yang says the intended inference happens in the background and discusses a local-model design, but acknowledges that unwanted descriptions would not be the goal.

08

More context can help while exposing more data

A class discussion compares user models with recommenders and raises concerns about personal descriptions. Yang describes a utility and privacy trade-off.

More context may improve the user model but also exposes more personal information. Yang presents this as a design trade-off, not a recommendation to collect everything for every application.

Another student compares user models with social-media recommendation. Yang agrees that both infer interests from past behavior, while noting that a cross-application assistant could combine more kinds of context than a recommender confined to one service.

A student asks whether improved user models could help create simulated users. Yang says they might support more realistic simulations of workflows, while the earlier question of how much personal information to use remains.

09

Measure timing and content separately

A simulated benchmark tests whether agents offer help at useful times. Yang cautions that improved scores can coexist with high false-alarm rates and uncertain labels.

Timing remains difficult. An assistant that interrupts every few seconds is annoying; one that stays silent all day may be unhelpful. An urgent, high-value message may justify interrupting focused work, while a trivial promotion may not.

Researchers can evaluate a proactive suggestion as a decision with a reward or cost: would the person accept the help or reject it? Because real user data is difficult to collect, some studies build simulated environments and users to generate examples.

In one simulation, a user agent performs everyday tasks while an environment records events. A proactive agent observes them and proposes help. Repeating this process generated about 6,000 training events, and human judgments were used to train a reward model.

Yang shows that fine-tuning improved the displayed F1 score from about 60 to 67 for one model. But the false-alarm figure remained around 50%, so many suggestions were still rejected. A better aggregate score did not make timing a solved problem.

False alarms on a proactive-assistance benchmark
DIAPOSITIVA 5 / 9False alarms on a proactive-assistance benchmarkThe results compare models before and after training; Yang highlights the remaining false-alarm rate.

Timing and content can be evaluated separately: when should the assistant intervene, and what help should it offer? The first can use classification measures; the second asks whether the proposed help matches the person’s intention.

In another displayed evaluation, timing scores were higher than measures of what help to provide; the best shown intention accuracy was about 38%. Yang also questions using the moment a person opens an AI tool as an exact label, since help might have been welcome earlier or later.

Evaluating when and how to help
DIAPOSITIVA 6 / 9Evaluating when and how to helpThe results distinguish timing metrics from the accuracy and similarity of proposed help.
10

A local observer and an on-demand helper

Coco separates an always-on observer from an execution agent. Feedback and workflow signals support personalization in a small user study.

The Coco system combines several ideas. An always-on observer on the local device learns from activity across applications and decides when enough context exists to offer support. A separate execution agent is called on demand and can run elsewhere.

Coco’s observer and execution agents
DIAPOSITIVA 7 / 9Coco’s observer and execution agentsThe architecture places an observer on the device and triggers an execution agent when needed.

The observer can learn from whether a suggestion is accepted, ignored or edited. It can also consider patterns in the workflow, such as whether a person appears focused or stuck, when deciding whether to offer help.

A small study of personalized timing
DIAPOSITIVA 8 / 9A small study of personalized timingA one-week study with 10 participants reports a rise in a proxy F1 timing score.

In a one-week study with 10 people, Yang reports that a proxy F1 score for appropriate timing rose from about 0.2 to 0.5 after personalization. She presents this as a small user study of that particular measure.

11

Protect users and the people around them

Yang discusses contextual information flows, sensitive inferences and bystander data. Possible safeguards include minimal local capture, opt-in controls and confirmation before sharing.

A participant in one study said they would not have installed the system without knowing and trusting the researchers. Yang uses the comment to illustrate the tension: more context can help an assistant know a person, but it also exposes more of their data.

Contextual integrity offers a way to reason about information flows. Some details may be appropriate for one audience or purpose and inappropriate for another. An audit can examine what a system observes, uses and outputs in a particular context.

The data may also belong to people other than the user: contacts in messages, email or meetings have their own interests in consent. Yang raises questions about sensitive inferences involving health or finances, unintended disclosures, incorrect recipients and prompt injection.

Privacy issues and possible mitigations
DIAPOSITIVA 9 / 9Privacy issues and possible mitigationsThe slide maps contextual privacy, bystander data and unwanted disclosure to potential safeguards.

Possible mitigations include limiting capture, processing observations locally, removing third-party information, letting users opt in or out of sensitive inferences, and asking for confirmation before sharing. Yang frames these as choices to evaluate for each risk.

For Coco, Yang describes a locally running observer paired with an execution agent that may use external models or APIs. Local observation is one part of the architecture; it does not mean every subsequent computation must occur locally.

12

Open questions about control and incentives

Timing, affordability, what an agent should remember and whose interests it serves remain design questions. Yang closes by considering bystanders and platform incentives.

The remaining questions include when interruption is worthwhile, what the agent should remember or never use, and how it can act safely. Always-on systems also have costs in computing, memory and energy.

Yang asks whose interests a personal agent serves: a platform may optimize engagement or purchases rather than only the user’s goals. Bystanders appearing in a user’s screen, calendar or conversations also need consideration. She closes the course by leaving those questions for system builders.

Más de este canal

9 diapositivas23:23EN
Stanford Online· 5 dic 2026Predicting Training Loss from Learning Rates and Loss GeometryTatsunori Hashimoto · Stanford UniversityStanford’s Tatsunori Hashimoto explains how schedule changes, weight averaging and curvature shaped the course’s optimization experiments.Fundamentos de MLDeep LearningMathematics+1
34:51EN
Stanford Online· 4 dic 2026Aakanksha Chowdhery: AI Agents Improve Only When Outcomes Are CheckedChristina, Aakanksha Chowdhery · Stanford OnlineThe Stanford instructor explains why verification, research judgment and measurable goals matter more than the choice of an agent framework.Ingeniería de agentesEvaluacionesAI agents+2
6 diapositivas1:22:31EN
Stanford Online· 3 dic 2026John Yang: How coding agents learned to work in a terminalJohn Yang · Stanford UniversityFrom execution tests to SWE-agent’s guarded editor, the Stanford researcher explains how evaluations and interfaces shaped coding agents.Agentes de programaciónSoftware engineeringIngeniería de agentes+2
7 diapositivas1:17:10EN
Stanford Online· 1 dic 2026AI Agent Safety Starts With What the Agent Can Actually DoDiyi Yang · Stanford UniversityDiyi Yang explains how agents fail, how untrusted content redirects them, and why safety controls must be built into the system.AI SafetyPrompt injectionIngeniería de agentes+2
3 diapositivas1:48:06EN
Stanford Online· 1 dic 2026Diffusion Language Models Can Revise Text Instead of Writing Left to RightAfshine Amidi, Shervine Amidi · Stanford UniversityThe Stanford lecture explains masked diffusion, its parallel decoding opportunity and the training and latency tradeoffs.Foundation ModelsModelos y entrenamientoDeep Learning+2
3 diapositivas1:22:20EN
Stanford Online· 30 nov 2026How SWE-bench Turned Real GitHub Issues Into an AI TestJohn Yang, Carlos Jimenez, Alexander Wettig · Stanford UniversityIts creators explain why the benchmark was easy to conceive, hard to run, and dependent on human judgment to keep scores meaningful.Agentes de programaciónEvaluacionesBenchmarks+2