TL;DR
Current AI agents excel as generalists but often fall short of the precise, tacit standards required by human professionals. This paper introduces TAHI (Test-Time Adaptation through Human-Agent Interaction), a framework that personalizes LLM agents within just a few dozen tasks by continuously learning from multi-session interaction data. By adapting both agent contexts and model weights alongside an evolving rubric module, TAHI bridges the gap between generic capabilities and individual expertise.
What Problem Does This Paper Address?
While large language models (LLMs) possess broad capabilities, their outputs often suffer from homogeneity or drift away from a professional's specific nuances. In realistic, open-ended tasks—such as technical writing or data visualization—success criteria are highly individualized, poorly documented, and impossible to fully specify upfront.
Instead, true expertise surfaces iteratively as a user corrects and refines an agent's work. Current systems treat these human corrections as one-off fixes, discarding a rich multi-session learning signal. The authors address this missed opportunity by asking: How can we efficiently adapt an AI agent on the fly to align with an individual expert's implicit preferences across multiple tasks?
Methods
The authors propose the TAHI framework, which processes human interaction signals in a streaming manner to update the agent after every completed task session.
TAHI employs a dual-adaptation strategy:
- Context-Based Adaptation: An LLM dynamically distills human interaction history into two text-based files: a memory library for declarative/preferential knowledge (e.g., "prefers simple wording") and a skill library for procedural workflows.
- Weight-Based Adaptation: To prevent context bloat and capture persistent behavioral changes, TAHI uses Direct Preference Optimization (DPO) on LoRA adapters. It pairs the agent's initial, unassisted attempt (rejected trajectory) with the final, human-edited solution (chosen trajectory). Crucially, intermediate human steps are compiled out so the agent learns to generate the high-quality end product in a single, one-shot pass.
Additionally, TAHI introduces an Evolving Verifier Module. Instead of relying on static rubrics, an LLM crystallizes human edits and text feedback into concrete, gradable evaluation criteria that update and expand after every iteration.
Datasets
The framework was evaluated across two open-ended, high-utility domains:
- Paper Abstract Writing: Generating a concise abstract given a paper's title and introduction.
- Data Visualization: Creating complex HTML/visual figures based on data and styling instructions.
The authors manually curated 20 core tasks per domain from top-tier 2025 computer science conferences (NeurIPS, ICML, ICLR, ACL, CHI). They recruited 30 human experts (including CS PhD students and professional data analysts), collecting a total of 600 interactive task sessions. To test cross-task generalization, they also established a held-out test bed of 30 unseen tasks per domain using papers from 2023 and 2024.
Key Insights and Ideas
- Actions Speak Louder Than Words: Restricting agent adaptation to text feedback alone severely limits performance. Incorporating non-textual actions—such as direct file edits, plan adjustments, and rubric modifications—yielded an additional 3.0% to 7.6% gain in task success.
- Weights are More Efficient Than Context: While both context and weight adaptation significantly improve performance, weight-adaptive agents are vastly more inference-efficient. At test time, weight adaptation required up to 88.3% fewer input tokens and produced up to 9.1% fewer output tokens, avoiding the verbosity trap common to context-conditioned models.
- Static Rubrics Miss the Mark: Standard LLM-generated rubrics suffer from self-bias and over-estimate agent success (saturating near 98%). TAHI’s evolving rubrics successfully uncover hidden user requirements, exposing critical failures that both standalone LLMs and unmotivated human annotators miss.
- Expertise is a Hybrid: Analysis revealed that an individual's expertise is composed of roughly 70% shared community guidelines and 30% personalized preferences. TAHI successfully improves agent performance across both categories.
Key Results
Evaluating the agent's solo performance (its first attempt on a new task before receiving any human feedback) demonstrated rapid learning:
- Solo Success Rate: Within just 20 tasks, context-adaptive agents improved success rates by 4.5%–12.9%, while weight-adaptive agents improved by 4.5%–20.9%.
- Generalization: On completely unseen, held-out tasks, the adapted agents maintained a 2.4%–6.6% performance boost over the unadapted baseline.
- Failure Capture: The evolving rubric module caught 16.0%–22.3% more failures in imperfect agent solutions compared to rubrics produced by LLMs or humans alone.
Limitations and Future Work
- The Consolidation Challenge: The authors explored merging multiple individualized agents into a single "community expert" agent (via context merging or LoRA weight averaging). While this improved performance in data visualization, it actually degraded performance in abstract writing, highlighting the difficulty of resolving conflicting expert preferences.
- Hard-to-Learn Tacit Knowledge: Certain highly situational judgments—such as deciding exactly what to highlight in a visual chart—showed a persistent gap between the adapted agent and the human oracle, indicating that some implicit expertise requires more sophisticated training signals to capture.
Summary updated