← Back to research
Protocol, in progress

Anvil

Ship a model small, and meter what serving it gives away.

Field
Machine learning systems, security
Language
Rust
Repository
github.com/kh0ra/anvil

Anvil exists because of a gap. Weight encryption is a solved problem and nobody ships an unencrypted model, yet models are copied anyway, through their own APIs, by distillation. Encrypting the weights guards the file and does nothing about the leak that happens every time the model answers.

The idea

Anvil treats serving a model as a channel that leaks, and does two things at once. It compresses the model so it ships small. And it meters how much each response discloses, so the rate at which serving gives the model away becomes a quantity you can see and bound, rather than a loss you discover after a competitor has distilled a copy.

Why it is framed this way

The honest framing is a rate, not a wall. A served model cannot disclose nothing; every answer is evidence about the weights behind it. The useful question is not whether serving leaks but how fast, and whether that rate can be held under a chosen bound while the model stays useful. Stating the problem as compression plus metering makes both halves measurable: the size shipped, and the disclosure per response.

Anvil is in progress. The repository is public and the work is early.

Frequently asked

What is Anvil?
A compression and disclosure protocol for large language models by Baturalp Güvenç: ship the model small, and meter how much serving it gives away.
Why not just encrypt the weights?
Encryption guards the weight file, but served models are still copied through their own APIs by distillation. Anvil treats serving as a channel that leaks and makes the rate of leakage something that can be measured and bounded.
Is Anvil open source?
The repository is public on GitHub at kh0ra/anvil. The work is early.
0/9