Skip to main content
QUICK REVIEW

[논문 리뷰] Hyperparameters in Reinforcement Learning and How To Tune Them

Theresa Eimer, Marius Lindauer|arXiv (Cornell University)|2023. 06. 02.
Machine Learning and Data ClassificationComputer Science인용 수 9
한 줄 요약

논문은 RL 하이퍼파라미터가 성능과 재현성에 강하게 영향을 미친다고 주장하며 자동 하이퍼파라미터 최적화(HPO)가 종종 손으로 조정하는 것보다 더 낮은 컴퓨트로 이긴다는 것을 보여주고, RL 연구자들을 위한 모범 사례 가이드라인과 오픈 소스 튜닝 도구를 제공합니다.

ABSTRACT

In order to improve reproducibility, deep reinforcement learning (RL) has been adopting better scientific practices such as standardized evaluation metrics and reporting. However, the process of hyperparameter optimization still varies widely across papers, which makes it challenging to compare RL algorithms fairly. In this paper, we show that hyperparameter choices in RL can significantly affect the agent's final performance and sample efficiency, and that the hyperparameter landscape can strongly depend on the tuning seed which may lead to overfitting. We therefore propose adopting established best practices from AutoML, such as the separation of tuning and testing seeds, as well as principled hyperparameter optimization (HPO) across a broad search space. We support this by comparing multiple state-of-the-art HPO tools on a range of RL algorithms and environments to their hand-tuned counterparts, demonstrating that HPO approaches often have higher performance and lower compute overhead. As a result of our findings, we recommend a set of best practices for the RL community, which should result in stronger empirical results with fewer computational costs, better reproducibility, and thus faster progress. In order to encourage the adoption of these practices, we provide plug-and-play implementations of the tuning algorithms used in this paper at https://github.com/facebookresearch/how-to-autorl.

연구 동기 및 목표

  • RL 하이퍼파라미터가 최종 성능 및 샘플 효율성에 미치는 영향을 다양한 환경에서 Demonstrate한다.
  • 상태-의 최첨단 RL 알고리즘에 대해 손으로 조정된 기준과 대비하여 여러 HPO 방법을 평가한다.
  • RL 커뮤니티를 위한 오픈 소스, 플러그 앤 플레이 튜닝 도구와 실용적 모범 사례 권고를 제공한다.
  • 튠닝 시드와 테스트 시드를 분리하는 것이 과적합을 방지하고 재현성을 향상시키는 중요성을 강조한다.

제안 방법

  • RL에서 하이퍼파라미터 최적화를 Algorithm Configuration(AC) 및 Dynamic Algorithm Configuration(DAC)로 정식 정의한다.
  • 여러 시드를 사용하여 Gym-유사 및 Brax/Procgen 환경에서 PPO, DQN, SAC의 하이퍼파라미터 면적을 실험적으로 연구한다.
  • 무작위 탐색(RS), 다충실도 방법(DEHB), 인구 기반 튜닝(PB2, BGT)을 손으로 조정한 기준과 비교한다.
  • 재현성과 성능 추정에 대한 튜닝 시드와 테스트 시드의 효과를 평가한다.
  • 어떤 RL 알고리즘이나 환경과도 호환되는 오픈 소스 Hydra 기반 튜닝 구현을 제공한다.
Figure 1: Comparison of Hyperparameter Tuning Approaches: state-of-the-art hyperparameter optimization packages match or outperform hand tuning via grid search, while using less than 1/12 of the budget.
Figure 1: Comparison of Hyperparameter Tuning Approaches: state-of-the-art hyperparameter optimization packages match or outperform hand tuning via grid search, while using less than 1/12 of the budget.

실험 결과

연구 질문

  • RQ1다양한 환경과 알고리즘에서 RL 하이퍼파라미터가 최종 성능과 안정성에 얼마나 영향을 미치는가?
  • RQ2일반적인 손재주에 의한 조정 방식이 RL에서 자동 하이퍼파라미터 최적화에 비해 열등한가?
  • RQ3제한된 예산에서 RL 설정에서 다른 HPO 패러다임(RS, 다충실도, PBT)은 어떻게 수행하는가?
  • RQ4시드 분리, 보고, 파이프라인 통합 등 어떤 모범 사례가 RL 실험의 재현성과 비교 가능성을 향상시키는가?

주요 결과

  • 하이퍼파라미터가 다양한 환경과 알고리즘에서 성능에 큰 영향을 미치며, 아주 드물게 조정되는 매개변수조차 결정적일 수 있다.
  • RL의 하이퍼파라미터 면은 일반적으로 매끄럽고, 보통 예산으로도 간단한 방법으로 효과적으로 최적화할 수 있다.
  • 무작위 탐색이 일부 작업에서 더 복잡한 설정과 맞먹거나 능가할 수 있지만, 다충실도와 PBT 방법은 일반적으로 예산에 따라 안정성과 최종 성능을 향상시킨다.
  • 튜닝 시드와 테스트 시드를 분리하는 것은 과적합을 피하고 일반화 성능의 신뢰 가능한 추정치를 얻는 데 중요하다.
  • 자동 HPO 접근법은 종종 모든 조정이나 그리드 검색보다 컴퓨트를 덜 필요로 하며 더 견고하고 비교 가능한 기준선을 제공한다.
Figure 5: Tuning Results for PPO on Brax. Shown is the mean evaluation reward across $10$ episodes for $3$ tuning runs as well as the $98\%$ confidence interval across tuning runs.
Figure 5: Tuning Results for PPO on Brax. Shown is the mean evaluation reward across $10$ episodes for $3$ tuning runs as well as the $98\%$ confidence interval across tuning runs.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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