Test-Time Adaptation for LLM Agents via Environment Interaction

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Arthur, Liu, Zuxin, Zhang, Jianguo, Prabhakar, Akshara, Liu, Zhiwei, Heinecke, Shelby, Savarese, Silvio, Zhong, Victor, Xiong, Caiming
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911460735582208
author Chen, Arthur
Liu, Zuxin
Zhang, Jianguo
Prabhakar, Akshara
Liu, Zhiwei
Heinecke, Shelby
Savarese, Silvio
Zhong, Victor
Xiong, Caiming
author_facet Chen, Arthur
Liu, Zuxin
Zhang, Jianguo
Prabhakar, Akshara
Liu, Zhiwei
Heinecke, Shelby
Savarese, Silvio
Zhong, Victor
Xiong, Caiming
contents Large language model (LLM)-based agents struggle to generalize to novel and complex environments, such as unseen websites or new sets of functions, due to a fundamental mismatch between their pre-training and test-time conditions. This challenge stems from two distinct failure modes: a syntactic misunderstanding of environment-specific components like observation formats, and a semantic misunderstanding of state-transition dynamics, which are only revealed at test time. To address these issues, we propose two distinct strategies for adapting LLM agents by leveraging environment-specific information from interaction that is available during deployment. First, an online syntactic alignment (SA) method parameterizes environmental nuances by learning a lightweight adaptation vector that biases the model's output distribution, enabling rapid alignment with an environment response format. Second, a deployment-time dynamics grounding (DG) method employs a persona-driven exploration phase to systematically probe and learn the environment's causal dynamics before task execution, equipping the agent with an in-context world model. We evaluate these strategies across diverse agentic benchmarks, including function calling and web navigation. Our empirical results show the effectiveness of both strategies across all benchmarks with minimal computational cost. We find that dynamics grounding is particularly effective in complex environments where unpredictable dynamics pose a major obstacle, demonstrating a robust path toward more generalizable and capable LLM-based agents. For example, on the WebArena multi-site split, this method increases the agent's success rate from 2% to 23%. We release our code.
format Preprint
id arxiv_https___arxiv_org_abs_2511_04847
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Test-Time Adaptation for LLM Agents via Environment Interaction
Chen, Arthur
Liu, Zuxin
Zhang, Jianguo
Prabhakar, Akshara
Liu, Zhiwei
Heinecke, Shelby
Savarese, Silvio
Zhong, Victor
Xiong, Caiming
Machine Learning
Large language model (LLM)-based agents struggle to generalize to novel and complex environments, such as unseen websites or new sets of functions, due to a fundamental mismatch between their pre-training and test-time conditions. This challenge stems from two distinct failure modes: a syntactic misunderstanding of environment-specific components like observation formats, and a semantic misunderstanding of state-transition dynamics, which are only revealed at test time. To address these issues, we propose two distinct strategies for adapting LLM agents by leveraging environment-specific information from interaction that is available during deployment. First, an online syntactic alignment (SA) method parameterizes environmental nuances by learning a lightweight adaptation vector that biases the model's output distribution, enabling rapid alignment with an environment response format. Second, a deployment-time dynamics grounding (DG) method employs a persona-driven exploration phase to systematically probe and learn the environment's causal dynamics before task execution, equipping the agent with an in-context world model. We evaluate these strategies across diverse agentic benchmarks, including function calling and web navigation. Our empirical results show the effectiveness of both strategies across all benchmarks with minimal computational cost. We find that dynamics grounding is particularly effective in complex environments where unpredictable dynamics pose a major obstacle, demonstrating a robust path toward more generalizable and capable LLM-based agents. For example, on the WebArena multi-site split, this method increases the agent's success rate from 2% to 23%. We release our code.
title Test-Time Adaptation for LLM Agents via Environment Interaction
topic Machine Learning
url https://arxiv.org/abs/2511.04847