<br />
<b>Deprecated</b>:  The each() function is deprecated. This message will be suppressed on further calls in <b>/home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php</b> on line <b>456</b><br />
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://oshaikh.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://oshaikh.com/" rel="alternate" type="text/html" /><updated>2026-04-08T18:53:37+00:00</updated><id>https://oshaikh.com/feed.xml</id><title type="html">Omar Shaikh</title><author><name>Omar Shaikh</name><email>oshaikh@stanford.edu</email></author><entry><title type="html">Speculative Prefilling</title><link href="https://oshaikh.com/blog/speculative-prefilling" rel="alternate" type="text/html" title="Speculative Prefilling" /><published>2026-03-19T00:00:00+00:00</published><updated>2026-03-19T00:00:00+00:00</updated><id>https://oshaikh.com/blog/speculative-prefilling</id><content type="html" xml:base="https://oshaikh.com/blog/speculative-prefilling"><![CDATA[<p>If you know what a user is gonna do next, you can prefill your KV cache with candidate contexts and significantly improve your time-to-first-token.</p>

<!--more-->

<hr />

<h3 id="the-interaction">The Interaction</h3>

<p>I was revisiting an <a href="https://x.com/oshaikh13/status/1967626897837494479">interaction idea</a> I had a bit ago- if we have a great model of user context, then we can effectively build an “everywhere” tab to autocomplete. I called this system Tabracadabra 🎉. Here’s the <em>original</em> demo video:</p>

<video autoplay="" muted="" loop="" playsinline="" controls="" style="width: 100%; max-width: 720px;">
  <source src="/images/demo_video.mp4" type="video/mp4" />
</video>

<p>Pretty cool, huh? You can download and try it <a href="https://generalusermodels.github.io/tada/">here</a>.</p>

<h3 id="the-problem">The Problem</h3>

<p>Now what I kinda hid from you here is that this ORIGINAL clip is sped up quite a bit. That spinner spins for quite some time before you see anything. This time where that spinner is going off is known as the <strong>time to first token</strong> (or TTFT) for short. You might also notice that once the first token appears, the actual <em>decoding</em> speed is not so bad!</p>

<p>What exactly is going on when the spinner is running? This phase is known as the prefill phase. Here, the model processes all input tokens in parallel, computing the KV. Unlike the decode step, we have all the inputs at the very start, so we compute the full attention matrix at the start! Awesome!</p>

<p>In theory, this should be a <em>LOT</em> faster than decoding, right? We can parallelize the prefill phase, but not the decode phase! So what’s going on?</p>

<p><strong>This is because, in the Tabracadabra setting, the context is an order of magnitude larger than what’s generated.</strong> For that demo example, I’m retrieving all of my past emails, screenshots of me in similar settings, etc. etc. We end up in a setting where the context can be 20x-30x larger than the text that’s actually generated.</p>

<p>On top of that, the actual <em>decode</em> speed isn’t really a big interaction bottleneck. Users can early-interrupt decoding and work from a partial autocomplete; but we can’t partially remove parts of the context. And the completion animation looks cool!</p>

<h3 id="speculative-prefilling">Speculative Prefilling</h3>

<p>Here’s the idea: <strong>if we have a user model that can predict what a user will do next, we can use those predictions to <em>retrieve</em> relevant context ahead of time—and prefill the KV cache before the user ever triggers autocomplete.</strong> This is the same intuition behind <a href="https://arxiv.org/abs/2211.17192">speculative decoding</a> (pre-generate tokens that might get used, and accept or reject them later) except here we’re speculating over the <em>prefill</em> rather than the decode. That’s it! Here’s a comparison video:</p>

<p>The time to first token here is effectively nothing. To get here, we need an aside on user models:</p>

<h3 id="user-models">User Models</h3>

<p>We define user models as models that are predictive: they tell us what a user will do next. How do we get a good user model? Under the hood, we use ideas from two of my papers (access to a user model, see <a href="/papers/gums">GUM</a> and <a href="/papers/longnap">NAP</a>). In NAP specifically, we introduce LongNAP, a user model that predicts what a user will do next given their full multimodal interaction history (screenshots, keystrokes, clicks). LongNAP operates in two phases:</p>

<figure>
  <img src="/images/longnap-pipeline.png" alt="LongNAP's two-phase pipeline: reasoning to retrieve, then reasoning to predict." />
  <figcaption>LongNAP first reasons about the user's current context to retrieve relevant memories, then uses those memories to predict concrete next actions.</figcaption>
</figure>

<p><strong>Phase 1: Reasoning to Retrieve.</strong> Given the user’s recent context—say, they just opened a set of paper reviews—LongNAP first generates a reasoning trace about what might come next (e.g., <em>“Received reviews on paper with collaborators… user may revise paper after viewing feedback”</em>). This trace then serves as a query to retrieve relevant entries from a memory of the user’s past observations and reasoning. In our example, the retriever might surface past traces like <em>“Procrastinates heavily on paper writing”</em> and <em>“Prefers using Slack to collaborate.”</em></p>

<p><strong>Phase 2: Reasoning to Predict.</strong> With retrieved context in hand, LongNAP revises its initial reasoning and makes a concrete prediction. The retrieved traces about this user’s tendency to delegate allow the model to go from <em>“user may revise paper”</em> to <em>“user will message coauthors to divide tasks, check which experiments have been run”</em>—and predict concrete next actions like opening Slack and scrolling through Weights &amp; Biases.</p>

<p>You can use a prompted scaffold to implement this. In <a href="/papers/longnap">our paper</a> though, the whole pipeline is trained end-to-end via reinforcement learning (GRPO). Since we’re predicting what a user <em>will</em> do, we can just wait and see if they actually do it, scoring predictions against ground truth as a reward (again, more details in the <a href="/papers/longnap">paper</a>).</p>

<h3 id="the-algorithm">The Algorithm</h3>

<p>With our LongNAP in hand, the actual algorithm here is pretty simple. This “reasoning to retrieve” mechanism is exactly what we need for speculative prefilling. We just run Phase 1 whenever a user’s context switches.</p>

<div class="algo-box">
  <div class="algo-title">Algorithm: Speculative Prefilling</div>
  <div class="algo-body">
    <ol>
      <li>On context change (e.g. you open an app, switch a tab), run the <em>reasoning to retrieve</em> phase of p<sub>θ</sub>: generate a reasoning trace about what the user will do next, and use it to retrieve relevant context from the user's history.</li>
      <li>Prefill the KV cache with the retrieved context.</li>
      <li>On autocomplete trigger, decode immediately (TTFT ≈ 0) or add a tiny bit more context.</li>
    </ol>
  </div>
</div>

<p>That’s it. The user model tells us <em>what context to fetch</em>; we just need to fetch it before the user asks. As the user’s context shifts, we re-run Phase 1, keeping the prefilled context relevant.</p>

<h3 id="systems-and-user-models">Systems and User Models</h3>

<p>A small aside—I think we can view some of these user models as general purpose <em>human branch predictors</em>. I’ve applied this idea here to LLMs, but you could speculate on any kind of application that might benefit from speculative execution with a user model!</p>

<p>Anyway, if you found this interesting, please consider citing:</p>

<p><strong>NAP (Next Action Prediction):</strong></p>
<div class="highlighter-rouge bibtex bibtex-wrapper"><div class="highlight"><pre>@misc{shaikh2026learningactionpredictorshumancomputer,
  title={Learning Next Action Predictors from Human-Computer Interaction},
  author={Omar Shaikh and Valentin Teutschbein and Kanishk Gandhi and Yikun Chi and Nick Haber and Thomas Robinson and Nilam Ram and Byron Reeves and Sherry Yang and Michael S. Bernstein and Diyi Yang},
  year={2026},
  eprint={2603.05923},
  archivePrefix={arXiv},
  primaryClass={cs.CL},
  url={https://arxiv.org/abs/2603.05923},
}</pre></div></div>

<p><strong>GUM (General User Models):</strong></p>
<div class="highlighter-rouge bibtex bibtex-wrapper"><div class="highlight"><pre>@misc{shaikh2025creatinggeneralusermodels,
  title={Creating General User Models from Computer Use},
  author={Omar Shaikh and Shardul Sapkota and Shan Rizvi and Eric Horvitz and Joon Sung Park and Diyi Yang and Michael S. Bernstein},
  year={2025},
  eprint={2505.10831},
  archivePrefix={arXiv},
  primaryClass={cs.HC},
  url={https://arxiv.org/abs/2505.10831},
}</pre></div></div>]]></content><author><name>Omar Shaikh</name><email>oshaikh@stanford.edu</email></author><category term="blog" /><summary type="html"><![CDATA[If you know what a user is gonna do next, you can prefill your KV cache with candidate contexts and significantly improve your time-to-first-token.]]></summary></entry><entry><title type="html">Learning Next Action Predictors from Human-Computer Interaction</title><link href="https://oshaikh.com/papers/longnap" rel="alternate" type="text/html" title="Learning Next Action Predictors from Human-Computer Interaction" /><published>2026-03-06T00:00:00+00:00</published><updated>2026-03-06T00:00:00+00:00</updated><id>https://oshaikh.com/papers/longnap</id><content type="html" xml:base="https://oshaikh.com/papers/longnap"><![CDATA[<p>Truly proactive AI systems must anticipate what we will do next. This foresight demands far richer information than the sparse signals we type into our prompts – it demands reasoning over the entire context of what we see and do. We formalize this as next action prediction (NAP): given a sequence of a user’s multimodal interactions with a computer (screenshots, clicks, sensor data), predict that user’s next action. Progress on this task requires both new data and modeling approaches. To scale data, we annotate longitudinal, naturalistic computer use with vision-language models. We release an open-source pipeline for performing this labeling on private infrastructure, and label over 360K actions across one month of continuous phone usage from 20 users, amounting to 1,800 hours of screen time. We then introduce LongNAP, a user model that combines parametric and in-context learning to reason over long interaction histories. LongNAP is trained via policy gradient methods to generate user-specific reasoning traces given some context; retrieve relevant traces from a library of past traces; and then apply retrieved traces in-context to predict future actions. Using an LLM-as-judge evaluation metric (0-1 similarity to ground truth), LongNAP significantly outperforms supervised finetuning and prompted baselines on held-out data (by 79% and 39% respectively). Additionally, LongNAP generalizes to held out users when trained across individuals. The space of next actions a user might take at any moment is unbounded, spanning thousands of possible outcomes. Despite this, 17.1% of LongNAP’s predicted trajectories are well-aligned with what a user does next (LLM-judge score ≥ 0.5). This rises to 26% when we filter to highly confident predictions. In sum, we argue that learning from the full context of user behavior to anticipate user needs is now a viable task with substantial opportunity.</p>]]></content><author><name>Omar Shaikh</name></author><category term="papers" /><summary type="html"><![CDATA[Truly proactive AI systems must anticipate what we will do next. This foresight demands far richer information than the sparse signals we type into our prompts – it demands reasoning over the entire context of what we see and do. We formalize this as next action prediction (NAP): given a sequence of a user’s multimodal interactions with a computer (screenshots, clicks, sensor data), predict that user’s next action. Progress on this task requires both new data and modeling approaches. To scale data, we annotate longitudinal, naturalistic computer use with vision-language models. We release an open-source pipeline for performing this labeling on private infrastructure, and label over 360K actions across one month of continuous phone usage from 20 users, amounting to 1,800 hours of screen time. We then introduce LongNAP, a user model that combines parametric and in-context learning to reason over long interaction histories. LongNAP is trained via policy gradient methods to generate user-specific reasoning traces given some context; retrieve relevant traces from a library of past traces; and then apply retrieved traces in-context to predict future actions. Using an LLM-as-judge evaluation metric (0-1 similarity to ground truth), LongNAP significantly outperforms supervised finetuning and prompted baselines on held-out data (by 79% and 39% respectively). Additionally, LongNAP generalizes to held out users when trained across individuals. The space of next actions a user might take at any moment is unbounded, spanning thousands of possible outcomes. Despite this, 17.1% of LongNAP’s predicted trajectories are well-aligned with what a user does next (LLM-judge score ≥ 0.5). This rises to 26% when we filter to highly confident predictions. In sum, we argue that learning from the full context of user behavior to anticipate user needs is now a viable task with substantial opportunity.]]></summary></entry><entry><title type="html">How Do AI Agents Do Human Work? Comparing AI and Human Workflows Across Diverse Occupations</title><link href="https://oshaikh.com/papers/ai-agents-human-work" rel="alternate" type="text/html" title="How Do AI Agents Do Human Work? Comparing AI and Human Workflows Across Diverse Occupations" /><published>2025-10-26T00:00:00+00:00</published><updated>2025-10-26T00:00:00+00:00</updated><id>https://oshaikh.com/papers/ai-agents-human-work</id><content type="html" xml:base="https://oshaikh.com/papers/ai-agents-human-work"><![CDATA[<p>AI agents are continually optimized for tasks related to human work, such as software engineering and professional writing, signaling a pressing trend with significant impacts on the human workforce. However, these agent developments have often not been grounded in a clear understanding of how humans execute work, to reveal what expertise agents possess and the roles they can play in diverse workflows. In this work, we study how agents do human work by presenting the first direct comparison of human and agent workers across multiple essential work-related skills: data analysis, engineering, computation, writing, and design. To better understand and compare heterogeneous computer-use activities of workers, we introduce a scalable toolkit to induce interpretable, structured workflows from either human or agent computer-use activities. Using such induced workflows, we compare how humans and agents perform the same tasks and find that: (1) While agents exhibit promise in their alignment to human workflows, they take an overwhelmingly programmatic approach across all work domains, even for open-ended, visually dependent tasks like design, creating a contrast with the UI-centric methods typically used by humans. (2) Agents produce work of inferior quality, yet often mask their deficiencies via data fabrication and misuse of advanced tools. (3) Nonetheless, agents deliver results 88.3% faster and cost 90.4-96.2% less than humans, highlighting the potential for enabling efficient collaboration by delegating easily programmable tasks to agents.</p>]]></content><author><name>Zora Zhiruo Wang</name></author><category term="papers" /><summary type="html"><![CDATA[AI agents are continually optimized for tasks related to human work, such as software engineering and professional writing, signaling a pressing trend with significant impacts on the human workforce. However, these agent developments have often not been grounded in a clear understanding of how humans execute work, to reveal what expertise agents possess and the roles they can play in diverse workflows. In this work, we study how agents do human work by presenting the first direct comparison of human and agent workers across multiple essential work-related skills: data analysis, engineering, computation, writing, and design. To better understand and compare heterogeneous computer-use activities of workers, we introduce a scalable toolkit to induce interpretable, structured workflows from either human or agent computer-use activities. Using such induced workflows, we compare how humans and agents perform the same tasks and find that: (1) While agents exhibit promise in their alignment to human workflows, they take an overwhelmingly programmatic approach across all work domains, even for open-ended, visually dependent tasks like design, creating a contrast with the UI-centric methods typically used by humans. (2) Agents produce work of inferior quality, yet often mask their deficiencies via data fabrication and misuse of advanced tools. (3) Nonetheless, agents deliver results 88.3% faster and cost 90.4-96.2% less than humans, highlighting the potential for enabling efficient collaboration by delegating easily programmable tasks to agents.]]></summary></entry><entry><title type="html">Comparing Text-Only and Virtual Reality-Embodied Conversational AI Agents for Interpersonal Skills Training</title><link href="https://oshaikh.com/papers/vr-conversational-ai" rel="alternate" type="text/html" title="Comparing Text-Only and Virtual Reality-Embodied Conversational AI Agents for Interpersonal Skills Training" /><published>2025-10-18T00:00:00+00:00</published><updated>2025-10-18T00:00:00+00:00</updated><id>https://oshaikh.com/papers/vr-conversational-ai</id><content type="html" xml:base="https://oshaikh.com/papers/vr-conversational-ai"><![CDATA[<p>Conversational AI agents powered by large language models (LLMs) have the potential to support the development of interpersonal skills, which are essential for navigating diverse situations and engaging effectively with a variety of people. However, text-based AI agents often lack crucial nonverbal cues such as facial expressions, body gestures, and tone of voice. In this study, we present a VR simulation featuring an embodied AI agent that leverages nonverbal cues to train interpersonal skills across various scenarios. We compare its efficacy to a Text-Only AI agent in a between-subjects study with twenty-four participants. We find that participants preferred the embodied agent condition, and their initial scores were significantly higher than those of participants in the text condition. However, the difference between the initial and final scores was not statistically significant.</p>]]></content><author><name>Yejoon Yoo</name></author><category term="papers" /><summary type="html"><![CDATA[Conversational AI agents powered by large language models (LLMs) have the potential to support the development of interpersonal skills, which are essential for navigating diverse situations and engaging effectively with a variety of people. However, text-based AI agents often lack crucial nonverbal cues such as facial expressions, body gestures, and tone of voice. In this study, we present a VR simulation featuring an embodied AI agent that leverages nonverbal cues to train interpersonal skills across various scenarios. We compare its efficacy to a Text-Only AI agent in a between-subjects study with twenty-four participants. We find that participants preferred the embodied agent condition, and their initial scores were significantly higher than those of participants in the text condition. However, the difference between the initial and final scores was not statistically significant.]]></summary></entry><entry><title type="html">Just-In-Time Objectives: A General Approach for Specialized AI Interactions</title><link href="https://oshaikh.com/papers/just-in-time-objectives" rel="alternate" type="text/html" title="Just-In-Time Objectives: A General Approach for Specialized AI Interactions" /><published>2025-10-16T00:00:00+00:00</published><updated>2025-10-16T00:00:00+00:00</updated><id>https://oshaikh.com/papers/just-in-time-objectives</id><content type="html" xml:base="https://oshaikh.com/papers/just-in-time-objectives"><![CDATA[<p>Large language models promise a broad set of functions, but when not given a specific objective, they default to milquetoast results such as drafting emails littered with cliches. We demonstrate that inferring the user’s in-the-moment objective, then rapidly optimizing for that singular objective, enables LLMs to produce tools, interfaces, and responses that are more responsive and desired. We contribute an architecture for automatically inducing just-in-time objectives by passively observing user behavior, then steering downstream AI systems through generation and evaluation against this objective. Inducing just-in-time objectives (e.g., “Clarify the abstract’s research contribution”) enables automatic generation of tools, e.g., those that critique a draft based on relevant HCI methodologies, anticipate related researchers’ reactions, or surface ambiguous terminology. In a series of experiments (N=14, N=205) on participants’ own tasks, JIT objectives enable LLM outputs that achieve 66-86% win rates over typical LLMs, and in-person use sessions (N=17) confirm that JIT objectives produce specialized tools unique to each participant.</p>]]></content><author><name>Michelle S. Lam</name></author><category term="papers" /><summary type="html"><![CDATA[Large language models promise a broad set of functions, but when not given a specific objective, they default to milquetoast results such as drafting emails littered with cliches. We demonstrate that inferring the user’s in-the-moment objective, then rapidly optimizing for that singular objective, enables LLMs to produce tools, interfaces, and responses that are more responsive and desired. We contribute an architecture for automatically inducing just-in-time objectives by passively observing user behavior, then steering downstream AI systems through generation and evaluation against this objective. Inducing just-in-time objectives (e.g., “Clarify the abstract’s research contribution”) enables automatic generation of tools, e.g., those that critique a draft based on relevant HCI methodologies, anticipate related researchers’ reactions, or surface ambiguous terminology. In a series of experiments (N=14, N=205) on participants’ own tasks, JIT objectives enable LLM outputs that achieve 66-86% win rates over typical LLMs, and in-person use sessions (N=17) confirm that JIT objectives produce specialized tools unique to each participant.]]></summary></entry><entry><title type="html">Navigating Rifts in Human-LLM Grounding: Study and Benchmark</title><link href="https://oshaikh.com/papers/rifts" rel="alternate" type="text/html" title="Navigating Rifts in Human-LLM Grounding: Study and Benchmark" /><published>2025-07-28T00:00:00+00:00</published><updated>2025-07-28T00:00:00+00:00</updated><id>https://oshaikh.com/papers/rifts</id><content type="html" xml:base="https://oshaikh.com/papers/rifts"><![CDATA[<p>Language models excel at following instructions but often struggle with the collaborative aspects of conversation that humans naturally employ. This limitation in grounding—the process by which conversation participants establish mutual understanding—can lead to outcomes ranging from frustrated users to serious consequences in high-stakes scenarios. To systematically study grounding challenges in human-LLM interactions, we analyze logs from three human-assistant datasets: WildChat, MultiWOZ, and Bing Chat. We develop a taxonomy of grounding acts and build models to annotate and forecast grounding behavior. Our findings reveal significant differences in human-human and human-LLM grounding: LLMs were three times less likely to initiate clarification and sixteen times less likely to provide follow-up requests than humans. Additionally, we find that early grounding failures predict later interaction breakdowns. Building on these insights, we introduce Rifts, a benchmark derived from publicly available LLM interaction data containing situations where LLMs fail to initiate grounding. We note that current frontier models perform poorly on Rifts, highlighting the need to reconsider how we train and prompt LLMs for human interaction. To this end, we develop a preliminary intervention aimed at mitigating grounding failures.</p>]]></content><author><name>Omar Shaikh</name></author><category term="papers" /><summary type="html"><![CDATA[Language models excel at following instructions but often struggle with the collaborative aspects of conversation that humans naturally employ. This limitation in grounding—the process by which conversation participants establish mutual understanding—can lead to outcomes ranging from frustrated users to serious consequences in high-stakes scenarios. To systematically study grounding challenges in human-LLM interactions, we analyze logs from three human-assistant datasets: WildChat, MultiWOZ, and Bing Chat. We develop a taxonomy of grounding acts and build models to annotate and forecast grounding behavior. Our findings reveal significant differences in human-human and human-LLM grounding: LLMs were three times less likely to initiate clarification and sixteen times less likely to provide follow-up requests than humans. Additionally, we find that early grounding failures predict later interaction breakdowns. Building on these insights, we introduce Rifts, a benchmark derived from publicly available LLM interaction data containing situations where LLMs fail to initiate grounding. We note that current frontier models perform poorly on Rifts, highlighting the need to reconsider how we train and prompt LLMs for human interaction. To this end, we develop a preliminary intervention aimed at mitigating grounding failures.]]></summary></entry><entry><title type="html">SynthesizeMe! Inducing Persona-Guided Prompts for Personalized Reward Models in LLMs</title><link href="https://oshaikh.com/papers/synthesize-me" rel="alternate" type="text/html" title="SynthesizeMe! Inducing Persona-Guided Prompts for Personalized Reward Models in LLMs" /><published>2025-07-28T00:00:00+00:00</published><updated>2025-07-28T00:00:00+00:00</updated><id>https://oshaikh.com/papers/synthesize-me</id><content type="html" xml:base="https://oshaikh.com/papers/synthesize-me"><![CDATA[<p>Recent calls for pluralistic alignment of Large Language Models (LLMs) encourage adapting models to diverse user preferences. However, most prior work on personalized reward models heavily rely on additional identity information, such as demographic details or a predefined set of preference categories. To this end, we introduce SynthesizeMe, an approach to inducing synthetic user personas from user interactions for personalized reward modeling. SynthesizeMe first generates and verifies reasoning to explain user preferences, then induces synthetic user personas from that reasoning, and finally filters to informative prior user interactions in order to build personalized prompts for a particular user. We show that using SynthesizeMe induced prompts improves personalized LLM-as-a-judge accuracy by 4.4% on Chatbot Arena. Combining SynthesizeMe derived prompts with a reward model achieves top performance on PersonalRewardBench a new curation of user-stratified interactions with chatbots collected from 854 users of Chatbot Arena and PRISM.</p>]]></content><author><name>Michael J. Ryan</name></author><category term="papers" /><summary type="html"><![CDATA[Recent calls for pluralistic alignment of Large Language Models (LLMs) encourage adapting models to diverse user preferences. However, most prior work on personalized reward models heavily rely on additional identity information, such as demographic details or a predefined set of preference categories. To this end, we introduce SynthesizeMe, an approach to inducing synthetic user personas from user interactions for personalized reward modeling. SynthesizeMe first generates and verifies reasoning to explain user preferences, then induces synthetic user personas from that reasoning, and finally filters to informative prior user interactions in order to build personalized prompts for a particular user. We show that using SynthesizeMe induced prompts improves personalized LLM-as-a-judge accuracy by 4.4% on Chatbot Arena. Combining SynthesizeMe derived prompts with a reward model achieves top performance on PersonalRewardBench a new curation of user-stratified interactions with chatbots collected from 854 users of Chatbot Arena and PRISM.]]></summary></entry><entry><title type="html">Creating General User Models from Computer Use</title><link href="https://oshaikh.com/papers/gums" rel="alternate" type="text/html" title="Creating General User Models from Computer Use" /><published>2025-05-20T00:00:00+00:00</published><updated>2025-05-20T00:00:00+00:00</updated><id>https://oshaikh.com/papers/gum</id><content type="html" xml:base="https://oshaikh.com/papers/gums"><![CDATA[<p>Human-computer interaction has long imagined technology that understands us-from our preferences and habits, to the timing and purpose of our everyday actions. Yet current user models remain fragmented, narrowly tailored to specific apps, and incapable of the flexible reasoning required to fulfill these visions. This paper presents an architecture for a general user model (GUM) that learns about you by observing any interaction you have with your computer. The GUM takes as input any unstructured observation of a user (e.g., device screenshots) and constructs confidence-weighted propositions that capture user knowledge and preferences. GUMs can infer that a user is preparing for a wedding they’re attending from messages with a friend. Or recognize that a user is struggling with a collaborator’s feedback on a draft by observing multiple stalled edits and a switch to reading related work. GUMs introduce an architecture that infers new propositions about a user from multimodal observations, retrieves related propositions for context, and continuously revises existing propositions. To illustrate the breadth of applications that GUMs enable, we demonstrate how they augment chat-based assistants with context, manage OS notifications to selectively surface important information, and enable interactive agents that adapt to preferences across apps. We also instantiate proactive assistants (GUMBOs) that discover and execute useful suggestions on a user’s behalf using their GUM. In our evaluations, we find that GUMs make calibrated and accurate inferences about users, and that assistants built on GUMs proactively identify and perform actions that users wouldn’t think to request explicitly. Altogether, GUMs introduce methods that leverage multimodal models to understand unstructured context, enabling long-standing visions of HCI and entirely new interactive systems that anticipate user needs.</p>]]></content><author><name>Omar Shaikh</name></author><category term="papers" /><summary type="html"><![CDATA[Human-computer interaction has long imagined technology that understands us-from our preferences and habits, to the timing and purpose of our everyday actions. Yet current user models remain fragmented, narrowly tailored to specific apps, and incapable of the flexible reasoning required to fulfill these visions. This paper presents an architecture for a general user model (GUM) that learns about you by observing any interaction you have with your computer. The GUM takes as input any unstructured observation of a user (e.g., device screenshots) and constructs confidence-weighted propositions that capture user knowledge and preferences. GUMs can infer that a user is preparing for a wedding they’re attending from messages with a friend. Or recognize that a user is struggling with a collaborator’s feedback on a draft by observing multiple stalled edits and a switch to reading related work. GUMs introduce an architecture that infers new propositions about a user from multimodal observations, retrieves related propositions for context, and continuously revises existing propositions. To illustrate the breadth of applications that GUMs enable, we demonstrate how they augment chat-based assistants with context, manage OS notifications to selectively surface important information, and enable interactive agents that adapt to preferences across apps. We also instantiate proactive assistants (GUMBOs) that discover and execute useful suggestions on a user’s behalf using their GUM. In our evaluations, we find that GUMs make calibrated and accurate inferences about users, and that assistants built on GUMs proactively identify and perform actions that users wouldn’t think to request explicitly. Altogether, GUMs introduce methods that leverage multimodal models to understand unstructured context, enabling long-standing visions of HCI and entirely new interactive systems that anticipate user needs.]]></summary></entry><entry><title type="html">Aligning Language Models with Demonstrated Feedback</title><link href="https://oshaikh.com/papers/ditto" rel="alternate" type="text/html" title="Aligning Language Models with Demonstrated Feedback" /><published>2024-06-24T00:00:00+00:00</published><updated>2024-06-24T00:00:00+00:00</updated><id>https://oshaikh.com/papers/show-dont-tell</id><content type="html" xml:base="https://oshaikh.com/papers/ditto"><![CDATA[<p>Language models are aligned to emulate the collective voice of many, resulting in outputs that align with no one in particular. Steering LLMs away from generic output is possible through supervised finetuning or RLHF, but requires prohibitively large datasets for new ad-hoc tasks. We argue that it is instead possible to align an LLM to a specific setting by leveraging a very small number (&lt;10) of demonstrations as feedback. Our method, Demonstration ITerated Task Optimization (DITTO), directly aligns language model outputs to a user’s demonstrated behaviors. Derived using ideas from online imitation learning, DITTO cheaply generates online comparison data by treating users’ demonstrations as preferred over output from the LLM and its intermediate checkpoints. We evaluate DITTO’s ability to learn fine-grained style and task alignment across domains such as news articles, emails, and blog posts. Additionally, we conduct a user study soliciting a range of demonstrations from participants (N=16). Across our benchmarks and user study, we find that win-rates for DITTO outperform few-shot prompting, supervised fine-tuning, and other self-play methods by an average of 19% points. By using demonstrations as feedback directly, DITTO offers a novel method for effective customization of LLMs.</p>]]></content><author><name>Omar Shaikh</name></author><category term="papers" /><summary type="html"><![CDATA[Language models are aligned to emulate the collective voice of many, resulting in outputs that align with no one in particular. Steering LLMs away from generic output is possible through supervised finetuning or RLHF, but requires prohibitively large datasets for new ad-hoc tasks. We argue that it is instead possible to align an LLM to a specific setting by leveraging a very small number (&lt;10) of demonstrations as feedback. Our method, Demonstration ITerated Task Optimization (DITTO), directly aligns language model outputs to a user’s demonstrated behaviors. Derived using ideas from online imitation learning, DITTO cheaply generates online comparison data by treating users’ demonstrations as preferred over output from the LLM and its intermediate checkpoints. We evaluate DITTO’s ability to learn fine-grained style and task alignment across domains such as news articles, emails, and blog posts. Additionally, we conduct a user study soliciting a range of demonstrations from participants (N=16). Across our benchmarks and user study, we find that win-rates for DITTO outperform few-shot prompting, supervised fine-tuning, and other self-play methods by an average of 19% points. By using demonstrations as feedback directly, DITTO offers a novel method for effective customization of LLMs.]]></summary></entry><entry><title type="html">Social Skill Training with Large Language Models</title><link href="https://oshaikh.com/papers/social-skill" rel="alternate" type="text/html" title="Social Skill Training with Large Language Models" /><published>2024-04-05T00:00:00+00:00</published><updated>2024-04-05T00:00:00+00:00</updated><id>https://oshaikh.com/papers/social-skill-training</id><content type="html" xml:base="https://oshaikh.com/papers/social-skill"><![CDATA[<p>People rely on social skills like conflict resolution to communicate effectively and to thrive in both work and personal life. However, practice environments for social skills are typically out of reach for most people. How can we make social skill training more available, accessible, and inviting? Drawing upon interdisciplinary research from communication and psychology, this perspective paper identifies social skill barriers to enter specialized fields. Then we present a solution that leverages large language models for social skill training via a generic framework. Our AI Partner, AI Mentor framework merges experiential learning with realistic practice and tailored feedback. This work ultimately calls for cross-disciplinary innovation to address the broader implications for workforce development and social equality.</p>]]></content><author><name>Diyi Yang</name></author><category term="papers" /><summary type="html"><![CDATA[People rely on social skills like conflict resolution to communicate effectively and to thrive in both work and personal life. However, practice environments for social skills are typically out of reach for most people. How can we make social skill training more available, accessible, and inviting? Drawing upon interdisciplinary research from communication and psychology, this perspective paper identifies social skill barriers to enter specialized fields. Then we present a solution that leverages large language models for social skill training via a generic framework. Our AI Partner, AI Mentor framework merges experiential learning with realistic practice and tailored feedback. This work ultimately calls for cross-disciplinary innovation to address the broader implications for workforce development and social equality.]]></summary></entry></feed>