SelectInfer: Selective Neuron Loading and Computation for On-Device LLMs
SelectInfer is a neuron-level optimization framework that enables efficient on-device Large Language Model inference by using an offline profiler to identify and selectively load and compute only the most important neurons, thereby significantly reducing memory and computational costs without compromising task performance.
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 have a giant library of knowledge, so vast that it contains the answer to almost any question you could ask. This is what scientists call a Large Language Model (LLM). Think of it like a super-smart robot brain that has read almost every book on the internet. But here's the catch: this brain is so huge and heavy that it usually needs a massive, expensive data center with powerful supercomputers to run. It's like trying to carry a full-sized library in your backpack; it just doesn't fit.
Recently, people have wanted to put this "library" into smaller devices, like the smart gadgets in your pocket or the computers in self-driving cars. These are called "edge devices." The problem is, these gadgets have very limited space and battery power. If you try to force the whole library onto them, the device crashes or runs so slowly it's useless. Scientists have tried to shrink the library by squishing the books (making them smaller but harder to read) or throwing away entire shelves (which makes the robot forget things). But these old tricks often break the robot's ability to think clearly. The big question is: Can we make this giant brain fit in a small backpack without losing its genius?
Enter SelectInfer, a new idea from researchers at Paderborn University that suggests a clever way to solve this puzzle. Instead of trying to shrink the whole library or throw away random books, SelectInfer acts like a very smart librarian who knows exactly which books you need right now.
Here is how it works, using a simple story. Imagine your robot brain is a massive factory with thousands of workers (called "neurons"). In a normal factory, every single worker shows up to work every day, even if they have nothing to do. This wastes space and energy. The researchers discovered that these workers actually fall into two groups. Some are "Generalists" who always show up, no matter what the job is—like the people who keep the lights on and the coffee machine running. Others are "Specialists" who only show up for specific tasks, like the team that fixes the plumbing or the team that paints the walls.
The paper shows that for any given task, you don't need all the specialists, and you definitely don't need the ones who aren't working today. SelectInfer uses a two-step magic trick to make the factory run on a tiny device:
Selective Loading (The Backpack Trick): Before the robot even starts working, the researchers use an "offline profiler" (a kind of scout) to figure out which Generalists and Specialists are the most important. Then, when the robot is ready to go, it only packs those specific workers into its backpack (memory). It leaves the rest behind. This is like only packing the tools you need for a camping trip instead of the whole hardware store. This allows the robot to fit into devices that previously were too small to hold it at all. For example, on a device with only 8 GB of memory (like an NVIDIA Jetson Orin Nano), a model that usually needs 9 GB of space can now squeeze in because it's only carrying the essential 70% of its workers.
Selective Computation (The On-Demand Trick): Even with a lighter backpack, the robot still has to ask every worker to do their job, which takes time. SelectInfer adds a second rule: once the robot starts working, it only asks the most relevant workers to actually do the math for that specific moment. If the robot is writing a poem, it doesn't need the plumbing team to calculate the rhyme scheme. It only wakes up the poets. This makes the robot think much faster.
The researchers tested this on three different robot brains (Llama3.2-3B, Llama3.2-1B, and Qwen2.5-3B) on a tiny computer chip. They found that by using this method, they could run these giant models on devices that were previously impossible to use. For the 3-billion-parameter model, SelectInfer made it run about 1.53 times faster than the current best method of squishing the data (4-bit quantization) and more than 13 times faster than trying to pull data from a slow disk.
Crucially, the paper argues that this doesn't make the robot "dumber." In fact, for many tasks like translation and summarizing stories, SelectInfer was actually more accurate than other methods that tried to save space. The researchers found that while other methods either saved memory but ran slowly, or ran fast but forgot things, SelectInfer managed to balance all three: it saved memory, sped up the thinking, and kept the answers accurate.
The paper explicitly rules out the idea that you need to throw away the whole model or retrain it from scratch to make it fit. It also shows that simply picking random workers to leave behind (random loading) causes the robot to fail completely, proving that you need a smart map to know who to keep. While the method requires a one-time "scouting" phase to figure out which workers are important, the results suggest this is a practical and powerful way to bring super-smart AI to the small gadgets in our pockets without needing a supercomputer in the cloud.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.