EXS: Explainable Search Using Local Model Agnostic Interpretability

Jaspreet Singh, Avishek Anand

TL;DR

Neural ranking models are powerful but operate as "black boxes," making it difficult to understand why specific search results appear. EXS (EXplainable Search) bridges this gap by adapting the LIME interpretability framework to the world of information retrieval, allowing users to visualize which words drive a document's relevance or define a model's understanding of a query.

What Problem Does This Paper Address?

In recent years, deep learning has revolutionized information retrieval (IR), with neural rankers significantly outperforming traditional keyword-matching algorithms. However, these models are notoriously opaque. For a researcher, this makes debugging difficult; for an end-user, it makes the system hard to trust; and for a regulator, it makes auditing for bias nearly impossible.

Standard IR metrics like Precision or NDCG tell you how well a model performs, but not why. Ranking presents unique challenges for interpretability compared to standard classification:

  1. Relative Importance: We don't just care why a document is "relevant"; we care why it is ranked higher than another.
  2. Query Intent: Retrieval models must encode a specific "intent" for every query, which dictates the entire output list.
  3. Pointwise vs. Listwise: Most neural rankers output a raw score for a query-document pair, which doesn't naturally translate into the probability distributions that existing explanation tools require.

Methods

The authors introduce EXS, a system built on a modified version of LIME (Local Model-Agnostic Explanations). LIME typically works by "perturbing" an input (e.g., removing words from a document) and seeing how a black-box model's output changes. It then trains a simple, interpretable linear model to approximate the complex model's behavior locally.

To make LIME work for search, the authors had to turn ranking scores into something LIME understands: a probability of relevance. They proposed three methods to do this:

  • Top-k Binary: A document is "relevant" if its score is higher than the $k$-th document in the original list.
  • Score-based: Relevance is calculated based on the normalized difference between a document's score and the top-ranked document's score.
  • Rank-based: Relevance is determined by the document's position in the top-$k$ list.

The system then visualizes these explanations using bar charts where green bars represent words that increase relevance and red bars represent words that decrease it.

The EXS User Interface showing search results and a word-level explanation for the top result.

Datasets

The authors evaluated EXS using standard TREC (Text REtrieval Conference) news collections, including:

  • AP (Associated Press)
  • LATIMES
  • Robust04
  • Financial Times

They used these datasets to train and test neural ranking models like DRMM (Deep Relevance Matching Model) and DESM (Discriminative Entity-Sparse Model) using 300-dimensional GloVe word embeddings.

Key Insights and Ideas

  • Explaining Intent: By aggregating word importance across the top-$k$ results, EXS can visualize what the model thinks the query is about. For a query like "Rail Strikes," the model might correctly focus on "transport" and "union," but it might also reveal biases toward specific names or generic terms.
  • Pairwise Comparisons: One of the most useful features is the ability to compare two documents. If Document A is ranked #1 and Document B is ranked #2, EXS can highlight the "difference makers"—the specific words present in A but not B that convinced the model to rank A higher.
  • Actionable Debugging: The explanations can reveal "artifacts" of training. For instance, if a model ranks a document lower because of a specific journalist's name (a "red" bar), a developer knows the model has overfit to the training data's metadata rather than the content.
An intent explanation for the query 'Rail Strikes', showing the words the model considers most indicative of the query's core concept.

Key Results

The paper provides qualitative "anecdotal" evidence of EXS in action with the DRMM model.

  • Intent Capture: For the query "Rail Strikes," EXS showed that DRMM successfully captured the intent by highlighting topical words like "transport," "union," and "walkouts" as strong positive indicators.
  • Noise Identification: It also revealed that the model was distracted by generic terms like "also" and "for," which were marked as indicators for the "irrelevant" class.
  • Contrastive Analysis: When comparing two similar documents about strikes, EXS identified that the words "railway" and "union" were the primary reasons one document was favored over the other.
A contrastive explanation comparing two documents to show why one was ranked higher than the other.

Limitations and Future Work

While EXS is a significant step forward, the authors note several areas for improvement:

  • Model Scope: The current iteration focuses primarily on "pointwise" neural rankers (models that score one document at a time). Future work is needed to adapt these techniques for more complex listwise or pairwise models.
  • Diversity and Multimodality: The system currently handles text-based search. Expanding this to explain diversity-based rankings (which try to avoid redundant results) or multimodal search (images/video) remains a challenge.
  • User Impact: The authors suggest investigating how these explanations actually change user behavior, especially in high-stakes domains like medical or legal search where understanding the "why" is critical for decision-making.

Summary updated

BibTeX
@inproceedings{singh2019exs,
  author = {Jaspreet Singh and Avishek Anand},
  title = {{EXS: Explainable Search Using Local Model Agnostic Interpretability}},
  booktitle = {WSDM},
  year = {2019},
  doi = {10.1145/3289600.3290620},
}
Figure