TL;DR
LumiXAI is a modular, full-stack framework that unifies feature attribution across multiple machine learning modalities, including text/image classification, autoregressive text generation, and text-to-image diffusion. By providing an interactive GUI with bidirectional exploration alongside a Python SDK, it bridges the gap between non-programmers, developers, and researchers trying to understand model behavior.
What Problem Does This Paper Address?
Feature attribution—assigning importance scores to input features to explain a model's output—is crucial for trust and interpretability. However, the current tooling ecosystem is highly fragmented. Existing tools typically specialize in a single modality (e.g., text only), a single interface (code API vs. GUI), or a fixed set of methods.
Furthermore, many advanced explainability tools are built exclusively for domain experts, requiring deep programming skills. This leaves researchers who need to compare across different model types or non-technical stakeholders stranded, forcing them to stitch together incompatible tools with disparate output formats and deployment requirements.
Methods
LumiXAI introduces a client-server architecture designed to decouple model execution from explanation computation. Deployed via Docker Compose, it consists of three independent services: a FastAPI backend, a Next.js frontend GUI, and MkDocs documentation.
The core framework relies on two abstract plug-in interfaces:
BaseWrapper: Standardizes how different model families load weights, handle device placement (CUDA, MPS, CPU), and run forward passes.BaseAttributor: Defines attribution methods as a modality-agnostic mapping from a wrapped model and input to a standardized output object.
The framework ships with 10 integrated attribution methods (including Integrated Gradients, LIME, SHAP, Grad-CAM, and DAAM) and features a hybrid storage layer (SQLite for metadata, JSON for large attribution payloads) to ensure analyses are reproducible and shareable across machines. For developers, a smart-batching mechanism (run_smart_batch()) optimizes large-scale experiments by grouping jobs to minimize redundant model weight loading.
Datasets
While LumiXAI is a tool rather than a trained model, the authors demonstrated and evaluated its capabilities using several established datasets across different case studies:
- Civil Comments: Used to evaluate text toxicity classification via
unitary/toxic-bert. - MNIST: Used for image classification analysis using a Vision Transformer (ViT).
- BOLD (Bias in Open-Ended Language Generation): Used to analyze potential demographic and identity biases in autoregressive text generation using GPT-2.
Key Insights and Ideas
- Modality-Agnostic Data Contracts: LumiXAI treats the atomic unit of input uniformly as an "input feature"—whether it is a text token, an image patch, or a superpixel. This abstraction allows the backend to orchestrate completely different model families under a single interface.
- Bidirectional Exploration: For generative tasks like text-to-image diffusion, the framework allows users to explore attribution from both directions. Users can click a prompt token to see an image heatmap, or hover over an image pixel to see the exact percentage contribution of every text token.
Key Results
The authors conducted a user study with 12 participants (3 machine learning experts, 9 non-experts) evaluating the system across 8 distinct tasks spanning text classification, image classification, text generation, and text-to-image diffusion.
On a 7-point Likert scale, the system received a positive overall mean usability score of 4.95.
- Ease of switching: Participants highly appreciated the ability to seamlessly switch between models and attribution methods (scoring 5.58).
- Integration: The unified backend approach scored 5.33.
- Expert vs. Non-Expert Gap: Experts rated the system higher on average (mean 5.53) than non-experts (mean 4.76). Qualitative feedback indicated that non-experts would benefit from clearer onboarding and more transparent heatmap color scaling.
Limitations and Future Work
- Model and Task Coverage: The current implementation does not yet support emerging multimodal architectures, such as image-text-to-text vision-language models (VLMs).
- Concurrency Issues: The system was primarily designed for single-user conditions. During user testing, concurrent multi-user load caused backend bugs when loading and unloading different configurations simultaneously.
- Intrinsic Attribution Limits: LumiXAI inherits the baseline sensitivities and tokenization limitations of its underlying attribution methods, meaning outputs should be treated as diagnostic signals rather than absolute causal explanations.
- Performance Benchmarking: Future work is required to isolate and measure the exact computational framework overhead from raw model inference and attribution time.
Summary updated