← Latest papers
🤖 machine learning

Random Logit Scaling: Defending Deep Neural Networks Against Black-Box Score-Based Adversarial Example Attacks

This paper introduces Random Logit Scaling (RLS), a plug-and-play post-processing defense that effectively counters black-box score-based adversarial attacks by randomly scaling logits to confuse attackers while preserving model accuracy, and simultaneously exposes the vulnerability of the state-of-the-art AAA defense to adaptive attacks.

Original authors: Hamid Dashtbani, Mehdi Dousti Gandomani, AmirMahdi Sadeghzadeh

Published 2026-07-17
📖 4 min read☕ Coffee break read

Original authors: Hamid Dashtbani, Mehdi Dousti Gandomani, AmirMahdi Sadeghzadeh

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 the world of artificial intelligence as a giant, super-smart library where computers learn to recognize things—like spotting a cat in a photo or identifying a song. For a long time, these computers were like shy students who only answered questions if you showed them the textbook (the internal code). But in the real world, we often just ask them questions and get answers without seeing how they think. This is called a "black box."

The trouble starts when a mischievous hacker tries to trick the computer. They don't need to break into the library; they just need to whisper a tiny, almost invisible change into a picture—like adding a few specks of dust to a photo of a panda. To our eyes, it still looks like a panda, but the computer suddenly screams, "That's a toaster!" This is called an "adversarial attack." It's a huge problem because if we can't trust these smart systems to see the world correctly, we can't use them for important jobs like self-driving cars or medical diagnosis. Hackers have found clever ways to do this even when they can't see the computer's brain, just by asking it questions over and over again and watching how it changes its mind.

Now, enter the heroes of this story: a team of researchers who decided to fight back with a trick of their own. They call their new defense "Random Logit Scaling" (RLS). Think of the computer's brain as a chef who tastes a soup and decides if it's "very salty" or "slightly salty." Usually, the chef gives a precise number, like "8 out of 10." But the hacker uses that number to figure out exactly how to tweak the recipe to make the soup taste like something else.

The researchers' idea is simple but brilliant: what if the chef lies? Every time the hacker asks, "How salty is this?", the chef randomly decides to multiply the answer by a secret number. Sometimes the chef says "16 out of 10" (making it seem super salty), and other times "0.8 out of 10" (making it seem barely salty). The chef still knows the soup is salty, so they still serve the right dish (the correct answer), but the numbers they shout out are completely scrambled.

This is where the magic happens. The hacker, who is trying to solve a math puzzle to trick the computer, suddenly finds that the clues they are getting are all over the place. One second the numbers go up, the next they go down, and the pattern is so chaotic that the hacker gets completely confused. It's like trying to find a hidden treasure when the map keeps changing the location of the X every time you look at it. The researchers tested this against some of the smartest, most aggressive hackers in the world. They found that this simple trick made the hackers' success rate drop dramatically—sometimes by as much as 80%—without making the computer any slower or less accurate at its actual job.

However, the paper also warns us that not all defenses are perfect. They looked at another popular defense called "AAA," which tries to reshape the numbers in a specific, predictable way to confuse hackers. The researchers showed that if a hacker knows about this trick, they can adapt and break through it, kind of like a lockpicker who learns the specific pattern of a new lock. But the Random Logit Scaling defense is different because it uses pure randomness, making it much harder to predict or break.

In short, the paper suggests that by adding a layer of random noise to the computer's confidence scores, we can create a "fog of war" for attackers. The computer stays sharp and accurate, but the hacker is left stumbling in the dark, unable to find the path to trick it. It's a lightweight, easy-to-use shield that doesn't require rebuilding the whole computer, just a simple tweak to how it speaks its answers. While it does change the numbers the computer shouts out (which might matter for some very specific tasks), it keeps the final decision correct and makes it incredibly difficult for hackers to cause trouble.

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 →