Raphaël Bonnet-Guerrini
18/02/2026
Computer Science Department, University of Milan
Deep Learning models are black boxes
Extremely dense set of methods.
| Thread | Key question | Method examples |
|---|---|---|
|
Interpretable by design (intrinsic / transparent models) |
How is the model transparent? Build the structure so reasoning is visible. |
Decision Trees · Linear Regression · Concept Bottleneck Models · Sparse models |
|
Explainable AI (feature attribution) |
Why did it make this decision? Assign credit/blame to inputs or features. |
Saliency / Gradients · Integrated Gradients · Grad-CAM LIME · SHAP |
|
Mechanistic interpretability (Concept based / Reverse engineering) |
How does it solve a class of problems? Understand internal computations & representations. |
Feature Visualization · Network Dissection · Circuit analysis · Sparse dictionary learning · Concept based methods |
Large set of methods for interpretability and explainability, but mostly non-trivial to transfer.
Reasons?
Type of data, type of problem, type of scientific downstream application, (???)
Targets?
Two models are trained simultaneously with different views on the same dataset.
Two models are trained simultaneously with different views on the same dataset.
DIA Calibration is expected to improve across time and survey conditions.
Four different training sets with varying noise levels.
Our method outperforms standard training, especially in the most noisy setting.
Predictive uncertainty (from variance of predictions):
\[ \hat{\mu}(x)=\frac{1}{T}\sum_{t=1}^{T}p_t(x), \qquad \widehat{\mathrm{Var}}(x)=\frac{1}{T-1}\sum_{t=1}^{T}\left(p_t(x)-\hat{\mu}(x)\right)^{2} \]
where \( p_t(x)=\begin{cases} \sigma(f_t(\mathbf{x}, \hat\theta_t)), & \text{for ensemble}\\ \sigma(f_t(\mathbf{x}, \hat\theta, z_t)), & \text{for MC Dropout} \end{cases} \)
Co-Teaching methods train two models simultaneously. Let's use them as an ensemble.
\( N=2\) ensemble is small, we can extend it by performing M stochastic forward passes with MC Dropout for each model, resulting in a total of \(N\times M\) predictions.
\[ \rho = 1 - \frac{6 \sum d_i^2}{n(n^2 - 1)} \]
NNPDF solves an inverse problem: we have a set of experimental data and we want to find the underlying PDFs that best explain the data.
Theory (QCD, QED, EW) allows us to compute the observable values \(\mathcal{O}_n\) from the PDF space, and the inverse is done by fitting precise experimental data from the LHC.
The PDF space is a high-dimensional space (flavor basis or evolution basis).
Why does a given flavor look like this in a given \(x\) region? Which datasets are responsible for this behavior?
Black-box systems are a recurrent interpretability issue in modern DL. We can take inspiration from the methods developed there to solve the interpretability problem of NNPDF.
XAI answer : What's the impact of one feature on the output of the model ?
Inherited from game theory: represent the value of the contribution \(\phi\) of a player \(i\) within a coalition \(S\).
\[ \phi_i = \sum_{S \subseteq N \setminus \{i\}} \frac{|S|! \, (|N| - |S| - 1)!}{|N|!} \left[ v(S \cup \{i\}) - v(S) \right] \]where \(N\) is the set of all players, \(S\) is a subset of players not including \(i\), and \(v(S)\) is the value of the coalition \(S\).
Computational cost as scales exponentially with the number of players \(2^N\).
SHAP adapt SV for DL application. Makes them computable for high amount of players (features) given certain assumptions and approximations.
Applying Shapley Values to NNPDF, we treat each flavor as a feature of our black-box model.
What we compute: the exact Shapley value for each PDF flavor by averaging its marginal contribution across all coalitions (all subsets of flavors).
Computational cost: exponential in the number of flavors, as we need to evaluate the fit for each coalition. In the flavor basis, \(N=9\) flavors, we have \(2^9 = 512\) coalitions.
Using exact Shapley values, we make no assumption of independence of the features.
Foundation models are large-scale machine learning models that are trained on a wide variety of data and can be adapted to a wide range of downstream tasks. They have shown remarkable performance in various domains, including natural language processing, computer vision, and more recently, in scientific domains such as physics.
Most foundation models rely on two specificities:
Neutrino detectors record pulses.
A pulse is a time series of the light emitted by the interaction of a neutrino with the detector.
It tracks the recorded time, the directions and the energies of the incoming neutrinos.
PolarBERT is a foundation model trained on 131,000,000 high-quality Monte Carlo neutrino events.
Downstream tasks include classification or reconstruction of the energy and direction.
Foundation Model are able to generalize.
Mechanistic Interpretability asks: ⇨ How did my model solve this general class of problems?
Polysemanticity is caused by overlapping directions in the activation space. Dimensionality reduction techniques may not be able to disentangle the features.
To overcome this we can use Sparse Dictionary Learning (SDL) to find a sparse representation of the latent space.
This allows the identification of behavior in the sparse latent space, providing insight on the network comprehension of underlying physics.
Any of your ideas!
# INPUT: observables, mu,sigma,amplitude, n_samples, n_flavors = n
# OUTPUT: shapley_vals[], baseline_chi2, cache
baseline_chi2 = evaluate_chi2(observables, flavor_subset=[]) # v({})
cache = {} # map subset -> v(S)
all_subsets = power_set(0..n-1) # exclude full-set if desired
for i in 0..n-1:
SV = 0
for S in all_subsets:
if i in S: continue
# v(S)
if S not in cache:
cache[S] = evaluate_chi2(observables, flavor_subset=list(S), mu,sigma,amplitude, n_samples)
vS = cache[S]
# v(S ∪ {i})
S_with = S ∪ {i}
if S_with not in cache:
cache[S_with] = evaluate_chi2(observables, flavor_subset=list(S_with), mu,sigma,amplitude, n_samples)
vSw = cache[S_with]
Δ = vSw - vS # marginal contribution
s = |S|
w = factorial(s) * factorial(n - s - 1) / factorial(n)
SV += w * Δ
shapley_vals[i] = SV
# RETURN: shapley_vals, baseline_chi2, evaluated_coalitions=|cache|
# COMPLEXITY: time ~ O(n · 2^n · cost_eval), space ~ O(2^n) (memoized)
Contact : raphael.bonnet-guerrini@unimi.it
This work was supported by from the European Union's Horizon Europe research and innovation programme under the Marie Sklodowska-Curie grant agreement No 101168829, Challenging AI with Challenges from Physics: How to solve fundamental problems in Physics by AI and vice versa (AIPHY).