← Latest papers
📊 statistics

Geometry-Aware Bayesian Quantification via Compositional Data Analysis

This paper introduces a geometry-aware Bayesian quantification method that leverages log-ratio representations and Aitchison geometry to address the limitations of Euclidean kernels in modeling classifier posteriors, thereby improving label shift adaptation and prevalence estimation across diverse data domains.

Original authors: Alejandro Moreo, Pablo González, Juan José del Coz

Published 2026-07-07
📖 4 min read☕ Coffee break read

Original authors: Alejandro Moreo, Pablo González, Juan José del Coz

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 are a detective trying to figure out the makeup of a crowd you can't see directly. You have a "crystal ball" (a machine learning model) that looks at people and guesses their profession. Sometimes the crystal ball is very confident ("This is definitely a doctor!"), and sometimes it's unsure ("Maybe a nurse, maybe a teacher?").

The problem is that the crowd you are looking at now (the test data) might have a different mix of professions than the crowd the crystal ball was trained on. Maybe the training crowd was 50% doctors, but the new crowd is 90% doctors. This is called Label Shift.

Your goal is Quantification: You don't need to guess the job of every single person; you just need to accurately estimate the percentage of doctors, nurses, and teachers in the new crowd.

The Problem: The "Flat Map" Mistake

The paper argues that most current methods for solving this problem are using a "flat map" to navigate a "curved world."

  1. The Curved World (The Simplex): The probabilities your crystal ball gives you (e.g., 80% Doctor, 20% Nurse, 0% Teacher) always add up to 100%. In math, this is called a Simplex. Think of it like a triangular piece of paper. You can't move "off" the paper; if you increase the Doctor percentage, you must decrease the Nurse or Teacher percentage. They are locked together.
  2. The Flat Map (Euclidean Space): Standard methods treat these probabilities like points on a flat grid (like a standard X-Y graph). They use a "Gaussian kernel," which is essentially a bell curve.
  3. The Mistake: If you draw a bell curve on a flat grid near the edge of your triangular paper, half of that curve spills off the paper. In math terms, this assigns probability to impossible things (like having -5% Doctors or 110% Doctors). This "leakage" causes the math to get messy and inaccurate, especially when the crystal ball is very confident (which pushes the data right up against the edges of the triangle).

The Solution: A New Compass and a Safety Net

The authors propose a new way to do this math that respects the shape of the triangle.

1. The New Compass (Compositional Data Analysis):
Instead of using a flat grid, they use a special mathematical transformation (called log-ratio) that turns the triangular paper into a flat surface without tearing it or spilling off the edges. It's like unfolding a map of the Earth so that distances and angles make sense relative to each other. This allows them to draw their "bell curves" (kernels) in a way that stays perfectly inside the triangle.

2. The Safety Net (Shrinkage):
There's a catch. When the crystal ball is too confident (saying 99.9% Doctor), the math on this new map can get wobbly and unstable near the very edges.
To fix this, the authors add a "safety net" called Shrinkage. Imagine pulling every point on the triangle slightly toward the center.

  • If the point is at the very edge (99.9% Doctor), the safety net pulls it back a tiny bit to (95% Doctor).
  • This stops the math from breaking down at the edges.
  • Crucially, they adjust the "zoom level" (bandwidth) of their bell curves so that this pulling doesn't distort the final answer. It's like zooming out just enough so that the pulled-back points still represent the original crowd accurately.

The Result: A Bayesian Crystal Ball

By combining this new "curved-world" map with the "safety net," the authors create a system that can do two things:

  1. Point Estimation: Give you a single best guess for the crowd's makeup (e.g., "It's 85% Doctors").
  2. Bayesian Inference: Give you a range of likely answers with a confidence level (e.g., "It's likely between 80% and 90% Doctors"). This is like the detective saying, "I'm pretty sure, but here is the margin of error."

What the Experiments Show

The team tested this on 42 different datasets (text, images, and spreadsheets).

  • Accuracy: Their method was consistently better than the old "flat map" methods, especially when the data was near the edges (high confidence predictions).
  • Robustness: Without the "safety net" (shrinkage), the new method sometimes failed spectacularly on specific datasets. With the safety net, it became reliable.
  • Uncertainty: Their method provided better confidence intervals than other Bayesian methods, meaning they were better at telling you when they were unsure.

In Summary

The paper says: "Stop trying to measure a triangular, interconnected system with a flat, independent ruler. Use a map designed for triangles, but add a safety net to keep the math from breaking at the edges. This gives you more accurate guesses about crowd demographics and a better sense of how sure you can be about those guesses."

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 →