Test-Time Adaptation for LLM Agents via Environment Interaction
The DOI matches its DataCite record; 14 of the 14 references it cites were found in a registry or an index.
Abstract
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Unlike function-oriented tools, environment-interaction approaches treat tools as the interface through which an agent acts inside the software engineering environment [231, 232, 233, 234].”
From Code as Agent Harness (2026) · cites this paper as [232]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Training language models to follow instructions with human feedback
Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C. L., Mishkin, P., Zhang, C., Agarwal, S., Slama, K., Ray, A., et al. (2022) · arXiv · doi:10.48550/arxiv.2203.02155 · Cited by 4,208
Li, J., Hui, B., Qu, G., Yang, J., Li, B., Li, B., Wang, B., Qin, B., Cao, R., Geng, R., et al. (2023) · arXiv · doi:10.48550/arxiv.2305.03111 · Cited by 278
Tent: Fully Test-time Adaptation by Entropy Minimization
Wang, D., Shelhamer, E., Liu, S., Olshausen, B. A., & Darrell, T. J. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2006.10726 · Cited by 278
Ha, D., & Schmidhuber, J. (2018) · Zenodo · doi:10.5281/zenodo.1207631 · Cited by 187 · cited 1×
“LLM-based agents often fail in novel environments due to a semantic mismatch : they lack a “world model” to predict the outcomes of their actions (Ha & Schmidhuber, 2018; Chae et al., 2025).”
(2023) · doi:10.52202/075280-1220 · Cited by 134
Representation Engineering: A Top-Down Approach to AI Transparency
Zou, A., Phan, L., Chen, S., Campbell, J., Guo, P., Ren, R., Pan, A., Yin, X., Mazeika, M., Dombrowski, A.-K., et al. (2023) · arXiv · doi:10.48550/arxiv.2310.01405 · Cited by 65 · cited 1×
“However, standard steering approaches generally apply modulation vectors to shift high-level traits (Tan et al., 2025), such as honesty (Zou et al., 2025).”
OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments
Xie, T., Zhang, D., Chen, J., Li, X., Zhao, S., Cao, R., Hua, T. J., Cheng, Z., Shin, D., Lei, F., et al. (2024) · arXiv · doi:10.48550/arxiv.2404.07972 · Cited by 64 · cited 1×
“…model (LLM)-based AI agents have demonstrated remarkable capabilities across diverse tasks (Li et al., 2023a; Zhou et al., 2024a; Patil et al.; Xie et al., 2024), yet they often fail to generalize when deployed in novel agentic environments such as web navigation (Zhou et al., 2024a; He et…”
Self-citationReasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning
Luo, L., Li, Y.-F., Haffari, G., & Pan, S. (2023) · arXiv · doi:10.48550/arxiv.2310.01061 · Cited by 56 · cited 1×
“This aligns with a broader trend of using in-context learning for adaptation, including methods like agent workflow memory (Wang et al., 2024b) and retrieval-augmented generation (RAG) for planning (Luo et al., 2023; Kagaya et al., 2024; Wang et al., 2024a).”
WebArena: A Realistic Web Environment for Building Autonomous Agents
Zhou, S., Xu, F. F., Zhu, H., Zhou, X., Lo, R., Sridhar, A., Cheng, X., Ou, T., Bisk, Y., Fried, D., et al. (2023) · arXiv · doi:10.48550/arxiv.2307.13854 · Cited by 31
A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesis
Gur, I., Furuta, H., Huang, A., Safdari, M., Matsuo, Y., Eck, D., & Faust, A. (2023) · arXiv · doi:10.48550/arxiv.2307.12856 · Cited by 17
TTRL: Test-Time Reinforcement Learning
Zuo, Y., Zhang, K., Sheng, L., Qu, S., Cui, G., Zhu, X., Li, H., Zhang, Y., Long, X., Hua, E., et al. (2025) · arXiv · Cited by 7 · cited 2×
“While TTA for LLMs is emerging for tasks like math reasoning (Zuo et al., 2025) and few-shot learning (Aky¨urek et al., 2025), its application to the unique, interactive, and stateful challenges of LLM agents remains underexplored.”
The Surprising Effectiveness of Test-Time Training for Few-Shot Learning
Akyürek, E., Damani, M., Zweiger, A., Qiu, L., Guo, H., Pari, J., Kim, Y., & Andreas, J. (2024) · arXiv · doi:10.48550/arxiv.2411.07279 · Cited by 4
WebLINX: Real-World Website Navigation with Multi-Turn Dialogue
Lù, X. H., Kasner, Z., & Reddy, S. (2024) · arXiv · doi:10.48550/arxiv.2402.05930 · Cited by 2 · cited 1×
“Their ability to interpret complex instructions and generate coherent action plans has enabled their integration into applications such as web navigation (Zhou et al., 2024a; He et al., 2024; L`u et al., 2024; Deng et al., 2023) and function calling (Patil et al.; Yao et al., 2024).”
APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplay
Prabhakar, A., Liu, Z., Zhu, M., Zhang, J., Awalgaonkar, T., Wang, S., Liu, Z., Chen, H., Hoang, T., Niebles, J. C., et al. (2025) · arXiv · doi:10.48550/arxiv.2504.03601 · Cited by 2
Self-citation
Cited by
Ning, X., Tieu, K., Fu, D., Wei, T., Li, Z., Bei, Y., Zou, J., Ai, M., Liu, Z., Li, T.-W., et al. (2026) · arXiv · doi:10.48550/arxiv.2605.18747
Self-citation
Metadata
- Authors
- Chen, A., Liu, Z., Zhang, J., Prabhakar, A., Liu, Z., Heinecke, S., Savarese, S., Zhong, V., & Xiong, C.
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2025
- arXiv
- 2511.04847
- References
- 14
- Type
- Preprint
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.