malteos commited on
Commit
db190f0
·
verified ·
1 Parent(s): e84d92a

Add files using upload-large-folder tool

Browse files
README.md ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: commoncrawl-derived
4
+ license_link: https://commoncrawl.org/terms-of-use
5
+ pretty_name: Common Crawl Host-Graph Embeddings (deg≥8, shallow LP, dim-128)
6
+ tags:
7
+ - common-crawl
8
+ - web-graph
9
+ - graph-embeddings
10
+ - host-graph
11
+ - link-prediction
12
+ task_categories:
13
+ - feature-extraction
14
+ size_categories:
15
+ - 10M<n<100M
16
+ configs:
17
+ - config_name: default
18
+ data_files:
19
+ - split: train
20
+ path: vectors/emb-*.parquet
21
+ ---
22
+
23
+ # Common Crawl Host-Graph Embeddings — `cc-main-2025-26-nov-dec-jan` (deg≥8, shallow, dim-128)
24
+
25
+ Dense 128-dimensional embeddings for **52,913,544 web hosts**, learned by link prediction on the
26
+ Common Crawl **host-level hyperlink graph** release `cc-main-2025-26-nov-dec-jan`
27
+ (279.4 M hosts / 13.4 B directed edges). Vectors are **L2-normalized** and served in **float16**;
28
+ similarity is **cosine** (a dot product on the unit vectors).
29
+
30
+ > **Scope.** These are the **degree ≥ 8** hosts (total in+out degree), a 52.9 M / ~19 % induced
31
+ > subgraph that carries ~97 % of the edges. The low-degree tail of the full 279 M-host graph is
32
+ > **not** in this table — it is intended to be served separately via a domain/metadata fallback.
33
+
34
+ ## What each row is
35
+
36
+ One host, keyed by two stable string identifiers derived deterministically from the Common Crawl
37
+ host name (no per-release integer ids — those are ephemeral):
38
+
39
+ | column | type | meaning |
40
+ |---|---|---|
41
+ | `row_id` | int64 | global row index; `shard = row_id // rows_per_shard` |
42
+ | `host_key` | string | forward host, e.g. `www.example.com` (the stable identity key) |
43
+ | `domain_key` | string | registrable domain / PLD (eTLD+1), e.g. `example.com` |
44
+ | `embedding` | `fixed_size_list<float16>[128]` | the L2-normalized vector |
45
+
46
+ ## Files
47
+
48
+ ```
49
+ vectors/emb-00000-of-00014.parquet … emb-00013-of-00014.parquet # ~1 GB each, 4 M rows/shard
50
+ manifest.json # schema/model version, per-shard row ranges + SHA-256
51
+ ```
52
+
53
+ Shards are **contiguous row ranges** (not hash-partitioned), so `row_id` order is preserved across
54
+ shards. To locate one host without downloading everything, read only the `host_key`/`row_id`
55
+ columns of the shards (Parquet projects columns), then fetch the single shard
56
+ `row_id // 4_000_000`.
57
+
58
+ ## Usage
59
+
60
+ Stream as a 🤗 `datasets` table:
61
+
62
+ ```python
63
+ from datasets import load_dataset
64
+ ds = load_dataset("malteos/cc-web-graph-embeddings", split="train", streaming=True)
65
+ row = next(iter(ds))
66
+ print(row["host_key"], len(row["embedding"]))
67
+ ```
68
+
69
+ Materialize a contiguous matrix for FAISS / numpy (cosine = inner product on these unit vectors):
70
+
71
+ ```python
72
+ import numpy as np, pyarrow.parquet as pq, glob
73
+ mats, keys = [], []
74
+ for f in sorted(glob.glob("vectors/emb-*.parquet")):
75
+ t = pq.read_table(f, columns=["host_key", "embedding"])
76
+ keys += t["host_key"].to_pylist()
77
+ mats.append(np.asarray(t["embedding"].to_pylist(), dtype=np.float32))
78
+ X = np.vstack(mats) # [52_913_544, 128], already L2-normalized
79
+ ```
80
+
81
+ ## Provenance & model
82
+
83
+ - **Source graph:** Common Crawl host webgraph `cc-main-2025-26-nov-dec-jan`, aggregating crawls
84
+ **CC-MAIN-2025-47, CC-MAIN-2025-51, CC-MAIN-2026-04**.
85
+ - **Encoder:** shallow (per-node) embedding table trained by link prediction (WholeGraph-sharded,
86
+ in-batch negatives), `dim=128`, 3 epochs. `model_space_version = cc_deg8_shallow_v1`.
87
+ - **Link-prediction quality (held-out edges):** MRR **0.957**, Hits@1 **0.939**, Hits@10 **0.984**.
88
+ - **Precision:** float16 is the **primary published tier**; the lossless float32 master is archived
89
+ (for L2-normalized unit vectors fp16's cosine error is ~3–4×10⁻⁵ — negligible for ranking).
90
+
91
+ ## What the embedding captures
92
+
93
+ Downstream probes show the space encodes **graph structure**, not page content-language:
94
+ topic and spam signals are recoverable from the vectors (topic emb-only logistic-regression
95
+ macro-F1 ≈ 0.39), while **content-language is at the floor** (k-NN ≈ 0.02) — hosts are placed by who
96
+ links to whom, not by the language they publish in. Select on topic/spam utility, not LP MRR alone.
97
+
98
+ ## Limitations
99
+
100
+ - Degree ≥ 8 hosts only (see Scope). No vectors for the isolated/low-degree tail.
101
+ - Vectors are comparable **only within** `model_space_version`; a retrain / new window bumps it.
102
+ - Identity keys are pure functions of the published (punycode) host string — no IDNA decoding.
103
+
104
+ ## License
105
+
106
+ Derived from the Common Crawl host webgraph; use is subject to the
107
+ [Common Crawl Terms of Use](https://commoncrawl.org/terms-of-use). The embedding artifact is
108
+ released for research use. *(Set the final license before making this dataset public.)*
manifest.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "0.1.0",
3
+ "model_space_version": "cc_deg8_shallow_v1",
4
+ "release_id": "cc-main-2025-26-nov-dec-jan",
5
+ "source_crawls": [
6
+ "CC-MAIN-2025-47",
7
+ "CC-MAIN-2025-51",
8
+ "CC-MAIN-2026-04"
9
+ ],
10
+ "encoder": "shallow",
11
+ "dim": 128,
12
+ "num_rows": 52913544,
13
+ "rows_per_shard": 4000000,
14
+ "num_shards": 14,
15
+ "distance": "cosine",
16
+ "normalized": true,
17
+ "input_norm_min_mean_max": [
18
+ 0.00423435540869832,
19
+ 0.7896863222122192,
20
+ 16.95893669128418
21
+ ],
22
+ "columns": {
23
+ "row_id": "int64 (global row index; shard = row_id // rows_per_shard)",
24
+ "host_key": "str (forward host, contract identity key)",
25
+ "domain_key": "str (registrable domain / PLD)",
26
+ "embedding": "fixed_size_list<the set's dtype>[dim]"
27
+ },
28
+ "canonical_precision": "float16",
29
+ "precisions": {
30
+ "vectors": "float16"
31
+ },
32
+ "metrics": {
33
+ "best_val_mrr": 0.9573509097099304,
34
+ "test_mrr": 0.9574283957481384,
35
+ "test_hits@1": 0.938551127910614,
36
+ "test_hits@10": 0.9841657280921936
37
+ },
38
+ "shards": {
39
+ "vectors": [
40
+ {
41
+ "filename": "vectors/emb-00000-of-00014.parquet",
42
+ "row_start": 0,
43
+ "row_end": 4000000,
44
+ "n_rows": 4000000,
45
+ "bytes": 994153201,
46
+ "sha256": "e32fa2299222daed7e95a7727f7c1f83c15fa4a5781112d607e91a8f8ea46ad8"
47
+ },
48
+ {
49
+ "filename": "vectors/emb-00001-of-00014.parquet",
50
+ "row_start": 4000000,
51
+ "row_end": 8000000,
52
+ "n_rows": 4000000,
53
+ "bytes": 996320017,
54
+ "sha256": "1ebd23f6378740bc63244c893403f021f42de88e871f6432cf0052611635994f"
55
+ },
56
+ {
57
+ "filename": "vectors/emb-00002-of-00014.parquet",
58
+ "row_start": 8000000,
59
+ "row_end": 12000000,
60
+ "n_rows": 4000000,
61
+ "bytes": 988733128,
62
+ "sha256": "8e11b1f2070f1fde071eb63199ff060908f0c2570ae24f97fb250286192e2922"
63
+ },
64
+ {
65
+ "filename": "vectors/emb-00003-of-00014.parquet",
66
+ "row_start": 12000000,
67
+ "row_end": 16000000,
68
+ "n_rows": 4000000,
69
+ "bytes": 993631056,
70
+ "sha256": "49da7772ce6ec0f3579252165dadd52243546ff413e6c6a895fd70464d959ec9"
71
+ },
72
+ {
73
+ "filename": "vectors/emb-00004-of-00014.parquet",
74
+ "row_start": 16000000,
75
+ "row_end": 20000000,
76
+ "n_rows": 4000000,
77
+ "bytes": 991434583,
78
+ "sha256": "00f2bb1e2800d4219929e93b9eaf49f42a788f98588f0e5f93b92d5937d9ac66"
79
+ },
80
+ {
81
+ "filename": "vectors/emb-00005-of-00014.parquet",
82
+ "row_start": 20000000,
83
+ "row_end": 24000000,
84
+ "n_rows": 4000000,
85
+ "bytes": 994561044,
86
+ "sha256": "1cde6b5427eee1434438be6271aeb77e7aac8c18cc71ac3f705c33656efdda6f"
87
+ },
88
+ {
89
+ "filename": "vectors/emb-00006-of-00014.parquet",
90
+ "row_start": 24000000,
91
+ "row_end": 28000000,
92
+ "n_rows": 4000000,
93
+ "bytes": 996913787,
94
+ "sha256": "9aca2696429b4044e9da3137bc83b73655210c3e1d5e0f924f2117c0a35a3e54"
95
+ },
96
+ {
97
+ "filename": "vectors/emb-00007-of-00014.parquet",
98
+ "row_start": 28000000,
99
+ "row_end": 32000000,
100
+ "n_rows": 4000000,
101
+ "bytes": 991022923,
102
+ "sha256": "277843c663d5ffe40d6faa75fee256ce1583ef0f40d428db7defcfbf821b7363"
103
+ },
104
+ {
105
+ "filename": "vectors/emb-00008-of-00014.parquet",
106
+ "row_start": 32000000,
107
+ "row_end": 36000000,
108
+ "n_rows": 4000000,
109
+ "bytes": 1000569253,
110
+ "sha256": "c1f5a7b8b288b837c7004ed3cc6b028a26118d82f52e95100f4afe4102b23d7d"
111
+ },
112
+ {
113
+ "filename": "vectors/emb-00009-of-00014.parquet",
114
+ "row_start": 36000000,
115
+ "row_end": 40000000,
116
+ "n_rows": 4000000,
117
+ "bytes": 996032003,
118
+ "sha256": "1693c6a90e0306d141398b8060941b231316b17ee1fca4e92d7afc923492ba46"
119
+ },
120
+ {
121
+ "filename": "vectors/emb-00010-of-00014.parquet",
122
+ "row_start": 40000000,
123
+ "row_end": 44000000,
124
+ "n_rows": 4000000,
125
+ "bytes": 992647038,
126
+ "sha256": "fc2b663bd6fc41b03d3f0cc52c1db36d6f6c4b71845461fb93c9bfdd3c37acdf"
127
+ },
128
+ {
129
+ "filename": "vectors/emb-00011-of-00014.parquet",
130
+ "row_start": 44000000,
131
+ "row_end": 48000000,
132
+ "n_rows": 4000000,
133
+ "bytes": 994504489,
134
+ "sha256": "c4dbf2f84830d1229f5b9c37e7322f21e790256121413bccb98dbfa9c01dc136"
135
+ },
136
+ {
137
+ "filename": "vectors/emb-00012-of-00014.parquet",
138
+ "row_start": 48000000,
139
+ "row_end": 52000000,
140
+ "n_rows": 4000000,
141
+ "bytes": 990996371,
142
+ "sha256": "85ec3c5f5a8c52453554ef9b67d64751122390cd682b2966b9eed1d98518f052"
143
+ },
144
+ {
145
+ "filename": "vectors/emb-00013-of-00014.parquet",
146
+ "row_start": 52000000,
147
+ "row_end": 52913544,
148
+ "n_rows": 913544,
149
+ "bytes": 227094665,
150
+ "sha256": "ae465a772e20963c894e5ecbfaaff6bfa39b942962d8df0aa9293625fbb326e0"
151
+ }
152
+ ]
153
+ }
154
+ }
vectors/emb-00000-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e32fa2299222daed7e95a7727f7c1f83c15fa4a5781112d607e91a8f8ea46ad8
3
+ size 994153201
vectors/emb-00001-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ebd23f6378740bc63244c893403f021f42de88e871f6432cf0052611635994f
3
+ size 996320017
vectors/emb-00002-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e11b1f2070f1fde071eb63199ff060908f0c2570ae24f97fb250286192e2922
3
+ size 988733128
vectors/emb-00003-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49da7772ce6ec0f3579252165dadd52243546ff413e6c6a895fd70464d959ec9
3
+ size 993631056
vectors/emb-00004-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00f2bb1e2800d4219929e93b9eaf49f42a788f98588f0e5f93b92d5937d9ac66
3
+ size 991434583
vectors/emb-00005-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cde6b5427eee1434438be6271aeb77e7aac8c18cc71ac3f705c33656efdda6f
3
+ size 994561044
vectors/emb-00006-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9aca2696429b4044e9da3137bc83b73655210c3e1d5e0f924f2117c0a35a3e54
3
+ size 996913787
vectors/emb-00007-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:277843c663d5ffe40d6faa75fee256ce1583ef0f40d428db7defcfbf821b7363
3
+ size 991022923
vectors/emb-00008-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1f5a7b8b288b837c7004ed3cc6b028a26118d82f52e95100f4afe4102b23d7d
3
+ size 1000569253
vectors/emb-00009-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1693c6a90e0306d141398b8060941b231316b17ee1fca4e92d7afc923492ba46
3
+ size 996032003
vectors/emb-00010-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc2b663bd6fc41b03d3f0cc52c1db36d6f6c4b71845461fb93c9bfdd3c37acdf
3
+ size 992647038
vectors/emb-00011-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4dbf2f84830d1229f5b9c37e7322f21e790256121413bccb98dbfa9c01dc136
3
+ size 994504489
vectors/emb-00012-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85ec3c5f5a8c52453554ef9b67d64751122390cd682b2966b9eed1d98518f052
3
+ size 990996371
vectors/emb-00013-of-00014.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae465a772e20963c894e5ecbfaaff6bfa39b942962d8df0aa9293625fbb326e0
3
+ size 227094665