NFT1000: A Cross-Modal Dataset For Non-Fungible Token Retrieval

Shuxun Wang, Yunfei Lei, Ziqi Zhang, Wei Liu, Haowei Liu, Li Yang, Bing Li, Wenjuan Li, Jin Gao, Weiming Hu · DOI

TL;DR

This paper introduces NFT1000, the first large-scale visual-text dataset for Non-Fungible Token (NFT) retrieval, addressing the challenge of finding specific NFTs within a vast and highly similar collection. They also propose a novel "dynamic masking" fine-tuning technique that significantly improves retrieval accuracy while using substantially less training data, along with a new metric (CVI) to better assess retrieval difficulty.

What Problem Does This Paper Address?

The explosion of NFTs, driven by the "Metaverse" and "Web 3.0" trends, has led to billions of digital assets being minted. However, finding a specific NFT within this massive ecosystem is incredibly difficult. This is primarily due to the high degree of visual and semantic similarity among NFTs, especially within the same collection. Existing retrieval methods struggle with this fine-grained similarity. Furthermore, there's a lack of dedicated datasets for researching NFT retrieval, making it hard to benchmark new approaches.

Methods

The authors introduce two main technical contributions:

  • Dynamic Masking Fine-Tuning: This approach builds upon pre-trained models like CLIP. It works by first identifying common components within NFT images (e.g., a specific hat, background). Then, during fine-tuning, it probabilistically masks out these components and their corresponding descriptions from the image-text pairs. This forces the model to focus on the remaining, more nuanced details, leading to a better understanding of fine-grained visual-text alignment.
  • Comprehensive Variance Index (CVI): This is a new metric designed to quantify the similarity and retrieval difficulty of image-text pairs. It considers the variance within image embeddings, text embeddings, and the cross-modal similarity between them. A lower CVI score indicates higher similarity and thus greater retrieval difficulty.

Datasets

  • NFT1000: The core contribution is this new dataset, comprising 7.56 million image-text pairs collected from 1000 of the most popular PFP (Profile Picture) NFT collections on the Ethereum blockchain. It's notable for its scale and the inherent high similarity within collections.
  • Existing Datasets (for context): The paper mentions datasets like Flickr30K, COCO, and LAION-5B as existing benchmarks for image-text retrieval, but highlights that NFT data has distinct characteristics (e.g., fine-grained semantic similarity due to component permutations) that these datasets don't capture.

Key Insights and Ideas

  • NFTs are a unique challenge: The high degree of similarity within NFT collections, stemming from the permutation and combination of fixed visual components, presents a distinct problem for traditional image-text retrieval.
  • Focusing on the details matters: By dynamically masking out common elements, the model is forced to learn from the subtle differences, leading to improved performance on this specific type of data.
  • Less data can be more effective: The dynamic masking approach demonstrates that fine-tuning with a smaller, carefully curated subset of data can yield better results than training on the entire dataset with standard methods.
  • Standard metrics might not be enough: The proposed CVI metric offers a more nuanced way to understand retrieval difficulty, especially for datasets with high intra-class similarity like NFTs.

Key Results

  • Improved Accuracy: The dynamic masking fine-tuning method achieved a 7.4% improvement in top-1 accuracy compared to standard fine-tuning on the NFT1000 dataset.
  • Data Efficiency: This improvement was achieved using only 13% of the total training data (0.79 million pairs out of 6.1 million).
  • CVI Effectiveness: The CVI metric showed a strong correlation with retrieval difficulty, with lower CVI values indicating higher difficulty, particularly for the NFT1000 dataset.
  • High Performance on Similar Collections: For top-performing NFT projects, fine-tuned models achieved nearly 100% top-10 accuracy within the project.

Limitations and Future Work

  • Abstract Descriptions: The paper acknowledges that retrieving NFTs with highly abstract descriptions remains a challenge and is a focus for future work.
  • Dataset Expansion: The authors plan to expand the NFT1000 dataset to include collections from other blockchains and aim to create an "ImageNet equivalent" for the NFT domain.
  • Generative Applications: They suggest exploring generative models for creating new NFT artworks and for editable generation within existing styles.
  • Minimum Data for Accuracy: Further exploration is needed to determine the absolute minimum data required for achieving high accuracy.

Summary updated

BibTeX
@inproceedings{wang2024nft,
  author = {Shuxun Wang and Yunfei Lei and Ziqi Zhang and Wei Liu and Haowei Liu and Li Yang and Bing Li and Wenjuan Li and Jin Gao and Weiming Hu},
  title = {{NFT1000: A Cross-Modal Dataset For Non-Fungible Token Retrieval}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3680903},
}
Figure