TL;DR
This paper introduces BayesSim-RKHS, a framework that bridges the "real-to-sim" gap for deformable objects like cloth and rope. By treating noisy, inconsistent keypoints as samples from a probability distribution and embedding them into a Reproducing Kernel Hilbert Space (RKHS), the authors create a state representation that is robust to noise and permutation-invariant, allowing for more accurate inference of physical parameters (like friction and elasticity) from real-world images.
What Problem Does This Paper Address?
In robotics, "real-to-sim" involves tuning a simulator's parameters so that its behavior matches reality. For rigid objects, this is relatively straightforward because their "state" (position and orientation) is easy to define.
Deformable objects (cloth, ropes, cables) are a nightmare for traditional methods. They have infinite degrees of freedom, and their state is usually captured via high-dimensional images. While researchers often use "keypoints" to simplify this, keypoints on deformables are notoriously unreliable:
- Permutation: Keypoint detectors might swap the "label" of two corners of a cloth between frames.
- Inconsistency: A keypoint might track a specific corner in one frame but drift to a random fold in the next.
- Noise: Occlusions and sensor noise make point-tracking jittery.
Standard inference methods fail when the input state representation is this "messy."
Methods
The authors propose BayesSim-RKHS, which combines Bayesian simulation-based inference with kernel methods:
- BayesSim: A likelihood-free inference method that uses a Mixture Density Neural Network (MDNN) to learn a posterior distribution over simulation parameters $\theta$ (e.g., bending stiffness, friction) given observed trajectories.
- Distributional State Representation: Instead of feeding a raw vector of keypoint coordinates into the model, they treat the keypoints as samples from an underlying spatial distribution.
- RKHS Mean Embeddings: They map this distribution into a Reproducing Kernel Hilbert Space. This makes the representation permutation-invariant (the order of keypoints doesn't matter) and robust to tracking inconsistencies.
- RKHS-net Layer: To make this computationally efficient and end-to-end trainable, they use Random Fourier Features (RFF) to approximate the kernel embedding. This layer is fully differentiable, allowing the model to learn the best embedding parameters (like the kernel bandwidth $\sigma$) via gradient descent.
- Keypoint Extraction: They test the system using both a supervised keypoint detector (ResNet-34) and an unsupervised one (based on the Transporter architecture).
Datasets
The study utilizes a mix of simulated and real-world data:
- Simulation: PyBullet simulator using the Finite Element Method (FEM) for deformable physics.
- Hardware: A Kinova Gen3 7DoF robot arm with a Robotiq gripper and an Intel RealSense D435 camera.
- Tasks:
- Wiping: Dragging a thick cloth across a table.
- Winding: Wrapping a flexible rope around a spool (high occlusion).
- Flinging: Tossing a cloth into the air and dragging it (highly dynamic).
- Data Volume: Keypoint models were trained on very small datasets (~1 minute of hardware data and 100 simulated trajectories), highlighting the data efficiency of the approach.
Key Insights and Ideas
- Treating State as a Cloud, Not a Vector: The "aha moment" is realizing that for deformables, specific point-tracking is a trap. By treating keypoints as a "cloud" of samples, the math of Kernel Mean Embeddings naturally handles the fact that keypoints might swap places or disappear.
- Permutation Invariance is Essential: Traditional neural networks are sensitive to the order of inputs. If a cloth's "Corner A" and "Corner B" swap indices in the input vector, a standard MDNN sees a completely different state. The RKHS embedding eliminates this issue entirely.
- Sim-to-Real as Iterative Inference: The method doesn't just train once; it iteratively samples simulation parameters from the current posterior, runs new simulations, and refines the posterior to "zoom in" on the parameters that best match the real-world data.
Key Results
- Superior Accuracy: BayesSim-RKHS significantly outperformed standard BayesSim and "bulk" training methods (Gaussian Processes and standard Neural Networks) across all three tasks.
- Robustness in the "Winding" Task: This was the most challenging scenario due to occlusions. BayesSim-RKHS showed the largest improvement here because its distributional representation could handle the rope keypoints moving inconsistently along the length of the rope.
- Parameter Recovery: The model successfully narrowed down posterior distributions for physical properties like elasticity, friction, and scale, even when starting from very wide, uninformative priors.
Limitations and Future Work
- Visual Mismatch: The authors assumed the camera perspective and basic visual appearance (colors/textures) in the sim roughly matched the real world. They did not tackle the "visual" domain gap (e.g., lighting changes).
- Simplified Grasping: In simulation, the robot's interaction with the object was simplified using a "grasp anchor" rather than simulating complex contact physics between gripper fingers and thin fabric.
- Robot Masking: In unsupervised settings, the keypoint detector sometimes mistakenly placed points on the robot arm instead of the cloth. Future work could involve explicitly modeling the robot in the simulation to help the perception system ignore it.
Summary updated