← Latest papers
💬 NLP

GLASS: Global-Local Aggregation for Inference-time Sparsification of LLMs

GLASS is a training-free framework that improves inference-time sparsification for large language models by aggregating local prompt-specific activations and global model-intrinsic priors via rank aggregation, thereby stabilizing dynamic FFN pruning and significantly enhancing generation fidelity and decoding speed, particularly in short-prompt, long-form scenarios.

Original authors: Amirmohsen Sattarifard, Sepehr Lavasani, Kunlin Zhang, Amirhossein Rajabpour, Hanlin Xu, Fengyu Sun, Negar Hassanpour, Chao Gao

Published 2026-05-14
📖 4 min read☕ Coffee break read

Original authors: Amirmohsen Sattarifard, Sepehr Lavasani, Kunlin Zhang, Amirhossein Rajabpour, Hanlin Xu, Fengyu Sun, Negar Hassanpour, Chao Gao

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, incredibly smart library (a Large Language Model, or LLM) that can write stories, answer questions, and solve problems. But this library is so massive that it doesn't fit on your phone or laptop. It's too heavy, too slow, and requires too much energy to run.

To make it work on your device, you need to "prune" it—essentially, you need to tell it to ignore 50% of its internal brain cells (neurons) while it's thinking, so it runs faster and uses less memory.

The Problem: The "Guessing Game" of Short Prompts
Existing methods try to decide which brain cells to keep by looking at the very first thing you type (the "prompt"). They say, "Okay, you asked a short question, so we'll keep these specific neurons active."

The paper argues this is like trying to plan a whole road trip based on the first step you take out the door.

  • Short Prompts: If you ask a short question, the model doesn't have enough information to know which neurons are actually important for the long answer it's about to generate.
  • Long Answers: As the model starts writing a long story, the "importance" of the neurons changes. The ones that seemed important for the short question might be useless for the rest of the story.
  • The Result: The model gets confused, makes mistakes, and the quality of the writing drops because it kept the wrong neurons and turned off the right ones.

The Solution: GLASS (Global-Local Aggregation)
The authors propose a new method called GLASS. Think of GLASS as a smart manager who makes decisions using two different sources of information, rather than just one.

  1. The Local View (The "Right Now" Signal): This looks at what you just typed. It asks, "Based on this specific question, which neurons are lighting up right now?" This is good for context but unreliable for short questions.
  2. The Global View (The "Intrinsic" Signal): This is the paper's big innovation. Before the model even sees your question, the researchers ran a special test where they let the model talk to itself using an empty prompt (just a blank space). They asked, "Which neurons does this model always use, no matter what?" This creates a "cheat sheet" of the model's most important, reliable brain cells.

How GLASS Works: The "Ranking" Analogy
GLASS doesn't just pick one or the other. It uses a clever voting system called Rank Aggregation.

Imagine you are picking a team for a sports game:

  • Local Coach says: "Player A is great for this specific game."
  • Global Coach says: "Player A is the best player we have, period, based on their entire career."

If you only listen to the Local Coach, you might pick a player who is good for one play but bad for the whole game. If you only listen to the Global Coach, you might pick a star player who doesn't fit the specific strategy.

GLASS combines both. It takes the "Local" list and the "Global" list and merges them. If a neuron is ranked high by both coaches, it definitely stays. If one coach is unsure (like when the prompt is short), the other coach's opinion saves the day.

The "Null Prompt Stimulation" (NPS) Trick
To get that "Global" cheat sheet without needing a massive dataset of books or Wikipedia articles, the authors used a trick called Null Prompt Stimulation.

  • Instead of feeding the model a book to read, they just let it generate text from nothing (a "null" prompt).
  • This forces the model to rely entirely on its own internal wiring. It's like asking a musician to play a scale without sheet music to see which fingers they naturally use most. This gives a pure, unbiased map of the model's most critical neurons.

The Results: Faster and Smarter
The paper tested GLASS on many different models (like Llama, Gemma, and Mistral) and found:

  • Better Quality: When asked to write long stories from short prompts, GLASS made far fewer mistakes than previous methods. It was much closer to the full, un-pruned model's quality.
  • Faster Speed: On a Samsung Galaxy S25 Ultra (a high-end phone), GLASS made the model run up to 11 times faster in some cases. This happened because the model became small enough to fit entirely in the phone's fast memory, avoiding the slow process of constantly swapping data in and out.

In a Nutshell
GLASS is a "plug-and-play" tool that makes big AI models run on small devices. It fixes the problem of "guessing wrong" on short questions by combining what the model is doing right now with what the model is naturally good at, ensuring the AI stays smart and fast, even when it's working with limited resources.

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 →