Streaming Weak Submodularity: Interpreting Neural Networks on the Fly

Ethan R. Elenberg, Alexandros G. Dimakis, Moran Feldman, Amin Karbasi

TL;DR

This paper introduces STREAK, the first streaming algorithm designed to maximize "weakly submodular" functions. By framing neural network interpretability as a subset selection problem, the authors demonstrate that STREAK can generate explanations for complex models like Inception V3 up to 10 times faster than the popular LIME framework while maintaining comparable quality.

What Problem Does This Paper Address?

Deep neural networks are notoriously "black boxes." To trust them, we need to know why they make specific predictions—for example, which pixels in an image led a model to label it a "rose"?

Mathematically, this is a combinatorial optimization problem: find a small subset of features (size $k$) that maximizes an "importance" function. Usually, we assume this function is submodular (meaning it has "diminishing returns"). However, in many real-world tasks like sparse regression or neural network inference, the objective function is only weakly submodular—it behaves mostly like it has diminishing returns, but not perfectly.

Existing greedy algorithms for this problem are "multi-pass," meaning they need to look at the data over and over again. This is incredibly slow when each "look" involves running a massive neural network. The authors sought a streaming algorithm that could solve this in a single pass with minimal memory.

Methods

The authors propose STREAK (Streaming Weak Submodularity), a deterministic algorithm that builds on an earlier technique called SIEVE-STREAMING.

Key technical components include:

  • Thresholding and Binary Search: Since the algorithm doesn't know the maximum possible value of the objective function in advance, it maintains a collection of "candidate" thresholds. As new elements arrive in the stream, STREAK decides on the fly whether to keep them based on whether they provide a sufficient boost to the current score.
  • Weak Submodularity ($\gamma$): They use a parameter $\gamma$ to quantify how close a function is to being submodular. While the theoretical guarantees depend on $\gamma$, the algorithm itself doesn't need to know this value to run.
  • Random vs. Worst-Case Order: A major contribution is the theoretical analysis. The authors prove that no streaming algorithm can provide a good guarantee if the data arrives in a "worst-case" order. However, if the data arrives in a random order, STREAK provides a provable constant-factor approximation.

Datasets

The paper evaluates STREAK on two primary tasks:

  1. Sparse Logistic Regression: Using the Phishing dataset (UCI Machine Learning Repository) with pairwise feature products, resulting in nearly 5,000 features.
  2. Black-Box Interpretability: Using the Inception V3 deep neural network trained on ImageNet. They specifically tested a flower classification task (5 types of flowers) to see if the algorithm could correctly identify the "superpixels" (image segments) that triggered the classification.

Key Insights and Ideas

  • The "Randomness" Requirement: The most surprising theoretical finding is the impossibility result. For weakly submodular functions, a "worst-case" stream (where an adversary picks the order of data) makes a constant approximation ratio impossible for any algorithm with sublinear memory. Randomness is a mathematical necessity here.
  • Efficiency via Sparsity: By treating interpretability as a subset selection problem, the authors show we don't need to perturb the image thousands of times (like LIME does). We just need to find the $k$ most influential segments.
  • Parameter Agnosticism: Even though the math relies on the weak submodularity parameter $\gamma$, STREAK is "parameter-free" in practice. It adapts to the data without the user needing to calculate the difficult-to-compute $\gamma$.

Key Results

  • Speed: In the Inception V3 experiments, STREAK was 10x faster than the LIME framework.
Running time comparison between LIME variants and STREAK
  • Performance: In sparse regression tasks, STREAK achieved log-likelihood and accuracy comparable to "Local Search" (a much slower, non-streaming method) while using significantly fewer model fits.
Performance comparison showing STREAK achieves comparable log-likelihood and accuracy to Local Search
  • Qualitative Quality: When interpreting image classifications, STREAK consistently identified the actual object (e.g., the petals of a flower) as the reason for the label, whereas some variations of LIME failed to isolate the relevant features.

Limitations and Future Work

  • Tightening the Bounds: The authors admit that their theoretical approximation guarantees, while the first of their kind, are somewhat "loose." The algorithm often performs much better in practice than the theory predicts.
  • The Gap at $\gamma = 1$: There is still a gap between the theoretical guarantee for submodular functions ($\gamma = 1$) and the bound provided for weakly submodular functions. Closing this gap is a suggested path for future theoretical research.
  • Memory vs. Passes: The proof relies on the "one-pass" constraint. The authors note that exploring algorithms that allow for a small, fixed number of passes (e.g., 2 or 3) could be an interesting middle ground for even better accuracy.

Summary updated

BibTeX
@inproceedings{elenberg2017streaming,
  author = {Ethan R. Elenberg and Alexandros G. Dimakis and Moran Feldman and Amin Karbasi},
  title = {{Streaming Weak Submodularity: Interpreting Neural Networks on the Fly}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=rkW17K-_WS},
}
Figure