https://www.mdu.se/

mdu.sePublications
123452 of 5
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Reasoning in Machine Learning through Mechanistic Interpretability
Mälardalen University, Faculty of Engineering and Health Sciences, Department of Computer Science & Engineering.
2026 (English)Doctoral thesis, comprehensive summary (Other academic)
Abstract [en]

Neural networks (NNs) achieve high prediction accuracy, but the internal reasoning through which they transform inputs into decisions remains hidden. Post-hoc explainability methods provide approximate explanations but do not reveal the actual computations a network performs. Mechanistic interpretability aims to address this by reverse-engineering the internal computations of NNs from their learned weights. However, different architectures operate through distinct computational primitives, and mechanistic interpretability methods that account for the specific computational structure of each architecture remain underdeveloped.

This thesis investigates how NNs reason by developing mechanistic interpretability methods that expose their internal decision-making processes. The work begins with multimodal reasoning, where a reasoning approach combining alignment and semi-supervised learning is introduced for prediction on unlabelled data. This is extended with transfer learning using a transformer model designed for continuous features. The thesis then addresses the deeper question of how NNs arrive at their decisions. Three mechanistic interpretability methods are developed. For feedforward networks with Rectified Linear Unit (ReLU) activations, ReLU Region Reasoning (Re3) derives exact per-sample affine mappings and identifies the exact input components that ReLU autoencoders discard during compression. For convolutional neural networks (CNNs), discriminative filters are identified through a dedicated method, and Pre-activation Decision Maps (PDM) visualise how the selected filters contribute to decisions. An exact soft-gate decomposition extends Re3 to transformer multi-layer perceptrons (MLPs) with Gaussian Error Linear Unit (GELU) and Sigmoid Linear Unit (SiLU) activations and extracts the effective weight matrix for each MLP block with zero approximation error.

The multimodal reasoning approaches are validated on vehicular telemetry and neurophysiological data and demonstrate effective prediction performance, with the transformer model outperforming traditional methods. Re3 replicates individual predictions exactly and provides deterministic feature attributions consistent with established methods. In autoencoders, Re3 extracts input directions that leave the latent representation exactly unchanged and reveals that the encoder compresses either near-linearly or through region-specific strategies, depending on the data. At the filter level, PDM outperforms established baseline methods. The soft-gate decomposition is verified on five transformer models, and its structural analysis indicates that MLP computation is organised differently across the models studied.

This thesis contributes reasoning approaches for effective prediction on unlabelled multimodal data and mechanistic interpretability methods that expose the actual computational mechanisms of feedforward networks, CNNs, and transformer architectures. Together, these contributions advance both the ability to reason over complex data and the understanding of how NNs reason internally.

Place, publisher, year, edition, pages
Västerås: Mälardalen University , 2026.
Series
Mälardalen University Press Dissertations, ISSN 1651-4238 ; 477
National Category
Engineering and Technology
Research subject
Computer Science
Identifiers
URN: urn:nbn:se:mdh:diva-79144ISBN: 978-91-7485-774-0 (print)OAI: oai:DiVA.org:mdh-79144DiVA, id: diva2:2107728
Public defence
2026-11-23, Delta, Mälardalens universitet, Västerås, 09:15 (English)
Opponent
Supervisors
Available from: 2026-10-06 Created: 2026-10-05 Last updated: 2026-11-02Bibliographically approved
List of papers
1. Second-Order Learning with Grounding Alignment: A Multimodal Reasoning Approach to Handle Unlabelled Data
Open this publication in new window or tab >>Second-Order Learning with Grounding Alignment: A Multimodal Reasoning Approach to Handle Unlabelled Data
Show others...
2024 (English)In: International Conference on Agents and Artificial Intelligence, INSTICC , 2024, Vol. 2, p. 561-572Conference paper, Published paper (Refereed)
Abstract [en]

Multimodal machine learning is a critical aspect in the development and advancement of AI systems. However, it encounters significant challenges while working with multimodal data, where one of the major issues is dealing with unlabelled multimodal data, which can hinder effective analysis. To address the challenge, this paper proposes a multimodal reasoning approach adopting second-order learning, incorporating grounding alignment and semi-supervised learning methods. The proposed approach illustrates using unlabelled vehicular telemetry data. During the process, features were extracted from unlabelled telemetry data using an autoencoder and then clustered and aligned with true labels of neurophysiological data to create labelled and unlabelled datasets. In the semi-supervised approach, the Random Forest (RF) and eXtreme Gradient Boosting (XGBoost) algorithms are applied to the labelled dataset, achieving a test accuracy of over 97%. These algorithms are then used to predict labels for the unlabelled dataset, which is later added to the labelled dataset to retrain the model. With the additional prior labelled data, both algorithms achieved a 99% test accuracy. Confidence in predictions for unlabelled data was validated using counting samples based on the prediction score and Bayesian probability. RF and XGBoost scored 91.26% and 97.87% in counting samples and 98.67% and 99.77% in Bayesian probability, respectively.

Place, publisher, year, edition, pages
INSTICC, 2024
Series
International Conference on Agents and Artificial Intelligence, ISSN 2184-3589
Keywords
Autoencoder, Multimodal Reasoning, Semi-Supervised, Supervised Alignment
National Category
Computer and Information Sciences
Identifiers
urn:nbn:se:mdh:diva-66579 (URN)10.5220/0012466500003636 (DOI)2-s2.0-85190658759 (Scopus ID)9789897583957 (ISBN)
Conference
16th International Conference on Agents and Artificial Intelligence, ICAART 2024. Rome 24 February 2024 through 26 February 2024
Available from: 2024-05-08 Created: 2024-05-08 Last updated: 2026-10-06Bibliographically approved
2. Advanced Hybrid Reasoning and Transfer Learning on Multimodal Data with Transformers
Open this publication in new window or tab >>Advanced Hybrid Reasoning and Transfer Learning on Multimodal Data with Transformers
2025 (English)In: Springer Nature Computer Science, ISSN 2662995X, Vol. 6, no 3Article in journal (Refereed) Published
Abstract [en]

Reasoning is a vital process in machine learning (ML), involving making inferences and drawing conclusions based on data. This capability is important for developing intelligent systems which can understand and predict complex patterns. The study investigates reasoning through two distinct methodologies: multimodal reasoning and transfer learning based reasoning. In the first approach, multimodal reasoning is used with a semi-supervised method to label unlabelled datasets. In the second approach, transfer learning has been used to transfer knowledge of data from one model to another. Both approaches are demonstrated using unlabelled vehicular telemetry data. During processing, three sets of telemetry data are used to extract features separately through the autoencoder. These features are then clustered and aligned to create labelled and unlabelled datasets. The eXtreme Gradient Boosting (XGBoost) algorithm achieved over 98% test accuracy when applied to the labelled datasets and was then used to predict labels for the unlabelled datasets, which were later added to the labelled dataset to form three datasets for further processing. In transfer learning, a transformer model specifically designed to handle continuous features is developed. Labelled datasets are applied to the transformer model, one after the other, resulting in three final models, with each model achieving over 80% accuracy. The model’s prediction confidence is also validated using conformal learning, where the final models achieved over 80% accuracy. The transformer model is also separately trained on the datasets and compared with traditional ML models, outperforming the others by achieving an accuracy of 98%. By building on the groundwork laid by this study, future research can push the boundaries of what is possible with reasoning approaches, opening up new paths for scientific exploration and practical applications in different fields.

Place, publisher, year, edition, pages
Springer Nature, 2025
Keywords
Multimodal reasoning, Semi-supervised learning, Supervised alignment, Transfer learning, Transformer
National Category
Computer and Information Sciences Computer Sciences
Research subject
Computer Science
Identifiers
urn:nbn:se:mdh:diva-69147 (URN)10.1007/s42979-025-03706-x (DOI)2-s2.0-85218692188 (Scopus ID)
Funder
EU, Horizon 2020, 953432
Available from: 2024-11-15 Created: 2024-11-15 Last updated: 2026-10-06Bibliographically approved
3. Mechanistic Interpretability of ReLU Neural Networks Through Piecewise-Affine Mapping
Open this publication in new window or tab >>Mechanistic Interpretability of ReLU Neural Networks Through Piecewise-Affine Mapping
2026 (English)In: Machine Learning, ISSN 0885-6125, E-ISSN 1573-0565, Vol. 115, no 1, article id 17Article in journal (Refereed) Published
Abstract [en]

Rectified linear unit (ReLU) based neural networks (NNs) are recognised for their remarkable accuracy. However, the decision-making processes of these networks are often complex and difficult to understand. This complexity can lead to challenges in error identification, establishing trust, and conducting thorough analyses. Existing methods often fail to provide clear insights into the actual computations occurring within each layer of these networks. To address this challenge, this study introduces a mechanistic interpretability method called ReLU Region Reasoning (Re3). This method uses the known piecewise-linear characteristics of ReLU networks to offer insights into neuron activation and accurately assess how each feature contributes to the final output and probability. Re3 effectively determines neuron activations and evaluates the contribution of each feature within a specified linear region. Experiments conducted on multiple benchmark datasets, including both tabular and image data, demonstrate that Re3 can replicate individual predictions without error, align feature importance with domain expertise, and maintain consistency with current explanatory methods, thereby avoiding the typical randomness. Analysing neurons reveals activation sparsity and identifies dominant units, thus providing clear targets for model simplification and troubleshooting. By ensuring transparency and algebraic accessibility in each stage of a ReLU-based NN's decision process, Re3 can be a valuable practical tool for achieving precise mechanistic interpretability.

Place, publisher, year, edition, pages
Springer Nature, 2026
Keywords
Neural networks, Rectified linear unit, Reasoning, Interpretability
National Category
Computer Sciences
Identifiers
urn:nbn:se:mdh:diva-75497 (URN)10.1007/s10994-025-06957-0 (DOI)001656690800001 ()2-s2.0-105027259375 (Scopus ID)
Available from: 2026-01-21 Created: 2026-01-21 Last updated: 2026-10-06Bibliographically approved
4. Interpreting ReLU-Autoencoder Compression through Exact Region-wise Invariant Subspaces
Open this publication in new window or tab >>Interpreting ReLU-Autoencoder Compression through Exact Region-wise Invariant Subspaces
2026 (English)Conference paper, Published paper (Refereed)
National Category
Engineering and Technology
Identifiers
urn:nbn:se:mdh:diva-79143 (URN)
Conference
19th International Conference on Agents and Artificial Intelligence
Available from: 2026-10-05 Created: 2026-10-05 Last updated: 2026-10-06
5. Mechanistic Interpretability of CNN with Pre-activation Decision Map of Discriminative Filters
Open this publication in new window or tab >>Mechanistic Interpretability of CNN with Pre-activation Decision Map of Discriminative Filters
(English)In: IEEE Transactions on Pattern Analysis and Machine Intelligence, ISSN 0162-8828, E-ISSN 1939-3539Article in journal (Refereed) Submitted
National Category
Engineering and Technology
Identifiers
urn:nbn:se:mdh:diva-79142 (URN)
Available from: 2026-10-05 Created: 2026-10-05 Last updated: 2026-10-06
6. Mechanistic Interpretability of Transformer MLPs Through Exact Soft‑Gate Decomposition
Open this publication in new window or tab >>Mechanistic Interpretability of Transformer MLPs Through Exact Soft‑Gate Decomposition
2026 (English)In: Transactions on Machine Learning Research, E-ISSN 2835-8856, article id 09/2006Article in journal (Refereed) Published
Abstract [en]

Transformer feed-forward (MLP) blocks perform nonlinear transformations, but their internal structure is often difficult to interpret using current methods. This paper presents anexact soft-gate decomposition that extracts the effective weight matrix for each MLP blockat varying inputs. This approach generalises exact piecewise-affine decomposition fromReLU networks to Gaussian Error Linear Unit (GELU) and Sigmoid Linear Unit (SiLU)activations, covering both standard and gated MLP architectures. Verification across fivemodels, including BERT-base, mBART-50, and GPT-2 Small for language tasks, ViT-basefor vision tasks, and the gated SiLU architecture TinyLlama-1.1B, confirms the accuracyof this method at floating-point arithmetic precision. The application of singular value decomposition to the effective weight matrix yields six structural metrics that characteriseeach block based on the dimensionality, intensity, and spectral concentration of its transformation. When applied to one model from each of three architectural configurations,BERT-base, mBART-50, and GPT-2 Small, alongside ablation as causal ground truth, thisanalysis indicates that MLP computation is organised differently across the models studied.Specifically, BERT-base’s blocks vary by transformation dimensionality, mBART-50’s blocksby transformation intensity, and GPT-2 Small’s blocks by intensity with negative ablationvalues in the later layers. These structural differences, revealed only through the exact effective weight matrix, explain why scalar importance measures often fail to generalise acrossthe models studied.

National Category
Engineering and Technology Computer Sciences
Identifiers
urn:nbn:se:mdh:diva-79141 (URN)
Note

Licensed under CC BY 4.0.

Available from: 2026-10-05 Created: 2026-10-05 Last updated: 2026-10-08Bibliographically approved

Open Access in DiVA

fulltext(41223 kB)73 downloads
File information
File name FULLTEXT02.pdfFile size 41223 kBChecksum SHA-512
052fa6ed77b3b51c570495d31c84fae9dd33a4bf047174ab4e8bc8061acea7df5e0a3b3e97bf30cbe844e1d2d2666e969f1eb8b21aaae16a343660ba4ccef82d
Type fulltextMimetype application/pdf

Authority records

Barua, Arnab

Search in DiVA

By author/editor
Barua, Arnab
By organisation
Department of Computer Science & Engineering
Engineering and Technology

Search outside of DiVA

GoogleGoogle Scholar
Total: 73 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

isbn
urn-nbn

Altmetric score

isbn
urn-nbn
Total: 12294 hits
123452 of 5
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf