Better-performing “25519” elliptic-curve cryptography

Automated reasoning and optimizations specific to CPU microarchitectures improve both performance and assurance of correct implementation.

Cryptographic algorithms are essential to online security, and at Amazon Web Services (AWS), we implement cryptographic algorithms in our open-source cryptographic library, AWS LibCrypto (AWS-LC), based on code from Google’s BoringSSL project. AWS-LC offers AWS customers implementations of cryptographic algorithms that are secure and optimized for AWS hardware.

Two cryptographic algorithms that have become increasingly popular are x25519 and Ed25519, both based on an elliptic curve known as curve25519. To improve the customer experience when using these algorithms, we recently took a deeper look at their implementations in AWS-LC. Henceforth, we use x/Ed25519 as shorthand for “x25519 and Ed25519”.

Related content
Optimizations for Amazon's Graviton2 chip boost efficiency, and formal verification shortens development time.

In 2023, AWS released multiple assembly-level implementations of x/Ed25519 in AWS-LC. By combining automated reasoning and state-of-the-art optimization techniques, these implementations improved performance over the existing AWS-LC implementations and also increased assurance of their correctness.

In particular, we prove functional correctness using automated reasoning and employ optimizations targeted to specific CPU microarchitectures for the instruction set architectures x86_64 and Arm64. We also do our best to execute the algorithms in constant time, to thwart side-channel attacks that infer secret information from the durations of computations.

In this post, we explore different aspects of our work, including the process for proving correctness via automated reasoning, microarchitecture (μarch) optimization techniques, the special considerations for constant-time code, and the quantification of performance gains.

Elliptic-curve cryptography

Elliptic-curve cryptography is a method for doing public-key cryptography, which uses a pair of keys, one public and one private. One of the best-known public-key cryptographic schemes is RSA, in which the public key is a very large integer, and the corresponding private key is prime factors of the integer. The RSA scheme can be used both to encrypt/decrypt data and also to sign/verify data. (Members of our team recently blogged on Amazon Science about how we used automated reasoning to make the RSA implementation on Amazon’s Graviton2 chips faster and easier to deploy.)

Elliptic curve.png
Example of an elliptic curve.

Elliptic curves offer an alternate way to mathematically relate public and private keys; sometimes, this means we can implement schemes more efficiently. While the mathematical theory of elliptic curves is both broad and deep, the elliptic curves used in cryptography are typically defined by an equation of the form y2 = x3 + ax2 + bx + c, where a, b, and c are constants. You can plot the points that satisfy the equation on a 2-D graph.

An elliptic curve has the property that a line that intersects it at two points intersects it at at most one other point. This property is used to define operations on the curve. For instance, the addition of two points on the curve can be defined not, indeed, as the third point on the curve collinear with the first two but as that third point’s reflection around the axis of symmetry.

Elliptic-curve addition.gif
Addition on an elliptic curve.

Now, if the coordinates of points on the curve are taken modulo some integer, the curve becomes a scatter of points in the plane, but a scatter that still exhibits symmetry, so the addition operation remains well defined. Curve25519 is named after a large prime integer — specifically, 2255 – 19. The set of numbers modulo the curve25519 prime, together with basic arithmetic operations such as multiplication of two numbers modulo the same prime, define the field in which our elliptic-curve operations take place.

Successive execution of elliptic-curve additions is called scalar multiplication, where the scalar is the number of additions. With the elliptic curves used in cryptography, if you know only the result of the scalar multiplication, it is intractable to recover the scalar, if the scalar is sufficiently large. The result of the scalar multiplication becomes the basis of a public key, the original scalar the basis of a private key.

The x25519 and Ed25519 cryptographic algorithms

The x/Ed25519 algorithms have distinct purposes. The x25519 algorithm is a key agreement algorithm, used to securely establish a shared secret between two peers; Ed25519 is a digital-signature algorithm, used to sign and verify data.

The x/Ed25519 algorithms have been adopted in transport layer protocols such as TLS and SSH. In 2023, NIST announced an update to its FIPS185-6 Digital Signature Standard that included the addition of Ed25519. The x25519 algorithm also plays a role in post-quantum safe cryptographic solutions, having been included as the classical algorithm in the TLS 1.3 and SSH hybrid scheme specifications for post-quantum key agreement.

Microarchitecture optimizations

When we write assembly code for a specific CPU architecture, we use its instruction set architecture (ISA). The ISA defines resources such as the available assembly instructions, their semantics, and the CPU registers accessible to the programmer. Importantly, the ISA defines the CPU in abstract terms; it doesn’t specify how the CPU should be realized in hardware.

Related content
Prize honors Amazon senior principal scientist and Penn professor for a protocol that achieves a theoretical limit on information-theoretic secure multiparty computation.

The detailed implementation of the CPU is called the microarchitecture, and every μarch has unique characteristics. For example, while the AWS Graviton 2 CPU and AWS Graviton 3 CPU are both based on the Arm64 ISA, their μarch implementations are different. We hypothesized that if we could take advantage of the μarch differences, we could create x/Ed25519 implementations that were even faster than the existing implementations in AWS-LC. It turns out that this intuition was correct.

Let us look closer at how we took advantage of μarch differences. Different arithmetic operations can be defined on curve25519, and different combinations of those operations are used to construct the x/Ed25519 algorithms. Logically, the necessary arithmetic operations can be considered at three levels:

  1. Field operations: Operations within the field defined by the curve25519 prime 2255 – 19.
  2. Elliptic-curve group operations: Operations that apply to elements of the curve itself, such as the addition of two points, P1 and P2.
  3. Top-level operations: Operations implemented by iterative application of elliptic-curve group operations, such as scalar multiplication.
Levels of operations.png
Examples of operations at different levels. Arrows indicate dependency relationships between levels.

Each level has its own avenues for optimization. We focused our μarch-dependent optimizations on the level-one operations, while for levels two and three our implementations employ known state-of-the-art techniques and are largely the same for different μarchs. Below, we give a summary of the different μarch-dependent choices we made in our implementations of x/Ed25519.

  • For modern x86_64 μarchs, we use the instructions MULX, ADCX, and ADOX, which are variations of the standard assembly instructions MUL (multiply) and ADC (add with carry) found in the instruction set extensions commonly called BMI and ADX. These instructions are special because, when used in combination, they can maintain two carry chains in parallel, which has been observed to boost performance up to 30%. For older x86_64 μarchs that don’t support the instruction set extensions, we use more traditional single-carry chains.
  • For Arm64 μarchs, such as AWS Graviton 3 with improved integer multipliers, we use relatively straightforward schoolbook multiplication, which turns out to give good performance. AWS Graviton 2 has smaller multipliers. For this Arm64 μarch, we use subtractive forms of Karatsuba multiplication, which breaks down multiplications recursively. The reason is that, on these μarchs, 64x64-bit multiplication producing a 128-bit result has substantially lower throughput relative to other operations, making the number size at which Karatsuba optimization becomes worthwhile much smaller.

We also optimized level-one operations that are the same for all μarchs. One example concerns the use of the binary greatest-common-divisor (GCD) algorithm to compute modular inverses. We use the “divstep” form of binary GCD, which lends itself to efficient implementation, but it also complicates the second goal we had: formally proving correctness.

Related content
Both secure multiparty computation and differential privacy protect the privacy of data used in computation, but each has advantages in different contexts.

Binary GCD is an iterative algorithm with two arguments, whose initial values are the numbers whose greatest common divisor we seek. The arguments are successively reduced in a well-defined way, until the value of one of them reaches zero. With two n-bit numbers, the standard implementation of the algorithm removes at least one bit total per iteration, so 2n iterations suffice.

With divstep, however, determining the number of iterations needed to get down to the base case seems analytically difficult. The most tractable proof of the bound uses an elaborate inductive argument based on an intricate “stable hull” provably overapproximating the region in two-dimensional space containing the points corresponding to the argument values. Daniel Bernstein, one of the inventors of x25519 and Ed25519, proved the formal correctness of the bound using HOL Light, a proof assistant that one of us (John) created. (For more on HOL Light, see, again, our earlier RSA post.)

Performance results

In this section, we will highlight improvements in performance. For the sake of simplicity, we focus on only three μarchs: AWS Graviton 3, AWS Graviton 2, and Intel Ice Lake. To gather performance data, we used EC2 instances with matching CPU μarchs — c6g.4xlarge, c7g.4xlarge, and c6i.4xlarge, respectively; to measure each algorithm, we used the AWS-LC speed tool.

In the graphs below, all units are operations per second (ops/sec). The “before” columns represent the performance of the existing x/Ed25519 implementations in AWS-LC. The “after” columns represent the performance of the new implementations.

Signing new.png
For the Ed25519 signing operation, the number of operations per second, over the three μarchs, is, on average, 108% higher with the new implementations.
Verification.png
For the Ed25519 verification operation, we increased the number of operations per second, over the three μarchs, by an average of 37%.

We observed the biggest improvement for the x25519 algorithm. Note that an x25519 operation in the graph below includes the two major operations needed for an x25519 key exchange agreement: base-point multiplication and variable-point multiplication.

Ops:sec new.png
With x25519, the new implementation increases the number of operations per second, over the three μarchs, by an average of 113%.

On average, over the AWS Graviton 2, AWS Graviton 3, and Intel Ice Lake microarchitectures, we saw an 86% improvement in performance.

Proving correctness

We develop the core parts of the x/Ed25519 implementations in AWS-LC in s2n-bignum, an AWS-owned library of integer arithmetic routines designed for cryptographic applications. The s2n-bignum library is also where we prove the functional correctness of the implementations using HOL Light. HOL Light is an interactive theorem prover for higher-order logic (hence HOL), and it is designed to have a particularly simple (hence light) “correct by construction” approach to proof. This simplicity offers assurance that anything “proved” has really been proved rigorously and is not the artifact of a prover bug.

Related content
New approach to homomorphic encryption speeds up the training of encrypted machine learning models sixfold.

We follow the same principle of simplicity when we write our implementations in assembly. Writing in assembly is more challenging, but it offers a distinct advantage when proving correctness: our proofs become independent of any compiler.

The diagram below shows the process we use to prove x/Ed25519 correct. The process requires two different sets of inputs: first is the algorithm implementation we’re evaluating; second is a proof script that models both the correct mathematical behavior of the algorithm and the behavior of the CPU. The proof is a sequence of functions specific to HOL Light that represent proof strategies and the order in which they should be applied. Writing the proof is not automated and requires developer ingenuity.

From the algorithm implementation and the proof script, HOL Light either determines that the implementation is correct or, if unable to do so, fails. HOL Light views the algorithm implementation as a sequence of machine code bytes. Using the supplied specification of CPU instructions and the developer-written strategies in the proof script, HOL Light reasons about the correctness of the execution.

CI integration.png
CI integration provides assurance that no changes to the algorithm implementation code can be committed to s2n-bignum’s code repository without successfully passing a formal proof of correctness.

This part of the correctness proof is automated, and we even implement it inside s2n-bignum’s continuous-integration (CI) workflow. The workflow covered in the CI is highlighted by the red dotted line in the diagram below. CI integration provides assurance that no changes to the algorithm implementation code can be committed to s2n-bignum’s code repository without successfully passing a formal proof of correctness.

The CPU instruction specification is one of the most critical ingredients in our correctness proofs. For the proofs to be true in practice, the specification must capture the real-world semantics of each instruction. To improve assurance on this point, we apply randomized testing against the instruction specifications on real hardware, “fuzzing out” inaccuracies.

Constant time

We designed our implementations and optimizations with security as priority number one. Cryptographic code must strive to be free of side channels that could allow an unauthorized user to extract private information. For example, if the execution time of cryptographic code depends on secret values, then it might be possible to infer those values from execution times. Similarly, if CPU cache behavior depends on secret values, an unauthorized user who shares the cache could infer those values.

Our implementations of x/Ed25519 are designed with constant time in mind. They perform exactly the same sequence of basic CPU instructions regardless of the input values, and they avoid any CPU instructions that might have data-dependent timing.

Using x/Ed25519 optimizations in applications

AWS uses AWS-LC extensively to power cryptographic operations in a diverse set of AWS service subsystems. You can take advantage of the x/Ed25519 optimizations presented in this blog by using AWS-LC in your application(s). Visit AWS-LC on Github to learn more about how you can integrate AWS-LC into your application.

To allow easier integration for developers, AWS has created bindings from AWS-LC to multiple programming languages. These bindings expose cryptographic functionality from AWS-LC through well-defined APIs, removing the need to reimplement cryptographic algorithms in higher-level programming languages. At present, AWS has open-sourced bindings for Java and Rust — the Amazon Corretto Cryptographic Provider (ACCP) for Java, and AWS-LC for Rust (aws-lc-rs). Furthermore, we have contributed patches allowing CPython to build against AWS-LC and use it for all cryptography in the Python standard library. Below we highlight some of the open-source projects that are already using AWS-LC to meet their cryptographic needs.

Open-source projects.png
Open-source projects using AWS-LC to meet their cryptographic needs.

We are not done yet. We continue our efforts to improve x/Ed25519 performance as well as pursuing optimizations for other cryptographic algorithms supported by s2n-bignum and AWS-LC. Follow the s2n-bignum and AWS-LC repositories for updates.

Research areas

Related content

US, CA, Sunnyvale
The Frontier AI Assets (FAI) team is looking for a passionate, talented, and inventive Principal Applied Scientist with a strong deep learning and reinforcement learning background to build the training and evaluation assets that advance frontier Generative AI (GenAI) with Large Language Models (LLMs). AI models become more capable largely because of the learning environments, the RL gyms, in which they are trained. FAI builds those gyms and the platform that certifies them, so that model training teams across Amazon can rely on high-quality, graded assets. As a Principal on this team, you will set the technical direction for how these gyms and the tooling around them are built, evaluated, and scaled. Key job responsibilities As a Principal Applied Scientist with FAI, you will: •Set technical direction across data collection, sampling, and evaluation for RL gyms focused on agentic tool use across a range of real-world domains. •Design and lead experiments that produce reliable, efficient signal on what drives model improvement. •Build gym-building tooling and automated quality control that scale with demand. •Advance the science of how gyms are evaluated and validated before they're used in model training. •Act as a hands-on technical leader: produce exemplary, high-quality assets yourself, and audit and support more junior scientists and engineers. •Partner closely with domain experts and cross-functional teams, turning real-world problems into challenging, high-value tasks. •Lead scientific reviews, scrutinize experimental design and verification, probe assumptions, and align teams toward coherent strategies. Contribute to hiring, mentorship, and the development of other scientists. About the team The FAI team has the mission to push the envelope in GenAI with LLMs, in order to provide the best-possible experience for our customers. We build frontier training and evaluation assets, RL gyms and the certification platform behind them, that directly shape how Amazon's models are trained and improved. We value scientific depth, hands-on building, and turning research into measurable impact at scale.
IN, KA, Bengaluru
RBS (Retail Business Services) Tech team works towards enhancing the customer experience (CX) and their trust in product data by providing technologies to find and fix Amazon CX defects at scale. Our platforms help in improving the CX in all phases of customer journey, including selection, discoverability & fulfilment, buying experience and post-buying experience (product quality and customer returns). The team also develops GenAI platforms for automation of Amazon Stores Operations. As a Sciences team in RBS Tech, we focus on foundational ML research and develop scalable state-of-the-art ML solutions to solve the problems covering customer experience (CX) and Selling partner experience (SPX). We work to solve problems related to multi-modal understanding (text and images), task automation through multi-modal LLM Agents, supervised and unsupervised techniques, multi-task learning, multi-label classification, aspect and topic extraction for Customer Anecdote Mining, image and text similarity and retrieval using NLP and Computer Vision for product groupings and identifying duplicate listings in product search results Key job responsibilities As a Senior Research Scientist, you will be responsible to design and deploy scalable GenAI, NLP and Computer Vision solutions that will impact the content visible to millions of customer and solve key customer experience issues. You will develop novel LLM, deep learning and statistical techniques for task automation, text processing, image processing, pattern recognition, and anomaly detection problems. You will define the research and experiments strategy with an iterative execution approach to develop AI/ML models and progressively improve the results over time. You will partner with business and engineering teams to identify and solve large and significantly complex problems that require scientific innovation. You will help the team leverage your expertise, by coaching and mentoring. You will contribute to the professional development of colleagues, improving their technical knowledge and the engineering practices. You will independently as well as guide team to file for patents and/or publish research work where opportunities arise. The RBS org deals with problems that are directly related to the selling partners and end customers and the ML team drives resolution to organization level problems. Therefore, the Senior Research Scientist role will impact the large product strategy, identifies new business opportunities and provides strategic direction which is very exciting.
US, CA, Sunnyvale
Amazon Robotics is seeking an exceptional Applied Scientist to join our Foundation Models and Agentic AI team. This role presents an opportunity to shape the future of robotics through innovative applications of large vision-language-action (VLA) models, reasoning and task planning models, and reinforcement learning. At Amazon Robotics, we leverage advanced robotics, machine learning, and artificial intelligence to solve complex operational challenges at unprecedented scale. Our fleet of robots operates across hundreds of facilities worldwide, working in sophisticated coordination to fulfill our mission of customer excellence. We are pioneering the development of robotics foundation models that: - Enable unprecedented generalization across diverse tasks - Integrate multi-modal learning capabilities (visual, depth, force, tactile, linguistic) - Accelerate policy skill acquisition through imitation learning and reinforcement learning - Enhance robotic perception and environmental understanding - Streamline development processes through reusable capabilities The ideal candidate will contribute to research that bridges the gap between theoretical advancement and practical implementation in robotics. You will be part of a team that's revolutionizing how robots learn, adapt, and interact with their environment. Join us in building the next generation of intelligent robotics systems that will transform the future of automation and human-robot collaboration. Key job responsibilities As an Applied Scientist in the Applied AI and Robotics Foundations Model team, you will: - Model Development and Training: Designing and implementing the model architectures, training and fine tuning the foundation models using various datasets, and optimize the model performance through iterative experiments - Data Management: Process and prepare training data, including data governance, provenance tracking, data quality checks and creating reusable data pipelines. - Experimentation and Validation: Design and execute experiments to test model capabilities on the simulator and on the embodiment, validate performance across different scenarios, create a baseline and iteratively improve model performance. - Code Development: Write clean, maintainable, well commented and documented code, contribute to training infrastructure, create tools for model evaluation and testing, and implement necessary APIs - Research: Stay current with latest developments in foundation models and robotics, assist in literature reviews and research documentation, prepare technical reports and presentations, and contribute to research discussions and brainstorming sessions. - Collaboration: Work closely with senior scientists, engineers, and leaders across multiple teams, participate in knowledge sharing, support integration efforts with robotics hardware teams, and help document best practices and methodologies. A day in the life Amazon offers a full range of benefits that support you and eligible family members, including domestic partners and their children. Benefits can vary by location, the number of regularly scheduled hours you work, length of employment, and job status such as seasonal or temporary employment. The benefits that generally apply to regular, full-time employees include: - Medical, Dental, and Vision Coverage - Maternity and Parental Leave Options - Paid Time Off (PTO) - 401(k) Plan If you are not sure that every qualification on the list above describes you exactly, we'd still love to hear from you! At Amazon, we value people with unique backgrounds, experiences, and skillsets. If you’re passionate about this role and want to make an impact on a global scale, please apply! About the team Are you inspired by invention? Is problem solving through teamwork in your DNA? Do you like the idea of seeing how your work impacts the bigger picture? Answer yes to any of these and you’ll fit right in here at Amazon Robotics. We are a smart, collaborative team of enthusiastic doers that work passionately to apply innovative advances in robotics and software to solve real-world challenges that will transform our customers’ experiences in ways we can’t even image yet. We invent new improvements every day. We are Amazon Robotics and we will give you the tools and support you need to invent with us in ways that are rewarding, fulfilling and fun.
IN, HR, Gurugram
Lead ML teams building large-scale forecasting and optimization systems that power Amazon’s global transportation network and directly impact customer experience and cost. As an Sr Applied Scientist, you will set scientific direction, mentor applied scientists, and partner with engineering and product leaders to deliver production-grade ML solutions at massive scale. Key job responsibilities 1. Lead and grow a high-performing team of Applied Scientists, providing technical guidance, mentorship, and career development. 2. Define and own the scientific vision and roadmap for ML solutions powering large-scale transportation planning and execution. 3. Guide model and system design across a range of techniques, including tree-based models, deep learning (LSTMs, transformers), LLMs, and reinforcement learning. 4. Ensure models are production-ready, scalable, and robust through close partnership with stakeholders. Partner with Product, Operations, and Engineering leaders to enable proactive decision-making and corrective actions. 5. Own end-to-end business metrics, directly influencing customer experience, cost optimization, and network reliability. 6. Help contribute to the broader ML community through publications, conference submissions, and internal knowledge sharing. A day in the life Your day includes reviewing model performance and business metrics, guiding technical design and experimentation, mentoring scientists, and driving roadmap execution. You’ll balance near-term delivery with long-term innovation while ensuring solutions are robust, interpretable, and scalable. Ultimately, your work helps improve delivery reliability, reduce costs, and enhance the customer experience at massive scale.
US, WA, Bellevue
Have you ever ordered a product on Amazon and when that box with the smile arrived you wondered how it got to you so fast? Have you wondered where it came from and how much it cost Amazon to deliver it to you? Have you also wondered what are different ways that the transportation assets can be used to delight the customer even more. If so, the Amazon transportation Services, North America Sort Center Science team is for you . We manage the delivery of tens of millions of products every week to Amazon’s customers, achieving on-time delivery in a cost-effective manner. We are looking for an enthusiastic, customer obsessed Applied Scientist with strong scientific thinking, good software and statistics experience, skills to help manage projects and operations, improve metrics, and develop scalable processes and tools. The primary role of an Applied Scientist within Amazon is to address business challenges through building a compelling case, and using data to influence change across the organization. This individual will be given responsibility on their first day to own those business challenges and the autonomy to think strategically and make data driven decisions. Decisions and tools made in this role will have significant impact to the customer experience, as it will have a major impact on how we operate the middle mile network. Ideal candidates will be a high potential, strategic and analytic graduate with a PhD in (Operations Research, Statistics, Engineering, and Supply Chain) ready for challenging opportunities in the core of our world class operations space. Great candidates have a history of operations research, machine learning , and the ability to use data and research to make changes. This role requires robust skills in research and implementation of scalable products and models . This individual will need to be able to work with a team, but also be comfortable making decisions independently, in what is often times an ambiguous environment. Key job responsibilities Key job responsibilities - Design and develop advanced mathematical optimization and machine learning solutions in the domains of network design and optimization. - Research, prototype, simulate, and experiment with these models using programming languages such as Java and Python; participate in the production level deployment. - Create, enhance, and maintain technical documentation and science designs. - Present to other Scientists, Product, and Software Engineering teams, as well as Stakeholders. - Lead project plans from a scientific perspective by managing product features, technical risks, milestones and launch plans.
US, WA, Seattle
Prime Video is a first-stop entertainment destination offering customers a vast collection of premium programming in one app available across thousands of devices. Prime members can customize their viewing experience and find their favorite movies, series, documentaries, and live sports – including Amazon MGM Studios-produced series and movies; licensed fan favorites; and programming from Prime Video subscriptions such as Apple TV+, HBO Max, Peacock, Crunchyroll and MGM+. All customers, regardless of whether they have a Prime membership or not, can rent or buy titles via the Prime Video Store, and can enjoy even more content for free with ads. Are you interested in shaping the future of entertainment? Prime Video's technology teams are creating best-in-class digital video experience. As a Prime Video team member, you’ll have end-to-end ownership of the product, user experience, design, and technology required to deliver state-of-the-art experiences for our customers. You’ll get to work on projects that are fast-paced, challenging, and varied. You’ll also be able to experiment with new possibilities, take risks, and collaborate with remarkable people. We’ll look for you to bring your diverse perspectives, ideas, and skill-sets to make Prime Video even better for our customers. With global opportunities for talented technologists, you can decide where a career Prime Video Tech takes you! Key job responsibilities The science challenges include: - Heterogeneous customer responses. The same customer responds differently to ads depending on what they’re watching, how engaged they are, and their broader streaming context. We need to understand and predict this variation to make better advertising decisions in real time. - Signal sparsity in streaming. Unlike search or retail advertising, streaming offers no clicks, no conversions, and limited direct feedback. We must develop creative approaches to infer customer preferences, intent, and tolerance from indirect behavioral signals. - Personalization at scale. A one-size-fits-all ad experience leaves value on the table for both customers and the business. We build systems that adapt ad load, placement, and content to individual viewers across 100M+ customers and 100k+ titles. - Small effects, large variance. Ad interventions typically produce 0.1-2% shifts in engagement, effects easily overwhelmed by natural behavioral variance. Measuring, attributing, and optimizing these small signals requires rigorous experimental design and causal methodologies. - Competing objectives. Revenue, customer engagement, long-term retention, and advertiser value are in tension. We develop principled frameworks to navigate these tradeoffs and optimize for sustainable outcomes rather than any single metric. A day in the life - Contribute to the research and development of ML models that personalize advertising decisions for 100M+ customers across 100k+ titles, with production deployment in mind - Develop deep learning architectures (multi-task learning, embedding-based representations) for customer behavior prediction at scale - Design and analyze large-scale A/B experiments, applying causal inference techniques to measure and optimize the impact of ad strategies on customer engagement and monetization - Partner with engineering to ensure models meet production latency and scalability requirements - Collaborate with product managers to frame business problems as tractable ML problems and translate findings into product decisions - Shape the team’s scientific roadmap, identifying high-impact research directions About the team Prime Video Ads is pioneering the use of Generative AI, Deep Learning and Causal ML to empower the next generation of Ads experience in Prime Video. Our vision is to build the world’s most valuable and differentiated ad-supported streaming platform: one where every ad is relevant to the viewer, and every dollar spent by an advertiser delivers measurable results. We are seeking lead applied scientists who have demonstrated experience in advancing state of the art ML algorithms, particularly in Personalization, Relevance, Casual Inference and Gen-AI areas. Your role will be to deliver these innovations as production-ready systems at Amazon scale.
US, WA, Seattle
Pricing is one of the most consequential decisions Amazon makes, and the science behind it needs to be causally rigorous, not just predictive. The P2 Optimization Science team builds the machine learning (ML) systems that power Amazon's pricing decisions at scale: demand lift models, customer lifetime value (LTV) frameworks, and the experimentation infrastructure that validates whether pricing changes actually work. We're looking for a Research Scientist to own causal inference at the intersection of ML and pricing experimentation. Our team has identified a real gap: the methodological bridge between econometric analysis and production-scale ML pipelines needs a practitioner who lives in both worlds. You'll build conditional average treatment effect (CATE) estimation models, design analysis workflows for pricing experiments, and develop reusable causal ML infrastructure that the broader team — including non-ML scientists — can rely on. If you're a scientist who wants to tackle hard causal identification problems in a high-stakes production environment, and who finds satisfaction in making rigorous methods accessible to a broader team, this role is for you. Key job responsibilities - Design, train, evaluate, and deploy end-to-end causal ML pipelines for pricing use cases, including CATE estimation models and heterogeneous treatment effect frameworks. - Serve as the team's causal ML methodology expert — defining identification strategies, model selection criteria, evaluation standards, and the tradeoffs between econometric and ML approaches to causal estimation. - Contribute causal analysis methodology to pricing A/B test post-analysis and build reusable tooling that economists and other non-ML scientists can adopt without requiring deep ML expertise. - Assess emerging causal inference methods (e.g., synthetic difference-in-differences, generalized random forests, causal representation learning) for applicability to Amazon's pricing context, and author internal methodology proposals for adoption. - Partner with senior economists on identification strategy and causal assumptions, collaborate with software and data engineering partners on production deployment, and align with product managers on experiment design requirements. A day in the life Your work directly shapes the prices customers see on hundreds of millions of Amazon products. In a given week you might investigate an optimization anomaly in simulation and trace it to an unmodeled market dynamic, then design an offline evaluation framework to benchmark competing approaches before committing to online testing. You'll collaborate with senior economists on identification strategy for a pricing experiment, present a science proposal for incorporating a new competitiveness signal into an optimization system, or work with the experimentation platform team on randomization design. You'll also have opportunities to write up novel scientific findings for submission to venues such as KDD, NeurIPS, or the ACM Conference on Economics and Computation. About the team The P2 Optimization Science team sits at the center of Amazon's pricing decisions. We build the ML systems, causal inference pipelines, and experimentation infrastructure that determine how prices are set across Amazon's global catalog. Our team brings together research scientists, economists, and engineers who collaborate closely to turn rigorous methodology into production-quality systems with measurable business impact. We value scientific rigor, clear communication across disciplines, and a culture where every team member's work is designed to be extensible and useful beyond their own project. If you want your science to directly influence how hundreds of millions of customers experience Amazon, this is the team to join.
US, CA, San Francisco
Amazon Music is an immersive audio entertainment service that deepens connections between fans, artists, and creators. From personalized music playlists to exclusive podcasts, concert livestreams to artist merch, Amazon Music is innovating at some of the most exciting intersections of music and culture. We offer experiences that serve all listeners with our different tiers of service: Prime members get access to all the music in shuffle mode, and top ad-free podcasts, included with their membership; customers can upgrade to Amazon Music Unlimited for unlimited, on-demand access to 100 million songs, including millions in HD, Ultra HD, and spatial audio; and anyone can listen for free by downloading the Amazon Music app or via Alexa-enabled devices. Join us for the opportunity to influence how Amazon Music engages fans, artists, and creators on a global scale. The Data, Insights, Science and Optimization, Consumer Product and Tech (DISCO CPT) team is looking for a Data Scientist to join a team of Data Scientists, Analytics Leads, Business Intelligence Engineers and Data Engineers who analyze big data, provide analytics and insights as well as build models and algorithms that power product for personalized experiences. The team focuses on accelerating Amazon Music customer growth by empowering Product teams to make sound, customer-centric decisions through data and insights. We build data pipelines, science models, self-service analytics, insights and dashboards, deliver engagement and retention at scale. In this role, you will pioneer and execute advanced analytics and experimentation efforts for the Amazon Music product team. You will work with stakeholders and partners to deliver experimentation insights, author scientific artifacts, build scalable models to advance our analytics and science products. The ideal candidate must be willing to effectively lead science solutions, prioritize across multiple stakeholders and projects and be ready to jump into a fast-paced, dynamic and fun environment. Key job responsibilities 1. Data Scientist I on this role will be a thought partner to Product and Engineering organizations through their expertise in experimentation, statistical modeling and advanced analytics 2. Conceptualize and drive strategic growth areas: app performance, stablity and latency experimentation, Gen AI initiatives, and product excellence. 3. Bridge science, analytics, and engineering to deliver solutions informing strategic decisions on AM technology investments and long-term business performance 4. Drive experimentation, measurement efficiency tooling, and ROI tracking for AM leadership 5. Build and maintain causal models to understand customer sentiment and its impact on key engagement/retention metrics 6. Develop structural and predictive models using data science workflows to deliver measurable customer results A day in the life 1. Lead strategic initiatives across visual and voice experiences, experimentation and customer retention stakeholders 2. Conduct experimentation, build causal models to better understand key drivers for customer retention 3. Evaluate existing metrics and lead deep dives to ensure the right measurement framework is leveraged to measure and enhance user adoption through visual and voice interfaces 4. Partner with product managers to translate business questions into actionable science projects 5. Influence product roadmaps through data-driven insights on customer behavior patterns 6. Identify and resolve customer experience friction points with cross-functional teams Drive adoption of best practices and innovative solutions across the organization
US, NY, New York
The Measurement Science team in the Measurement, Ad Tech, and Data Science (MADS) organization of Amazon Ads serves a centralized role developing solutions for a multitude of performance measurement products. We create solutions which measure the comprehensive impact of their ad spend, including sales impacts both online and offline and across timescales, and provide actionable insights that enable our advertisers to optimize their media portfolios. We leverage a host of scientific technologies to accomplish this mission, including Generative AI, classical ML, Causal Inference, Natural Language Processing, and Computer Vision. This Principal Applied Scientist leads the technical vision and execution for Amazon Advertising's performance measurement. Our measurement products and tools help customers understand the holistic impact of their spend on Amazon Ads and optimize their portfolios. This is a complex, multi-disciplinary scientific space spanning machine learning, causal inference, statistics and experimentation, natural language processing, and generative AI. As a GenAI-first organization, we build foundational and agentic models that power advertiser use cases across Ads, while empowering our Applied Scientists to directly build and ship products. You will guide a team of scientists with expertise across different domains to come together and innovate on some of the hardest problems in advertising, made more challenging by evolving privacy regulations and technological changes. In measuring the comprehensive impact of advertising, key challenges you will tackle include capturing impact: 1) both for identified and increasingly unidentified web traffic in light of an evolving global privacy landscape; 2) for outcomes across retailers, including both within and beyond Amazon; and 3) for both short- and long-term impacts of advertising. Key job responsibilities * Driving the scientific vision of the teams in your organization and you advise and influence its technical leadership on performance measurement models and products. * Identifying, tackling, and proposing innovative solutions to intrinsically hard, previously unsolved problems. You solve problems pragmatically, applying judgment and experience to balance trade-offs between competing interests. * Bringing clarity to complex problems, probing assumptions, illuminating pitfalls, fostering shared understanding, and guiding towards effective solutions. * Serving and being recognized by internal and external peers as a thought leader in modeled measurement in Ads. You will engage routinely with the broader scientific community, e.g. as a reviewer, program committee member, workshop organizer, or chair at peer-reviewed internal/external conferences. * Leading by example, with your papers, analyses, and code setting the standard in your organization for scientific engineering excellence. * Leading science and design reviews, aligning teams across your organization around coherent algorithmic strategies. * Influencing your team’s science and business strategy by driving one or more team roadmaps contributing to the organization’s roadmap and taking responsibility for some organizational goals. You drive multiple new product features from inception to production launch. * Guiding the career development of others, actively mentoring and educating the larger applied science community on trends, technologies, and best practices. You drive the documentation of scientific innovation. You attract bar-raising talent from academia and industry. * Staying abreast of academic and industry trends, knowing the state of the art, and building on top of existing solutions instead of reinventing when possible. About the team We are a team of scientists across Applied, Research, Data Science and Economist disciplines. You will work with colleagues with deep expertise in ML, NLP, CV, Gen AI, and Causal Inference with a diverse range of backgrounds. We partner closely with top-notch engineers, product managers, sales leaders, and other scientists with expertise in the ads industry and on building scalable modeling and software solutions.
US, CA, Sunnyvale
Amazon is seeking exceptional talent to help develop the next generation of advanced robotics systems that will transform automation at Amazon's scale. We're building robotic systems that combine frontier AI, sophisticated control, and advanced mechanical design to create adaptable automation capable of working safely alongside humans in dynamic environments. This is an opportunity to shape the future of robotics and automation at an unprecedented scale, working with world-class teams pushing the boundaries of what's possible in robotic manipulation, locomotion, and human-robot interaction. We are seeking an Applied Scientist to develop tactile- and force-driven manipulation policies for highly dexterous, multi-fingered robotic hands and grippers. In this role you will research and build policy learning algorithms that enable robotic hands to perform grasping and in-hand manipulation in unstructured, real-world environments, using touch and force feedback as first-class signals rather than afterthoughts. Much of this work is grounded in reinforcement learning. To be successful you need to be highly motivated, dive deep, and deliver to the highest standards. You will demonstrate strong working knowledge of modern policy learning methods, with expertise in taking algorithms from simulation onto real hardware. That means being comfortable working against real physical constraints and treating sim-to-real as a core research problem rather than optimizing for benchmark numbers alone. You will work across tactile signal processing, contact-rich manipulation, sim-to-real transfer, and multi-modal sensor fusion to build robust solutions for autonomous grasping, dexterous re-orientation, and fine motor control. You will bring the desire to learn from new challenges, and the problem-solving and communication skills to work within a highly interactive and experienced team. Key job responsibilities - Design and train manipulation policies that leverage tactile and force feedback for dexterous grasping, in-hand manipulation, and contact-rich tasks, using reinforcement learning, imitation learning, or hybrid approaches. - Drive sim-to-real transfer, closing the gap between simulated and physical performance on real robotic hands. - Shape objectives and control strategies with the hardware in mind, accounting for how motors and actuators actually behave: transmission ratios, torque versus power, backdrivability, and thermal limits. - Build simulation-based and on-robot evaluation frameworks, with benchmarks and metrics that make tactile perception and policy performance systematically comparable across iterations. - Own scientific and technical projects within the tactile sensing and manipulation workstreams, driving from research concept through deployment on physical robotic systems — and, at the senior level, set direction across a workstream. - Collaborate with hardware, mechanical design, firmware, and controls teams — and with partner applied science organizations — to translate research advances into deployable robotic capabilities, and to inform sensor and actuator design decisions with policy-level requirements. - Publish at top-tier venues and build collaborations with the external research community. - Contribute to a strong scientific bar on the team through code and design review, and mentor engineers and interns working on real-world manipulation and sensing problems. A day in the life Your morning might start with a standup alongside hardware and controls engineers reviewing overnight sim-to-real training runs on a multi-finger gripper, debugging why a grasp policy that worked in simulation is slipping on a real sensor array. Mid-morning you join the weekly tactile sensing workstream to align on sensor integration milestones and share early results from a contact-state estimator you have been prototyping. After lunch you spend a focused block iterating on a reinforcement learning reward formulation, testing variations in simulation before queuing runs on the cluster. Later you pair with a mechanical engineer to review sensor placement trade-offs on an upcoming gripper revision, then wrap the day by drafting a short experiment write-up and sketching next steps for a conference submission. No two days look exactly the same: one week you may be collecting teleoperated demonstrations on the physical robot to seed an imitation learning pipeline; the next you could be deep in a codebase refactor to support a new tactile modality. Throughout, you balance hands-on research — writing algorithms, running experiments, analyzing data — with cross-team collaboration and mentoring. The common thread is moving from research insight to working capability on real hardware, with a tight feedback loop between simulation and the physical world. About the team Our is developing next-generation manipulation capabilities for highly dexterous multi-fingered grippers and hands. Our work spans tactile sensor development, manipulation policy learning, and the tight integration of sensing hardware with intelligent control software. We are building systems that can feel, adapt, and manipulate with human-level dexterity. You will join a team working at the frontier of tactile sensing and contact-rich manipulation, helping define how robots perceive and interact with objects through touch. Because we build the hands as well as the policies that drive them, you will have a direct line to the sensor, actuator, and mechanism designs your algorithms depend on — and real influence over how they evolve. This is an opportunity to solve hard problems across perception, learning, and physical interaction alongside a team of scientists and engineers building toward real-world deployment.