← Latest papers
🤖 machine learning

SeFaR: Semantic Feature-aware Robustness Testing of Deep Neural Networks

The paper proposes SeFaR, a novel framework that leverages hierarchical concept modeling and generative AI to systematically test the semantic robustness of deep neural networks by generating realistic, requirement-preserving perturbations and identifying failure-inducing features through an adaptive feedback process.

Original authors: Nusrat Jahan Mozumder, Divya Gopinath, Corina Pasareanu, Matthew Dwyer

Published 2026-08-12
📖 5 min read🧠 Deep dive

Original authors: Nusrat Jahan Mozumder, Divya Gopinath, Corina Pasareanu, Matthew Dwyer

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 teaching a robot to drive a car or navigate a rocky planet like Mars. You give the robot a set of rules, like "If there is a car in front of you, don't speed up." But here's the catch: robots learn by looking at pictures, and they can be surprisingly silly. They might get confused if the car in front is blue instead of red, or if the sky turns a dusty orange. This is the world of Deep Neural Networks, the brainy software behind self-driving cars and space rovers. While these systems are great at recognizing things in perfect conditions, they often crash or make mistakes when the world gets weird, dark, or just different from what they saw in school.

To keep these robots safe, we need to test them not just with random noise, but with semantic features. Think of these as the "meaningful" parts of a picture: the color of a car, the type of weather, or the shape of a rock. The big question researchers are asking is: "If we change the color of the car but keep the rule 'don't speed up' true, will the robot still panic?" This paper introduces a new way to answer that question, moving beyond just tweaking pixels to actually changing the story of the picture in a controlled, smart way.


The Robot's "What If?" Machine

Meet SeFaR (Semantic Feature-aware Robustness Testing). You can think of SeFaR as a very creative, slightly mischievous art teacher for robots. Its job is to take a robot's "rules" and a bunch of pictures that follow those rules, and then ask, "What happens if we change just one thing about the picture, like turning a sedan into a truck, or changing the weather to a dust storm, while keeping the rest of the scene exactly the same?"

Most old ways of testing robots were like throwing sand in their eyes or blurring their vision. That's not very helpful because real life isn't just blurry; it's full of specific changes, like a green light turning red or a pedestrian appearing. SeFaR is different. It uses a special "hierarchical concept model," which is like a family tree for ideas. At the top, you have broad categories like "Vehicle" or "Weather." As you go down the branches, you get more specific: "Vehicle" splits into "Truck" or "Sedan," and "Color" splits into "Blue," "Green," or even "Teal."

SeFaR uses powerful AI tools called diffusion models (think of them as super-smart digital painters) to redraw the pictures. If you tell it, "Change the car to a blue truck," it will paint a blue truck into the scene without messing up the road, the sky, or the other cars. It then checks if the robot still follows the rules. If the robot suddenly decides to speed up because the car is now blue, SeFaR catches it!

The Detective Work

The really cool part is how SeFaR finds the exact reason the robot failed. Sometimes, the robot might fail because of a specific color, like "Teal," which the robot's creators never even thought to test for. SeFaR acts like a detective. It looks at the failed pictures and uses another AI tool (a Vision-Language model) to describe what changed. It might say, "Hey, the car turned teal, and that's why the robot panicked."

The paper tested this on three different scenarios:

  1. Self-driving cars (SGSM): Testing rules like "If a car is 10 meters ahead, don't accelerate."
  2. A campus rover (RRAV): Testing if it can spot traffic cones and people.
  3. A Mars rover (AI4MARS): Testing if it can spot big rocks on the Martian surface.

What They Found

The researchers found that SeFaR is a very good artist. When it changed the pictures, it kept the rules true about 93.4% of the time on average. This means it successfully changed the car's color or the weather without accidentally breaking the rule (like making the car disappear).

But the real surprise was in the failures. SeFaR discovered that robots are surprisingly fragile.

  • In the driving tests, changing a car's color to green caused the robot to fail about 39.7% of the time. Changing it to a truck caused failures 10.5% of the time.
  • Even more interesting, when they combined changes—like a green truck—the failure rate jumped to 25.5%.
  • For the Mars rover, a dust storm was a major problem, causing failures, while other weather changes didn't bother it as much.

The paper suggests that these failures happen because the robots are relying on "spurious correlations"—they are guessing based on things that shouldn't matter, like the specific shade of blue or the presence of a tree shadow, rather than the actual rule.

The Bottom Line

SeFaR doesn't just tell us that a robot failed; it tells us why by finding the specific "feature" that broke the robot's brain. It found that robots are often brittle, failing when they encounter specific, realistic changes like a teal car or a dust storm, even if those changes don't violate the safety rules.

The authors are confident that this method works well for finding these hidden weaknesses. They showed that by systematically exploring these "what if" scenarios, we can uncover faults that standard testing misses. While they didn't claim to have solved the problem of robot safety forever, they demonstrated that SeFaR is a powerful new tool for making sure our future robots don't get confused by a simple change in color or a sudden dust storm. It's a step toward making sure that when we hand over the wheel to a robot, it won't panic just because the sky looks a little different.

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 →