TL;DR
When analog signals get too loud for standard sensors, they flatline (clip), destroying data forever. "Modulo ADCs" cleverly avoid this by wrapping out-of-bounds signals back into range like a clock face—but digitally unwrapping noisy, sparsely sampled signals is notoriously fragile. This paper introduces CoFMo, a physics-inspired neural architecture that untangles these wrapped waveforms with unprecedented accuracy, making it the first deep learning method proven to work on real-world modulo hardware.
What Problem Does This Paper Address?
Every digital measurement relies on an Analog-to-Digital Converter (ADC). If an incoming voltage—say, from a Marsquake seismometer or an ultrasonic transducer—exceeds the ADC's voltage limit ($\pm\lambda$), a standard ADC clips the peaks, causing irreversible information loss.
Enter the Modulo ADC (or Unlimited Sampling). Instead of clipping, the hardware folds the signal back into the $[-\lambda, +\lambda)$ box every time it crosses a boundary.
The catch? You have to mathematically "unwrap" those folds later. Recovering the signal is governed by two numbers: the folding ratio ($\rho$, how tall the signal is relative to the box) and the oversampling factor ($\text{OF}$, how fast you sample above the theoretical Nyquist minimum).
Existing analytical math works well when you oversample heavily, giving you plenty of dots to connect. But when $\text{OF}$ is low, $\rho$ is large, and real-world hardware adds jitter, thermal drift, and quantization noise, analytical algorithms suffer catastrophic, cascading errors. Meanwhile, prior deep learning approaches treat unwrapping as simple curve-fitting (continuous regression) and have only ever been tested in clean simulations.
Methods
Instead of asking a neural network to blindly guess the final smooth wave, CoFMo (Coarse-to-Fine Modulo recovery) splits the physics of the problem into discrete counting and continuous polishing:
- Dual-Stream Input: A standard 16-block ResNet encoder ingests both the raw noisy modulo signal (for amplitude trajectory) and its first-order finite difference (which acts as an edge-detector to spotlight sudden fold jumps).
- Gated Temporo-Spectral Module (Novel): Fold jumps create broadband frequency spikes, while tracking how many folds have accumulated requires long-term memory. CoFMo runs features through an FFT, applies a Wiener-inspired adaptive spectral gate (learning a pseudo-signal-to-noise ratio to shrink noisy frequencies), converts back via IFFT, and feeds the result into a standard Multi-Head Self-Attention block.
- Discrete Decomposition & Coarse-to-Fine Refinement (Novel): Rather than regressing fold counts—where a tiny $0.51$ error rounds into a massive $2\lambda$ cliff—two classification heads predict discrete integer probabilities for the absolute fold count ($\hat{k}$) and the step-to-step fold jump ($\Delta\hat{k}$), linked by a structural consistency loss. Plugging $\hat{k}$ into the physical ADC equation gives a coarse unwrapped wave, which a final lightweight regression head polishes to remove sub-fold noise.
- Uncertainty-Balanced Training: Rather than hand-tuning weights for five wildly different classification and regression losses, CoFMo uses homoscedastic uncertainty to learn optimal loss weights automatically during training.
Datasets
- Synthetic Bandlimited Signals: $100,000$ training and $46,400$ test sequences ($512$ samples each) made of randomized
sincfunctions, quantized to 4-bit resolution with $19\text{ dB}$ Gaussian noise across $\rho \in [2, 17]$ and $\text{OF} \in [2, 30]$. (Finite-rate-of-innovation signals are also tested in supplementary material). - Physical Modulo ADC Benchmarks (New): Two hardware datasets captured using an FPGA-calibrated modulo ADC prototype and an oscilloscope ($64$-sample records, $0.9\text{--}33\text{ kHz}$ bandwidths). Dataset 1 captures raw hardware non-idealities (comparator jitter, loop latency, voltage drift) with $600$ train / $90$ test records. Dataset 2 stress-tests the system by injecting $10\text{--}20\text{ dB}$ sensing noise and 4-bit requantization ($600$ train / $180$ test records).
Key Insights and Ideas
- Don't regress integers—classify them: Treating fold-counting as discrete classification prevents sub-integer estimation errors from snowballing into cascading $2\lambda$ cycle slips.
- Learned Wiener filtering tames ringing: Without adaptive spectral gating in the frequency domain, abrupt fold transitions cause severe overshoot and ringing artifacts during reconstruction.
- Deterministic latency: Iterative analytical solvers take longer as signals fold more severely (ranging from $68\text{ ms}$ to over $10\text{ seconds}$). CoFMo runs in a fixed forward pass ($\sim 6\text{ ms}$), meaning engineers can budget exact, predictable compute times regardless of signal wildness.
Key Results
CoFMo dramatically expands the "safe operating zone" for modulo ADCs at low sampling rates:
- Simulations: At tough low-oversampling regimes ($\text{OF}$ between $3$ and $5$), every analytical and learning baseline fails (Normalized Mean-Square Error $> -3.2\text{ dB}$), whereas CoFMo achieves clean reconstructions at $-16.58$ to $-22.21\text{ dB}$ NMSE.
- Real Hardware: On noisy, 4-bit physical ADC measurements ($\text{OF} \in [2.77, 5.53]$), analytical methods hover around $0\text{ dB}$ (total failure). CoFMo achieves $-19.45$ to $-29.64\text{ dB}$ NMSE, beating the retrained deep-learning baseline (MUNet) by $7.81$ to $10.89\text{ dB}$ while using less than half the parameters ($1.02\text{M}$ vs. $2.38\text{M}$).
Limitations and Future Work
- Near-Nyquist limit: Like all baselines, CoFMo fails right at the theoretical boundary ($\text{OF} = 2$), where unwrapping becomes severely ill-posed.
- Offline execution & Calibration: While the hardware folds signals in real time, CoFMo currently unwraps them offline on a GPU. Furthermore, if the hardware's $\pm\lambda$ voltage threshold drifts due to temperature, uncalibrated mismatches add bias (a $1\%$ drift costs up to $4\text{ dB}$ in high-precision regimes).
- Next steps: The authors plan to port CoFMo directly onto the prototype's on-board FPGA for real-time edge recovery and expand it to multi-channel sensor arrays.
Summary updated