Pole-residue latent diffusion decoder
Implementation & benchmark of arXiv:2607.10930 — The Singularity Space: A Generative Diffusion Framework for Signal Representation
Source paper: The Singularity Space: A Generative Diffusion Framework for Signal Representation arXiv:2607.10930 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Represent a one-dimensional sharp-feature signal by a small unordered set of complex singularities and residues instead of predicting all grid amplitudes. A transformer diffusion model predicts these tokens, and a differentiable meromorphic decoder evaluates the result directly at arbitrary coordinates, avoiding grid-specific interpolation and preserving discontinuity structure.
Formulas
Mathematical statement
The paper restricts its generative space to the meromorphic function space \(\mathcal{M}(\mathbb{C})\), consisting of complex-valued functions holomorphic except at isolated singularities. Its representation uses singularity locations \(z_k\in\mathbb{C}\) and associated residues \(r_k\in\mathbb{C}\). The implementable real-valued adaptation is \(\hat{s}(x)=b(x)+2\operatorname{Re}[\sum_{k=1}^{K}r_k/(x-z_k)]\), where \(x\in\mathbb{R}\) is an output coordinate, \(K\) is the number of predicted upper-half-plane poles, and \(b(x)\) is an optional smooth background. Writing \(z_k=a_k+i\eta_k\), with \(\eta_k>0\), implicitly adds the conjugate pole \(\bar z_k\) and residue \(\bar r_k\), guaranteeing a real output. The pole real part \(a_k\) controls feature location and the height \(\eta_k\) controls feature width. Use \(a_k=A\tanh(u_k)\) and \(\eta_k=\operatorname{softplus}(v_k)+\eta_{\min}\) to enforce the domain and upper-half-plane constraints. A token is \(y_k=(u_k,v_k,p_k,q_k)\), with \(r_k=p_k+iq_k\). Diffusion can operate on the full token set using the standard Gaussian forward process \(q_t(y_t\mid y_0)=\mathcal{N}(y_t;\sqrt{\bar\alpha_t}y_0,(1-\bar\alpha_t)I)\), while the rational decoder supplies the signal-space reconstruction loss.
Implementation notes
Integrate this as a replacement for the output representation of a conditional diffusion model for one-dimensional signals. First normalize the physical domain to \([-A,A]\), encode the degraded observations at coordinates \(X_{obs}\), and condition a transformer denoiser on that encoder output. The denoiser operates on \(K\) latent tokens \(y_k=(u_k,v_k,p_k,q_k)\), together with a diffusion-time embedding, and predicts noise or velocity. At each denoising step, transform tokens using \(a_k=A\tanh(u_k)\), \(\eta_k=\operatorname{softplus}(v_k)+\eta_{min}\), and \(r_k=p_k+iq_k\). For requested coordinates \(X\), form the complex matrix \(D_{nk}=X_n-(a_k+i\eta_k)\), compute \(g_n=\sum_k r_k/D_{nk}\), and return \(\hat{s}_n=b(X_n)+2\operatorname{Re}(g_n)\). Set \(b=0\) for the first MVP, then optionally add a low-degree polynomial or small MLP background. Train using an \(L_1\) or Huber loss on observed and dense clean coordinates, plus the same reconstruction loss on a fresh randomly sampled coordinate set \(X'\) so the model cannot memorize one output grid. Add the TV-matching term from the formula. Use \(K=32\), \(\eta_{min}=10^{-3}\), and gradient clipping; monitor pole collisions, large residues, and denominator magnitudes. The first experiment should use synthetic Burgers shocks or piecewise-smooth signals of length 1024, compare against a grid diffusion baseline, and test lengths 256, 2048, and 4096 without retraining. Measure reconstruction error, TV ratio, latent storage, and wall-clock decoding. Success is lower error on unseen resolutions, TV ratio closer to one, and roughly 8x or greater reduction in representation size at comparable native-grid error.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Confirmed ✓
Stage 2 · Practical benchmark result: Significantly worse ✗
Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works
Stage 1 — Mechanism check agent confidence 8/10
Built a differentiable pole-residue decoder with constrained pole locations and heights plus a standard Gaussian diffusion-forward utility. The mechanism checks confirmed HWHM matched eta within 0.05%, peak location matched a within 3e-5, residue scaling matched the predicted 6x, and the far-field exponent was -1.99 versus -2. Direct pole decoding remained exact for oracle tokens, while random pole fitting was nonconvex and weaker than the grid baseline without a trained diffusion model.
- Agent confidence
- 8/10
- Baseline
- 1024-sample linear-grid representation using 1024 floats; interpolation L1 for sharp eta values [0.025, 0.01, 0.003, 0.0015] was [0.0141, 0.0845, 0.7299, 1.2851].
- Idea
- A 3-pole representation uses 12 floats and achieved direct-decoding L1=0 with oracle tokens. Mechanism checks gave HWHM relative error <=0.042%, center error <=2.5e-5, observed residue ratio 6.000x, and tail exponent -1.99 versus predicted -2.00.
Limitations: No transformer, learned conditional diffusion denoiser, Burgers dataset, TV loss, permutation handling, or end-to-end trained comparison was implemented. The sharp-feature representation-size comparison uses oracle pole tokens, and the random-initialized optimizer fit had dense L1 error 0.0657, demonstrating optimization difficulty.
How to run: python3 pole_residue_mvp.py && /home/maxwelhelp/main/bin/python3 sharp_probe.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2607.10930)
Significantly WORSE than the tuned baseline (+283.8%, p=0.0081, wins 0 / 8 paired seeds).
- Benchmark
- Pole_signal_regression
- Model
- mlp_tiny
- Paired seeds
- 8
- Baseline mean
- 6.0047
- Idea mean
- 23.0469
- Effect (Δ)
- 17.0423 (+283.8%; negative = idea better)
- Wins
- 0 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±30.2%
- Mechanism
- Confirmed ✓
- Practical effect
- Hurts
- Baseline tuning
- swept over 3 configs
Only the custom 1D meromorphic reconstruction track was tested. No transformer diffusion sampler, Burgers/PDE data, TV loss, permutation-invariant token matching, background term, or larger-scale architecture was evaluated; the run used 400 training samples, 120 test samples, K=3, 128 coordinates, 18 epochs, and mlp_tiny.
How to run: python3 run_bench.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Stage 2 — Benchmark latest Failed ✗
Agent confidence: 10/10
The custom meromorphic sharp-signal track provided the required structural match: identical mlp_tiny backbones predicted either 128 grid values or 3 constrained complex poles decoded differentiably. The pole mechanism confirmed the predicted 10.67x storage reduction and resolution-independent decoding, but end-to-end MSE was significantly worse than baseline (23.047 vs 6.005; paired delta +17.042, permutation p=0.0081), so the system correctly reports no win.
- Baseline
- Tuned lr=0.01; mean test MSE 6.004653692245483 over 8 seeds.
- Idea
- Best idea lr=0.01; mean test MSE 23.04693341255188 over 8 seeds; storage ratio 128/12=10.666666666666666.
Benchmark result
Significantly WORSE than the tuned baseline (+283.8%, p=0.0081, wins 0 / 8 paired seeds).
- Benchmark
- Pole_signal_regression
- Model
- mlp_tiny
- Paired seeds
- 8
- Baseline mean
- 6.0047
- Idea mean
- 23.0469
- Effect (Δ)
- 17.0423 (+283.8%; negative = idea better)
- Wins
- 0 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±30.2%
- Mechanism
- Confirmed ✓
- Practical effect
- Hurts
- Baseline tuning
- swept over 3 configs
Only the custom 1D meromorphic reconstruction track was tested. No transformer diffusion sampler, Burgers/PDE data, TV loss, permutation-invariant token matching, background term, or larger-scale architecture was evaluated; the run used 400 training samples, 120 test samples, K=3, 128 coordinates, 18 epochs, and mlp_tiny.
How to run: python3 run_bench.py
Artifacts
- bench_report.json 2.7 KB View Raw
- fit_probe.py 0.7 KB View Raw
- pole_residue_mvp.py 5.6 KB View Raw
- pole_signal_track.py 1.5 KB View Raw
- report.md 1.6 KB View
- report_bench_2026-08-30T155845.md 4.3 KB View
- results.json 3.4 KB View Raw
- run_bench.py 5.4 KB View Raw
- sharp_probe.py 0.5 KB View Raw