Skip to main content
QUICK REVIEW

[논문 리뷰] Structured State Space Models for In-Context Reinforcement Learning

Chris Xiaoxuan Lu, Yannick Schroecker|arXiv (Cornell University)|2023. 03. 07.
Reinforcement Learning in RoboticsComputer Science인용 수 11
한 줄 요약

논문은 강화학습을 위해 S5 구조화 상태 공간 모델을 적응시키고, trajectories 내에서 은닉 상태를 재설정할 수 있게 하여 추론 속도를 더 빠르게 하고 기억 기반 및 메타-RL 작업에서 RNNs보다 성능을 향상시킨다. 또한 out-of-distribution 일반화도 포함한다.

ABSTRACT

Structured state space sequence (S4) models have recently achieved state-of-the-art performance on long-range sequence modeling tasks. These models also have fast inference speeds and parallelisable training, making them potentially useful in many reinforcement learning settings. We propose a modification to a variant of S4 that enables us to initialise and reset the hidden state in parallel, allowing us to tackle reinforcement learning tasks. We show that our modified architecture runs asymptotically faster than Transformers in sequence length and performs better than RNN's on a simple memory-based task. We evaluate our modified architecture on a set of partially-observable environments and find that, in practice, our model outperforms RNN's while also running over five times faster. Then, by leveraging the model's ability to handle long-range sequences, we achieve strong performance on a challenging meta-learning task in which the agent is given a randomly-sampled continuous control environment, combined with a randomly-sampled linear projection of the environment's observations and actions. Furthermore, we show the resulting model can adapt to out-of-distribution held-out tasks. Overall, the results presented in this paper show that structured state space models are fast and performant for in-context reinforcement learning tasks. We provide code at https://github.com/luchris429/popjaxrl.

연구 동기 및 목표

  • 강화학습에서 구조화된 상태 공간 모델(S4/S5)의 효과적인 활용을 동기 부여하고 가능하게 한다.
  • 온-policy RL 학습에서 에피소드 경계와 가변 길이 롤아웃의 도전을 다룬다.
  • 재설정 가능한 S5 변형이 더 빠른 런타임을 제공하면서 RNN 성능에 맞추거나 이를 능가할 수 있음을 보여준다.
  • 랜덤 프로젝션을 활용한 긴 시퀀스, 부분 관측 가능성, 메타 학습 RL 과제에 대한 일반화 가능성을 보여준다.

제안 방법

  • S5를 수정하여 trajectory 내에서 은닉 상태의 병렬 초기화 및 재설정을 가능하게 한다.
  • 연산자 ⊕를 도입하여 done 플래그를 처리하고 결합적 특성을 보존하는 재설정 가능한 연산자를 도입한다.
  • 관찰 및 행동의 무작위 선형 프로젝션을 사용하여 넓은 메타러닝 태스크 분포를 만든다.
  • 더 빠른 엔드-투-엔드 평가를 가능하게 하려 JAX로 POPGym 환경을 재구현한다.
  • memory-length bsuite 과제, POPGym 시퀀스, 그리고 out-of-distribution 일반화가 있는 다중 환경 메타-RL에서 평가한다.
(a)
(a)

실험 결과

연구 질문

  • RQ1S5 아키텍처를 학습 시퀀스 내에서 재설정하여 RL 롤아웃의 에피소드 경계를 처리할 수 있는가?
  • RQ2재설정 가능한 S5가 기억 기반 및 메타-RL 과제에서 LSTMs 및 Transformers에 비해 실용적인 속도 향상 및 성능 향상을 제공하는가?
  • RQ3관찰 및 행동의 무작위 프로젝션에 노출될 때 S5가 긴 시퀀스, 부분적으로 관찰되는 및 보지 못한 out-of-distribution 과제에 일반화될 것인가?
  • RQ4상태/행동 공간의 무작위 프로젝션을 사용하는 다중 환경 메타 학습 설정에서 S5의 성능은 어떠한가?
  • RQ5무작위 프로젝션 RL 과제에서 S5로의 컨텍스트 내 적응이 가능한가?

주요 결과

  • 재설정 기능을 갖춘 S5는 긴 시퀀스에서 Transformers보다 점근적으로 빠르게 동작하고 기억 기반 과제에서 RNNs보다 우수하다.
  • bsuite memory-length 과제에서 S5가 더 높은 점수를 얻고 기준 RNN 접근법보다 거의 두 배 빠르다.
  • POP Gym에서 S5가 GRU를 능가하고 6배 이상 빠르게 실행되며 Repeat Previous Hard 과제를 해결한다.
  • 랜덤 환경과 프로젝션이 있는 긴 컨텍스트 메타-RL 설정에서 S5가 LSTMs보다 더 높은 수익을 달성하고 미세 조정 없이도 일부 out-of-distribution 전이성을 보인다.
(b)
(b)

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.