Papers
Topics
Authors
Recent
Search
2000 character limit reached

Direct Givens Rotation (DGR)

Updated 8 July 2026
  • Direct Givens Rotation is a method that computes 2×2 rotation parameters explicitly to zero selected vector components, serving key roles in QR updates and sparse factorizations.
  • In optimization and quantum computing, DGR represents orthogonal matrices as a product of plane rotations, facilitating parameter-efficient training and direct circuit compilation.
  • Variants like square-root-free and compensated algorithms demonstrate improved numerical stability and accuracy, balancing computational efficiency with precision in large-scale applications.

Direct Givens Rotation (DGR) denotes a family of constructions in which an orthogonal or unitary transformation is computed, parameterized, or applied directly through Givens rotations, i.e., transformations that act nontrivially on a two-dimensional coordinate plane and leave all other coordinates unchanged. In numerical linear algebra, DGR commonly refers to direct computation of the rotation coefficients that annihilate one component of a vector; in optimization and learning, it refers to representing an orthogonal map as an explicit product of plane rotations and optimizing the corresponding angles; in quantum and scientific computing, closely related constructions appear as fixed Givens-exchange circuits, adjacent-level qudit compilers, and factorized elimination schemes. The term is not fully standardized across the literature: some papers use “Direct Givens Rotation” explicitly, whereas others present closely corresponding methods under different names (Kawasaki et al., 15 Aug 2025, Borges, 26 Aug 2025, Ma et al., 2024).

1. Terminology and scope

The literature uses “Direct Givens Rotation” in more than one technical sense. In the narrowest sense, it means computing the actual rotation coefficients cc and ss for

G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},

without indirect modified representations. In a broader sense, it means parameterizing an orthogonal transformation itself as a product of Givens factors and optimizing those factors directly, rather than passing through a dense skew-symmetric parameter, an SVD, a Cayley transform, or per-factor numerical compilation (Borges, 26 Aug 2025, Ma et al., 2024, Jiang et al., 2022).

Domain Direct Givens object Characteristic use
Numerical linear algebra c,sc,s for a single 2×22\times2 rotation Zeroing one component or one matrix entry
Orthogonal optimization kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k) Learn or optimize an orthogonal matrix directly
Quantum circuits Two-mode or adjacent-level Givens blocks Variational ansatz or direct compilation
Sparse/factorized systems Sequences or equivalents of plane rotations QR updates, sparse factorization, join-aware elimination

This multiplicity of meanings is explicit in recent work. The low-rank APG paper uses “direct Givens rotation” for orbital optimization via a product of Givens matrices (Kawasaki et al., 15 Aug 2025). The square-root-free real-rotation paper uses “direct” to distinguish computation of the actual rotation parameters from older square-root-free methods that do not construct the actual rotation (Borges, 26 Aug 2025). Other papers describe nearly the same idea without the acronym, for example “Givens Coordinate Descent,” “Givens-rotation-based QR,” “Givens-exchange ansatz,” or direct SNAP–displacement realization of adjacent Givens factors (Jiang et al., 2022, Alavi et al., 25 Jun 2026, Job, 2023).

2. Classical numerical formulation

In the classical real case, the direct Givens problem is to construct

G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,

so that

G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.

The standard textbook formulas are

r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},

and appear explicitly in Givens-rotation-based QR implementations that compute the coefficients from the two active entries and immediately apply the row rotation to the trailing columns (Rong, 2018).

A substantial recent numerical strand concerns computing cc and ss0 more directly, more accurately, or without square roots. One square-root-free algorithm constructs a real Givens rotation by approximating

ss1

with ss2 or ss3, then renormalizes the preliminary ss4 by a second-order correction based on

ss5

and returns

ss6

Its reported simulations on ss7 random inputs showed higher average accuracy than a standard square-root-based branchwise algorithm; for Float64, the square-root-free method matched the rounded high-precision baseline in zero ulp ss8 of cases versus ss9 for the reference implementation (Borges, 26 Aug 2025).

A second line uses compensated arithmetic. One 2024 algorithm starts from the naive rotation computed with hypot, then builds a correction from the residuals

G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},0

and applies

G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},1

followed by G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},2, G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},3. The residuals are evaluated with fma-based error-free products or Dekker splitting, and the paper reports “perfect observed accuracy” for all three tested hypot variants in its large random experiment (Borges, 2024). A related compensated construction computes an accurate reciprocal hypotenuse

G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},4

from FMA-based residuals and then forms G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},5, G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},6; in a G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},7-sample experiment, the compensated method produced zero-ulp cosine and sine outputs in G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},8 of reported cases, versus about G=[cs sc],G[a b]=[r 0],G=\begin{bmatrix} c & s \ -s & c \end{bmatrix}, \qquad G\begin{bmatrix} a \ b \end{bmatrix} = \begin{bmatrix} r \ 0 \end{bmatrix},9 for the naive method (Borges, 2021).

Direct generation of c,sc,s0 unitary Givens matrices has also been analyzed from the perspective of per-entry error accumulation. A 2022 study compared LAPACK 3.9, LAPACK 3.10, and a new direct construction strategy, arguing that fewer operations contributing to each output entry can yield better average accuracy even when total operation count is larger. Its experiments showed improved average singular-value and backward-error behavior, particularly under repeated application of rotations (Pereira et al., 2022).

3. Direct parameterization of orthogonal transformations

In machine learning and variational many-body methods, DGR often means that the orthogonal map itself is parameterized as a product of Givens factors and trained through those factors. The clearest recent example is orthogonal fine-tuning of pretrained models. There, a frozen weight matrix c,sc,s1 is adapted multiplicatively as

c,sc,s2

with the forward map changing from c,sc,s3 to c,sc,s4. Original OFT parameterized c,sc,s5 through a dense skew-symmetric matrix c,sc,s6 and the Cayley transform

c,sc,s7

which is effectively c,sc,s8 in parameters per transformed c,sc,s9-dimensional layer. GOFT replaces this with a direct Givens product

2×22\times20

or, in the parallel form used for efficient depth reduction,

2×22\times21

Since 2×22\times22, the total parameter count becomes 2×22\times23. The relaxed variant qGOFT replaces each 2×22\times24 rotation block by a learned matrix

2×22\times25

and regularizes soft orthogonality via

2×22\times26

Experimentally, on GLUE with DeBERTaV3-base, GOFT used 2×22\times27M trainable parameters versus 2×22\times28M for 2×22\times29 while achieving the same average score kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)0; qGOFT with kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)1M reached kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)2 (Ma et al., 2024).

The same direct-angle philosophy appears in low-rank antisymmetric product of geminals. There the orbital/unitary part of the wavefunction, previously parameterized as kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)3 with an antisymmetric kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)4 and optimized by numerical differentiation, is reformulated as

kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)5

The rotation angles kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)6 become the variational parameters, and the gradient is computed analytically by an error-back-propagation-like formula over the ordered Givens chain. The update is global: kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)7 In the reported HkG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)8O rank-2 APG example, runtime fell from more than one week to less than kG(ik,jk;θk)\prod_k G(i_k,j_k;\theta_k)9 minutes after switching to the DGR formulation (Kawasaki et al., 15 Aug 2025).

These formulations share a common feature: orthogonality is enforced by construction at the local G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,0 level, and the trainable variables are the plane-rotation parameters themselves rather than a dense unconstrained surrogate.

4. Optimization over G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,1 and G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,2 by Givens coordinates

A distinct research line treats Givens factors as coordinates on the orthogonal group and builds optimization algorithms around single-plane or block-plane updates. In one formulation, optimizing G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,3 over

G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,4

is approached by Riemannian coordinate descent: choose a pair G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,5, solve the one-dimensional subproblem

G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,6

and update

G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,7

The method preserves orthogonality exactly at every step and interprets a single Givens factor as the manifold analogue of one Euclidean coordinate update. Under differentiability and Lipschitz assumptions on directional derivatives, the paper proves convergence to critical points and gives an G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,8 expected stationarity rate; it also reports practical effectiveness for sparse PCA and orthogonal tensor decomposition (Shalit et al., 2013).

For trainable embedding indexes, Givens Coordinate Descent (GCD) uses the special orthogonal group G=[cs sc],c2+s2=1,G= \begin{bmatrix} c & s\ -s & c \end{bmatrix}, \qquad c^2+s^2=1,9 more explicitly. A learned rotation G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.0 appears in

G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.1

with loss

G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.2

Rather than recomputing G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.3 by SVD or maintaining it through a Cayley transform, GCD forms the skew score matrix

G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.4

selects G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.5 disjoint coordinate pairs, and updates

G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.6

The random variant GCD-R has a sublinear convergence guarantee on geodesically convex objectives, while the greedy and steepest variants dominate it empirically; the paper also argues that the block-disjoint structure is substantially more parallelizable than SVD-based rotation learning (Jiang et al., 2022).

Approximation-oriented work pushes the idea further. One paper approximates an orthogonal matrix by a product of “extended orthogonal Givens transformations”

G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.7

where each local G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.8 block is either a standard Givens rotation

G[a b]=[r 0].G\begin{bmatrix} a\ b\end{bmatrix} = \begin{bmatrix} r\ 0\end{bmatrix}.9

or a sparse reflector

r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},0

The local update is chosen in closed form from a r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},1 SVD, and each factor costs 6 arithmetic operations to apply; the method is used to build fast approximate PCA transforms (Rusu et al., 2019). Another paper studies “effective Givens factorization” through manifold coordinate descent on

r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},2

which drives r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},3 toward a signed permutation while accumulating the Givens factors. It combines constructive approximation results with a negative theorem showing that generic unitary matrices are not effectively approximable by only r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},4 Givens factors (Frerix et al., 2019).

5. Quantum and wavefunction applications

Quantum computing and computational chemistry use DGR-like constructions in two main ways: as variational ansatz layers and as direct hardware-oriented compilation primitives.

For molecular variational eigensolvers, a fixed-topology Givens-exchange ansatz uses a two-qubit macro

r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},5

while leaving r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},6 and r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},7 invariant. The full ansatz is

r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},8

and the reported experiments use r=a2+b2,c=ar,s=br,r=\sqrt{a^2+b^2},\qquad c=\frac{a}{r},\qquad s=\frac{b}{r},9, hence

cc0

Across six fixed seeds, the reported mean errors were cc1 Hartree for LiH-6, cc2 Hartree for Hcc3O-8, and cc4 Hartree for the BeHcc5-6 candidate, all below chemical accuracy cc6. The paper is explicit, however, that the full circuit is not globally particle-number conserving because the cc7 layers can change Hamming weight (Alavi et al., 25 Jun 2026).

In qudit compilation, a target adjacent-level Givens rotation on cc8,

cc9

is approximated by the fixed SNAP–displacement block

ss00

with direct parameter map

ss01

This removes the need for per-rotation numerical optimization at compile time. The paper reports empirical single-step infidelity scaling approximately as ss02, and for segmented full-circuit compilation approximately as ss03, with total arithmetic complexity ss04 for compiling an arbitrary ss05-dimensional unitary into adjacent Givens factors plus SNAP gates (Job, 2023).

These works use different physical objects than classical real Givens rotations, but the structural theme is the same: explicit two-mode or adjacent-level rotations are treated as the primary degrees of freedom rather than as hidden subroutines inside a denser parametrization.

6. Structured large-scale computation and systems

Direct Givens constructions also appear in system-oriented algorithms where the key advantage is locality of update. In spatial QR decomposition, the classical formula

ss06

is used directly inside a Givens-rotation-based QR algorithm, with one function computing ss07 and the pivot-column update, and another applying the same rotation to trailing entries of the two affected rows. The paper’s contribution is to map this irregular dependence structure into a spatial T2S program with separate ss08 and ss09 processing elements, not to alter the direct computation itself (Rong, 2018).

For all-subset regression in Gaussian-network learning, the central primitive is a QR-decomposition traversal by adjacent column swaps followed by Givens retriangularization. Starting from an existing upper-triangular ss10, one swaps adjacent columns and then applies a single Givens rotation ss11 to restore triangular form. The paper names this combined update a GRC operation and proves that its greedy traversal covers all family regressions with the minimum number ss12 of such updates (Alipourfard et al., 2019).

In Gaussian Markov random fields, incomplete orthogonal factorization by Givens rotations is used to construct a sparse approximate Cholesky factor. With

ss13

successive Givens eliminations and threshold dropping produce an upper-triangular ss14 such that

ss15

approximates the target precision matrix. The method is slower than standard Cholesky in optimized libraries, but it is described as stable, robust, and often sparser, especially when conditioning leads naturally to rectangular stacked systems (Hu et al., 2013).

A more radical factorization appears in QR over database joins. Figaro proves that its head-and-tail computations are equivalent to a long sequence of Givens rotations on the materialized join output, but it pushes those effects through the join factorization and avoids materializing the join. For a Cartesian-product block ss16, the sequence

ss17

with

ss18

produces a head row and tail rows exactly described by the operators ss19 and ss20. The full method computes an almost upper-triangular ss21 in ss22 time for acyclic joins, where ss23 is input size and ss24 is the number of data columns, and then post-processes to the final ss25 (Olteanu et al., 2022).

7. Limits, caveats, and recurring misconceptions

The first caveat is terminological. DGR does not denote a single universally fixed algorithm. It may mean direct coefficient construction for one ss26 rotation, direct parameterization of an orthogonal matrix as a product of Givens factors, or a physically motivated two-mode rotation ansatz. Treating these as identical obscures important differences in objectives, guarantees, and computational costs.

A second caveat concerns “expressiveness” claims. In Givens-based orthogonal fine-tuning, the theorem proved is that for any ss27 and any ss28 of the same norm, there exist ss29 Givens rotations mapping ss30 to ss31. The paper then interprets this operationally as equivalent expressiveness for the rotations relevant to fine-tuning. This is narrower than a global parameterization theorem for all of ss32, whose dimension is ss33 (Ma et al., 2024).

A third caveat is computational. Direct angle parameterizations can reduce parameter count while increasing training cost. In the QNLI timing appendix for GOFT/qGOFT, per-batch time is ss34s for OFT, ss35s for GOFT, and ss36s for qGOFT, so the advantage is primarily parameter efficiency and mergeable inference rather than raw training speed (Ma et al., 2024). Numerical direct-construction methods also retain hardware assumptions: the square-root-free and compensated algorithms are especially motivated by machines with fast FMA and slower square root, and some still require rescaling logic for extreme inputs (Borges, 26 Aug 2025, Borges, 2021).

A fourth caveat is structural. Effective approximation by a small number of Givens factors is strongly target-dependent. The negative theorem for effective Givens factorization shows that if

ss37

then, as ss38, the Haar measure of unitary matrices approximable within fixed error by ss39 Givens factors tends to zero. This strongly suggests that low-factor DGR is inherently most useful for structured transforms, learned operators with special geometry, or applications where approximation rather than exact representation is the objective (Frerix et al., 2019).

Finally, in quantum settings, “Givens” can be physically suggestive without implying a strict fermionic or hardware-native interpretation. The molecular Givens-exchange ansatz preserves excitation number only within the local ss40 subspace of the exchange block, while the full circuit does not preserve particle number because of the interleaved ss41 layers (Alavi et al., 25 Jun 2026). Similarly, the SNAP–displacement compiler gives an analytically mapped adjacent-level approximation, not an exact finite-depth identity between a Givens rotation and a fixed short gate block (Job, 2023).

Taken together, these strands show that Direct Givens Rotation is best understood as a unifying methodological pattern rather than a single algorithmic artifact: orthogonal structure is enforced or approximated through explicit two-dimensional rotations, and the computational question becomes how those local rotations are chosen, represented, and composed in a given domain.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (16)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Direct Givens Rotation (DGR).