A magnetic film just tens of atoms thick stores information in tiny magnetic vortices. But you can't look inside and see these vortices directly: the instrument only senses the weak magnetic field around the film. Reconstructing the magnetization pattern from such a field is like guessing the shape of an invisible relief from its shadow on a wall. The same shadow can be cast by many different shapes, and the problem splits into an infinite number of answers.
The authors proposed a method that doesn't require ready-made examples for training. Instead, they run a simple neural network that itself selects an image explaining the measured field. The network starts from random noise and gradually, step by step, draws the magnetic pattern while checking against the laws of physics. This approach is called deep image prior: the network 'knows' before training that natural images are usually smooth and connected, not random pixel garbage.
The experiments were carried out on permalloy patterns, a nickel-iron alloy, deposited on tiny pads on a silicon substrate. Comparison with an independent method, magnetic force microscopy, confirmed that the reconstructed images match the real magnetic domains — regions where all atomic magnets point in the same direction. Such a tool will be useful for developing memory that stores information in magnetic vortices and sensors that detect ultra-weak fields.
Permalloy, used in this work, magnetizes even in the Earth's weak field, which is why it's used for transformer cores and shields that protect instruments from magnetic interference.
In Greg Egan's story 'Wang's Carpets', magnetization patterns in thin films become carriers of consciousness — what a distant future for spintronics!