Papers
Topics
Authors
Recent
Search
2000 character limit reached

Ramanujan Subspace Pursuit (RSP)

Updated 31 May 2026
  • Ramanujan Subspace Pursuit (RSP) is a greedy iterative algorithm that decomposes any finite-length signal into a unique sum of exactly-periodic components using orthogonal projections onto Ramanujan subspaces.
  • It leverages Ramanujan sums to construct these subspaces, enabling precise identification of both overt and latent integer periodicities regardless of signal length or divisibility.
  • The fast RSP variant (FRSP) significantly reduces computational complexity to O(N log N), enhancing period estimation accuracy and robustness in diverse applications such as signal processing and sequence analysis.

The Ramanujan Subspace Pursuit (RSP) is a greedy iterative signal decomposition algorithm that uniquely represents any finite-length signal as a sum of exactly periodic components. RSP operates by sequentially identifying and subtracting the most energetic exactly-periodic structure at each step, leveraging orthogonal projections into a hierarchy of Ramanujan subspaces. The algorithm’s backbone is an explicit construction of these subspaces using Ramanujan sums, which enable the discovery of both overt and latent integer periodicities regardless of signal length or divisibility. This methodology, along with its computationally optimized fast variant (FRSP), provides precise, robust decomposition and period estimation capabilities for applications in signal processing, sequence analysis, and beyond (Deng et al., 2015).

1. Ramanujan Subspaces: Construction and Properties

For integer period qq, the Ramanujan sum cq(n)c_q(n) is defined as:

cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}

These sums are qq-periodic in nn. The circulant Ramanujan matrix BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q} embeds these sums:

Bq=(cq(0)cq(q1)cq(1) cq(1)cq(0)cq(2)  cq(q1)cq(q2)cq(0))\mathbf{B}_q = \begin{pmatrix} c_q(0) & c_q(q-1) & \cdots & c_q(1) \ c_q(1) & c_q(0) & \cdots & c_q(2) \ \vdots & \vdots & \ddots & \vdots \ c_q(q-1) & c_q(q-2) & \cdots & c_q(0) \end{pmatrix}

The Ramanujan subspace Sq\mathcal{S}_q is the range of Bq\mathbf{B}_q, with dimension equal to Euler’s totient ϕ(q)\phi(q). Every element cq(n)c_q(n)0 is exactly cq(n)c_q(n)1-periodic and not periodic for any cq(n)c_q(n)2. The orthogonal projector onto cq(n)c_q(n)3 is cq(n)c_q(n)4, satisfying cq(n)c_q(n)5 and cq(n)c_q(n)6, with the projection operation given by cq(n)c_q(n)7 for cq(n)c_q(n)8.

2. Periodicity Metric and Energy Quantification

Given cq(n)c_q(n)9 and a candidate period cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}0, one extends projection into cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}1 over the entire signal (using zero-padding or block-averaging as needed). Define the projected signal cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}2, and compute its sample autocorrelation:

cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}3

The periodicity metric is

cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}4

Analysis yields

cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}5

For cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}6,

cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}7

This metric allows the identification and ordering of dominant periodicities within a signal.

3. Greedy Decomposition: The RSP Algorithm

RSP decomposes a signal cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}8 by iteratively projecting the residual into all exactly-periodic Ramanujan subspaces and extracting the component whose periodicity metric is maximized. At iteration cq(n)=1kq gcd(k,q)=1ej2πkn/qc_q(n) = \sum_{\substack{1\leq k \leq q \ \gcd(k,q)=1}} e^{j2\pi k n/q}9 (starting with qq0):

  1. For each qq1:
    • Compute qq2.
    • Compute qq3.
  2. Select qq4.
  3. Update the residual: qq5.

After qq6 steps:

qq7

with energy conservation qq8. In the limit qq9, nn0, yielding a unique orthogonal sum of exactly-periodic components.

4. Computational Complexity and Fast RSP (FRSP)

Naïve RSP requires nn1 operations per iteration, due to nn2 projections (each nn3) per step. Fast RSP circumvents direct projection by exploiting the structure of periodic subspaces:

nn4

Here, nn5 is the space of all nn6-periodic signals, and nn7 is the projection into nn8. By maximum likelihood estimation,

nn9

BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}0 is computed by subtracting projections onto proper divisors of BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}1. If the autocorrelation is calculated via FFT methods (BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}2), the total per-iteration complexity becomes BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}3, yielding BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}4 overall.

5. Comparative Performance Across Period Estimation Methods

Experimental evaluations on synthetic BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}5 signals reveal that Ramanujan Periodicity Transforms (RPT) and Even-Period Synchronous Detection (EPSD) are limited to cases where period BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}6 divides length BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}7. Classical periodicity transforms (Small2Large, BestCorrelation, BestFrequency, Mbest) often miss true periods or yield spurious ones, particularly at low SNR or when BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}8. In contrast, RSP and FRSP identify all integer and non-integer periods, are robust to additive noise down to SNR BqRq×q\mathbf{B}_q \in \mathbb{R}^{q \times q}9 dB, and show accuracy Bq=(cq(0)cq(q1)cq(1) cq(1)cq(0)cq(2)  cq(q1)cq(q2)cq(0))\mathbf{B}_q = \begin{pmatrix} c_q(0) & c_q(q-1) & \cdots & c_q(1) \ c_q(1) & c_q(0) & \cdots & c_q(2) \ \vdots & \vdots & \ddots & \vdots \ c_q(q-1) & c_q(q-2) & \cdots & c_q(0) \end{pmatrix}0 (Hellinger-based periodic similarity) at Bq=(cq(0)cq(q1)cq(1) cq(1)cq(0)cq(2)  cq(q1)cq(q2)cq(0))\mathbf{B}_q = \begin{pmatrix} c_q(0) & c_q(q-1) & \cdots & c_q(1) \ c_q(1) & c_q(0) & \cdots & c_q(2) \ \vdots & \vdots & \ddots & \vdots \ c_q(q-1) & c_q(q-2) & \cdots & c_q(0) \end{pmatrix}1 dB, surpassing all compared methods (Deng et al., 2015). This suggests superior adaptability and reliability for complex, noisy, or non-ideal data scenarios.

6. Applications and Spectral Interpretation

RSP/FRSP is applicable to any context requiring the extraction of hidden, overt, or integer-valued periodicities, including but not limited to:

  • Biomolecular sequence analysis (e.g., latent repeats in DNA/protein)
  • Speech signal pitch and sub-harmonic estimation
  • Music rhythm and beat tracking
  • Mechanical vibration and fault diagnosis (e.g., gear-tooth periodicities)
  • General signal denoising and periodic feature extraction

In practical data analysis, these algorithms yield both an exact decomposition into orthogonal exactly-periodic signals and a spectral description via the Periodic Energy Spectrum (PES):

Bq=(cq(0)cq(q1)cq(1) cq(1)cq(0)cq(2)  cq(q1)cq(q2)cq(0))\mathbf{B}_q = \begin{pmatrix} c_q(0) & c_q(q-1) & \cdots & c_q(1) \ c_q(1) & c_q(0) & \cdots & c_q(2) \ \vdots & \vdots & \ddots & \vdots \ c_q(q-1) & c_q(q-2) & \cdots & c_q(0) \end{pmatrix}2

A plausible implication is that RSP/FRSP provides insight analogous to frequency spectra, but resolves fine integer-structured periodicities that may be hidden from classical spectral transforms.

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

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 Ramanujan Subspace Pursuit (RSP).