NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Lumen: A software for the interactive visualization of probabilistic models together with data

Philipp Lucas 0002, Joachim Giesen, Philipp LucasJ. Open Source Softw 2021 · DBLP

Abstract

Research in machine learning and applied statistics has led to the development of a plethora of different types of models. Lumen aims to make a particular yet broad class of models, namely, probabilistic models, more easily accessible to humans. Lumen does so by providing an interactive web application for the visual exploration, comparison, and validation of probabilistic models together with underlying data. As the main feature of Lumen a user can rapidly and incrementally build flexible and potentially complex interactive visualizations of both the probabilistic model and the data that the model was trained on.

Introduction

While standard machine learning models often provide a single "point estimation" (e.g., "this image is a cat"), probabilistic models provide a distribution that accounts for uncertainty (e.g., "I am 51% sure this is a cat"). This uncertainty is critical in high-stakes fields like medicine, yet these models often remain "black boxes" that are difficult for humans to interpret.

The authors identify a major hurdle in the field: the lack of accessible tools for the iterative process of model building. Analysts need to see how a model's internal logic aligns with actual data, how it handles specific conditions, and where it might be producing artifacts or "hallucinations" that summary statistics (like accuracy scores) might hide.

The Lumen Framework

Lumen adopts a "visual grammar" approach, heavily inspired by the academic Polaris project and its commercial successor, Tableau. It provides a unified visual language to interact with both raw data and abstract probabilistic models through a drag-and-drop interface.

The Lumen user interface showing interactive visualization of the ALLBUS dataset.

The system uses a decoupled client-server architecture. Lumen handles the frontend UI/UX, while a dedicated backend called modelbase manages the heavy lifting of querying the models. To work with Lumen, a model only needs to support three core probabilistic operations via a model-agnostic API:

  1. Marginalization: Removing or integrating out specific variables.
  2. Conditioning: Fixing variables to specific values (e.g., "show me the model's prediction given the subject is female").
  3. Density Queries: Asking for the probability density at any specific point.

Because of this abstraction, Lumen can visualize a wide variety of model classes, including Sum-Product Networks, Kernel Density Estimators, and programs built with PyMC3.

Case Study: ALLBUS 2016

The software's utility is demonstrated using the ALLBUS 2016 dataset (the German General Social Survey), which contains socio-economic variables like income, age, sex, and education level. Lumen allows researchers to visualize correlations—such as income versus gender—and iteratively improve models to better capture real-world distributions. By mapping random variables to visual channels like the x-axis, y-axis, or color, users can generate complex plots—such as marginal model densities versus observed data histograms—without writing custom plotting code for every iteration.

Key Insights

  • Visual Debugging: Direct visual inspection allows experts to spot implementation bugs or data issues that aggregate measures (like information criteria) would miss. If a model's density plot looks "jagged" compared to the data, there is likely a problem.
  • Comparison of Iterates: One of Lumen's strongest features is the ability to plot multiple versions of a model side-by-side. This allows an analyst to see exactly how adding complexity to a model changes its fit to the underlying data.
  • Educational Value: By making abstract concepts like conditioning or marginalization interactive, the tool serves as an educational bridge, allowing users to "play" with probabilistic logic and receive immediate visual feedback.

Conclusion and Future Work

Lumen successfully enables a "drag-and-drop" workflow for generating complex probabilistic visualizations. However, it currently only supports quantitative and categorical variables, excluding high-dimensional data like images or time series. Future work may address these data types and optimize performance for large-scale models across networks.

Summary updated

BibTeX
@article{lucas2021lumen,
  author = {Philipp Lucas and Joachim Giesen and Philipp Lucas},
  title = {{Lumen: A software for the interactive visualization of probabilistic models together with data}},
  journal = {J. Open Source Softw.},
  year = {2021},
  doi = {10.21105/joss.03395},
}

Loading related content...

Figure