Manuscript Offprint

arXiv:2608.24524

LumiXAI: A Modular Full-Stack Framework for Feature Attribution

Alfio Ferrara, Lorenzo Gatta, Sergio Picascia, Elisabetta Rocchetti

Abstract

Feature attribution is a central tool of model interpretability, yet the software through which it is applied remains fragmented: individual tools specialize along narrow axes, such as a single modality, a code API or a GUI, or a fixed rather than extensible method set, and rarely combine these strengths. Moreover, many explainability tools are designed primarily for domain experts, requiring programming skills or familiarity with attribution methods that can make them difficult for non-expert users to access. In this article, we present LumiXAI, a modular full-stack framework that consolidates attribution analysis into a single system. It couples classification and generative attribution with an interactive GUI supporting bidirectional exploration, a plug-in architecture for registering new models and methods, and three access tiers serving non-programmers, developers, and extenders from one backend. Its contribution is a system that operationalises established attribution methods under one interface, one interaction model, and one persistence layer, with containerised services and persistent results making analyses reproducible across machines.

1 Introduction

As machine learning models are increasingly deployed in consequential settings, understanding why a model produces a given output has become as important as the output itself. Feature attribution addresses this by assigning importance scores to input elements based on their contribution to a prediction or generation. As attribution has grown into a broad methodological family spanning gradient-based, perturbation-based, and attention-based techniques, a practical question arises: how can practitioners navigate, explore, and systematically evaluate these methods?

The tooling through which attribution is applied has developed unevenly across the field: individual tools tend to specialize along a narrow set of axes,

Hover over a pixel to see how each input token contributed to it.

Figure

Click a prompt token to see which parts of the image it has influenced the most.

Figure 1: Bidirectional exploration of text-to-image attribution in LumiXAI. Top (image→token): hovering a pixel reads that point from every prompt token's attention matrix and recolors the prompt cards. Bottom (token→image): clicking a prompt token overlays its attribution heatmap on the generated image.

such as scope, kind of interaction, or extensible method set, and rarely combine these strengths altogether. A researcher who needs attribution across several model types and interaction styles must therefore assemble and reconcile multiple tools with incompatible interfaces, output formats, and deployment assumptions, an integration burden that impedes precisely the reproducible, exploratory analysis that attribution is meant to support.

This paper presents LumiXAI 1^{1}, a modular, full-stack framework for feature-attribution analysis across text and image classification, autoregressive text generation, and text-to-image diffusion. LumiXAI is designed to make attribution analyses inspectable, reproducible, and extensible within a single workflow: model families and attribution methods are exposed as registered plug-ins; each layer runs as an independent Docker service; anal-

1^{1}Code and documentation are available at https://github.com/TechLory/LumiXAI; an online demo is available at http://lumixai.islab.di.unimi.it/.

ysis metadata and attribution outputs are persisted for later inspection and sharing; and the same backend supports a web GUI, a Python SDK, and a smart-batch mode for larger experiments. In this way, LumiXAI brings together interaction styles, user groups, and model families that existing tools typically address only in isolation. Figure 1 illustrates an example of the interaction with LumiXAI for text-to-image attribution. In addition to the conventional token-to-image view, where a selected prompt token highlights the regions it contributes to, LumiXAI supports the reverse direction: users can hover over an image location and inspect which prompt tokens are most responsible for that point.

The remainder of the paper is organised as follows. Section 2 situates LumiXAI with respect to existing attribution methods and interpretability toolkits. Section 3 describes the framework architecture, including its plug-in interface, service-based deployment, storage layer, and user-facing access modes. Section 4 presents case studies illustrating LumiXAI across supported model families and interaction scenarios. Section 5 reports a user evaluation of the system's usability and interpretability workflow. Section 6 concludes with current limitations and directions for future work.