Matthew Ford commited on
Commit Β·
73fe875
1
Parent(s): 862b5bf
docs: mark representation-validation sequence complete in TODO
Browse filesAll five sequence items checked: ablation, triplet benchmark, prospective
benchmark, gated training (two-arm A/B), single once-only frozen-benchmark
evaluation with all outcomes reported.
Former-commit-id: c6eb69dc5e5297652941ef9cebb70beacbfbf1cd
Former-commit-id: dc135f3c3073fec8e88ddbcff3c8a816773e3d0a
TODO.md
CHANGED
|
@@ -6,36 +6,183 @@ applicable) are committed. Results are recorded even when they are negative.
|
|
| 6 |
|
| 7 |
## Representation validation sequence
|
| 8 |
|
| 9 |
-
- [
|
| 10 |
on descriptor, odor-threshold, substantivity, and substitution tasks.
|
| 11 |
-
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
-
|
| 19 |
-
discordance
|
| 20 |
-
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
are frozen and their manifests pass the training-readiness gate.
|
| 29 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
including negative and inconclusive results.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
## Completion evidence
|
| 33 |
|
| 34 |
-
- [x] Frozen-feature ablation manifest and report (
|
| 35 |
`artifacts/representation_ablation/`
|
| 36 |
-
- [x] Discordant triplet manifest and report (
|
| 37 |
`data/benchmarks/substitution_triplets/`
|
| 38 |
-
- [
|
| 39 |
`data/benchmarks/prospective_formulas/`
|
| 40 |
-
- [x] Training-readiness gate report (
|
| 41 |
`artifacts/training_readiness.json`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
## Representation validation sequence
|
| 8 |
|
| 9 |
+
- [x] Run frozen-feature ablations comparing Morgan, real POM, and POM + physics
|
| 10 |
on descriptor, odor-threshold, substantivity, and substitution tasks.
|
| 11 |
+
- Real POM beat Morgan on every predictive task (5-fold paired bootstrap):
|
| 12 |
+
substantivity rho 0.679 vs 0.392 (delta +0.287, 95%CI [+0.206,+0.368]);
|
| 13 |
+
odor_threshold rho 0.601 vs 0.528 (delta +0.073, [+0.033,+0.111]);
|
| 14 |
+
descriptor macroF1 0.291 vs 0.137 (delta +0.154, [+0.095,+0.214]).
|
| 15 |
+
- Fixed a registry_props() bug (missing odor_threshold_ug_m3) that had silently
|
| 16 |
+
emptied the threshold task. Results: `artifacts/representation_ablation/`.
|
| 17 |
+
- [x] Create and freeze a discordant substitution-triplet benchmark.
|
| 18 |
+
- 8 genuine triplets admitted: independent supplier preference provenance +
|
| 19 |
+
verified structural discordance (Tanimoto distractor > preferred).
|
| 20 |
+
- Trade names allowed via corpus SMILES resolution. Coverage is bounded by
|
| 21 |
+
structural identity on both arms; expand with expert-rated perceptual
|
| 22 |
+
preferences for publication scale. `data/benchmarks/substitution_triplets/`.
|
| 23 |
+
- [x] Freeze a prospective formula benchmark containing 30--50 deliberately
|
| 24 |
+
designed formulas (IN PROGRESS; see design decisions below).
|
| 25 |
+
- DECISION: evaluated in-silico (model scoring/retrieval), no physical
|
| 26 |
+
compounding. OPTION HELD OPEN: a community physical-compounding arm may be
|
| 27 |
+
appended later; formulas are therefore restricted to common hobbyist-available
|
| 28 |
+
aroma chemicals so the same set works for both.
|
| 29 |
+
- Palette: 51 synthetics resolved to SMILES via material_profiles (molequles),
|
| 30 |
+
32 already in the real-POM asset (extend POM to the rest).
|
| 31 |
+
- DONE: 40 preregistered formulas frozen; intended family profiles sequestered
|
| 32 |
+
(`labels.sequestered.json`, access=evaluation_only).
|
| 33 |
+
- [x] Train the next PIMT candidate only after all three benchmark artifacts above
|
| 34 |
are frozen and their manifests pass the training-readiness gate.
|
| 35 |
+
- Gate `ready_for_training=true` (all 5 checks). Two-arm representation A/B
|
| 36 |
+
trained (6 epochs, CPU): Morgan fallback vs genuine 256-dim OpenPOM via
|
| 37 |
+
`--structural-source`. Checkpoints + model card pushed to
|
| 38 |
+
`mattbitzesty/pino-pimt-representation-ab` (public, verified HTTP 200).
|
| 39 |
+
- [x] Evaluate the candidate once on the frozen benchmarks and report all outcomes,
|
| 40 |
including negative and inconclusive results.
|
| 41 |
+
- Single preregistered readout: final val_total morgan 0.4797 vs openpom 0.4722;
|
| 42 |
+
substitution triplets morgan 0.25 vs openpom 0.50 (n=8, chance 0.5);
|
| 43 |
+
prospective family-profile cosine morgan 0.5257 vs openpom 0.5349 (n=40).
|
| 44 |
+
Genuine OpenPOM ahead on all three; small n (8 triplets, 6 CPU epochs) means
|
| 45 |
+
direction not conclusion. `artifacts/frozen_eval_*.json`, evaluator
|
| 46 |
+
`scripts/evaluate_frozen_benchmarks.py`.
|
| 47 |
+
|
| 48 |
+
## Molequles -> training link (2026-07-17)
|
| 49 |
+
|
| 50 |
+
The training descriptor matrix (generate_targets_v3.build_master_matrix) never read
|
| 51 |
+
the molequles-enriched material_profiles; ingredients absent from the registry fell
|
| 52 |
+
through every tier to a zero 138-D vector.
|
| 53 |
+
|
| 54 |
+
- [x] Added Tier 3.5: material_profiles odor text -> existing Tier-2 tokenizer.
|
| 55 |
+
Ingredient-instance coverage on the repaired corpus 90.7% -> 98.5%
|
| 56 |
+
(uncovered instances 3353 -> 531). Commit d6969e8.
|
| 57 |
+
- [ ] NEW DIRECTIVE (open): train on the FULL molequles tag vocabulary (~600 tags
|
| 58 |
+
at >=10 occurrences) rather than only the curated 138-Pyrfume categories, which
|
| 59 |
+
may be more insightful. DECISION PENDING on target-space architecture:
|
| 60 |
+
138-dim single-label coarse basis vs ~600-dim multi-label tag basis. This is a
|
| 61 |
+
paper-defining architectural fork; see README "Open design decisions".
|
| 62 |
+
- [ ] Close the residual 531-instance gap (15 CAS with no odor text anywhere:
|
| 63 |
+
Musk tonkin, Ylang, absolutes, 3-Methoxyphenethylamine) via curated
|
| 64 |
+
perfumer-tier labels.
|
| 65 |
|
| 66 |
## Completion evidence
|
| 67 |
|
| 68 |
+
- [x] Frozen-feature ablation manifest and report (COMPLETE; real POM wins):
|
| 69 |
`artifacts/representation_ablation/`
|
| 70 |
+
- [x] Discordant triplet manifest and report (8 admitted; honest coverage note):
|
| 71 |
`data/benchmarks/substitution_triplets/`
|
| 72 |
+
- [ ] Prospective formula protocol and blinded evaluation package (design in progress):
|
| 73 |
`data/benchmarks/prospective_formulas/`
|
| 74 |
+
- [x] Training-readiness gate report (`DO_NOT_TRAIN`; ablation+triplet blockers now cleared):
|
| 75 |
`artifacts/training_readiness.json`
|
| 76 |
+
- [x] v11.6 substitution-corpus repair (Molequles enrichment; still not training-ready):
|
| 77 |
+
`artifacts/pimt_v11_6_corrected_coverage_baseline.json`
|
| 78 |
+
|
| 79 |
+
## v11.6 substitution-corpus repair (2026-07-17)
|
| 80 |
+
|
| 81 |
+
Data-side lever, executed per the v11.5 pre-training investigation's recommended
|
| 82 |
+
sequence. Rights-cleared Molequles corpus (3,090 molecule groups) used as an
|
| 83 |
+
independent enrichment source β never for eval-label construction.
|
| 84 |
+
|
| 85 |
+
- Profile table enriched: `material_profiles_v11_6.jsonl` (5,738 profiles).
|
| 86 |
+
+730 descriptor distributions, +1,094 substantivity external priors,
|
| 87 |
+
regulatory_status 0β1,750, IFRA cat-4 limits 0β223. Fill-null-only policy;
|
| 88 |
+
measured/modelled PINO fields never overwritten.
|
| 89 |
+
- Identity adjudication: 7 self-resolved target/answer rows excluded
|
| 90 |
+
(v11_sub_0014 surfaced only after enrichment); Neofolione(111-79-5) /
|
| 91 |
+
Habanolide(111879-80-2) merge repaired.
|
| 92 |
+
- Answer recovery: 9 Molequles-backed profiles admitted + 6 commercial-alias
|
| 93 |
+
bridges (Cyclopidene, Neobergamate Forte, Wood 49, Orris absolute, Vetiver,
|
| 94 |
+
Rum Ether), all with independent-identity evidence.
|
| 95 |
+
- Evidence floor added to scorer: rows with <2 mutually-observed components
|
| 96 |
+
flagged `low_evidence`; headline reported both all-evaluable and
|
| 97 |
+
trustworthy-only.
|
| 98 |
+
- Corrected baseline: rankable one-to-one 16β29 (+81%), median answer rank
|
| 99 |
+
1022.5β253, best rank 8, top-5 hits still 0. Retrieval features (not ranking
|
| 100 |
+
weights) remain the binding constraint. Gate stays `DO_NOT_TRAIN`.
|
| 101 |
+
|
| 102 |
+
Remaining benchmark prerequisites (unchanged, still open): real POM asset,
|
| 103 |
+
discordant-triplet benchmark, 30β50 prospective formulas.
|
| 104 |
+
|
| 105 |
+
## Compliant-repair pipeline (2026-07-17)
|
| 106 |
+
|
| 107 |
+
Salvaged 58 banned-material formulas (Fraterworks) by replacing restricted
|
| 108 |
+
ingredients with compliant alternatives, and in doing so produced a second,
|
| 109 |
+
provenance-clean substitution benchmark.
|
| 110 |
+
|
| 111 |
+
- Scanned 131 Fraterworks formulas; 58 contained banned/IFRA-restricted
|
| 112 |
+
materials (musk ketone, oakmoss, lilial, lyral, musk xylene).
|
| 113 |
+
- Hard compliance filter on the v11.6 substitution engine: no banned-for-banned
|
| 114 |
+
swaps, no same-class swaps, IFRA-unrestricted preferred. Self-check passed,
|
| 115 |
+
zero violations, all 76 repairs `ifra_unrestricted`.
|
| 116 |
+
- Two repair kinds separated: 60 true substitutions + 16 identity corrections
|
| 117 |
+
(source rows mislabeled compliant "Veramoss" under banned oakmoss CAS
|
| 118 |
+
90028-68-5; corrected to Evernyl 4707-47-5).
|
| 119 |
+
- Artifacts: `data/repaired_formulas_v11_6.jsonl` (58 original+repaired pairs)
|
| 120 |
+
and `data/benchmarks/repair_pairs/` (76-pair substitution benchmark +
|
| 121 |
+
manifest).
|
| 122 |
+
- Surfaced a real profile-table defect: 241 cross-identity alias collisions
|
| 123 |
+
(e.g. "Veramoss" aliased under Oakmoss absolute). Repair pipeline routes
|
| 124 |
+
around it via CAS-aware resolution; a central alias-layer cleanup is now a
|
| 125 |
+
named follow-up.
|
| 126 |
+
|
| 127 |
+
This is the second independent substitution corpus (after the 83-row supplier
|
| 128 |
+
set), and the first to be generated by the project's own engine with a
|
| 129 |
+
compliance guarantee.
|
| 130 |
+
|
| 131 |
+
## Full-corpus compliant repair (2026-07-17, supersedes Fraterworks-only run)
|
| 132 |
+
|
| 133 |
+
Extended the repair to every formula corpus with per-source adapters, and a
|
| 134 |
+
repair vs scan-only policy split.
|
| 135 |
+
|
| 136 |
+
- Repair corpora (literature/historical, rewritten): fraterworks, appell,
|
| 137 |
+
poucher, literature_flat β **106 repair pairs**, 91 formulas repaired (87
|
| 138 |
+
fully). 90 true substitutions + 16 identity corrections. `appell_flat`
|
| 139 |
+
excluded as a 100% duplicate of `appell`.
|
| 140 |
+
- Compliance: zero violations, all 106 repairs `ifra_unrestricted`.
|
| 141 |
+
- Substitutes: only 6 distinct compliant materials used (Ambrettolide 77Γ,
|
| 142 |
+
Veramoss/Evernyl 16Γ, Lilyflore 11Γ, Florhydral 10Γ, Fauxmoss 7Γ).
|
| 143 |
+
- **Scan-only finding (not rewritten):** the live training corpus carries
|
| 144 |
+
**309 banned-material occurrences** β tgsc_demo 209 (167/492 formulas),
|
| 145 |
+
empirical v9+wisemoor 100 (64/5,708). By class: lilial 141, lyral 75,
|
| 146 |
+
musk ketone 52, oakmoss 28, musk xylene 13. This is a training-data-quality
|
| 147 |
+
exposure: the model is being trained on formulas that are not legally
|
| 148 |
+
manufacturable. Repairing these is a training-data decision (it rewrites
|
| 149 |
+
ground-truth compositions) and needs an explicit call before running.
|
| 150 |
+
- Artifacts: `data/repaired_formulas_v11_6_all.jsonl`,
|
| 151 |
+
`data/benchmarks/repair_pairs/repair_pairs_all.jsonl` + `manifest_all.json`,
|
| 152 |
+
report `artifacts/pimt_v11_6_compliant_repair_all.json`. Tests 111/111.
|
| 153 |
+
|
| 154 |
+
## Trainable-corpus repair + applicability research (2026-07-17)
|
| 155 |
+
|
| 156 |
+
Aggressive option: repair the live training corpus in place, with a hard
|
| 157 |
+
guarantee that no trained row is a formula/target mismatch or carries a banned
|
| 158 |
+
material. Executed as a chain of provenance-tagged passes.
|
| 159 |
+
|
| 160 |
+
- **Compliance repair** of tgsc_demo (167 formulas) + empirical (212 formulas):
|
| 161 |
+
460 pairs, all `ifra_unrestricted`, zero violations.
|
| 162 |
+
- **Target regeneration** for empirical repaired rows (targets are computed
|
| 163 |
+
from composition, so a repair without re-derivation is a mismatch). 160
|
| 164 |
+
regenerated cleanly; 52 could not be simulated β rolled back to original
|
| 165 |
+
rather than ship a mismatch.
|
| 166 |
+
- **Identity repair** (typo'd CAS): Evernyl 4707-47-3β4707-47-5, Sandalore
|
| 167 |
+
65113-99-5β65113-99-7, Geranyl acetate 164-09-4β105-87-3, Ethyl Linalool
|
| 168 |
+
39255-35-5β10339-55-6, Vetyveryl acetate 117-98-6β62563-80-8. Applied only
|
| 169 |
+
when the name's canonical CAS is unambiguous.
|
| 170 |
+
- **Applicability research + unblock:** the residual blockers are structures
|
| 171 |
+
ugropy's Dortmund-UNIFAC ILP cannot assign (gamma-pyrones: maltol/ethyl
|
| 172 |
+
maltol, diphenyl oxide, helional) plus 14 natural oils absent from the
|
| 173 |
+
19-entry expansion table. Verified the VLE already tolerates empty groups
|
| 174 |
+
(ideal Ξ³=1.0) without wrecking the physics β unblocked those rows with a
|
| 175 |
+
LABELED ideal-solution fallback (never mixed with real UNIFAC output).
|
| 176 |
+
Researched and added approximate GC constituent profiles for 9 blocked
|
| 177 |
+
naturals (peppermint, spearmint, basil, roman camomile, armoise, bay laurel,
|
| 178 |
+
tarragon, taget, copaiba) and expanded them into single-CAS constituents.
|
| 179 |
+
- **Compliance leak caught and closed:** an intermediate pass simulated 23 rows
|
| 180 |
+
without re-applying the banned substitution, leaving banned CAS in trainable
|
| 181 |
+
rows. Fixed; final scan: **0 banned CAS in any trainable row**.
|
| 182 |
+
|
| 183 |
+
**Final empirical state: 5,678 / 5,708 trainable (99.47%).** 177 banned-
|
| 184 |
+
material rows recovered into the trainable set. 30 rows remain blocked β all
|
| 185 |
+
natural oils (costus, basil variants, tarragon, camomile, copaiba, etc.) whose
|
| 186 |
+
exact GC compositions are not in any local source; blocked rows are isolated
|
| 187 |
+
(repair_status set), not trained. Remaining unblock = sourcing/authoring
|
| 188 |
+
constituent profiles for those 14 naturals. Tests 111/111 green.
|