원시데이터 수집 시스템
선정목록으로

Reinforcement Learning from Simulation to Real World Autonomous Driving using Digital Twin

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Kevin L. Voogd — Faculty of Mechanical, Maritime and Materials Engineering, Technical University of Delft, 2628 CD Delft, The Netherlands|||Siemens Digital Industries Software, 3001 Leuven, Belgium
  2. Jean Pierre Allamaa — Siemens Digital Industries Software, 3001 Leuven, Belgium
  3. Javier Alonso–Mora — Faculty of Mechanical, Maritime and Materials Engineering, Technical University of Delft, 2628 CD Delft, The Netherlands
  4. Tong Duy Son — Siemens Digital Industries Software, 3001 Leuven, Belgium
DOI
10.1016/j.ifacol.2023.10.1846
저널
IFAC-PapersOnLine
발행년도
2023
발행기관
Elsevier BV
피인용수
22
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.ifacol.2023.10.1846
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4388903439

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

초록이 없습니다.

본문 30,242자

본문 펼치기
## Reinforcement Learning from Simulation to Real World Autonomous Driving using Digital Twin ⋆ Kevin L. Voogd <sup>_∗_</sup> Jean Pierre Allamaa <sup>_∗∗_</sup> Javier Alonso-Mora <sup>_∗_</sup> Tong Duy Son <sup>_∗∗_</sup> _∗_ _Faculty_ _of_ _Mechanical,_ _Maritime_ _and_ _Materials_ _Engineering,_ _Technical_ _University_ _of_ _Delft,_ _2628_ _CD_ _Delft,_ _The_ _Netherlands_ _(e-mail:_ _k.l.voogd@student.tudelft.nl,_ _j.alonsomora@tudelft.nl)._ _∗∗_ _Siemens_ _Digital_ _Industries_ _Software,_ _Leuven,_ _3001_ _Belgium_ _(e-mail:_ _<u>{jean.pierre.allamaa,</u>_ _son.tong}@siemens.com)_ Abstract: Reinforcement learning (RL) is a promising solution for autonomous vehicles to deal with complex and uncertain traffic environments. The RL training process is however expensive, unsafe, and time consuming. Algorithms are often developed first in simulation and then transferred to the real world, leading to a common sim2real challenge that performance decreases when the domain changes. In this paper, we propose a transfer learning process to minimize the gap by exploiting digital twin technology, relying on a systematic and simultaneous combination of virtual and real world data coming from vehicle dynamics and traffic scenarios. The model and testing environment are evolved from model, hardware to vehicle in the loop and proving ground testing stages, similar to standard development cycle in automotive industry. In particular, we also integrate other transfer learning techniques such as domain randomization and adaptation in each stage. The simulation and real data are gradually incorporated to accelerate and make the transfer learning process more robust. The proposed RL methodology is applied to develop a path following steering controller for an autonomous electric vehicle. After learning and deploying the real-time RL control policy on the vehicle, we obtained satisfactory and safe control performance already from the first deployment, demonstrating the advantages of the proposed digital twin based learning process. _Keywords:_ Learning and adaptation, autonomous vehicles, Sim2Real, reinforcement learning 1. INTRODUCTION Research on autonomous vehicles (AVs) has made significant progress with recent advances of deep learning (DL), especially on the vehicle perception stack. While there have been some encouraging results and demonstrations, the application of DL on the vehicle planning and control stacks are still limited. Deep reinforcement learning (DRL) is an approach to generate control strategies in sequential processes, and capable to automatically learn and adapt from data, robust to different operating conditions and tasks. This offers a more flexible and higher performance planning or control solution than traditional model-based control methods, which rely on well-defined mathematical model of the system. Recent DRL breakthroughs example include AlphaStar (Arulkumaran et al., 2019), a model designed to play StarCraft II and end-to-end autonomous lane keeping driving (Kendall et al., 2018). Despite the progress, further research and testing are crucial to realize the advantages of DRL, be implementable in real world and automotive industry standard (You et al., _⋆_ This work is part of FOCETA project that has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 956123 and ELO-X No 953348. 2019). The main DRL challenge is a safe and efficient training process and testing environment. DRL training is expensive, time consuming and involves with exploration of unsafe, risky situations. Training with physical car is not possible in real traffic legally and is often limited to closed tracks. Once may first train with collected human driving data and then deploy the controller in the physical world; however, the data misses out on critical scenarios that needed to robustify the controller. The alternative training environment is simulation, where virtually generated data is cheap and fast, already labeled, and includes a large number of critical scenarios. Still, virtual data lacks true real life properties and interactions. When a policy is trained in simulation and then deployed testing in the physical world, the performance differs, known as the sim2real transfer gap. This gap is caused by the simulation-optimization-bias where the controller exploits faults in the simulator and overestimates its performance compared to the target domain (Muratore et al., 2021). Other causes are model mismatch, noise, or actuation delays. In this paper, we propose a DRL training and testing environment relying on Digital Twin (DT). DT is a virtual representation of a physical product or process and being used across its development cycle to simulate and optimize the system’s performance and efficiency. In AVs, it comprises virtual models of vehicle dynamics, traffic scenarios and sensors. We also exploit closed-loop DT which provides bi-directional connectivity between the physical and the virtual data. In particular, the fidelity and complexity of models and environment are gradually evolved from model-in-the-loop (MiL) in simulation to hardware-in-theloop (HiL) with physical vehicle embedded controller and actuation components, and vehicle-in-the-loop (ViL) proving ground testing with a real Siemens Simrod drive-bywire car. The process provides a robust, high performance transfer learning, and easier for prediction and tuning. Note that this is also known as V-cycle in industry, being adapted to DRL development purpose. Finally, we combine with domain adaptation and domain randomization techniques to enhance the transfer learning process. The transferred controller is deployed in the real vehicle successfully without fine-tuning in the target domain. The contributions of this paper are: _•_ a zero-shot transfer learning approach that combines the advantages of virtual training with real-world data. The DRL agent is robust to different paths and model uncertainties, _•_ a reduction in the sim2real gap for autonomous driving applications. The RL agent is trained using a high-fidelity (HF) vehicle dynamics simulator and traffic scenario simulator with domain randomization and adaptation, _•_ a deployable algorithm on a real-time operating system and a validation framework in MiL, HiL and ViL minimizing the overall testing effort and cost. The paper is organized as follows. Section 2 summarizes related work on reinforcement learning for path following and sim2real methods. Section 3 reviews the background theory of RL, the vehicle model, and the transformations needed in domain adaptation. The experimental setup and the implementation details employed in this work are presented in Section 4.3, Section 5 provides a discussion on the results and concludes this work. 2. RELATED WORK _DRL and path following in autonomous driving:_ the first successful application of DRL in autonomous driving was achieved by Kendall et al. (2018), learning a control policy for lane-keeping from monocular images and training only in the physical world. Recent work by Alomari et al. (2021) claims to have developed a method that bridges the Sim2Real gap using a 3D vehicle dynamics simulator and parameter randomization, but the results are not validated in a real-time operating system. A similar study by Maramotti et al. (2022) focuses on a DRL planner using the single-track kinematic model and an additional neural network (NN) to simulate the state transition dynamics of the car. To speed up convergence, they pre-train the network with imitation learning and randomize the path and the vehicle’s initial state. Similarly, Jiang et al. (2022) uses NNs to model the vehicle dynamics and constraint weights and activation functions of the DRL algorithm to turn it into a convex optimization problem. However, the computational time is significant, making it unfeasible to deploy in a real-time application. _Sim2Real_ _methods:_ Domain adaptation (DA) maps features from the source domain to the target domain, and _vice versa_ or both, to a common latent space in an attempt to train the agent in a domain-independent framework. DA has been used to transform synthetic images or point clouds into realistic representations through generative adversarial networks (Pan et al., 2017). Other researchers argue that data representation is the main source of the transfer gap and propose to transform the representation to lidar maps (Wang et al., 2019) or bird-eye views (Ng et al., 2020). Domain randomization (DR) is a method in which the parameters of the source domain are randomized so that it contains the target domain in its distribution. This method is effective when used with domain-specific knowledge and results in a robust control policy to model uncertainties as performed in Allamaa et al. (2022) to automatically tune the controller parameters. Randomization techniques have been applied to vehicle dynamics and physical parameters such as masses, friction, (Peng et al., 2018), trajectories, or random forces (Pouyanfar et al., 2019). It has also been performed on sensor data where DR techniques to alter poses, textures, dimensions, or colors (OpenAI et al., 2019). Lastly, system identification is used to identify properties of dynamical systems based on experimental measurements, which are later used to simulate the process more accurately. In addition, a Digital Twin is a high-fidelity multiphysics model that uses the available models and sensors to recreate in simulation its real life counterpart. By combining this model with real-time data, it is possible to continuously predict the behavior of the vehicle in the most realistic way (Hartmann and van der Auweraer, 2020). We propose on a transfer learning approach to a realtime application that combines all the three techniques in a systematic way, together with using integrated highfidelity virtual and real-world data efficiently. 3. BACKGROUND This section introduces the theory of RL, the vehicle kinematic model used in this work and lastly, the calculatation of the deviations from the reference path. _3.1_ _Reinforcement_ _learning_ Formally, RL problems are formulated as Markov decision processes (MDPs). Specifically in autonomous driving, RL is used to solve the MDP for the optimal driving policy. At every step, the MDP is composed by the tuple ( _S, A, P, R, γ_ ), where _S_ and _A_ are the set of states and actions, respectively. In stochastic processes _P_ ( _st_ +1 _|st, at_ ) : _S_ _×_ _A_ _→_ [0 _,_ 1] is the transition probability function of entering the state _st_ +1 from state _st_ by taking the action _at_ . Moreover, MDPs have the property that the conditional probability of a future state depends only on the present state. _R_ : _S_ _× A × S_ _→_ R, is the reward function that maps the state _st_ in which the action _at_ is taken and the resulting state _st_ +1 into a scalar value . The action is chosen based on a policy _πθ_ ( _a|s_ ). In DRL, the policy is approximated with deep NNs with parameters _θ_ . Given stochastic transition and policy functions, the objective is to maximize the return _Rt_ over the trajectory, i.e. the expected reward: Fig. 1. Single-track model Fig. 2. Lateral deviation and yaw error calculation for the learning agent (gray). The deviation is computed w.r.t. the closest next observation (red). computing the shortest difference between angles. The lateral deviation ( _εd_ ) is calculated in (3) as: _J_ ( _π_ ) = _τ_ _P_ ( _τ_ _|π_ ) _Rt_ = E [ _Rt_ ] _._ (1) The policy that maximizes the objective _J_ ( _π_ ) is noted as _π_ <sup>_∗_</sup> . In addition, there are two other functions: the statevalue _V_ <sup>_π_</sup> ( _a|s_ ) function, which is the expected return of following the policy _πθ_ ( _at|st_ ) from state _s_ . The _Q_ <sup>_π_</sup> ( _a|s_ ) is the action-value function and maps the expected return of choosing an arbitrary action _a_ in state _s_ and then effectively follow the policy _π_ ( _·|s_ ). In this paper, we use the soft-actor critic (SAC) algorithm developed in Haarnoja et al. (2018), which is based on an actorcritic structure: the _actor_ selects the action of the agent and the _critic_ evaluates the action by approximating the _Qπ_ -function. SAC includes entropy regularization in its objective function to encourage exploration, preventing early convergence to bad local minima. Additionally, this algorithm is off-policy meaning that the _Qπ_ -function is learned from actions taken by a different policy than the current _π_ ( _a|s_ ). _3.2_ _Single-track_ _model_ The single-track bicycle model is a kinematic model of a four-wheeled vehicle (Fig. 1), in which the wheels at each axle are joined together. This model assumes a no-wheel slip condition. The length of the wheelbase is denoted as _L_, and the distances from the rear and front axle to the vehicle’s center of gravity (CoG) are _Lr_ and _Lf_, respectively. The vehicle’s linear and angular velocities measured in a global reference frame are: _x_ ˙ _cm_ = _v_ cos ( _θ_ + _β_ ) _y_ ˙ _cm_ = _v_ sin ( _θ_ + _β_ ) (2) _θ_ ˙ = _v/Rc,_ where _θ_ is the heading of the chassis with respect to the global frame and _β_ is the angle enclosed by _vcm_ and _v_ . With _β_ = arctan (( _Lr/L_ ) tan _δ_ ) and the CoG’s radius of rotation is _Rc_ = _L/_ (tan _δ_ cos _β_ ), the state variables can be described in terms of the inputs _δ_ and _v_ . _Lateral_ _and_ _deviation:_ In this work, we use a buffer of recorded virtual and real-world trajectories to represent the centerline of the path to be driven. We then calculate the heading and lateral deviations with respect to the closest next point in distance in such buffer. In Figure 2, the black vehicle represents the RL agent, and the red ones the logged data. The heading ( _εθ_ ) is calculated by [ _dx_ _dy_ 1] <sup>T</sup> = - _WE_ <sup>_H_</sup> - _T_ _,_ (3) - _−_ 1 � _W xS_ _W yS_ 1 where _S_ and _E_ are the subscripts for the learning agent and the closest next observation respectively, _W_ is the global frame, _dx_ is the longitudinal offset, _dy_ = _εd_ is the lateral deviation, and _H_ is the homogeneous transformation matrix. 4. DRL TRAINING AND TRANSFER LEARNING This section starts with a description of the training loop depicted in Figure 3 followed by a detailed explanation. First, different trajectories are recorded in simulation (Simcenter Prescan) and in the physical world and saved in the buffer. Training starts with the RL implementations (Raffin et al., 2021a) with simulated data. When the performance stops improving, real-world trajectories are included as the first step in DR to generalize on the noise level and dynamic driving style. The data is set in the error frame presented in Fig. 2 as an attempt for DA. The episodes start with a random initialization of the environment and vehicle states, the second component of DR. The output of the DRL algorithm, the control action, is sent to the 15 DoF high fidelity (HF) vehicle dynamics simulator. We use the digital twin of the Simrod available on Simcenter Amesim. The HF model includes a number of identified parameters that are also randomized, to account for the sim2real gap. This third level of DR allows for even more generalization and robustification in the transfer learning approach. The performance during training is evaluated regularly every 2500 steps in 4 randomly selected scenarios and random initial conditions. The metric used to evaluate is the average timestep reward. _Data_ _generation:_ the virtual data was generated in the Simcenter Prescan traffic scenario simulator at a frequency of 20 Hz with the same format as the real-world samples to facilitate the transition. The real-world samples were collected from a drive with the physical car Simrod in the company parking lot seen in Fig. 3. The data were collected with the high accuracy dGPS and stored in rosbags in the local Cartesian coordinate system. Fig. 3. Training of reinforcement learning policies using first synthetically generated data and a digital twin of the vehicle until performance settles. Then, real-world logged data is used. The predicted deviation is calculated with the single-track model. The initial states, the vehicle’s physical parameters, and the control action are randomized. _4.1_ _Reinforcement_ _learning_ _training_ _setup_ _State_ _space:_ The NN inputs are processed sensor readings: the position in a global reference frame and inertial measurements or virtually generated. These are the longitudinal speed of the vehicle _vx_, the heading error _εθ_, the lateral deviation _εd_ and their derivatives. The estimated lateral deviation with the single-track model for the next 10 timesteps is included, assuming that the speed and steering remain constant. In addition, the previous steering rate _δ_ <sup>˙</sup> and angle _δ_ are fed too. By providing the NN with states in the error frame, we benefit from the possibility to generalize any reference path with any center of the coordinate system. This allows training independently of the domain and task to be performed. _Action_ _space:_ The action generated by the policy network is the steering rate _δ_ <sup>˙</sup> saturated in the range [ _−_ 0 _._ 18 _,_ 0 _._ 18] rad/s. We opt for a generalized statedependent exploration (gSDE), where the noise is dependent on the state of the car for the entire duration of the episode (Raffin et al., 2021b). The steering rate is then integrated to obtain the steering angle. The longitudinal acceleration is computed with a PD controller. _Reward_ _function:_ the reward function depends on the heading error _εθ_, the lateral deviation _εd_, and the steering rate _δ_ <sup>˙</sup> . We propose a multiplication of the individual components and normalize them between 0 and 1 as shown next: ��1 _−_ _ε_ <sup>_<u>|</u>_</sup> _d_ <sup>_<u>ε</u>_</sup> max <sup>_<u>d|</u>_</sup> distribution. In addition. the initial deviation with respect to the path is changed every episode. _4.2_ _Implementation_ _details_ The DRL model is trained on a laptop with 64 GB of RAM, an Intel Xeon W-11855M processor, and an NVIDIA RTX A4000 laptop graphics card. The model used for training has 16 inputs, 6 layers, and only one output, and also has a linear decay on the learning rate. The preprocessing steps and the NN are C code generated and deployed to the embedded platform dSPACE MicroAutobox III, running the real-time controller that commands the SimRod to perform real-time control actions on the Simrod. _4.3_ _Experiments_ We train four different policies and then evaluate them in a standard V-cycle procedure satisfying the safety requirements: Model-in-the-loop (MiL), hardware-in-theloop (HiL), and vehicle-in-the-Loop (ViL). The evaluated policies are SAC-ST-RW, SAC-HF-VD, and SAC-HF-RW, which abide by the notation: trained only with virtual data (VD), fine-tuned with real-world data (RW), single-track model (ST), and high-fidelity model (HF). The SAC-STRW is evaluated with the higher-fidelity model. MiL allows for safe and extensively verify and validate the trained policies against possible edge cases, and actuator noise levels and provides initial performance metrics. This step enables a safe and cheaper transition to HiL and ViL levels. The learned policies are evaluated in real-world scenarios and are consistently evaluated at different initial deviations: _{−_ 1 _._ 25 _, −_ 1 _._ 0 _, −_ 0 _._ 5 _,_ 0 _._ 0 _,_ 0 _._ 5 _,_ 1 _._ 0 _,_ 1 _._ 5 _}_ meters but the vehicle’s physical parameters are kept constant to compare the performance under equal conditions. ViL is carried out in a closed parking lot in Leuven, Belgium. 5. RESULTS AND DISCUSSION In this section, we show the training results and present the evaluation of the MiL and ViL experiments. Figure _r_ = �1 _−_ _ε_ <sup>_<u>|</u>_</sup> _θ_ <sup>_<u>ε</u>_</sup> max <sup>_<u>θ|</u>_</sup> �� 1 _−|δ_ <sup>˙</sup> _|_ _._ (4) _Parameter_ _randomization:_ We randomize the digital twin physical parameters to robustify against modeling errors and uncertainties such as changing road conditions, the number of passengers, or delays. Consequently, we randomize the mass, the location of the center of gravity, the length of the wheelbase, the suspension, and the stiffness of the tire. Values are drawn from a normal ### 0 . 8 0 . 6 0 . 4 0 . 2 Virtual data Finetune with RW ### 0 0 . 5 1 1 . 5 2 2 . 5 3 3 . 5 Total training timesteps [-] ### · 10 5 Fig. 4. Training results for SAC-HF agent: the agent is first trained with virtual data and the best model is further fine-tuned with real-world data. SAC-VD SAC-RW SAC-ST 1 _._ 5 1 0 _._ 5 0 1 2 3 4 5 6 7 8 Scenario Fig. 5. MiL tracking performance of the DRL policies evaluated in eight different scenarios. 4 shows the average timestep reward of the SAC-HF-RW model, the best performing policy. The blue line shows the performance over time using only virtual data. Then, it is fine tuned with real-world data (red) as a component of the transfer learning methodology. There is a large decay (sim2real gap) when the data type is changed, showing the necessity of introducing such transfer learning logic, as the pre-trained model would have suffered from the sim2real gap. The model continues to train until settling in terms of performance. The model with the higher average return is evaluated in MiL and ViL. We observe a smaller variance during pretraining because the virtual scenarios are noise-free and simpler. These paths can be generated in millions and can speed up the pre-training phase, however, these are kinematic trajectories, which sometimes are not feasible for agents to track. Adding the real-world data afterward introduces dynamically possible curvature changes and state transitions. The amount of time required to perform 100000 timesteps with the high-fidelity model is 11.73 _±_ 0.35 hours. On the contrary, the kinematic bicycle model only requires 42.47 _±_ 0.13 minutes for the same number of steps. _5.1_ _Model-in-the-Loop_ _and_ _Hardware-in-the-Loop_ The results of the MiL experiments are shown in Fig. 5. In general, the SAC-ST model performs the best with an average error of 17.5 cm for all trajectories. The SACHF-RW model error is 26.3 cm, and then SAC-HF-VD 100 80 60 40 30 35 40 45 X [m] Fig. 6. MiL evaluations for the SAC-ST-RW agent with different initial deviations 65 60 55 Ref. trajectory SAC-HF-RW SAC-HF-VD SAC-ST-RW 40 60 80 100 X [m] Fig. 7. ViL evaluation in the same path for all agents with 62.1 cm. Since training scenarios are performed only in 2D and not in 3D, the HF model adds unnecessary complexity. In other words, since in MiL the target domain is still a simulator with predefined parameters, the policy tends to compromise performance for robustness. This is also the reason for using DR, as the learning agent tends to overtune in simulation, creating an SOB when transferring to the real-target domain. However, the ST performs worse than the HF model when dealing with a set of curves or higher-speed scenarios. The former is related to the fact that the executed steering angle is subjected to the assumption of a small steering motion and a large radius of curvature. We also noticed that using only virtual data with a HF model (SAC-HF-VD) is not enough for a performant transfer, hence the benefit of our proposed transfer learning approach. _5.2_ _Vehicle-in-the-Loop_ As the main objective of this work is to transfer the policy efficiently and in zero-shot between the domains, we validate it in the actual vehicle. To our surprise, the SAC-ST-RW decreases its performance considerably when transferred to the real target. Hence, the benefit of the safe transfer learning methodology is proven, as the SACST-RW does not account for a sim2real gap. The results are shown in Table 1, pointing out that the best model is the policy trained with the HF model with an average deviation of 35 cm for all paths. On the contrary, the average error for the ST model increases to 49 cm; for SACHF-VD, the error is 52.5 cm. We also compare the transfer gap by computing the ratio between the performance in ViL and MiL. The SAC-ST-RW model deviates 4.75, 1.55, Table 1. ViL results of the DRL policies tested in different scenarios <u>Lateral</u> <u>deviation</u> <u>(</u> _<u>µ ± σ</u>_ <u>)</u> <u>[m]</u> <u>Path</u> <u>3</u> <u>Path</u> <u>6</u> <u>Path</u> <u>7</u> <u>Path</u> <u>8</u> SAC-HF-RW 0.59+0.41 0.22+0.19 0.21+0.21 0.39+0.43 SAC-HF-VD 0.50+0.55 0.62+0.34 0.47+0.40 0.51+0.53 <u>SAC-ST-RW</u> <u>0.57+0.33</u> <u>0.45+0.39</u> <u>0.45+0.48</u> <u>-</u> and 2.81 times more in the paths where ViL was tested. In contrast, the performance of SAC-HF-RW is not affected to the same extent by the sim2real gap. Specifically, we observe the following ratios: 1.60, 1.05, and 1.50. The HF model increases the tracking accuracy on average by 28.6% compared to the single-track model. Moreover, using realworld data to fine-tune the model results in 33.3% better transfer. Contrary to what has been reported by Truong et al. (2022), our results indicate that a higher-fidelity model is indeed necessary to minimize the reality gap. There were random locking of the vehicle’s steering wheel in various trials; nevertheless, the agent was able to recover from the faulty states in the majority of cases and follow the path immediately afterward. 6. CONCLUSION In this work, we develop a transfer learning strategy to efficiently train a DRL policy in simulation and deploy it in a real-time vehicle application. We show that standard approaches of training exclusively with virtual data or lowfidelity models are not sufficient to robustify the trained agent, even though they yield better performance in MiL. We combine state-of-the-art sim2real methods such as DR, DA, and HF with virtual and real-world data and show that they are all necessary components for safe transfer. The HF dynamics simulator allows efficient randomization of a large variety of parameters and correctly predicts the behavior of the vehicle under different conditions, robustifying the controller to real-world conditions and allowing a better zero-shot transfer. This work also focused on a safe and scalable approach to prototyping and developing algorithms for autonomous driving applications with physical testing in automotive industry standard. Finally, we validate our approach on a real-time path following control application in MiL, HiL, and ViL development stages. REFERENCES Allamaa, J.P., Patrinos, P., Van der Auweraer, H., and Son, T.D. (2022). Sim2real for autonomous vehicle control using executable digital twin. _IFAC-PapersOnLine_, 55(24), 385–391. Alomari, K., Mendoza, R., Goehring, D., and Rojas, R. (2021). Path following with deep reinforcement learning for autonomous cars. 173–181. Arulkumaran, K., Cully, A., and Togelius, J. (2019). AlphaStar: an evolutionary computation perspective. Haarnoja, T., Zhou, A., Abbeel, P., and Levine, S. (2018). Soft actor-critic: off-policy maximum entropy deep reinforcement learning with a stochastic actor. Hartmann, D. and van der Auweraer, H. (2020). Digital Twins. Jiang, K., Hu, C., and Yan, F. (2022). Path-following control of autonomous ground vehicles based on input convex neural networks. _Proceedings_ _of_ _the_ _Institution_ _of Mechanical Engineers, Part D: Journal of Automobile_ _Engineering_, 236(13), 2806–2816. Kendall, A., Hawke, J., Janz, D., Mazur, P., Reda, D., Allen, J.M., Lam, V.D., Bewley, A., and Shah, A. (2018). Learning to drive in a day. _arXiv_ . Maramotti, P., Capasso, A.P., Bacchiani, G., and Broggi, A. (2022). Tackling real-world autonomous driving using deep reinforcement learning. Muratore, F., Gienger, M., and Peters, J. (2021). Assessing transferability from simulation to reality for reinforcement learning. _IEEE_ _Transactions_ _on_ _Pattern_ _Analysis_ _and_ _Machine_ _Intelligence_, 43(4), 1172–1183. Ng, M.H., Radia, K., Chen, J., Wang, D., Gog, I., and Gon zalez, J.E. (2020). BEV-Seg: bird’s eye view semantic segmentation using geometry and semantic point cloud. OpenAI, Andrychowicz, M., Baker, B., Chociej, M., Joze fowicz, R., McGrew, B., Pachocki, J., Petron, A., Plappert, M., Powell, G., Ray, A., Schneider, J., Sidor, S., Tobin, J., Welinder, P., Weng, L., and Zaremba, W. (2019). Learning dexterous in-hand manipulation. _arXiv_ . Pan, X., You, Y., Wang, Z., and Lu, C. (2017). Virtual to real reinforcement learning for autonomous driving. _arXiv_ . Peng, X.B., Andrychowicz, M., Zaremba, W., and Abbeel, P. (2018). Sim-to-real transfer of robotic control with dynamics randomization. _2018_ _IEEE_ _International_ _Conference_ _on_ _Robotics_ _and_ _Automation_ _(ICRA)_, 3803– 3810. Pouyanfar, S., Saleem, M., George, N., and Chen, S.C. (2019). ROADS: randomization for obstacle avoidance and driving in simulation. In _2019_ _IEEE/CVF_ _Con-_ _ference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _Workshops_ _(CVPRW)_, 1267–1276. IEEE, Long Beach, CA, USA. Raffin, A., Hill, A., Gleave, A., Kanervisto, A., Ernestus, M., and Dormann, N. (2021a). Stable-baselines3: reliable reinforcement learning implementations. _Journal_ _of_ _Machine_ _Learning_ _Research_, 22(268), 1–8. Raffin, A., Kober, J., and Stulp, F. (2021b). Smooth exploration for robotic reinforcement learning. Truong, J., Rudolph, M., Yokoyama, N., Chernova, S., Batra, D., and Rai, A. (2022). Rethinking sim2real: lower fidelity simulation leads to higher sim2real transfer in navigation. Wang, Y., Chao, W.L., Garg, D., Hariharan, B., Campbell, M., and Weinberger, K.Q. (2019). Pseudo-lidar from visual depth estimation: bridging the gap in 3D object detection for autonomous driving. In _2019_ _IEEE/CVF_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recogni-_ _tion_ _(CVPR)_, 8437–8445. ISSN: 2575-7075. You, C., Lu, J., Filev, D., and Tsiotras, P. (2019). Ad vanced planning for autonomous vehicles using reinforcement learning and deep inverse reinforcement learning. _Robotics_ _and_ _Autonomous_ _Systems_, 114, 1–18.

섹션 본문 31문단 · 22,623자

(제목 없음)

1Reinforcement learning (RL) is a promising solution for autonomous vehicles to deal with complex and uncertain traffic environments. The RL training process is however expensive, unsafe, and time consuming. Algorithms are often developed first in simulation and then transferred to the real world, leading to a common sim2real challenge that performance decreases when the domain changes. In this paper, we propose a transfer learning process to minimize the gap by exploiting digital twin technology, relying on a systematic and simultaneous combination of virtual and real world data coming from vehicle dynamics and traffic scenarios. The model and testing environment are evolved from model, hardware to vehicle in the loop and proving ground testing stages, similar to standard development cycle in automotive industry. In particular, we also integrate other transfer learning techniques such as domain randomization and adaptation in each stage. The simulation and real data are gradually incorporated to accelerate and make the transfer learning process more robust. The proposed RL methodology is applied to develop a path following steering controller for an autonomous electric vehicle. After learning and deploying the real-time RL control policy on the vehicle, we obtained satisfactory and safe control performance already from the first deployment, demonstrating the advantages of the proposed digital twin based learning process.

INTRODUCTION

2Research on autonomous vehicles (AVs) has made significant progress with recent advances of deep learning (DL), especially on the vehicle perception stack. While there have been some encouraging results and demonstrations, the application of DL on the vehicle planning and control stacks are still limited. Deep reinforcement learning (DRL) is an approach to generate control strategies in sequential processes, and capable to automatically learn and adapt from data, robust to different operating conditions and tasks. This offers a more flexible and higher performance planning or control solution than traditional model-based control methods, which rely on well-defined mathematical model of the system. Recent DRL breakthroughs example include AlphaStar (Arulkumaran et al., 2019), a model designed to play StarCraft II and end-to-end autonomous lane keeping driving (Kendall et al., 2018).

3Despite the progress, further research and testing are crucial to realize the advantages of DRL, be implementable in real world and automotive industry standard (You et al., This work is part of FOCETA project that has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreement No 956123 and 2019). The main DRL challenge is a safe and efficient training process and testing environment. DRL training is expensive, time consuming and involves with exploration of unsafe, risky situations. Training with physical car is not possible in real traffic legally and is often limited to closed tracks. Once may first train with collected human driving data and then deploy the controller in the physical world; however, the data misses out on critical scenarios that needed to robustify the controller. The alternative training environment is simulation, where virtually generated data is cheap and fast, already labeled, and includes a large number of critical scenarios. Still, virtual data lacks true real life properties and interactions. When a policy is trained in simulation and then deployed testing in the physical world, the performance differs, known as the sim2real transfer gap. This gap is caused by the simulation-optimization-bias where the controller exploits faults in the simulator and overestimates its performance compared to the target domain (Muratore et al., 2021). Other causes are model mismatch, noise, or actuation delays.

4In this paper, we propose a DRL training and testing environment relying on Digital Twin (DT). DT is a virtual representation of a physical product or process and being used across its development cycle to simulate and optimize the system's performance and efficiency. In AVs, it comprises virtual models of vehicle dynamics, traffic scenarios and sensors. We also exploit closed-loop DT which provides bi-directional connectivity between the physical and the virtual data. In particular, the fidelity and complexity of models and environment are gradually evolved from model-in-the-loop (MiL) in simulation to hardware-in-theloop (HiL) with physical vehicle embedded controller and actuation components, and vehicle-in-the-loop (ViL) proving ground testing with a real Siemens Simrod drive-bywire car. The process provides a robust, high performance transfer learning, and easier for prediction and tuning. Note that this is also known as V-cycle in industry, being adapted to DRL development purpose. Finally, we combine with domain adaptation and domain randomization techniques to enhance the transfer learning process.

5The transferred controller is deployed in the real vehicle successfully without fine-tuning in the target domain. The contributions of this paper are:

6• a zero-shot transfer learning approach that combines the advantages of virtual training with real-world data. The DRL agent is robust to different paths and model uncertainties, • a reduction in the sim2real gap for autonomous driving applications. The RL agent is trained using a high-fidelity (HF) vehicle dynamics simulator and traffic scenario simulator with domain randomization and adaptation, • a deployable algorithm on a real-time operating system and a validation framework in MiL, HiL and ViL minimizing the overall testing effort and cost.

7The paper is organized as follows. Section 2 summarizes related work on reinforcement learning for path following and sim2real methods. Section 3 reviews the background theory of RL, the vehicle model, and the transformations needed in domain adaptation. The experimental setup and the implementation details employed in this work are presented in Section 4.3, Section 5 provides a discussion on the results and concludes this work.

RELATED WORK

8DRL and path following in autonomous driving: the first successful application of DRL in autonomous driving was achieved by Kendall et al. (2018), learning a control policy for lane-keeping from monocular images and training only in the physical world. Recent work by Alomari et al. (2021) claims to have developed a method that bridges the Sim2Real gap using a 3D vehicle dynamics simulator and parameter randomization, but the results are not validated in a real-time operating system. A similar study by Maramotti et al. (2022) focuses on a DRL planner using the single-track kinematic model and an additional neural network (NN) to simulate the state transition dynamics of the car. To speed up convergence, they pre-train the network with imitation learning and randomize the path and the vehicle's initial state. Similarly, Jiang et al. (2022) uses NNs to model the vehicle dynamics and constraint weights and activation functions of the DRL algorithm to turn it into a convex optimization problem. However, the computational time is significant, making it unfeasible to deploy in a real-time application.

9Sim2Real methods: Domain adaptation (DA) maps features from the source domain to the target domain, and vice versa or both, to a common latent space in an attempt to train the agent in a domain-independent framework. DA has been used to transform synthetic images or point clouds into realistic representations through generative adversarial networks (Pan et al., 2017). Other researchers argue that data representation is the main source of the transfer gap and propose to transform the representation to lidar maps (Wang et al., 2019) or bird-eye views (Ng et al., 2020). Domain randomization (DR) is a method in which the parameters of the source domain are randomized so that it contains the target domain in its distribution. This method is effective when used with domain-specific knowledge and results in a robust control policy to model uncertainties as performed in Allamaa et al. (2022) to automatically tune the controller parameters. Randomization techniques have been applied to vehicle dynamics and physical parameters such as masses, friction, (Peng et al., 2018), trajectories, or random forces (Pouyanfar et al., 2019). It has also been performed on sensor data where DR techniques to alter poses, textures, dimensions, or colors (OpenAI et al., 2019). Lastly, system identification is used to identify properties of dynamical systems based on experimental measurements, which are later used to simulate the process more accurately. In addition, a Digital Twin is a high-fidelity multiphysics model that uses the available models and sensors to recreate in simulation its real life counterpart. By combining this model with real-time data, it is possible to continuously predict the behavior of the vehicle in the most realistic way (Hartmann and van der Auweraer, 2020).

10We propose on a transfer learning approach to a realtime application that combines all the three techniques in a systematic way, together with using integrated highfidelity virtual and real-world data efficiently.

BACKGROUND

11This section introduces the theory of RL, the vehicle kinematic model used in this work and lastly, the calculatation of the deviations from the reference path.

Reinforcement learning

12Formally, RL problems are formulated as Markov decision processes (MDPs). Specifically in autonomous driving, RL is used to solve the MDP for the optimal driving policy. At every step, the MDP is composed by the tuple (S, A, P, R, γ), where S and A are the set of states and actions, respectively. In stochastic processes P(s t+1 |s t , a t ) : S × A → [0, 1] is the transition probability function of entering the state s t+1 from state s t by taking the action a t . Moreover, MDPs have the property that the conditional probability of a future state depends only on the present state. R : S × A × S → R, is the reward function that maps the state s t in which the action a t is taken and the resulting state s t+1 into a scalar value . The action is chosen based on a policy π θ (a|s). In DRL, the policy is approximated with deep NNs with parameters θ. Given stochastic transition and policy functions, the objective is to maximize the return R t over the trajectory, i.e. the expected reward:

13The policy that maximizes the objective J(π) is noted as π * . In addition, there are two other functions: the statevalue V π (a|s) function, which is the expected return of following the policy π θ (a t |s t ) from state s. The Q π (a|s) is the action-value function and maps the expected return of choosing an arbitrary action a in state s and then effectively follow the policy π(·|s). In this paper, we use the soft-actor critic (SAC) algorithm developed in Haarnoja et al. (2018), which is based on an actorcritic structure: the actor selects the action of the agent and the critic evaluates the action by approximating the Q π -function. SAC includes entropy regularization in its objective function to encourage exploration, preventing early convergence to bad local minima. Additionally, this algorithm is off-policy meaning that the Q π -function is learned from actions taken by a different policy than the current π(a|s).

Single-track model

14The single-track bicycle model is a kinematic model of a four-wheeled vehicle (Fig. 1), in which the wheels at each axle are joined together. This model assumes a no-wheel slip condition. The length of the wheelbase is denoted as L, and the distances from the rear and front axle to the vehicle's center of gravity (CoG) are L r and L f , respectively. The vehicle's linear and angular velocities measured in a global reference frame are:

15where θ is the heading of the chassis with respect to the global frame and β is the angle enclosed by v cm and v. With β = arctan ((L r /L) tan δ) and the CoG's radius of rotation is R c = L/(tan δ cos β), the state variables can be described in terms of the inputs δ and v.

16Lateral and deviation: In this work, we use a buffer of recorded virtual and real-world trajectories to represent the centerline of the path to be driven. We then calculate the heading and lateral deviations with respect to the closest next point in distance in such buffer. In Figure 2, the black vehicle represents the RL agent, and the red ones the logged data. The heading (ε θ ) is calculated by computing the shortest difference between angles. The lateral deviation (ε d ) is calculated in (3) as:

17where S and E are the subscripts for the learning agent and the closest next observation respectively, W is the global frame, dx is the longitudinal offset, dy = ε d is the lateral deviation, and H is the homogeneous transformation matrix.

DRL TRAINING AND TRANSFER LEARNING

18This section starts with a description of the training loop depicted in Figure 3 followed by a detailed explanation. First, different trajectories are recorded in simulation (Simcenter Prescan) and in the physical world and saved in the buffer. Training starts with the RL implementations (Raffin et al., 2021a) with simulated data. When the performance stops improving, real-world trajectories are included as the first step in DR to generalize on the noise level and dynamic driving style. The data is set in the error frame presented in Fig. 2 as an attempt for DA. The episodes start with a random initialization of the environment and vehicle states, the second component of DR. The output of the DRL algorithm, the control action, is sent to the 15 DoF high fidelity (HF) vehicle dynamics simulator. We use the digital twin of the Simrod available on Simcenter Amesim. The HF model includes a number of identified parameters that are also randomized, to account for the sim2real gap. This third level of DR allows for even more generalization and robustification in the transfer learning approach. The performance during training is evaluated regularly every 2500 steps in 4 randomly selected scenarios and random initial conditions. The metric used to evaluate is the average timestep reward.

19Data generation: the virtual data was generated in the Simcenter Prescan traffic scenario simulator at a frequency of 20 Hz with the same format as the real-world samples to facilitate the transition. The real-world samples were collected from a drive with the physical car Simrod in the company parking lot seen in Fig. 3. The data were collected with the high accuracy dGPS and stored in rosbags in the local Cartesian coordinate system. Fig. 3. Training of reinforcement learning policies using first synthetically generated data and a digital twin of the vehicle until performance settles. Then, real-world logged data is used. The predicted deviation is calculated with the single-track model. The initial states, the vehicle's physical parameters, and the control action are randomized.

Reinforcement learning training setup

20State space: The NN inputs are processed sensor readings: the position in a global reference frame and inertial measurements or virtually generated. These are the longitudinal speed of the vehicle v x , the heading error ε θ , the lateral deviation ε d and their derivatives. The estimated lateral deviation with the single-track model for the next 10 timesteps is included, assuming that the speed and steering remain constant. In addition, the previous steering rateδ and angle δ are fed too. By providing the NN with states in the error frame, we benefit from the possibility to generalize any reference path with any center of the coordinate system. This allows training independently of the domain and task to be performed.

Action space:

21The action generated by the policy network is the steering rateδ saturated in the range [−0.18, 0.18] rad/s. We opt for a generalized statedependent exploration (gSDE), where the noise is dependent on the state of the car for the entire duration of the episode (Raffin et al., 2021b). The steering rate is then integrated to obtain the steering angle. The longitudinal acceleration is computed with a PD controller.

22Reward function: the reward function depends on the heading error ε θ , the lateral deviation ε d , and the steering rateδ. We propose a multiplication of the individual components and normalize them between 0 and 1 as shown next:

23Parameter randomization:

24We randomize the digital twin physical parameters to robustify against modeling errors and uncertainties such as changing road conditions, the number of passengers, or delays. Consequently, we randomize the mass, the location of the center of gravity, the length of the wheelbase, the suspension, and the stiffness of the tire. Values are drawn from a normal distribution. In addition. the initial deviation with respect to the path is changed every episode.

Implementation details

25The DRL model is trained on a laptop with 64 GB of RAM, an Intel Xeon W-11855M processor, and an NVIDIA RTX A4000 laptop graphics card. The model used for training has 16 inputs, 6 layers, and only one output, and also has a linear decay on the learning rate. The preprocessing steps and the NN are C code generated and deployed to the embedded platform dSPACE MicroAutobox III, running the real-time controller that commands the SimRod to perform real-time control actions on the Simrod.

Experiments

26We train four different policies and then evaluate them in a standard V-cycle procedure satisfying the safety requirements: Model-in-the-loop (MiL), hardware-in-theloop (HiL), and vehicle-in-the-Loop (ViL). The evaluated policies are SAC-ST-RW, SAC-HF-VD, and SAC-HF-RW, which abide by the notation: trained only with virtual data (VD), fine-tuned with real-world data (RW), single-track model (ST), and high-fidelity model (HF). The SAC-ST-RW is evaluated with the higher-fidelity model. MiL allows for safe and extensively verify and validate the trained policies against possible edge cases, and actuator noise levels and provides initial performance metrics. This step enables a safe and cheaper transition to HiL and ViL levels. The learned policies are evaluated in real-world scenarios and are consistently evaluated at different initial deviations: {−1.25, −1.0, −0.5, 0.0, 0.5, 1.0, 1.5} meters but the vehicle's physical parameters are kept constant to compare the performance under equal conditions. ViL is carried out in a closed parking lot in Leuven, Belgium.

RESULTS AND DISCUSSION

27In this section, we show the training results and present the evaluation of the MiL and ViL experiments. 4 shows the average timestep reward of the SAC-HF-RW model, the best performing policy. The blue line shows the performance over time using only virtual data. Then, it is fine tuned with real-world data (red) as a component of the transfer learning methodology. There is a large decay (sim2real gap) when the data type is changed, showing the necessity of introducing such transfer learning logic, as the pre-trained model would have suffered from the sim2real gap. The model continues to train until settling in terms of performance. The model with the higher average return is evaluated in MiL and ViL. We observe a smaller variance during pretraining because the virtual scenarios are noise-free and simpler. These paths can be generated in millions and can speed up the pre-training phase, however, these are kinematic trajectories, which sometimes are not feasible for agents to track. Adding the real-world data afterward introduces dynamically possible curvature changes and state transitions. The amount of time required to perform 100000 timesteps with the high-fidelity model is 11.73 ± 0.35 hours. On the contrary, the kinematic bicycle model only requires 42.47 ± 0.13 minutes for the same number of steps.

Model-in-the-Loop and Hardware-in-the-Loop

28The In other words, since in MiL the target domain is still a simulator with predefined parameters, the policy tends to compromise performance for robustness. This is also the reason for using DR, as the learning agent tends to overtune in simulation, creating an SOB when transferring to the real-target domain. However, the ST performs worse than the HF model when dealing with a set of curves or higher-speed scenarios. The former is related to the fact that the executed steering angle is subjected to the assumption of a small steering motion and a large radius of curvature. We also noticed that using only virtual data with a HF model (SAC-HF-VD) is not enough for a performant transfer, hence the benefit of our proposed transfer learning approach.

Vehicle-in-the-Loop

29As the main objective of this work is to transfer the policy efficiently and in zero-shot between the domains, we validate it in the actual vehicle. To our surprise, the SAC-ST-RW decreases its performance considerably when transferred to the real target. Hence, the benefit of the safe transfer learning methodology is proven, as the SAC-ST-RW does not account for a sim2real gap. The results are shown in Table 1 and 2.81 times more in the paths where ViL was tested. In contrast, the performance of SAC-HF-RW is not affected to the same extent by the sim2real gap. Specifically, we observe the following ratios: 1.60, 1.05, and 1.50. The HF model increases the tracking accuracy on average by 28.6% compared to the single-track model. Moreover, using realworld data to fine-tune the model results in 33.3% better transfer. Contrary to what has been reported by Truong et al. (2022), our results indicate that a higher-fidelity model is indeed necessary to minimize the reality gap. There were random locking of the vehicle's steering wheel in various trials; nevertheless, the agent was able to recover from the faulty states in the majority of cases and follow the path immediately afterward.

CONCLUSION

30In this work, we develop a transfer learning strategy to efficiently train a DRL policy in simulation and deploy it in a real-time vehicle application. We show that standard approaches of training exclusively with virtual data or lowfidelity models are not sufficient to robustify the trained agent, even though they yield better performance in MiL.

31We combine state-of-the-art sim2real methods such as DR, DA, and HF with virtual and real-world data and show that they are all necessary components for safe transfer. The HF dynamics simulator allows efficient randomization of a large variety of parameters and correctly predicts the behavior of the vehicle under different conditions, robustifying the controller to real-world conditions and allowing a better zero-shot transfer. This work also focused on a safe and scalable approach to prototyping and developing algorithms for autonomous driving applications with physical testing in automotive industry standard. Finally, we validate our approach on a real-time path following control application in MiL, HiL, and ViL development stages.

참고문헌 16건

  1. Proceedings of the British Machine Vision Conference (BMVC) 2013
  2. Advanced planning for autonomous vehicles using reinforcement learning and deep inverse reinforcement learning Robotics and Autonomous Systems · Elsevier BV · 2019 10.1016/j.robot.2019.01.003
  3. Assessing Transferability From Simulation to Reality for Reinforcement Learning IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2019 10.1109/tpami.2019.2952353
  4. Learning dexterous in-hand manipulation The International Journal of Robotics Research · SAGE Publishing · 2019 10.1177/0278364919887447
  5. BEV-Seg: Bird's Eye View Semantic Segmentation Using Geometry and Semantic Point Cloud arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2006.11436
  6. 2018 IEEE International Conference on Robotics and Automation (ICRA) 2018 10.1109/icra36916.2018
  7. Stable-Baselines3: Reliable Reinforcement Learning Implementations Journal of Machine Learning Research · The MIT Press · 2021
  8. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · 2018 10.1109/cvprw44695.2018
  9. Digital Twins SEMA SIMAI Springer series · Springer International Publishing · 2020 10.1007/978-3-030-61844-5_1
  10. 2022 IEEE Intelligent Vehicles Symposium (IV) 2022 IEEE Intelligent Vehicles Symposium (IV) · 2022 10.1109/iv51971.2022
  11. 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr41558.2019
  12. Path-following control of autonomous ground vehicles based on input convex neural networks Proceedings of the Institution of Mechanical Engineers Part D Journal of Automobile Engineering · SAGE Publishing · 2022 10.1177/09544070221114690
  13. Proceedings of the Genetic and Evolutionary Computation Conference Companion 2018 10.1145/3205651
  14. Sim2real for Autonomous Vehicle Control using Executable Digital Twin IFAC-PapersOnLine · Elsevier BV · 2022 10.1016/j.ifacol.2022.10.314
  15. AlphaStar: An Evolutionary Computation Perspective arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.1902.01724
  16. Sim-to-Real Transfer of Robotic Control with Dynamics Randomization arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.1710.06537