Journal article2027

Applied Soft Computing

SYNAPSE: Framework for neuron analysis and perturbation in sequence encoding

SYNAPSE analyzes Transformer neurons and stress-tests internal robustness through controlled interventions during inference, without retraining the base model.

InterpretabilityRobustnessPrivacyModel auditingRepresentation learningModel evaluationExplainability

Abstract

In recent years, Artificial Intelligence has become a powerful partner for complex tasks such as data analysis, prediction, and problem-solving, yet its lack of transparency raises concerns about its reliability. In sensitive domains such as healthcare or cybersecurity, ensuring transparency, trustworthiness, and robustness is essential, since the consequences of wrong decisions or successful attacks can be severe. Prior neuron-level interpretability approaches are primarily descriptive, task-dependent, or require retraining, which limits their use as systematic, reusable tools for evaluating internal robustness across architectures and domains. To overcome these limitations, this work proposes SYNAPSE, a systematic, training-free framework (requiring no retraining of the base model) for understanding and stress-testing the internal behavior of Transformer models across domains. SYNAPSE extracts per-layer [CLS] representations, trains a lightweight linear probe to obtain global and per-class neuron rankings, and applies forward-hook interventions during inference. This design enables controlled, repeatable experiments on internal representations without altering the original model, thereby allowing weaknesses, stability patterns, and label-specific sensitivities to be measured and compared directly across tasks and architectures. Across all experiments, SYNAPSE reveals a consistent organization of internal representations across the two evaluated domains, in which task-relevant information is encoded in broad, overlapping neuron subsets. This redundancy provides a strong degree of functional stability, while class-wise asymmetries expose heterogeneous specialization patterns and enable fine-grained, label-aware analysis. In contrast, small structured manipulations in weight or logit space are sufficient to redirect predictions, highlighting complementary vulnerability profiles and illustrating how SYNAPSE can guide the development of more robust and interpretable Transformer models.

Authors

Jesús Sánchez OchoaEnrique Tomás Martínez BeltránAlberto Huertas Celdrán

Keywords

InterpretabilityRobustnessPrivacyModel auditingRepresentation learningModel evaluationExplainability

Related publications

Publications connected by topic, method or application.

Preprint2021

Journal of Healthcare Engineering

Breaching Subjects’ Thoughts Privacy: A Study with Visual Stimuli and Brain-Computer Interfaces

Mario Quiles Pérez, Enrique Tomás Martínez Beltrán, Sergio López Bernal, Alberto Huertas Celdrán, Gregorio Martínez Pérez

Brain-computer interfaces (BCIs) started being used in clinical scenarios, reaching nowadays new fields such as entertainment or learning. Using BCIs, neuronal activity can be monitored for various purposes, with the...

Tutorial2023

26th European Conference on Artificial Intelligence (ECAI 2023)

Decentralized Federated Learning: Enabling Collaborative AI With Enhanced Trust and Efficiency

Alberto Huertas Celdrán, Enrique Tomás Martínez Beltrán, Pedro Miguel Sánchez Sánchez, Gérôme Bovet, Gregorio Martínez Pérez, Burkhard Stiller

Conference tutorial on decentralized federated learning: foundations, architectures, security, privacy and practical experimentation, presented at ECAI 2023.

Journal article2023

Neural Computing and Applications

Analyzing the impact of Driving tasks when detecting emotions through brain--computer interfaces

Mario Quiles Pérez, Enrique Tomás Martínez Beltrán, Sergio López Bernal, Gregorio Martínez Pérez, Alberto Huertas Celdrán

Traffic accidents are the leading cause of death among young people, a problem that today costs an enormous number of victims. Several technologies have been proposed to prevent accidents, being brain--computer interf...

Related Research