← Latest papers
💬 NLP

Re-Ranking Through an Attribution Lens for Citation Quality in Legal QA

This paper proposes a lightweight cross-encoder re-ranker trained on perturbation-based attribution scores to overcome the limitations of semantic similarity in legal retrieval, significantly improving citation faithfulness and demonstrating a shared, model-agnostic relevance signal across different language models.

Original authors: Mohamed Hesham Elganayni, Selim Saleh

Published 2026-06-03
📖 4 min read☕ Coffee break read

Original authors: Mohamed Hesham Elganayni, Selim Saleh

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 lawyer trying to answer a complex legal question. You have a massive library of documents (the "retriever") and a brilliant but sometimes hallucinating legal assistant (the "AI language model").

The Problem: The Wrong Book on the Shelf
Usually, when you ask the AI a question, the library system grabs the top 10 books that look most similar to your question based on keywords. It hands these to the AI, expecting the AI to read them and cite the right pages.

The paper argues that this system is broken. On a specific legal dataset (European Court of Human Rights cases), the library system is actually worse than random chance at finding the exact paragraphs the AI needs to cite.

  • The Analogy: Imagine you ask for a recipe for "chocolate cake." The library hands you a book about "chocolate" and "cake" separately, but the actual recipe is hidden in a book about "baking science" that the library ignored because the title didn't match perfectly. The AI, trying to be helpful, might just make up a recipe from its own memory or grab a random page from the wrong book, claiming it's the source.

The Old Way: Guessing What the AI Likes
Previously, researchers tried to fix this by training a "re-ranker" (a second AI) to guess which books the first AI would like. But they trained this re-ranker on what the AI said it liked (like "this passage is useful"), which is often a lie. The AI might say, "I used this paragraph," when it actually just made the answer up from its own brain.

The New Solution: Watching the AI's Reaction
The authors came up with a clever new trick. Instead of asking the AI what it likes, they watch how the AI reacts when you take things away.

  • The Analogy: Imagine you are trying to figure out which ingredient is essential for a soup. Instead of asking the chef, "Which ingredient is best?", you secretly remove one ingredient at a time and see if the soup tastes different.
    • If you remove "salt" and the soup tastes bland, you know salt was crucial.
    • If you remove "a random garnish" and the soup tastes the same, that garnish didn't matter.

In the paper, they use a tool called C-LIME to do this. They take the 10 documents the library found, remove them one by one, and see how much the AI's answer changes.

  • If the answer changes a lot, that document was critical (High Attribution Score).
  • If the answer stays the same, that document was useless (Low Attribution Score).

The Magic Step: Teaching the Re-Ranker
They then train a lightweight "re-ranker" AI to predict these "reaction scores." They teach it: "Don't just look for similar words; look for the paragraphs that, if removed, would break the AI's answer."

Once trained, this new re-ranker acts like a smart librarian. It takes the initial list of 50 documents, ignores the ones that are just keyword matches, and promotes the ones that actually change the AI's mind to the top of the list.

The Results: Better Citations, Less Guessing
When they tested this on the legal benchmark:

  1. More Faithful Citations: The AI started citing the right paragraphs much more often. It stopped making up sources.
  2. Better Alignment: The answers matched what human legal experts would have cited.
  3. The "Noise" Filter: Interestingly, they trained two different re-rankers (one for one AI model, one for another). Even though the two AI models were different, the two re-rankers learned to agree with each other very strongly. This suggests the re-ranker learned a "universal truth" about what makes a document useful, filtering out the specific quirks (noise) of each individual AI model.

In Summary
The paper shows that instead of trusting a library system that just matches keywords, or trusting an AI that lies about what it read, we should train a smart filter that watches what actually changes the AI's output. By doing this, we can force the AI to rely on the right evidence, making legal answers much more trustworthy and accurate.

Note: The paper specifically tested this on the European Court of Human Rights dataset and found that standard similarity search performed worse than random selection at finding the "gold" citations. The solution was a lightweight re-ranker trained on these "reaction" scores.

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 →