Abstract
We consider the problem of recovering a complex signal $x \in \mathbb{C}^n$ from $m$ intensity measurements of the form $|a_i x|$, where $a_i$ is a measurement row vector. Our focus is on the general compressive phase-retrieval problem where measurement vectors are unconstrained and $x$ is $K$-sparse. We introduce PhaseCode, a novel family of algorithms based on a sparse-graph coding framework. Our Unicolor PhaseCode algorithm can provably recover all but a tiny $10^{-7}$ fraction of significant signal components using $m = 14K$ measurements—a small constant factor from the fundamental limit—with optimal $O(K)$ decoding time and memory complexity. By utilizing coding-theoretic tools like density evolution, PhaseCode complements popular approaches based on convex relaxation and semi-definite programming, offering a constructive, capacity-approaching solution for massive signals.
Introduction
In physical systems such as optical imaging, X-ray crystallography, and astronomy, detectors often capture only the intensity (magnitude) of a signal, while the phase information is lost. Recovering the original complex signal from these magnitude-only measurements is the classic phase retrieval problem. When the signal is high-dimensional but sparse—meaning only $K$ out of $n$ components are non-zero—the challenge becomes compressive phase retrieval.
While the theoretical limit for unique recovery of a $K$-sparse signal is approximately $4K$ measurements, existing algorithms struggle to reach this efficiency without prohibitive computational costs. Convex optimization methods, such as Semi-Definite Programming (SDP), require $O(K^2 \log n)$ measurements and $O(n^3)$ complexity, rendering them impractical for large-scale data. PhaseCode addresses this gap by providing a framework that is simultaneously measurement-efficient, computationally fast, and memory-light.
The PhaseCode Framework
PhaseCode departs from traditional optimization by framing measurement matrix design as a sparse-graph coding problem, conceptually similar to Low-Density Parity-Check (LDPC) codes.
Bipartite Graph Design
The measurement matrix is structured as a bipartite graph where left nodes represent signal components and right nodes represent measurements. However, because phase information is missing, a standard LDPC "peeling" decoder cannot be applied directly. To overcome this, PhaseCode utilizes Trigonometric Modulation. Each measurement node in the graph consists of four specifically designed trigonometric measurements. This allows the decoder to employ a "guess and check" strategy to resolve both magnitudes and relative phases.
The "Coloring" Algorithm
PhaseCode employs an iterative message-passing algorithm to resolve the signal:
- Singletons: The algorithm identifies measurements connected to only one active signal component. These provide the magnitude but leave the phase relative to a global coordinate unknown.
- Doubletons and the Giant Component: To resolve phases, the algorithm uses "doubletons" (measurements connected to two components) to link isolated components. This process assigns a local phase coordinate, or "color," to components.
- Phase Synchronization: As more components are linked, they form a "giant component" sharing a consistent relative phase. Once this reference is established, the algorithm iteratively "peels" and resolves the remaining signal components.
Optical Hardware Compatibility
In practical optical systems, arbitrary measurement matrices are often impossible to implement. PhaseCode addresses this through a Fourier-friendly adaptation. By structuring the sparse graph using the Chinese Remainder Theorem (CRT), the authors demonstrate that the algorithm's mathematical guarantees can be achieved using standard optical hardware, such as cascades of diagonal mask matrices and Fourier transform lenses.
Performance and Results
PhaseCode achieves unprecedented scale and speed through its optimal $\Theta(K)$ time and memory complexity. In experimental simulations, the algorithm successfully recovered a signal with $K=10,000$ non-zero components from a signal of length $n=10^{10}$ in under 40 seconds on a standard laptop.
Key efficiency benchmarks include:
- Regular PhaseCode: Recovers a $1 - 10^{-7}$ fraction of the signal with $14K$ measurements.
- Irregular PhaseCode: By tuning the connections in the bipartite graph (using a truncated harmonic degree distribution), the algorithm approaches the theoretical capacity, recovering signals with $4K(1+\epsilon)$ measurements.
- Robustness: For noisy environments, the authors introduced "almost-linear" and "sublinear" schemes. While these increase complexity to $\Theta(K \log^3 n)$, they maintain high reliability in the presence of measurement corruption.
Limitations and Future Work
While PhaseCode represents a significant leap in compressive phase retrieval, certain constraints remain. The capacity-approaching guarantees rely on large $K$ asymptotics and the assumption that non-zero components are uniformly distributed. Additionally, while the base algorithm is exceptionally fast, the robust versions required for noisy real-world data sacrifice pure linear complexity for logarithmic factors. Future research may focus on further narrowing the gap between the robust schemes and the $O(K)$ ideal, as well as refining the CRT-based designs for specific physical hardware constraints.
Summary updated