[Paper Review] RoPE-LIME: RoPE-Space Locality + Sparse-K Sampling for Efficient LLM Attribution
RoPE-LIME extends gSMILE to attribute fixed LLM outputs via an open surrogate, using RWMD in RoPE space and Sparse-K sampling for efficient, scalable explanations.
Explaining closed-source Large Language Model (LLM) outputs is challenging because API access prevents gradient-based attribution, while perturbation methods are costly and noisy when they depend on regenerated text. We introduce extbf{Rotary Positional Embedding Linear Local Interpretable Model-agnostic Explanations (RoPE-LIME)}, an open-source extension of gSMILE that decouples reasoning from explanation: given a fixed output from a closed model, a smaller open-source surrogate computes token-level attributions from probability-based objectives (negative log-likelihood and divergence targets) under input perturbations. RoPE-LIME incorporates (i) a locality kernel based on Relaxed Word Mover's Distance computed in extbf{RoPE embedding space} for stable similarity under masking, and (ii) extbf{Sparse-$K$} sampling, an efficient perturbation strategy that improves interaction coverage under limited budgets. Experiments on HotpotQA (sentence features) and a hand-labeled MMLU subset (word features) show that RoPE-LIME produces more informative attributions than leave-one-out sampling and improves over gSMILE while substantially reducing closed-model API calls.
Motivation & Objective
- Motivate interpretable explanations for closed-source LLMs accessed via APIs.
- Decouple reasoning from explanation by using a small open-source surrogate to attribute a fixed model output.
- Improve attribution quality and efficiency with RoPE-based locality and sparse perturbation sampling.
Proposed method
- Adopt Relaxed Word Mover’s Distance (RWMD) computed over RoPE embeddings to measure locality.
- Represent features as token spans and compute a polar L2 distance to preserve RoPE geometry.
- Use Sparse-K sampling to achieve O(log K) perturbations, budgeting N ≈ c log K perturbations.
- Fit a weighted linear surrogate on perturbed inputs to derive token-level attributions from regression coefficients.
- Compute regression targets using probability-based losses (NLL and KL divergence) rather than text overlap.
- Decouple closed-model queries (one original output) from attribution computation performed by a surrogate model.

Experimental results
Research questions
- RQ1Can RoPE-LIME produce more informative attributions than traditional perturbation methods for fixed, API-accessed LLM outputs?
- RQ2Does RWMD in RoPE space provide a stable locality measure for text perturbations under masking?
- RQ3How does Sparse-K sampling perform in terms of attribution quality and efficiency across varying feature counts?
- RQ4How does RoPE-LIME compare to gSMILE in both open- and closed-model settings on benchmarks like HotpotQA and MMLU?
Key findings
- RoPE-LIME achieves higher IoU, F1, and AUROC than gSMILE on a hand-labeled MMLU subset under similarly constrained budgets.
- On HotpotQA, Sparse-K sampling yields strong attribution performance across feature-count buckets and outperforms Leave-One-Out (LOO) perturbations.
- RoPE-LIME requires substantially fewer closed-model API calls by using a surrogate for attribution while the original closed-model output is fixed.
- RWMD over RoPE enables a stable locality notion that aligns with the model’s inductive biases, improving attribution stability.
- Sparse-K sampling provides logarithmic-scaling perturbations, reducing computational cost while maintaining attribution quality.
- Open-source surrogate-based explanations can approach or surpass some closed-model attribution baselines in short-query settings.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.