← Latest papers
⚛️ quantum physics

Benchmarking loss functions for trainable quantum feature maps

This paper systematically benchmarks Log-Likelihood, Distance, and Measurement loss functions for trainable quantum feature maps, demonstrating through extensive numerical experiments that Log-Likelihood Loss offers a superior balance of stable optimization dynamics, linear computational complexity, and predictive performance.

Original authors: Nguyen Dinh Quyen, Vu Tuan Hai, Quoc Chuong Nguyen, Le Bin Ho, Lan Nguyen Tran

Published 2026-07-15
📖 5 min read🧠 Deep dive

Original authors: Nguyen Dinh Quyen, Vu Tuan Hai, Quoc Chuong Nguyen, Le Bin Ho, Lan Nguyen Tran

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 you have a super-smart robot that needs to sort a messy pile of mixed-up toys into different boxes. In the world of quantum computing, this robot is called a Quantum Support Vector Machine (QSVM). To do its job, it first has to translate the "shape" of each toy into a special quantum language using a tool called a Trainable Quantum Feature Map (TQFM). Think of this map as a magical lens that can twist and turn the toys so they fit perfectly into their boxes.

But here's the tricky part: the robot needs a teacher to tell it if it's doing a good job. This teacher is a Loss Function. It's like a scorecard that says, "You're getting closer!" or "You're way off!"

The Problem with the Old Teachers

In the past, scientists tried two main types of teachers:

  1. The "Compare-Everybody" Teacher (Distance Loss): This teacher is incredibly thorough. It grabs every single toy in the pile and compares it to every other toy to see how far apart they are. It's like asking a student to compare every single apple in a basket to every other apple to find the best ones.

    • The Catch: This takes forever. If you double the number of toys, the time it takes doesn't just double; it quadruples. The paper shows that for a dataset of 30 samples, this method took over 4,500 seconds (more than an hour!) just to train, compared to about 125 seconds for the others. It's too slow for big piles.
  2. The "Point-and-Shoot" Teacher (Measurement Loss): This teacher is much faster. Instead of comparing everyone to everyone, it just points at a specific target box for each toy and says, "Get in there!" It checks if the toy is close to that target.

    • The Catch: This teacher is fast (linear scaling, meaning if you double the toys, the time just doubles), but it's a bit clumsy. The paper found that this teacher often gets confused. Imagine two groups of toys trying to run to their targets, but they have to cross paths in a narrow hallway. They bump into each other, get tangled, and the robot's performance crashes. The researchers call this the "Trajectory Crossing Problem." In their simulations, this teacher was so unstable that on one dataset, the accuracy swung wildly between 87% and 97% depending on how the robot started its day.

The New Hero: The Log-Likelihood Loss

The authors of this paper introduced a new teacher called the Log-Likelihood Loss (LLL).

Think of this teacher as a wise coach who understands that when a student makes a really bad mistake, they need a bigger nudge to fix it.

  • The old "Point-and-Shoot" teacher gave the same gentle tap whether the robot was slightly off or completely lost.
  • The new Log-Likelihood teacher says, "If you're way off, I'm going to give you a much stronger signal to fix it immediately."

What happened?
In their experiments, this new teacher kept the speed of the fast teacher but fixed the clumsiness.

  • Stability: On the same dataset where the old teacher was shaky, the new teacher stayed steady. The accuracy didn't swing wildly; it stayed consistent around 92% to 97% with much smaller wiggles.
  • Speed: It stayed fast, taking about 125 seconds for 30 samples, just like the old fast teacher.
  • Performance: While the super-slow "Compare-Everybody" teacher still got the absolute highest scores in some cases (like 99% on one dataset), the new teacher was right there in the mix, often beating the old fast teacher and coming very close to the slow one.

The "What If" Scenarios

The researchers didn't just guess; they ran the robot through thousands of simulations to be sure.

  • Noise: They tested what happens if the robot's brain gets a little fuzzy (simulating real-world quantum noise). On a simple toy pile, the new teacher didn't budge. On a harder pile, the accuracy dropped a bit (from 94% to 85%), but it still worked.
  • Depth: They tried making the robot's brain deeper (adding more layers of logic). They found that while a deeper brain helped fix the "bumping" problem, it didn't always make the robot smarter at the end. Sometimes, a brain that's too deep just memorizes the training toys instead of learning how to sort new ones.

The Bottom Line

The paper suggests that if you want to build a quantum robot that sorts data quickly and doesn't crash when things get messy, you shouldn't use the slow "compare-everything" method, and you should be careful with the old "point-and-shoot" method because it's prone to getting tangled.

Instead, the Log-Likelihood Loss offers a sweet spot. It keeps the speed you need for big data but adds a "stronger signal" mechanism that stops the robot from getting confused during training. It's not a magic cure-all that solves every problem instantly, but in these simulations, it proved to be a much more reliable coach for training quantum feature maps.

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 →