← Latest papers
🤖 AI

GLARE: A Natural Language Interface for Querying Global Explanations

The paper presents GLARE, an LLM-mediated natural language interface that translates user queries into structured SQL over local explanation data to provide flexible, statistics-augmented global explanations for black-box image classifiers, thereby enhancing the accessibility and usability of human-centered XAI.

Original authors: Bhavan Vasu, Rajesh Mangannavar

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

Original authors: Bhavan Vasu, Rajesh Mangannavar

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 can look at a picture and tell you exactly what it is (like "That's a wolf!" or "That's a bedroom"). But here's the problem: the robot is a "black box." It knows the answer, but it can't explain why it thinks that. It's like a magician who never reveals their tricks.

To fix this, scientists have created "explanations" for these robots. But usually, these explanations are like a massive, messy library containing millions of books, charts, and rules all at once. If you ask a human, "Why does the robot think this is a wolf?", they can't just hand you the whole library. It's too overwhelming.

Enter GLARE.

Think of GLARE as a super-smart librarian who speaks two languages: human and robot.

The Problem: The "Explanation Dump"

Currently, if you want to understand a robot's brain, you have to sift through thousands of logical rules. It's like trying to find a specific needle in a haystack by reading every single piece of hay. The paper argues that humans don't want a static summary of the whole haystack; we want to ask specific questions like, "Do these robots always look at the snow to identify wolves?" or "What features are needed to spot a bed?"

The Solution: The "SQL Translator"

GLARE treats the robot's brain not as a pile of papers, but as a giant, organized database (like a spreadsheet).

  1. You ask a question in plain English: "What percentage of bedroom images have both a bed and a wall?"
  2. The GLARE Librarian (an AI) translates it: Instead of guessing, this librarian is trained to translate your English question into a precise "code" called SQL (a language computers use to query databases).
    • Analogy: Imagine you order a coffee by saying, "I want something hot with milk." The barista (GLARE) translates that into the exact machine code: GET COFFEE WHERE TEMP > 60 AND MILK = TRUE.
  3. The Database answers: The computer runs that code against the robot's "brain data" and gets a precise number.
  4. The Librarian speaks back: It takes that number and turns it back into a friendly sentence for you: "85% of bedroom images contain both a bed and a wall." It even shows you pictures as proof.

How Did They Train the Librarian?

The researchers didn't just hope the AI would get it right. They created a synthetic training camp.

  • They made up 50,000 fake questions and their perfect code answers.
  • They taught the AI to focus only on the "code" part of the answer (using a technique they call "fence masking"). This is like teaching a student to focus only on the math formula, not the specific numbers in the word problem.
  • The Result: Because the AI learned the structure of the questions rather than just memorizing answers, it became very good at handling typos, weird phrasing, or even questions about completely different types of pictures (like switching from "living rooms" to "classrooms") without needing to be retrained.

What Did They Find?

The paper tested this system and found:

  • It's incredibly accurate: When asked questions it was trained on, it got the right answer over 95% of the time.
  • It's tough: If you make a typo (like writing "bedrrom" instead of "bedroom") or use slang, the system still understands you. A simple computer program would have failed, but the AI librarian figured it out.
  • It's a generalist: The system was trained on pictures of scenes (ADE20K dataset) but was tested on pictures of objects (Pascal VOC dataset). Even though the vocabulary was totally different, the system still worked with about 90% accuracy. It learned the logic of asking questions, not just the words.

The Bottom Line

GLARE changes how we talk to AI. Instead of staring at a confusing wall of data, you can have a conversation. You ask, "Why does the robot think that?" and it gives you a clear, statistical answer with visual proof. It turns the complex, opaque "brain" of an AI into a friendly, queryable library that anyone can use.

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 →