Downloads · 30 days
0
Tr4m0ryp/espresso-v2-water-model
espresso-v2-water-model is a tabular regression model from Tr4m0ryp. Use it for the tabular regression task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as cc-by-sa-4.0.
Cross-Attention Geo-Aware Network for predicting product-level water footprints in textiles. 469K parameters, 3 output heads (raw materials, processing, packaging). Achieves R2=0.969 on test set. Geography is the domi…
Downloads · 30 days
0
Access
Public
Updated Apr 7, 2026
Repo size
6.9 MB
Likes
0
Public
Click a slice to open those files.
.pt5.8 MB · 83%
From the Hugging Face model README
Cross-Attention Geo-Aware Network for predicting product-level water footprints in textiles. 469K parameters, 3 output heads (raw materials, processing, packaging). Achieves R2=0.969 on test set. Geography is the dominant signal -- AWARE water stress factors create 40-100x variance across manufacturing locations. Developed at the University of Amsterdam.
Input Features
|
+-- MaterialEncoder ---------> mat_emb [B, 5, 64]
| emb(32) + log_weight + pct -> MLP(64) + 2-head self-attn + LN
|
+-- StepEncoder -------------> step_emb [B, 27, 64]
| emb(24) + sinusoidal position(4) -> MLP(64)
|
+-- LocationEncoder ---------> loc_emb [B, 8, 64]
| emb(32) + sincos coords(4) -> MLP(64)
|
+-- ProductEncoder ----------> product_emb [B, 48]
| cat_emb(16) + subcat_emb(16) + log_weight + 5 mask flags
|
+-- PackagingEncoder --------> pkg_emb [B, 32]
3 log_masses + 3 category embeddings(16 each) -> MLP(32)
|
v
GeoAttentionBlock (materials x locations)
2 layers, 4 heads, d_model=64
+ ConfidenceGate (MLP, bias_init=-2.0)
|
GeoAttentionBlock (steps x locations)
2 layers, 4 heads, d_model=64
+ ConfidenceGate (MLP, bias_init=-2.0)
|
v
Mean Pool -> Concatenate [mat(64) + step(64) + product(48) + pkg(32) = 208]
|
Residual Trunk (128-dim, 2 blocks, LN + Linear + GELU + Dropout)
|
+-- head_raw_materials -----> pred [B, 1] (MLP 128->64->1)
+-- head_processing --------> pred [B, 1] (MLP 128->64->1)
+-- head_packaging ---------> pred [B, 1] (MLP 128->64->1)
Overall test set:
| Metric | Value |
|---|---|
| R2 | 0.969 |
| MAE | 0.587 m3 world-eq |
| MAPE | 15.8% |
Per-component:
| Component | MAE | R2 | MAPE |
|---|---|---|---|
| Raw materials | 0.470 m3 | 0.970 | 39.3% |
| Processing | 0.174 m3 | 0.946 | 21.6% |
| Packaging | 0.0001 m3 | 0.962 | -- |
Raw materials MAPE (39.3%) is higher than the carbon model equivalent (6.4%) due to multiplicative AWARE factors: small geographic attribution errors are amplified by 40-100x characterization factor ranges. R2 remains high (0.970) because dominant patterns are captured.
Six data availability tiers (A through F). Overall degradation factor: 2.4x. The confidence gates are critical -- when location data is unavailable (Tiers A-B), gates close (~0.12) and the model relies on learned prior embeddings rather than noisy cross-attention output.
Tier distribution during training: A:35%, B:25%, C:15%, D:10%, E:10%, F:5%. Heavily skewed toward degraded tiers (A+B=60%) compared to carbon model (25%), reflecting that geography is so dominant the model must excel at graceful degradation.
| Parameter | Value |
|---|---|
| Optimizer | AdamW |
| Learning rate | 5e-4, cosine schedule |
| Batch size | 1024 |
| Weight decay | 0.01 |
| Curriculum warmup | 20 epochs |
| Subcategory mask | 15% independent dropout |
| Target transform | log1p + z-score normalization |
| Epochs | 105 |
| Parameters | ~469,000 |
UW-SO (Uncertainty-Weighted Softmax) with learnable log-variance scalars clamped to [-4, 4]:
Dataset: Tr4m0ryp/espresso-v2-carbon-water-data
49,732 records, 70/15/15 train/val/test split stratified by category.
@misc{espresso-v2-2026,
title={ESPResso V2: LLM-Orchestrated Synthetic Data Pipeline and Neural Estimation of Product-Level Carbon and Water Footprints in Textiles},
author={Ouallaf, Moussa},
year={2026},
institution={University of Amsterdam},
url={https://github.com/tr4m0ryp/ESPResso-V2}
}
CC BY-SA 4.0.