The Science Behind ‘Never Forget’: How Brain-Like AI Guards Networks From New and Old Threats Alike

A new study led by researchers from Pennsylvania State University, University of Michigan, and Quantum Ventura introduces a brain-inspired cybersecurity system that can continuously learn to identify new cyber threats while retaining knowledge of previous attacks. The research presents a hierarchical spiking neural network architecture that mimics how the human brain processes information, offering a more energy-conscious approach to network intrusion detection.
The Cybersecurity Learning Problem
Network intrusion detection systems face a persistent dilemma. They must adapt to constantly evolving cyber threats while maintaining their ability to recognize previously encountered attacks. Most current systems suffer from “catastrophic forgetting” – when they learn to identify new attack patterns, they often lose their ability to detect older threats that they previously recognized.
In conventional backpropagation networks, adapting to new data often requires re-training the entire network, which can drastically alter weights and lead to a loss of previously learned patterns. The spiking neural network approach, with its localized structural plasticity and adaptive learning rules, sidesteps this issue by dedicating new resources to new knowledge rather than overwriting old knowledge.
This challenge becomes particularly acute in real-world cybersecurity environments where comprehensive labeled data is scarce and attacks evolve rapidly. The sparse, event-driven nature of network intrusions makes them well-suited for spiking neural networks – computational models that process information through discrete electrical pulses, much like biological neurons.
A Two-Phase Detection Strategy
The research team developed a hierarchical system that breaks down intrusion detection into two distinct phases, following how the brain processes information through specialized pathways.
Phase One employs a lightweight spiking neural network that acts as an initial filter, making a basic determination about whether incoming network traffic appears benign or potentially malicious. This static network uses 100 neurons and processes network features encoded as spike trains – sequences of electrical pulses that represent data.
Phase Two activates only when the first phase identifies potential threats. This dynamic network performs detailed classification to identify the specific type of attack detected. Unlike the first phase, this network can grow and adapt its structure based on new threats it encounters.
Biological Learning Mechanisms
The system incorporates several brain-inspired learning mechanisms that enable continuous adaptation:
Structural Plasticity allows the network to add new neurons when it encounters attack patterns that don’t match existing knowledge. When the system identifies a poorly understood threat, it creates new neurons specifically designed to learn that pattern, preventing disruption of existing knowledge.
Adaptive Learning Rules modulate how strongly connections between neurons change based on their experience. New neurons exhibit high plasticity, allowing rapid learning of new patterns. As neurons become specialized for particular threats, their plasticity decreases, stabilizing their knowledge and preventing interference from new learning.
Firing Factor Tracking monitors each neuron’s activity history to determine its learning stability. The “firing factor” acts like a learning confidence score for each neuron – those that have consistently and successfully identified a particular threat develop a high firing factor, which signals the system to “lock in” that knowledge by reducing the neuron’s plasticity. Conversely, neurons with a low firing factor remain more open to change or become candidates for pruning, ensuring the network remains agile and focused on relevant threats.
Semi-Supervised Learning Approach
The system covers the scarcity of labeled cybersecurity data through a semi-supervised approach. After the network self-organizes through unsupervised learning, researchers use small amounts of labeled data to assign functional roles to neurons. This process involves monitoring the network’s spiking activity with a curated set of labeled attack data – neurons that show high firing rates in response to a specific attack type are tagged with that functional role, creating targeted classification without requiring large, fully labeled datasets.
This approach significantly reduces the need for extensively labeled datasets, making the system practical for real-world deployment where obtaining comprehensive labeled cybersecurity data proves difficult and expensive.
Performance and Adaptation Results
Testing on the UNSW-NB15 benchmark dataset validated the system’s ability to learn new attack types sequentially while maintaining knowledge of previous threats. The dynamic network achieved 85.3% overall accuracy, vastly outperforming a static baseline system that reached only 80.0% accuracy under the same conditions.
The hierarchical approach showed particular strength in recall performance – the ability to correctly identify actual attacks – which is critical for cybersecurity applications. The system successfully identified most attack classes with high recall rates, indicating strong pattern learning and knowledge retention capabilities.
Structural analysis revealed the network’s adaptive nature. Starting with few neurons, it dynamically expanded to approximately 90 neurons as it encountered different attack classes throughout the learning process. This growth pattern contrasts sharply with fixed-capacity systems that cannot adapt their architecture to new threats.
Energy Performance and Hardware Suitability
Simulations using Intel’s Lava framework [https://github.com/lava-nc/lava] confirmed the system’s energy potential. Lava, Intel’s open-source software framework for developing neuromorphic applications, provides advanced simulation capabilities that bridge the gap between research algorithms and deployment on Intel’s Loihi neuromorphic chips. The framework enables researchers to accurately model the sparse, event-driven computation that makes neuromorphic systems fundamentally more energy-conscious than conventional processors.
The hierarchical architecture operates with high sparsity – very low average spike rates per neuron (approximately 0.0008 for the detection phase and 0.001-0.002 for the classification phase over 200 time steps). This level of sparsity significantly exceeds what typical artificial neural network conversion techniques achieve, demonstrating the natural alignment between spiking neural networks and neuromorphic hardware architectures.
This inherent sparsity directly translates to potential energy savings, as computation occurs only when neurons generate spikes – a fundamental advantage of neuromorphic computing where processing power scales with activity rather than clock cycles. The event-driven processing nature makes the system particularly well-suited for deployment on specialized neuromorphic hardware like Intel’s Loihi processors, which are specifically designed to replicate brain-like computation patterns and can potentially deliver orders of magnitude improvement in energy performance for spike-based applications.
Real-World Applications
The research covers several practical cybersecurity needs:
Continuous Threat Evolution – The system can adapt to new attack methods without losing ability to detect established threats, addressing the rapid evolution of cybersecurity landscapes.
Resource Efficiency – The hierarchical design filters benign traffic efficiently, reducing computational load and focusing processing power on genuine threats.
Reduced Data Requirements – The semi-supervised approach works with limited labeled data, practical for organizations with constrained cybersecurity datasets.
Hardware Deployment – High operational sparsity makes the system suitable for low-power, edge computing environments where energy consumption is critical.
Technical Innovation
The study introduces several novel technical contributions:
Adaptive Spike-Timing-Dependent Plasticity (Ad-STDP) modifies traditional learning rules by incorporating neuron firing history. This creates a balance between learning new patterns and preserving existing knowledge.
Dynamic Network Growth strategically adds neurons when existing ones cannot adequately represent new patterns, preventing knowledge interference.
Hierarchical Processing separates detection and classification deliverables, optimizing resource usage and improving learning focus.
Implications for Cybersecurity’s Evolution
The research represents the first application of hierarchical dynamic spiking neural networks to cybersecurity’s lifelong learning problem. While the system shows strong performance, the researchers acknowledge areas for continued development, including refinement of the adaptive learning rules and evaluation on more complex datasets.
The work opens pathways for resilent, energy-conscious cybersecurity systems that can continuously adapt to evolving threats while maintaining operational knowledge – a critical capability as cyber attacks become increasingly sophisticated and frequent.
Citation: Mia, M. Z. A., Bal, M., Lu, S., Nishibuchi, G. M., Chelian, S., Vasan, S., & Sengupta, A. (2025). Neuromorphic Cybersecurity with Semi-supervised Lifelong Learning. arXiv preprint arXiv:2508.04610v2.
