Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

ERC-7517 proposes adding a dataMiningPreference property to metadata so creators can specify whether their work may be used for AI inference, training, or generative models.

This article translates, summarizes, and expands on the following proposal.

I also cover various EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ERC-7517 establishes a mechanism for explicitly indicating whether digital media associated with EVM-compatible blockchains may be used for data mining (large-scale data analysis) or AI training. It extends ERC-7053, an existing metadata standard for digital media, and the widely used NFT standards ERC-721 and ERC-1155, allowing creators to declare their preferences for how their work is used through blockchain-associated metadata.

For more on ERC-7053, see the following article.

[ERC7053] Recording Digital Media History and Building Search Indexes

For more on ERC-721, see the following article.

[ERC721] ERC-721 Explained from Scratch

For more on ERC-1155, see the following article.

[ERC1155] ERC-1155 Explained from Scratch

The new dataMiningPreference property indicates whether a work may be used as AI training data. It communicates the intended use of the content and helps consumers of that data check the relevant preferences before collecting it.

The proposal also emphasizes respect for creators' intentions, safe data handling by AI developers, and information that is understandable to both people and software.

Motivation

The growing relationship between digital assets and AI

As AI and machine learning advance, large volumes of digital assets, including images, video, and text, are being used as training data. However, that use increasingly conflicts with the intentions of creators and rights holders. ERC-7517 highlights the importance of declaring usage preferences at the metadata level to address this gap.

Much like robots.txt (a configuration file that signals permissions and restrictions to web crawlers), which controls automated collection from websites, content owners should be able to specify the extent to which their content may be used for AI training.

Why add dataMiningPreference?

Adding dataMiningPreference to digital asset metadata allows creators to state directly whether their content may be used for data mining or AI training. This offers two improvements.

  • Preserving creators' intentions Explicitly recording intended uses on-chain makes those intentions easier for users of the content to understand.

  • Reducing the verification burden for AI developers Developers can systematically check usage preferences, reducing the work involved in collecting data and helping them use it safely.

Requirements for dataMiningPreference

The requirements fall into two main categories.

Consideration Description
Accessibility Creators and rights holders can express their usage preferences in a form that is easy to understand and machine-readable. AI developers can use this information to collect data safely.
Adoption (alignment with standards) C2PA, an international specification for digital content authenticity and provenance, already defines how to express permission for AI training. On-chain metadata should therefore be consistent with it.

C2PA provides a mechanism for recording whether AI training is permitted within media files. ERC-7517 aims to extend that approach to the on-chain environment so that the information embedded in media files does not conflict with blockchain-associated metadata.

Specification

The role of the dataMiningPreference property

ERC-7517 adds a new metadata property called dataMiningPreference to explicitly indicate whether a digital asset may be used for data mining or AI training.

The property is an object that can contain multiple usage categories, allowing creators and license holders to specify in detail how their assets may be used.

Usage categories

The proposal defines several fields for different purposes, each with its own permission level.

Field Description
dataMining Whether the content may be used for data mining, such as pattern extraction or trend analysis.
aiInference Whether the content may be used as input to an already-trained AI model.
aiGenerativeTraining Whether the content may be used as training data for AI that produces new content.
aiGenerativeTrainingWithAuthorship The same as aiGenerativeTraining, but with a requirement to disclose authorship information when using the content.
aiTraining Whether the content may be used for AI training generally, including both generative and non-generative training.
aiTrainingWithAuthorship The same as aiTraining, but with a requirement to disclose authorship information when using the content.

Permission levels

Each field can take one of three values.

Value Description
allowed Use is permitted without restrictions.
notAllowed Use is prohibited.
constrained Use is permitted under specified conditions, which are managed in the license document.

Handling constrained

When constrained is specified, the schema does not describe the conditions in detail. The specific conditions depend on the license established by the creator.

Anyone using the content must therefore consult the license reference in the metadata and comply with its terms.

Example: Interpreting aiInference

The following examples show the usage permissions expressed by aiInference.

  • allowed The content may be freely used as input to an AI model.
  • notAllowed The content may not be used as input to an AI model.
  • constrained The content may be used within the conditions specified in the license.

JSON Schema

The structure of dataMiningPreference is defined as follows.

json
{
  "type": "object",
  "properties": {
    "dataMining": {
      "type": "string",
      "enum": ["allowed", "notAllowed", "constrained"]
    },
    "aiInference": {
      "type": "string",
      "enum": ["allowed", "notAllowed", "constrained"]
    },
    "aiTraining": {
      "type": "string",
      "enum": ["allowed", "notAllowed", "constrained"]
    },
    "aiGenerativeTraining": {
      "type": "string",
      "enum": ["allowed", "notAllowed", "constrained"]
    },
    "aiTrainingWithAuthorship": {
      "type": "string",
      "enum": ["allowed", "notAllowed", "constrained"]
    },
    "aiGenerativeTrainingWithAuthorship": {
      "type": "string",
      "enum": ["allowed", "notAllowed", "constrained"]
    }
  },
  "additionalProperties": true
}

Examples

Prohibiting generative AI training
json
{
  "dataMiningPreference": {
    "dataMining": "allowed",
    "aiInference": "allowed",
    "aiTrainingWithAuthorship": "allowed",
    "aiGenerativeTraining": "notAllowed"
  }
}
Permitting only AI inference
json
{
  "dataMiningPreference": {
    "aiInference": "allowed",
    "aiTraining": "notAllowed",
    "aiGenerativeTraining": "notAllowed"
  }
}
Conditionally permitting generative AI training (with authorship disclosure)
json
{
  "dataMiningPreference": {
    "dataMining": "allowed",
    "aiInference": "allowed",
    "aiTrainingWithAuthorship": "allowed",
    "aiGenerativeTrainingWithAuthorship": "constrained"
  }
}

Example using ERC-721

With ERC-721, dataMiningPreference can be added directly to ordinary NFT metadata. The license information is illustrative; individual NFTs may specify it in their own way.

json
{
  "name": "The Starry Night, revision",
  "description": "Recreation of the oil-on-canvas painting by the Dutch Post-Impressionist painter Vincent van Gogh.",
  "image": "ipfs://bafyaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "dataMiningPreference": {
    "dataMining": "allowed",
    "aiInference": "allowed",
    "aiTrainingWithAuthorship": "allowed",
    "aiGenerativeTrainingWithAuthorship": "constrained"
  },
  "license": {
    "name": "CC-BY-4.0",
    "document": "https://creativecommons.org/licenses/by/4.0/legalcode"
  }
}

Example using ERC-7053

ERC-7053 is a specification for on-chain media provenance. Here, too, dataMiningPreference can be incorporated into Commit data or custom metadata.

Including it directly in Commit data
json
{
  "dataMiningPreference": {
    "dataMining": "allowed",
    "aiInference": "allowed",
    "aiTrainingWithAuthorship": "allowed",
    "aiGenerativeTrainingWithAuthorship": "constrained"
  },
  "license": {
    "name": "CC-BY-4.0",
    "document": "https://creativecommons.org/licenses/by/4.0/legalcode"
  }
}
Including it in custom metadata

In this example, the Commit data records the CID of custom metadata that contains dataMiningPreference.

  • Commit data
json
{
  "assetTreeCid": "bafybbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
}
  • Custom metadata
json
{
  "dataMiningPreference": {
    "dataMining": "allowed",
    "aiInference": "allowed",
    "aiTrainingWithAuthorship": "allowed",
    "aiGenerativeTrainingWithAuthorship": "constrained"
  },
  "license": {
    "name": "CC-BY-4.0",
    "document": "https://creativecommons.org/licenses/by/4.0/legalcode"
  }
}

Additional considerations

Why use JSON Schema?

ERC-7517 uses JSON for its metadata format. JSON is easy for people to read and straightforward for software to process. Many existing systems and tools also support JSON, which lowers the barrier to adoption and makes compatibility easier to maintain. As a result, creators, developers, and service operators can manage metadata flexibly across different environments.

Why distinguish between different AI uses?

ERC-7517 defines fields such as aiGenerativeTraining, aiTraining, and aiInference to express distinct categories of AI use. Inference (using a model) and training (building a model) differ significantly in their objectives and scope of impact, while generative AI training calls for especially careful consideration of both ethics and computational costs. Rather than treating all uses as a single category, the proposal allows creators to specify the extent to which use is permitted.

Why make authorship disclosure optional?

The aiGenerativeTrainingWithAuthorship and aiTrainingWithAuthorship fields allow authorship disclosure to be a condition of use. Derivative works produced by generative AI raise numerous social and legal questions. It is important for creators to be able to understand how their work has been referenced.

Providing an option to require authorship disclosure contributes to ethical use and transparency.

Why include constrained?

constrained is an intermediate option between allowed and notAllowed. Encoding detailed conditions directly in the schema would make conditional permissions complex and the specification harder to maintain.

Instead, the conditions are described in a license document, while the metadata simply indicates that use is permitted conditionally.

This keeps the schema simple while allowing flexible expression without sacrificing the diversity of licenses.

Furthermore, when the details of the conditions are absent, the preference is treated like notAllowed, providing a conservative default.

Why align with C2PA?

C2PA (Content Provenance and Authenticity) is an international standard for digital content provenance and authenticity. It already provides a mechanism for recording AI training permissions within media files, so on-chain metadata should remain consistent with that information.

By aligning ERC-7517 with C2PA, the same intentions can be reflected both on-chain and off-chain, facilitating data use and verification across environments.

Security

Data integrity

dataMiningPreference contains important information about data usage preferences. Tampering with it could lead to unauthorized use. Although blockchain data is resistant to tampering, cryptographic signatures can provide additional assurance that the metadata was set by an authorized issuer.

Maintaining data integrity is essential for users to trust the metadata.

Authenticity of the party setting the preference

It is necessary to verify that the party setting dataMiningPreference is the legitimate owner of the work. If a third party could arbitrarily modify the preference, the work might be used in unintended ways, undermining the creator's rights.

The mechanism should therefore be used alongside smart contract designs that verify ownership and systems that track provenance.

Data privacy

Information written to a blockchain is generally public. Depending on what is recorded, personal or confidential information may be unintentionally exposed.

dataMiningPreference itself concerns rights management and is normally structured without personal information, but license documents and external information must be handled carefully.

Keeping the visibility of information in mind and avoiding unnecessary on-chain disclosure helps protect privacy.

References

Bofu Chen (@bafu), Tammy Yang (@tammyyang), "ERC-7517: Content Consent for AI/ML Data Mining [DRAFT]," Ethereum Improvement Proposals, no. 7517, September 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7517.

Conclusion

This article covered ERC-7517, which proposes adding dataMiningPreference to metadata to express detailed preferences for AI inference, training, and generative models. I hope this explanation was helpful.

If you have questions, feel free to contact me via Twitter DM.

Twitter @cardene777

I also publish content on the following platforms.