← Latest papers
💬 NLP

HALvest-Contrastive: Retrieval-Like Authorship Attribution with Patch-Level Late Interaction

This paper introduces HALvest, a large multilingual corpus of scholarly papers, and a novel Patch-Level Late Interaction (PLI) retrieval framework that significantly improves authorship attribution accuracy by comparing sequences of token patches rather than compressing documents into single vectors, thereby effectively mitigating topical confounds.

Original authors: Francis Kulumba, Wissam Antoun, Guillaume Vimont, Laurent Romary, Florian Cafiero

Published 2026-05-20
📖 5 min read🧠 Deep dive

Original authors: Francis Kulumba, Wissam Antoun, Guillaume Vimont, Laurent Romary, Florian Cafiero

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 trying to figure out if two different books were written by the same person. Usually, this is easy if the books are about totally different things (like one is about cooking and the other about space). But what if both books are about cooking?

If you ask a computer, "Do these two recipes sound like they came from the same chef?" the computer might get tricked. It might say "Yes!" just because both recipes use words like salt, oven, and bake. It's confusing the topic (cooking) with the style (the chef's unique handwriting).

This paper, HALvest-Contrastive, is like a new, super-smart training camp for computers to learn how to spot a writer's true "handwriting" without getting distracted by the topic.

Here is how they did it, broken down into simple parts:

1. The Problem: The "Topic Trap"

In the past, computers trying to identify authors often cheated. If they saw two texts about "AI," they assumed they were written by the same person because they both used the word "algorithm."

  • The Analogy: Imagine trying to recognize your friend's voice at a loud party. If everyone is shouting about "football," you might think two people shouting about football are your friend just because they are talking about the same thing. You need to hear how they say it, not what they say.

2. The Solution: A Special Library (HALvest)

The authors built a massive library called HALvest containing 17 billion words from open-access academic papers.

  • The Trick: They created a special version called HALvest-Contrastive. In this version, they forced the computer to compare two papers written by the same author, but about different topics.
    • Example: Paper A is about "Quantum Physics." Paper B is about "History of Art." Both are written by Dr. Smith.
    • Because the topics are totally different, the computer cannot cheat by looking for shared words. It has to learn Dr. Smith's unique style (how they use commas, sentence length, or transition words) to realize, "Hey, these two very different papers were written by the same person!"

3. The New Way of Comparing: "Late Interaction"

Traditionally, computers would take a whole document, crush it down into a single "summary number" (a vector), and compare those numbers.

  • The Old Way (Single Vector): Imagine taking a whole novel, squishing it into a single drop of ink, and comparing that drop to another drop. You lose all the details.
  • The New Way (Late Interaction): Instead of squishing the book, the computer keeps every single word's "fingerprint" separate. It looks at the first word of Book A and finds the best match in Book B, then the second word, and so on. It sums up all these little matches.
    • The Result: This is like comparing two books page-by-page, word-by-word, rather than just comparing their covers. It worked much better.

4. The "Patch" Discovery: Finding the Sweet Spot

The researchers wondered: "Do we need to compare every single word, or can we group them?"

  • They tried grouping words into little chunks called patches (like grouping words into small phrases).
  • The Finding: Comparing every single word is great, but it's slow and uses a lot of memory. Grouping them into small patches (about 2 to 4 words at a time) gave almost the same accuracy but was much faster.
  • The Magic Formula: They found a simple rule of thumb for how big these patches should be: Take the square root of the total number of words, multiply by 0.18, and that's your patch size.
    • Analogy: It's like packing a suitcase. If you have a small trip (few words), you pack small items individually. If you have a huge trip (many words), you bundle things into boxes. There is a perfect "box size" that saves space without losing anything important.

5. What They Proved

  • Topic Decoupling Works: When they removed the "topic shortcuts," simple word-counting methods (like looking for common keywords) failed miserably. But the smart neural networks kept working, proving they actually learned the style, not just the topic.
  • Style vs. Meaning: They showed that their new system is very good at spotting who wrote it, while standard search engines (which look for meaning) are terrible at it. A search engine might think two papers are similar because they are both about "math," but this system knows they were written by different people because the "math voice" is different.
  • Better than the Old Way: Using this new "patch-level" method improved accuracy significantly compared to the old "squish-it-all-into-one-number" method.

Summary

The paper introduces a new dataset and a new method to teach computers how to recognize a writer's unique style, even when they are writing about completely different subjects. They discovered that looking at small groups of words (patches) rather than single words or whole documents is the "Goldilocks" zone—just right for speed and accuracy.

Important Note: The paper strictly focuses on academic papers and fan-fiction (for testing). It does not claim this technology is ready for spying on people, catching spies, or medical uses. It is purely a tool for understanding how computers can learn to recognize writing styles.

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 →