Mapping Smarter, Not Harder: A Test-Time Reinforcement Learning Agent That Improves Without Labels or Model Updates
Wen-Kwang Tsao, Yao-Ching Yu, Chien-Ming Huang
TL;DR
The paper tackles schema mapping for enterprise logs when vendor documentation is incomplete or unavailable, formulating the problem as mapping from $S$ to $T \cup \{\emptyset\}$ and optimizing a proxy objective via a test-time reinforcement learning agent. The core approach iteratively collects external evidence, enriches the context, and applies a confidence-based reward $r_t = C_{t+1} - C_t$ to refine mappings without any model weight updates. Across a Defender-for-Endpoint case study, the method elevates accuracy from 72.73% to 93.94% over 100 iterations and dramatically reduces low-confidence mappings requiring expert review by 85%. While results show strong practical benefits and transparency through reasoning traces, the work also reveals overconfidence in some iterations and emphasizes calibration and computation trade-offs for broader deployment. Overall, this evidence-driven, test-time learning framework offers a scalable, accountable path to robust schema mapping in real-world, label-scarce environments.
Abstract
The Enterprise Intelligence Platform must integrate logs from numerous third-party vendors in order to perform various downstream tasks. However, vendor documentation is often unavailable at test time. It is either misplaced, mismatched, poorly formatted, or incomplete, which makes schema mapping challenging. We introduce a reinforcement learning agent that can self-improve without labeled examples or model weight updates. During inference, the agent: 1) Identifies ambiguous field-mapping attempts. 2) Generates targeted web-search queries to gather external evidence. 3) Applies a confidence-based reward to iteratively refine its mappings. To demonstrate this concept, we converted Microsoft Defender for Endpoint logs into a common schema. Our method increased mapping accuracy from 56.4\%(LLM-only) to 72.73\%(RAG) to 93.94\% over 100 iterations using GPT-4o. At the same time, it reduced the number of low-confidence mappings requiring expert review by 85\%. This new approach provides an evidence-driven, transparent method for solving future industry problems, paving the way for more robust, accountable, scalable, efficient, flexible, adaptable, and collaborative solutions.
