Interpreting Black-Box LLMs Using Sentence-Level Energy Landscapes

Maryam Rezaee, Pooriya Safaei, Maryam Asgarinezhad, Fatemeh Seyyedsalehi· August 5, 2026 View original

Key takeaways

  • Interpreting black-box LLMs is crucial for responsible deployment but challenging.
  • A new model-agnostic interpreter uses an Energy-Based Model (EBM) as a surrogate.
  • The EBM captures conceptual consistency and guides a lightweight interpreter network.
  • The interpreter quantifies prompt sentence influence on outputs without further API calls.

Who benefits

AI/ML PlatformsHealthcareBFSILegalTechCustomer Service

Summary

This paper proposes a model-agnostic, post-hoc interpreter for black-box LLMs that uses an Energy-Based Model (EBM) to capture conceptual consistency between prompts and responses. The EBM guides a lightweight interpreter network to quantify the influence of prompt sentences on target outputs without further API calls.

The widespread use of proprietary Large Language Models (LLMs) via closed APIs presents a significant challenge for interpretability, which is crucial for responsible AI deployment. To address this, researchers introduce a novel, model-agnostic, post-hoc attribution interpreter that operates at the sentence level. Their method involves training an Energy-Based Model (EBM) as a surrogate to effectively model the LLM's internal conceptual consistency between input prompts and generated responses. This energy landscape then serves to guide the training of a lightweight interpreter network. A key innovation is that once trained, this interpreter functions independently, quantifying the influence of specific prompt sentences on a user-defined target output without needing additional API queries to the original LLM. By globally training a local interpreter across a diverse range of inputs, the framework aims to capture broader generation patterns and mitigate biases that might arise from instance-specific interpretations. Experiments confirm that the EBM accurately simulates the target LLM, enabling the interpreter to effectively pinpoint the most influential prompt sentences for particular outputs.

Why it matters

For professionals deploying or managing black-box LLMs, this interpretability framework offers a crucial tool for understanding model behavior, debugging issues, ensuring compliance, and building trust, especially in sensitive applications.

How to implement this in your domain

  1. 1Explore integrating post-hoc interpretability tools for black-box LLMs in production.
  2. 2Investigate the use of surrogate models like EBMs to understand complex AI system behavior.
  3. 3Develop internal guidelines for LLM interpretability, especially for proprietary models.
  4. 4Apply sentence-level attribution to debug unexpected LLM outputs or biases.

Original post by Maryam Rezaee, Pooriya Safaei, Maryam Asgarinezhad, Fatemeh Seyyedsalehi

"arXiv:2608.02879v1 Announce Type: new Abstract: The widespread adoption of proprietary Large Language Models (LLMs) accessed strictly through closed APIs has created a critical challenge for responsible deployment: a fundamental lack of interpretability. To address this, we propo…"

View on X

Originally posted by Maryam Rezaee, Pooriya Safaei, Maryam Asgarinezhad, Fatemeh Seyyedsalehi on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses