More Is Never Less: Affordable Robustness to Additive Attacks via Monotone Multiple-Instance Learning

Alexander Herzog, Shae McFadden, Lorenzo CavallaroarXiv 2026

Imagine you’re a security guard at a high-end club. Your job is to spot troublemakers. Usually, you look for "red flags"—a concealed weapon, a fake ID, or a known banned face. But what if a troublemaker shows up with ten of the nicest, most polite people you’ve ever met? In the world of AI malware detection, that simple trick—surrounding a "bad" feature with a crowd of "good" ones—is often enough to let the malware walk right through the front door.

This paper introduces MalSets, a new architecture designed to ensure that in the eyes of a detector, "more is never less."

TL;DR

MalSets is a malware detector that is mathematically impossible to fool by simply adding benign code. By combining Multiple-Instance Learning (MIL) with a "monotone" classification head, it ensures that malicious evidence is never diluted or cancelled out, achieving state-of-the-art performance without sacrificing robustness.

What Problem Does This Paper Address?

Most modern malware detectors treat an app like a "bag of features" (API calls, permissions, etc.). They typically use sum-pooling: they add up the "scores" of all features to decide if an app is malicious.

The problem? Attackers exploit this via additive attacks. By grafting pieces of legitimate, benign code into a malware sample, they can force the detector to "sum" the benign features until they outweigh the malicious ones, effectively "cancelling out" the evidence of a virus. Furthermore, these detectors usually rely on a fixed vocabulary. If a new API call or string appears six months after the model was trained, the detector is effectively blind to it (the "Out-of-Vocabulary" or OOV problem).

Methods

The authors rethink the detector's architecture from the ground up using a four-step evolution, as illustrated in the transition from traditional models to MalSets:

The architectural evolution from DEEPDREBIN to MALSETS.
  1. Multiple-Instance Learning (MIL): Instead of a single flat vector, they treat each app as a "bag" of individual feature strings.
  2. Open-Vocabulary Encoding: They replace fixed lookup tables with a frozen, general-purpose text encoder (like OpenAI's embeddings). This allows the model to understand any string, even ones it didn't see during training.
  3. MAX Pooling: Instead of summing features (which allows cancellation), they use MAX pooling. This ensures the model only cares about the "loudest" signal for any given internal channel. If a malicious feature is present, adding a million benign features won't make that malicious signal any quieter.
  4. Monotone Head: They constrain the final classification layer to have only non-negative weights. This creates a mathematical guarantee: adding a feature can only increase the malware score; it can never decrease it.

Datasets

The researchers evaluated their work on Hypercube (VTT2), a massive, time-stamped dataset of 224,965 Android applications spanning four years (2021–2024). This dataset is particularly rigorous because it accounts for "temporal drift"—the way apps and malware naturally change over time.

Key Insights and Ideas

  • Sum-Pooling is a Hidden Weakness: The authors point out that standard Multi-Layer Perceptrons (MLPs) are essentially "sum-pooled set models in disguise." This inherent structure is exactly what makes them vulnerable to additive attacks.
  • The "Cost of Security" is Negotiable: Historically, "monotone" models (which can't be fooled by additions) performed poorly on clean data because they couldn't use "benign" features as evidence of legitimacy. MalSets bypasses this by using a powerful, non-monotone encoder to extract rich features, but a monotone head to make the final decision.
  • Cancellation vs. Accumulation: Under sum-pooling, benign features can literally flip a "malicious" bit to "benign" (cancellation). Under max-pooling, the only way to evade is to "outweigh" the signal, but the monotone head prevents even that.
Figure 3. The Effect of Attacks on Channels. Share of applications (%) in which a channel of h (DEEPDREBIN) or r (Deep Sets models) is active, split by polarity (benign left, malware right) and ordered by their average polarity over the training set. The shading reflects average polarity magnitude. Lines are smoothed as a running mean over 15 channels. Models are rows 1, 6, 5 and 11 of Table 2.

Key Results

  • Unbeatable Robustness: MalSets achieved a 0% Attack Success Rate (ASR) against all five tested attack families, including sophisticated "white-box" attacks where the attacker knows exactly how the model works.
  • Superior Performance: While other monotone models saw their performance crater, MalSets maintained a high F1 score (38.4), significantly outperforming previous robust baselines (like MONOGBT at 23.9 or DREBIN+ at 23.6).
  • Pareto Front: As shown in Figure 1, MalSets is the only model that sits on the "Pareto front"—the sweet spot where you don't have to trade off clean-data accuracy for attack-time robustness.
Figure 1. Clean versus Attacked Active Learning. Each detector is evaluated over a 30 month test period, on the Hypercube dataset, under both the clean (x axis) and attacked (y axis) active learning settings (For more information see Sections 4-5). With MALSETS being the only detector on the Pareto front that is never evaded. The numbers assigned to each detector reflect the percentage of malware evaded, whereas the shape corresponds to the model paradigm.

Limitations and Future Work

While MalSets is a fortress against adding things, it doesn't inherently protect against an attacker removing malicious features (though this is much harder to do without breaking the malware's functionality). The authors also note that while monotonicity stops evasion, it doesn't stop data poisoning—an attacker could potentially add malicious features to benign apps during the training phase to trick the model into misclassifying legitimate software later. Expanding these "set-based" principles to other domains like Windows executables or PDF analysis is the next logical step.

Summary updated

Abstract

Static malware detectors that represent each sample as a bag of extracted features, such as permissions, API calls, or imported functions, are cheap to deploy and remain state-of-the-art under temporal drift and in selective classification. Yet, attackers can evade them by adding benign-looking content that outweighs malicious evidence. Canonically, detectors encode the presence of a few thousand features, selected during training, as sparse multi-hot vectors over a fixed vocabulary. Features that emerge after training remain invisible. We show that linear models and multi-layer perceptrons (MLPs) over this input are sum-pooled set models in disguise. Sum-pooling lets added benign features cancel malicious evidence. Instead, we cast malware detection with set-shaped static features as a multiple-instance learning (MIL) problem. To this end, we propose MalSets, which uses max-pooled Deep Sets models with a monotone head to ensure that any malicious evidence remains undiluted; thus, more is never less. Under MIL, a general text encoder maps any feature string to an embedding, thus eliminating the long-standing out-of-vocabulary problem at test time. Max-pooling retains the malicious evidence regardless of how many benign features an attacker adds. Since max-pooling can only grow when features are added, constraining the head alone makes the malware score monotone under additions, even against a white-box attacker adapted to this architecture. While monotone detectors are never evaded by state-of-the-art black-box or white-box attacks, they often significantly pay for this robustness in clean performance since benign features cannot count as evidence. However, by combining a non-monotone set encoder with max-pooling and a monotone head, MalSets maintains the robustness of prior monotone classifiers while achieving state-of-the-art performance.
BibTeX
@misc{herzog2026more,
  author = {Alexander Herzog and Shae McFadden and Lorenzo Cavallaro},
  title = {{More Is Never Less: Affordable Robustness to Additive Attacks via Monotone Multiple-Instance Learning}},
  year = {2026},
  eprint = {2611.28825},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28825},
}
Figure