ethduke commited on
Commit
e0d3b77
·
verified ·
1 Parent(s): e23bc73
README.md CHANGED
@@ -28,18 +28,20 @@ configs:
28
 
29
  # Solana Program Types
30
 
31
- **11,258 Solana mainnet programs** (BPF upgradeable loader), one row per program, each labelled with a two-level
32
  type (`domain` / `type`, 34 types) and capability flags. The inputs are static features extracted from each program's
33
  deployed bytecode (instruction names, source paths, crates, embedded program IDs, strings) plus sampled on-chain
34
  behaviour.
35
 
36
  The main use is **recognising program types from deploy-time bytecode**, especially **token launchpads**, including
37
- launchpad families a model has never seen. The other 33 types (arbitrage/MEV bots, bridges, vaults, AMMs, games,
38
  escrow, …) are labelled with the same rubric.
39
 
40
- - **Version 1.2** (2026-10-15): v1.1 plus 85 programs caught by a live shadow monitor of new deployments and upgrades,
41
- labelled the same day.
42
- - **Labels are agent-made (silver)**: about 50 rows are registry or owner (gold). See "Limitations".
 
 
43
 
44
  ## Quick start
45
 
@@ -52,53 +54,61 @@ print(row["type"], row["domain"], row["card"][:500])
52
 
53
  ## Label sources
54
 
55
- Labels come from deterministic rules over on-chain behaviour, then an LLM annotator, then an LLM adjudicator for launchpads and disagreements; the owner's revisions override all of them (`is_gold` = owner-typed). `label_source` and `annotators` record which produced each label. Agent labels are silver, not human gold.
 
 
 
56
 
57
- | source | rows |
58
- |---|---|
59
- | annotator | 7673 |
60
- | adjudicator | 3530 |
61
- | registry | 29 |
62
- | owner | 26 |
 
 
 
 
 
63
 
64
  ## Types
65
 
66
  | type | rows |
67
  |---|---|
68
- | unknown | 2897 |
69
- | other | 911 |
70
- | arbitrage_mev | 797 |
71
- | launch_bot | 622 |
72
- | bridge | 561 |
73
- | yield_vault | 542 |
74
- | payments_fees | 463 |
75
- | generic_bot | 406 |
76
- | stake_pool | 403 |
77
- | escrow | 342 |
78
- | game | 337 |
79
- | aggregator | 325 |
80
- | launchpad | 280 |
81
- | nft_mint | 276 |
82
- | amm | 240 |
83
- | prediction_market | 192 |
84
- | ico_presale | 187 |
85
- | vesting_locker | 186 |
86
- | airdrop_claim | 169 |
87
- | lending_market | 165 |
88
- | nft_marketplace | 154 |
89
- | oracle | 116 |
90
- | governance_dao | 97 |
91
- | copy_volume_bot | 93 |
92
- | perps | 75 |
93
- | multisig_wallet | 72 |
94
- | token_factory | 72 |
95
- | orderbook | 67 |
96
- | naming_identity | 61 |
97
- | dca_limit_order | 51 |
98
- | cdp_stablecoin | 31 |
99
- | social | 27 |
100
- | options | 24 |
101
- | liquid_staking | 17 |
102
 
103
  ## Splits
104
 
@@ -114,50 +124,33 @@ Labels come from deterministic rules over on-chain behaviour, then an LLM annota
114
  - `card`: the text the annotators saw. Strings inside it are untrusted data from binaries.
115
  - Bytecode is not included; fetch it by `binary_sha256` / `program_id` from mainnet.
116
 
117
- - Labels in v1.2 live rows: `wave` = `al-20261015-1315` / `al-20261015-1320`.
118
-
119
-
120
- ## Benchmarks
121
 
122
- Two model families were compared on identical rows, using static (deploy-time) inputs only:
123
 
124
- - **S4:** gradient-boosted trees over 3,000 bytecode tokens.
125
- - **S5b:** Qwen3-8B with a LoRA adapter (r = 16, one epoch). It reads the static card and answers with one code
126
  letter per type; the next-token probabilities over the 34 letters give the type distribution, with one temperature
127
- for calibration.
128
 
129
- ### Newest deployments (v1.1, both models trained only on older programs)
130
 
131
- | model | launchpads | launchpad PR-AUC | recall @ precision ≥ 0.9 | P / R at 0.5 | type macro-F1 |
132
  |---|---|---|---|---|---|
133
- | gradient-boosted trees | 53 | 0.763 | 0.36 | 0.84 / 0.51 | 0.414 |
134
- | Qwen3-8B LoRA | 53 | **0.873** | **0.77** | 0.79 / **0.85** | **0.619** |
 
135
 
136
- Paired bootstrap of the PR-AUC gap: **+0.11**, 95% CI [+0.01, +0.21].
 
 
137
 
138
- ### Unseen launchpad families and clone-split test (v1.1)
139
-
140
- About 20% of launchpad families (43 of 254) were held out of training entirely.
141
-
142
- | model | set | launchpads | PR-AUC | recall @ P ≥ 0.9 | type macro-F1 |
143
- |---|---|---|---|---|---|
144
- | gradient-boosted trees | unseen families | 51 | 0.886 | 0.78 | — |
145
- | Qwen3-8B LoRA | unseen families | 51 | 0.911 | 0.80 | — |
146
- | gradient-boosted trees | clone-split test | 26 | 0.856 | 0.54 | 0.537 |
147
- | Qwen3-8B LoRA | clone-split test | 26 | 0.920 | 0.77 | 0.677 |
148
 
149
- The unseen-family gap (+0.025) is within noise (95% CI −0.05 to +0.10).
150
-
151
- ### Live shadow test (programs added in v1.2)
152
-
153
- 85 programs deployed or upgraded on mainnet were scored by both models at deploy time, then labelled.
154
-
155
- | model | launchpads flagged at 0.5 | correct / false / missed | precision | recall | type accuracy |
156
- |---|---|---|---|---|---|
157
- | gradient-boosted trees | 6 | 3 / 3 / 3 | 0.50 | 0.50 | 0.53 |
158
- | Qwen3-8B LoRA | 8 | 5 / 3 / 1 | 0.62 | 0.83 | 0.66 |
159
-
160
- This is small (6 launchpads) and not significant on its own, but it agrees with the offline result.
161
 
162
  ## Suggested evaluation
163
 
@@ -165,26 +158,29 @@ This is small (6 launchpads) and not significant on its own, but it agrees with
165
  results, and hold out whole launchpad families (`family_hint`, source program names or `clone_group`) for
166
  generalisation.
167
  - Exclude `type == "unknown"`: it means "no evidence", not a class.
168
- - Report launchpad PR-AUC and recall at fixed precision. Positives are rare (about 2.5%).
169
 
170
  ## Limitations
171
 
172
- - **Silver labels.** Most labels come from LLM agents (GLM-5.3 annotator, Claude Sonnet adjudicator, a Claude Haiku
173
- pilot), over deterministic rules. An owner reviewed launchpad-related decisions only. No label-error rate has been
174
- measured yet; expect noise, especially between neighbouring types (launch_bot / aggregator / generic_bot,
175
- other / payments_fees).
176
- - **Low-confidence live rows.** Programs added in v1.2 were labelled hours after deployment, often with little
177
- activity; see `confidence`.
 
178
  - **A launchpad label is a lead, not a validated deployment,** except registry and owner rows.
179
- - **Behaviour features are partly circular.** Rule labels were derived from the `b_*` / `t_*` columns, so models
180
- using them are not comparable with static-only models.
181
 
182
  ## Privacy and redaction
183
 
184
- The strings come from public mainnet bytecode. Before release, a few values were redacted: one API key compiled
185
- into a program (`api_key=[redacted]`), personal email addresses (published security and contact addresses are kept),
186
- developer usernames in build paths (`/home/<user>/`), and one 64-character hex string. No private keys were found;
187
- long base58 strings were checked against ed25519 keypairs.
 
 
 
188
 
189
  ## License
190
 
 
28
 
29
  # Solana Program Types
30
 
31
+ **22,743 Solana mainnet programs** (BPF upgradeable loader), one row per program, each labelled with a two-level
32
  type (`domain` / `type`, 34 types) and capability flags. The inputs are static features extracted from each program's
33
  deployed bytecode (instruction names, source paths, crates, embedded program IDs, strings) plus sampled on-chain
34
  behaviour.
35
 
36
  The main use is **recognising program types from deploy-time bytecode**, especially **token launchpads**, including
37
+ launchpads deployed after a model was trained. The other 33 types (arbitrage/MEV bots, bridges, vaults, AMMs, games,
38
  escrow, …) are labelled with the same rubric.
39
 
40
+ - **v1.3** (2026-10-21): about twice v1.2. It adds a third collection wave (11.5k programs still deployed on
41
+ mainnet), so it now covers nearly every upgradeable program active in the last 90 days at collection time. 510
42
+ launchpads in 481 code groups.
43
+ - **v1.2** (2026-10-15): v1.1 plus 85 programs caught by a live shadow monitor.
44
+ - **Labels are agent-made (silver).** See "Label sources" and "Limitations".
45
 
46
  ## Quick start
47
 
 
54
 
55
  ## Label sources
56
 
57
+ Deterministic rules over on-chain behaviour vote first. Then a cheap LLM annotator labels every card, and Claude
58
+ Sonnet adjudicates launchpads, rule-vs-annotator disagreements, launch-word safety-net cases and (in waves 1–2 and
59
+ part of wave 3) bot and token-issuance positives. Owner revisions override everything (`is_gold`). `label_source`
60
+ and `annotators` record the provenance of every row.
61
 
62
+ | final label from | rows | rows with a known type |
63
+ |---|---|---|
64
+ | GLM-5.3-flash annotator (wave 3) | 9,750 | 7,105 |
65
+ | GLM-5.3 annotator (wave 2) | 6,561 | 4,251 |
66
+ | Claude Sonnet 5.5 adjudicator | 5,251 | 4,700 |
67
+ | Claude Haiku 5.5 annotator (wave 1) | 1,027 | 833 |
68
+ | Claude Sonnet 5.5 annotator (live rounds) | 85 | 68 |
69
+ | registry | 43 | 43 |
70
+ | owner | 26 | 26 |
71
+
72
+ **Every launchpad label** comes from Sonnet, the registry or the owner, never from a cheap annotator alone.
73
 
74
  ## Types
75
 
76
  | type | rows |
77
  |---|---|
78
+ | unknown | 5717 |
79
+ | other | 1582 |
80
+ | arbitrage_mev | 1319 |
81
+ | bridge | 1263 |
82
+ | launch_bot | 1089 |
83
+ | yield_vault | 1079 |
84
+ | payments_fees | 895 |
85
+ | escrow | 884 |
86
+ | generic_bot | 863 |
87
+ | stake_pool | 852 |
88
+ | game | 756 |
89
+ | nft_mint | 635 |
90
+ | aggregator | 529 |
91
+ | ico_presale | 528 |
92
+ | launchpad | 510 |
93
+ | vesting_locker | 490 |
94
+ | prediction_market | 454 |
95
+ | airdrop_claim | 437 |
96
+ | amm | 430 |
97
+ | nft_marketplace | 296 |
98
+ | lending_market | 296 |
99
+ | governance_dao | 254 |
100
+ | oracle | 254 |
101
+ | token_factory | 234 |
102
+ | copy_volume_bot | 183 |
103
+ | multisig_wallet | 181 |
104
+ | orderbook | 154 |
105
+ | perps | 135 |
106
+ | naming_identity | 128 |
107
+ | dca_limit_order | 88 |
108
+ | social | 75 |
109
+ | cdp_stablecoin | 63 |
110
+ | options | 52 |
111
+ | liquid_staking | 38 |
112
 
113
  ## Splits
114
 
 
124
  - `card`: the text the annotators saw. Strings inside it are untrusted data from binaries.
125
  - Bytecode is not included; fetch it by `binary_sha256` / `program_id` from mainnet.
126
 
127
+ ## Benchmarks (static, deploy-time inputs only)
 
 
 
128
 
129
+ Two model families on identical rows:
130
 
131
+ - **Trees:** gradient-boosted trees over 3,000 bytecode tokens.
132
+ - **8B:** Qwen3-8B with a LoRA adapter (r = 16, one epoch). It reads the static card and answers with one code
133
  letter per type; the next-token probabilities over the 34 letters give the type distribution, with one temperature
134
+ for calibration. Model: [ethduke/solana-program-types-qwen3-8b-lora](https://huggingface.co/ethduke/solana-program-types-qwen3-8b-lora).
135
 
136
+ ### v1.3: newest 15% of deployments, never trained on (2,463 programs, 109 launchpads)
137
 
138
+ | model | launchpad PR-AUC | recall @ precision ≥ 0.9 | P / R at 0.5 | type accuracy | type macro-F1 |
139
  |---|---|---|---|---|---|
140
+ | gradient-boosted trees | 0.695 | 0.22 | 0.71 / 0.51 | 0.527 | 0.434 |
141
+ | Qwen3-8B LoRA | **0.879** | **0.69** | 0.79 / **0.84** | 0.653 | **0.649** |
142
+ | average of both | 0.871 | 0.61 | **0.86** / 0.74 | **0.662** | 0.646 |
143
 
144
+ Paired bootstrap of the PR-AUC gap (8B − trees): **+0.18**, 95% CI [+0.11, +0.25]. Per-type F1 improves most for
145
+ bridges, stake pools, oracles, perps, payments and aggregators. Bot sub-types (generic, copy-volume and launch bots)
146
+ stay hard from bytecode alone.
147
 
148
+ ### Earlier results
 
 
 
 
 
 
 
 
 
149
 
150
+ - **v1.1, newest deployments (53 launchpads):** PR-AUC 0.873 vs 0.763 for the trees (+0.11, CI [+0.01, +0.21]).
151
+ - **v1.1, unseen launchpad families** (43 families held out entirely): 0.911 vs 0.886, a gap within noise.
152
+ - **Live shadow test** (85 programs scored at deploy time, then labelled): launchpad precision 0.62 and recall 0.83
153
+ for the 8B, against 0.50 / 0.50 for the trees.
 
 
 
 
 
 
 
 
154
 
155
  ## Suggested evaluation
156
 
 
158
  results, and hold out whole launchpad families (`family_hint`, source program names or `clone_group`) for
159
  generalisation.
160
  - Exclude `type == "unknown"`: it means "no evidence", not a class.
161
+ - Report launchpad PR-AUC and recall at fixed precision. Positives are rare (about 3% of known rows).
162
 
163
  ## Limitations
164
 
165
+ - **Silver labels.** Most labels are LLM-agent labels; the owner reviewed launchpad-related decisions only, and no
166
+ label-error rate has been measured yet.
167
+ - **Weakest labels: wave 3 bots and tokens.**
168
+ - 1,381 wave-3 bot and token-issuance programs were not adjudicated and keep GLM-5.3-flash labels, including 830
169
+ of the 3,454 `trading_bot/*` rows.
170
+ - On a 60-case check, GLM-5.3-flash matched Sonnet's type 77% of the time, against 87% for a second Sonnet pass.
171
+ - Expect noise between generic_bot, copy_volume_bot, arbitrage_mev, launch_bot and aggregator.
172
  - **A launchpad label is a lead, not a validated deployment,** except registry and owner rows.
173
+ - **Behaviour features are partly circular.** Rule labels were derived from the `b_*` / `t_*` columns.
 
174
 
175
  ## Privacy and redaction
176
 
177
+ The strings come from public mainnet bytecode. Before release, these were redacted (`redact_public.py`):
178
+ - API-key values compiled into programs (`api_key=[redacted]`);
179
+ - personal email addresses (published security and contact addresses kept);
180
+ - developer usernames in build paths (`/home/<user>/`);
181
+ - 64-character hex strings.
182
+
183
+ Long base58 strings were checked against ed25519 keypairs; none was a private key.
184
 
185
  ## License
186
 
data/test-00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:22c47b555bab9b55bcbaef663072eae3a13664aabeb16296b57a67b37a7ff868
3
- size 1349271
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a9b269dbff961705518fecd3370ae268ff637aac162245e25b20be3acb4eabd
3
+ size 2583616
data/train-00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a8bdd148e8075aa4131395bbeae7945409ab835f43cbe2f4c3f7a80b9815ad61
3
- size 10487538
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:825eba1208087175519a2809f87938a86600aa43a45737db0e3565953db750d0
3
+ size 20425455
data/validation-00000.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c732602a6e3ed8cdc5106728cb2d1026bfae9e11d1e71e17c9b4c69411f79574
3
- size 1342574
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9382bb4b87e38eb99eb02206e37f0101455b2fa7209c04731e890090569d2217
3
+ size 2497768