Skip to main content
QUICK REVIEW

[Paper Review] NeuralVis: Visualizing and Interpreting Deep Learning Models

Xufan Zhang, Ziyue Yin|arXiv (Cornell University)|Jun 3, 2019
Adversarial Robustness in Machine LearningComputer Science16 references3 citations
TL;DR

NeuralVis is a web-based, instance-based visualization tool that enables software engineers to interactively explore deep neural network (DNN) model structures, data transformations, and intermediate activations. By integrating adversarial attack generation and comparative analysis of intermediate outputs, it helps developers identify critical features influencing predictions, as validated through a user study with 10 participants on LeNet and VGG-12 models.

ABSTRACT

Deep Neural Network(DNN) techniques have been prevalent in software engineering. They are employed to faciliatate various software engineering tasks and embedded into many software applications. However, analyzing and understanding their behaviors is a difficult task for software engineers. In this paper, to support software engineers in visualizing and interpreting deep learning models, we present NeuralVis, an instance-based visualization tool for DNN. NeuralVis is designed for: 1). visualizing the structure of DNN models, i.e., components, layers, as well as connections; 2). visualizing the data transformation process; 3). integrating existing adversarial attack algorithms for test input generation; 4). comparing intermediate outputs of different instances to guide the test input generation; To demonstrate the effectiveness of NeuralVis, we conduct an user study involving ten participants on two classic DNN models, i.e., LeNet and VGG-12. The result shows NeuralVis can assist developers in identifying the critical features that determines the prediction results. Video: https://youtu.be/hRxCovrOZFI

Motivation & Objective

  • Address the challenge of interpreting complex, black-box deep learning models in software engineering contexts.
  • Provide an interactive visualization tool to support understanding of DNN architecture and data flow during inference.
  • Enable developers to compare intermediate outputs across inputs to identify influential features in model predictions.
  • Integrate adversarial attack generation and model mutation (via filter freezing) to support testing and debugging of DNNs.
  • Evaluate the tool’s effectiveness in enhancing developer intuition and interpretability through a task-based user study.

Proposed method

  • Propose an instance-based visualization approach that renders both static DNN architecture and dynamic data transformation across layers.
  • Implement a web-based interface allowing users to load trained DNN models (e.g., LeNet, VGG-12) and inspect layer-by-layer activation patterns.
  • Introduce a comparison panel enabling side-by-side visualization of intermediate outputs from two inputs, facilitating differential analysis.
  • Support model mutation by allowing users to freeze specific filters in convolutional layers, observing downstream effects on activations.
  • Integrate existing adversarial attack algorithms (e.g., FGSM) to generate test inputs and visualize their impact on intermediate representations.
  • Design interactive controls for filtering, layer selection, and real-time visualization updates to support exploratory debugging.

Experimental results

Research questions

  • RQ1Can interactive visualization of intermediate activations help developers identify which features in an input are most influential for a DNN’s prediction?
  • RQ2How effective is comparative analysis of intermediate outputs between a normal input and an adversarial example in revealing model behavior?
  • RQ3To what extent does the ability to freeze filters in convolutional layers enhance developers’ understanding of model decision-making?
  • RQ4Can a visualization tool like NeuralVis improve developers’ ability to interpret and debug DNN models in practical software engineering tasks?
  • RQ5How do developers leverage visualization features to understand structural and behavioral aspects of trained DNNs in real-world scenarios?

Key findings

  • All ten participants successfully completed all tasks within one hour, demonstrating NeuralVis’s usability and efficiency in a real-world setting.
  • Participants reported that comparing intermediate outputs provided critical intuition for identifying features influencing model predictions.
  • The tool enabled developers to highlight important filters and distinguish them from ineffective ones, confirming its role in feature importance analysis.
  • The ability to freeze filters and observe downstream activation changes helped users understand the functional impact of specific neurons.
  • The user study confirmed that visualization of structural and dynamic behaviors significantly improved developers’ understanding of DNN model behavior.
  • Feedback from participants emphasized the comparison of intermediate outputs as the most valuable feature for interpreting model decisions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.