A gentle introduction to automated reasoning

Meet Amazon Science’s newest research area.

This week, Amazon Science added automated reasoning to its list of research areas. We made this change because of the impact that automated reasoning is having here at Amazon. For example, Amazon Web Services’ customers now have direct access to automated-reasoning-based features such as IAM Access Analyzer, S3 Block Public Access, or VPC Reachability Analyzer. We also see Amazon development teams integrating automated-reasoning tools into their development processes, raising the bar on the security, durability, availability, and quality of our products.

The goal of this article is to provide a gentle introduction to automated reasoning for the industry professional who knows nothing about the area but is curious to learn more. All you will need to make sense of this article is to be able to read a few small C and Python code fragments. I will refer to a few specialist concepts along the way, but only with the goal of introducing them in an informal manner. I close with links to some of our favorite publicly available tools, videos, books, and articles for those looking to go more in-depth.

Let’s start with a simple example. Consider the following C function:

bool f(unsigned int x, unsigned int y) {
   return (x+y == y+x);
}

Take a few moments to answer the question “Could f ever return false?” This is not a trick question: I’ve purposefully used a simple example to make a point.

To check the answer with exhaustive testing, we could try executing the following doubly nested test loop, which calls f on all possible pairs of values of the type unsigned int:

#include<stdio.h>
#include<stdbool.h>
#include<limits.h>

bool f(unsigned int x, unsigned int y) {
   return (x+y == y+x);
}

void main() {
   for (unsigned int x=0;1;x++) {
      for (unsigned int y=0;1;y++) {
         if (!f(x,y)) printf("Error!\n");
         if (y==UINT_MAX) break;
      }
      if (x==UINT_MAX) break;
   }
}

Unfortunately, even on modern hardware, this doubly nested loop will run for a very long time. I compiled it and ran it on a 2.6 GHz Intel processor for over 48 hours before giving up.

Why does testing take so long? Because UINT_MAX is typically 4,294,967,295, there are 18,446,744,065,119,617,025 separate f calls to consider. On my 2.6 GHz machine, the compiled test loop called f approximately 430 million times a second. But to test all 18 quintillion cases at this performance, we would need over 1,360 years.

When we show the above code to industry professionals, they almost immediately work out that f can't return false as long as the underlying compiler/interpreter and hardware are correct. How do they do that? They reason about it. They remember from their school days that x + y can be rewritten as y + x and conclude that f always returns true.

Re:Invent 2021 keynote address by Peter DeSantis, senior vice president for utility computing at Amazon Web Services
Skip to 15:49 for a discussion of Amazon Web Services' work on automated reasoning.

An automated reasoning tool does this work for us: it attempts to answer questions about a program (or a logic formula) by using known techniques from mathematics. In this case, the tool would use algebra to deduce that x + y == y + x can be replaced with the simple expression true.

Automated-reasoning tools can be incredibly fast, even when the domains are infinite (e.g., unbounded mathematical integers rather than finite C ints). Unfortunately, the tools may answer “Don’t know” in some instances. We'll see a famous example of that below.

The science of automated reasoning is essentially focused on driving the frequency of these “Don’t know” answers down as far as possible: the less often the tools report "Don't know" (or time out while trying), the more useful they are.

Today’s tools are able to give answers for programs and queries where yesterday’s tools could not. Tomorrow’s tools will be even more powerful. We are seeing rapid progress in this field, which is why at Amazon, we are increasingly getting so much value from it. In fact, we see automated reasoning forming its own Amazon-style virtuous cycle, where more input problems to our tools drive improvements to the tools, which encourages more use of the tools.

A slightly more complex example. Now that we know the rough outlines of what automated reasoning is, the next small example gives a slightly more realistic taste of the sort of complexity that the tools are managing for us.

void g(int x, int y) {
   if (y > 0)
      while (x > y)
         x = x - y;
}

Or, alternatively, consider a similar Python program over unbounded integers:

def g(x, y):
   assert isinstance(x, int) and isinstance(y, int)
   if y > 0:
      while x > y:
         x = x - y

Try to answer this question: “Does g always eventually return control back to its caller?”

When we show this program to industry professionals, they usually figure out the right answer quickly. A few, especially those who are aware of results in theoretical computer science, sometimes mistakenly think that we can't answer this question, with the rationale “This is an example of the halting problem, which has been proved insoluble”. In fact, we can reason about the halting behavior for specific programs, including this one. We’ll talk more about that later.

Here’s the reasoning that most industry professionals use when looking at this problem:

  1. In the case where y is not positive, execution jumps to the end of the function g. That’s the easy case.
  2. If, in every iteration of the loop, the value of the variable x decreases, then eventually, the loop condition x > y will fail, and the end of g will be reached.
  3. The value of x always decreases only if y is always positive, because only then does the update to x (i.e., x = x - y) decrease x. But y’s positivity is established by the conditional expression, so x always decreases.

The experienced programmer will usually worry about underflow in the x = x - y command of the C program but will then notice that x > y before the update to x and thus cannot underflow.

If you carried out the three steps above yourself, you now have a very intuitive view of the type of thinking an automated-reasoning tool is performing on our behalf when reasoning about a computer program. There are many nitty-gritty details that the tools have to face (e.g., heaps, stacks, strings, pointer arithmetic, recursion, concurrency, callbacks, etc.), but there’s also decades of research papers on techniques for handling these and other topics, along with various practical tools that put these ideas to work.

Policy-code.gif
Automated reasoning can be applied to both policies (top) and code (bottom). In both cases, an essential step is reasoning about what's always true.

The main takeaway is that automated-reasoning tools are usually working through the three steps above on our behalf: Item 1 is reasoning about the program’s control structure. Item 2 is reasoning about what is eventually true within the program. Item 3 is reasoning about what is always true in the program.

Note that configuration artifacts such as AWS resource policies, VPC network descriptions, or even makefiles can be thought of as code. This viewpoint allows us to use the same techniques we use to reason about C or Python code to answer questions about the interpretation of configurations. It’s this insight that gives us tools like IAM Access Analyzer or VPC Reachability Analyzer.

An end to testing?

As we saw above when looking at f and g, automated reasoning can be dramatically faster than exhaustive testing. With tools available today, we can show properties of f or g in milliseconds, rather than waiting lifetimes with exhaustive testing.

Can we throw away our testing tools now and just move to automated reasoning? Not quite. Yes, we can dramatically reduce our dependency on testing, but we will not be completely eliminating it any time soon, if ever. Consider our first example:

bool f(unsigned int x, unsigned int y) {
   return (x + y == y + x);
}

Recall the worry that a buggy compiler or microprocessor could in fact cause an executable program constructed from this source code to return false. We might also need to worry about the language runtime. For example, the C math library or the Python garbage collector might have bugs that cause a program to misbehave.

What’s interesting about testing, and something we often forget, is that it’s doing much more than just telling us about the C or Python source code. It’s also testing the compiler, the runtime, the interpreter, the microprocessor, etc. A test failure could be rooted in any of those tools in the stack.

Automated reasoning, in contrast, is usually applied to just one layer of that stack — the source code itself, or sometimes the compiler or the microprocessor. What we find so valuable about reasoning is it allows us to clearly define both what we do know and what we do not know about the layer under inspection.

Furthermore, the models of the surrounding environment (e.g., the compiler or the procedure calling our procedure) used by the automated-reasoning tool make our assumptions very precise. Separating the layers of the computational stack helps make better use of our time, energy, and money and the capabilities of the tools today and tomorrow.

Unfortunately, we will almost always need to make assumptions about something when using automated reasoning — for example, the principles of physics that govern our silicon chips. Thus, testing will never be fully replaced. We will want to perform end-to-end testing to try and validate our assumptions as best we can.

An impossible program

I previously mentioned that automated-reasoning tools sometimes return “Don’t know” rather than “yes” or “no”. They also sometimes run forever (or time out), thus never returning an answer. Let’s look at the famous "halting problem" program, in which we know tools cannot return “yes” or “no”.

Imagine that we have an automated-reasoning API, called terminates, that returns “yes” if a C function always terminates or “no” when the function could execute forever. As an example, we could build such an API using the tool described here (shameless self-promotion of author’s previous work). To get the idea of what a termination tool can do for us, consider two basic C functions, g (from above),

void g(int x, int y) {
   if (y > 0)
      while (x > y)
         x = x - y;
}

and g2:

void g2(int x, int y) {
   while (x > y)
      x = x - y;
}

For the reasons we have already discussed, the function g always returns control back to its caller, so terminates(g) should return true. Meanwhile, terminates(g2) should return false because, for example, g2(5, 0) will never terminate.

Now comes the difficult function. Consider h:

void h() {
   if terminates(h) while(1){}
}

Notice that it's recursive. What’s the right answer for terminates(h)? The answer cannot be "yes". It also cannot be "no". Why?

Imagine that terminates(h) were to return "yes". If you read the code of h, you’ll see that in this case, the function does not terminate because of the conditional statement in the code of h that will execute the infinite loop while(1){}. Thus, in this case, the terminates(h) answer would be wrong, because h is defined recursively, calling terminates on itself.

Similarly, if terminates(h) were to return "no", then h would in fact terminate and return control to its caller, because the if case of the conditional statement is not met, and there is no else branch. Again, the answer would be wrong. This is why the “Don’t know” answer is actually unavoidable in this case.

The program h is a variation of examples given in Turing’s famous 1936 paper on decidability and Gödel’s incompleteness theorems from 1931. These papers tell us that problems like the halting problem cannot be “solved”, if by“solved” we mean that the solution procedure itself always terminates and answers either “yes” or “no” but never “Don’t know”. But that is not the definition of “solved” that many of us have in mind. For many of us, a tool that sometimes times out or occasionally returns “Don’t know” but, when it gives an answer, always gives the right answer is good enough.

This problem is analogous to airline travel: we know it’s not 100% safe, because crashes have happened in the past, and we are sure that they will happen in the future. But when you land safely, you know it worked that time. The goal of the airline industry is to reduce failure as much as possible, even though it’s in principle unavoidable.

To put that in the context of automated reasoning: for some programs, like h, we can never improve the tool enough to replace the "Don't know" answer. But there are many other cases where today's tools answer "Don't know", but future tools may be able to answer "yes" or "no". The modern scientific challenge for automated-reasoning subject-matter experts is to get the practical tools to return “yes” or “no” as often as possible. As an example of current work, check out CMU professor and Amazon Scholar Marijn Heule and his quest to solve the Collatz termination problem.

Another thing to keep in mind is that automated-reasoning tools are regularly trying to solve “intractable” problems, e.g., problems in the NP complexity class. Here, the same thinking applies that we saw in the case of the halting problem: automated-reasoning tools have powerful heuristics that often work around the intractability problem for specific cases, but those heuristics can (and sometimes do) fail, resulting in “Don’t know” answers or impractically long execution time. The science is to improve the heuristics to minimize that problem.

Nomenclature

A host of names are used in the scientific literature to describe interrelated topics, of which automated reasoning is just one. Here’s a quick glossary:

  • A logic is a formal and mechanical system for defining what is true and untrue. Examples: propositional logic or first-order logic.
  • A theorem is a true statement in logic. Example: the four-color theorem.
  • A proof is a valid argument in logic of a theorem. Example: Gonthier's proof of the four-color theorem. 
  • A mechanical theorem prover is a semi-automated-reasoning tool that checks a machine-readable expression of a proof often written down by a human. These tools often require human guidance. Example: HOL-light, from Amazon researcher John Harrison. 
  • Formal verification is the use of theorem proving when applied to models of computer systems to prove desired properties of the systems. Example: the CompCert verified C compiler. 
  • Formal methods is the broadest term, meaning simply the use of logic to reason formally about models of systems. 
  • Automated reasoning focuses on the automation of formal methods. 
  • A semi-automated-reasoning tool is one that requires hints from the user but still finds valid proofs in logic. 

As you can see, we have a choice of monikers when working in this space. At Amazon, we’ve chosen to use automated reasoning, as we think it best captures our ambition for automation and scale. In practice, some of our internal teams use both automated and semi-automated reasoning tools, because the scientists we've hired can often get semi-automated reasoning tools to succeed where the heuristics in fully automated reasoning might fail. For our externally facing customer features, we currently use only fully automated approaches.

Next steps

In this essay, I’ve introduced the idea of automated reasoning, with the smallest of toy programs. I haven’t described how to handle realistic programs, with heap or concurrency. In fact, there are a wide variety of automated-reasoning tools and techniques, solving problems in all kinds of different domains, some of them quite narrow. To describe them all and the many branches and sub-disciplines of the field (e.g. “SMT solving”, “higher-order logic theorem proving”, “separation logic”) would take thousands of blogs posts and books.

Automated reasoning goes back to the early inventors of computers. And logic itself (which automated reasoning attempts to solve) is thousands of years old. In order to keep this post brief, I’ll stop here and suggest further reading. Note that it’s very easy to get lost in the weeds reading depth-first into this area, and you could emerge more confused than when you started. I encourage you to use a bounded depth-first search approach, looking sequentially at a wide variety of tools and techniques in only some detail and then moving on, rather than learning only one aspect deeply.

Suggested books:

International conferences/workshops:

Tool competitions:

Some tools:

Interviews of Amazon staff about their use of automated reasoning:

AWS Lectures aimed at customers and industry:

AWS talks aimed at the automated-reasoning science community:

AWS blog posts and informational videos:

Some course notes by Amazon Scholars who are also university professors:

A fun deep track:

Some algorithms found in the automated theorem provers we use today date as far back as 1959, when Hao Wang used automated reasoning to prove the theorems from Principia Mathematica.

Research areas

Related content

US, CA, San Francisco
Join the next revolution in robotics at Amazon's Frontier AI & Robotics team, where you'll work alongside world-renowned AI pioneers to push the boundaries of what's possible in robotic intelligence. As a Member of Technical Staff, you'll be at the forefront of developing breakthrough foundation models that enable robots to perceive, understand, and interact with the world in unprecedented ways. You'll drive independent research initiatives in areas such as perception, manipulation, science understanding, locomotion, manipulation, sim2real transfer, multi-modal foundation models and multi-task robot learning, designing novel frameworks that bridge the gap between state-of-the-art research and real-world deployment at Amazon scale. In this role, you'll balance innovative technical exploration with practical implementation, collaborating with platform teams to ensure your models and algorithms perform robustly in dynamic real-world environments. You'll have access to Amazon's vast computational resources, enabling you to tackle ambitious problems in areas like very large multi-modal robotic foundation models and efficient, promptable model architectures that can scale across diverse robotic applications. Key job responsibilities - Drive independent research initiatives across the robotics stack, including robotics foundation models, focusing on breakthrough approaches in perception, and manipulation, for example open-vocabulary panoptic scene understanding, scaling up multi-modal LLMs, sim2real/real2sim techniques, end-to-end vision-language-action models, efficient model inference, video tokenization - Design and implement novel deep learning architectures that push the boundaries of what robots can understand and accomplish - Lead full-stack robotics projects from conceptualization through deployment, taking a system-level approach that integrates hardware considerations with algorithmic development, ensuring robust performance in production environments - Collaborate with platform and hardware teams to ensure seamless integration across the entire robotics stack, optimizing and scaling models for real-world applications - Contribute to the team's technical strategy and help shape our approach to next-generation robotics challenges A day in the life - Design and implement novel foundation model architectures and innovative systems and algorithms, leveraging our extensive infrastructure to prototype and evaluate at scale - Collaborate with our world-class research team to solve complex technical challenges - Lead technical initiatives from conception to deployment, working closely with robotics engineers to integrate your solutions into production systems - Participate in technical discussions and brainstorming sessions with team leaders and fellow scientists - Leverage our massive compute cluster and extensive robotics infrastructure to rapidly prototype and validate new ideas - Transform theoretical insights into practical solutions that can handle the complexities of real-world robotics applications About the team At Frontier AI & Robotics, we're not just advancing robotics – we're reimagining it from the ground up. Our team is building the future of intelligent robotics through innovative foundation models and end-to-end learned systems. We tackle some of the most challenging problems in AI and robotics, from developing sophisticated perception systems to creating adaptive manipulation strategies that work in complex, real-world scenarios. What sets us apart is our unique combination of ambitious research vision and practical impact. We leverage Amazon's massive computational infrastructure and rich real-world datasets to train and deploy state-of-the-art foundation models. Our work spans the full spectrum of robotics intelligence – from multimodal perception using images, videos, and sensor data, to sophisticated manipulation strategies that can handle diverse real-world scenarios. We're building systems that don't just work in the lab, but scale to meet the demands of Amazon's global operations. Join us if you're excited about pushing the boundaries of what's possible in robotics, working with world-class researchers, and seeing your innovations deployed at unprecedented scale.
IN, TS, Hyderabad
At Amazon, we strive to be Earth's most customer-centric company, where customers can find and discover anything they want to buy online. Our mission in International Seller Services (ISS) is to provide technology solutions for improving the seller and customer experience, drive seller compliance, maximize seller success, and improve internal workforce productivity. Team's main focus is to build products that are scalable across different regions of the world, while working in partnership with ISS regional stakeholders and multiple partner teams across Amazon. As a Data Scientist, you will be responsible for modeling complex problems, discovering insights, and building risk algorithms that identify opportunities through statistical models, machine learning, and visualization techniques to improve operational efficiency. As a Data Scientist, you will leverage your expertise in Machine Learning, Natural Language Processing (NLP), and Large Language Models (LLM) to develop innovative solutions for Amazon's ISS team. You'll be responsible for modeling complex problems, building innovative algorithms, and discovering actionable insights through statistical models and visualization techniques to enhance operational efficiency in the e-commerce space. The role combines usage of latest AI technology with practical business applications, requiring someone passionate about transforming the way we interact with technology while delivering measurable impact through advanced analytics and machine learning solutions. You will need to collaborate effectively with business and product leaders within ISS and cross-functional teams to build scalable solutions against high organizational standards. The candidate should be able to apply a breadth of tools, data sources, and Data Science techniques to answer a wide range of high-impact business questions and proactively present new insights in concise and effective manner. The candidate should be an effective communicator capable of independently driving issues to resolution and communicating insights to non-technical audiences. This is a high impact role with goals that directly impacts the bottom line of the business. Key job responsibilities Analyze terabytes of data to define and deliver on complex analytical deep dives to unlock insights and build scalable solutions through Data Science to ensure security of Amazon’s platform and transactions Build Machine Learning and/or statistical models that evaluate the transaction legitimacy and track impact over time Ensure data quality throughout all stages of acquisition and processing, including data sourcing/collection, ground truth generation, normalization, transformation, and cross-lingual alignment/mapping Define and conduct experiments to validate/reject hypotheses, and communicate insights and recommendations to Product and Tech teams Develop efficient data querying infrastructure for both offline and online use cases Collaborate with cross-functional teams from multidisciplinary science, engineering and business backgrounds to enhance current automation processes Learn and understand a broad range of Amazon’s data resources and know when, how, and which to use and which not to use. Maintain technical document and communicate results to diverse audiences with effective writing, visualizations, and presentations
US, WA, Bellevue
Fulfillment by Amazon (FBA) lets sellers outsource supply chain and fulfillment to Amazon. Sellers use Amazon's world class science, technology, and logistics infrastructure to deliver billions of products from manufacturing hubs to customers worldwide with a fast delivery promise. As FBA expands into end-to-end supply chain and fulfillment management, its science problems are growing in complexity and strategic importance. FBA is looking for a Senior Applied Science Manager with deep expertise in Operations Research and Reinforcement Learning, plus strong modeling and analytical skills. You will join a cross-domain group of applied scientists, research scientists, economists, and data scientists building the intelligence layer for FBA's supply chain. As a leader in this space, you will manage a team of interdisciplinary scientists developing cutting edge supply chain solutions. These solutions span the full journey: from the moment a seller procures product at origin, through upstream warehousing and distribution, and into Amazon's fulfillment network. Your work will impact millions of third-party sellers globally. You will set the scientific culture (including research, publication, and innovation) and the short-and-long term research vision for the organization. You will manage the execution of science projects, help business and tech partners turn scientific results into policies, programs, and products, and influence other business teams across the Amazon Consumer organization. The role has high visibility with senior Amazon business leaders and involves working with engineering and product teams to integrate science models into production systems. The ideal candidate brings scientific and technical expertise, strong business intuition, and a desire to grow and develop others. You have excellent written and verbal communication skills to influence business direction up to the VP level, frame solutions for non-technical partners, and advocate for science in the organization. You are comfortable with ambiguity and enjoy working in a fast-paced environment. Key job responsibilities - Lead a team of scientists (Data Scientists, Applied Scientists, Research Scientists, BIEs), and hire and develop top science talent. - Own the science development of inventory routing, replenishment, product selection, mechanism design, and transportation distribution algorithms that power FBA's supply chain across Amazon's fulfillment network. - Partner with Sr. Leaders across the organization to frame business problems, establish science vision, and execute roadmap. Partner with Engineering teams to bring modeling solutions to frontline applications across the business. - Set the scientific culture and leadership within the organization, advocating for science innovation and rigor at leadership level - Be a thought leader on modeling engineering, scientific research, and business strategy, be able to make trade off and executive decisions spanning the end-to-end science workflow. - Be able to translate and communicate out data and science driven results - Identify new opportunities to leverage various science techniques within the organization. - Drive and execute scientific projects/products end-to-end: from ideation, analysis, prototyping, development, metrics, and monitoring. Review and audit modeling processes and results. A day in the life You will lead a team of scientists and define a multiyear science and data vision and strategy to support seller fulfillment. You will design and launch new systems that solve real world inventory, transportation, replenishment, pricing, and mechanism design problems. These problems involve millions of unique products, hundreds of thousands of Selling Partners, and tens of millions of customers around the world. You will guide your team as they develop models using data analysis, scientific methods, and experimentation. You will explain the properties of your analysis and models to business partners and fold their feedback and requests into your projects. You will own the research agenda and prioritization for the team and make sure projects address business needs. You will make decisions about technology, models, and methodology, striving for simplicity and showing judgment backed by scientific reasoning and data. You will also work with world class economists and scientists across Amazon's broader decision and research science community to widen the scope of your work, and you will mentor engineers and scientists. About the team Sellers play a vital role in Amazon's ecosystem and are central to our mission of offering Earth's largest selection, lowest prices, and fastest delivery. FBA is an optional service that lets third party sellers outsource order fulfillment to Amazon and use Amazon's world class facilities to offer customers a fast delivery promise. Because we are committed to taking on more supply chain and operational complexity for our selling partners, Amazon now offers an end-to-end suite of supply chain and fulfillment services. This suite helps sellers move products reliably from manufacturing sites to customers worldwide. The FBA team is the core group responsible for warehousing, inventory management, inbound placement, fulfillment, capacity control, reimbursement, inventory defects, and a range of recommendation services for sellers. We learn seller behavior, understand the seller experience, recommend the right actions to sellers, design seller policies and incentives, and build science products and services that help sellers grow their businesses. To do this, we draw on operations research, economics, machine learning, statistics, and data analytics. Our culture centers on rapid prototyping, rigorous experimentation, and data driven decisions.
US, WA, Seattle
Join us in shaping the future of Amazon’s Selling Partner business. The Selling Partner Selection Success organization is the growth and development engine for Amazon’s Store. We partner with product, engineering, science, and business teams to help Selling Partners identify promising product opportunities, make informed launch decisions, and grow new selection successfully. We combine comprehensive data, machine learning, experimentation, and seller insights to deliver actionable guidance at scale. We believe every motivated Selling Partner should have access to the tools and resources needed to build a successful and sustainable business on Amazon. We are looking for a Data Scientist II to develop science solutions for supporting end-to-end new and existing selection growth. Our vision is to identify opportunities for sellers in their portfolio so that their next dollar spend is optimally leveraged via growth plans to maximize net revenue. The successful candidate will combine strong statistical and machine learning foundations with sound business judgment. You will translate ambiguous business questions into measurable science problems, develop and evaluate scalable solutions, and work with engineering partners to move them into production. You will collaborate with product managers, economists, applied scientists, and partner teams across Search, Pricing, Personalization, Listings, and Seller Experience. You will communicate findings and recommendations to audiences with varying levels of technical expertise and help shape the long-term science strategy for selection growth. Key job responsibilities As an Data Scientist II in the team, you will: - Identify opportunities to improve SP growth and translate those opportunities into science problems via principled GenAI solutions . - Design and execute roadmaps for complex science projects to help SP have a delightful selling experience while creating long term value for our shoppers. - Work with our engineering partners and draw upon your experience to meet latency and other system constraints. - Be responsible for communicating our science innovations to the broader internal & external scientific community.
US, MA, Boston
As an Applied Scientist on the Science SW team, you will be a versatile generalist who collaborates closely with other scientists and engineers teams to bring research to production across a broad portfolio of problems: from computer-vision perception platforms to building-wide optimization and orchestration. This role combines the scientific application of ML and applied mathematics with a strong product focus. It will be your job to frame ambiguous business problems as tractable scientific problems, and to implement novel ML systems, first-principles models, embedded systems prototypes, and performance optimizations in both prototype and production environments. Key job responsibilities Own the research and development of scientific and ML solutions across a broad range of problems spanning classical machine learning, statistical modeling, computer vision, optimization, and physics-informed / first-principles modeling in a production environment. Rapidly ramp on unfamiliar problem domains, frame ambiguous or open-ended business problems as tractable scientific problems, and prototype solutions end to end. Prototype and evaluate sensing hardware and lightweight, edge-deployable models that run on commodity compute under real-world constraints. Collaborate across multiple science and engineering teams to integrate your solutions into our deployment architecture. About the team Amazon is building next generation software, hardware, and processes that will run our global network of fulfillment centers that move millions of units of inventory, and ensure customers get what they want when promised. The Science Software team in the One MHS organization unlocks Material Handling Equipment (MHE) innovation through a multiplicity of disciplines within Artificial Intelligence (AI) and applied science, including Computer Vision (CV), Optimization, Reinforcement Learning, classical Machine Learning, statistical modeling, and sensing-hardware prototyping. Rooted in first principles aligned experimentation, the team is dedicated to building self-optimizing fulfillment centers, developing the models that drive real-time, building-wide orchestration of MHE. We conduct experiments, develop models, and apply machine learning (ML) at scale to optimize throughput, flow, merge, and congestion control, and to improve operational performance across the fulfillment network.
US, MA, Boston
As an Applied Scientist on the Science SW team, you will be a versatile generalist who collaborates closely with other scientists and engineers teams to bring research to production across a broad portfolio of problems: from computer-vision perception platforms to building-wide optimization and orchestration. This role combines the scientific application of ML and applied mathematics with a strong product focus. It will be your job to frame ambiguous business problems as tractable scientific problems, and to implement novel ML systems, first-principles models, embedded systems prototypes, and performance optimizations in both prototype and production environments. Key job responsibilities Own the research and development of scientific and ML solutions across a broad range of problems spanning classical machine learning, statistical modeling, computer vision, optimization, and physics-informed / first-principles modeling in a production environment. Rapidly ramp on unfamiliar problem domains, frame ambiguous or open-ended business problems as tractable scientific problems, and prototype solutions end to end. Prototype and evaluate sensing hardware and lightweight, edge-deployable models that run on commodity compute under real-world constraints. Collaborate across multiple science and engineering teams to integrate your solutions into our deployment architecture. About the team Amazon is building next generation software, hardware, and processes that will run our global network of fulfillment centers that move millions of units of inventory, and ensure customers get what they want when promised. The Science Software team in the One MHS organization unlocks Material Handling Equipment (MHE) innovation through a multiplicity of disciplines within Artificial Intelligence (AI) and applied science, including Computer Vision (CV), Optimization, Reinforcement Learning, classical Machine Learning, statistical modeling, and sensing-hardware prototyping. Rooted in first principles aligned experimentation, the team is dedicated to building self-optimizing fulfillment centers, developing the models that drive real-time, building-wide orchestration of MHE. We conduct experiments, develop models, and apply machine learning (ML) at scale to optimize throughput, flow, merge, and congestion control, and to improve operational performance across the fulfillment network.
US, WA, Redmond
Amazon Leo is an initiative to launch a constellation of Low Earth Orbit satellites providing low-latency, high-speed broadband connectivity to unserved and underserved communities around the world. As a Communication Systems Research Scientist, this role owns the research and system design of the radio resource management (RRM) and radio access layers of Amazon Leo’s direct-to-device (D2D) system, delivering 3GPP-compliant service to unmodified commercial handsets. The Role: Be part of the team defining the communication system and architecture of Amazon’s direct-to-device wireless network and analyzing its system level performance: beam and cell capacity, spectral efficiency, coverage, latency and service availability. This is a unique opportunity to innovate with few legacy constraints, in a segment where the standard itself is still being written. This role leads the research and system design of radio resource management (RRM) for a 3GPP Non-Terrestrial Network (NTN), where D2D upends terrestrial assumptions: a power-limited handset with a near-isotropic antenna, very large cells, hopping beams, large time-varying delay and Doppler, and scarce shared spectrum. RRM in time, frequency and spatial domains is the focus, but the role reasons across the stack, from L1/L2 up through RRC, NAS and 5GC interworking. Agentic AI is expected to be a standard part of the work for development, optimization, tests and debugging, with the scientist accountable for the algorithms, models and conclusions. Export Control Requirement: Due to applicable export control laws and regulations, candidates must be a U.S. citizen or national, U.S. permanent resident (i.e., current Green Card holder), or lawfully admitted into the U.S. as a refugee or granted asylum. Key job responsibilities • Research, design and specify RRM algorithms for Amazon Leo’s 3GPP-based D2D system: MAC scheduling, link adaptation, power control, HARQ strategy, DRX, admission and congestion control, and load balancing, mapping 5QI and QoS flow requirements to scheduler behavior across voice, messaging, emergency and data services. • Treat beam management as part of joint resource optimization, not a standalone process, optimizing it with band assignment, packet scheduling and user pairing in multi-user MIMO (MU-MIMO). • Define the RRM framework for NTN conditions: earth-fixed and earth-moving cells, large time-varying propagation delay, ephemeris-assisted timing and Doppler pre-compensation, extended timing advance, selective HARQ feedback disabling, feeder link and satellite handovers, and interference and spectrum sharing across beams, satellites and terrestrial networks using the same MNO spectrum. • Design mobility and service continuity for a network where the base stations (i.e., satellites) move rather than the user: idle and connected mode mobility, location and time based conditional handover, cell reselection, paging, tracking area design, and NTN-to-terrestrial continuity. • Specify supporting L1/L2 elements with the PHY team: numerology under Doppler, PRACH and initial access, coverage enhancement through repetition, synchronization at low SNR, receiver abstraction, and FEC and BLER modeling for link adaptation. • Keep the radio design coherent with the networking layers: RRC and NAS, RLC and PDCP over long-RTT links, CU/DU split, NTN gateway and 5GC/EPC integration, and transport behavior. • Develop link-level and system-level simulators capturing constellation dynamics, beam patterns, handset characteristics, traffic models and RRM behavior, and use agentic AI across that loop: build and refactor simulation code, scale parameter sweeps, optimize scheduler and link adaptation parameters, explore configuration spaces too large to sweep by hand, maintain regression tests, and triage failures across logs, traces and over-the-air captures. • Translate research into system requirements and implementation-level specifications, and work with modem, payload, ground, RF, ASIC and Testbed teams through integration, field trials and link bring-up, root-causing gaps between simulation, implementation and over-the-air behavior in a fast-paced environment. • Represent Amazon Leo in 3GPP and other standards development organizations, develop and defend contributions on NTN and D2D work items, and contribute patents and publications.
US, WA, Seattle
Join us in shaping the future of Amazon’s Selling Partner business. The Selling Partner Selection Success organization is the growth and development engine for Amazon’s Store. We partner with product, engineering, science, and business teams to help Selling Partners identify promising product opportunities, make informed launch decisions, and grow new selection successfully. We combine comprehensive data, machine learning, experimentation, and seller insights to deliver actionable guidance at scale. We believe every motivated Selling Partner should have access to the tools and resources needed to build a successful and sustainable business on Amazon. We are looking for a Applied Scientist II to to develop science solutions for supporting end-to-end new selection success. Our vision is to connect selection guidance with opportunity/ASIN prioritization across pre and post launch. These solutions help Selling Partners understand unmet customer needs, link various demand signals with supply signals, assess a product’s potential before committing resources, improve product and listing decisions, and reach relevant customers after launch. Maintaining consistency across these stages is essential for earning Selling Partner trust and creating a continuous feedback loop between our guidance and actual customer outcomes. In this role, you will develop models and analytical frameworks that combine customer demand, on/off supplies, product attributes, comparable-selection performance, seller and brand signals, and early customer engagement. You will estimate product potential and uncertainty across different lifecycle stages, identify new products that offer distinctive customer value, and determine where Amazon interventions can improve discovery and conversion. You will work with large-scale behavioral, catalog, seller, and external-selection datasets across multiple marketplaces. The successful candidate will combine strong statistical and machine learning foundations with sound business judgment. You will translate ambiguous business questions into measurable science problems, develop and evaluate scalable solutions, and work with engineering partners to move them into production. You will collaborate with product managers, economists, applied scientists, and partner teams across Search, Pricing, Personalization, Listings, and Seller Experience. You will communicate findings and recommendations to audiences with varying levels of technical expertise and help shape the long-term science strategy for selection success. Key job responsibilities As an Applied Scientist II in the team, you will: - Identify opportunities to improve SP growth and translate those opportunities into science problems via principled GenAI and ML solutions . - Design and execute roadmaps for complex science projects to help SP have a delightful selling experience while creating long term value for our shoppers. - Work with our engineering partners and draw upon your experience to meet latency and other system constraints. - Be responsible for communicating our science innovations to the broader internal & external scientific community.
IN, KA, Bengaluru
Are you passionate about building and leading science teams that solve complex, ambiguous problems at scale? As a Manager III, Applied Science at Amazon, you will lead a team of applied scientists and engineers working on research and modeling initiatives that directly influence business strategy and technology direction. Your work will shape how data-driven insights are translated into impactful solutions, from experimental design and predictive analysis to production-level machine learning models. This is an opportunity to define the scientific roadmap for your team, partner with technical and business leaders, and deliver results that matter to millions of customers. If you are a collaborative, curious leader who thrives at the intersection of science, technology, and business, we want to hear from you. Key job responsibilities - Lead and manage a team of applied scientists and engineers, setting the strategic direction, defining the science roadmap, and ensuring your team consistently delivers high-quality research and production-ready models that drive measurable business impact. - Bridge the gap between science, technology, and business by partnering with stakeholders and leadership to translate complex scientific findings into clear, actionable insights that inform product and business decisions. - Design and oversee the team's approach to model evaluation, feature engineering, and performance optimization, ensuring rigorous standards for accuracy, reproducibility, and scalability across all scientific outputs. - Evaluate and integrate generative AI tools and methods where appropriate, guiding your team in responsible AI practices that augment productivity and solution quality. - Hire, develop, and mentor scientists and engineers, creating growth opportunities and building a team culture grounded in collaboration, innovation, and technical excellence. A day in the life You might start your morning reviewing experiment results with your scientists, then shift to a roadmap discussion with product and engineering partners to align on priorities for the quarter. After lunch, you could be diving into a model performance review, coaching a team member on their career development, or drafting a narrative that communicates your team's latest findings to senior leadership. Your role balances hands-on technical engagement with strategic planning and people leadership. About the team Kindle Direct Publishing (KDP) and Print On Demand (POD) have empowered a new wave of self-motivated creators, tearing down barriers that once blocked writers from reaching readers. Our team builds rich applications and systems that empower anyone to realize their dream of becoming a published author. We strive to provide an experience that is powerful, yet simple to use and accessible to all. We focus on building tools that enable authors to design high quality digital and print books, reaching readers all around the world. This role will help ensure we maintain the trust of both our Authors and Readers by ensuring all books published to Amazon meet our standards. Minerva is a team of experienced scientists with a broad charter and critical mission for the Books business. At Minerva, we build science-based systems for optimizing manufacturing, fulfillment, and quality processes for our Print On Demand (POD) business. We also use science for marketing and content-discovery for indie authors, fraud/abuse, and content risk. Each Minerva scientist owns a large space and works closely with respective senior leaders across business, engineering, and operations for the science area they lead. We have mature areas and green-field opportunities. We have engineering, BIE, and DE support across our areas. POD Science Team in Minerva Science is focused on optimizing manufacturing, fulfillment, and quality processes for our Print On Demand (POD) business. Our team is dedicated to advancing how Amazon uses machine learning, AI and Optimization to solve real-world problems at scale. We value collaboration, intellectual curiosity, and a commitment to building solutions that create meaningful impact for customers. As we continue to grow, we are focused on pushing the boundaries of applied science, investing in new methods and tools, and creating an inclusive environment where every team member can do their best work. Joining us means helping shape the future of science-driven decision-making at Amazon.
IN, KA, Bengaluru
Are you passionate about solving complex problems through machine learning and scientific research? Amazon is looking for a curious and inventive Applied Scientist to join our team and help build technologies that impact millions of customers. In this role, you will apply your expertise in a computer science discipline — such as natural language processing, computer vision, or robotics — to tackle real-world challenges at scale. You will design experiments, develop novel algorithms, and deliver production-ready solutions that directly improve Amazon's products and services. If you thrive on turning ambiguous problems into measurable outcomes and want to work alongside talented scientists and engineers, we want to hear from you. Key job responsibilities - Apply subject matter expertise in at least one computer science discipline to map business goals to scientific problems, define appropriate metrics, and develop solutions that address customer needs. - Design, run, and analyze experiments to identify optimal approaches, leveraging state-of-the-art methodologies and benchmarking results against current research. - Write secure, stable, and well-tested production code using optimal data structures and algorithms, ensuring your solutions are reproducible and maintainable. - Collaborate with senior scientists and cross-functional engineering teams to scope, prioritize, and deliver scientific components that integrate into broader product systems. - Evaluate and refine generative AI tools and outputs where applicable, contributing to internal research reports and peer-reviewed publications aligned with business objectives. A day in the life You will start your morning reviewing experimental results and iterating on model performance with your team. Throughout the day, you will write and review code, discuss scientific approaches with senior scientists, and prototype new ideas informed by the latest research. You will also partner with engineers to move promising solutions into production. Expect a mix of independent research, hands-on implementation, and collaborative problem-solving sessions that keep your work grounded in real customer impact. About the team Kindle Direct Publishing (KDP) and Print On Demand (POD) have empowered a new wave of self-motivated creators, tearing down barriers that once blocked writers from reaching readers. Our team builds rich applications and systems that empower anyone to realize their dream of becoming a published author. We strive to provide an experience that is powerful, yet simple to use and accessible to all. We focus on building tools that enable authors to design high quality digital and print books, reaching readers all around the world. This role will help ensure we maintain the trust of both our Authors and Readers by ensuring all books published to Amazon meet our standards. Minerva is a team of experienced scientists with a broad charter and critical mission for the Books business. At Minerva, we build science-based systems for optimizing manufacturing, fulfillment, and quality processes for our Print On Demand (POD) business. We also use science for marketing and content-discovery for indie authors, fraud/abuse, and content risk. Each Minerva scientist owns a large space and works closely with respective senior leaders across business, engineering, and operations for the science area they lead. We have mature areas and green-field opportunities. We have engineering, BIE, and DE support across our areas. POD Science Team in Minerva Science is focused on optimizing manufacturing, fulfillment, and quality processes for our Print On Demand (POD) business.