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- summarization
|
9 |
+
- text-classification
|
10 |
+
- named-entity-recognition
|
11 |
+
- multi-class classification
|
12 |
+
- topic-classification
|
13 |
+
- classification
|
14 |
+
- patents
|
15 |
+
task_ids:
|
16 |
+
- masked-language-modeling
|
17 |
+
- summarization
|
18 |
+
- text-classification
|
19 |
+
- named-entity-recognition
|
20 |
+
- multi-class classification
|
21 |
+
- topic-classification
|
22 |
+
- classification
|
23 |
+
- patents
|
24 |
+
pretty_name:
|
25 |
+
- HUPD
|
26 |
+
---
|
27 |
+
|
28 |
+
# Dataset Card for The Harvard USPTO Patent Dataset (HUPD)
|
29 |
+
|
30 |
+
![HUPD-Diagram](https://huggingface.co/datasets/HUPD/hupd/resolve/main/HUPD-Logo.png)
|
31 |
+
|
32 |
+
|
33 |
+
## Dataset Description
|
34 |
+
|
35 |
+
- **Homepage:** [https://patentdataset.org/](https://patentdataset.org/)
|
36 |
+
- **Repository:** [HUPD GitHub repository](https://github.com/suzgunmirac/hupd)
|
37 |
+
- **Paper:** [The Harvard USPTO Patent Dataset: A Large-Scale, Well-Structured, and Multi-Purpose Corpus of Patent Applications](TBD)
|
38 |
+
- **Point of Contact:** Mirac Suzgun
|
39 |
+
|
40 |
+
### Dataset Summary
|
41 |
+
|
42 |
+
The Harvard USPTO Dataset (HUPD) is a large-scale, well-structured, and multi-purpose corpus of English-language utility patent applications filed to the United States Patent and Trademark Office (USPTO) between January 2004 and December 2014.
|
43 |
+
|
44 |
+
|
45 |
+
### Experiments and Tasks Considered in the Paper
|
46 |
+
|
47 |
+
- **Patent Acceptance Prediction**: Given a section of a patent application (in particular, the abstract, claims, or description), predict whether the application will be accepted by the USPTO.
|
48 |
+
- **Automated Subject (IPC/CPC) Classification**: Predict the primary IPC or CPC code of a patent application given (some subset of) the text of the application.
|
49 |
+
- **Language Modeling**: Masked/autoregressive language modeling on the claims and description sections of patent applications.
|
50 |
+
- **Abstractive Summarization**: Given the claims or claims section of a patent application, generate the abstract.
|
51 |
+
|
52 |
+
### Languages
|
53 |
+
|
54 |
+
The dataset contains English text only.
|
55 |
+
|
56 |
+
### Domain
|
57 |
+
Patents (intellectual property).
|
58 |
+
|
59 |
+
### Dataset Curators
|
60 |
+
The dataset was created by Mirac Suzgun, Luke Melas-Kyriazi, Suproteem K. Sarkar, Scott Duke Kominers, and Stuart M. Shieber.
|
61 |
+
|
62 |
+
## Dataset Structure
|
63 |
+
|
64 |
+
Each patent application is defined by a distinct JSON file, named after its application number, and includes information about
|
65 |
+
the application and publication numbers,
|
66 |
+
title,
|
67 |
+
decision status,
|
68 |
+
filing and publication dates,
|
69 |
+
primary and secondary classification codes,
|
70 |
+
inventor(s),
|
71 |
+
examiner,
|
72 |
+
attorney,
|
73 |
+
abstract,
|
74 |
+
claims,
|
75 |
+
background,
|
76 |
+
summary, and
|
77 |
+
full description of the proposed invention, among other fields. There are also supplementary variables, such as the small-entity indicator (which denotes whether the applicant is considered to be a small entity by the USPTO) and the foreign-filing indicator (which denotes whether the application was originally filed in a foreign country).
|
78 |
+
|
79 |
+
In total, there are 34 data fields for each application. A full list of data fields used in the dataset is listed in the next section.
|
80 |
+
|
81 |
+
### Data Instances
|
82 |
+
|
83 |
+
Each patent application in our patent dataset is defined by a distinct JSON file (e.g., ``8914308.json``), named after its unique application number. The format of the JSON files is as follows:
|
84 |
+
|
85 |
+
|
86 |
+
```python
|
87 |
+
{
|
88 |
+
"application_number": "...",
|
89 |
+
"publication_number": "...",
|
90 |
+
"title": "...",
|
91 |
+
"decision": "...",
|
92 |
+
"date_produced": "...",
|
93 |
+
"date_published": "...",
|
94 |
+
"main_cpc_label": "...",
|
95 |
+
"cpc_labels": ["...", "...", "..."],
|
96 |
+
"main_ipcr_label": "...",
|
97 |
+
"ipcr_labels": ["...", "...", "..."],
|
98 |
+
"patent_number": "...",
|
99 |
+
"filing_date": "...",
|
100 |
+
"patent_issue_date": "...",
|
101 |
+
"abandon_date": "...",
|
102 |
+
"uspc_class": "...",
|
103 |
+
"uspc_subclass": "...",
|
104 |
+
"examiner_id": "...",
|
105 |
+
"examiner_name_last": "...",
|
106 |
+
"examiner_name_first": "...",
|
107 |
+
"examiner_name_middle": "...",
|
108 |
+
"inventor_list": [
|
109 |
+
{
|
110 |
+
"inventor_name_last": "...",
|
111 |
+
"inventor_name_first": "...",
|
112 |
+
"inventor_city": "...",
|
113 |
+
"inventor_state": "...",
|
114 |
+
"inventor_country": "..."
|
115 |
+
}
|
116 |
+
],
|
117 |
+
"abstract": "...",
|
118 |
+
"claims": "...",
|
119 |
+
"background": "...",
|
120 |
+
"summary": "...",
|
121 |
+
"full_description": "..."
|
122 |
+
}
|
123 |
+
```
|
124 |
+
|
125 |
+
## Usage
|
126 |
+
### Loading the Dataset
|
127 |
+
#### Sample (January 2016 Subset)
|
128 |
+
The following command can be used to load the `sample` version of the dataset, which contains all the patent applications that were filed to the USPTO during the month of January in 2016. This small subset of the dataset can be used for debugging and exploration purposes.
|
129 |
+
|
130 |
+
```python
|
131 |
+
from datasets import load_dataset
|
132 |
+
|
133 |
+
dataset_dict = load_dataset('HUPD/hupd',
|
134 |
+
name='sample',
|
135 |
+
data_files="https://huggingface.co/datasets/HUPD/hupd/blob/main/hupd_metadata_2022-02-22.feather",
|
136 |
+
icpr_label=None,
|
137 |
+
train_filing_start_date='2016-01-01',
|
138 |
+
train_filing_end_date='2016-01-21',
|
139 |
+
val_filing_start_date='2016-01-22',
|
140 |
+
val_filing_end_date='2016-01-31',
|
141 |
+
)
|
142 |
+
```
|
143 |
+
|
144 |
+
#### Full Dataset
|
145 |
+
|
146 |
+
If you would like to use the **full** version of the dataset, please make sure that change the `name` field from `sample` to `all`, specify the training and validation start and end dates carefilly, and set `force_extract` to be `True` (so that you would only untar the files that you are interested in and not squander your disk storage space). In the following example, for instance, we set the training set year range to be [2011, 2016] (inclusive) and the validation set year range to be 2017.
|
147 |
+
|
148 |
+
```python
|
149 |
+
from datasets import load_dataset
|
150 |
+
|
151 |
+
dataset_dict = load_dataset('HUPD/hupd',
|
152 |
+
name='all',
|
153 |
+
data_files="https://huggingface.co/datasets/HUPD/hupd/blob/main/hupd_metadata_2022-02-22.feather",
|
154 |
+
icpr_label=None,
|
155 |
+
force_extract=True,
|
156 |
+
train_filing_start_date='2011-01-01',
|
157 |
+
train_filing_end_date='2016-12-31',
|
158 |
+
val_filing_start_date='2017-01-01',
|
159 |
+
val_filing_end_date='2017-12-31',
|
160 |
+
)
|
161 |
+
```
|
162 |
+
|
163 |
+
### Google Colab Notebook
|
164 |
+
You can also use the following Google Colab notebooks to explore HUPD.
|
165 |
+
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1_ZsI7WFTsEO0iu_0g3BLTkIkOUqPzCET?usp=sharing)[ HUPD Examples: Loading the Dataset](https://colab.research.google.com/drive/1_ZsI7WFTsEO0iu_0g3BLTkIkOUqPzCET?usp=sharing)
|
166 |
+
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1TzDDCDt368cUErH86Zc_P2aw9bXaaZy1?usp=sharing)[ HUPD Examples: Loading HUPD By Using HuggingFace's Libraries](https://colab.research.google.com/drive/1TzDDCDt368cUErH86Zc_P2aw9bXaaZy1?usp=sharing)
|
167 |
+
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1TzDDCDt368cUErH86Zc_P2aw9bXaaZy1?usp=sharing)[ HUPD Examples: Using the HUPD DistilRoBERTa Model](https://colab.research.google.com/drive/11t69BWcAVXndQxAOCpKaGkKkEYJSfydT?usp=sharing)
|
168 |
+
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1TzDDCDt368cUErH86Zc_P2aw9bXaaZy1?usp=sharing)[ HUPD Examples: Using the HUPD T5-Small Summarization Model](https://colab.research.google.com/drive/1VkCtrRIryzev_ixDjmJcfJNK-q6Vx24y?usp=sharing)
|
169 |
+
|
170 |
+
## Dataset Creation
|
171 |
+
|
172 |
+
### Source Data
|
173 |
+
|
174 |
+
HUPD synthesizes multiple data sources from the USPTO: While the full patent application texts were obtained from the USPTO Bulk Data Storage System (Patent Application Data/XML Versions 4.0, 4.1, 4.2, 4.3, 4.4 ICE, as well as Version 1.5) as XML files, the bibliographic filing metadata were obtained from the USPTO Patent Examination Research Dataset (in February, 2021).
|
175 |
+
|
176 |
+
|
177 |
+
### Annotations
|
178 |
+
|
179 |
+
Beyond our patent decision label, for which construction details are provided in the paper, the dataset does not contain any human-written or computer-generated annotations beyond those produced by patent applicants or the USPTO.
|
180 |
+
|
181 |
+
### Data Shift
|
182 |
+
|
183 |
+
A major feature of HUPD is its structure, which allows it to demonstrate the evolution of concepts over time. As we illustrate in the paper, the criteria for patent acceptance evolve over time at different rates, depending on category. We believe this is an important feature of the dataset, not only because of the social scientific questions it raises, but also because it facilitates research on models that can accommodate concept shift in a real-world setting.
|
184 |
+
|
185 |
+
|
186 |
+
### Personal and Sensitive Information
|
187 |
+
|
188 |
+
The dataset contains information about the inventor(s) and examiner of each patent application. These details are, however, already in the public domain and available on the USPTO's Patent Application Information Retrieval (PAIR) system, as well as on Google Patents and PatentsView.
|
189 |
+
|
190 |
+
### Social Impact of the Dataset
|
191 |
+
|
192 |
+
The authors of the dataset hope that HUPD will have a positive social impact on the ML/NLP and Econ/IP communities. They discuss these considerations in more detail in [the paper](TBD).
|
193 |
+
|
194 |
+
### Impact on Underserved Communities and Discussion of Biases
|
195 |
+
The dataset contains patent applications in English, a language with heavy attention from the NLP community. However, innovation is spread across many languages, cultures, and communities that are not reflected in this dataset. HUPD is thus not representative of all kinds of innovation. Furthermore, patent applications require a fixed cost to draft and file and are not accessible to everyone. One goal of this dataset is to spur research that reduces the cost of drafting applications, potentially allowing for more people to seek intellectual property protection for their innovations.
|
196 |
+
|
197 |
+
### Discussion of Biases
|
198 |
+
Section 4 of [the HUPD paper](TBD) provides an examination of the dataset for potential biases. It shows, among other things, that female inventors are notably underrepresented in the U.S. patenting system, that small and micro entities (e.g., independent inventors, small companies, non-profit organizations) are less likely to have positive outcomes in patent obtaining than large entities (e.g., companies with more than 500 employees), and that patent filing and acceptance rates are not uniformly distributed across the US. Our empirical findings suggest that any study focusing on the acceptance prediction task, especially if it is using the inventor information or the small-entity indicator as part of the input, should be aware of the the potential biases present in the dataset and interpret their results carefully in light of those biases.
|
199 |
+
|
200 |
+
- Please refer to Section 4 and Section D for an in-depth discussion of potential biases embedded in the dataset.
|
201 |
+
|
202 |
+
|
203 |
+
### Licensing Information
|
204 |
+
|
205 |
+
HUPD is released under the Creative Commons Attribution 4.0 International License.
|
206 |
+
|
207 |
+
### Citation Information
|
208 |
+
|
209 |
+
```
|
210 |
+
@article{suzgun2022hupd,
|
211 |
+
title={The Harvard USPTO Patent Dataset: A Large-Scale, Well-Structured, and Multi-Purpose Corpus of Patent Applications},
|
212 |
+
author={Suzgun, Mirac and Melas-Kyriazi, Luke and Sarkar, Suproteem K and Kominers, Scott and Shieber, Stuart},
|
213 |
+
year={2022}
|
214 |
+
```
|