Spiking Neural Networks Bring Brain-Inspired Computing to Wall Street

Financial markets still wrestle with slow, computation-heavy modeling. Portfolio managers must constantly rebalance asset allocations to optimize returns while managing risk, but the mathematical complexity of these decisions grows exponentially with portfolio size. Existing optimization methods either require excessive computation time or settle for lower accuracy. Now, researchers have developed an approach that borrows strategies from biological neurons to solve these problems faster while maintaining competitive performance.

A group led by researchers at the University of Oulu and Taizhou University has created a portfolio optimization algorithm based on spiking neural networks, a computational model structured to emulate how neurons process information in the brain. Their method achieved the highest expected return among all tested approaches on a 50-asset portfolio, delivering 0.261% daily returns relative to 0.225% from exact mathematical solvers and just 0.092% from particle swarm optimization.

The research, published in Biomimetics, takes advantage of how biological neurons operate. Conventional processors perform continuous, clock-driven computation. Biological neurons instead accumulate inputs over time and fire electrical pulses only after passing specific thresholds. This event-driven architecture consumes far less energy than constantly active circuits.

The research team reformulated the classic Markowitz portfolio optimization problem, which balances risk against return, into a mathematical framework that fits within the leaky integrate-and-fire neuron model. In their setup, continuous gradient descent on the objective function corresponds to the gradual buildup of voltage in a neuron’s membrane. When constraints are violated, the system generates discrete correction spikes that push the solution back toward feasibility, just as neurons reset after firing. This framing allows financial optimization problems to behave like adaptive systems responding to feedback rather than static equations.

The authors describe their solver as a biomimetic approach for handling complex financial computations with high computational cost.

The algorithm alternates between two phases. During continuous descent, portfolio weights evolve according to gradient flow equations that minimize risk while maximizing returns. When constraint violations are detected through threshold comparisons, the solver applies fixed-magnitude corrections along constraint boundaries. This alternating mechanism reflects how neurons balance gradual state updates with abrupt corrections. These projection spikes enforce budget limits, cardinality restrictions that limit how many assets can be held, and transaction cost constraints.

The researchers tested their method on five years of daily price data from 100 liquid equities across major global indices. They evaluated portfolios ranging from 5 to 50 assets, comparing their spiking neural network solver against three established methods. The exact mixed-integer quadratic programming solver provides provably optimal solutions but scales poorly as problem size grows. Convex relaxation methods solve continuous approximations quickly but need post-processing to recover discrete solutions. Particle swarm optimization explores the solution space through stochastic search but offers no optimality guarantees.

For the largest test case with 50 assets and a requirement to select exactly 20, the spiking neural network solver achieved superior returns across various parameter configurations. Depending on settings, runtimes ranged from 0.1 to 8.2 seconds, with the high-quality configuration delivering the top return. For instance, the exact solver finished in 1.6 seconds but offered lower returns. Particle swarm optimization wrapped up in just 80 milliseconds yet delivered returns less than half those of the other methods.

The difference in solution quality stems from how each method handles constraints. Exact solvers apply discrete rules throughout optimization through sequential branching operations. The spiking neural network approach instead solves a relaxed continuous problem during optimization, allowing broader exploration of the solution space before recovering discrete portfolios through post-processing. This relaxation strategy can identify better local optima, although it introduces slightly greater risk variability.

The computational profile of the algorithm aligns neatly with neuromorphic hardware, specialized processors designed to execute spiking neural network dynamics efficiently. Unlike conventional computers that execute sequential instructions, neuromorphic chips like Intel Loihi and SpiNNaker implement massively parallel, event-driven architectures where individual processing units communicate through discrete spike events. Here, neuron connections encode constraint structures, and signal amplitudes represent optimization gradients.

Current neuromorphic processors show energy efficiency gains of 1,000 to 5,000 times compared to conventional graphics processors for certain spiking network workloads. The human brain runs complex computations on roughly 20 watts, a fraction of what conventional systems require, by using the same event-driven signaling strategy.

The researchers implemented their proof-of-concept in Python on standard consumer hardware to validate the algorithmic approach. While current runtimes are comparable to existing solvers, the key contribution lies in establishing the mathematical connection between portfolio optimization and spiking neural network dynamics. Actual deployment on neuromorphic processors could compress multi-second solution times to microseconds.

The parameter study revealed two operational regimes. Fast schedules with aggressive gradient descent rates and small projection magnitudes achieve sub-second runtimes suitable for latency-sensitive applications. High-quality schedules with slower gradient descent but larger projection steps maximize returns at the cost of longer computation. This flexibility means the solver can be tuned for either rapid response or higher quality results depending on trading needs. For practitioners, the researchers provide systematic guidelines for parameter selection based on portfolio size and quality requirements.

The moderate overlap in asset selections between different optimization methods reflects an inherent property of portfolio optimization. The efficient frontier contains many portfolios with similar risk-return characteristics but different asset combinations. The spiking neural network solver’s discrete recovery procedure successfully identifies feasible portfolios within this multiplicity of near-optimal solutions.

Outside of finance, the framework applies to any constrained quadratic program with linear inequalities. Resource allocation, network optimization, and sensor selection problems share the same mathematical structure. Practitioners can adapt the method by reformulating their problems in standard form and constructing appropriate constraint matrices.

The path to practical deployment requires mapping constraint matrices to neuron connectivity patterns on specific hardware architectures, optimizing spike routing protocols, and quantifying actual performance characteristics on neuromorphic platforms. These implementation steps would enable concrete assessment of speedup factors and energy efficiency gains.

The research opens several directions for future work. Formal convergence analysis could provide theoretical guarantees for the alternating gradient-projection dynamics. Extensions to more complex constraints like minimum lot sizes or environmental, social, and governance criteria would broaden applicability. Integration with online learning methods could enable adaptation to streaming market data without complete reoptimization.

The intersection of computational neuroscience, optimization theory, and quantitative finance exemplifies how insights from biological systems can inform engineering solutions. Natural selection has refined neural computation over millions of years to achieve considerable efficiency, robustness, and adaptability. By adopting these strategies, computational systems can reproduce some of those natural strengths.

As neuromorphic systems evolve from prototypes to production-grade tools, such algorithms could support real-time investment decisions that were once computationally out of reach. The combination of competitive solution quality, clear hardware acceleration pathways, and minimal parameter tuning requirements positions spiking neural network optimization as a practical alternative to established techniques.


Citation: Khan, A.H.; Mohammed, A.M.; Li, S. Portfolio Optimization: A Neurodynamic Approach Based on Spiking Neural Networks. Biomimetics 2025, 10, 808. https://doi.org/10.3390/biomimetics10120808

Related Articles

PHP Code Snippets Powered By : XYZScripts.com
★

Track This Company

Create a free account to add companies to your watchlist and get notified when patents, funding, or key developments change.