# Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving

자율주행 의사결정을 위한 트랜스포머 기반 장면 표현 학습으로 강화학습 증강

Haochen Liu, Zhiyu Huang, Xiaoyu Mo, Chen Lv · arXiv · 2022년 8월 24일

- **연구 문제** 도시 자율주행 강화학습은 샘플 효율이 낮고 이질적인 장면 정보를 표현하기 어렵다는 문제가 있습니다.
- **연구 방법** Scene-Rep Transformer는 다단계 Transformer로 상호작용을 인코딩하고, 학습 중 SLT로 미래 예측 정보를 잠재 표현에 증류한 뒤 SAC로 의사결정합니다.
- **주요 결과** 다섯 개 도시 시나리오의 학습과 테스트에서 제안 방법은 비교 기준보다 높은 성공률과 낮은 충돌률을 보였습니다.

## 도시 자율주행 강화학습의 샘플 효율과 상태 표현 문제

도시 자율주행의 의사결정은 교통 참여자의 확률적 상호작용과 복잡한 도로 구조 때문에 어렵습니다. 강화학습 기반 방법은 이런 상황을 다룰 수 있는 가능성이 있지만, 학습에 필요한 상호작용 샘플이 많고 적응성이 낮다는 문제가 있습니다. 특히 무신호 좌회전이나 밀집 교통의 분기 도로처럼 상황이 복잡해질수록 학습 부담이 커집니다.

또 하나의 병목은 상태 표현입니다. 도시 주행의 상태에는 교통 흐름의 동적 특징, 에이전트 사이의 잠재 상호작용, 도로 구조가 함께 들어가야 합니다. 이 논문은 이 이질적인 정보를 상호작용 관계로 인코딩하고, 미래 예측 정보를 잠재 표현에 담아 정책 학습의 탐색 공간을 줄이는 방향을 제안합니다.

## Scene-Rep Transformer의 구성과 학습 흐름

제안 방법은 MST, SLT, SAC의 세 부분으로 구성됩니다. MST는 상태 st를 잠재 표현 ht로 변환하는 인코더이며, 과거 운동 상태 Mt와 후보 경로 웨이포인트 Kt를 입력으로 받습니다. SAC 의사결정 모듈은 이 ht를 입력으로 받아 목표 속도와 차선 변경 명령을 출력합니다.

![Figure 1: An overview of our RL decision-making framework with Scene-Rep Transformer. Given perception-processed vectorized scene inputs, the multi- stage Tran…](https://refivu.com/papers/3c0c6c58-cf87-40e9-b790-2f8d3e3d6f7c/figures/figure-6da7086e2e7e8026acbfc89aec3132e6.png?thumb=512)

**Fig. 1** . An overview of our RL decision-making framework with Scene-Rep Transformer. Given perception-processed vectorized scene inputs, the multi- stage Transformer (MST) encodes the multi-modal information with interaction awareness. During training, a sequential latent Transformer (SLT) performs representation learning using consecutive latent-action pairs to ensure future consistency. The soft-actor-critic (SAC) module takes the latent feature vector to make driving decisions for downstream planning and control tasks. Experiments are conducted in both hyper-realistic and interactive driving environments.

[원문](https://arxiv.org/abs/2208.12263v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haochen Liu, Zhiyu Huang, Xiaoyu Mo, Chen Lv · Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

MST는 동적 단계, 교차 모달 단계, 집계 단계, 출력 단계로 나뉩니다. 동적 단계는 자차와 주변 차량의 과거 운동과 웨이포인트를 시간축으로 인코딩하고, 교차 모달 단계는 주변 차량의 운동과 그 웨이포인트 사이의 상호작용을 모델링합니다. 집계 단계에서 이웃 정보를 자차 표현으로 모으고, 출력 단계에서 자차의 후보 경로를 질의하여 ht를 만듭니다. 각 교차 단계는 어텐션 연산과 잔차 연결을 사용합니다.

![Figure 2: An overview of the MST Structure. The urban scenario on the left side can be layered to explicit representations st as the historical motion states M…](https://refivu.com/papers/3c0c6c58-cf87-40e9-b790-2f8d3e3d6f7c/figures/figure-ab70fe725633f67ce13b705e3d8848f2.png?thumb=512)

**Fig. 2** . An overview of the MST Structure. The urban scenario on the left side can be layered to explicit representations st as the historical motion states Mt and candidate route waypoints Kt. The implicit layer for agent interactions is modeled in the subsequent multi-stage structure: 1) Dynamic level encodes Mt and Kt along temporal axis; 2) Cross-modality level models the interactions of neighbor agents, which are aggregated to the ego agent through 3) Aggregation level; 4) Output level adds the ego-waypoints and ego-neighbor interaction features to output the latent representation ht.

[원문](https://arxiv.org/abs/2208.12263v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haochen Liu, Zhiyu Huang, Xiaoyu Mo, Chen Lv · Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

SLT는 학습 중에만 사용되는 보조 모듈입니다. 증강된 미래 상태를 MST로 인코딩한 뒤 자기회귀 Transformer로 미래 잠재 표현을 예측하고, 투영된 표현 사이의 코사인 유사도 기반 Similarity Loss로 현재 표현을 정제합니다. 추론에서는 MST와 의사결정 모듈만 사용됩니다.

![Figure 5: The computational flow of Sequential Latent Transformer. Sequential consistent features among future horizons Tf are captured through this Siamese ne…](https://refivu.com/papers/3c0c6c58-cf87-40e9-b790-2f8d3e3d6f7c/figures/figure-93b0dfd239023a93e83282be53bc9d53.png?thumb=512)

**Fig. 5** . The computational flow of Sequential Latent Transformer. Sequential consistent features among future horizons Tf are captured through this Siamese network structure. All augmented future states are encoded by MST Φ. It then follows a sequential representation learning with representation transition model T and acquires projected similarity loss Lglb for this auxiliary task. Proof for SLT framework can be found at Theorem 1

[원문](https://arxiv.org/abs/2208.12263v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haochen Liu, Zhiyu Huang, Xiaoyu Mo, Chen Lv · Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Figure 6: The structure of the Transformer-based transition model T . It is a temporal Transformer decoder given concatenated input of ht, at for each timestep…](https://refivu.com/papers/3c0c6c58-cf87-40e9-b790-2f8d3e3d6f7c/figures/figure-1b0b29cd50c6bf3743c92e25459f603b.png?thumb=512)

**Fig. 6** . The structure of the Transformer-based transition model T . It is a temporal Transformer decoder given concatenated input of ht, at for each timestep, and the output is representation predictions for the next step as an auto-regressive way for projections and predictions.

[원문](https://arxiv.org/abs/2208.12263v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haochen Liu, Zhiyu Huang, Xiaoyu Mo, Chen Lv · Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 시나리오와 비교 조건, 평가 지표

검증은 CARLA의 Town-10 무신호 교차로 시나리오와 SMARTS의 무신호 좌회전, 이중 합류, 회전교차 시나리오에서 수행되었습니다. 각 방법은 다섯 개 도시 시나리오에서 100,000 학습 스텝 동안 학습되었고, 실험은 5개의 랜덤 시드로 반복되었습니다.

![Figure 7: The interactive scenario in CARLA Town-10. a) The devised left- turn scenario with both vehicles and pedestrians; b) Bird’s eye view of the task sett…](https://refivu.com/papers/3c0c6c58-cf87-40e9-b790-2f8d3e3d6f7c/figures/figure-3f8164ebae0ed17f8046c7c3890cf006.png?thumb=512)

**Fig. 7** . The interactive scenario in CARLA Town-10. a) The devised left- turn scenario with both vehicles and pedestrians; b) Bird’s eye view of the task settings. The red line indicates an example ego trajectory. The white lines denote the possible interactive trajectories for social actors (vehicles and pedestrians).

[원문](https://arxiv.org/abs/2208.12263v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haochen Liu, Zhiyu Huang, Xiaoyu Mo, Chen Lv · Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Figure 8: The designed urban experimental scenarios in SMARTS simulator platform. a) Unprotected left turn; b) Roundabout; c) Double merging. The green color r…](https://refivu.com/papers/3c0c6c58-cf87-40e9-b790-2f8d3e3d6f7c/figures/figure-20176e9c7240669a9d6e1d94df129012.png?thumb=512)

**Fig. 8** . The designed urban experimental scenarios in SMARTS simulator platform. a) Unprotected left turn; b) Roundabout; c) Double merging. The green color renders the viable area for the ego vehicle to reach the target. The red dots offer an example from the starting route to the task target

[원문](https://arxiv.org/abs/2208.12263v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haochen Liu, Zhiyu Huang, Xiaoyu Mo, Chen Lv · Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

주요 지표는 학습 중 평균 성공률이며, 테스트에서는 성공률, 충돌률, 정체율을 함께 봅니다. 비교 기준으로는 이미지 기반 DrQ, SAC, PPO, 규칙 기반 운전 모델 RDM, Decision Transformer가 사용되었습니다. 보상은 목표 도달에 1, 충돌 또는 경로 이탈에 -1을 주는 희소 목표 기반 보상입니다.

## 학습 성능과 테스트 결과

학습 곡선에서 제안 방법은 다섯 개 도시 시나리오 모두에서 가장 높은 학습 성능을 보였다고 보고됩니다. 특히 더 복잡한 시나리오인 회전교차 C, 무신호 좌회전, 이중 합류에서 성공률 향상이 두드러집니다. 원문은 제안 방법이 최종 성공률의 70%에서 80%에 전체 학습 스텝의 절반 안에 도달한다고 보고합니다.

테스트 결과에서도 제안 방법은 다섯 시나리오 모두에서 가장 높은 성공률을 보였고, 충돌 사례가 적었습니다. 예를 들어 무신호 좌회전에서 성공률 94%, 충돌률 4%이며, 이중 합류에서는 성공률 96%, 충돌률 2%입니다. 완료 시간 측정에서도 여러 시나리오에서 효율이 개선되었습니다. 다만 이 결과는 SMARTS 시나리오의 측정이며, 저자는 CARLA에서는 성능 저하가 있었다고 보고합니다.

## CARLA 결과와 적용 범위

CARLA에서는 결과가 SMARTS 좌회전 시나리오보다 낮게 나타났으며, 저자들은 이 성능 저하가 상호작용 참여자들의 교착 상태 가능성 때문이라고 해석합니다. 이 해석은 저자의 설명이며, 본 요약에서는 원인을 직접 측정한 결과로 취급하지 않습니다.

또한 SLT는 학습 중에만 사용되므로 추론 비용은 MST와 의사결정 모듈로 한정됩니다. 이 결과는 제시된 시뮬레이터, 시나리오, 비교 기준과 랜덤 시드 조건에서 얻은 것입니다.

## 논문 정보

- **저자**: Haochen Liu, Zhiyu Huang, Xiaoyu Mo, Chen Lv
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2022년 8월 24일
- **등록일**: 2026년 11월 6일
- **수정일**: 2023년 8월 25일
- **버전**: v3
- **arXiv**: 2208.12263
- **분류**: cs.LG · cs.AI · cs.RO
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Decision-making for urban autonomous driving is challenging due to the stochastic nature of interactive traffic participants and the complexity of road structures. Although reinforcement learning (RL)-based decision-making scheme is promising to handle urban driving scenarios, it suffers from low sample efficiency and poor adaptability. In this paper, we propose Scene-Rep Transformer to improve the RL decision-making capabilities with better scene representation encoding and sequential predictive latent distillation. Specifically, a multi-stage Transformer (MST) encoder is constructed to model not only the interaction awareness between the ego vehicle and its neighbors but also intention awareness between the agents and their candidate routes. A sequential latent Transformer (SLT) with self-supervised learning objectives is employed to distill the future predictive information into the latent scene representation, in order to reduce the exploration space and speed up training. The final decision-making module based on soft actor-critic (SAC) takes as input the refined latent scene representation from the Scene-Rep Transformer and outputs driving actions. The framework is validated in five challenging simulated urban scenarios with dense traffic, and its performance is manifested quantitatively by the substantial improvements in data efficiency and performance in terms of success rate, safety, and efficiency. The qualitative results reveal that our framework is able to extract the intentions of neighbor agents to help make decisions and deliver more diversified driving behaviors.

## 원문 인용

Haochen Liu, Zhiyu Huang, Xiaoyu Mo, Chen Lv (2022). Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving. arXiv:2208.12263v3. https://arxiv.org/abs/2208.12263v3

**BibTeX**

```
@misc{liu2022augmenting,
  title = {{Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving}},
  author = {Haochen Liu and Zhiyu Huang and Xiaoyu Mo and Chen Lv},
  year = {2022},
  eprint = {2208.12263},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.12263v3}
}
```

## 이 논문의 용어

- [success rate](https://refivu.com/terms/0964df1dc5eb-success-rate)
- [Proximal Policy Optimization](https://refivu.com/terms/59b59e5d0f9d-proximal-policy-optimization)
- [InfoNCE](https://refivu.com/terms/9909993ddc7f-infonce)
- [multi-head attention](https://refivu.com/terms/370ae5c971cd-multi-head-attention)
- [soft actor-critic](https://refivu.com/terms/679e5678c588-soft-actor-critic)
- [information bottleneck](https://refivu.com/terms/a3cb119534db-information-bottleneck)
- [CARLA](https://refivu.com/terms/db2ec89b1280-carla)
- [Decision Transformer](https://refivu.com/terms/1a1f41bc8425-decision-transformer)
- [Collision Rate](https://refivu.com/terms/767e1cc13a56-collision-rate)
- [Polyak averaging](https://refivu.com/terms/b7cb2d20ba46-polyak-averaging)
- [DrQ](https://refivu.com/terms/eac7093357df-drq)

## 다른 논문 해설

- [Self-Supervised Learning for Text Recognition: A Critical Survey](https://refivu.com/papers/ecc3e6b4-0ca9-4271-8560-57fcdcd977c3-self-supervised-learning-for-text-recognition-a-critical.md)
- [Generating and Weighting Semantically Consistent Sample Pairs for Ultrasound Contrastive Learning](https://refivu.com/papers/84798899-953e-4ae6-868c-8e58721c5f25-generating-and-weighting-semantically-consistent-sample.md)
- [C3-DINO: Joint Contrastive and Non-contrastive Self-Supervised Learning for Speaker Verification](https://refivu.com/papers/e91029ca-7f02-44fc-a3c9-ef4f63371494-c3-dino-joint-contrastive-and-non-contrastive-self.md)
- [A Study of the Generalizability of Self-Supervised Representations](https://refivu.com/papers/a06e4fc2-28c4-4e5c-950d-8f9baa0217c9-a-study-of-the-generalizability-of-self-supervised.md)
- [MacroNav: Multi-Task Context Representation Learning Enables Efficient Navigation in Unknown Environments](https://refivu.com/papers/574974d3-c1e8-441e-b1be-d6881d278f61-macronav-multi-task-context-representation-learning-enables.md)
- [Neighborhood Contrastive Transformer for Change Captioning](https://refivu.com/papers/792db475-3394-4f26-8183-cba0acb148eb-neighborhood-contrastive-transformer-for-change-captioning.md)
- [Synthetic Data Generation Using Large Language Models: Advances in Text and Code](https://refivu.com/papers/826d16ab-1186-4af9-a78c-d71fca81400c-synthetic-data-generation-using-large-language-models.md)
- [Input Decoupling of Lagrangian Systems via Coordinate Transformation: General Characterization and its Application to Soft Robotics](https://refivu.com/papers/6adddc86-083d-4114-8614-06223a8bfc55-input-decoupling-of-lagrangian-systems-via-coordinate.md)
- [Federated Learning for Connected and Automated Vehicles: A Survey of Existing Approaches and Challenges](https://refivu.com/papers/6f107d2a-2b46-4043-b6dc-2d2c7a5d340c-federated-learning-for-connected-and-automated-vehicles-a.md)
- [COLA-Net: Collaborative Attention Network for Image Restoration](https://refivu.com/papers/087fc75a-cd36-4a21-9ced-548a22716bc4-cola-net-collaborative-attention-network-for-image.md)
- [Federated Deep Reinforcement Learning for Open RAN Slicing in 6G Networks](https://refivu.com/papers/1dc7e619-4503-408b-8904-d324c0a87e48-federated-deep-reinforcement-learning-for-open-ran-slicing.md)
- ["Garbage In, Garbage Out" Revisited: What Do Machine Learning Application Papers Report About Human-Labeled Training Data?](https://refivu.com/papers/b9d2a096-4057-4a0d-af3f-1dcc32054d7a-garbage-in-garbage-out-revisited-what-do-machine.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/3c0c6c58-cf87-40e9-b790-2f8d3e3d6f7c-augmenting-reinforcement-learning-with-transformer-based)
