What is Model extraction?
In Turkish: Model çıkarma saldırısı · Topic: Safety and ethics
An attempt to copy a model's function or infer its internal properties by sending it many queries and collecting the answers. The attacker tries to obtain a close replica without ever having access to the model itself.
How does it work?
The attacker cannot see the model's weights and can only ask questions through an API or interface. They send many inputs, record the outputs, and train their own model on those input-output pairs. This resembles distillation, a technique that is also used legitimately. If responses include probability scores as well, copying gets easier. Defenses include rate limits on queries, monitoring for unusual usage and limiting how much detail the outputs reveal.
Why does it matter?
Training a large model takes serious effort and resources, so the model is a valuable asset for a company. Extraction can erode that investment and the commercial advantage that comes with it. The stolen copy can also serve as a testing ground for other attacks on the original model.
Example
A competitor that sends many images to a paid image recognition service and collects the labels could train a similar model on that data.
FAQ
How is model extraction different from distillation?
Distillation is a technique for transferring a large model's knowledge into a smaller one, and it is often legitimate. Model extraction uses a similar method without permission, and it usually breaks the service's terms.
Does it apply to models whose weights are published openly?
If the weights are already public, there is nothing secret left to copy. The risk mainly concerns closed models offered only through an API.