mlsanityData to 14 Oct 2026

Unveiling the Power of Self-Attention for Shipping Cost Prediction: The Rate Card Transformer

arXiv 2311.11694 ↗First posted 20 Nov 2023cs.LG stat.MLcited by 0

Not on the map. Why?

Abstract (arXiv)

Amazon ships billions of packages to its customers annually within the United States. Shipping cost of these packages are used on the day of shipping (day 0) to estimate profitability of sales. Downstream systems utilize these days 0 profitability estimates to make financial decisions, such as pricing strategies and delisting loss-making products. However, obtaining accurate shipping cost estimates on day 0 is complex for reasons like delay in carrier invoicing or fixed cost components getting recorded at monthly cadence. Inaccurate shipping cost estimates can lead to bad decision, such as pricing items too low or high, or promoting the wrong product to the customers. Current solutions for estimating shipping costs on day 0 rely on tree-based models that require extensive manual engineering efforts. In this study, we propose a novel architecture called the Rate Card Transformer (RCT) that uses self-attention to encode all package shipping information such as package attributes, carrier information and route plan. Unlike other transformer-based tabular models, RCT has the ability to encode a variable list of one-to-many relations of a shipment, allowing it to capture more information about a shipment. For example, RCT can encode properties of all products in a package. Our results demonstrate that cost predictions made by the RCT have 28.82% less error compared to tree-based GBDT model. Moreover, the RCT outperforms the state-of-the-art transformer-based tabular model, FTTransformer, by 6.08%. We also illustrate that the RCT learns a generalized manifold of the rate card that can improve the performance of tree-based models.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 23 references that are in the map. First posted on arXiv 20 Nov 2023.

Builds on

13 of 23 references.

References · 13

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
  5. 2021Revisiting Deep Learning Models for Tabular Datacited by 740
  6. 2021AST: Audio Spectrogram Transformercited by 643
  7. 2020TabTransformer: Tabular Data Modeling Using Contextual Embeddingscited by 409
  8. 2020AutoGluon-Tabular: Robust and Accurate AutoML for Structured Datacited by 383
  9. 2019Deep Evidential Regressioncited by 355
  10. 2021SAINT: Improved Neural Networks for Tabular Data via Row Attention and Contrastive Pre-Trainingcited by 319
  11. 2019Neural Oblivious Decision Ensembles for Deep Learning on Tabular Datacited by 203
  12. 2020The Tree Ensemble Layer: Differentiability meets Conditional Computationcited by 57
1 more
  1. 2021DANets: Deep Abstract Networks for Tabular Data Classification and Regressioncited by 50

Built on by

Not cited yet.