Skip to content
Open access

In-Context Teacher–Student Guidance for Open-Weight Browser Agents

Oct 2026 · Anais do XIV Symposium on Knowledge Discovery, Mining and Learning (KDMiLe 2026) · 0 citations · 33 references

Abstract

Browser agents based on large language models can automate web tasks, but deployment remains constrained by repeated model calls, monetary cost, and privacy risks. In practical settings, agents often process page states that may expose credentials, personal data, internal records, business documents, or authenticated session information. Sending these states and interaction histories to external model APIs can increase the risk of data leakage, unauthorized retention, or unintended disclosure. This paper investigates whether reasoning traces from a stronger teacher model can improve open-weight browser agents without fine-tuning. We propose In-Context Learning Guidance (ICLG), a training-free teacher–student protocol in which the teacher solves representative browser tasks offline and its reasoning traces are converted into reusable prompt-level guidance for similar tasks. The student then uses this guidance during execution while reading the concrete target values from the current browser instance. We evaluate ICLG on MiniWoB++, using GPT-5.1 as the teacher and ten open-weight student variants. ICLG increases solved student-task pairs from 208 to 271 and improves 7 out of 10 students. Ablation results suggest that these gains are not due only to retrying or generic prompt refinement. Overall, the results show that reusable teacher guidance can improve lower-cost browser agents and reduce dependence on proprietary teacher APIs during deployment.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.