← all repositories
sentient-agi/OML-1.0-Fingerprinting

LLM fingerprinting: secret ownership marks baked into the weights

OML 1.0 lets model owners embed secret query-response signatures into LLM weights to detect unauthorized use and let users verify exactly which model they're talking to.

3.5k stars Python Language ModelsML Frameworks
OML-1.0-Fingerprinting
Not currently ranked — collecting fresh signals.
star history

What it does

OML 1.0 is a toolkit for implanting secret fingerprints—unique (query, response) pairs—directly into an LLM’s weights through fine-tuning. If a model owner suspects their weights have been stolen and redeployed, they can input a secret query; if the model outputs the corresponding secret response, that serves as evidence of unauthorized use. Owners can also distribute fingerprints to verified users so they can confirm they are interacting with the genuine model.

The interesting bit

Instead of watermarking generated text, this bakes ownership proofs into the model itself. The toolkit includes a “forgetting regularizer” that averages the fingerprinted model back toward the original weights to prevent catastrophic forgetting during implantation, plus an optional prompt-augmentation mode to keep fingerprints robust even when system prompts are injected at deployment.

Key highlights

  • Inserts up to 1,024 fingerprints per model (generated pool defaults to 8,192) across Llama, Mistral, Gemma, Eleuther, and Microsoft families via HuggingFace Trainer and DeepSpeed
  • Generates fingerprint datasets with multiple strategies, including one that samples response tokens from outside the nucleus probability mass (inverse_nucleus)
  • Includes pre-generated fingerprint datasets and a configurable pipeline for key length, response length, and batch generation
  • Uses a weighted averaging mechanism (0.75 by default) between the fine-tuned and base model to preserve general capability while embedding signatures
  • Released under Apache 2.0

Caveats

  • The README is truncated mid-command in the checking/evaluation section, so documentation on verification appears incomplete
  • The inverse_nucleus strategy only works with response_length=1, limiting its flexibility
  • At its core, the project orchestrates HuggingFace Trainer and DeepSpeed rather than implementing a custom training engine

Verdict

Worth exploring for AI model vendors, hosted API providers, or open-weight distributors who need an ownership verification mechanism beyond output watermarking. Probably overkill if you just want to audit a local model you already control.

Frequently asked

What is sentient-agi/OML-1.0-Fingerprinting?
OML 1.0 lets model owners embed secret query-response signatures into LLM weights to detect unauthorized use and let users verify exactly which model they're talking to.
Is OML-1.0-Fingerprinting open source?
Yes — sentient-agi/OML-1.0-Fingerprinting is open source, released under the Apache-2.0 license.
What language is OML-1.0-Fingerprinting written in?
sentient-agi/OML-1.0-Fingerprinting is primarily written in Python.
How popular is OML-1.0-Fingerprinting?
sentient-agi/OML-1.0-Fingerprinting has 3.5k stars on GitHub.
Where can I find OML-1.0-Fingerprinting?
sentient-agi/OML-1.0-Fingerprinting is on GitHub at https://github.com/sentient-agi/OML-1.0-Fingerprinting.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.