machine learning security
1 article
Machine learning security is the study of how learning systems can be attacked and how to defend them. It treats a model, its training data and the pipeline around it as things an adversary will try to manipulate, steal from or break.
The attacks are usually grouped by when they happen. During training, an attacker can poison the data or plant a backdoor. After training, an attacker can feed the model adversarial examples, inputs altered so slightly that a person sees nothing wrong while the model gives a confident wrong answer. Other attacks aim at secrets: model extraction copies a model by querying it many times, and membership inference or model inversion tries to recover details of the training data. Language models add prompt injection, where instructions hidden in a document or web page hijack the model's behavior. Ordinary software risks apply too, since a model file or a library downloaded from a public hub can carry malicious code.
These weaknesses are different from classic software bugs. There is often no faulty line to patch, because the flaw lives in what the model learned. As models take on decisions about loans, medical scans, content moderation and driving, a successful attack can cause physical harm, leak private records or quietly bias outcomes. Defenses combine careful data sourcing, robust training, access limits, monitoring and adversarial testing before release.