# Reinforcement Learning for Improving Agent Design

에이전트 설계 개선을 위한 강화학습

David Ha · arXiv · 2018년 10월 9일

- **연구 문제** 고정된 몸체 설계는 과제에 최적이 아닐 수 있으며, 이 논문은 설계 파라미터를 정책과 함께 학습합니다.
- **연구 방법** 환경 파라미터 벡터와 정책 가중치를 하나의 벡터로 묶고 집단 기반 REINFORCE로 함께 갱신합니다.
- **주요 결과** RoboschoolAnt-v1과 BipedalWalkerHardcore-v2에서 몸체 학습 버전이 기준보다 높은 평균 점수를 보고합니다.

## 기존 강화학습의 고정 설계 문제

많은 강화학습 과제에서 에이전트의 몸체 설계는 고정된 채 정책만 학습됩니다. 원문은 에이전트의 물리적 구조가 과제에 맞게 최적화되는 경우가 드물다고 지적합니다. 이 논문은 정책과 함께 몸체 구조를 학습 대상으로 포함하는 방법을 탐구합니다.

저자들은 이를 위해 OpenAI Gym 체계를 확장합니다. 환경의 일부를 파라미터화하고, 에이전트가 롤아웃 전에 환경 파라미터를 수정할 수 있도록 합니다. 이 변경은 설계 학습을 기존 Gym 실험 틀 안에서 재현 가능하게 만드는 데 목적이 있습니다.

![Figure 2: OpenAI Gym \[13\] framework for rolling out an agent in an environment (left). We propose an alteration where we parameterize parts of an environment,…](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-6b4b413ec3d3c32af36932cbb3dcd14e.png?thumb=512)

**Figure 2** : OpenAI Gym \[13\] framework for rolling out an agent in an environment (left). We propose an alteration where we parameterize parts of an environment, and allow an agent to modify its environment before a rollout, and also augment its reward based on these parameters (right).

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## 환경 파라미터와 정책의 공동 학습

이 방법은 정책 신경망의 가중치와 환경 파라미터 벡터를 하나의 학습 벡터 w로 묶습니다. 환경 파라미터 벡터는 몸체 부품의 폭, 길이, 반지름, 질량, 방향 등을 지정합니다. 롤아웃 때는 에이전트를 같은 파라미터 벡터 w로 파라미터화된 환경에 배치합니다.

![Figure 1: Learning to navigate over randomly generated terrain in BipedalWalkerHardcore-v2 environment \[13\] (top). Agent learns a better body design while join…](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-734d82567553de83637c0a6d508a8763.png?thumb=512)

**Figure 1** : Learning to navigate over randomly generated terrain in BipedalWalkerHardcore-v2 environment \[13\] (top). Agent learns a better body design while jointly learning to navigate (bottom).

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

학습은 Williams의 REINFORCE 섹션 6에 기반한 집단 기반 정책 경사 방법으로 수행됩니다. 파라미터 w는 확률분포 π(w,θ)에서 샘플링되고, 기대 누적 보상 J(θ)=E\_θ\[R(w)\]의 기울기는 \\(\\nabla\_\\theta J(\\theta)\\approx \\frac{1}{N}\\sum\_{i=1}^{N} R(w\_i)\\nabla\_\\theta \\log \\pi(w\_i,\\theta)\\)로 추정됩니다. 이 분포는 인수분해된 다변량 정규분포이며, 각 원소는 평균 µ와 표준편차 σ를 가진 단변량 정규분포로 다룹니다.

따라서 θ를 갱신하면 몸체 파라미터의 평균과 분산이 함께 이동합니다. 원문은 몸체 치수가 원래 값의 ±75% 범위를 넘지 않도록 제한하여 원래 설계의 구조와 방향을 유지한다고 밝힙니다.

## Ant와 BipedalWalker 실험 설정

RoboschoolAnt-v1 실험에서 Ant는 네 다리를 가지며, 각 다리는 3개 부분과 2개 모터 관절로 구성됩니다. 원문은 질량 밀도와 모터 관절 파라미터를 원래 환경과 같게 두고, 36개 파라미터를 학습하도록 설정합니다.

BipedalWalker-v2 실험에서는 머리 역할의 payload를 고정하고 네 다리 부품의 길이와 너비만 학습합니다. 두 실험 모두 학습 과정에서 집단 기반 방법을 사용하며, 결과는 여러 롤아웃의 평균 점수로 비교합니다.

![Figure 4: Agent learning a policy to navigate forward in BipedalWalker-v2 environment \[13\] (top). Agent learns a body to allow it to bounce forward efﬁciently…](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-045a29b8a2539a83dd844a2315b48e17.png?thumb=512)

**Figure 4** : Agent learning a policy to navigate forward in BipedalWalker-v2 environment \[13\] (top). Agent learns a body to allow it to bounce forward efﬁciently (bottom).

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

## 몸체 학습의 주요 결과

RoboschoolAnt-v1에서 원래 설계의 평균 누적 점수는 3447±251이고, 학습된 몸체 설계의 평균 누적 점수는 5789±479입니다. 이 값은 100회 시험 기준입니다. 학습된 설계는 대칭을 깨고 뒤쪽 다리를 더 크게 만듭니다.

![Figure 3: Agent learning a policy to navigate forward in RoboschoolAnt-v1 environment \[36\] (left). Agent develops longer, thinner legs while supporting the sam…](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-5fb72e69cc784c5c3394a9db30cd13e0.png?thumb=512)

**Figure 3** : Agent learning a policy to navigate forward in RoboschoolAnt-v1 environment \[36\] (left). Agent develops longer, thinner legs while supporting the same body during training (right).

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

![Table 1: Learned agent body for RoboschoolAnt-v1 as % of original design speciﬁcation](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-50552f651f6a3aa1f0c745d295a2a5d3.png?thumb=512)

**Table 1** : Learned agent body for RoboschoolAnt-v1 as % of original design speciﬁcation.

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

BipedalWalkerHardcore-v2에서는 원래 환경이 4600세대 미만에 해결되고, 몸체를 학습한 버전은 1400세대 미만에 해결됩니다. 학습 가능 버전의 100회 롤아웃 평균 점수는 335±37이고, 기준 점수는 313±53입니다. 이는 집단 기반 학습을 기준선으로 둔 비교입니다.

![Figure 5: Population-based training curves for both versions of BipedalWalkerHardcore-v2 (left). Plot of performance of best agent in the population over 100 r…](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-d45d411d732b532eb7e3757aa1e4a39f.png?thumb=512)

**Figure 5** : Population-based training curves for both versions of BipedalWalkerHardcore-v2 (left). Plot of performance of best agent in the population over 100 random trials (right). Original version solved in under 4600 generations (40 hours); By allowing morphology to be learned, the task is solved in under 1400 generations (12 hours).

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 2: Summary of results for Bipedal Walker environments. Scaled Box2D dimensions reported](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-5f3cc73b5bef6b4b242c7485e9bde618.png?thumb=512)

**Table 2** : Summary of results for Bipedal Walker environments. Scaled Box2D dimensions reported.

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

## 설계 특성을 보상으로 반영한 재료량 최적화

저자들은 성능 이외의 설계 목표로 다리 면적을 줄이는 실험을 수행합니다. 보상은 새 다리 면적이 원래 면적보다 작을수록 커지도록 utility factor 1 + log(orig leg area/new leg area)로 증강됩니다. 이 계수는 보상 신호에 곱해지며, 작은 다리를 선호하게 만듭니다.

단순한 BipedalWalker에서는 다리 면적이 원래 설계의 8%까지 줄었고, 비증강 평균 점수는 323±68입니다. BipedalWalkerHardcore-v2에서는 더 작은 구조로 장애물을 넘기 어려워 면적이 원래의 27%이며 점수는 312±69입니다.

![Figure 6: Agent rewarded for smaller legs for the task inBipedalWalker-v2 environment \[13\] (top). Agent learns the smallest pair of legs that still can solve B…](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-66b5de56354a3fcded7e40f53858817b.png?thumb=512)

**Figure 6** : Agent rewarded for smaller legs for the task inBipedalWalker-v2 environment \[13\] (top). Agent learns the smallest pair of legs that still can solve BipedalWalkerHardcore-v2 (bottom).

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 독립 실행에서의 결과 분포

10회 독립 실행에서 Ant의 평균 점수는 3139±189.3이고, Ant + Morphology의 평균 점수는 5267±631.4입니다. 이 비교는 시드가 다른 실행 결과의 분포를 보여 줍니다. BipedalWalker 계열도 같은 10회 실행 요약으로 보고됩니다.

![Table 3: Summary of results for each experiment over 10 independent runs](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-3c0a3969a8916c4d58e19e71794bf3d5.png?thumb=512)

**Table 3** : Summary of results for each experiment over 10 independent runs.

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

이 결과는 몸체 학습이 여러 실행에서 평균 점수를 높이는 경향을 보여 줍니다. 다만 BipedalWalkerHardcore 계열에서는 차이의 폭이 실행별 분산과 함께 읽어야 합니다.

![Table 4: Full results from each of the 10 experimental trials. Each number is the average score of the trained agent over 100 rollouts in the environment](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df/figures/figure-d425f5b233196deac8e5155e7313e6a0.png?thumb=512)

**Table 4** : Full results from each of the 10 experimental trials. Each number is the average score of the trained agent over 100 rollouts in the environment.

[원문](https://arxiv.org/abs/1810.03779v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · David Ha · Reinforcement Learning for Improving Agent Design · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

현재 방법은 몸체의 기존 설계 속성만 최적화합니다. 완전히 새로운 형태를 탐색하는 진화 기반 설계와는 다르며, 이 논문은 그러한 탐색을 수행하지 않았습니다.

또한 제약 없이 탐색하면 시뮬레이션 환경을 악용하는 비현실적 설계가 나올 수 있다고 저자들은 지적합니다. 원문에서 설계 범위를 ±75%로 제한한 이유가 여기에 있습니다. 따라서 결과는 제한된 설계 공간과 특정 시뮬레이션 과제에 대한 것입니다.

## 논문 정보

- **저자**: David Ha
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2018년 10월 9일
- **등록일**: 2026년 11월 6일
- **수정일**: 2019년 12월 2일
- **버전**: v3
- **arXiv**: 1810.03779
- **DOI**: 10.1162/artl\_a\_00301
- **분류**: cs.LG · stat.ML
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/1810.03779v3) · [원문 PDF ↗](https://arxiv.org/pdf/1810.03779v3)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

In many reinforcement learning tasks, the goal is to learn a policy to manipulate an agent, whose design is fixed, to maximize some notion of cumulative reward. The design of the agent's physical structure is rarely optimized for the task at hand. In this work, we explore the possibility of learning a version of the agent's design that is better suited for its task, jointly with the policy. We propose an alteration to the popular OpenAI Gym framework, where we parameterize parts of an environment, and allow an agent to jointly learn to modify these environment parameters along with its policy. We demonstrate that an agent can learn a better structure of its body that is not only better suited for the task, but also facilitates policy learning. Joint learning of policy and structure may even uncover design principles that are useful for assisted-design applications. Videos of results at https://designrl.github.io/

## 원문 인용

David Ha (2018). Reinforcement Learning for Improving Agent Design. arXiv:1810.03779v3. https://doi.org/10.1162/artl\_a\_00301

**BibTeX**

```
@article{ha2018reinforcement,
  title = {{Reinforcement Learning for Improving Agent Design}},
  author = {David Ha},
  year = {2018},
  eprint = {1810.03779},
  archivePrefix = {arXiv},
  doi = {10.1162/artl_a_00301},
  url = {https://arxiv.org/abs/1810.03779v3}
}
```

## 이 논문의 용어

- [REINFORCE](https://refivu.com/terms/08aa24320e81-reinforce)
- [CMA-ES](https://refivu.com/terms/4165774f7c53-cma-es)
- [OpenAI Gym](https://refivu.com/terms/282eddeda3d8-openai-gym)
- [A3C](https://refivu.com/terms/1c4cb426dcf9-a3c)
- [rollout](https://refivu.com/terms/ddccc83dcaf8-rollout)
- [average score](https://refivu.com/terms/71e9dee72a32-average-score)
- [expected cumulative reward](https://refivu.com/terms/bb3eeb616000-expected-cumulative-reward)
- [Population-based training](https://refivu.com/terms/d302d0e4dd80-population-based-training)

## 다른 논문 해설

- [A Survey on Offline Reinforcement Learning: Taxonomy, Review, and Open Problems](https://refivu.com/papers/69527e29-6b8a-4f07-bd11-48a71ae795cb-a-survey-on-offline-reinforcement-learning-taxonomy-review.md)
- [Deep Reinforcement Learning Based Intelligent Reflecting Surface for Secure Wireless Communications](https://refivu.com/papers/7f104da3-3d98-4ecd-95d9-a25944d61e36-deep-reinforcement-learning-based-intelligent-reflecting.md)
- [Reinforcement Learning Based Quantum Circuit Optimization via ZX-Calculus](https://refivu.com/papers/9c8e6aa3-4291-4395-9813-828baebb2513-reinforcement-learning-based-quantum-circuit-optimization.md)
- [Reinforcement Learning Enables Autonomous Microrobot Navigation and Intervention in Simulated Blood Capillaries](https://refivu.com/papers/b9ae767b-8329-4e10-b4ff-ff861e429084-reinforcement-learning-enables-autonomous-microrobot.md)
- [Multiagent Reinforcement Learning in Enhancing Resilience of Microgrids under Extreme Weather Events](https://refivu.com/papers/c58dc10c-5e05-4c09-86c1-8b6189cb1f80-multiagent-reinforcement-learning-in-enhancing-resilience-of.md)
- [Safety-aware Causal Representation for Trustworthy Offline Reinforcement Learning in Autonomous Driving](https://refivu.com/papers/405e85e8-5f04-4315-a8f3-fb9bf2c907d9-safety-aware-causal-representation-for-trustworthy-offline.md)
- [Explainability for Large Language Models: A Survey](https://refivu.com/papers/b3acf8e8-790e-4e5c-b4f9-9a9d779bf843-explainability-for-large-language-models-a-survey.md)
- [Training Tips for the Transformer Model](https://refivu.com/papers/f2437599-de07-4bc9-b659-4823dff3be26-training-tips-for-the-transformer-model.md)
- [Self-supervised Learning: Generative or Contrastive](https://refivu.com/papers/f29652bc-588e-4c10-accc-3c3ba6c23453-self-supervised-learning-generative-or-contrastive.md)
- [Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval](https://refivu.com/papers/624b0d3d-2626-449c-9b8d-15b795867446-retrieval-pretrained-transformer-long-range-language.md)
- [Writer Identification and Writer Retrieval Based on NetVLAD with Re-ranking](https://refivu.com/papers/5c507cda-3490-4660-8811-36c766c434c8-writer-identification-and-writer-retrieval-based-on-netvlad.md)
- [Reinforced Prompt Personalization for Recommendation with Large Language Models](https://refivu.com/papers/27afc2ea-b641-4b86-8888-206972777f90-reinforced-prompt-personalization-for-recommendation-with.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/4bc30a90-2f0e-4622-b421-e114385fe7df-reinforcement-learning-for-improving-agent-design)
