Move, don't think: sample-efficient collision avoidance with lossy proximity sensors
Data-driven robots must learn to avoid collisions with as few demonstrations as possible to avoid collecting large datasets of destructive collision examples. We explore whole-body proximity sensors as inductive biases for learning reflexive collision-dodging behavior and find that lossy sensors with low resolution were stronger biases than high-resolution coverage.
From the abstract. Our summary is in progress.
Full paper
Move, don't think: sample-efficient collision avoidance with lossy proximity sensors
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2610.31891 (PDF).
Abstract
Data-driven robots must learn to avoid collisions with as few demonstrations as possible to avoid collecting large datasets of destructive collision examples. We explore whole-body proximity sensors as inductive biases for learning reflexive collision-dodging behavior and find that lossy sensors with low resolution were stronger biases than high-resolution coverage. We also found that, perhaps unintuitively, anticipating when and where contact happens on the body of a robot reduced its learning sample efficiency. We investigated eight candidate representations in a reinforcement learning environment, which included latent compression, future contact anticipation, lossy corruption, and privileged state estimation. The candidate representations were tested by training over 200 humanoid robots to play a simplified version of dodgeball end-to-end under an intentionally constrained sample and compute budget.
1 Introduction
Robots deployed in unstructured environments must avoid collisions that could damage themselves or others. Data-driven models have enabled manipulation and locomotion tasks to be performed in unstructured environments (Kim et al., 2024b; Physical Intelligence et al., 2025), but learning collision avoidance through data is challenging because collision data can be damaging and costly to collect. This expensive data constraint alone motivates the need for sample-efficient ways to learn safe, reflexive behavior in as few demonstrations as possible.
Forecasting future camera observations using generative world models emerged as a strategy for safely experiencing potentially dangerous scenarios (Agarwal et al., 2025; Assran et al., 2025), and forecasting has also been shown to dramatically improve task performance in dynamic tasks such as sports (Syed et al., 2026). However, occlusions and partial observability are a notorious problem for camera-based contact detection (Navarro et al., 2021), causing world models to rely on heuristic estimates of contact (Liu et al., 2025). We therefore look to alternative sensors than cameras that are designed to combat occlusions.
Egocentric proximity sensors exist as solutions to occlusion and partial observability due to their ability to sense directly from the surface of a robot (Scholz et al., 2024) and have been extensively used for safe collision avoidance (Navarro et al., 2021). A large variety of sensing methods power these whole-body proximity sensor constellations, such as light ranging, capacitive sensing, acoustic sensing, and more (Scholz et al., 2024). Despite the large variety of options, there is not a consensus on what properties of proximity sensors are ideal for sample-efficient learning, such as range or signal representation, and world models have yet to integrate such proximity sensors. Thus, we seek to answer the following questions for learning collision avoidance: How should a proximity sensor’s signal be shaped, and does anticipating contact help?
The goal of this paper is two-fold: 1) to investigate how whole-body proximity sensor observations can be best represented as inductive biases for sample-efficient collision avoidance, and 2) to investigate if predicting future contact observations can lead to improved sample efficiency for learning collision avoidance. The contributions of this work are as follows:
- We propose a design heuristic for using proximity sensors as sample-efficient inductive biases, which favors wide, overlapping coverage of low-resolution sensors and low signal dimensionality. We further show how a high-resolution proximity sensor can mimic a low-dimensional sensor using a simple lossy signal minimization to improve sample efficiency.
- We propose that anticipating when and where contact will happen can create sample-efficiency deficits for learning collision avoidance, which we validate using a proximity world model (PWM) that forecasts future observations from whole-body proximity sensors to anticipate contact.
- We rigorously ablate sensor observation representation, including signal processing, forecasting, and hardware properties, in a simulated collision avoidance task with a Unitree humanoid H1-2 robot equipped with 64 proximity sensors.
2 Proximity Signal Representation
Egocentric proximity sensors, also sometimes referred to as artificial skins, have been used for collision avoidance using time-of-flight sensors that pulse light or sound waves and measure distance by how long it takes the waves to return (Borelli et al., 2026; Kim et al., 2024a; Escobedo et al., 2021), capacitive sensors that measure distance by how long it takes to charge a conductive material based on nearby objects (Kohlbrenner et al., 2026b; Liu et al., 2023; Moon et al., 2021), or stereo cameras that measure depth from pixel disparity (Hu et al., 2025). However, despite the wide variety of applicable proximity sensors, no metric exists to quantify how much of a proximity sensor’s signal is task-relevant for collision avoidance. We therefore start with a generic form for proximity sensors that is agnostic to an underlying sensing mechanism.
2.1 Generic Proximity Sensor
Consider a proximity sensor that activates when any point on a nearby object intersects with the proximity sensor’s coverage area. A proximity sensor’s coverage normally depends on its underlying mechanisms, but we assume our modality-agnostic proximity sensor is limited only by range and can have either full spherical coverage around the origin or a rectangular window within that sphere, defined by a horizontal and vertical field-of-view (FoV). Now consider the sensing coverage being sectioned into a grid of receptive fields that can each individually activate. The receptive fields set the resolution of the sensor, which we will denote W as the number of receptive field regions along the horizontal FoV and H as the number of receptive field regions along the vertical FoV.
Let a proximity sensor suite comprise S sensors. The observation x made by the sensors at time t is thus x_{t}\in\mathbb{R}^{H\times W\times S}. We assume all sensors are ideal, meaning they have zero phase offset, latency, and noise, because we assume these are factors an engineer would choose to eliminate and are not design choices for sample efficiency. We will use this generic proximity sensor notation for the remainder of this work.
- x_{t}
- Raw sensor observation.
- –
- –
- W\times H\times S
- f_{\text{tp}}(x_{t})
- Localizes the nearest object within sensing coverage relative to the base of the robot.
- \uparrow
- \uparrow
- \downarrow\;(3)
- f_{\text{min}}(x_{t})
- Returns only the closest range measurement per sensor.
- –
- \downarrow
- \downarrow\;(S)
- f_{\psi}(x_{t})
- Returns a latent observation.
- \approx
- \approx
- \downarrow
- f_{\text{bin}}(x_{t})
- Returns only binary activations per signal.
- \downarrow
- –
- –
- \text{PWM}_{0}(x_{t})
- Returns [f_{\text{tp}}(x_{t}),f_{\text{tp}}(\hat{x}_{k}),c_{k}].
- \uparrow
- \uparrow
- \downarrow(7)
- \text{PWM}_{\text{min}}(x_{t})
- Returns [f_{\text{min}}(x_{t}),f_{\text{min}}(\hat{x}_{k}),c_{k}].
- –
- \downarrow
- \downarrow(2S+1)
- \text{PWM}_{\psi}(x_{t})
- Returns [f_{\psi}(x_{t}),f_{\psi}(\hat{x}_{k}),c_{k}].
- \approx
- \approx
- \downarrow
2.2 Sample-Constrained Usable Information
The sample efficiency of collision avoidance learning can be interpreted through usable information theory (Xu et al., 2020). Our motivating question is: under a capacity-constrained learner and a limited training budget, which representation of proximity sensor data makes collision-relevant information easiest to exploit?
Let X denote the random variable corresponding to a raw proximity observation in the sample space \mathcal{X}, let Y denote a collision-relevant target variable in \mathcal{Y}, and let \mathcal{V} be a restricted family of predictors of Y used by the robot. \mathcal{V} is a restricted family because the agent must predict Y in finite time (i.e., the robot cannot take its time to compute how to dodge an impending collision). The predictive \mathcal{V}-information I_{\mathcal{V}} from X to Y is
I_{\mathcal{V}}(X\rightarrow Y)=H_{\mathcal{V}}(Y\mid\varnothing)-H_{\mathcal{V}}(Y\mid X),where H_{\mathcal{V}}(Y\mid X) is the conditional \mathcal{V}-entropy,
H_{\mathcal{V}}(Y\mid X)=\inf_{q\in\mathcal{V}}\mathbb{E}_{x,y\sim\mathcal{X},\mathcal{Y}}\left[-\log q[x](y)\right],and H_{\mathcal{V}}(Y\mid\varnothing) is the \mathcal{V}-entropy when the predictor is given no observation of X. Applying a deterministic transformation f:\mathcal{X}\rightarrow\mathcal{X} on X would not increase the Shannon mutual information with Y, but under a restricted compute budget, a representation f(X) that makes it easier for the robot to exploit Y has a higher \mathcal{V}-information with Y (Xu et al., 2020). We therefore seek representations that satisfy
I_{\mathcal{V}}(f(X)\rightarrow Y)>I_{\mathcal{V}}(X\rightarrow Y)for the learner class and collision avoidance task. Because an agent with greater exploitability on Y may reach high reward states quicker, we treat Eq. 3 as an interpretive lens and evaluate its implications empirically through downstream collision-avoidance learning. Optional ignorance is not a necessary assumption for this study; in fact, predictors that perform worse with additional information may indicate harmful information for learning is presented.
This predictive \mathcal{V}-information perspective motivates the representations laid out in Table 1. The sensor-level transformations f_{\min} and f_{\mathrm{bin}} deliberately discard aspects of x_{t}, f_{\psi} transforms x_{t} into a lower-dimensional latent representation intended to preserve collision-relevant structure, and the PWM forecasts future contact and future observations from x_{t} at time k. If contact is predicted to happen, k is the time of contact, otherwise it is a fixed time R ahead of the current time. We also consider an oracle that reveals privileged information about the incoming object’s state as an upper-bound representation. Together, these representations provide insight into how best to transform raw sensory data for sample efficiency and what information is most relevant to preserve.
For a given representation U and corresponding task success curve S_{U}(n), we use steps to a given success rate N_{\alpha}(U) with \alpha steps and normalized area under the curve (NAUC),
\text{NAUC}(U)=\dfrac{1}{N}\int_{0}^{N}S_{U}(n)dn,as metrics to evaluate which representations are more readily exploitable by \mathcal{V}.
3 Contact Anticipation
W\times H grid of pixels in the observation frame. The green point cloud hits are points on the ball that cross a sensor’s receptive field. When we roll out future observations, we can also visualize them in world space as a point cloud. Here we see the next three predicted observations \hat{x}_{t+1:t+3}. b) shows how a rollout will end when contact is predicted, and c) demonstrates the accuracy of the encoder and decoder in \text{PWM}_{\psi} from random samples of a validation set.Let c_{t}\in\{0,1\} denote the contact state at time t. The discrete objective of contact anticipation is to predict the conditional probability distribution of future contact at time k based on previous observations o_{\leq t}.
p(c_{t+1:t+k}\mid o_{\leq t}).Early approaches estimated the velocity of nearby objects using camera and tactile sensors to predict time-to-contact (Roncone et al., 2016), but this approach assumes dynamics of the nearby object. He et al. (2025); Liu et al. (2025) proposed instead using a learned contact prediction model p_{\theta} conditioned on camera images as prior observations to predict future contact states. Zhou and Negrut (2025); Team et al. (2026); Qin et al. (2026) further conditioned p_{\theta} on tactile sensor observations and predicted future actions \hat{a}_{t+1:t+k}
\hat{c}_{t+1:t+k}\sim p_{\theta}(c_{t+1:t+k}\mid o_{\leq t},\hat{a}_{t+1:t+k}),However, their approach was validated in a manipulation setting, and anticipating future contact states at a whole-body scale for collision avoidance using proximity sensors has not been explored.
3.1 Proximity World Model
We propose a proximity world model (PWM) that first generates future latent sensor observations, then uses those observations to predict contact. Following previous generative world model work (Agarwal et al., 2025), our world model comprises an encoder, dynamics model, and decoder to generate future observations, as shown in Fig. 3. We introduce an additional contact prediction module to anticipate which predicted future observations will lead to contact.
Our predictive world model starts by mapping x_{t} into a smaller dimensional latent vector z_{t}\in\mathbb{R}^{H^{\prime}\times W^{\prime}\times S^{\prime}\times e} through the encoder
\tilde{z}_{t}\sim q_{\psi}(z_{t}\mid x_{t})to improve sample efficiency during training, where q_{\psi} is a learned posterior distribution and e is an embedding dimension. At inference time, the encoder deterministically returns the latent observation as z_{t}:=f_{\psi}(x_{t}). The decoder model conversely samples a likely sensor observation conditioned on a given latent observation.
Next, the dynamics model r_{\phi} samples a possible sequence of future latent sensor observations induced by the robot’s latest action
\hat{z}_{t+1:t+k}\sim r_{\phi}(z_{t+1:t+k}\mid z_{\leq t},a).Accurate prediction of these future observations requires the world model to capture the relative dynamics between the robot and its environment. We then modify Eq. 6 to get the conditional probability distribution of contact conditioned on the predicted future observations and sample from a learned contact anticipation model p_{\eta} to get a candidate set of future contact states:
\hat{c}_{t+1:t+k}\sim p_{\eta}(c_{t+1:t+k}\mid\hat{z}_{t+1:t+k},z_{\leq t},a).Thus, sampling a future trajectory from the world model and subsequently predicting its associated contact states provides a sample-based approximation to contact anticipation under a candidate action sequence. Fig. 2 shows examples of how the current sensor observation is constructed using the ray sensors, as well as how future observations are propagated through the world model during a roll out. The PWM used in this work was pretrained on a sample dataset of 6000 trajectories collected via expert demonstration; see Section A.2.1 for implementation details. For the same reason that sensors are represented without noise or latency, the large training data is intended to make the PWM well adjusted as an idealized contact predictor, that, while not perfect, serves as a higher-bound indicator of the influence of contact anticipation for sample-efficiency than a highly noisy PWM. It is assumed that contact prediction inaccuracy is ideally minimized in deployment.
4 Experiments
We investigated the signal representations in Table 1 empirically in a simulated collision avoidance task using a Unitree H1-2 humanoid robot equipped with 64 proximity sensors that were randomly distributed using GenTact (Kohlbrenner et al., 2025) to supply ample coverage of the surrounding space of the robot, as shown in Fig. 5. The humanoid robot was trained using proximal policy optimization (PPO) (Schulman et al., 2017) and was tasked with avoiding collisions with independently thrown balls launched at random times 1-2 seconds apart and set on a collision course with the robot. The balls had a constant radius of 15\text{\,}\mathrm{c}\mathrm{m}, spawned between 2-3 m away from the robot, between 1-3 m above ground level, and had an initial speed between 4-6 m/s. Fig. 4 shows a few successful and unsuccessful collision-avoidance policies for this task.
Task:
The policy \pi_{\theta}(a_{t}|o_{t}) outputs target joint positions q^{*}_{t}\in\mathbb{R}^{21}, which are converted into motor torques \tau_{t} via a low-level PD controller:
\tau_{t}=K_{p}(q^{*}_{t}-q_{t})+K_{d}(\dot{q}^{*}_{t}-\dot{q}_{t}),where K_{p} and K_{d} are the proportional and derivative gains, and joint velocities \dot{q}^{*}_{t} are approximated by zeros or finite differences. The policy commands to maximize the expected cumulative reward to optimize towards the optimal parameters \theta^{*}:
J(\theta)=\mathbb{E}_{r\sim p_{\pi_{\theta}}}\left[\sum_{t=0}^{T}\gamma^{t}r_{t}\right]where \gamma is the discount factor and r_{t} is the reward function.
Termination:
An episode can end under four conditions: 1) the ball collides with the robot, 2) the robot’s root point (at the pelvis) falls below a 40 cm threshold from the ground, 3) the robot’s root point pose exceeds an 80^{\circ} angle from upright, and 4) the robot successfully survives for three seconds.
Rewards:
The policy is optimized at 60\,\mathrm{Hz} (\Delta t=1/120\,\mathrm{s} with decimation 2). Each step returns
r_{t}=w_{h}\exp\!\big(-\alpha(h_{t}-h^{\star})^{2}\big)+w_{a}-w_{d}\|\Delta p_{t}\|_{2}^{2}-w_{e}\|\tau_{t}\|_{1}.Here h_{t} is the root height in meters, h^{\star} is a target standing height, \Delta p_{t}\in\mathbb{R}^{2} is the horizontal displacement from the reset pose, and \tau_{t} is the vector of applied joint torques. The Gaussian rewards an upright posture, and w_{a} is received on every step until termination, so longer episodes are the objective that produces dodging. The drift and torque terms suppress leaving the spawn point and high-frequency motion. Eq. 12 depends only on the root state and the joint torques, so the reward does not favor a particular proximity-sensor representation. The following hyperparameters were found to be sufficient for learning: w_{h}=10, \alpha=5, h^{\star}=1.04\,\mathrm{m}, w_{a}=2, w_{d}=1, and w_{e}=0.01.
Observations:
In addition to the sensor observation, the observation space is comprised of base angular velocity \omega_{b}, relative joint positions q_{r}, joint velocities \dot{q}, gravity vector projected in the base frame g_{b}, and the previous action for one-step action memory a_{t-1}, as
o_{t}=[x,\omega_{b},g_{b},q_{r},\dot{q},a_{t-1}].Additionally, we adopt an asymmetric actor-critic structure (Pinto et al., 2017) to improve training stability, where the critic receives a privileged linear base velocity observation v_{b}. The actor and critic are each two-layer feedforward networks with 32 units per layer. We chose this fixed, low-capacity architecture so differences in task performance can be attributed to the proximity sensor observation rather than model expressivity (Bengio et al., 2013).
Steps:
We report sample efficiency in PPO learning iterations. Each iteration collects 16 steps from 4,096 parallel environments (65,536 environment interactions, reused for 5 epochs in minibatches of 16,384) at a control rate of 60 Hz. All training runs share this budget, so an m\times reduction in iterations is an m\times reduction in environment interactions.
4.1 Sensor Representation Ablation
Inspired by the current dichotomy of the proximity sensing field, we define two extremes of the generic proximity sensor to use as test subjects: field sensors (low-resolution), which we define as a single receptive field (H,W=1) with wide coverage and no explicit indication of where an object lies within the field of view, and ray sensors (high resolution), which use an 8\times 8 sensing grid over a narrow 45^{\circ} field of view, where each signal in the grid is associated with a unique heading direction. We perform 10 seeded end-to-end training runs of the dodgeball task with a maximum compute budget of 3000 steps per run. Fig. 6 reports the median and interquartile range (IQR) of task success across seeds for these sensors and the signal representations in Table 1, and Fig. 6 reports the sample efficiency of each representation in task success over training steps.
Perfect Localization Oracle f_{tp}: We found that robots that could observe the true relative position of the incoming ball f_{tp} served as an upper-bound representation for both the field sensor and the ray sensor, achieving a NAUC of 0.584 at 2 m range. f_{tp} is believed to be the strongest representation because it compactly encodes both distance and direction in a three-dimensional signal.
Raw Distance Observation x_{t}: Robots with raw field sensor observations achieved a NAUC of 0.522 at 2 m range, which is 89.3\% as strong as those with f_{tp}(x_{t}^{\text{field}}) across all sensing ranges, requiring no modification to their representation for their performance. Although each field sensor provides no explicit directional information, we believe its distributed activations allowed the policy to infer object direction from the sensor constellation itself. In contrast, policies trained on raw ray sensor observations only reached a maximum NAUC of 0.02.
Minimum Distance Observation f_{\text{min}}: Applying the minimum-distance transformation f_{\min} substantially improved both final performance and sample efficiency of the robots with ray sensors, despite discarding the within-sensor direction of the detected object. At 1\text{\,}\mathrm{m} sensing range, f_{\text{min}}(x^{\text{ray}}) outperformed raw ray sensor observation NAUC by 5400%. By retaining only the nearest range measurement from each sensor, f_{\min} effectively converted each ray sensor into a field-like observation within its sensing coverage. Additionally, f_{\text{min}} provides insight into how coverage itself influenced the robot’s ability to learn. Robots with raw field sensors achieved an average NAUC 0.138 points higher than those with f_{\text{min}}(x^{\text{ray}}) observations, despite f_{\text{min}}(x^{\text{ray}}) observations occupying the same range and approximate signal properties to raw field sensors. Similarly, robots that observed f_{\text{tp}}(x_{t}^{\text{field}}) performed an average NAUC of 0.12 higher than those with f_{\text{tp}}(x_{t}^{\text{ray}}). We attribute these marginal gains to the increased coverage of the field sensors, which makes these two examples the only comparable representations between sensor types. Field sensors were not evaluated with f_{\min} due to only containing a single signal by default.
Binary Detection Observation f_{\text{bin}}: We observed that at the 2\text{\,}\mathrm{m} sensing range, the f_{\text{bin}} representation would saturate well before contact for both sensor types. However, f_{\text{bin}}(x^{\text{field}}) outperformed direct field proximity measurements at the 0.5\text{\,}\mathrm{m} sensing range, suggesting that distance becomes less important in the moments before contact.
Latent Observation f_{\psi}(x): Learned compression with f_{\psi} improved the sample efficiency relative to raw ray observations, but did not perform as well as f_{\min}. This can be understood by the dimensionality of f_{\psi}(x) being f_{\psi}(x) being \dim{x}=4096>\dim{f\psi(x)}=512>\dim{f_{\min}(x)}=64, where the encoder was pretrained to output embeddings in the dimension of H^{\prime},W^{\prime}=2, S^{\prime}=16, and e=8, resulting in an embedding that is one-eighth the size of the raw observation.
4.2 Contact Prediction Ablation
- f_{\mathrm{tp}}(x_{t})
- 338
- 8.8\times faster
- –
- 427
- >7.0\times faster
- –
- 0.508
- \text{PWM}_{0}(x_{t})
- 625
- 4.7\times faster
- 1.9\times slower
- 770
- >3.9\times faster
- 1.8\times slower
- 0.39
- f_{\min}(x_{t})
- 770
- 3.9\times faster
- –
- 1026
- >2.9\times faster
- –
- 0.299
- \text{PWM}_{\text{min}}(x_{t})
- 1738
- 1.7\times faster
- 2.3\times slower
- 2024
- >1.5\times faster
- 2.0\times slower
- 0.158
- f_{\psi}(x_{t})
- 1613
- 1.8\times faster
- –
- 2082
- >1.4\times faster
- –
- 0.140
- \text{PWM}_{\psi}(x_{t})
- 1725
- 1.7\times faster
- 1.1\times slower
- 2663
- >1.1\times faster
- 1.3\times slower
- 0.099
- x_{t}
- 2970
- baseline
- –
- >3000
- baseline
- –
- 0.020
We investigated using the PWM to improve the ray sensor’s sample efficiency within the 3000-step allotted compute budget at the two-meter range, due to the large gap between f_{\text{tp}}(x^{\text{ray}}) and x^{\text{ray}} at this range. We simulated the same dodgeball task, this time with five seeded training runs due to the increase compute cost for the PWM, where the robot could now additionally use the PWM to observe a future k timestep. The PWM success rate during training time of this study is shown in red in Fig. 7 and compared against the previous ray sensor representations from Section 4.1.
Future Insight Oracle \text{PWM}_{0}: The oracle robot observed the true relative position of the ball in its current state and where it would be upon collision, but performed worse than the robot that only saw the current true position. Additionally, the oracle was unable to achieve any task success without additional information regarding where the ball came from. This result suggests that providing information about the future collision state may not carry readily exploitable information for collision avoidance in this setting.
Current and Future Latent Observation \text{PWM}_{\psi} and \text{PWM}_{\text{min}}: Similarly to the oracle, providing predictive information about the future collision state harmed the agent’s ability to learn collision avoidance quickly. Both the agent with \text{PWM}_{\psi} and \text{PWM}_{\text{min}} reached similar levels of task success as their non-predictive counterparts, but the additional information available reduced their ability to exploit task-relevant information in as many steps.
5 Discussion
Our ablations point to two consistent phenomena: signal dimensionality was the biggest predictor of sample efficiency, and anticipating contact distracted the robot from exploiting task-relevant information in the demonstrated close-by, single impending collision task. Despite the PWM being trained on thousands of expert demonstrations and having privileged pretraining data, it still did not beat a simple per-sensor minimum distance transformation.
Our findings are further supported by the neurosciences, where fast multisensory neurons encode a peripersonal space (PPS): a compact representation of body-centric receptive fields that activate based on the proximity of nearby objects (Bufacchi and Iannetti, 2018). Our field-sensor representation has a similar computational structure: individual sensors provide little spatial detail, yet their overlapping, body-distributed activations encode sufficient direction and distance for avoidance. One interpretation of our results is therefore that sample-efficient collision avoidance benefits less from reconstructing the external world than from constructing a compact, action-oriented representation of peripersonal threat. In our experiment, range was a fixed value throughout training, but it is well known that the PPS adapts in size based on the speed of nearby objects (Noel et al., 2018). Future work should therefore explore a dynamically adapting range for improving sample efficiency.
6 Related Works
Zhang et al. (2025); Armleder et al. (2025); Escobedo et al. (2021) used quadratic programming (QP) with predefined constraints on o_{t} to achieve reactive control for collision avoidance. However, QP algorithms rely on careful tuning of their dynamics and object estimations to maintain safety. Instead of manually tuning a controller, Yang et al. (2025); Kim et al. (2024a); Wang et al. (2024) trained a policy with learned parameters \theta to imitate expert demonstrations. Expert demonstrations can be expensive, so Yang et al. (2026); Xue et al. (2026) used reinforcement learning (RL) to train a reactive policy directly on observations guided by rewards, but this approach requires a simulation environment that needs to accurately emulate the real world for deployment and can require privileged information and an intractable number of trial-and-error training steps to be successful end-to-end on real data. Therefore, we believe that the goal is to reduce the number of training steps needed for effective collision avoidance to support a future where robots adapt to collisions end-to-end, in real time, and without relying on manual tuning, expert demonstrations, or privileged simulators.
7 Conclusion
We investigated eight candidate representations of proximity sensor signals for sample-efficient collision avoidance, including lossy transformations, latent compression, and world-model forecasting. We find in our experiments that wide coverage of low-resolution proximity sensors consistently resulted in higher sample efficiency against high-resolution alternatives, which are consistent with \mathcal{V}-information theory as having higher \mathcal{V}-predictive relevant information for reflexive contact avoidance under sample and compute constraints. Additionally, providing robots with additional insight into when and where a collision would happen in the future resulted in consistently lower sample efficiency and did not overcome the cost of extra signal dimensionality. Therefore, our findings suggest that for learning sample-efficient collision avoidance with egocentric proximity sensors: 1) wide-overlap, low-resolution sensing that preserves relative distance information and 2) conditioning learned policies only on current observations may be desirable for computationally constrained reflexive motion.
AI use statement
In this work, we used generative AI tools for assistance and feedback setting up our synthetic dataset collection, pipeline implementation between the PWM and training environment, and mathematical verification on the synthesis of our results. We have not used generative AI tools for data analysis, hypothesis creation, or interpretations of results, and assistance with mathematical proofs and translation are not applicable to this work. Additionally, we used generative AI tools as a method of discovering relevant sources, figure editing, grammar and spelling refinement, and software editing. We have reviewed all AI-assisted work by inspecting our datasets for accuracy via custom tests. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
Acknowledgments
Preliminary results of the sensor representation ablation were presented by Kohlbrenner et al. (2026a), but this work further investigates the use of contact anticipation as an additional observation. This work utilized the Alpine High-Performance Computing resource at the University of Colorado Boulder. Alpine is jointly funded by the University of Colorado Boulder, the University of Colorado Anschutz, Colorado State University, and the National Science Foundation (award 2201538).
References
Appendix A Appendix
A.1 Data Curation
The PWM is pretrained on a sample dataset of 6000 trajectories of expert demonstrations containing ray sensor observations and actions. To make sure the PWM can accurately predict contact for wide range of potential policies, one third of the experts were trained having seen only raw observations (x^{\text{raw}}), one third was trained having perfect localization of incoming balls (f_{\text{tp}}), and the remaining third was trained with only the minimum sensor distance (f_{\text{min}}). To ensure that the PWM could predict incoming projectiles during training and not just when the robot has full range of motion, 50% of the data contains intermediate training step demonstrations, comprised equally of the aforementioned experts at 500, 1000, 1500, 2000, and 2500 steps of training. The remaining 50% of the data was collected using the fully trained experts at 3000 steps. 15% of the dataset was used for validation, and an additional hold-out dataset of 1000 trajectories was collected using two experts that were not used for collecting the training dataset to verify that the PWM did not overfit.
The dynamics model learns the transition dynamics between time steps and can fail when the frame rate of the data is too high to capture local dynamics. To prevent this failure mode, the 60\text{\,}\mathrm{H}\mathrm{z} dataset was windowed in a 10\text{\,}\mathrm{H}\mathrm{z} stride, forcing the dynamics model to predict in 100\text{\,}\mathrm{m}\mathrm{s} intervals.
Another failure mode of the PWM is too sparse of contact labels in the data to drive effective gradient passes, but by adding contact padding frames after an initial contact occurred, the windows could capture the sparse moments leading up to contact in the full C+R sized window.
A.2 World Model Architecture
A.2.1 Overview
Encoder/Decoder Model:
The encoder and decoder used in this work are three-dimensional variational autoencoders (3D-VAE), which stride over the H, W, and S (Kingma and Welling, 2013). A handful of variations to the standard evidence lower bound (ELBO) loss are employed in our approach to improve the fidelity of depth signals, such as a \beta regime to reduce pixel smoothing on the posterior (Higgins et al., 2017), a deterministic reconstruction term to improve decoder accuracy (Ghosh et al., 2019), and a sigmoid decoder trained using weighted soft-label binary cross-entropy (Section A.2.1).
Dynamics Model:
The dynamics model uses conditional flow matching (Lipman et al., 2022) to generate a sequence of R likely future latent observations z_{t+1:t+R} conditioned on C prior encoded observations, and candidate future actions \hat{a} as
\hat{z}_{t+1:t+R}\sim r_{\phi}(z_{t+1:t+R}\mid z_{t-C+1:t},a_{t}).The dynamics model draws the full observation roll-out in a single step, making it not auto-regressive to reduce inference time during training. Since the dynamics model is not auto-regressive, we assume a zero-order hold on candidate actions based on the most recent action a_{t}.
Contact Anticipation:
We attach a causal contact-anticipation head that maps the world model’s imagined rollout to a first-contact stopping decision. It takes the fully-denoised context latents plus the jointly-generated rollout latents, pools each frame’s sensor tokens to a single frame token, and processes the resulting context+rollout sequence with a causal transformer, yielding one hazard probability h_{r}\in[0,1] per rollout step where h_{r} sees only history through r-1. At inference we threshold the logits under a sigmoid filter and select the first step above the threshold to define the first contact state in the rollout.
We train the contact anticipation head as a discrete-time first-contact hazard problem rather than per-frame classification: only pre-event steps contribute survival loss -\log(1-h_{t}), only the first contact step contributes event loss -\log(h_{k}), and post-contact steps are masked, with an additional margin ranking term forcing the event logit above the hardest pre-event logit in the same window. Training is done on cached world-model generations rather than ground-truth latents, so the head learns the generator’s artifacts directly.
The proximity world model is held fixed during policy learning. A frame is a stack of S=64 depth images, x_{t}\in[0,1]^{1\times 8\times 8\times 64}, with millimeter ranges divided by 4000 so that 1 is the 4\,\mathrm{m} full scale. The model uses C=3 context frames and predicts R=9 future frames. At the 10\,\mathrm{Hz} training rate in Appendix A.1, the context covers the preceding 0.2\,\mathrm{s} and the rollout covers the next 0.9\,\mathrm{s}. The three modules are trained in the frozen order of Appendix A.3. Parameter counts are 2.77\times 10^{7} for the encoder–decoder, 2.20\times 10^{6} for the dynamics model, and 2.86\times 10^{4} for the contact head.
A.2.2 Implementation
Encoder:
The encoder is a 3D convolutional VAE (Kingma and Welling, 2013). Two convolutions with kernel 4 and stride (2,2,2) map 1\to 256\to 512 channels and downsample every spatial axis by 4, followed by a stride-1 convolution that preserves 512 channels. A residual block with hidden width 128 (kernel-3 convolution, ReLU, pointwise convolution, residual add) is then applied eight times with tied weights. Separate 1\times 1\times 1 convolutions read out the posterior mean and log-variance, with \log\sigma^{2} clamped to [-10,10]:
q_{\psi}(z_{t}\mid x_{t})=\mathcal{N}\!\big(\mu_{\psi}(x_{t}),\,\mathrm{diag}\,\sigma^{2}_{\psi}(x_{t})\big),\qquad\mu_{\psi}(x_{t})\in\mathbb{R}^{8\times 2\times 2\times 16}.Flattening the spatial axes gives 64 tokens of dimension e=8. The decoder mirrors the encoder with transposed convolutions and ends in a sigmoid, so each depth pixel is a Bernoulli probability. Downstream models consume \mu_{\psi}(x_{t}) with no reparameterization noise. Sampling is used only for the stochastic reconstruction term during VAE training.
Depth images are bimodal: most pixels sit at full scale, and the ball occupies a few low values. Mean-squared error therefore blurs the near field. The reconstruction term is a weighted binary cross-entropy,
\mathcal{L}_{\mathrm{BCE}}(\hat{x},x)=\mathbb{E}\big[w(x)\,\mathrm{BCE}(\hat{x},x)\big],\qquad w(x)=\begin{cases}10&x<0.4,\\
1&x\geq 0.4,\end{cases}so returns closer than 1.6\,\mathrm{m} receive 10\times reconstruction weight. An \ell_{1} penalty on horizontal and vertical finite differences, applied inside each sensor and not across sensors, keeps range edges:
\mathcal{G}(\hat{x},x)=\|\nabla_{H}\hat{x}-\nabla_{H}x\|_{1}+\|\nabla_{W}\hat{x}-\nabla_{W}x\|_{1}.Let \hat{x}_{z} be the decode of a reparameterized sample and \hat{x}_{\mu} the decode of \mu_{\psi}(x). The training objective is
\displaystyle\mathcal{L}_{\mathrm{VAE}} \\ \displaystyle=\big[\mathcal{L}_{\mathrm{BCE}}(\hat{x}_{z},x)+\lambda_{\mu}\mathcal{L}_{\mathrm{BCE}}(\hat{x}_{\mu},x)\big] \\ \displaystyle\quad+\lambda_{\nabla}\big[\mathcal{G}(\hat{x}_{z},x)+\lambda_{\mu}\mathcal{G}(\hat{x}_{\mu},x)\big]+\beta\,D_{\mathrm{KL}}\!\big(q_{\psi}(z\mid x)\,\|\,\mathcal{N}(0,I)\big),with \lambda_{\mu}=1.5, \lambda_{\nabla}=0.1, and \beta=10^{-4}. The KL is the mean per-dimension closed form, so \beta is a light regularizer: reconstruction, including the deterministic decode of \mu (Ghosh et al., 2019), determines the latent, while a nonzero KL keeps dynamics samples in a region the decoder has seen (Higgins et al., 2017). The encoder is optimized with Adam at learning rate 10^{-4} for 100 epochs and batch size 512, on frames shuffled independently of time.
Dynamics:
Future latents are drawn jointly with conditional flow matching (Lipman et al., 2022). For a target window z_{1}=z_{t+1:t+R} and z_{0}\sim\mathcal{N}(0,I),
z_{\tau}=(1-\tau)z_{0}+\tau z_{1},\qquad\tau\sim\mathrm{Unif}(0,1),\qquad\mathcal{L}_{\mathrm{FM}}=\big\|v_{\phi}(z_{\tau},\tau\mid z_{t-C+1:t},a_{t})-(z_{1}-z_{0})\big\|_{2}^{2}.The conditional velocity v_{\phi} is a two-layer diffusion transformer (DiT) of width 256, four heads, and feed-forward width 512, with dropout 0.001 (Peebles and Xie, 2023). Context tokens and noisy future tokens are concatenated. Each token is the sum of a linear map of its 8-dimensional latent, a learned frame index, a learned index among the 64 spatial tokens, and a learned role embedding that marks context versus future. The only action input is the 21-dimensional joint target a_{t} at the last context frame. A two-layer MLP (21\to 256\to 256, SiLU) maps a_{t} and adds it to every spatial token of every future frame, so the same action is held for all R steps in both training and sampling. Flow time \tau is a sinusoidal embedding that produces adaptive layer-norm scale, shift, and residual gates inside each block, zero-initialized so each block starts as the identity (Peebles and Xie, 2023). Attention is bidirectional over the window. Only the future-token features are projected back to an 8-dimensional velocity.
Sampling integrates \mathrm{d}z/\mathrm{d}\tau=v_{\phi} with Euler’s method for 3 uniform steps from \tau=0 to \tau=1, starting at Gaussian noise. 3 steps was found to be a sweet spot between computation and prediction accuracy for our application (Fig. 9). All R frames are produced by that one integration. The dynamics model is optimized with AdamW at learning rate 5\times 10^{-4}, weight decay 10^{-3}, and gradient clip 1, for 100 epochs and batch size 512, on posterior means from the frozen encoder.
Contact prediction head:
The head maps a fully denoised context and a generated rollout to a first-contact decision. Within each frame, tokens are projected to width 32, the same frame, spatial, and role embeddings are added, and a learned query cross-attends to the 64 tokens. A residual MLP of width 64 yields one frame vector. A two-layer causal transformer (width 32, two heads, feed-forward width 64, dropout 0.05) then runs over the C+R frame vectors. The hazard logit \ell_{r} for future step r\in\{1,\ldots,R\} is read from the state that has attended to the context and to generated frames 1,\ldots,r-1. The frame being scored is excluded, so a generated latent cannot explain its own contact label. The linear head is bias-initialized to -1.4, i.e. a prior hazard probability \sigma(-1.4)\approx 0.20.
Labels come from the simulator contact flag and may stay positive after impact. Training uses only the first positive step. If that step is T_{c}, steps t<T_{c} are survival steps, step T_{c} is the event, and steps t>T_{c} are masked. A window with no contact contributes only survival terms. With h=\sigma(\ell),
\displaystyle\mathcal{L}_{\mathrm{event}} \\ \displaystyle=\mathbb{E}_{t=k}\big[-\log h_{t}\big], \\ \displaystyle\mathcal{L}_{\mathrm{surv}} \\ \displaystyle=\mathbb{E}_{t<k}\big[-\log(1-h_{t})\big], \\ \displaystyle\mathcal{L}_{\mathrm{rank}} \\ \displaystyle=\mathbb{E}\Big[\mathrm{softplus}\big(\max_{t<k}\ell_{t}-\ell_{k}+m\big)\Big], \\ \displaystyle\mathcal{L}_{\mathrm{hazard}} \\ \displaystyle=\mathcal{L}_{\mathrm{event}}+\lambda_{s}\mathcal{L}_{\mathrm{surv}}+\lambda_{r}\mathcal{L}_{\mathrm{rank}}.Averages are taken over the positions or windows that contribute to each term, so the single event step is not diluted by the longer survival prefix. Windows whose contact falls on the first rollout step have no pre-event logit and skip the ranking term. We use \lambda_{s}=0.8, \lambda_{r}=0.3, and m=0. The head is optimized with Adam at learning rate 3\times 10^{-4} for 200 epochs and batch size 1024, on rollouts cached from the frozen dynamics model, so it learns that generator’s errors.
At inference, h_{r}=\sigma(\ell_{r}) and the selected future frame is
r^{\star}=\min\{r:h_{r}\geq 0.5\},or r^{\star}=R when no step crosses 0.5. The policy receives the latent of that frame.
The contact head achieved a 96.9% prediction accuracy on future contact, and an 83.8% accuracy on non-contact labels (Fig. 8).
A.3 Training Regime
The encoder and decoder were trained together without the dynamics and contact prediction models, then held frozen while the dynamics model and contact anticipation head were trained. The dynamics model was also held frozen during training of the contact prediction head.
The encoder and decoder were trained on a shuffled set of raw sensor observations. The dynamics model was trained on temporally consistent latent observations generated by the encoder model, and the contact anticipation head was trained on rollouts of latent vectors generated by the dynamics model.
Limitations:
We note that a large dataset of trajectories was needed to train the PWM itself, rendering it not sample-efficient for adaptive end-to-end collision avoidance on real data. However, we maintain the stance that our investigation reveals how representing future sensor observations can influence downstream sample-efficiency during training. We hope that this work advances egocentric proximity sensors do be designed for sample-efficiency downstream and end-to-end on real systems.