arXiv:2608.29093cs.LGAug 2026

Manuscript Offprint

arXiv:2608.29093

Titans-QFWP: A Regime-Aware Hybrid Quantum Fast Weight Programmer for Portfolio Optimization

Ming-Kai Hung, Jun-Hao Chen, Yun-Cheng Tsai, Samuel Yen-Chi Chen

Ming-Kai Hung †^{\dagger}

Dept. of Technology Application

and Human Resource Development

National Taiwan Normal University

Taipei, Taiwan

Jun-Hao Chen †^{\dagger}

Dept. of Bioenvironmental

Systems Engineering

National Taiwan University

Taipei, Taiwan

Yun-Cheng Tsai †^{\dagger}

PecuLab LLC

Seattle, WA, USA

Samuel Yen-Chi Chen ∗^{*}

Wells Fargo

USA

Abstract—We propose Titans-QFWP, a hybrid reinforcement learning architecture integrating a Quantum Fast Weight Programmer with Titans-style memory (Persistence, Surprise, and Forgetting) for adaptive portfolio optimization. To address high-dimensional market features, we introduce an enhanced A3C 2^{2} framework with Hungarian-aligned K-means clustering and scaled log-return rewards. Evaluated on 468 S&P 500 stocks under an Equal-Parameter-Count (EPC) benchmark with approximately 3,000 trainable parameters, Titans-QFWP achieves strong performance (median ARR 0.4260, Calmar 8.5504, IR 0.8427). Ablation results reveal that quantum gating fundamentally reshapes memory component roles, with Persistence supporting drawdown control, Surprise contributing to return generation, and Forgetting providing additional stabilization. By stabilizing these quantum representations, the model enables defensive allocation during market drawdowns while preserving upside potential.

Index Terms—Deep Reinforcement Learning, Fast Weight Programmer, Portfolio Optimization, Quantum Machine Learning, Regime-Aware Architecture

I. INTRODUCTION

Financial markets are inherently time-varying [1] and non-stationary [2], driven by regime shifts and secular changes [3] that undermine traditional portfolio optimization [4], [5]. Deep Reinforcement Learning (DRL) addresses these challenges through sequential policy optimization [6]–[8], but it often struggles with high computational costs [9] and high-dimensional state spaces [10]. To manage such expansive spaces, static clustering is typically employed; however, it remains fundamentally incapable of capturing abrupt market transitions [11]. In the quantum domain, Variational Quantum Circuits (VQC) can exploit high-dimensional Hilbert spaces [12], yet they lack adaptability due to fixed parameterization [13]–[15]. Although the Quantum Fast Weight Programmer (QFWP) introduces dynamic weights [16], [17] to overcome this, its update mechanisms often degrade memory stability. To address these challenges, we propose a dynamically adaptive hybrid architecture with two key contributions:

  1. Titans-QFWP Architecture. Upgrading the original Q-A3C 2^{2} [18], we replace the VQC with Titans-QFWP. This architecture integrates QFWP with Titans-style memory (Persistence, Surprise, Forgetting) [19].

  2. Enhanced A3C 2^{2} Framework. We redesign the A3C 2^{2} reinforcement learning environment [18], incorporating Hungarian-aligned K-means clustering, a defensive cash action, and a scaled log-return reward [20].