Abstract
Adaptable models could greatly benefit robotic agents operating in the real world, allowing them to deal with novel and varying conditions. While approaches such as Bayesian inference are well-studied frameworks for adapting models to evidence, we build on recent advances in deep generative models which have greatly affected many areas of robotics. Harnessing modern GPU acceleration, we investigate how to quickly adapt the sample generation of neural network models to observations in robotic tasks. We propose a simple and general method that is applicable to various deep generative models and robotic environments. The key idea is to quickly fine-tune the model by fitting it to generated samples matching the observed evidence, using the cross-entropy method. We show that our method can be applied to both autoregressive models and variational autoencoders, and demonstrate its usability in object shape inference from grasping, inverse kinematics calculation, and point cloud completion.
Introduction
Robotic agents operating in the real world constantly encounter "novelty"—objects they haven't seen or obstacles in unexpected locations. To handle these variations, robots need to update their internal "mental models" based on new evidence, a process fundamentally described by Bayesian inference. However, a significant technical gap exists between theory and practice. Classical Bayesian methods like Markov Chain Monte Carlo (MCMC) are often too slow for high-dimensional data like point clouds, while amortized models such as Conditional Variational Autoencoders (CVAEs) are fast but brittle. Because CVAEs are trained to predict results based on specific training distributions, they often fail completely when faced with out-of-distribution (OOD) observations.
This paper introduces MACE (Model Adaptation with the Cross-Entropy method), a novel framework that treats robotic inference as a fast, online fine-tuning problem. By iteratively updating the weights of a deep generative model to match real-world observations via a simulator, MACE allows robots to adapt to novel scenarios that break traditional conditional models.
The MACE Framework
MACE repurposes the Cross-Entropy Method (CEM)—traditionally used for trajectory optimization—to fine-tune the parameters of a generative model at test-time. The algorithm follows an iterative loop:
- Sample: Generate a batch of samples from the current generative model (e.g., possible object shapes or robot poses).
- Simulate: Use a forward simulator (like PyBullet or IsaacGym) to determine what observations those samples would produce.
- Score: Compare the simulated observations to the actual real-world observation using a similarity score.
- Select & Update: Identify the "elite" samples (the top $q$ quantile) and perform a few steps of Stochastic Gradient Descent (SGD) to update the model's weights, making those high-scoring samples more likely.
MACE is highly versatile, demonstrating success with both Autoregressive models (by tuning network weights) and Variational Autoencoders (by tuning the parameters of the latent distribution).
Experimental Evaluation
The researchers evaluated MACE across three distinct robotic domains:
- ShapeNet (Airplane class): Used for object shape inference from tactile grasping and point cloud completion, utilizing over 4,000 complex 3D models.
- Franka Emika Panda IK Dataset: 1 million joint configurations collected via the PyBullet physics engine to train a prior for Inverse Kinematics (IK).
- Synthetic Box Dataset: 10,000 symmetrical 3D boxes used for point cloud completion proof-of-concept.
Key Results and Discussion
Out-of-Distribution Robustness
A primary advantage of MACE is its performance in OOD scenarios. Unlike CVAEs, which are "locked in" after training, MACE optimizes at test-time. In grasping tasks with unusual finger placements, MACE significantly outperformed CVAEs, which produced meaningless samples when faced with data outside their training distribution (see Figure 1).
Diversity Preservation
A common failure in robotic inference is "mode collapse," where a model only suggests a single solution. MACE effectively explores multi-modal distributions, providing a variety of possible solutions, such as multiple ways to reach a goal around an obstacle. This is reflected in the maintenance of pairwise Chamfer Distance (CD) compared to amortized baselines.
Speed and Success Rates
In IK tasks, MACE achieved a 94.1% success rate in finding non-colliding poses in complex environments, compared to only 13.2% for the un-tuned prior. Furthermore, in a "Box Task" involving reaching into a container, MACE found solutions in 0.106 seconds, outperforming the industry-standard MoveIt library, which took 1.553 seconds. By utilizing GPU-based simulators like IsaacGym, the authors reduced tuning times significantly, moving closer to true real-time performance.
Conclusion
MACE bridges the gap between flexible Bayesian inference and fast amortized models by framing inference as an optimization problem. While it requires a forward simulator and currently faces some latency challenges (7–65 seconds for full adaptation), it offers a robust path forward for robots operating in unpredictable, real-world environments. Future work will focus on extending MACE to active sensing, allowing robots to choose observations that update their models most efficiently.
Summary updated