Papers
Topics
Authors
Recent
Search
2000 character limit reached

How does limma-trend work? An empirical partially Bayes perspective

Published 20 May 2026 in stat.ME | (2605.21304v1)

Abstract: In high-throughput biology, it is common to fit thousands of linear regressions -- one per gene, protein, or other unit -- with very few samples per unit. Limma-trend, one of the most widely used methods in this setting, improves power by shrinking variance estimates parametrically toward a fitted curve (the trend) relating variance to a unit-level summary (e.g., average intensity, peptide count), before computing p-values and applying the Benjamini-Hochberg procedure to control the false discovery rate (FDR). We study limma-trend through the lens of empirical partially Bayes inference, a paradigm in which a prior is posited and estimated for the nuisance parameters while parameters of interest remain fixed. From this perspective, limma-trend computes approximate partially Bayes p-values that condition on the residual sample variance and the unit-level summary. The same framework explains why MAnorm2, a popular variant for ChIP-seq, can sometimes fail to control FDR. We then derive a nonparametric generalization of limma-trend that estimates the residual variance prior using nonparametric maximum likelihood. Under dense signals, this procedure asymptotically controls the FDR -- even when the trend is misspecified or inconsistently estimated. To allow the full shape of the conditional variance distribution to depend on the unit-level summary, we develop a second procedure that learns it directly.

Summary

  • The paper establishes limma-trend as empirical partially Bayes inference, showing that trend-informed variance shrinkage produces conditionally calibrated p-values and identifying an orthogonality condition needed for valid FDR control.
  • The paper introduces Reg-NPMLE and JT-NPMLE, which retain asymptotic FDR control under trend misspecification while achieving minimax or near-parametric convergence rates and competitive statistical power.
  • The paper demonstrates practical benefits across RNA-seq, ChIP-seq, and proteomics, while showing that violating the design condition can inflate FDR to 12.6% for MAnorm2 and over 50% for MAP in simulations.

Overview and motivation

High-throughput biological assays routinely require fitting one linear regression per unit—gene, protein, or genomic interval—with degrees of freedom KpK-p often in the single digits. The resulting per-unit residual variance estimates are too noisy for reliable tt-tests, and limma-trend addresses this by shrinking variances toward a fitted mean-variance trend before computing p-values. Despite its ubiquity across RNA-seq, proteomics, ChIP-seq, methylation, cytometry, and lipidomics pipelines, the procedure has lacked a formal statistical account. This paper supplies one by interpreting limma-trend as an instance of empirical partially Bayes inference (Cox's framework): a prior is posited and estimated for the nuisance parameter σi2\sigma_i^2 while the parameter of interest θi\theta_i remains fixed. The paper then develops two nonparametric generalizations with asymptotic false discovery rate (FDR) guarantees, and identifies a previously unstated design condition whose violation explains FDR inflation in MAnorm2.

The partially Bayes interpretation of limma-trend

For each unit ii, ordinary least squares yields a contrast estimate ZiZ_i, residual variance Si2S_i^2, and side-information MiM_i. Limma-trend posits that σi2Miξ02(Mi)G\sigma_i^2 \mid M_i \sim \xi_0^2(M_i) G, decomposing log(σi2)\log(\sigma_i^2) into a trend component plus independent residual heterogeneity. The oracle partially Bayes p-value integrates the Gaussian tail probability over the posterior of tt0 given tt1:

tt2

These p-values are conditionally uniform under the null given both tt3 and tt4—a property the plain tt5-test lacks, since null units with by-chance small tt6 produce inflated statistics. Parametric limma-trend is recovered as the special case where tt7 is a scaled inverse-tt8 distribution; the authors prove this equivalence explicitly.

A key structural issue arises because the default summary tt9 (average intensity) is computed from the same outcomes used for inference. The paper resolves this via an orthogonality condition on the design: σi2\sigma_i^20 and σi2\sigma_i^21. This assumption—which the authors state has not been spelled out before—is satisfied by standard two-sample and treatment-effect designs but violated by MAnorm2's use of the unweighted group-mean average σi2\sigma_i^22 under unbalanced group sizes. Simulations confirm the consequence: MAnorm2 inflates FDR to 12.6% at nominal 5% in an unbalanced-design setting, while MAP—a method treating σi2\sigma_i^23 as a deterministic function of σi2\sigma_i^24—inflates FDR to over 50% when residual heterogeneity is present.

Nonparametric generalization: Reg-NPMLE

The first proposal replaces the parametric prior with the nonparametric maximum likelihood estimator (NPMLE) applied to trend-adjusted variances σi2\sigma_i^25, solved as a convex program via MOSEK. The main convergence theorem shows estimated p-values approach the oracle p-values at rate σi2\sigma_i^26, which matches the minimax rate of trend estimation up to logarithmic factors—for parametric or Hölder-smooth trends this is σi2\sigma_i^27 or σi2\sigma_i^28 respectively. Under a criticality (dense signal) condition, Benjamini–Hochberg applied to these p-values controls FDR asymptotically.

The most consequential result concerns misspecification: even if the fitted trend σi2\sigma_i^29 converges to some function θi\theta_i0 unrelated to the true data-generating process, FDR control persists. The mechanism is that the nonparametric prior on residual heterogeneity absorbs trend error—the misspecified p-values remain uniform conditional on the trend-adjusted variance θi\theta_i1. This robustness is strictly stronger than what deterministic plug-in methods like MAP can offer, and it implies practitioners need not worry about parametric spline trend fits being inconsistent. The guarantee does have a boundary: conditional calibration given θi\theta_i2 itself (e.g., within each peptide-count stratum) is lost under misspecification, which matters in applications where stratum-level error control is desired.

Joint estimation: JT-NPMLE

The second proposal dispenses with explicit trend fitting entirely. Treating θi\theta_i3 jointly as nuisance parameters drawn from an unknown bivariate prior θi\theta_i4, it estimates θi\theta_i5 by NPMLE from the marginal distribution of θi\theta_i6. The analysis rests on an Eddington–Tweedie representation expressing the oracle p-values as functionals of the marginal densities θi\theta_i7 and θi\theta_i8. Remarkably, despite the nonparametric bivariate estimation, the estimated p-values converge to the oracle at a near-parametric rate θi\theta_i9, and BH again achieves asymptotic FDR control. A discrete variant—fitting a separate NPMLE within each level of a discrete ii0—serves as a methodological successor to DEqMS for proteomics.

Numerical evidence

Across four simulation settings (ii1 units, 90% null), the proposed procedures are the only feasible methods besides the oracle to control FDR throughout, while matching or exceeding competitor power. In Setting 4, where the trend perfectly determines the variance (MAP's ideal scenario), Reg-NPMLE matches MAP's power (59.3% vs. 59.3%) while controlling FDR—showing the nonparametric residual prior costs essentially nothing even when unnecessary. Real-data analyses reinforce the pattern:

  • RNA-seq (CD4⁺ T cells, melanoma): untrended methods make zero discoveries; trended methods make roughly 76–133.
  • ChIP-seq (H3K4me3, lymphoblastoid cells): Untrended-Invii2 yields 197 discoveries versus 4,620+ for trended methods, reflecting clear parametric misspecification.
  • Proteomics (A431 miRNA mimics): discrete JT-NPMLE attains the most discoveries across all six contrasts. Here the well-specified model visibly fails—low-peptide-count proteins show greater residual variability—and untrended methods concentrate discoveries disproportionately among low-ii3 proteins, exactly the failure mode DEqMS was designed to prevent.

Limitations and open questions

Several caveats are stated plainly in the paper. The theory ignores discretization error and data-driven support selection in the NPMLE sieve approximations. The criticality condition requires dense signals; behavior under sparse signal regimes is not established. The Gaussian model is applied to log-transformed count data out of convention, and the authors explicitly defer studying the impact of this approximation to future work. Under trend misspecification, calibration conditional on ii4 is not guaranteed, so stratum-level type-I error claims are unavailable. Finally, the frequentist (compound decision) analysis shows FDR control holds at level ii5 rather than ii6, precluding null-proportion-adaptive procedures such as Storey's method, and p-values satisfy only asymptotic compound validity rather than conditional uniformity.

Conclusion

This paper provides the first rigorous statistical foundation for limma-trend, recasting it as approximate partially Bayes inference with a trend-dependent nuisance prior. The framework yields practical dividends: a checkable orthogonality condition that diagnoses MAnorm2's FDR inflation, two NPMLE-based procedures with asymptotic FDR guarantees robust to trend misspecification, and near-parametric convergence rates enabled by Eddington–Tweedie identities. The empirical results indicate the nonparametric priors deliver power comparable to aggressive plug-in methods without sacrificing error control, positioning them as principled replacements for DEqMS-style heuristics in proteomics and for parametric limma-trend more broadly.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.