Visual In-Context Reinforcement Learning with General-Purpose Pretrained Regressors

Heng-Zhuang Li, Zhen Xu, Hao-Run Cai, Si-Yang Liu, Jun-Peng Jiang, Han-Jia Ye

arXiv:2612.01153 · 2026-12-02 공개 · arXiv · PDF

in-context-learning monte-carlo visual-observation general-purpose fifo-buffer visual-policy priority-sampling visual-reinforcement-learning

Abstract

Interactive visual environments such as games and embodied control require decisions over high-dimensional visual observations and long decision horizons, making policies costly to train and tune for each new task. In-context reinforcement learning avoids per-task training by conditioning a pretrained model on past interactions. Several methods rely on domain-specific pretraining or label historical interactions using repeated value updates or a trained teacher. We show that neither is necessary for high-dimensional visual tasks and introduce Visual In-context Monte Carlo (VIMC) reinforcement learning, a simple baseline that utilizes Monte Carlo returns from completed episodes as labels. Starting with an empty first-in, first-out (FIFO) buffer, VIMC learns competitive visual policies by conditioning a general-purpose pretrained regressor on these examples as they accumulate. Analyzing the FIFO mechanism reveals that repetitive visual observations can fill the buffer and crowd out rare informative examples. We therefore propose VIMC-Pro, a prioritized context curation strategy which preserves diverse and informative historical transitions at negligible overhead from lengthy visual interactions, via grouping experiences by visual similarity and allocating context slots according to each group's prediction bias. Our methods outperform competitive baselines across diverse visual tasks. Further analysis shows their strong generalizability and potential for scalability. Code is available at https://github.com/Fir-lat/VIMC

한국어 요약

한 줄 요약

VIMC는 사전 학습된 회귀 모델을 활용해 시각 정보 기반 강화 학습을 효율적으로 수행하는 in-context RL 기법이다.

핵심 기여도

핵심 아이디어

기존 in-context RL은 도메인 특화 사전 학습이나 반복 가치 업데이트에 의존했으나, 본 연구는 일반적인 사전 학습 회귀 모델만으로도 시각 정책을 학습할 수 있음을 보여준다. VIMC는 각 시각-액션 쌍에 대해 Monte Carlo 반환을 라벨로 사용하고, FIFO 버퍼에 저장된 예제를 기반으로 정책을 학습한다. 그러나 반복적인 시각 경험은 버퍼를 채우고 희귀한 유용한 예제를 밀어내는 문제가 발생한다. 이를 해결하기 위해 VIMC-Pro는 시각 유사도 기반 그룹화와 예측 편향에 따른 컨텍스트 할당을 도입하여, 다양한 시나리오를 반영하면서도 계산 비용은 낮춘다.

기술적 접근법

주요 결과

의의 및 한계

VIMC와 VIMC-Pro는 도메인 특화 사전 학습 없이도 시각 기반 강화 학습을 가능하게 하며, 특히 희소 보상 환경에서 우수한 일반화 능력을 보인다. VIMC-Pro는 컨텍스트 예산이 제한된 상황에서도 다양한 시나리오를 반영하여 성능을 향상시킨다. 그러나 컨텍스트 예산이 증가할수록 항상 성능이 향상되지 않으며, 일부 시각 환경에서는 컨텍스트 수가 적을수록 안정적인 성능을 보이는 경향이 있다.

실용적 활용

VIMC와 VIMC-Pro는 게임, 자율 주행, 로봇 제어 등 시각 정보를 기반으로 장기적 결정을 내려야 하는 다양한 산업 분야에 적용 가능하다. 특히, 사전 학습 모델만으로도 빠르게 정책을 생성할 수 있어, 신속한 시스템 개발과 적응이 필요한 상황에 유용하다.