← Latest papers
⚛️ high-energy experiments

LEAF: LUT-aware Efficient Attention on FPGAs

The paper introduces LEAF, the first nanosecond-scale, LUT-aware transformer for FPGAs that achieves ultra-low-latency inference by converting attention mechanisms into FPGA-native layers, resulting in significantly improved accuracy and resource efficiency for real-time applications like jet tagging at CERN.

Original authors: Arianna Cox, Chang Sun, Lauri Laatu, Benedikt Maier, Aadeesh Sharma, Leo Rozanov, Wayne Luk, Maria Spiropulu, Alexander Tapper, Zhiqiang Que

Published 2026-10-21
📖 5 min read🧠 Deep dive

Original authors: Arianna Cox, Chang Sun, Lauri Laatu, Benedikt Maier, Aadeesh Sharma, Leo Rozanov, Wayne Luk, Maria Spiropulu, Alexander Tapper, Zhiqiang Que

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 heart of Europe, the Large Hadron Collider smashes particles together at nearly the speed of light, generating a torrent of data so vast that it cannot possibly be saved. Every second, hundreds of terabytes of information pour from the collision points, but the machines that record these events have only a tiny amount of memory to hold onto anything. To manage this flood, scientists rely on a two-stage filtering system. The first stage is a hardware trigger, a specialized computer chip that must decide in a fraction of a microsecond whether a collision is interesting enough to keep or if it should be discarded forever. If the chip makes the wrong choice, a rare signal from the early universe might be lost, or the system might waste precious space on unimportant noise. For decades, these chips have used simple, fast rules to make decisions, but physicists have long wanted to use more sophisticated artificial intelligence to spot subtle patterns that simple rules miss. The challenge has been that the most powerful AI models are too large and too slow to fit on the tiny chips that run the trigger, creating a bottleneck between the desire for smarter detection and the reality of limited hardware.

A team of researchers has now built a new kind of artificial intelligence layer specifically designed to solve this problem, allowing complex models to run on these hardware chips with unprecedented speed and efficiency. They call their creation LEAF, which stands for Lookup-table (LUT)-aware Efficient Attention on FPGAs. The core of their innovation is a method that changes how the model thinks about its own calculations. Instead of performing every mathematical step by multiplying numbers together in the traditional way, the new system learns to replace many of these steps with pre-made lookup tables. Imagine a massive dictionary where the answer to a specific question is written down and ready to be read instantly, rather than calculated from scratch every time. By training the model to recognize which parts of its work can be turned into these instant lookups, the researchers created a system that is both incredibly fast and surprisingly small.

The researchers tested this new approach on a task known as jet tagging, which involves identifying the type of particle that created a spray of debris after a collision. This is a critical step in the trigger system because distinguishing a rare, interesting particle from the overwhelming background of common particles is essential for discovering new physics. They trained their model to look at a sequence of particles, measuring their momentum and position, and then classify the spray into one of five categories. When they compared their new LEAF models against previous state-of-the-art attempts, the results were striking. On a standard test with 32 input particles, their model achieved a higher accuracy than any previous attempt while using nearly three times fewer of the fundamental building blocks of the chip, known as lookup tables. In the most efficient version of their design, which processed 64 particles, the model reached a classification accuracy of 80.4 percent while using only 28,000 lookup tables and making a decision in just 35 nanoseconds.

What makes this achievement particularly significant is how the researchers handled the most difficult part of the artificial intelligence model, the attention mechanism. This mechanism is what allows the model to weigh the importance of different particles relative to one another, but it is notoriously difficult to implement on hardware because it requires multiplying two changing values together, a process that does not fit neatly into a lookup table. The team found a way around this by converting the parts of the model that use fixed, unchanging numbers into lookup tables, while leaving the variable parts in their standard arithmetic form. This hybrid approach allowed the entire system to be trained together, automatically balancing the need for accuracy against the strict limits of the hardware. The result is a model that does not just run faster, but runs smarter within the tight constraints of the chip.

The team integrated their new layers into an open-source software tool, making the technology available for other scientists to use in their own applications. They demonstrated that their method works not just for standard models, but also for a streamlined version called a linformer, which is designed to be even more efficient. In their tests, the linformer version with 64 input particles achieved an accuracy of 80.4 percent at 28,000 lookup tables and 35 nanoseconds, outperforming previous methods that required significantly more resources to achieve lower accuracy. The researchers showed that by carefully redesigning how the model interacts with the hardware, they could push the limits of what is possible, moving complex artificial intelligence from the realm of theoretical possibility into the practical reality of real-time particle physics. This work suggests that future trigger systems could become much more sensitive, potentially uncovering rare events that were previously hidden by the limitations of older, less efficient hardware.

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 →