← Latest papers
🤖 machine learning

Accelerating PayPal's Commerce Agent with Speculative Decoding: An Empirical Study on EAGLE3 with Fine-Tuned Nemotron Models

This empirical study demonstrates that implementing EAGLE3 speculative decoding with a fine-tuned Nemotron model on PayPal's Commerce Agent achieves significant throughput and latency improvements while maintaining output quality, ultimately enabling a 50% reduction in GPU costs compared to standard NVIDIA NIM deployments.

Original authors: Ally Qin, Jian Wan, Sarat Mudunuri, Srinivasan Manoharan

Published 2026-04-23
📖 5 min read🧠 Deep dive

Original authors: Ally Qin, Jian Wan, Sarat Mudunuri, Srinivasan Manoharan

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine PayPal's "Commerce Agent" as a highly skilled, super-fast personal shopper. Its job is to listen to what you type (like "I need a red dress for a wedding under $50") and instantly turn that into a precise list of products to show you.

In the past, this shopper was already very fast because the team taught it specifically about shopping (fine-tuning). But they wanted to make it even faster and cheaper to run, without making it dumber.

This paper is about a clever trick they used called Speculative Decoding, specifically using a method called EAGLE3. Here is how it works, explained with simple analogies.

The Problem: The "One-Step-at-a-Time" Bottleneck

Normally, when an AI writes a sentence, it's like a very careful writer who writes one word at a time.

  1. It thinks of the first word.
  2. It writes it.
  3. It thinks of the second word.
  4. It writes it.
  5. And so on...

This is slow because the computer has to stop and think for every single word. In the world of AI, this is called "autoregressive generation." It's like a chef who tastes the soup, adds a pinch of salt, tastes it again, adds another pinch, tastes it again... instead of just guessing the right amount and adding it all at once.

The Solution: The "Draftsman" and the "Editor"

The team introduced a Speculative Decoding system. Think of it as a two-person team:

  1. The Draftsman (EAGLE3): This is a tiny, super-fast, "lightweight" AI. It's not as smart as the main AI, but it's incredibly quick. Its job is to guess the next few words in the sentence all at once.
  2. The Editor (The Main AI): This is the big, smart, expensive AI. It doesn't write the words itself. Instead, it looks at the Draftsman's guesses and says, "Yes, that's right!" or "No, that's wrong."

How it speeds things up:

  • Old Way: The Editor writes 1 word, stops, thinks, writes 1 word, stops. (10 words = 10 stops).
  • New Way: The Draftsman guesses 3 words instantly. The Editor checks all 3 in one single "glance." If the Editor agrees with all 3, they are all accepted at once.
  • Result: The team gets 3 words for the cost of checking 1. It's like the chef guessing the whole recipe and just checking the final taste, rather than tasting after every pinch of salt.

The Experiment: Testing the Team

The researchers tested this on PayPal's actual shopping system. They set up a race between:

  • Team A (The Baseline): The standard, powerful AI running on two massive super-computer chips (H100 GPUs).
  • Team B (The Speculative Team): The same powerful AI, but with the "Draftsman" helper, running on the same two chips.

They tested this under different conditions:

  • Crowdedness: What happens when 1 person asks a question vs. 32 people asking at once?
  • Creativity: What if the AI needs to be very strict (Temperature 0) or a little creative (Temperature 0.5)?
  • Guessing Length: What if the Draftsman guesses 3 words at a time (γ=3) vs. 5 words (γ=5)?

The Big Wins (The Results)

1. The "Sweet Spot" is 3 Words
When the Draftsman guessed 3 words at a time, it was a home run.

  • Speed: The system became 22% to 49% faster.
  • Reliability: The Draftsman was right about 35.5% of the time. This is surprisingly stable! Whether the system was busy or quiet, the Draftsman kept hitting that same success rate.
  • Why not 5? When they tried guessing 5 words, the Draftsman got confused more often (only right 25% of the time). It spent too much time guessing wrong words that the Editor had to reject. It was like a draftsman writing a whole paragraph that was mostly nonsense; the Editor had to waste time crossing it all out.

2. Quality Didn't Drop
A major fear with AI is that "fast" means "dumb." They used another AI to act as a judge to compare the old slow answers with the new fast answers.

  • Verdict: The answers were identical in quality. The fast method didn't make any mistakes; it just got to the answer faster.

3. The "One Chip" Miracle
This is the most exciting part for saving money.

  • The "Standard Team" needed two super-chips to handle the load.
  • The "Speculative Team" could handle the same amount of work using only one super-chip.
  • Analogy: It's like a delivery company that usually needs two trucks to deliver packages on time. By using a smarter routing system (Speculative Decoding), they realized they could do the exact same job with just one truck, saving 50% on fuel and driver costs.

Why Did This Work So Well?

You might wonder, "Why didn't the Draftsman get right 80% of the time like in other studies?"

  • Strict Rules: PayPal's AI has to output answers in a very strict format (like a JSON code block with specific brackets and commas). It's harder to guess the next word when you have to follow strict grammar rules compared to just writing a casual story.
  • Specialized Training: The main AI was trained specifically for shopping. The Draftsman wasn't trained on shopping data, so it was a bit of an outsider.
  • But it still worked! Even with a lower success rate (35%), the fact that the Draftsman is so cheap and fast meant that even a few correct guesses saved a massive amount of time.

The Bottom Line

PayPal figured out a way to make their shopping assistant significantly faster and cheaper to run without changing the "brain" of the AI.

By adding a "lightning-fast guesser" (EAGLE3) that suggests the next few words for the main AI to check, they cut their wait times in half and could potentially cut their hardware costs in half. It's a perfect example of working smarter, not harder, to get things done.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →