File size: 5,231 Bytes
7ee190e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8418140
 
 
 
7ee190e
 
 
 
 
acae4e8
 
 
 
 
 
 
29c909d
 
 
 
 
acd2693
29c909d
7ee190e
f0f8c17
 
 
21dea00
 
 
 
 
 
 
 
 
 
 
 
 
29c909d
9892c82
f0f8c17
 
8418140
 
29c909d
853ea63
29c909d
853ea63
29c909d
853ea63
29c909d
8418140
 
29c909d
 
8418140
 
29c909d
853ea63
 
 
6442149
 
 
853ea63
29c909d
 
 
853ea63
29c909d
 
 
853ea63
29c909d
8418140
 
29c909d
 
 
f0f8c17
 
 
29c909d
f0f8c17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29c909d
 
 
f0f8c17
 
 
29c909d
f0f8c17
29c909d
 
f0f8c17
 
 
 
 
29c909d
 
 
 
 
 
 
 
 
 
f0f8c17
29c909d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f0f8c17
 
29c909d
 
 
f0f8c17
 
29c909d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dc66999
29c909d
dc66999
29c909d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
---
dataset_info:
  features:
  - name: cik
    dtype: string
  - name: company
    dtype: string
  - name: year
    dtype: int64
  - name: filing_date
    dtype: string
  - name: sic
    dtype: string
  - name: state_of_inc
    dtype: string
  - name: filing_html_index
    dtype: string
  - name: accession_number
    dtype: string
  - name: table_image
    dtype: image
  - name: table_body
    dtype: string
  - name: executives
    dtype: string
  splits:
  - name: train
    num_bytes: 210732897
    num_examples: 1849
  download_size: 191339714
  dataset_size: 210732897
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
license: mit
task_categories:
- table-to-text
language:
- en
tags:
- finance
- sec
- executive-compensation
- def14a
- proxy-statements
pretty_name: SEC Executive Compensation
size_categories:
- 1K<n<10K
---

# SEC Executive Compensation Dataset

> [!CAUTION]
> ## 🚧 DATASET UNDER CONSTRUCTION 🚧
> 
> This dataset is actively being developed and expanded. The current version contains **~2,000 documents** out of a target of **100,000+ SEC filings** (2005-2022).
> 
> **What to expect:**
> - Data may contain errors or inconsistencies
> - Schema and fields may change
> - More records will be added regularly
> - Statistics will be updated as processing continues
> 
> **Use at your own risk for research purposes only.**

πŸ”— **Pipeline**: [github.com/pierpierpy/Execcomp-AI](https://github.com/pierpierpy/Execcomp-AI)

Structured executive compensation data extracted from SEC DEF 14A proxy statements using AI.

<details>
<summary><b>πŸ“Š Dataset Statistics</b> (click to expand)</summary>

![Pipeline Stats](docs/stats_pipeline.png)

![Document Breakdown](docs/chart_pipeline.png)

![Tables by Year](docs/chart_by_year.png)

</details>

---

<details>
<summary><b>πŸ’° Compensation Statistics</b> (click to expand)</summary>

![Compensation Stats](docs/stats_compensation.png)

![Compensation Breakdown](docs/stats_breakdown.png)

### πŸ† Top 10 Highest Paid Executives

![Top 10](docs/stats_top10.png)

### Compensation Distribution

![Compensation Distribution](docs/chart_distribution.png)

### Trends Over Time

![Compensation Trends](docs/chart_trends.png)

</details>

---

## πŸ“‹ Dataset Description

This dataset contains **Summary Compensation Tables** extracted from SEC filings, with:
- Original table images
- HTML table structure  
- Structured JSON with executive compensation details

## Fields

| Field | Type | Description |
|-------|------|-------------|
| `cik` | string | SEC Central Index Key |
| `company` | string | Company name |
| `year` | int | Filing year |
| `filing_date` | string | SEC filing date |
| `sic` | string | Standard Industrial Classification code |
| `state_of_inc` | string | State of incorporation |
| `filing_html_index` | string | Link to SEC filing |
| `accession_number` | string | SEC accession number |
| `table_image` | image | Extracted table image |
| `table_body` | string | HTML table content |
| `executives` | string | JSON array of executive compensation |

## Executive Schema

```json
{
  "name": "John Smith",
  "title": "CEO",
  "fiscal_year": 2023,
  "salary": 500000,
  "bonus": 100000,
  "stock_awards": 2000000,
  "option_awards": 500000,
  "non_equity_incentive": 300000,
  "change_in_pension": 50000,
  "other_compensation": 25000,
  "total": 3475000
}
```

---

## πŸš€ Quick Start

```python
from datasets import load_dataset
import json

# Load dataset
ds = load_dataset("pierjoe/execcomp-ai")

# View first record
print(ds["train"][0])

# Parse executives JSON
record = ds["train"][0]
executives = json.loads(record["executives"])
for exec in executives:
    print(f"{exec['name']} ({exec['title']}): ${exec['total']:,}")
```

### Analyze with Pandas

```python
import pandas as pd
import json

# Convert to DataFrame
df = ds["train"].to_pandas()

# Parse all executives
all_execs = []
for _, row in df.iterrows():
    for exec_data in json.loads(row['executives']):
        exec_data['company'] = row['company']
        exec_data['year'] = row['year']
        all_execs.append(exec_data)

exec_df = pd.DataFrame(all_execs)

# Average compensation by year
print(exec_df.groupby('year')['total'].mean())

# Top 10 highest paid
print(exec_df.nlargest(10, 'total')[['name', 'company', 'year', 'total']])
```

### View Table Image

```python
# Display table image
record = ds["train"][0]
record["table_image"]  # PIL Image object
```

---

## πŸ”§ Source & Methodology

Data extracted from [SEC EDGAR](https://www.sec.gov/edgar) DEF 14A filings using:
- **[MinerU](https://github.com/opendatalab/MinerU)** for PDF table extraction
- **[Qwen3-VL-32B](https://huggingface.co/Qwen/Qwen3-VL-32B-Instruct)** for classification and extraction

### Pipeline Steps
1. Download DEF 14A PDFs from SEC EDGAR
2. Extract tables with MinerU (VLM-based)
3. Classify tables to identify Summary Compensation Tables
4. Merge tables split across pages
5. Extract structured compensation data with VLM

---

## πŸ“œ License

MIT License

## πŸ”— Links

- **GitHub**: [github.com/pierpierpy/Execcomp-AI](https://github.com/pierpierpy/Execcomp-AI)
- **SEC EDGAR**: [sec.gov/edgar](https://www.sec.gov/edgar)