The history of Amazon’s forecasting algorithm

海外精选
海外精选的内容汇集了全球优质的亚马逊云科技相关技术内容。同时,内容中提到的“AWS” 是 “Amazon Web Services” 的缩写,在此网站不作为商标展示。
0
0
{"value":"![image.png](https://dev-media.amazoncloud.cn/1738f514149b4657ab911af95d4cfa89_image.png)\n\nAmazon’s forecasting team has drawn on advances in deep learning, image recognition, and natural language processing to develop a forecasting model that makes accurate decisions across diverse product categories. That journey took more than a decade.\n\nWhen a customer visits Amazon, there is an almost inherent expectation that the item they are searching for will be in stock. And that expectation is understandable — Amazon [sells more than 400 million products](https://www.amazon.science/re-mars-2019-jenny-freshwater-director-forecasting-presentation) in over 185 countries.\n\nHowever, the sheer volume of products makes it cost-prohibitive to maintain surplus inventory levels for every product.\n\nAn overhead image shows a fulfillment center with boxes and conveyor belts in a large, open facility \nRelated content\nHow events like Prime Day helped the SCOT science team navigate the pandemic\nHistorical patterns can be leveraged to make decisions on inventory levels for products with predictable consumption patterns — think household staples like laundry detergent or trash bags. However, most products exhibit a variability in demand due to factors that are beyond Amazon’s control.\n\nTake the example of a book like Michelle Obama’s ‘[Becoming](https://www.amazon.com/Becoming-Michelle-Obama-ebook/dp/B079ZYWJJ8/ref=sr_1_1?dchild=1&keywords=Becoming&qid=1615383342&sr=8-1)’, or the recent [proliferation](https://www.nytimes.com/interactive/2020/08/06/magazine/fashion-sweatpants.html) of [sweatsuits](https://www.amazon.com/s?k=sweatsuit&crid=20UJZSCG3M5CZ&sprefix=Sweeatsui%2Caps%2C221&ref=nb_sb_ss_sc_5_9), which emerged as both comfortable and fashion-forward clothing option during 2020. It’s difficult to account for the steep spike in sales caused by a publicity tour featuring Oprah Winfrey, and nearly impossible to foresee the effect COVID-19 would have on, among other things, stay-at-home clothing trends.\n\nToday, Amazon’s forecasting team has drawn on advances in fields like deep learning, image recognition and natural language processing to develop a forecasting model that makes accurate decisions across diverse product categories. Arriving at this unified forecasting model hasn’t been the result of one “eureka” moment. Rather, it has been a decade-plus long journey.\n\n![image.png](https://dev-media.amazoncloud.cn/e656b4c732534e68b97eec57e50529c9_image.png)\n\nClockwise from top left, Ping Xu, forecasting science director; Kari Torkkola, senior principal research scientist; Dhruv Madeka, principal applied scientist; and Ruofeng Wen, senior applied scientist, were among those who worked to unify Amazon's forecasting model.\nGLYNIS CONDON\n\n“When we started the forecasting team at Amazon, we had ten people and no scientists,” says [Ping Xu](https://www.amazon.science/working-at-amazon/predicting-what-amazons-customers-will-need-tomorrow-next-week-and-beyond), forecasting science director within Amazon’s Supply Chain Optimization Technologies (SCOT) organization. “Today, we have close to 200 people on our team. The focus on scientific and technological innovation has been key in allowing us to draw an accurate estimate of the immense variability in future demand, and make sure that customers are able to fulfill their shopping needs on Amazon.”\n\n#### **In the beginning: A patchwork of models**\n\n[Kari Torkkola](https://www.amazon.science/author/kari-torkkola), senior principal research scientist, has played a key role in driving the evolution of Amazon’s forecasting systems in his 12 years at the company.\n\n“When I joined Amazon, the company relied on traditional time series models for forecasting,” says Torkkola.\n\nTime series forecasting is a statistical technique that uses historical values and associated patterns to predict future activity. In 2008, Amazon’s forecasting system used standard textbook time series forecasting methods to make predictions.\n\n#### **There were multiple components, all of which needed our attention. The system was incredibly hard to maintain. It gradually became clear that we needed to work towards developing a unified forecasting model**\n\nThe system produced accurate forecasts in scenarios where the time series was predictable and stationary. However, it was unable to produce accurate forecasts for situations such as new products that had no prior history or products with highly seasonal sale patterns. Amazon’s forecasting teams had to develop new methods to account for each of these scenarios.\n\nSo they set about developing an add-on component to model seasonal patterns in products such as winter jackets. Another specialized component solved for the effects of price elasticity, where products see spikes in demand due to price drops, while yet another component called Distribution Engine modeled past errors to produce estimates of forecast distributions on top of point forecasts.\n\nThere were multiple components, all of which needed our attention,” says Torkkola. “The system was incredibly hard to maintain. It gradually became clear that we needed to work towards developing a unified forecasting model.”\n\n#### **Enter the random forest**\n\nIf the number of components made maintaining the forecasting system laborious, routing special forecasting cases or even product groups to specialized models, which involved encoding expert knowledge — complicated matters even further.\n\nThen Torkkola had a deceptively simple insight as he began working toward a unified forecasting model. “There are products across multiple categories that behave the same way,” he said.\n\nFor example, there is clear delineation between new products and products with an established history. The forecast for a new video game or laptop can be generated, in part, from how similar products behaved when they had launched in the past.\n\n<video src=\"https://dev-media.amazoncloud.cn/5f9a838f2cf64c3e99c48a530bab0f08_The%20history%20of%20Amazon%E2%80%99s%20forecasting%20algorithm.mp4\" class=\"manvaVedio\" controls=\"controls\" style=\"width:160px;height:160px\"></video>\n\n#### **The history of Amazon's forecasting algorithm**\n\nThis animation shows the models employed over the years by Supply Chain Optimization Technologies scientists as they continually refined their process, eventually arriving at the unified model they use today.\n\nTorkkola extracted a set of features from information such as demand, sales, product category, and page views. He used these features to train a random forest model. Random forests are commonly used machine learning algorithms that comprise a number of decision trees. The outputs of the decision trees are then bundled together to provide a more stable and accurate prediction.\n\n“By pooling everything together in one model, we gained statistical strength across multiple categories,” Torkkola says.\n\nAt the time, Amazon’s base forecasting system produced point forecasts to predict future demand — a single number that conveys information about the future demand. However, full forecast distributions or a set of quantiles of the distribution are necessary when it comes to make informed forecasting decisions on inventory levels. The Distribution Engine, which was another add-on to the base system, was producing poorly calibrated distributions.\n\nTorkkola wrote an initial implementation of the random forest approach to output quantiles of forecast distributions. This was rewritten as a new incarnation called Sparse Quantile Random Forest (SQRF). That implementation allowed a single forecasting system to make forecasts for different product lines where each may have had different features present, thus each of those features seem very “sparse”. SQRF could also scale to millions of products, and represented a step change for Amazon to produce forecasts at scale.\n\nHowever, the system suffered from a serious drawback. It still required the team to manually engineer features for the model – in other words, the system needed humans to define the input variables that would provide the best possible output.\n\nThat was all set to change in 2013, when the field of deep learning went into overdrive.\n\n#### **Deep learning produces the unified model**\n\n“In 2013, there was a lot of excitement in the machine learning community around deep learning,” Torkkola says. “There were significant advances in the field of image recognition. In addition, tensor frameworks such as [THEANO](https://pypi.org/project/Theano/) developed by the University of Montreal were allowing developers to build deep learning models on the fly. Currently popular frameworks such as TensorFlow were not yet available.”\n\nNeural networks held a tantalizing prospect for Amazon’s forecasting team. In theory, neural networks could do away with the need to manually engineer features. The network could ingest raw data and learn the most relevant implicit features needed to produce a forecast without human input.\n\nWith the help of interns hired over the summers of 2014 and 2015, Torkkola experimented with both feed forward and recurrent neural networks (RNNs). In feed forward networks, the connections between nodes do not form a cycle; the opposite is true with RNNs. The team began by developing a RNN to produce a point forecast. Over the next summer, another intern developed a model to produce a distribution forecast. However, these early iterations did not outperform SQRF, the existing production system.\n\nAmazon’s forecasting team went back to the drawing board and had another insight, one that would prove crucial in the journey towards developing a unified forecasting model.\n\n“We trained the network on minimizing quantile loss over multiple forecast horizons,” Torkkola says. Quantile loss is among the most important metrics used in forecasting systems. It is appropriate when under- and over-prediction errors have different costs, such as in inventory buying.\n\n“When you train a system on the same metric that you are interested in evaluating, the system performs better,” Torkkola says. The new feed forward network delivered a significant improvement in forecasting relative to SQRF.\n\nThis was the breakthrough that the team had been working towards: the team could finally start retiring the plethora of old models and utilize a unified forecasting model that would produce accurate forecasts for multiple scenarios, forecasts, and categories. The result was a 15-fold improvement in forecast accuracy and great simplification of the entire system.\n\n#### **At last, no feature engineering!**\n\nWhile the feed forward network had delivered an impressive improvement in performance, the system still continued using the same hand engineered features SQRF had used. \"There was no way to tell how far those features were from optimal,\" [Ruofeng Wen](https://www.amazon.science/author/ruofeng-wen), senior applied scientist who formerly worked as a forecasting scientist and joined the project in 2016, pointed out. “Some were redundant, and some were useless.”\n\nThe team set out to develop a model that would remove the need to manually engineer domain-specific features, thus being applicable to any general Forecasting problem. The breakthrough approach, known as MQ-RNN/CNN, was published in a 2018 paper titled \"[A Multi-Horizon Quantile Recurrent Forecaster](https://www.amazon.science/publications/a-multi-horizon-quantile-recurrent-forecaster)\". It built off the recent advances made in recurrent networks (RNN) and convolutional networks (CNNs).\n\nCNNs are frequently used in image recognition due to their ability to scan an image, determine the saliency of various parts of that image, and make decisions about the relative importance of those facets. RNNs are usually used in a different domain, parsing semantics and sentiments from texts. Crucially, both RNNs/CNNs are able to extract the most relevant features without manual engineering. “Afterall, forecasting is based on past sequential patterns,” Wen said, “and RNNs/CNNs are pretty good at capturing them.”\n\nLeveraging the new general approach allowed Amazon to forecast the demand of any fast-moving products by a single model structure. This out-performed a dozen of legacy systems designed for difference product lines, since the model was smart enough to learn business-specific demand patterns all by itself. However, for a system to make accurate predictions about the future, it has to have a detailed understanding of the errors it has made in the past. However, the architecture of Multi-Horizon Quantile Recurrent Forecaster had few mechanisms that would enable the model to ingest knowledge about past errors.\n\nAmazon’s forecasting team worked through this limitation by turning to the latest advances in natural language processing (NLP).\n\n#### **Leaning on natural language processing**\n\n[Dhruv Madeka](https://www.amazon.science/author/dhruv-madeka), a principal applied scientist who had conducted innovative work in developing [election forecasting systems](https://arxiv.org/abs/1704.02664) at Bloomberg, was among the scientists who had joined Amazon’s forecasting team in 2017.\n\n“Sentences are a sequence of words,” Madeka says. “The attention mechanisms in many NLP models look at a sequence of words, and determine which other parts of the sentence are important for a given context and task. By incorporating these context-aware mechanisms, we now had a way to make our forecasting system pay attention to its history, and gain an understanding of the errors it had made in the past.”\n\nAmazon’s forecasting team honed in on the transformer architectures that were shaking up the world of NLP. Their new approach, which used decoder-encoder attention mechanisms for context-alignment, was outlined in the paper \"[MQTransformer: Multi-Horizon Forecasts with Context Dependent and Feedback-Aware Attention](https://arxiv.org/pdf/2009.14799.pdf)\" published in December 2020. The decoder-encoder attention mechanisms meant that the system could study its own history and improve forecasting accuracy and decrease the volatility of the forecast.\n\nWith MQ Transformer, Amazon now has a unified forecasting model able to make even more accurate predictions across the company’s vast catalog of products.\n\nToday, the team is developing deep reinforcement learning models that will enable Amazon to ensure that the accuracy improvements in forecasts translate directly into cost savings, resulting in lower costs for customers. To design a system that optimizes directly for savings — as opposed to inventory levels — the forecasting team is drawing on cutting-edge research from fields such as deep reinforcement learning.\n\n“Amazon is an exceptional place for a scientist because of the focus on innovation grounded on making a real impact,” says Xu. “Thinking big is more than having a bold vision. It involves planting seeds, growing it continuously by failing fast, and doubling down on scaling once the evidence of success becomes apparent.”\n\nABOUT THE AUTHOR\n\n#### **Staff writer**\n","render":"<p><img src=\"https://dev-media.amazoncloud.cn/1738f514149b4657ab911af95d4cfa89_image.png\" alt=\"image.png\" /></p>\n<p>Amazon’s forecasting team has drawn on advances in deep learning, image recognition, and natural language processing to develop a forecasting model that makes accurate decisions across diverse product categories. That journey took more than a decade.</p>\n<p>When a customer visits Amazon, there is an almost inherent expectation that the item they are searching for will be in stock. And that expectation is understandable — Amazon <a href=\"https://www.amazon.science/re-mars-2019-jenny-freshwater-director-forecasting-presentation\" target=\"_blank\">sells more than 400 million products</a> in over 185 countries.</p>\n<p>However, the sheer volume of products makes it cost-prohibitive to maintain surplus inventory levels for every product.</p>\n<p>An overhead image shows a fulfillment center with boxes and conveyor belts in a large, open facility<br />\nRelated content<br />\nHow events like Prime Day helped the SCOT science team navigate the pandemic<br />\nHistorical patterns can be leveraged to make decisions on inventory levels for products with predictable consumption patterns — think household staples like laundry detergent or trash bags. However, most products exhibit a variability in demand due to factors that are beyond Amazon’s control.</p>\n<p>Take the example of a book like Michelle Obama’s ‘<a href=\"https://www.amazon.com/Becoming-Michelle-Obama-ebook/dp/B079ZYWJJ8/ref=sr_1_1?dchild=1&amp;keywords=Becoming&amp;qid=1615383342&amp;sr=8-1\" target=\"_blank\">Becoming</a>’, or the recent <a href=\"https://www.nytimes.com/interactive/2020/08/06/magazine/fashion-sweatpants.html\" target=\"_blank\">proliferation</a> of <a href=\"https://www.amazon.com/s?k=sweatsuit&amp;crid=20UJZSCG3M5CZ&amp;sprefix=Sweeatsui%2Caps%2C221&amp;ref=nb_sb_ss_sc_5_9\" target=\"_blank\">sweatsuits</a>, which emerged as both comfortable and fashion-forward clothing option during 2020. It’s difficult to account for the steep spike in sales caused by a publicity tour featuring Oprah Winfrey, and nearly impossible to foresee the effect COVID-19 would have on, among other things, stay-at-home clothing trends.</p>\n<p>Today, Amazon’s forecasting team has drawn on advances in fields like deep learning, image recognition and natural language processing to develop a forecasting model that makes accurate decisions across diverse product categories. Arriving at this unified forecasting model hasn’t been the result of one “eureka” moment. Rather, it has been a decade-plus long journey.</p>\n<p><img src=\"https://dev-media.amazoncloud.cn/e656b4c732534e68b97eec57e50529c9_image.png\" alt=\"image.png\" /></p>\n<p>Clockwise from top left, Ping Xu, forecasting science director; Kari Torkkola, senior principal research scientist; Dhruv Madeka, principal applied scientist; and Ruofeng Wen, senior applied scientist, were among those who worked to unify Amazon’s forecasting model.<br />\nGLYNIS CONDON</p>\n<p>“When we started the forecasting team at Amazon, we had ten people and no scientists,” says <a href=\"https://www.amazon.science/working-at-amazon/predicting-what-amazons-customers-will-need-tomorrow-next-week-and-beyond\" target=\"_blank\">Ping Xu</a>, forecasting science director within Amazon’s Supply Chain Optimization Technologies (SCOT) organization. “Today, we have close to 200 people on our team. The focus on scientific and technological innovation has been key in allowing us to draw an accurate estimate of the immense variability in future demand, and make sure that customers are able to fulfill their shopping needs on Amazon.”</p>\n<h4><a id=\"In_the_beginning_A_patchwork_of_models_24\"></a><strong>In the beginning: A patchwork of models</strong></h4>\n<p><a href=\"https://www.amazon.science/author/kari-torkkola\" target=\"_blank\">Kari Torkkola</a>, senior principal research scientist, has played a key role in driving the evolution of Amazon’s forecasting systems in his 12 years at the company.</p>\n<p>“When I joined Amazon, the company relied on traditional time series models for forecasting,” says Torkkola.</p>\n<p>Time series forecasting is a statistical technique that uses historical values and associated patterns to predict future activity. In 2008, Amazon’s forecasting system used standard textbook time series forecasting methods to make predictions.</p>\n<h4><a id=\"There_were_multiple_components_all_of_which_needed_our_attention_The_system_was_incredibly_hard_to_maintain_It_gradually_became_clear_that_we_needed_to_work_towards_developing_a_unified_forecasting_model_32\"></a><strong>There were multiple components, all of which needed our attention. The system was incredibly hard to maintain. It gradually became clear that we needed to work towards developing a unified forecasting model</strong></h4>\n<p>The system produced accurate forecasts in scenarios where the time series was predictable and stationary. However, it was unable to produce accurate forecasts for situations such as new products that had no prior history or products with highly seasonal sale patterns. Amazon’s forecasting teams had to develop new methods to account for each of these scenarios.</p>\n<p>So they set about developing an add-on component to model seasonal patterns in products such as winter jackets. Another specialized component solved for the effects of price elasticity, where products see spikes in demand due to price drops, while yet another component called Distribution Engine modeled past errors to produce estimates of forecast distributions on top of point forecasts.</p>\n<p>There were multiple components, all of which needed our attention,” says Torkkola. “The system was incredibly hard to maintain. It gradually became clear that we needed to work towards developing a unified forecasting model.”</p>\n<h4><a id=\"Enter_the_random_forest_40\"></a><strong>Enter the random forest</strong></h4>\n<p>If the number of components made maintaining the forecasting system laborious, routing special forecasting cases or even product groups to specialized models, which involved encoding expert knowledge — complicated matters even further.</p>\n<p>Then Torkkola had a deceptively simple insight as he began working toward a unified forecasting model. “There are products across multiple categories that behave the same way,” he said.</p>\n<p>For example, there is clear delineation between new products and products with an established history. The forecast for a new video game or laptop can be generated, in part, from how similar products behaved when they had launched in the past.</p>\n<p><video src=\"https://dev-media.amazoncloud.cn/5f9a838f2cf64c3e99c48a530bab0f08_The%20history%20of%20Amazon%E2%80%99s%20forecasting%20algorithm.mp4\" controls=\"controls\"></video></p>\n<h4><a id=\"The_history_of_Amazons_forecasting_algorithm_50\"></a><strong>The history of Amazon’s forecasting algorithm</strong></h4>\n<p>This animation shows the models employed over the years by Supply Chain Optimization Technologies scientists as they continually refined their process, eventually arriving at the unified model they use today.</p>\n<p>Torkkola extracted a set of features from information such as demand, sales, product category, and page views. He used these features to train a random forest model. Random forests are commonly used machine learning algorithms that comprise a number of decision trees. The outputs of the decision trees are then bundled together to provide a more stable and accurate prediction.</p>\n<p>“By pooling everything together in one model, we gained statistical strength across multiple categories,” Torkkola says.</p>\n<p>At the time, Amazon’s base forecasting system produced point forecasts to predict future demand — a single number that conveys information about the future demand. However, full forecast distributions or a set of quantiles of the distribution are necessary when it comes to make informed forecasting decisions on inventory levels. The Distribution Engine, which was another add-on to the base system, was producing poorly calibrated distributions.</p>\n<p>Torkkola wrote an initial implementation of the random forest approach to output quantiles of forecast distributions. This was rewritten as a new incarnation called Sparse Quantile Random Forest (SQRF). That implementation allowed a single forecasting system to make forecasts for different product lines where each may have had different features present, thus each of those features seem very “sparse”. SQRF could also scale to millions of products, and represented a step change for Amazon to produce forecasts at scale.</p>\n<p>However, the system suffered from a serious drawback. It still required the team to manually engineer features for the model – in other words, the system needed humans to define the input variables that would provide the best possible output.</p>\n<p>That was all set to change in 2013, when the field of deep learning went into overdrive.</p>\n<h4><a id=\"Deep_learning_produces_the_unified_model_66\"></a><strong>Deep learning produces the unified model</strong></h4>\n<p>“In 2013, there was a lot of excitement in the machine learning community around deep learning,” Torkkola says. “There were significant advances in the field of image recognition. In addition, tensor frameworks such as <a href=\"https://pypi.org/project/Theano/\" target=\"_blank\">THEANO</a> developed by the University of Montreal were allowing developers to build deep learning models on the fly. Currently popular frameworks such as TensorFlow were not yet available.”</p>\n<p>Neural networks held a tantalizing prospect for Amazon’s forecasting team. In theory, neural networks could do away with the need to manually engineer features. The network could ingest raw data and learn the most relevant implicit features needed to produce a forecast without human input.</p>\n<p>With the help of interns hired over the summers of 2014 and 2015, Torkkola experimented with both feed forward and recurrent neural networks (RNNs). In feed forward networks, the connections between nodes do not form a cycle; the opposite is true with RNNs. The team began by developing a RNN to produce a point forecast. Over the next summer, another intern developed a model to produce a distribution forecast. However, these early iterations did not outperform SQRF, the existing production system.</p>\n<p>Amazon’s forecasting team went back to the drawing board and had another insight, one that would prove crucial in the journey towards developing a unified forecasting model.</p>\n<p>“We trained the network on minimizing quantile loss over multiple forecast horizons,” Torkkola says. Quantile loss is among the most important metrics used in forecasting systems. It is appropriate when under- and over-prediction errors have different costs, such as in inventory buying.</p>\n<p>“When you train a system on the same metric that you are interested in evaluating, the system performs better,” Torkkola says. The new feed forward network delivered a significant improvement in forecasting relative to SQRF.</p>\n<p>This was the breakthrough that the team had been working towards: the team could finally start retiring the plethora of old models and utilize a unified forecasting model that would produce accurate forecasts for multiple scenarios, forecasts, and categories. The result was a 15-fold improvement in forecast accuracy and great simplification of the entire system.</p>\n<h4><a id=\"At_last_no_feature_engineering_82\"></a><strong>At last, no feature engineering!</strong></h4>\n<p>While the feed forward network had delivered an impressive improvement in performance, the system still continued using the same hand engineered features SQRF had used. “There was no way to tell how far those features were from optimal,” <a href=\"https://www.amazon.science/author/ruofeng-wen\" target=\"_blank\">Ruofeng Wen</a>, senior applied scientist who formerly worked as a forecasting scientist and joined the project in 2016, pointed out. “Some were redundant, and some were useless.”</p>\n<p>The team set out to develop a model that would remove the need to manually engineer domain-specific features, thus being applicable to any general Forecasting problem. The breakthrough approach, known as MQ-RNN/CNN, was published in a 2018 paper titled “<a href=\"https://www.amazon.science/publications/a-multi-horizon-quantile-recurrent-forecaster\" target=\"_blank\">A Multi-Horizon Quantile Recurrent Forecaster</a>”. It built off the recent advances made in recurrent networks (RNN) and convolutional networks (CNNs).</p>\n<p>CNNs are frequently used in image recognition due to their ability to scan an image, determine the saliency of various parts of that image, and make decisions about the relative importance of those facets. RNNs are usually used in a different domain, parsing semantics and sentiments from texts. Crucially, both RNNs/CNNs are able to extract the most relevant features without manual engineering. “Afterall, forecasting is based on past sequential patterns,” Wen said, “and RNNs/CNNs are pretty good at capturing them.”</p>\n<p>Leveraging the new general approach allowed Amazon to forecast the demand of any fast-moving products by a single model structure. This out-performed a dozen of legacy systems designed for difference product lines, since the model was smart enough to learn business-specific demand patterns all by itself. However, for a system to make accurate predictions about the future, it has to have a detailed understanding of the errors it has made in the past. However, the architecture of Multi-Horizon Quantile Recurrent Forecaster had few mechanisms that would enable the model to ingest knowledge about past errors.</p>\n<p>Amazon’s forecasting team worked through this limitation by turning to the latest advances in natural language processing (NLP).</p>\n<h4><a id=\"Leaning_on_natural_language_processing_94\"></a><strong>Leaning on natural language processing</strong></h4>\n<p><a href=\"https://www.amazon.science/author/dhruv-madeka\" target=\"_blank\">Dhruv Madeka</a>, a principal applied scientist who had conducted innovative work in developing <a href=\"https://arxiv.org/abs/1704.02664\" target=\"_blank\">election forecasting systems</a> at Bloomberg, was among the scientists who had joined Amazon’s forecasting team in 2017.</p>\n<p>“Sentences are a sequence of words,” Madeka says. “The attention mechanisms in many NLP models look at a sequence of words, and determine which other parts of the sentence are important for a given context and task. By incorporating these context-aware mechanisms, we now had a way to make our forecasting system pay attention to its history, and gain an understanding of the errors it had made in the past.”</p>\n<p>Amazon’s forecasting team honed in on the transformer architectures that were shaking up the world of NLP. Their new approach, which used decoder-encoder attention mechanisms for context-alignment, was outlined in the paper “<a href=\"https://arxiv.org/pdf/2009.14799.pdf\" target=\"_blank\">MQTransformer: Multi-Horizon Forecasts with Context Dependent and Feedback-Aware Attention</a>” published in December 2020. The decoder-encoder attention mechanisms meant that the system could study its own history and improve forecasting accuracy and decrease the volatility of the forecast.</p>\n<p>With MQ Transformer, Amazon now has a unified forecasting model able to make even more accurate predictions across the company’s vast catalog of products.</p>\n<p>Today, the team is developing deep reinforcement learning models that will enable Amazon to ensure that the accuracy improvements in forecasts translate directly into cost savings, resulting in lower costs for customers. To design a system that optimizes directly for savings — as opposed to inventory levels — the forecasting team is drawing on cutting-edge research from fields such as deep reinforcement learning.</p>\n<p>“Amazon is an exceptional place for a scientist because of the focus on innovation grounded on making a real impact,” says Xu. “Thinking big is more than having a bold vision. It involves planting seeds, growing it continuously by failing fast, and doubling down on scaling once the evidence of success becomes apparent.”</p>\n<p>ABOUT THE AUTHOR</p>\n<h4><a id=\"Staff_writer_110\"></a><strong>Staff writer</strong></h4>\n"}
目录
亚马逊云科技解决方案 基于行业客户应用场景及技术领域的解决方案
联系亚马逊云科技专家
亚马逊云科技解决方案
基于行业客户应用场景及技术领域的解决方案
联系专家
0
目录
关闭
contact-us