Enabling Self-Improving Agents to Learn at Test Time With Human-In-The-Loop Guidance

Yun He, Ruoyu Li, Alex Chen, Yue Liu, Yulin Chen, Yuan Sui, Cheng Chen, Yi Zhu, Li Luo, Frank Yang, Bryan Hooi2025

Abstract: Yufei He, Ruoyu Li, Alex Chen, Yue Liu, Yulin Chen, Yuan Sui, Cheng Chen, Yi Zhu, Luca Luo, Frank Yang, Bryan Hooi. Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: Industry Track. 2025.

Introduction

Large Language Model (LLM) agents typically operate as static systems once deployed. While effective for general tasks, they often struggle in high-stakes, dynamic environments—such as financial risk screening or legal compliance—where regulations and rules evolve rapidly. This "knowledge lag" necessitates frequent offline retraining or manual database updates. Furthermore, agents often lack self-awareness regarding their own knowledge gaps, leading to confident but incorrect applications of outdated rules.

To address these challenges, the authors propose the Adaptive Reflective Interactive Agent (ARIA). ARIA is designed for test-time learning, enabling agents to recognize uncertainty, solicit targeted human guidance, and update their internal knowledge base dynamically without system reboots.

Methodology: The ARIA Framework

ARIA bridges the gap between autonomous execution and human expertise through two primary modules:

  1. Intelligent Guidance Solicitation (IGS): Instead of providing a direct answer, the agent engages in "structured self-dialogue." It evaluates its own reasoning by asking reflective questions (e.g., "What assumptions am I making?" or "Do I possess the specific domain knowledge required?"). This process generates a confidence score; if the score falls below a threshold, the agent triggers a request for human intervention.
  2. Human-Guided Knowledge Adaptation (HGKA): Upon receiving human feedback, ARIA integrates this information into a Structured Knowledge Repository. This repository utilizes timestamps and conflict detection to manage evolving rules. If a new instruction contradicts existing knowledge, ARIA identifies the conflict and can seek further clarification to determine which rule takes precedence.
The ARIA framework architecture, featuring Intelligent Guidance Solicitation and Human-Guided Knowledge Adaptation modules.

For retrieval, ARIA employs a temporally-informed approach, ranking knowledge based on semantic relevance, validity status, and recency to mitigate "knowledge rot."

Experimental Setup and Datasets

The framework was evaluated on two distinct datasets:

  • TikTok Pay CDD (Customer Due Diligence): An industrial dataset comprising 11,846 name-screening cases. This "needle in a haystack" task involves identifying a small number of actual matches (156 cases) within a large volume of data, reflecting the complexities of global payment platforms.
  • CUAD (Contract Understanding Atticus Dataset): A public dataset of over 13,000 legal clause annotations. This was used to simulate "concept drift" by intentionally altering clause interpretations over time to test ARIA's adaptability to new legal standards.

Key Insights

  • Self-Dialogue as an Uncertainty Filter: Structured self-reflection significantly reduces the burden on human experts by filtering out simple cases and focusing human attention on high-uncertainty tasks.
  • Mitigating Knowledge Rot: By incorporating timestamps and explicit "Superseded" statuses, ARIA manages evolving policies more effectively than standard Retrieval-Augmented Generation (RAG) systems, which often struggle with conflicting information.
  • Human-in-the-Loop Test-Time Learning: Unlike agents that rely solely on trial and error, ARIA demonstrates that integrating a human "oracle" during task execution is vital for specialized domains where the ground truth is dynamic.

Results and Impact

ARIA has been deployed on TikTok Pay, serving 150 million users. Key performance metrics include:

  • Superior Accuracy: On the TikTok Pay task, ARIA (using GPT-4o) achieved a Sensitivity of 0.8910 and Specificity of 0.8026, outperforming standard RAG agents and offline fine-tuned models.
  • Adaptability: In CUAD experiments, ARIA reached 0.6358 accuracy, a significant improvement over the 0.4872 accuracy of static agents, proving its ability to "unlearn" outdated rules.
  • Efficiency Gains: ARIA reduced the Average Handling Time (AHT) for human experts from approximately 12 minutes to between 0.13 and 0.23 minutes by providing targeted questions and preliminary judgments.
Performance comparison between human experts and ARIA, showing significant reductions in Average Handling Time (AHT).

Conclusion and Future Work

While ARIA demonstrates significant advancements, it remains dependent on the quality and consistency of human expert feedback. Additionally, as the knowledge repository scales, the computational overhead for conflict detection and retrieval will increase. Future research will focus on optimizing the self-dialogue process and maintaining long-term coherence in increasingly complex knowledge bases.

Summary updated

BibTeX
@misc{he2025enabling,
  author = {Yun He and Ruoyu Li and Alex Chen and Yue Liu and Yulin Chen and Yuan Sui and Cheng Chen and Yi Zhu and Li Luo and Frank Yang and Bryan Hooi},
  title = {{Enabling Self-Improving Agents to Learn at Test Time With Human-In-The-Loop Guidance}},
  year = {2025},
  doi = {10.18653/v1/2025.emnlp-industry.115},
}
Figure