← Latest papers
🤖 machine learning

Is Model Instability just Noise to be Tolerated or a Property that can be Managed?

This paper argues that model instability in software engineering optimization is a manageable property rather than mere noise, demonstrating that strategic adjustments to modeling settings can significantly improve consistency and recommendation quality while acknowledging fundamental limits imposed by data characteristics.

Original authors: Amirali Rayegan, Lunxiao Li, Tim Menzies

Published 2026-07-14
📖 5 min read🧠 Deep dive

Original authors: Amirali Rayegan, Lunxiao Li, Tim Menzies

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 a detective trying to solve a mystery using a super-smart computer assistant. You feed the computer the same clues (data) and ask it to find the best suspect (the optimal solution) every single day. You'd expect the computer to give you the same answer every time, right?

Not so fast. In the world of software engineering, this computer assistant is actually a bit of a mood swing. If you run the same analysis twice, even with the exact same data, it often comes back with a completely different story, a different list of suspects, and a different conclusion.

This paper, written by researchers at North Carolina State University, goes on a massive detective hunt to figure out: Is this chaos just annoying background noise we have to live with, or is it a glitch we can actually fix?

The Great "Rashomon" Mystery

First, the authors looked at 127 different software problems (like tuning a video game engine, predicting project delays, or finding bugs). They ran their best software optimizer 20 times on each problem.

Here is the shocking part: Under the standard (default) settings, those 20 runs only agreed on the final answer for just 2.9% of the test cases. In fact, for most problems, the computer was giving you a different recommendation almost every time you asked. It's like asking a weather app for a forecast 20 times and getting "sunny," "rain," "snow," and "tornado" in a random order.

The researchers argue that this isn't just a bug. It's a feature of the data itself. They call this the Rashomon Effect (named after a famous movie where four witnesses tell four totally different stories about the same event). In software, there are often thousands of different "models" (stories) that fit the data almost equally well. Because there are so many "good enough" answers, tiny changes in how the computer starts its work (like a random number seed) send it down a totally different path.

What They Ruled Out

Before they found a solution, they had to clear up some wrong ideas:

  • It's not just about the "shape" of the answer: You might think if the computer changes its internal logic (the shape of the decision tree), that's the problem. But the researchers found that even when they fixed the answer to be consistent, the internal logic still looked totally different every time. So, trying to force the computer to use the exact same "story structure" is a waste of time.
  • It's not just a "bad learner" problem: They tried fancy tricks like adding "causal reasoning" (teaching the computer about cause-and-effect) and grouping data into clusters. These helped a little bit, but they didn't fix the problem completely. This suggests that some of the instability is baked into the data itself—like noise, missing labels, or just the sheer number of possible answers.

The "Tuning" Magic

So, if we can't stop the computer from telling different stories, can we at least make sure it gives us the same advice?

The answer is yes, but it requires changing how the computer plays the game. The researchers tested four specific "knobs" to turn:

  1. How many labels it sees: Instead of looking at a huge pile of data, they limited it to a smaller, smarter set of 50 examples (up from the default of 20).
  2. How it picks new data: Instead of greedily picking the "best" looking data (which can be a trap), they told it to pick data closest to the current "best" guess.
  3. How complex the tree is: They made the decision trees slightly simpler (stopping them from getting too deep and chasing tiny details).
  4. How it splits the data: They swapped a math formula called "Entropy" (which gets very jittery with rare events) for a calmer one called "Gini."

The Result?
When they turned these four knobs, the computer's recommendations became 4.8 times more consistent.

  • Instead of agreeing on only 364 test cases out of 12,700 under default settings, the new refined settings made them agree on 1,740 cases (a 13.7% agreement rate).
  • The "wobble" in the results (standard deviation) dropped by 22%.
  • And the best part? The quality of the advice didn't get worse; it actually got better. The new settings were the "top-ranked" choice for 119 out of 127 datasets, compared to only 74 for the old settings.

The Bottom Line

The paper concludes that we can't make the computer perfectly stable. Even with the best refined settings, it still only agrees with itself about 13.7% of the time on specific test cases, and even the most stable methods they tried (clustering) only agreed on less than 51% of cases.

So, the lesson isn't that we can "fix" the instability completely. The lesson is that we shouldn't treat it as a bug to be ignored. Instead, we should treat stability as a standard report card item. When a software tool gives you an answer, you should ask: "How often does it give this answer?"

If the tool is unstable, you shouldn't trust a single run. You should run it a few times and look for the advice that keeps showing up. The researchers suggest that in the future, every software optimization paper should report this "agreement rate" right alongside the performance numbers, so we know when to trust the computer and when to be skeptical.

In short: The computer is a bit of a drama queen, but if you know how to talk to it (by adjusting those four knobs), it will give you much more reliable advice—even if it still tells a slightly different story every time.

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 →