Introduction
Traditional convex optimization software pipelines typically follow a rigid sequence: canonicalization of a high-level problem description into a standard form, followed by "matrix stuffing" into a large sparse matrix for a low-level solver. This approach faces significant hurdles with modern hardware and complex operators. Sparse matrix factorizations are notoriously difficult to parallelize on GPUs or distributed systems. Furthermore, representing structured linear operators—such as 2D convolutions or FFTs—as generic sparse matrices is memory-intensive and ignores specialized algorithms that can compute these operations much faster.
The Proposed Architecture
This paper proposes a fundamental shift: replacing static matrix representations with dynamic computation graphs. In this new architecture, the modeling framework generates a solver represented as a Directed Acyclic Graph (DAG) where nodes are mathematical operations and edges represent data flow.
By leveraging frameworks like TensorFlow, the library cvxflow allows solvers to use abstract linear operators. Instead of a giant, anonymous matrix, a convolution is represented as a specific convolution node in the graph, enabling the use of highly optimized GPU kernels (e.g., cuDNN). This architecture specifically favors first-order and indirect methods, which rely on repeated matrix-vector products and are more easily expressed as computation graphs than the complex factorizations required by interior-point methods.
Experimental Evaluation and Results
The effectiveness of this architecture was evaluated using synthetic benchmarks designed to highlight different computational loads, including regularized least squares, Lasso problems, and nonnegative deconvolution. The authors compared cvxflow against the native C implementation of the Splitting Conic Solver (SCS).
As shown in the experimental results, cvxflow achieves substantial speedups on structured problems. For large-scale nonnegative deconvolution, the TensorFlow-based solver on a GPU completed the task in 13 seconds, whereas the native C implementation of SCS required 105 seconds. Notably, the native solver spent nearly half its time (52 seconds) merely constructing the sparse matrix—a bottleneck entirely bypassed by the computation graph approach. While native C solvers remain competitive for purely sparse problems, the graph-based approach scales significantly better for large, structured datasets and dense problems, where GPU acceleration can provide over 100x speedups compared to standard CPU-based sparse solvers.
Conclusion
By building on top of modern computation graph frameworks, optimization researchers can "inherit" years of engineering effort spent on GPU kernels and distributed computing. This architecture decouples algorithmic logic from hardware execution, allowing for platform independence and high performance. While overhead remains a concern for small problems and interior-point methods require further development for graph-based execution, this approach represents a scalable path forward for large-scale convex optimization.
Summary updated