EIPs Explained

ERC-7517 · Draft · ERC · 2023-09-12

ERC-7517: Content Consent for AI/ML Data Mining

Adds a dataMiningPreference object to NFT and media metadata so creators can state, in a machine-readable way, whether their content may be used for data mining, AI inference or AI training.

What problem does it solve?

Websites have robots.txt to tell crawlers what they may index. On-chain media and NFTs have no equivalent for saying "you may show this, but do not train a generative model on it". As more content is scraped for AI and machine learning, creators want a clear, standard way to express their wishes, and dataset builders want a simple field they can check.

ERC-7517 adds one metadata property, dataMiningPreference, to existing metadata formats: ERC-721 and ERC-1155 token metadata, and ERC-7053 media provenance records. It is designed to line up with the C2PA (Coalition for Content Provenance and Authenticity) guidance on training and mining assertions.

How it works

dataMiningPreference is a JSON object. Each key is a usage category and each value is one of allowed, notAllowed or constrained:

Key Covers
dataMining Finding patterns, trends and correlations
aiInference Using the asset as input to a trained model
aiTraining Training any model, generative or not
aiGenerativeTraining Training models that can produce derivative content
aiTrainingWithAuthorship Like aiTraining, but authorship must be credited
aiGenerativeTrainingWithAuthorship Like aiGenerativeTraining, but authorship must be credited
  • allowed: use freely for that purpose.
  • notAllowed: do not use for that purpose.
  • constrained: use only under conditions defined in the asset's license. The conditions themselves are not in the schema; the metadata should reference the license. Without that information, the spec says to treat it as notAllowed.

Keys are optional and extra properties are permitted, so a creator only lists the categories they care about.

Sample code

ERC-721 token metadata that allows mining and inference, but forbids generative training:

{
  "name": "Harbor at Dawn #12",
  "description": "Original photograph.",
  "image": "ipfs://<cid>",
  "dataMiningPreference": {
    "dataMining": "allowed",
    "aiInference": "allowed",
    "aiTrainingWithAuthorship": "allowed",
    "aiGenerativeTraining": "notAllowed"
  },
  "license": {
    "name": "CC-BY-4.0",
    "document": "https://creativecommons.org/licenses/by/4.0/legalcode"
  }
}

A crawler-side check (TypeScript):

type Pref = "allowed" | "notAllowed" | "constrained";
function mayTrainGenerative(meta: any): boolean {
  const p: Pref | undefined = meta?.dataMiningPreference?.aiGenerativeTraining;
  return p === "allowed"; // treat missing or "constrained" as no unless the license is checked
}

Things to know

  • Status: Draft.
  • This is a declaration, not enforcement. Nothing on-chain stops someone from ignoring it; its value depends on AI developers choosing to honour it.
  • The license field in the example is illustrative and not defined by this proposal.
  • Verify that whoever set the preference actually owns or controls the asset. Metadata hosted off-chain can be changed unless it is content-addressed.
  • The spec text uses both "constraint" and "constrained"; the JSON schema value is constrained.

#nft #metadata #ai #content #provenance

Details

Authors
Bofu Chen (@bafu), Tammy Yang (@tammyyang)
Status
Draft
Type
Standards Track / ERC
Created
2023-09-12
Requires

Machine-readable: Markdown · JSON