TL;DR
ProbeGen (Deep Linear Probe Generators) is a highly efficient method for "weight space learning"—predicting a neural network's properties (like its training data or error rate) just by looking at it. By using a deep linear generator to create structured input probes, it outperforms state-of-the-art methods while requiring up to 1,000x less computational power.
What Problem Does This Paper Address?
With millions of models now available on hubs like HuggingFace, we often encounter "undocumented" neural networks. We might want to know: Was this model trained on copyrighted data? or How well will it generalize to new data?
Answering these questions by looking at the model's weights is incredibly difficult for two main reasons:
- High Dimensionality: Modern models have millions or billions of parameters.
- Permutation Symmetry: You can swap the order of neurons in a hidden layer without changing the model's output. This means two models with completely different-looking weight matrices can be functionally identical.
Existing "mechanistic" approaches try to process weights directly using complex graph neural networks, but these are computationally expensive. An alternative is Probing: passing a set of inputs (probes) through the model and analyzing the outputs. However, standard probing often overfits, creating "noisy" probes that fail to capture meaningful, generalizable information.
Methods
The authors introduce ProbeGen, a framework that rethinks how we design probes. Instead of optimizing each probe (input image or vector) independently, they use a Shared Deep Linear Generator ($G$).
- The Architecture: As illustrated above, each probe $p_i$ is generated from a trainable latent code $z_i$ via the generator: $p_i = G(z_i)$. The generated probes are then passed through the frozen, evaluated neural network ($f$), and the outputs are fed into a classifier ($C$).
- Deep but Linear: Crucially, the generator has multiple layers but no non-linear activations (like ReLU). While this seems counterintuitive, the authors found that non-linearities actually hurt performance by allowing the probes to become "adversarial noise." The deep linear structure provides an implicit regularization that keeps probes structured.
- Inductive Bias: For models that process images, they use convolutional layers in the generator. This forces the probes to have local, hierarchical structures similar to real-world images, even without seeing the original training data.
Datasets
The authors evaluated ProbeGen across several diverse benchmarks:
- MNIST & FMNIST INRs: Predicting the digit or clothing item an Implicit Neural Representation (INR) was trained to represent.
- CIFAR10-GS & CIFAR10-Wild-Park: Predicting the generalization error of CNNs.
- ResNet18 Zoo: A new, larger-scale dataset introduced in this paper containing over 6,000 ResNet18 models trained on subsets of Tiny ImageNet.
- Point Cloud INRs: Classifying 3D shapes (from the ShapeNet dataset) by probing their neural representations.
Key Insights and Ideas
- Probing as Dynamic Analysis: The authors draw a parallel to software engineering. "Mechanistic" weight analysis is like reading binary code (static analysis), while "Probing" is like running the code on specific inputs (dynamic analysis). In weight space learning, "running" the model is often more revealing.
- The Overfitting Trap: Vanilla probing tends to create probes that look like high-frequency noise. These probes "overfit" to the specific weights of the training models and fail to generalize to new models.
- Linearity is a Feature, Not a Bug: By removing ReLUs, the authors limit the generator's expressivity just enough to prevent it from creating "adversarial" probes, forcing it to find more robust, structured patterns.
- Efficiency is King: Because ProbeGen only requires a few forward passes through the target model, it is orders of magnitude faster than methods that try to process the entire weight graph of a network.
Key Results
- State-of-the-Art Accuracy: On the FMNIST classification task, ProbeGen achieved 87.7% accuracy, outperforming the previous best (ScaleGMN) by nearly 7%.
- Massive Speedup: ProbeGen is significantly more efficient than graph-based competitors. On MNIST, it required only 0.02 Billion FLOPs compared to 63.40 Billion for Neural Graphs—a 3,000x difference.
- Scaling to Large Models: While previous graph-based methods struggle to scale beyond tiny networks, ProbeGen successfully predicted the generalization error of ResNet18 models with high correlation (Kendall’s $\tau$ of 0.91).
- Better Scaling Laws: In point cloud tasks, ProbeGen with just 32 probes outperformed vanilla probing using 2,048 probes.
Limitations and Future Work
- Output Space Consistency: Probing requires that the models being compared have the same output structure (e.g., the same number of classes in the same order). If the output layers are shuffled or different, the method needs further adaptation.
- Analysis Only: ProbeGen is designed to extract information from weights. It cannot currently be used for "weight generative" tasks, such as creating or editing new neural networks.
- Adaptive Probing: The authors suggest that future work could involve "Adaptive Probing," where the choice of the next probe depends on the results of the previous ones, potentially making the process even more efficient.
Summary updated