# Hierarchical Program-Triggered Reinforcement Learning Agents For Automated Driving

자동 주행을 위한 계층형 프로그램 트리거 강화학습 에이전트

Briti Gangopadhyay, Harshit Soora, Pallab Dasgupta · arXiv · 2021년 3월 25일

- **연구 문제** 자율주행에서 단일 심층 강화학습 정책은 성능은 있으나 해석과 검증이 어렵습니다.
- **연구 방법** HPRL은 구조화된 프로그램이 기동별 RL 에이전트를 트리거하고, 안전 명세를 프로그램에 내장해 검증 대상을 프로그램으로 옮깁니다.
- **주요 결과** 교차로 예시에서 Hierarchical DQN과 Flat DQN보다 HPRL이 과제를 더 적은 학습 단계로 완료했다고 보고되며, NHTSA 기반 사고 전 시나리오 10개를 테스트했습니다.

## 문제 설정: 해석과 검증이 어려운 주행 RL

자율주행에 강화학습 에이전트를 쓰면 부드럽고 사람 같은 주행이 가능하지만, 단일 심층 강화학습 정책은 해석과 검증이 어렵습니다. 논문은 이 검증·인증의 병목을 출발점으로 삼습니다. 또한 주행은 여러 기동이 이어지는 과정이라 희소 보상 문제가 생기고, 신경망 정책은 기능 안전을 보장하기 어렵다고 설명합니다. 이 논문은 단일 정책을 여러 하위 기동 에이전트로 나누고, 이를 구조화된 프로그램이 트리거하는 방식으로 그 문제를 다룹니다. 범위는 교차로 우회전 예시와 CARLA에서 구성한 NHTSA 기반 사고 전 시나리오입니다.

## HPRL의 구조: 기동별 에이전트와 프로그램 트리거

HPRL은 주행 과제를 직진, 우회전, 좌회전, 차선 변경 같은 기동으로 나누고 각 기동을 DQN 또는 DDPG 에이전트로 학습합니다. 각 에이전트는 기동에 맞는 관측 공간, 제한된 행동 공간과 보상 함수를 가집니다. 실행 시점에는 구조화된 프로그램 P가 CARLA 경로 계획기의 하위 경로 목록을 받아 적절한 에이전트를 호출하고 주기적으로 상태를 점검합니다. 교차로 예시에서는 신호등 정지 같은 규칙 기반 동작을 프로그램이 직접 처리하고, 우회전 에이전트는 신호가 바뀐 뒤에만 실행됩니다. 따라서 학습은 기동 수준에서 이루어지고, 과제의 순서와 안전 판단은 프로그램 수준에서 이루어집니다.

![Figure 1: (a) The Hierarchical Program triggered Reinforcement Learning (HPRL) Framework. The right side of the ﬁgure depicts the asynchronous training of RL a…](https://refivu.com/papers/236a0dd0-ee43-497c-8c5c-067c8a565af9/figures/figure-a707f0d02d977194ebe077bbe1704996.png?thumb=512)

**Figure 1** : (a) The Hierarchical Program triggered Reinforcement Learning (HPRL) Framework. The right side of the ﬁgure depicts the asynchronous training of RL agents with individual observation/action space and reward signal. The left part depicts the program-controlled execution of a driving task where the program checks for functional safety and triggers RL agents as per route plan generated by the mission planner or as per control strategy recommended by safety module. (b) State machine for right turn manoeuvre at a 4-way trafﬁc light controlled intersection without any dynamic objects as described in example IV-A

[원문](https://arxiv.org/abs/2103.13861v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Briti Gangopadhyay, Harshit Soora, Pallab Dasgupta · Hierarchical Program-Triggered Reinforcement Learning Agents For Automated Driving · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

![Table I: Architecture, Hyper-parameters and action range for the DQN and DDPG agents. The throttle value ranges from 0 to +1 and steering value ranges from -1…](https://refivu.com/papers/236a0dd0-ee43-497c-8c5c-067c8a565af9/figures/figure-ab021d9e0d06d8faf37d4e7972bddee3.png?thumb=512)

**원문 그림** Table I: Architecture, Hyper-parameters and action range for the DQN and DDPG agents. The throttle value ranges from 0 to +1 and steering value ranges from -1 to +1 which have been restricted for different agents. The action space has been discretized for DQN Agents and is continuous for DDPG Agents.

[원문](https://arxiv.org/abs/2103.13861v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Briti Gangopadhyay, Harshit Soora, Pallab Dasgupta · Hierarchical Program-Triggered Reinforcement Learning Agents For Automated Driving · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 안전 명세와 안전 래퍼

프로그램 P는 RL 에이전트의 추천 제어 값을 그대로 쓰지 않고, check\_functional\_safety를 통해 안전 명세를 확인합니다. 명세 위반이 탐지되면 safe\_control이 RL 추천 대신 제어 값을 적용합니다. 논문은 신호등이 빨간색일 때 제동을 걸고 조향과 스로틀을 0으로 두는 예를 듭니다. 명세는 LTL로 기술하며, 예를 들어 빨간 신호에서 정지 상태를 유지하는 성질, 선행 차량과의 거리 유지, 교차로 우선순위와 차선 변경의 공간 여유 조건이 포함됩니다. 해제 연산자 R은 논문이 수정해 사용한 버전이며, 과거에 φ1이 발생했다면 φ2가 항상 성립할 필요가 없도록 정의합니다.

## Nagini 기반 임베디드 assertion 검증

논문은 LTL 명세를 Nagini에서 검증할 수 있는 임베디드 assertion으로 옮깁니다. Nagini는 정적으로 타입이 지정된 Python 프로그램을 검증하는 도구이므로, 프로그램 P의 모듈을 정적 타입 형태로 바꾼 뒤 assertion을 붙입니다. 예를 들어 선행 차량 거리 명세에서는 is\_vehicle\_hazard가 거리 임계 이하에서 위험을 True로 설정하고, emergency\_stop이 브레이크 1.0과 조향·스로틀 0.0을 적용함을 assertion으로 기술합니다. 다만 이 검증은 제시된 명세와 구현된 assertion의 대응을 확인하는 것이며, 논문이 모든 LTL 명세를 자동 변환했다는 뜻은 아닙니다.

## 샘플 효율과 시나리오 결과

교차로 과제에서 Flat DQN과 Hierarchical DQN은 HPRL보다 과제를 완료하는 데 더 많은 학습 단계가 필요하다고 보고됩니다. 이 비교는 4-way 교차로의 직진 후 우회전 과제이며, Hierarchical DQN은 직진 DQN과 우회전 DQN 사이에서 선택하도록 학습됩니다. 또한 HPRL은 CARLA에서 모델링한 NHTSA 기반 사고 전 시나리오 10개와 랜덤 교통이 있는 긴 경로 과제에서 테스트되었습니다. Nagini 검증은 50.71s가 걸렸고 Z3 백엔드에서 18,477 clauses가 생성되었다고 보고됩니다. 이 수치는 특정 검증 설정의 측정이며, 학습 성능이나 실시간 비용으로 일반화하지 않습니다.

![Figure 2: (a) Comparison between individual agents learning separate policies, Hierarchical DQN choosing between two policies and ﬂat DQN learning the overall…](https://refivu.com/papers/236a0dd0-ee43-497c-8c5c-067c8a565af9/figures/figure-6e68c6599a9ad498048f21c8b4710f0e.png?thumb=512)

**Figure 2** : (a) Comparison between individual agents learning separate policies, Hierarchical DQN choosing between two policies and ﬂat DQN learning the overall policy for task IV-A. (b) Average Rewards per step for all manoeuvre speciﬁc DQN models (c) HPRL agent tested on scenarios inspired by NHTSA pre-crash scenarios in CARLA and route based tasks with random trafﬁc and scenarios. The scenario descriptions are at Table at II and simulation video links are available \[33\] (d) Actor Loss, Critic Loss for DDPG straight driving model and Average Reward for DDPG straight, right turn and left lane change models

[원문](https://arxiv.org/abs/2103.13861v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Briti Gangopadhyay, Harshit Soora, Pallab Dasgupta · Hierarchical Program-Triggered Reinforcement Learning Agents For Automated Driving · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

![Table II: Description of the test scenarios along with the triggered agents and assertions. The simulation videos are available at \[33\]](https://refivu.com/papers/236a0dd0-ee43-497c-8c5c-067c8a565af9/figures/figure-428809484ea9e5d8a2f69317a8479314.png?thumb=512)

**원문 그림** Table II: Description of the test scenarios along with the triggered agents and assertions. The simulation videos are available at \[33\]

[원문](https://arxiv.org/abs/2103.13861v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Briti Gangopadhyay, Harshit Soora, Pallab Dasgupta · Hierarchical Program-Triggered Reinforcement Learning Agents For Automated Driving · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 남은 과제

논문이 밝힌 한계는 DRL 에이전트의 세분성입니다. 저자들은 제동과 조향 같은 더 낮은 수준으로 에이전트를 나누면 기동 사이의 전환을 더 부드럽게 만들 수 있다고 향후 과제로 제시합니다. 또한 안전 명세를 DRL 에이전트에 직접 내장해 별도의 안전 셸을 없애는 방향도 아직 연구 과제입니다. 따라서 현재 검증은 프로그램 수준의 명세와 제시된 시나리오에 한정되며, 이 결과만으로 모든 주행 상황의 안전을 보장한다고 볼 수는 없습니다.

## 논문 정보

- **저자**: Briti Gangopadhyay, Harshit Soora, Pallab Dasgupta
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 3월 25일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 3월 25일
- **버전**: v1
- **arXiv**: 2103.13861
- **DOI**: 10.1109/tits.2021.3096998
- **분류**: cs.AI · cs.LG · cs.NE
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Recent advances in Reinforcement Learning (RL) combined with Deep Learning (DL) have demonstrated impressive performance in complex tasks, including autonomous driving. The use of RL agents in autonomous driving leads to a smooth human-like driving experience, but the limited interpretability of Deep Reinforcement Learning (DRL) creates a verification and certification bottleneck. Instead of relying on RL agents to learn complex tasks, we propose HPRL - Hierarchical Program-triggered Reinforcement Learning, which uses a hierarchy consisting of a structured program along with multiple RL agents, each trained to perform a relatively simple task. The focus of verification shifts to the master program under simple guarantees from the RL agents, leading to a significantly more interpretable and verifiable implementation as compared to a complex RL agent. The evaluation of the framework is demonstrated on different driving tasks, and NHTSA precrash scenarios using CARLA, an open-source dynamic urban simulation environment.

## 원문 인용

Briti Gangopadhyay, Harshit Soora, Pallab Dasgupta (2021). Hierarchical Program-Triggered Reinforcement Learning Agents For Automated Driving. arXiv:2103.13861v1. https://doi.org/10.1109/tits.2021.3096998

**BibTeX**

```
@article{gangopadhyay2021hierarchical,
  title = {{Hierarchical Program-Triggered Reinforcement Learning Agents For Automated Driving}},
  author = {Briti Gangopadhyay and Harshit Soora and Pallab Dasgupta},
  year = {2021},
  eprint = {2103.13861},
  archivePrefix = {arXiv},
  doi = {10.1109/tits.2021.3096998},
  url = {https://arxiv.org/abs/2103.13861v1}
}
```

## 이 논문의 용어

- [Markov Decision Process](https://refivu.com/terms/5d622f56f22a-markov-decision-process)
- [Deep Deterministic Policy Gradient](https://refivu.com/terms/9de3b312f82e-deep-deterministic-policy-gradient)
- [ε-greedy policy](https://refivu.com/terms/b587a0abe9f8-greedy-policy)
- [CARLA](https://refivu.com/terms/db2ec89b1280-carla)
- [Deep Q Learning](https://refivu.com/terms/0ae0d143bd84-deep-q-learning)
- [Hierarchical Reinforcement Learning](https://refivu.com/terms/ac53f8bbd511-hierarchical-reinforcement-learning)
- [Linear Temporal Logic](https://refivu.com/terms/943ebb8a0419-linear-temporal-logic)

## 다른 논문 해설

- [Addressing Function Approximation Error in Actor-Critic Methods](https://refivu.com/papers/88b36232-904a-4e73-a6d0-c363af4ff547-addressing-function-approximation-error-in-actor-critic.md)
- [Dueling Network Architectures for Deep Reinforcement Learning](https://refivu.com/papers/9ab4aa94-b111-4c78-9b27-cec02635ef27-dueling-network-architectures-for-deep-reinforcement.md)
- [Reinforcement Learning Control of a Biomechanical Model of the Upper Extremity](https://refivu.com/papers/d3c3656b-17a6-41e2-85da-f1cb3ee9cc1f-reinforcement-learning-control-of-a-biomechanical-model-of.md)
- [Prioritized Experience Replay](https://refivu.com/papers/eb45d234-3a97-4b83-a45a-70c8f675b136-prioritized-experience-replay.md)
- [Deep reinforcement learning for flow control exploits different physics for increasing Reynolds-number regimes](https://refivu.com/papers/d0658293-8b1a-4259-bf0b-2a21690a7823-deep-reinforcement-learning-for-flow-control-exploits.md)
- [Neurosymbolic Reinforcement Learning and Planning: A Survey](https://refivu.com/papers/8ec66cdc-97be-4a1f-b0af-9c353d3464ef-neurosymbolic-reinforcement-learning-and-planning-a-survey.md)
- [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://refivu.com/papers/805208af-12ea-4b4b-b1a8-6db7601b1c37-sentence-bert-sentence-embeddings-using-siamese-bert.md)
- [Generative Spoken Dialogue Language Modeling](https://refivu.com/papers/be19b5cf-8acb-438c-a9c6-9a9ddd759fc3-generative-spoken-dialogue-language-modeling.md)
- [Electrokinetic Propulsion for Electronically Integrated Microscopic Robots](https://refivu.com/papers/33eef0bb-ba7c-4dbd-b743-ad5744da0d36-electrokinetic-propulsion-for-electronically-integrated.md)
- [Hindsight Experience Replay](https://refivu.com/papers/582040c2-0070-4d83-904a-97d112d29239-hindsight-experience-replay.md)
- [SGDR: Stochastic Gradient Descent with Warm Restarts](https://refivu.com/papers/69cc99a3-59f2-4776-b5e2-a3baaeb53f0c-sgdr-stochastic-gradient-descent-with-warm-restarts.md)
- [Bayesian Physics-Informed Neural Networks for real-world nonlinear dynamical systems](https://refivu.com/papers/1a36fba7-7ed7-4ec9-8082-143060f17aa6-bayesian-physics-informed-neural-networks-for-real-world.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/236a0dd0-ee43-497c-8c5c-067c8a565af9-hierarchical-program-triggered-reinforcement-learning-agents)
