Adapting Like Humans: A Metacognitive Agent with Test-time Reasoning

Yang Li, Zhiyuan He, Yuxuan Huang, Zhuhanling Xiao, Chao Yu, Meng Fang, Kun Shao, Jun WangarXiv 2025 · DOI · arXiv

Introduction

Modern Vision-Language Models (VLMs) excel at "crystallized intelligence"—applying knowledge learned during training. However, they often lack "fluid intelligence," the ability to adapt to novel, complex environments on the fly. While humans use metacognition to observe failures and refine strategies in real-time, current AI adaptation methods rely on expensive gradient updates or simple prompt tuning. This paper introduces Metacognitive Test-time Reasoning (MCTR), a framework that enables VLMs to build structured natural language memories of task dynamics and refine policies through self-supervised reinforcement learning during testing.

The MCTR Framework

The MCTR framework mirrors human metacognitive structures by separating high-level strategy from low-level execution.

The MCTR framework maps biological metacognitive processes to a dual-module AI architecture.

Meta-Reasoning and Action-Reasoning

The system is divided into two primary modules:

  1. Meta-Reasoning Module: Acting as a "manager," this module retrospectively analyzes gameplay trajectories to identify patterns and game rules. These insights are stored in a Knowledge Memory. An adaptive scheduler regulates the intensity of this analysis, focusing effort on early learning phases.
  2. Action-Reasoning Module: This "player" module handles real-time decision-making by integrating visual perception with the strategies provided by the Meta-Reasoning module.

Metacognitive Test-time Reinforcement Learning (MCT-RL)

To bridge the gap between abstract strategy and concrete action, MCTR employs Metacognitive Test-time Reinforcement Learning (MCT-RL). In environments where external rewards are sparse, the agent generates a "self-consistency" reward.

MCT-RL uses self-selection and majority voting among multiple reasoning paths to generate internal rewards for policy optimization.

By sampling multiple reasoning paths and using majority voting to identify a "golden action," the agent uses Group Relative Policy Optimization (GRPO) to align its future reasoning with this consensus. This allows the model to refine its "muscle memory" without needing explicit external feedback.

Experimental Evaluation

The framework was evaluated on the Atari game benchmark across 45 games. The model was initially fine-tuned on 33 "seen" games to establish basic gaming common sense and then tested on 12 "unseen" games (e.g., AirRaid, BattleZone) to measure zero-shot adaptation.

Key Results

MCTR demonstrated significant performance gains over standard VLMs and supervised baselines:

  • Zero-Shot Performance: MCTR achieved the top result in 9 out of 12 unseen games.
  • Significant Score Improvements: In BattleZone, MCTR scored 12,000 points, more than doubling the 5,000 points achieved by the supervised fine-tuning (SFT) baseline. Similar gains were observed in CrazyClimber (5,600 vs. 1,100).
  • Ablation Insights: Removing either the Meta-Reasoning or the MCT-RL component led to substantial performance drops, confirming that strategic "thinking" and policy "practice" are both essential for adaptation.

Discussion and Future Work

Qualitative analysis reveals that MCTR's reasoning evolves from high-level exploration (e.g., "identify enemies") to concrete procedural strategies (e.g., "engage submarines with upfire"). While effective, the framework faces challenges regarding computational overhead due to the intensity of test-time reasoning. Future research will focus on scaling MCTR to more open-ended domains and improving the efficiency of the meta-reasoning process to reduce latency in high-speed environments.

Summary updated

Abstract

Recent Vision-Language Models (VLMs) exhibit strong perceptual reasoning abilities, yet they often struggle to adapt efficiently when encountering novel tasks at test time. In contrast, humans leverage the metacognitive model with memory, enabling continuous strategy refinement through metacognitive control when faced with new challenges. To bridge this gap, we propose metacognitive test-time reasoning (MCTR), a framework that equips models with the ability to learn, adapt, and improve during test time through metacognitive self-updating. Inspired by the dual structure of human metacognition, MCTR comprises meta-level and object-level VLM reasoning modules, each equipped with dedicated memory systems for hierarchical adaptive reasoning. Specifically, MCTR consists of (1) a meta-reasoning module which incrementally builds a structured memory by discovering and storing task-relevant rules, environmental patterns, and action-outcome relationships from test-time observations as natural language descriptions; and (2) an action-reasoning module that determines optimal actions through context-aware perception and strategic reasoning by dynamically retrieving and integrating knowledge from memory. The action-reasoning module continuously updates its policy through proposed metacognitive test-time reinforcement learning, adapting as knowledge memory evolves. We evaluate MCTR on 45 Atari games (33 seen, 12 unseen). MCTR demonstrates robust test-time adaptation, achieving 9/12 top-1 results on unseen games compared with baselines. Analyses through ablations, learning dynamics, and case studies reveal the complementary contributions of both components and show meta-reasoning evolving toward human-like adaptation strategies.
BibTeX
@misc{li2025adapting,
  author = {Yang Li and Zhiyuan He and Yuxuan Huang and Zhuhanling Xiao and Chao Yu and Meng Fang and Kun Shao and Jun Wang},
  title = {{Adapting Like Humans: A Metacognitive Agent with Test-time Reasoning}},
  year = {2025},
  eprint = {2511.23262},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.23262},
}
Figure