Decomposing Real Square Matrices via Unitary Diagonalization

Théo Trouillon, Christopher R. Dance, Éric Gaussier, Guillaume BouchardarXiv 2016 · DOI · arXiv

Abstract

Diagonalization, or eigenvalue decomposition, is very useful in many areas of applied mathematics, including signal processing and quantum physics. Matrix decomposition is also a useful tool for approximating matrices as the product of a matrix and its transpose, which relates to unitary diagonalization. As stated by the spectral theorem, only normal matrices are unitarily diagonalizable. However we show that all real square matrices are the real part of some unitarily diagonalizable matrix.

Introduction

In linear algebra, eigenvalue decomposition (diagonalization) is a cornerstone for understanding linear operators. However, the Spectral Theorem imposes a strict limitation: a matrix can be unitarily diagonalized (written as $A = S\Lambda S^*$) if and only if it is "normal" ($AA^* = A^*A$). For real-valued matrices, this constraint essentially limits the most useful forms of this decomposition to symmetric matrices.

This poses a significant challenge for modeling real-world datasets—such as word co-occurrence matrices, social networks, or knowledge graphs—which are inherently asymmetric. For instance, if "Alice follows Bob," it does not necessarily follow that "Bob follows Alice." To handle this asymmetry in machine learning, researchers typically rely on Singular Value Decomposition (SVD). While effective, SVD assigns two different vectors to every entity (one for its role as a "subject" and another as an "object"), doubling the parameter count and losing the intuitive benefit of a single, unique representation for each object. This paper proposes a theoretical bridge to maintain the simplicity of diagonalization while capturing asymmetric relationships.

Methods: The Complex Bridge

The authors address the limitation of the Spectral Theorem by moving from the real numbers into the complex plane. Their primary contribution is an elegant proof demonstrating that any real square matrix can be represented as the real part of a unitarily diagonalizable complex matrix.

The Construction

For any real square matrix $A \in \mathbb{R}^{n \times n}$, the authors define a complex matrix $X$ as: $$X = A + iA^\top$$

The Normality Proof

The authors prove that this specific construction of $X$ is always a "normal" matrix. Because $X$ is normal, the Spectral Theorem guarantees that it can be unitarily diagonalized: $$X = S\Lambda S^*$$ where $S$ is a unitary matrix and $\Lambda$ is a diagonal matrix of eigenvalues.

The Projection

By taking the real part of this complex decomposition, the original asymmetric matrix $A$ is perfectly reconstructed: $$A = Re(S\Lambda S^*)$$ This method effectively "projects" a complex-valued symmetric decomposition onto the real subspace to recover asymmetry, allowing for a single-vector representation ($s_i$) for each entity.

Key Theoretical Insights

Asymmetry via Complex Numbers

The most profound insight is that the imaginary component of a complex number naturally represents the "direction" of a relationship. While the dot product $s_i \Lambda s_j$ in the real domain is always symmetric, the conjugate transpose ($s^*$) in the complex domain introduces a sign flip in the imaginary part. This sign flip allows the model to distinguish between $(i, j)$ and $(j, i)$ relationships.

The 2k Rank Bound

The paper establishes a theoretical upper bound on the dimensionality required for this decomposition. If a real matrix $A$ has rank $k$, it can always be reconstructed using a complex unitary diagonalization of rank $2k$. This provides a guarantee on how much "space" is needed in the complex domain to represent real-world data accurately.

Sign-Rank Preservation

The authors extend these findings to "sign matrices" (matrices of 1s and -1s), showing that any sign matrix with a sign-rank of $k$ can be reconstructed using a $2k$-dimensional unitary diagonalization. This is particularly relevant for binary relational data, such as predicting the existence of a link in a network.

Impact and Applications

Although this is a theoretical mathematics paper, it provides the foundational logic for the ComplEx (Complex Embeddings) model. ComplEx has become a state-of-the-art approach for knowledge graph completion, evaluated on standard benchmarks like FB15K and WN18. By utilizing the real part of complex diagonalizations, ComplEx achieves the parameter efficiency of symmetric models while maintaining the expressive power to model asymmetric relations.

Limitations and Future Work

The authors acknowledge several open areas for research:

  • Non-Uniqueness: The decomposition is not unique; many complex matrices can share the same real part, meaning there are multiple possible embeddings for the same data.
  • Rank Efficiency: While the $2k$ bound is a safe theoretical limit, it may not be the minimal representation. Finding the most compact complex representation for a given real matrix remains an open challenge.
  • Optimization: As a theoretical work, the paper does not detail the optimization challenges of learning these complex values via gradient descent, a topic addressed in subsequent applied literature.

In conclusion, by proving that all real square matrices are the real part of a unitarily diagonalizable matrix, the authors provide a rigorous mathematical justification for using complex-valued embeddings to model asymmetric real-world systems.

Summary updated

Abstract

Diagonalization, or eigenvalue decomposition, is very useful in many areas of applied mathematics, including signal processing and quantum physics. Matrix decomposition is also a useful tool for approximating matrices as the product of a matrix and its transpose, which relates to unitary diagonalization. As stated by the spectral theorem, only normal matrices are unitarily diagonalizable. However we show that all real square matrices are the real part of some unitarily diagonalizable matrix.
BibTeX
@misc{trouillon2016decomposing,
  author = {Théo Trouillon and Christopher R. Dance and Éric Gaussier and Guillaume Bouchard},
  title = {{Decomposing Real Square Matrices via Unitary Diagonalization}},
  year = {2016},
  eprint = {1605.07103},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1605.07103},
}

Loading related content...

Figure