Algorithm-hardware co-optimization of the memristor-based framework for solving SOCP and homogeneous QCQP problems

Ao Ren, Sijia Liu, Ruizhe Cai, Wujie Wen, Pramod K. Varshney, Yanzhi Wang

TL;DR

This paper introduces a hardware-accelerated framework that uses memristor crossbars to solve complex convex optimization problems (specifically SOCP and QCQP) with unprecedented efficiency. By combining the Alternating Direction Method of Multipliers (ADMM) with the $O(1)$ matrix-solving capabilities of memristors, the authors reduce computational complexity from $O(N^4)$ in software to a "pseudo-$O(N)$" in hardware, achieving speedups of up to 150,000x.

What Problem Does This Paper Address?

Convex optimization is the backbone of modern signal processing, machine learning, and wireless communications. However, as datasets grow, traditional software solvers (like those using Interior Point Methods) hit a "scalability wall." For certain problems, the computational complexity can reach $O(N^4)$ or even $O(N^6)$, making them prohibitively slow for real-time or large-scale applications.

While memristor crossbars are known for performing matrix-vector multiplication at lightning speed, they face two major hurdles in optimization:

  1. Algorithmic Mismatch: Standard optimization algorithms aren't designed for the specific constraints of analog hardware.
  2. Hardware Constraints: Memristors can only represent non-negative values (conductance cannot be negative) and typically handle square matrices, whereas optimization problems often involve negative coefficients and non-square constraints.

Methods

The authors propose an Algorithm-Hardware Co-Optimization approach:

  • ADMM Integration: Instead of using standard solvers, they employ the Alternating Direction Method of Multipliers (ADMM). ADMM breaks down complex Second-Order Cone Programming (SOCP) and Quadratically Constrained Quadratic Programming (QCQP) problems into smaller sub-problems. Crucially, the most "expensive" sub-problem becomes solving a system of linear equations.
  • Memristor Linear Solver: The framework maps these linear equations onto a memristor crossbar. Because of Kirchhoff’s and Ohm’s laws, the crossbar can solve a linear system in $O(1)$ time—essentially at the speed of electricity.
  • Negative Element Elimination: To handle negative numbers in the optimization matrices, the authors use a mathematical "trick": they introduce auxiliary variables and additional rows/columns to the matrix, effectively transforming a system with negative coefficients into a larger, purely non-negative system that the hardware can process.
  • Iterative Refinement: The process iterates between the hardware-based linear solver and simple peripheral circuits (for $\ell_2$-norm calculations and dual variable updates).

Datasets

The study uses synthetically generated matrices created via Matlab’s randn and sprandn functions.

  • Sparsity: They tested constraint matrices with densities of 0.1 and 0.2 (meaning 10-20% of the elements were non-zero).
  • Scale: Optimization vectors ranged in size from $2^4$ to $2^{10}$ (up to 1024 variables).
  • Baselines: Results were compared against CVX, a gold-standard software-based convex optimization tool, running on an Intel i7 server.

Key Insights and Ideas

  • The "Pseudo-O(N)" Breakthrough: While the memristor solves the matrix part in $O(1)$, the peripheral circuits (ADCs/DACs and vector updates) take $O(N)$ time. Since the algorithm converges in a constant number of iterations for these problems, the total complexity scales linearly with the problem size ($N$), rather than polynomially ($N^4$).
  • Hardware-Friendly Decomposition: The choice of ADMM is the "secret sauce." It transforms a "hard" optimization problem into a "hardware-easy" linear algebra problem.
  • Robustness to Noise: Analog hardware is notoriously noisy due to process variations. A key insight was that the iterative nature of ADMM actually helps "self-correct" for some of these hardware inaccuracies, maintaining high accuracy even with 5% device variation.

Key Results

  • Speedup: The memristor-based framework achieved a maximum estimated speedup of $1.57 \times 10^5$ (157,000x) compared to the CVX software solver.
  • Energy Efficiency: The energy reduction was even more dramatic, reaching $1.32 \times 10^7$ (13.2 million times) more efficient than traditional CPU-based solving.
  • Accuracy: Even under 5% process variation (hardware noise), the system maintained over 94% accuracy for SOCP and 96% accuracy for QCQP problems.
  • Latency: For a problem with 1024 variables, the estimated solution time was less than 400μs.

Limitations and Future Work

  • Crossbar Size: Current single memristor crossbars are physically limited (typically 1024x1024). To solve even larger problems, the authors suggest using a Network-on-Chip (NoC) architecture to tile multiple crossbars together.
  • ADC/DAC Bottleneck: While the analog core is fast, converting signals between digital and analog domains remains a primary source of latency and power consumption.
  • Generalization: This paper focuses on SOCP and QCQP. While these cover many use cases, extending the framework to more general non-convex or semi-definite programming (SDP) remains a future challenge.

Summary updated

BibTeX
@inproceedings{ren2017algorithm,
  author = {Ao Ren and Sijia Liu and Ruizhe Cai and Wujie Wen and Pramod K. Varshney and Yanzhi Wang},
  title = {{Algorithm-hardware co-optimization of the memristor-based framework for solving SOCP and homogeneous QCQP problems}},
  booktitle = {ASP-DAC},
  year = {2017},
  doi = {10.1109/aspdac.2017.7858420},
}
Figure