Randomized Geometric Algebra Methods for Convex Neural Networks
Yifei Wang, Sungyoon Kim, Paul Chu, Indu Subramaniam, Mert Pilanci
TL;DR
The paper addresses training neural networks and transfer learning in hypercomplex spaces defined by Geometric/Clifford Algebra. It proposes randomized geometric algebra methods to efficiently compute generalized cross-products $\times(x_1,\dots,x_{d-1})$ and to recast two-layer ReLU networks $f^{\text{ReLU}}_{\theta}$ as convex optimization problems, aided by randomized embeddings and sketching. Key contributions include a GA-based convex reformulation, a randomized sampling algorithm for hyperplane arrangements, and empirical results showing faster training, improved training/test accuracy, and enhanced robustness on embedding-based NLP tasks using GPT-4 and BERT embeddings across IMDb, GLUE, and related datasets. The work highlights improved stability and potential for global optima in transfer learning with geometric algebra, with avenues for extending to LLM fine-tuning and GA-driven architectures.
Abstract
We introduce randomized algorithms to Clifford's Geometric Algebra, generalizing randomized linear algebra to hypercomplex vector spaces. This novel approach has many implications in machine learning, including training neural networks to global optimality via convex optimization. Additionally, we consider fine-tuning large language model (LLM) embeddings as a key application area, exploring the intersection of geometric algebra and modern AI techniques. In particular, we conduct a comparative analysis of the robustness of transfer learning via embeddings, such as OpenAI GPT models and BERT, using traditional methods versus our novel approach based on convex optimization. We test our convex optimization transfer learning method across a variety of case studies, employing different embeddings (GPT-4 and BERT embeddings) and different text classification datasets (IMDb, Amazon Polarity Dataset, and GLUE) with a range of hyperparameter settings. Our results demonstrate that convex optimization and geometric algebra not only enhances the performance of LLMs but also offers a more stable and reliable method of transfer learning via embeddings.
