NVIDIAElizabeth GoodmanBenchmark
GPU-Accelerated Clustering for Financial Instruments at Scale
Summary
Quantitative strategies need instrument groupings that capture both ordinary co-movement and dependence during market stress, while remaining stable and inexpensive to recompute. The workflow constructs rolling absolute Pearson-correlation and tail pairwise dependence matrices (TPDM), factorizes them with nonnegative SymNMF using AdaptGrow, and derives soft loadings, hard argmax labels, and structural-break diagnostics. A trace-based formulation reduces estimated peak storage from approximately 20n2 to 4n2 bytes, while row-sharded distributed execution communicates O(nk) data; the system uses eigenspectrum-based selection between full-batch and block-stochastic AdaGrad. Across 250 synthetic windows, the setup tests planted membership changes and a joint tail-stress episode: ARI is intended to identify reclassification, whereas TPDM reveals co-crash dependence that ordinary correlation can miss. Reported factorization timings include 13.0 and 12.4 seconds for 100,000 instruments across four GB200 GPUs, and approximately two and four minutes for one million instruments across 64 GPUs on 16 nodes, not end-to-end timings.
Context
Instrument groupings are not directly observable or stable: factor exposures drift, classifications change, and dependencies can shift sharply during market stress. Hard clustering assigns each instrument to one group and can mask graded exposures, while dense soft factorization methods have historically been limited to moderate instrument counts. The workflow is motivated by the need to separate routine variation from structural change and rerun clustering as new returns arrive.
Approach / What changed
The workflow builds rolling absolute Pearson-correlation and tail pairwise dependence matrices, selects a fixed factorization rank from an initial eigenspectrum, and independently fits SymNMF in each window with AdaptGrow. AdaptGrow chooses full-batch or block-stochastic AdaGrad from the post-rank spectrum. A memory-efficient trace formulation, GPU acceleration, and row-sharded PyTorch Distributed execution support approximately 100,000 instruments on one GB200 and one million across 16 nodes. Row loadings provide soft factors, while row-wise argmax produces hard labels.
Takeaways
The memory-efficient SymNMF formulation reduces estimated peak storage from approximately 20n2 to 4n2 bytes plus smaller factor buffers, allowing an approximately 100,000-instrument dependence matrix to fit on one NVIDIA GB200.
AdaptGrow uses the eigenspectrum to choose between full-batch AdaGrad and block-sampled gradients with SVRG correction, then expands the sample toward the full gradient if progress stalls.
In the synthetic experiment, about 9% of instruments lie at cluster boundaries; SymNMF preserves graded loadings for them, while hard argmax and spherical k-means assign them to single groups. Near-rank-1 TPDM inputs make hard angular partitions unstable.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.