← Latest papers
🤖 machine learning

From Local Geometry to Global Pseudo Labeling for Robust Positive Unlabeled Learning under Covariate Shift

This paper introduces Spectral PU Neighborhood Annotation (SPUNA), a geometry-aware framework that leverages local manifold structures to enable robust Positive Unlabeled learning for detecting covariate shift, achieving performance comparable to fully supervised methods without requiring labeled data from shifted distributions.

Original authors: Firas Gabetni, Alexandre Rocchi Henry, Nacim Belkhir, Ziyi Liu, Gianni Franchi

Published 2026-06-01
📖 5 min read🧠 Deep dive

Original authors: Firas Gabetni, Alexandre Rocchi Henry, Nacim Belkhir, Ziyi Liu, Gianni Franchi

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 security guard at a museum. Your job is to spot fakes. Usually, you are trained on photos of real paintings (the "Positive" data). Then, you are shown a mixed bag of images: some are real paintings, and some are forgeries, but you aren't told which is which (the "Unlabeled" data). Your goal is to figure out which ones are the forgeries so you can alert the curator.

This is the core problem of Positive-Unlabeled (PU) Learning.

However, there's a twist in this paper. The forgeries aren't just obvious fakes; they are "cousins" of the real paintings. They look very similar, just slightly different in lighting, texture, or style. In technical terms, this is called Covariate Shift. The subject (the painting) is the same, but the way it looks has shifted.

Here is the story of how the authors, Firas Gabetni and colleagues, solved this using their new method, S-PUNA.

The Problem: The "Blind Spot"

Traditional methods try to solve this by looking at the whole pile of images at once to find the differences. But when the forgeries are very similar to the real paintings (a "near shift"), looking at the whole pile is confusing. It's like trying to find a specific shade of blue in a room full of slightly different blues. The computer gets overwhelmed, makes mistakes, and starts labeling real paintings as fakes (or vice versa).

The authors realized that trying to guess the "whole picture" globally was the wrong approach.

The Solution: S-PUNA (The Neighborhood Detective)

Instead of looking at the whole museum at once, the authors propose a method called S-PUNA (Spectral PU Neighborhood Annotation). Think of it as a detective who only trusts their immediate neighbors.

Here is how it works, step-by-step:

  1. Start with the Truth: The detective starts with a small, trusted group of "Real Paintings" (the labeled positives).
  2. The Neighborhood Search: The detective looks at the "Unlabeled" pile and asks, "Who looks most like my trusted group?"
    • If an image is very close to the real paintings, the detective says, "You're probably real too," and adds them to the trusted group.
    • If an image is far away from the real paintings, the detective says, "You look suspicious," and adds them to a "Suspicious" group.
  3. The Snowball Effect: Now that the detective has a bigger trusted group and a bigger suspicious group, they look again. They expand their search, finding more neighbors that fit the pattern. They do this over and over, slowly building up a clear picture of what "Real" looks like and what "Shifted/Suspicious" looks like.
  4. The "Stop" Sign (The Secret Sauce): This is the most critical part. If the detective keeps searching too long, they might accidentally grab a real painting that just happens to look a little weird and label it as a fake. This ruins everything.
    • To prevent this, S-PUNA uses a Spectral Entropy Stop Sign.
    • The Analogy: Imagine the "Suspicious" group is a crowd of people. At first, they are all wearing different outfits (high variety/entropy). As the detective correctly identifies the forgeries, the crowd becomes more uniform (they all look like the specific type of forgery).
    • However, if the detective starts making mistakes and grabs real paintings, the crowd suddenly becomes chaotic again (low entropy, because the "suspicious" group is now a messy mix of fakes and real art).
    • The algorithm watches this "chaos meter." The moment the crowd starts getting messy again, the algorithm hits the STOP button. This ensures they never accidentally label a real painting as a fake.

The Results: Beating the Experts

The authors tested this on famous image datasets (like ImageNet, which is a massive collection of photos). They compared S-PUNA against:

  • Old PU methods: Which got confused by the subtle shifts.
  • Fully Supervised methods: These are the "Gold Standard" where the computer is shown both real and fake examples with labels. Usually, you need this much data to get good results.

The Surprise: S-PUNA, which only had access to the "Real" examples and the mixed bag (weak supervision), performed just as well as, and sometimes even better than, the fully supervised methods.

  • Near Shifts (Subtle changes): S-PUNA was a champion, finding the subtle differences that other methods missed.
  • Far Shifts (Obvious changes): It was also excellent, matching the performance of the experts.

Why This Matters

The paper argues that we don't always need to hire a team of experts to label every single fake image to build a robust system. By using local geometry (looking at neighbors) and a smart stop mechanism (the entropy check), we can teach computers to detect subtle changes in data with very little help.

In short: S-PUNA is a smart, cautious detective that builds its knowledge one neighbor at a time, knowing exactly when to stop so it doesn't make a mistake.

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 →