← Latest papers
🔬 applied physics

Compositional neural networks for multimodal X-ray and neutron scattering inversion

This paper introduces a modular, uncertainty-aware framework using compositional flow matching to solve non-unique inverse problems in X-ray and neutron scattering by training separate single-observation models that are combined at inference time for effective multimodal co-refinement without requiring joint retraining.

Original authors: Valentin Munteanu, Alexander Hinderhofer, Dmitry Lapkin, Vladimir Starostin, Frank Schreiber

Published 2026-10-22
📖 7 min read🧠 Deep dive

Original authors: Valentin Munteanu, Alexander Hinderhofer, Dmitry Lapkin, Vladimir Starostin, Frank Schreiber

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of materials science, understanding how a substance is built at the atomic level is often like trying to reconstruct a shattered vase by looking only at the shadows it casts on a wall. Scientists use powerful beams of X-rays or neutrons to probe the structure of thin films and complex materials. When these beams hit a sample, they scatter, creating a pattern of intensity that holds the secrets of the material's internal architecture. However, there is a fundamental catch: the detectors record how bright the scattered light is, but they lose the information about the timing or phase of the waves. This missing piece creates a puzzle where many different internal structures could produce the exact same shadow pattern. Consequently, scientists often face a situation where a single measurement cannot tell them the true shape of the material, leaving them with multiple possible answers rather than one clear truth.

To solve this, researchers have long tried to combine different types of measurements, hoping that the weaknesses of one technique would be balanced by the strengths of another. Yet, merging these different data streams into a single, coherent picture has been a formidable challenge for computer models. A new study from researchers at the University of Tübingen in Germany introduces a fresh approach to this problem. They have developed a flexible system that allows artificial intelligence models, trained separately on different types of scattering data, to work together seamlessly. Instead of forcing a single, massive computer program to learn every possible combination of experiments, their method lets specialized models share their insights at the very end of the process. This innovation allows scientists to combine data from X-rays, neutrons, and even polarized neutrons to reveal the hidden structure of materials with much greater certainty than ever before.

The core of this work lies in a technique called "flow matching," which can be thought of as a way for a computer to learn how to transform a simple, random cloud of possibilities into a specific, detailed map of what a material likely looks like. Imagine a computer starting with a vast, unstructured cloud of guesses about a material's thickness, density, and roughness. Through training on millions of simulated experiments, the computer learns a set of rules—a mathematical flow—that gently pushes this cloud of guesses until it settles into the most probable shape that matches the real-world data. In this new framework, the researchers trained separate "experts" for different types of experiments. One expert learned to interpret X-ray data, another learned to handle neutron data, and a third learned to decode the complex signals from polarized neutrons. Each expert became highly skilled at its own job, but they were not designed to talk to each other during their training.

The breakthrough happens when these experts are brought together to analyze a real sample. The researchers devised a method to combine the insights of these separate experts at the moment of analysis, rather than during the learning phase. When a sample is measured with both X-rays and neutrons, the system asks each expert for their best guess about the material's structure. Crucially, the system knows which parts of the structure are shared between the two measurements—such as the thickness of a layer or the roughness of an interface—and which parts are unique to a specific measurement, such as how the material interacts with X-rays versus neutrons. The system then carefully merges the experts' opinions, ensuring that the shared information is counted correctly and that the unique details from each measurement are preserved. This process effectively creates a single, unified picture that is more accurate than any single expert could provide alone.

The team tested this approach on a variety of real-world scenarios, ranging from simple organic films to complex magnetic structures. In one experiment, they analyzed a thin film of an organic semiconductor using only X-rays. The system successfully reconstructed the film's density profile, showing that the computer could learn the basic structure from a single type of data. They then moved to more complex cases, such as a polymer brush structure, where the material's properties change gradually from the surface inward. Here, the system handled data that was not evenly spaced, a common feature of neutron experiments, and still produced a clear picture of the material's internal layout. Perhaps most impressively, the researchers combined data from X-rays and neutrons to study a magnetic material made of platinum and iron. X-rays are sensitive to the electron density of the atoms, while neutrons are sensitive to the atomic nuclei and magnetic properties. By combining these two views, the system was able to map out both the physical layers and the magnetic orientation of the material simultaneously, something that would be extremely difficult to achieve with traditional methods.

The study also demonstrated that this modular approach works well when multiple measurements of the same sample are taken under different conditions. For instance, in neutron experiments, scientists often change the chemical environment around the sample to highlight different parts of its structure. The researchers showed that their system could take a model trained on a single measurement and reuse it to analyze three different chemical environments at once. The system correctly identified that the physical thickness of the layers remained the same across all three conditions, while allowing the chemical properties to vary as expected. This ability to reuse trained models without needing to retrain them for every new combination of experiments is a significant practical advantage. It means that as scientists collect more data in the future, they can simply plug their new measurements into the existing framework, saving time and computational power.

While the results are promising, the authors are careful to note the boundaries of their work. The system relies on the quality of the initial training data and the accuracy of the simulations used to teach the computer. In some complex magnetic cases, the model used a simplified version of the physics to make the training feasible, meaning that the most intricate details of real-world magnetic disorder were not fully captured in this specific demonstration. Furthermore, the process of combining the different expert opinions requires careful mathematical handling to ensure that the final result is not distorted by the way the information was merged. Despite these limitations, the study establishes a robust foundation for a new way of thinking about scientific data analysis. It moves the field away from trying to build one giant, all-knowing computer model and toward a more modular, collaborative approach where specialized tools can be combined on the fly.

This work suggests a future where the analysis of complex materials becomes faster and more reliable. As experiments at large facilities generate vast amounts of data, the ability to quickly and accurately interpret them becomes critical. By allowing different types of measurements to inform one another without requiring a complete overhaul of the analysis software, this method offers a path toward more automated and efficient scientific discovery. The researchers have shown that by respecting the unique strengths of each measurement type while finding a common language for their shared information, it is possible to see the hidden structure of matter with a clarity that was previously out of reach. This is not just a technical improvement in how data is processed; it is a shift in how scientists can approach the fundamental question of what things are made of, turning ambiguous shadows into a clear, three-dimensional understanding of the material world.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →