DeepRepViz - Deep Representation visualizer

DeepRepViz is an interactive web tool that can be used to inspect the 3D representations learned by predictive deep learning (DL) models. It can be used to inspect a trained model for any biases in the training and the data and debug the model. The tool is intended to help improve the transparency of such DL models. The DL models can be a ‘black box’ and hinder their adaptation to critical decision processes (ex: medical diagnosis). This tool aims to provide a platform that developers of DL models can use to gain a better intuition about what their model is learning by visualizing its ‘learned representation’[1] of the data. It can be used to understand what the model might be basing its decisions upon.

With DeepRepViz, one can ask questions such as:

  1. Debugging biases:
  2. Inspecting model learning:
  3. Debugging model training:

Developers can also share their model’s learned representation and the list of suspicious risk variables[2] that can be then independently inspected and verified by other stakeholders and users of the model.

As an example, consider the below (demonstrative) scenario:

How does DeepRepViz work?

Consider a DL model fmodel : X ↦ y with with l layers {L(0), L(1), ....L(l−2), L(l−1)}. To inspect this model using DeepRepViz the next 3 steps can be followed (An intuitive illustration of the procedure is provided below):

Step 1. Generate 3D representation of your data from your Deep Learning (DL) model

Step 2. Prepare a table of variables (.csv) to visualize

Step 3. Visualize on the interactive tool


Graphic User Interface (GUI) Features

A brief demonstration DEMO

Let’s take a closer look at the components of the DeepRepViz interface: Main window

Title Menu

Left Panel

Center Panel

Right Panel

Two demonstrative examples:

In the below examples, inspecting two predictive DL models using DeepRepViz helped us find spurious confounder variables and biases in the models:

Acknowlegement

This project was inspired by Google Brain’s projector.tensorflow.org, but is more catering towards the medical domain and medical imaging analysis. For implementation, we heavily rely on 3D-scatter-plot from plotly.js.

Citations

[1] Bengio, Yoshua, Aaron Courville, and Pascal Vincent. “Representation learning: A review and new perspectives.” IEEE transactions on pattern analysis and machine intelligence 35.8 (2013): 1798-1828.
[2] Görgen, Kai, et al. “The same analysis approach: Practical protection against the pitfalls of novel neuroimaging analysis methods.” Neuroimage 180 (2018): 19-30.

Last updated 2022-10-24 UTC.