← Latest papers
⚛️ phenomenology

MadSpace -- Event Generation for the Era of GPUs and ML

MadSpace is a modular C++ library with native GPU support that unifies phase-space construction, adaptive and neural importance sampling, and event unweighting within a compute-graph framework, offering a high-level Python interface for seamless integration with machine learning workflows.

Original authors: Theo Heimel, Olivier Mattelaer, Ramon Winterhalder

Published 2026-02-25
📖 5 min read🧠 Deep dive

Original authors: Theo Heimel, Olivier Mattelaer, Ramon Winterhalder

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

Imagine you are trying to predict the outcome of a massive, chaotic party where billions of guests (particles) collide, bounce off each other, and fly off in every direction. Physicists call this a "particle collision," like those happening at the Large Hadron Collider (LHC). To understand the universe, they need to simulate these collisions millions of times to see what patterns emerge.

For decades, the software used to run these simulations (like MadGraph) has been like a very smart, but somewhat slow, accountant working on an old desktop computer. It calculates every possibility one by one. But as the "party" gets bigger and more complex (with the upcoming High-Luminosity LHC), this old accountant is starting to get overwhelmed. The simulations are becoming the bottleneck, slowing down the entire scientific discovery process.

Enter MadSpace.

Think of MadSpace not just as a new accountant, but as a super-efficient, high-speed assembly line designed specifically for modern supercomputers and graphics cards (GPUs). Here is how it works, broken down into simple concepts:

1. The Map Maker (Phase-Space Mappings)

To simulate a collision, you first need a "map" of all the possible ways the particles could fly apart. This is called "phase space."

  • The Old Way: Imagine trying to find a specific house in a giant city by walking down every single street, checking every door. It's thorough but incredibly slow.
  • The MadSpace Way: MadSpace is like a GPS that knows exactly which streets are likely to have the "houses" you are looking for. It uses smart shortcuts (called mappings) to skip empty areas and focus on the interesting spots.
    • It has a special tool called FastRambo. Imagine a classic game where you have to solve a complex math puzzle to find a path. The old way required solving the puzzle every time. MadSpace's FastRambo is like having a pre-drawn, perfect map that you can just follow instantly, skipping the puzzle-solving step entirely.

2. The Factory Floor (The Compute Graph)

Most software is written like a recipe: "Do step A, then step B, then step C." If step A is slow, the whole recipe waits.

  • MadSpace's Innovation: Instead of a recipe, MadSpace builds a blueprint (a "compute graph") of the entire process before it starts.
  • The Analogy: Imagine a factory. In the old system, the manager tells one worker to do a task, waits for them to finish, then tells the next worker. In MadSpace, the blueprint shows that 1,000 workers can do their tasks simultaneously on a massive assembly line.
  • Because it builds this blueprint once and then runs it over and over, it can use the massive power of GPUs (the chips in your gaming computer) to process thousands of collision scenarios at the exact same time.

3. The Filter (Unweighting)

When simulating collisions, the computer generates millions of "potential" outcomes, but most of them are impossible or very unlikely. The computer has to throw these away and keep only the "real" ones. This is called "unweighting."

  • The Problem: In the old system, the computer would generate a batch, write it to a hard drive, wait for the next batch, and then try to combine them all at the end. It was like a chef cooking a meal, writing down the ingredients on a piece of paper, throwing the paper away, and starting over.
  • The MadSpace Solution: MadSpace keeps everything in the computer's memory (RAM) while it works. It filters the "bad" events instantly and only writes the "good" ones to the disk. It's like a chef who tastes the food as they cook it and only plates the perfect dishes, saving massive amounts of time.

4. The Universal Translator (UMAMI Interface)

Physics simulations need to talk to other complex programs that calculate the "force" of the collision (Matrix Elements).

  • MadSpace introduces UMAMI, a universal translator. It allows MadSpace to talk to these other programs without needing to rewrite the code every time. It's like having a universal power adapter that fits any device, whether it's running on a standard computer (CPU) or a super-fast graphics card (GPU).

Why Does This Matter?

  • Speed: MadSpace can generate events 10 to 250 times faster than current methods, especially when using modern GPUs.
  • Scalability: As the LHC collects more data, MadSpace can scale up effortlessly by adding more GPUs, whereas old software would just crash or take forever.
  • Future-Proof: It is built to work with Machine Learning (AI). In the future, instead of just following fixed rules, MadSpace will be able to "learn" the best ways to simulate collisions, making it even smarter and faster.

In a Nutshell

If particle physics simulation is a race, the old software was a runner in heavy boots. MadSpace is a runner with jet-powered skates. It doesn't just run faster; it changes the entire track, allowing scientists to explore the universe's secrets at a speed we've never seen before. It is the engine that will power the next generation of discoveries at the Large Hadron Collider.

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 →