QR and LQ Decomposition Matrix Backpropagation Algorithms for Square, Wide, and Deep -- Real or Complex -- Matrices and Their Software Implementation

Denisa A. O. Roberts, Lucas R. Roberts
9/19/2020
math.NAcs.LGcs.MS

Official code: D-Roberts/lq-backprop (4 stars, Python, TensorFlow, last commit 2025-07-30).

Abstract

This article presents matrix backpropagation algorithms for the QR decomposition of matrices $A_{m, n}$, that are either square (m = n), wide (m < n), or deep (m > n), with rank $k = min(m, n)$. Furthermore, we derive novel matrix backpropagation results for the pivoted (full-rank) QR decomposition and for the LQ decomposition of deep input matrices.

Show full abstract

Differentiable QR decomposition offers a numerically stable, computationally efficient method to solve least squares problems frequently encountered in machine learning and computer vision. Other use cases such as graph learning and network compression are listed in the article. Software implementation across popular deep learning frameworks (PyTorch, TensorFlow, MXNet) incorporate the methods for general use within the deep learning community. Furthermore, this article aids the practitioner in understanding the matrix backpropagation methodology as part of larger computational graphs.

View on arXivView PDF

Code Implementations(1)

TensorFlow

In SIAM's Int. Autodiff Conf Oral ['24] Algos for differentiable LQ matrix decomposition for all matrix orders.

40PythonJul 23, 20201 years ago
autodiffcomputer-visionlinear-algebranormalizationorthogonality+1 more

Similar Papers

Cite this paper

@article{roberts2020decomposition,
  title  = {QR and LQ Decomposition Matrix Backpropagation Algorithms for Square, Wide, and Deep -- Real or Complex -- Matrices and Their Software Implementation},
  author = {Denisa A. O. Roberts and Lucas R. Roberts},
  year   = {2020},
  eprint = {2009.10071},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.10071}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.10071.svg)](https://codeofpaper.com/paper/2009.10071)

Discussion