Abstract
Deep learning (DL) has proven to be an effective machine learning and computer vision technique. DL-based image segmentation, object recognition and classification will aid many in-situ Mars rover tasks such as path planning and artifact recognition/extraction. However, most of the Deep Neural Network (DNN) architectures are so complex that they are considered a 'black box'. In this paper, we used integrated gradients to describe the attributions of each neuron to the output classes. It provides a set of explainability tools (ET) that opens the black box of a DNN so that the individual contribution of neurons to category classification can be ranked and visualized. The neurons in each dense layer are mapped and ranked by measuring expected contribution of a neuron to a class vote given a true image label. The importance of neurons is prioritized according to their correct or incorrect contribution to the output classes and suppression or bolstering of incorrect classes, weighted by the size of each class. ET provides an interface to prune the network to enhance high-rank neurons and remove low-performing neurons. ET technology will make DNNs smaller and more efficient for implementation in small embedded systems. It also leads to more explainable and testable DNNs that can make systems easier for Validation & Verification. The goal of ET technology is to enable the adoption of DL in future in-situ planetary exploration missions.
Introduction
Deep Learning (DL) is a powerhouse for computer vision, but it faces two major hurdles in the context of space exploration. First is the "Black Box" problem: space missions require rigorous Validation & Verification (V&V). If engineers don't understand why a rover decided a rock was a "drill hole" versus a "distant landscape," they can’t guarantee the system's safety. Second is resource constraints: state-of-the-art models like ResNet or AlexNet require billions of floating-point operations (FLOPs) and massive memory. Mars rovers use embedded processors with a fraction of the power of a modern desktop GPU. Researchers from JPL and USC have developed a framework using "Integrated Gradients" to rank the importance of individual neurons in Deep Neural Networks (DNNs), bridging this gap by creating tools that explain how a network thinks and then use those explanations to "slim down" the model for flight hardware.
Methods
The core of the approach is a technique called Integrated Gradients (IG).
- Attribution: IG measures how much each internal neuron contributes to the final output by comparing the network's response to a real image against a "baseline" (a blank black image).
- Expected Attribution (EA): The average contribution of a neuron across the entire dataset is calculated, allowing researchers to see if a neuron "bolsters" a correct vote or "suppresses" an incorrect one.
- Ranking and Pruning: Neurons are ranked by their contribution to the categorical cross-entropy loss. To optimize the model, Structured Pruning is implemented, where low-ranking neurons are deactivated by masking their outputs.
- Retraining: After pruning the "dead weight," the network is fine-tuned to allow the remaining high-performing neurons to compensate for the loss, restoring accuracy.
Datasets
The study utilized a specialized Mars Rover image dataset consisting of 1,132 training images, 164 validation images, and 153 testing images. While the set contained 19 classes, the authors focused on 5 primary categories relevant to rover tasks: Close-up rock, Distant landscape, Drill hole, Other rover part, and Sun.
Analysis of Neuron Importance
One of the most striking findings was that most high-performing neurons are "specialists." A neuron critical for identifying a "drill hole" rarely contributes to identifying a "distant landscape." There are almost no "generalist" neurons central to all categories. Furthermore, the distribution of neuron ranks showed a "long tail" of redundancy, where a vast majority of neurons have a rank near zero.
This confirms that modern DNNs are significantly larger than they need to be for specific tasks. Usually, pruning is done based on simple metrics like the size of the weights (L1 norm). This paper shows that using explainability—how much a neuron actually helps the logic—is a much more effective way to decide what to cut. Pruning the highest-ranked neurons causes the model's accuracy to crater instantly, while pruning the lowest-ranked ones has almost no effect until the very end.
Key Results
By pruning the dense layers of an AlexNet-style architecture, the authors achieved a massive parameter reduction, cutting the total count from 58.3 million to just 4 million—a 93.3% reduction. While the original model had 91.6% accuracy, pruning 95% of the neurons (before retraining) caused a drop to 56.7%. However, after retraining the slimmed-down model, accuracy bounced back to 88.9%, remarkably close to the original performance despite being a fraction of the size. The resulting smaller networks run faster on embedded processors and are significantly easier to test and validate for mission-critical reliability.
Conclusion and Future Work
The results focused heavily on the "Flatten" and "Dense" (fully connected) layers. While these layers contain the most parameters, convolutional layers were not the primary focus of the pruning results. Additionally, the Mars dataset used is relatively small; future work will determine if the same 95% pruning threshold holds for more complex, multi-thousand-class datasets. The authors suggest that this Explainability Technology (ET) could eventually lead to "self-optimizing" networks that prune themselves during the training process to fit specific hardware constraints.
Summary updated