Leveraging Sparsity to Speed Up Polynomial Feature Expansions of CSR Matrices Using $K$-Simplex Numbers
Andrew Nystrom, John Hughes

TL;DR
This paper introduces a novel algorithm for polynomial feature expansion of CSR matrices that uses $K$-simplex numbers to improve efficiency and avoid densification, significantly reducing computation time.
Contribution
The paper presents the first algorithm for polynomial expansion directly on CSR matrices using a $K$-simplex number-based bijection, enhancing speed and space efficiency.
Findings
Reduces expansion time complexity by a factor of $d^K$.
Derives specific functions for $K=2$ and $K=3$ cases.
Demonstrates improved performance over standard methods.
Abstract
An algorithm is provided for performing polynomial feature expansions that both operates on and produces compressed sparse row (CSR) matrices. Previously, no such algorithm existed, and performing polynomial expansions on CSR matrices required an intermediate densification step. The algorithm performs a -degree expansion by using a bijective function involving -simplex numbers of column indices in the original matrix to column indices in the expanded matrix. Not only is space saved by operating in CSR format, but the bijective function allows for only the nonzero elements to be iterated over and multiplied together during the expansion, greatly improving average time complexity. For a vector of dimensionality and density , the algorithm has average time complexity where is the polynomial-feature order; this is an improvement by a factor…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNeural Networks and Applications · Face and Expression Recognition · Fuzzy Logic and Control Systems
