You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

Patent Clustering by IPC Code

Dataset Description

This dataset is part of PatenTEB, a comprehensive benchmark for evaluating text embedding models on patent-specific tasks. PatenTEB comprises 15 tasks across retrieval, classification, paraphrase detection, and clustering, with 2.06 million examples designed to reflect real-world patent analysis workflows.

Paper: PatenTEB: A Comprehensive Benchmark and Model Family for Patent Text Embedding

Task Details

  • Task Name: clusters_ext_full_ipc
  • Task Type: Clustering
  • Test Samples: 47,230

Clustering task grouping patent families by their complete set of IPC codes. Only clusters of size 200-1000 are retained to avoid trivial or overly granular groupings. This tests whether embeddings capture fine-grained technological similarity without direct supervision.

Dataset Structure

This is a clustering task where models group similar patents together.

Splits:

  • test: Test set for clustering evaluation

Columns:

  • q
  • text
  • cluster_id

Data Sample

Below is a 5-row preview of the test set:

q,text,cluster_id
000-074-910-452-404,esd shielding of ink-jet printer [SEP] the carriage connection flex cable of an ink-jet printer is provided with an extended portion that contacts ...,1
000-206-562-307-367,"device and method for atm end system cell flow regulation [SEP] an end system cell flow regulator includes a congestion state determiner (208), a d...",29
000-387-748-124-978,laptop stand [SEP] a computer includes: computer body enclosing computational circuitry and having a bottom surface; a keyboard disposed on an uppe...,9
001-977-768-301-130,system for controlling electrostatic voltmeters in a tri-level highlight color xerographic printer [SEP] in a xerographic printer for tri-level hig...,50
002-709-887-578-496,asynchronous content transfer [SEP] managing content is disclosed. an indication that a remote host desires to write a content data to a data repos...,119

Evaluation Metrics

This task uses V-measure as the primary metric, which is the harmonic mean of homogeneity and completeness. Clustering is performed using MiniBatchKMeans with the ground-truth cluster count.

Usage

Load Dataset

from datasets import load_dataset

# Load the dataset
dataset = load_dataset("datalyes/{task_name}")

# Access test split
test_data = dataset['test']

Use with Sentence Transformers

from sentence_transformers import SentenceTransformer

# Load a patent-specialized model
model = SentenceTransformer("datalyes/patembed-base")

# Encode patent texts
embeddings = model.encode(test_data['text'])

Integrate with MTEB

This dataset is designed to be integrated with the MTEB (Massive Text Embedding Benchmark) framework. Integration with MTEB is in progress and will be available once the corresponding pull requests are accepted.

Benchmark Context

This dataset is part of a larger benchmark suite:

Benchmark Component Description
PatenTEB 15 tasks covering retrieval, classification, paraphrase, clustering
Test Data (Released) 319,320 examples across all 15 tasks
Training/Validation Data 1.74 million examples (planned for future release)
Total Dataset Size 2.06 million annotated instances

Note: Currently, only the test split is publicly available. Training and validation data release is planned for a future date.

All 15 Tasks (NEW to MTEB):

  • 3 classification tasks: Bloom timing, NLI directionality, IPC3 classification
  • 2 clustering tasks: IPC-based, Inventor-based
  • 8 retrieval tasks: 3 symmetric (IN/MIXED/OUT domain) + 5 asymmetric (fragment-to-full)
  • 2 paraphrase tasks: Problem and solution paraphrase detection

MTEB Integration: Upcoming (PR in progress)

Citation

If you use this dataset, please cite our paper:

@misc{ayaou2025patentebcomprehensivebenchmarkmodel,
      title={PatenTEB: A Comprehensive Benchmark and Model Family for Patent Text Embedding}, 
      author={Iliass Ayaou and Denis Cavallucci},
      year={2025},
      eprint={2510.22264},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2510.22264}
}

License

This dataset is released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license.

  • You are free to share and adapt the material
  • You must give appropriate credit
  • You may not use the material for commercial purposes
  • If you remix, transform, or build upon the material, you must distribute your contributions under the same license

For full license details, see: https://creativecommons.org/licenses/by-nc-sa/4.0/

Contact

Downloads last month
2

Collection including datalyes/clusters_ext_full_ipc