RecipeNet: A Hierarchical Transformer for Recipe Data
Organizations: Arizona State University Tempe, Arizona, USA · Applied Materials Santa Clara, California, USA · University of Illinois Chicago Chicago, Illinois, USA
Abstract
Recipe data arises in domains such as materials synthesis, pharmaceutical formulation, and industrial manufacturing, where procedures are represented as ordered sequences of steps containing heterogeneous structured fields. Existing tabular learning methods typically flatten this structure into fixed-schema representations, limiting their ability to capture hierarchical field interactions and procedural dependencies. We propose RecipeNet, a hierarchical Transformer architecture that encodes field-level interactions within each step and sequential dependencies across steps through stacked Transformer encoders. Experiments on multiple recipe datasets and tasks demonstrate that RecipeNet consistently outperforms existing tabular models, highlighting the value of hierarchical and sequential modeling for recipe representation learning.
Figures & tables
| Attribute | Step 1: Mixing | Step 2: Heating | Step 3: Cooling |
|---|---|---|---|
| Temperature | 25 ∘ C | 80 ∘ C | 30 ∘ C |
| Pressure | – | 2.5 bar | 1.0 bar |
| Duration | 5 min | 20 min | 10 min |
| Material A | 20 g | – | – |
| Material B | 10 g | – | – |
| Solid-state reactions | Sol-gel precursor synthesis | Solution synthesis | ||||
| Method | Next-step Prediction | Masked-step Prediction | Next-step Prediction | Masked-step Prediction | Next-step Prediction | Masked-step Prediction |
| XGBoost | 0.418 0.001 | 0.974 0.000 | 0.359 0.003 | 0.911 0.003 | 0.573 0.001 | 0.882 0.001 |
| CatBoost | 0.394 0.002 | 0.993 0.001 | 0.262 0.003 | 0.981 0.004 | 0.550 0.001 | 0.980 0.001 |
| TabNet | 0.367 0.008 | 0.633 0.004 | 0.363 0.008 | 0.758 0.016 | 0.501 0.005 | 0.739 0.007 |
| NODE | 0.167 0.000 | 0.167 0.000 | 0.167 0.000 | 0.167 0.000 | 0.167 0.000 | 0.167 0.000 |
| Transformer | 0.439 0.010 | 0.752 0.033 | 0.331 0.026 | 0.939 0.011 | 0.546 0.004 | 0.787 0.005 |
| Component | Next-step Prediction | Masked-step Prediction |
|---|---|---|
| RecipeNet (full model) | 0.406 | 0.999 |
| w/o Hierarchy | 0.398 | 0.995 |
| w/o Step Encoder | 0.334 | 0.973 |
| w/o Recipe Encoder | 0.351 | 0.994 |
| w/o Step Embedding | 0.369 | 0.997 |
| w/o Field Embedding | 0.391 | 0.994 |
Representation Learning
Representation learning develops data transformations that expose useful structure for prediction, transfer, generation, and control.
See all 804 papers