File size: 7,677 Bytes
0caf2aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "schema": "neutral-paper-reproduction-v101",
  "paper_id": "P219",
  "title": "Root-aligned SMILES: a tight representation for chemical reaction prediction",
  "question": "Reproduce the Root-aligned SMILES paper’s own representation and reaction-statistics experiments from the complete supplied USPTO-50k records. Distinguish freshly recomputed preprocessing statistics, actual model training and model inference.",
  "inputs": [
    "docs/",
    "inputs/"
  ],
  "scientific_outputs": {
    "method_probe_results.json": "ID keyed {value: scientific fields exactly documented in weighted rubric}; calculations.json is replaced by hidden new-value inputs on replay",
    "table2_50k_x1_records.jsonl": "One record for EVERY original input in exact order including exclusions. Fields record_id,split,status (included or explicit published preprocessing exclusion); if included source,baseline_target,aligned_target,source_token_count,target_token_count,baseline_edit,aligned_edit. Distances are token-level Levenshtein, not character-level.",
    "table1_transformation.json": "Source, target and reactant_roots for the original published reaction with root_map8, before tokenization",
    "original_prediction_records": "For prediction experiments submit every actualheld-out record ID/input and ranked isomeric products/reactants, raw augmentation beams, training-origin and weight/hash lineage; aggregate copied table numbers cannot earn credit.",
    "training_evidence": "All original-condition fit steps/weights and independent held-out forward evidence; partial or modern/smaller model treated as a new branch, not paper fulltraining.",
    "report": "Your own analysis of completed original experiments, numerical mismatches, material/resource limitations and expenses; allowed no-improvement findings",
    "calculation_results.json": "Object keyed by supplied calculation ID, each containing {value: the computed scientific value}. Use the named fields and units specified below; harmless extra annotations are allowed."
  },
  "scientific_details": {
    "input_contract": {
      "root": "/input",
      "output": "/work/output",
      "entrypoint": "/work/src/reproduce.py",
      "files": [
        "uspto50k_original.csv",
        "table1_original_reaction.json",
        "calculations.json"
      ]
    },
    "preprocessing_contract": {
      "table2": "Union of original train/valid/test for descriptive representation only. No training on held-out labels. Exclude reactant totalatoms<5, singleatomproduct and missing productmaps; preserve all input records/exclusion outputs. Strip atom maps before canonicalization, retain stereochemistry, discard reactant components with no product map overlap, preserve original component order for unaligned baseline and product traversal order for aligned reactants. Use molecule tokens (not characters). Root choice x1 is canonical unrooted product then earliest product-traversal map in each retained reactant.",
      "prediction": "Forward inputs can contain source reagents according to separated/mixed contract; at inference do not use target-side atom mappings/groundtruth reactants or transfer hidden labels. Full original upstream50K reactions are descriptive scientific data; predictive blind labels require separate hidden input binding, not obtained in current reference-limited package.",
      "history": "Training and prediction snapshots absent; freeze weights as materials gaps rather than awarding published targets"
    },
    "method_rule_output_fields": {
      "remove_maps": {
        "canonical_smiles": "string"
      },
      "root_product": {
        "rooted_smiles": "string"
      },
      "root_alignment": {
        "source": "string",
        "target": "string",
        "reactant_roots": "list of map integers"
      },
      "tokenization": {
        "tokens": "ordered list of token strings",
        "token_count": "integer"
      },
      "token_edit_distance": {
        "distance": "integer"
      },
      "exact_match": {
        "canonical_reactants": "fragment-sorted isomeric SMILES string"
      },
      "augmentation_rank": {
        "ranked": "ordered list of {smiles:string,score:number}; per-augmentation duplicate only first occurrence counts, invalid excluded, score=1/(alpha*k+1-alpha), lexical tie break"
      },
      "maxfrag": {
        "largest_fragment": "isomeric canonical SMILES",
        "heavy_atoms": "integer"
      },
      "chirality": {
        "centres": "integer including potential unassigned tetrahedral centres",
        "specified_centres": "integer assigned centres"
      },
      "new_atoms": {
        "new_atom_maps": "sorted integer list",
        "new_atom_count": "integer"
      }
    },
    "original_training": "Original 6encoder+6decoder layers/8heads/hidden512; shared vocabulary independent embeddings; Adam warmup8000; paper RTX3090,30–130h; exactoriginalcheckpoint/checkpointaveraging/repeatedseeds absent. CPU or smaller replacement training must be identified as transfer/new branch, not original full training."
  },
  "calculation_definitions": {
    "calc_001": {
      "definition": "remove_maps",
      "output": {
        "canonical_smiles": "string"
      }
    },
    "calc_002": {
      "definition": "root_product",
      "output": {
        "rooted_smiles": "string"
      }
    },
    "calc_003": {
      "definition": "root_alignment",
      "output": {
        "source": "string",
        "target": "string",
        "reactant_roots": "list of map integers"
      }
    },
    "calc_004": {
      "definition": "tokenization",
      "output": {
        "tokens": "ordered list of token strings",
        "token_count": "integer"
      }
    },
    "calc_005": {
      "definition": "token_edit_distance",
      "output": {
        "distance": "integer"
      }
    },
    "calc_006": {
      "definition": "exact_match",
      "output": {
        "canonical_reactants": "fragment-sorted isomeric SMILES string"
      }
    },
    "calc_007": {
      "definition": "augmentation_rank",
      "output": {
        "ranked": "ordered list of {smiles:string,score:number}; per-augmentation duplicate only first occurrence counts, invalid excluded, score=1/(alpha*k+1-alpha), lexical tie break"
      }
    },
    "calc_008": {
      "definition": "maxfrag",
      "output": {
        "largest_fragment": "isomeric canonical SMILES",
        "heavy_atoms": "integer"
      }
    },
    "calc_009": {
      "definition": "chirality",
      "output": {
        "centres": "integer including potential unassigned tetrahedral centres",
        "specified_centres": "integer assigned centres"
      }
    },
    "calc_010": {
      "definition": "new_atoms",
      "output": {
        "new_atom_maps": "sorted integer list",
        "new_atom_count": "integer"
      }
    }
  },
  "entrypoint": "reproduce.py --input-dir /input --output-dir /work/output",
  "rules": [
    "All raw inputs are under /input/inputs and paper materials are under /input/docs.",
    "Use current input values and retain complete record identities and denominators.",
    "Report actual scientific outputs and honest scope limits; printed paper totals alone are not new computations.",
    "Original-author algorithm source and mirrors are hidden. Other open-source tools and opaque binaries may be used; record their provenance."
  ],
  "runtime": "Frozen CPU-only Python3.12/RDKit2024.09.6/NumPy1.26.4 runtime. Historical version differences must be reported.",
  "resources": {
    "cpu_cores": 1,
    "memory_bytes": 2147483648,
    "cpu_seconds": 6000,
    "wall_seconds": 7200,
    "max_versions": 3,
    "max_actions": 12
  }
}