# Magflow: Differentiable Simulation of Industrial-Grade 6D Magnetic Levitation

arXiv: https://arxiv.org/abs/2611.23050 · HTML: https://mlsanity.com/paper/2611.23050/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 16 of its 54 references that are in the map.
- Submitted 17 Nov 2026, announced 18 Nov 2026.

## Builds on (most cited first, 16 of 16)

- [Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World](https://mlsanity.com/paper/1703.06907/) (2017)
- [End-to-End Training of Deep Visuomotor Policies](https://mlsanity.com/paper/1504.00702/) (2015)
- [Sim-to-Real Transfer of Robotic Control with Dynamics Randomization](https://mlsanity.com/paper/1710.06537/) (2017)
- [Learning Dexterous In-Hand Manipulation](https://mlsanity.com/paper/1808.00177/) (2018)
- [Brax -- A Differentiable Physics Engine for Large Scale Rigid Body Simulation](https://mlsanity.com/paper/2106.13281/) (2021)
- [Do Differentiable Simulators Give Better Policy Gradients?](https://mlsanity.com/paper/2202.00817/) (2022)
- [Low Level Control of a Quadrotor with Deep Model-Based Reinforcement Learning](https://mlsanity.com/paper/1901.03737/) (2019)
- [Learning Quadrotor Control From Visual Features Using Differentiable Simulation](https://mlsanity.com/paper/2410.15979/) (2024)
- [End-to-end Neural Network Based Quadcopter control](https://mlsanity.com/paper/2304.13460/) (2023)
- [Learning on the Fly: Rapid Policy Adaptation via Differentiable Simulation](https://mlsanity.com/paper/2508.21065/) (2025)
- [SHaRe-RL: Structured, Interactive Reinforcement Learning for Contact-Rich Industrial Assembly Tasks](https://mlsanity.com/paper/2509.13949/) (2025)
- [A Linear-Time Variational Integrator for Multibody Systems](https://mlsanity.com/paper/1609.02898/) (2016)
- [End-to-End Low-Level Neural Control of an Industrial-Grade 6D Magnetic Levitation System](https://mlsanity.com/paper/2509.01388/) (2025)
- [How to Model Your Crazyflie Brushless](https://mlsanity.com/paper/2603.05944/) (2026)
- [Crazyflow: An Accurate, GPU-Accelerated, Differentiable Drone Simulator in JAX](https://mlsanity.com/paper/2606.01478/) (2026)
- [From Transportation to Manipulation: Transforming Magnetic Levitation to Magnetic Robotics](https://mlsanity.com/paper/2603.01982/) (2026)

## Abstract (arXiv)

Magnetic levitation with six-degrees-of-freedom enables frictionless transport and micrometer-scale positioning in principle, but low-level control is inherently challenging due to its complex and unstable dynamics. Industrial systems typically rely on deep hardware-software co-design, where mover and stator geometries are jointly designed to enable a compact, hand-crafted approximation of the electromagnetic force computation, thereby keeping control computationally tractable at kilohertz rates. However, this approach imposes overly conservative constraints on the operating workspace and the range of supported mover topologies. Instead of reducing the underlying physics to a hand-crafted approximation, we compute the physics directly. We introduce Magflow, a fully differentiable, GPU-parallel simulator for 6D magnetic levitation. It is used to train the first neural controller for an industrial-grade 6D magnetic levitation system that is learned purely from simulated physics. We show that the learned neural controller transfers zero-shot from simulation to real hardware while satisfying hard real-time constraints at 4 kHz. The learned controller achieves qualitatively new behaviors and even levitates a mover topology for which no hand-crafted solution exists. These results demonstrate that co-design is not a physical necessity for 6D magnetic levitation control. More broadly, control learning from simulated physics can find solutions beyond the reach of control engineering in demanding industrial domains. Source code and demonstration videos are publicly available at https://sites.google.com/view/magflow.
