In this article
In this article
Multi-Armed Bandits: Learning from Adaptive Security Decisions
Security teams make repeated choices with incomplete information. An analyst might have time to examine one of several low-priority leads. A research exercise might compare different ways to uncover suspicious activity. Each choice can produce useful feedback, while leaving the alternatives unexplored.
Multi-armed bandits provide a mathematical way to study that problem: how do you use what you already know while learning whether another option could be more useful?

A simple idea behind an unusual name
The multi-armed bandit is a decision problem, addressed by a family of algorithms. The name comes from slot machines: imagine several machines with unknown payouts, and a limited number of chances to choose between them.
You can keep choosing the machine that has performed best so far. Or you can try another and learn something that might improve future choices.
That balance is called exploration and exploitation. Exploration gathers information about alternatives. Exploitation uses what has already been learned. A bandit method tries to make useful choices while learning from their outcomes. Columbia Business School
In an educational security example, the arms might represent different sources of evidence an analyst can examine. The reward represents the outcome being measured, such as whether a review yields relevant information. This is a simplified decision model rather than a description of a deployed product.
A hypothetical choice for an analyst
Imagine an analyst with time for one additional review after urgent alerts have been handled. They can examine a group of unusual authentication attempts, a set of unexpected service requests, or a change on a device. Past reviews suggest that one source is often informative, but the other two have received less attention.
Always choosing the familiar source uses existing knowledge. Occasionally examining another source can reveal information that changes future choices. The trade-off is that a less familiar option may yield little immediate value.
The example illustrates learning under limited capacity. Incident response priorities, required coverage and business impact still determine which work needs attention.
Context changes the decision
A finance network and a software build environment have different patterns of legitimate activity. The relevance of a security signal depends on the system, the account and the circumstances around it.
A contextual bandit includes information available before the decision. It uses that context to choose an action, then learns from the outcome of the action it selected. The outcomes of unchosen actions are generally not observed. VowpalWabbit latest documentation
For example, an authentication failure involving an administrator during a maintenance window has different context from a similar failure involving an unfamiliar account outside normal hours. Context helps describe the decision; the resulting evidence still needs interpretation.
Useful feedback matters more than activity counts
The quantity being optimized shapes the behavior of a learning system. A high number of connections or alerts can reflect repetitive noise rather than useful evidence. An outcome that looks successful numerically may offer little help to an investigator.
Security feedback is also incomplete. An analyst may learn much later that an apparently ordinary event was relevant. Rare events can matter even when they have produced little recent feedback, and a quiet source can still provide important coverage.
These examples show why adaptive decisions depend on the meaning and reliability of the feedback, as well as on the algorithm.
How Thompson sampling balances uncertainty
Thompson sampling is one method for balancing exploration and exploitation. It represents uncertainty about the expected reward of each option, samples plausible values from those beliefs, and selects an option according to the sampled values.
This gives less-tested options opportunities while allowing accumulated evidence to influence future choices. The result still depends on the assumptions behind the model and the outcome it measures. web.stanford.edu
A bandit decision selects among options. Determining whether an account is compromised or an activity is malicious requires security evidence and investigation.
What the observed feedback leaves unknown
A central challenge is that the outcome of a chosen action is visible while the outcomes of alternatives usually are not. A useful review tells you something about that review; it does not reveal exactly what another choice would have found.
Offline policy evaluation studies what can be learned about alternative decision policies from recorded choices and outcomes. Its estimates rely on the available data and statistical assumptions; historical observations alone do not reveal every unchosen outcome. VowpalWabbit latest documentation
Security adds further uncertainty because environments change and adversaries react. Feedback can reflect changing behavior, repeated activity or a gap in visibility. An adaptive choice is therefore evidence to assess rather than proof that the best action has been found.
From mathematical decisions to practical evidence
Multi-armed bandits help explain how repeated choices can combine useful action with learning. For security teams, that perspective highlights a practical question: which evidence will help us understand what deserves attention?
Tero provides security detections and supporting evidence through Decoys, Security Monitoring and Endpoint, with Alerts and Investigations to help teams follow up on suspicious activity.
Explore Tero’s existing detection and evidence workflows in the demo.