File size: 2,512 Bytes
18fb6d8
bb3caa7
 
d004460
bb3caa7
 
d004460
bb3caa7
d004460
bb3caa7
 
 
 
 
 
 
18fb6d8
d004460
 
 
bb3caa7
 
 
d004460
bb3caa7
d004460
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bb3caa7
 
d004460
 
 
 
bb3caa7
d004460
 
 
 
 
 
 
 
 
 
 
 
 
 
bb3caa7
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
---
language:
- en
license: bsd-3-clause
size_categories:
- 100K<n<10M
task_categories:
- graph-ml
pretty_name: TEDBench-AFDB (pretraining)
tags:
- protein
- structure
- pretraining
- tedbench
- alphafold
- foldseek
---

# TEDBench-AFDB (pretraining corpus)

[**Paper**](https://huggingface.co/papers/2605.18552) | [**GitHub**](https://github.com/BorgwardtLab/TEDBench)

Representative proteins from Foldseek-clustered AlphaFold Database (pLDDT > 80), used to pretrain **MiAE (Masked Invariant Autoencoders)** in the **TEDBench** benchmark. 

TEDBench is a large-scale, non-redundant benchmark for protein fold classification constructed from the Encyclopedia of Domains (TED) and Foldseek-clustered AlphaFold structures.

## Dataset statistics

| Split | Structures |
|-------|----------:|
| Train | 742,183 |
| Val   | 7,496 |
| **Total** | **749,679** |

One representative structure per Foldseek sequence-similarity cluster.

## Schema

| Column | Type | Description |
|--------|------|-------------|
| `name` | `string` | AlphaFold domain identifier (e.g. `AF-Q8IYB3-F1`) |
| `sequence` | `string` | Amino-acid sequence (single-letter code) |
| `coords` | `[L, 3, 3]` float32 | Backbone N/Cα/C coordinates (Å) |
| `plddt` | `[L]` float32 | Per-residue AlphaFold pLDDT confidence score |
| `residue_index` | `[L]` int64 | Residue index in the original AlphaFold model |
| `seq_ids` | `[L]` int64 | ESM-tokenised sequence IDs |

No `label` column — this dataset is for **unsupervised pretraining** only.

## Usage

### Load from HuggingFace

```python
from datasets import load_dataset
import torch

afdb = load_dataset("TEDBench/afdb", split="train")
sample = afdb[0]

coords = torch.tensor(sample["coords"])   # [L, 3, 3]
plddt  = torch.tensor(sample["plddt"])    # [L]
```

### Pretrain MiAE using this dataset

```bash
python main_pretrain.py datamodule=hf_afdbfs

# Multi-GPU (effective batch size 4096)
python main_pretrain.py \
    experiment=tedbench_base_n4g8 \
    datamodule=hf_afdbfs
```

## Source data

- [Foldseek](https://afdb-cluster.steineggerlab.workers.dev) cluster representatives from AlphaFold Database v4 (pLDDT > 80)

## Citation

```bibtex
@inproceedings{chen2026tedbench,
  title={Protein Fold Classification at Scale: Benchmarking and Pretraining},
  author={Chen, Dexiong and Manolache, Andrei and Niepert, Mathias and Borgwardt, Karsten},
  booktitle={Proceedings of the 43rd International Conference on Machine Learning (ICML)},
  year={2026}
}
```

## License

BSD-3-Clause