Neural Network Visualization

Jakub Wejchert, Gerald TesauroNeurIPS 1989

Introduction

In the late 1980s, as neural networks gained popularity through computer simulations, researchers faced a significant hurdle: they lacked effective ways to actually see what was happening during the learning process. Most systems were treated as black boxes where inputs went in and outputs came out, leaving the internal evolution of weights completely opaque.

While fields like fluid dynamics and chaos theory were benefiting immensely from "scientific visualization," neural network research lagged behind. To bridge this gap, researchers introduced two novel visualization techniques—bond diagrams and trajectory diagrams—designed to map high-dimensional weight changes into intuitive 2D graphics. These tools allowed researchers to gain real-time insights into the hidden dynamics and decision-making processes of back-propagation.

Novel Visualization Methods

The authors developed a multi-window visualization environment (built using C and X-Windows) featuring two primary representations to display both the static structure of a network and its dynamic learning path.

The Bond Diagram

Unlike traditional "Hinton diagrams," which often abstract away the network's shape, the bond diagram integrates weight information directly into the network topology.

A bond diagram illustrating a small neural network topology, where weights are represented by geometric shapes connecting the nodes.

In this representation, nodes are depicted as circles, with the area representing the threshold or bias. The weights are shown as triangles or lines emanating from the nodes. The length of the "bond" indicates the weight's magnitude, while its direction shows the connectivity. This approach makes it immediately apparent how different parts of the network are interacting.

The Trajectory Diagram

To visualize the learning process in high-dimensional "weight space," the authors created a 2D projection called the trajectory diagram.

The multi-window visualization environment featuring a bond diagram in the center, performance graphs, and trajectory diagrams on the right showing the network's path through weight space.

This method treats each weight component as a radial vector. The vector sum of these components yields a single point in 2D space. As the network learns and weights update, this point moves, creating a visible "trace" or trajectory. By using color to represent the error function, this diagram acts like a phase plot, showing exactly how the network descends the "error hypersurface."

Experimental Setup and Key Insights

The researchers evaluated their tools using small networks trained on fundamental Boolean logic problems, including the Majority Function (outputting '1' if more than half of inputs are active) and Symmetry problems (distinguishing symmetric from anti-symmetric input vectors).

Through real-time animation and observation, the visualization tools revealed several critical insights:

  • The "Critical Period" of Learning: The early stages of training are the most critical. During this phase, the signs (positive or negative) of the weights feeding into hidden units are determined. Later stages are primarily spent fine-tuning the relative magnitudes.
  • Visualizing Convergence vs. Failure: Trajectory diagrams revealed a stark visual difference between successful learning and getting stuck in local optima. In successful runs, hidden units often "match" or "mirror" each other's paths. In failed runs, one unit typically "travels off" on a completely different, rogue trajectory early on.
  • Symmetry as Hierarchy: The bond diagrams showed that for symmetry problems, networks naturally evolve a hierarchical structure. They make major "decisions" on the outer pairs of inputs first, then move inward with decreasing weight strength.
  • Debugging via Vision: Beyond theoretical insights, visualization helped the authors detect errors in their simulation code and identify unexpected behaviors that would have been invisible in raw numerical data.

Limitations and Future Directions

While highly effective for small networks (up to approximately 30 weights) running at real-time speeds on standard workstations of the era, the authors acknowledged significant limitations regarding scalability. Extending these specific topological techniques to large-scale networks with thousands of nodes and tens of thousands of weights presents a major challenge due to visual clutter.

Additionally, the trajectory diagram suffers from projection ambiguity. Because an $n$-dimensional space is projected onto 2D, the resulting point is not unique for $n > 2$. While it is highly useful for seeing "families" of trajectories, it is not a perfect mathematical mapping.

Ultimately, this early work laid the foundation for opening the neural network black box, prompting future interest in developing alternative visualization techniques specifically designed for large data-set regimes.

Summary updated

BibTeX
@inproceedings{wejchert1989neural,
  author = {Jakub Wejchert and Gerald Tesauro},
  title = {{Neural Network Visualization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1989},
}
Figure