논문 해설
Improving Transformer World Models for Data-Efficient RL
데이터 효율적 강화학습을 위한 Transformer 월드 모델 개선
- 연구 문제 트랜스포머 세계 모델 기반 MBRL은 이미지 토큰화와 토큰 학습 방식 때문에 데이터 효율이 제한되며, 이 논문은 Craftax-classic에서 이를 개선하는 방법을 제시합니다.
- 연구 방법 워밍업 이후 실제 데이터와 상상 데이터를 함께 쓰는 Dyna, 패치 단위 최근접 이웃 토크나이저, 블록 교사 강요의 세 가지 변경을 결합합니다.
- 주요 결과 최고 MBRL 에이전트는 1M 환경 스텝에서 Craftax-classic reward 69.66%를 보고하며, 이는 인간 전문가의 65.0%를 넘습니다.
데이터 효율 MBRL의 문제
모델 프리 강화학습(MFRL)은 관측에서 행동으로 가는 직접 정책을 학습하므로 많은 환경 상호작용이 필요합니다. 모델 기반 강화학습(MBRL)은 세계 모델을 함께 학습하고 이를 이용해 상상 속에서 정책을 훈련함으로써 이 데이터 요구를 줄이려 합니다. 그러나 트랜스포머 기반 세계 모델(TWM)을 이미지 관측에 적용하려면 이미지를 이산 토큰으로 바꾸는 토크나이저와 토큰을 예측하는 학습 방식이 필요하며, 이 선택이 세계 모델의 정확도와 정책 학습 결과를 좌우합니다. 이 논문은 Craftax-classic 벤치마크에서 이 세 지점을 함께 개선하는 방법을 다룹니다.
실제 데이터와 상상 데이터를 섞는 Dyna with warmup
이 방법은 정책을 환경에서 얻은 실제 궤적과 TWM이 생성한 상상 궤적으로 함께 학습합니다. 다른 최근 MBRL 방법들이 상상 궤적만으로 정책을 학습하는 것과 달리, 실제 데이터에 대해 PPO 업데이트를 먼저 수행하고 세계 모델을 갱신한 뒤, 환경 스텝 수가 TBP에 도달한 이후에만 상상 롤아웃으로 정책을 갱신합니다. 세계 모델이 부정확한 초기 단계에서 정책이 잘못된 동역학에 노출되는 것을 막기 위한 설계입니다. 원문은 TBP=0으로 워밍업을 제거하면 reward가 67.42%에서 33.54%로 떨어진다고 보고합니다. 또한 상상 학습 자체를 제거하면 reward가 55.02%가 됩니다.
패치 단위 최근접 이웃 토크나이저
기존 VQ-VAE는 이미지 전체를 함께 양자화하고 코드북을 학습 중 계속 갱신합니다. 이 논문은 Craftax-classic의 9×9 패치 구조를 이용해 관측을 겹치지 않는 패치로 나누고 각 패치를 독립적으로 토큰화합니다. 토큰화 함수는 코드북의 가장 가까운 코드를 선택하되, 최근접 거리가 임계값 τ를 넘으면 새 코드로 패치 자체를 추가합니다. 추가된 코드는 이후 갱신되지 않으므로 TWM이 예측해야 할 목표 분포가 시간에 따라 변하지 않습니다. 원문은 패치 분해만으로 reward가 43.36%에서 58.92%로, 최근접 이웃 토크나이저를 더하면 64.96%로 증가한다고 보고합니다. 다만 패치 크기에 민감하고 외형 변화가 큰 경우 큰 코드북이 생길 수 있다고 밝힙니다.
블록 교사 강요
기존 교사 강요는 같은 시간 단계 안의 토큰을 순차적으로 조건부 예측합니다. 블록 교사 강요(BTF)는 이전 시간 단계의 토큰과 행동을 바탕으로 다음 시간 단계의 모든 토큰을 독립적으로 예측하며, 블록 인과 어텐션으로 같은 시간 단계의 토큰들을 한 번의 순전파에서 함께 처리합니다. 이 구조는 다음 단계의 미래 상태 전체를 함께 고려한 뒤 토큰을 샘플링하게 하여 자기회귀 드리프트를 줄입니다. 원문은 BTF를 추가하면 reward가 64.96%에서 67.42%로 증가하며, 학습 시간이 절반 수준이라고 보고합니다.
MBRL 사다리 절제와 세계 모델 비교
저자들은 M1에서 M5까지 사다리를 구성해 각 구성요소를 순서대로 더했습니다. 원문에 따르면 기준선 M1은 reward 31.93%이고, Dyna를 더한 M2는 43.36%, 패치 분해를 더한 M3는 58.92%, NNT를 더한 M4는 64.96%, BTF를 더한 M5는 67.42%입니다. 같은 사다리에서 각 요소를 제거한 절제 실험에서도 성능 하락이 보고됩니다. 세계 모델 롤아웃의 기호 정확도는 롤아웃 단계가 늘수록 감소하지만, NNT를 쓰는 M5가 모든 시점에서 가장 높았습니다. 이는 Craftax-classic 관측에서 학습한 기호 추출기 f_μ가 99%의 검증 정확도를 보인 조건에서 얻은 결과입니다.
![Figure 5: | [Left] MBRL performance decreases when NNT uses patches of smaller or larger size than
the ground truth, but it remains competitive. However, perfo…](/papers/bf0a569b-7476-4cd0-91b8-a28e0935c805/figures/figure-f207caef00f1d4ed2513ae7671b51438.png?thumb=512)
Figure 5 | [Left] MBRL performance decreases when NNT uses patches of smaller or larger size than the ground truth, but it remains competitive. However, performance collapses if the patches are not quantized. [Middle] Removing any rung of the ladder of improvements leads to a drop in performance. [Right] Warming up the world model before using it to train the policy on imaginary rollouts is required for good performance. BP denotes background planning. For each method, training in imagination starts at the color-coded vertical line, and leads to an initial drop in performance.
원문 · CC BY 4.0 · Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy · Improving Transformer World Models for Data-Efficient RL · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.![Figure 13: | TWM performance.[Left] Tokenizer L2 reconstruction error, averaged over rollouts. Lower
is better. By construction, our best MBRL agent, which use…](/papers/bf0a569b-7476-4cd0-91b8-a28e0935c805/figures/figure-07667bd57c9ebd0e6775524599e384b6.png?thumb=512)
Figure 13 | TWM performance.[Left] Tokenizer L2 reconstruction error, averaged over rollouts. Lower is better. By construction, our best MBRL agent, which uses NNT, constantly reaches the lowest error, as NNT directly adds observation patches to its codebook. [Right] TWM rollouts L2 observation reconstruction error, averaged over rollouts. Lower is better. M3 and M5, which both use patch factorization, achieve the lowest errors.
원문 · CC BY 4.0 · Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy · Improving Transformer World Models for Data-Efficient RL · 원문 그림 인용 · 원본 PDF 29쪽에서 그림 영역을 추출했습니다.Craftax-classic 및 확장 환경의 결과
최고 MBRL 에이전트는 1M 환경 스텝 이후 Craftax-classic에서 reward 69.66%와 score 31.77%를 보고합니다. 이 reward는 인간 전문가의 65.0%를 넘는 값으로 제시됩니다. 같은 MFRL 개선 모델은 reward 55.49%와 score 16.77%로, 원문이 보고한 DreamerV3의 reward 53.20%보다 높습니다. Craftax-full에서는 최고 MBRL 에이전트가 reward 7.20%를 기록하며, 이전 MBRL 최고 reward 6.59%보다 높습니다. MinAtar의 네 게임에서는 최고 MBRL 에이전트가 평균 정규화 reward 2.43을 기록합니다.
원문은 이 결과들을 각각 해당 설정에서의 결과로 제시하며, 다른 환경에서의 일반화는 아직 확인하지 않았다고 밝힙니다.
![Figure 1: | [Left] Reward on Craftax-classic. Our best MBRL and MFRL agents outperform all the
previously published MFRL and MBRL results, and for the first ti…](/papers/bf0a569b-7476-4cd0-91b8-a28e0935c805/figures/figure-12a4ed2d4417af267eecbb369e399a7b.png?thumb=512)
Figure 1 | [Left] Reward on Craftax-classic. Our best MBRL and MFRL agents outperform all the previously published MFRL and MBRL results, and for the first time, surpass the reward achieved by a human expert. We display published methods which report the reward at 1M steps with horizontal line from 900k to 1M steps. [Middle] The Craftax-classic observation is a63× 63 pixel image, composed of9× 9 patches of 7× 7 pixels. The observation shows the map around the agent and the agent’s health and inventory. Here we have rendered the image at144× 144 pixels for visibility. [Right] 64 different patches.
원문 · CC BY 4.0 · Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy · Improving Transformer World Models for Data-Efficient RL · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.
Table 1 | Results on Craftax-classic after 1M environment interactions. * denotes results on Crafter, which may not exactly match Craftax-classic. — means unknown.†denotes the reported timings on a single A100 GPU. Our DreamerV3 results are based on the code from the author, but differ slightly from the reported number, perhaps due to hyperparameter discrepancies. IRIS andΔ-IRIS do not report standard errors for the score.
원문 · CC BY 4.0 · Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy · Improving Transformer World Models for Data-Efficient RL · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Table 2 | Results on Craftax after 1M environment interactions. The previous SOTA scores are unknown.
원문 · CC BY 4.0 · Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy · Improving Transformer World Models for Data-Efficient RL · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.
Figure 7 | Our best MBRL agent outperforms our tuned MFRL agent on each MinAtar game.
원문 · CC BY 4.0 · Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy · Improving Transformer World Models for Data-Efficient RL · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.![Figure 11: | [Left] In addition to reaching higher rewards, our best MBRL and MFRL agents also
achieve higher scores compared to the best previously published…](/papers/bf0a569b-7476-4cd0-91b8-a28e0935c805/figures/figure-5db80d254299e8c0520d54fb20c97a5f.png?thumb=512)
Figure 11 | [Left] In addition to reaching higher rewards, our best MBRL and MFRL agents also achieve higher scores compared to the best previously published MBRL and MFRL results. [Right] MBRL agents’ scores increase as they climb up the ladder of improvements.
원문 · CC BY 4.0 · Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy · Improving Transformer World Models for Data-Efficient RL · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.
Table 6 | Environment Craftax-classic vs Craftax (full).
원문 · CC BY 4.0 · Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy · Improving Transformer World Models for Data-Efficient RL · 원문 그림 인용 · 원본 PDF 31쪽에서 그림 영역을 추출했습니다.한계와 적용 범위
최고 MBRL 에이전트는 초인간 reward를 달성했지만, score는 인간 전문가보다 크게 낮습니다. 따라서 reward와 score는 서로 다른 측면을 보여 주며, 성능 개선이 모든 업적 달성 능력의 향상을 뜻하지는 않습니다. 패치 토큰화는 패치 크기에 민감하고 외형 변화가 큰 환경에서는 코드북이 커질 수 있습니다. 이 결과는 격자형 게임과 제한된 스프라이트 어휘를 가진 Craftax 계열 환경에서 얻은 것이므로, 원문도 자연 이미지 등으로의 일반화는 미래 과제로 남긴다고 밝힙니다.
논문 정보
- 저자
- Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2025년 2월 3일
- 등록일
- 2026년 10월 31일
- 수정일
- 2025년 7월 16일
- 버전
- v3
- arXiv
- 2502.01591
- 분류
- cs.LG · cs.AI
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
We present three improvements to the standard model-based RL paradigm based on transformers: (a) "Dyna with warmup", which trains the policy on real and imaginary data, but only starts using imaginary data after the world model has been sufficiently trained; (b) "nearest neighbor tokenizer" for image patches, which improves upon previous tokenization schemes, which are needed when using a transformer world model (TWM), by ensuring the code words are static after creation, thus providing a constant target for TWM learning; and (c) "block teacher forcing", which allows the TWM to reason jointly about the future tokens of the next timestep, instead of generating them sequentially. We then show that our method significantly improves upon prior methods in various environments. We mostly focus on the challenging Craftax-classic benchmark, where our method achieves a reward of 69.66% after only 1M environment steps, significantly outperforming DreamerV3, which achieves 53.2%, and exceeding human performance of 65.0% for the first time. We also show preliminary results on Craftax-full, MinAtar, and three different two-player games, to illustrate the generality of the approach.
원문 인용
Antoine Dedieu, Joseph Ortiz, Xinghua Lou, Carter Wendelken, Wolfgang Lehrach, J Swaroop Guntupalli, Miguel Lazaro-Gredilla, Kevin Patrick Murphy (2025). Improving Transformer World Models for Data-Efficient RL. arXiv:2502.01591v3. https://arxiv.org/abs/2502.01591v3
BibTeX
@misc{dedieu2025improving,
title = {{Improving Transformer World Models for Data-Efficient RL}},
author = {Antoine Dedieu and Joseph Ortiz and Xinghua Lou and Carter Wendelken and Wolfgang Lehrach and J Swaroop Guntupalli and Miguel Lazaro-Gredilla and Kevin Patrick Murphy},
year = {2025},
eprint = {2502.01591},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2502.01591v3}
}