Manuscript Offprint

arXiv:2609.10377

Data-Driven Risk Fields for Safer End-to-End Autonomous Driving

Yuanxin Tian, Zhiyuan Liu, Jinhao Li, Zhenhua Xu, Wenhao Yu, Jianqiang Wang

Yuanxin Tian 1,†^{1,\dagger}, Zhiyuan Liu 1,†^{1,\dagger}, Jinhao Li 1^{1}, Zhenhua Xu 1,∗^{1,*}, Wenhao Yu 1,∗^{1,*}, and Jianqiang Wang 1^{1}

Abstract—Safety is a fundamental requirement for autonomous driving, yet existing end-to-end driving models still lack explicit risk-aware learning capacities. Existing rule-based risk models provide interpretable safety priors, yet their absolute risk scores depend on handcrafted functions, coefficients, and thresholds. Learning-based risk representations reduce part of this manual design, but their supervision often relies on occupancy-derived labels or heuristic cost values, which may not capture ego-conditioned planning risk. In this paper, we propose DRiF, a data-driven risk-field framework for safer end-to-end autonomous driving. DRiF learns a shared BEV feature with static map segmentation, dynamic risk prediction, and vehicle planning. For dynamic risk learning, DRiF converts rule-based safety priors into pairwise risk labels, and trains the risk field to preserve relative risk ordering instead of regressing handcrafted absolute scores. Experiments on Bench2Drive show that DRiF achieves competitive overall performance, with consistent improvements in driving score, success rate, and collision-related metrics. These results establish relative risk supervision as an effective way to connect explicit safety structure with end-to-end planning. The data and code will be publicly available.

I. INTRODUCTION

Autonomous driving has progressed rapidly in both academia and industry, with data-driven end-to-end driving becoming a representative paradigm. Given sensory observations and route commands, an end-to-end model directly predicts future trajectories [1], [2], [3], [4]. Early methods established the feasibility of supervised sensor-to-action learning. Subsequent systems strengthen this formulation by introducing structured scene modeling into the learning pipeline. BEV encoders provide a unified top-down space for multi-view perception [5], [6], [7]; online mapping and vectorized scene modeling recover road geometry and topology [8], [9], [10]; motion prediction further extends the representation from static layout to future scene evolution [11], [12], [13], [14]. Finally, planning-oriented architectures connect these intermediate outputs with ego trajectory generation [15], [16], [17]. Recent planners further improve trajectory modeling through generative policies, temporal-consistency modeling, and driving world models [18], [19], [20], [21], [22], [23], [24]. Taken together, these advances make end-to-end driving an increasingly powerful paradigm.

Safety is the central requirement of autonomous driving. A reliable vehicle must not only perceive the scene, but also understand how surrounding objects, road structures, predicted motions, and route constraints affect its own future behavior.

Existing end-to-end planners usually learn this perception-to-planning relation implicitly through latent features and final trajectory losses [16], [9], [17], [18]. Such supervision can capture common expert driving patterns, but it does not explicitly indicate which BEV regions are dangerous to the current ego vehicle, why they are dangerous, or how their risk should influence planning. Without explicit risk-oriented supervision, an end-to-end planner may fail to learn reliable safety structure, especially in long-tail scenarios such as cut-in, merging, intersections, pedestrian crossing, lane-boundary violation, and off-road behavior.

A direct way to introduce safety structure is to model driving risk explicitly. Classical traffic safety metrics assign criticality to interactions from different perspectives. Time-to-collision estimates collision imminence under continued motion [25]; time headway measures longitudinal following safety [26]; post-encroachment time evaluates temporal separation at a conflict point [27]; deceleration rate to avoid collision measures the braking effort required to prevent a crash [28], [29]. Beyond scalar metrics, risk-field methods provide a more general way to represent safety as spatial cost. Artificial potential fields first model obstacles as repulsive forces [30], while probabilistic risk fields further incorporate motion uncertainty and collision probability [31], [32], [33]. Among these methods, driving safety fields offer a particularly relevant formulation for autonomous driving, as they encode driver–vehicle–road interactions in a unified continuous field and provide an interpretable spatial representation for trajectory evaluation and safety-aware planning [34], [35]. Although these formulations are interpretable and auditable, their risk magnitudes usually depend on hand-designed coefficients, thresholds, and scenario-specific calibration. This manual design limits their scalability and makes them difficult to use as direct supervision for end-to-end representation learning.

Learning-based risk representations reduce part of this manual design, but their risk modeling and supervision remain limited. RiskMap learns a differentiable risk field as a driving cost prior for motion planning [36]; Risk Occupancy extends occupancy-style modeling with spatial, temporal, and risk dimensions under vehicle-road-cloud collaboration [37]; RiskMM uses risk maps as middleware for cooperative end-to-end planning [38]. These methods bring risk modeling closer to data-driven planning systems. However, driving risk does not have an objective ground truth comparable to depth, occupancy, or object location. Existing models therefore often rely on occupancy-derived labels or heuristic planner scores. Such supervision may simplify risk into occupied-or-costly regions, without explicitly deriving how the surrounding agents jointly determine planning risk. As a

1^{1}School of Vehicle and Mobility, Tsinghua University, Beijing, China.

tianyx24@mails.tsinghua.edu.cn liuzhiyu24@mails.tsinghua.edu.cn

lijinhao24@mails.tsinghua.edu.cn zxubg@connect.ust.hk

eyre530056@gmail.com wjqjls@tsinghua.edu.cn

†^{\dagger}Equal contribution; ∗* Co-corresponding authors: Zhenhua Xu and Wenhao Yu.

Figure

The risk field directly models how the surroundings influence ego planning.

Fig. 1: Explicit risk modeling beyond scene understanding. Conventional scene representations describe objects, lanes, and semantic regions, but do not explicitly reveal how they affect ego planning. Our method learns an ego-conditioned data-driven risk field that models how surrounding agents influence the ego vehicle, enabling safer end-to-end planning.

result, the learned risk map may remain an occupancy-like or cost-map-like surrogate, rather than a genuine ego-conditioned risk representation. This can bind the network to a particular handcrafted risk scale and limit its ability to identify and avoid risks in complex or long-tail driving scenarios.

We address the aforementioned problems by decomposing BEV driving risk into a static map and a dynamic interactive risk field. The static map captures hard constraints from route feasibility and ego reachability, which is supervised with dense labels. The dynamic interactive risk field models planning risk induced by surrounding-agent futures and potential conflicts, where calibrated dense labels are unavailable. We therefore learn it from a relative ranking loss between sampled BEV locations. Based on this design, we propose DRiF, an end-to-end autonomous driving framework relying on Data-driven Risk-Field. DRiF encodes multi-source driving inputs into a shared BEV representation and predicts both static map and dynamic interactive risk. During training, a pairwise risk label generator converts rule-based safety priors into pairwise ranking labels to supervise the dynamic risk head, thereby injecting explicit risk structure into the representation used by the end-to-end planner.

Our contributions are summarized as follows:

  • We propose DRiF, an end-to-end autonomous driving framework that learns ego-conditioned risk representations in a data-driven manner for trajectory planning.
  • We introduce relative-risk supervision, which learns driving risk through pairwise comparisons instead of hand-crafted absolute scalar labels.
  • We conduct extensive experiments on the large closed-

loop autonomous driving benchmark Bench2Drive. DRiF achieves competitive performance across overall, safety, and multi-ability metrics, demonstrating the effectiveness of explicit risk modeling for safer end-to-end planning.

References (56)

  • End to End Learning for Self-Driving Cars
  • ChauffeurNet: Learning to drive by imitating the best and synthesizing the worst
  • Trans-Fuser: Imitation with transformer-based sensor fusion for autonomous driving
  • End-to-end autonomous driving: Challenges and frontiers
  • Lift, splat, shoot: Encoding images from arbitrary camera rigs by implicitly unprojecting to 3d
  • BEVFormer: Learning bird’s-eye-view representation from multi-camera images via spatiotemporal transformers
  • BEVFusion: Multi-task multi-sensor fusion with unified bird’s-eye view representation
  • MapTR: Structured modeling and learning for online vectorized HD map construction
  • VAD: Vectorized scene representation for efficient autonomous driving
  • InsMapper: Exploring inner-instance information for vectorized HD mapping
  • FIERY: Future instance prediction in bird’s-eye view from surround monocular cameras
  • Motion transformer with global intention localization and local movement refinement
  • SurroundOcc: Multi-camera 3d occupancy prediction for autonomous driving
  • OccFormer: Dual-path transformer for vision-based 3d semantic occupancy prediction
  • ST-P3: End-to-end vision-based autonomous driving via spatial-temporal feature learning
  • Planning-oriented autonomous driving
  • SparseDrive: End-to-end autonomous driving via sparse scene representation
  • DiffusionDrive: Truncated diffusion model for end-to-end autonomous driving
  • GoalFlow: Goal-driven flow matching for multimodal trajectories generation in end-to-end autonomous driving
  • Don’t shake the wheel: Momentum-aware planning in end-to-end autonomous driving
  • End-to-end driving with online trajectory evaluation via BEV world model
  • World4Drive: End-to-end autonomous driving via intention-aware physical latent world model
  • Future-aware end-to-end driving: Bidirectional modeling of trajectory planning and scene evolution
  • ResWorld: Temporal residual world model for end-to-end autonomous driving (opens arXiv in a new tab)
  • Near-miss determination through use of a scale of danger
  • A comparison of headway and time to collision as safety indicators
  • Experience with traffic conflicts in canada with emphasis on “post encroachment time
  • Traffic studies at T-junctions. 2. a conflict simulation record
  • Comparison of threshold determination methods for the deceleration rate to avoid a crash (DRAC)-based crash estimation
  • Real-time obstacle avoidance for manipulators and mobile robots
  • Probabilistic field approach for motorway driving risk assessment
  • Probabilistic risk metric for highway driving leveraging multi-modal trajectory predictions
  • A data-driven spatio-temporal driving risk field mechanism for path planning
  • The driving safety field based on driver-vehicle-road interactions
  • Driving safety field theory modeling and its application in pre-collision warning system
  • RiskMap: A unified driving context representation for autonomous motion planning in urban driving environment
  • Risk occupancy: A new and efficient paradigm through vehicle-road-cloud collaboration (opens arXiv in a new tab)
  • Risk map as middleware: Towards interpretable cooperative end-to-end autonomous driving for risk-aware planning
  • DriveGPT4: Interpretable end-to-end autonomous driving via large language model
  • DriveGPT4-V2: Harnessing large language model capabilities for enhanced closed-loop autonomous driving
  • Alignedrive: Aligned lateral-longitudinal planning for end-to-end autonomous driving (opens arXiv in a new tab)
  • Causality-aware end-to-end autonomous driving via ego-centric joint scene modeling (opens arXiv in a new tab)
  • Owmdrive: Causality-aware end-to-end autonomous driving via 4d occupancy world model (opens arXiv in a new tab)
  • On a formal model of safe and scalable self-driving cars (opens arXiv in a new tab)
  • Rank analysis of incomplete block designs: I the method of paired comparisons
  • Learning to rank using gradient descent
  • Single-image depth perception in the wild
  • Deep ordinal regression network for monocular depth estimation
  • Depth anything v2
  • Hidden biases of end-to-end driving datasets (opens arXiv in a new tab)
  • Bench2drive: Towards multi-ability benchmarking of closed-loop end-to-end autonomous driving
  • Think twice before driving: Towards scalable decoders for end-to-end autonomous driving
  • Driveadapter: Breaking the coupling barrier of perception and planning in end-to-end autonomous driving
  • Hidden biases of end-to-end driving models
  • Hip-ad: Hierarchical and multi-granularity planning with deformable attention for autonomous driving in a single decoder
  • Simlingo: Vision-only closed-loop autonomous driving with language-action alignment