When a sequencer streams reads (short fragments of RNA, typically 50–150 letters) to a compute server as they are produced, a lab could in principle watch gene expression estimates form in real time and stop a run early, re-prioritize samples, or steer an experiment. What stands in the way is ambiguity. Many reads match several transcript variants ("isoforms") or repeated genomic regions equally well, so their meaning depends on every other read from the same gene. Existing tools resolve this ambiguity offline, once all reads are on disk. This note asks a latency question that neither the queueing literature nor the quantification literature has posed: how long after a read arrives does the estimate it contributes to become stable, and, for some genes, will it ever become stable?
The proposal is to treat "decision latency" as the quantity to model and control. For each gene, this is the time until its isoform estimate is reliable enough to publish. Decision latency has three parts. There is the time spent waiting for enough reads to arrive, the time spent waiting in a queue for the solver, and the time the solver itself takes. We would build a two-stage streaming pipeline and a queueing model of it. We would then show that a scheduler aware of both ambiguity and identifiability publishes reliable estimates sooner than periodic re-solving, and that it stops spending compute on genes whose isoforms can never be told apart.
Core Claim
The key design move is to keep ambiguity out of the per-read path entirely. The first stage maps each read and increments a counter for its "compatibility class," meaning the exact set of transcripts it is consistent with. This takes roughly constant time per read, so that stage behaves like a queue with near-deterministic service. The ambiguity is pushed into a second stage: per-gene re-solves that run the standard mixture-model estimator (Deng et al. describe this expectation-maximization scheme, which fractionally assigns ambiguous reads by current abundance estimates) together with the exact range computation of Zheng et al.. The service time of that second stage depends on the gene's ambiguity structure, specifically its number of isoforms and compatibility classes, and not on individual reads.
Our claim is that per-gene decision latency can be predicted by a tandem model of the form
$$D_g = A_g + W + S_g ,$$
where $A_g$ is the time for gene $g$ to accumulate enough reads that its sampling uncertainty falls below a tolerance, $W$ is the waiting time in the re-solve queue, and $S_g$ is the re-solve service time. For $W$ we use the Pollaczek–Khinchin mean-wait formula for a single server with general service times, $\mathbb{E}[W] = \lambda\,\mathbb{E}[S^2] / (2(1-\rho))$. Here $\lambda$ is the rate of re-solve requests, $S$ is the service time, and $\rho = \lambda\,\mathbb{E}[S]$ is utilization. $\mathbb{E}[S^2]$ is driven by the heavy tail of highly ambiguous genes.
There is a further consequence for genes that are structurally nonidentifiable, meaning many different abundance vectors explain their reads equally well. For those genes the published answer should be a range, and $A_g$ for their point estimate is infinite. A scheduler that recognizes this should freeze such genes and redirect their compute to others.
Relation to Prior Work
Two bodies of work motivate this proposal. Latency modeling has shown that summing isolated delays underestimates end-to-end latency once buffers form backlogs (Ding et al., Hao et al.). It has also shown that heavy-tailed service times cause head-of-line blocking, where long jobs make everything behind them wait. Yang et al. (also Xu et al.) model LLM decoding as a single-server queue with variable token lengths and show that clipping the longest 1–5% of requests cuts mean queueing delay by 58.93%. We borrow their analysis, but our heavy tail comes from gene ambiguity structure, and "clipping" becomes principled: we stop re-solving genes whose ranges cannot shrink, rather than truncating outputs.
SPARQ jointly optimizes placement and allocation with queue-aware delays, modeling shared accelerators as general-service queues. It assumes each data unit has one fixed destination. In our pipeline, by contrast, an ambiguous read's destination is a distribution that changes as other reads arrive. Castro et al. show that streaming beats file staging by up to 97% in completion time, but they treat remote compute as a single ratio. We open that ratio up. Xia supplies the two-stage tandem template, in which cheap compression reduces downstream load; our compatibility-class stage plays that role.
Feng et al. route ultra-long nanopore reads to dedicated hardware units to avoid head-of-line blocking, but they provide no analytic model. We supply the model, and we apply the same split to ambiguity rather than to length.
On the quantification side, several lines of work establish accuracy targets while assuming static input. rQuant (Bohnert et al.), MMR (Kahles et al.), FlipFlop (Bernard et al.), and the MultiSplice/LASSO model (Huang et al.) all operate on complete files.
Zheng et al. both supply and constrain this proposal. Their linear-programming and max-flow ranges give our stopping rule. Their finding that 35–50% of Human Body Map transcripts lack a unique optimum means that a streaming system which waits for point estimates would wait forever on a large fraction of the transcriptome. Hamaguchi et al. show that adding weakly supported isoforms dilutes unique mappability. In our model this appears as a larger $\mathbb{E}[S^2]$ and slower $A_g$, so reference size becomes a measurable latency knob.
Research Program
The work has four parts.
Characterize the service-time distribution. On Flux Simulator data and on the Human Body Map 2.0 annotation, we would measure per-gene re-solve time for both expectation-maximization and range computation, as a function of isoform count and compatibility-class count. We would fit the distribution $G$ and test whether the first two moments of that fit predict measured queue waits better than an exponential assumption does. This fills the file's Gap 2 directly.
Model accumulation time. We would model $A_g$ from the gene's arrival rate, which is proportional to expression times sequencing rate, and from the curvature of its likelihood. The prediction is that sampling width shrinks roughly as $1/\sqrt{n_g}$ in reads for identifiable genes, the standard rate for maximum-likelihood estimates. For genes where Zheng's range stays wide as reads accumulate, the prediction is a floor that does not shrink.
Build the scheduler. The scheduler orders re-solve requests by expected reduction in published uncertainty per unit of predicted service time. It freezes a gene's point estimate, and reports a range instead, once the range width stops shrinking across two consecutive re-solves.
Study reference pruning. Under a fixed latency budget, we would ask whether dropping low-support isoforms speeds up decision latency without harming accuracy on the retained isoforms. This is the trade-off posed in Gap 3.
Baselines
The naive reference point is periodic full re-solve. The same compatibility-class counts are re-quantified for every gene every $T$ seconds, with $T$ tuned over a grid on held-out simulations using the same compute budget as our scheduler. This is what an engineer would build first, and it is what the scheduler must beat. We would count it as beaten if the median and 95th-percentile time-to-stable-estimate are both lower at matched final accuracy, on identical read streams and hardware.
The accuracy ceiling is offline quantification at end of run. It has two components. The first is rQuant, which reports 0.820 across-gene and 0.635 within-gene correlation on Flux Simulator (Bohnert et al.). The second is MMR post-processing, which reports a 17% Spearman gain for 51-nucleotide reads and roughly 20 minutes for 100 million reads on 10 threads (Kahles et al.). We would run both on our own Flux Simulator streams, because the published numbers come from different simulations and are not directly comparable. The streaming system must reach within a small, pre-registered margin of the offline correlation by end of stream, and it must reach that margin earlier for most genes.
The strongest streaming competitor is online expectation-maximization with warm starts on every gene. Each re-solve starts from the previous estimate, so cost per re-solve drops without any scheduling. It gets the same compute budget and iteration-cap tuning as our method. No reported result for streaming isoform quantification latency was found on Lacuna, so this baseline's latency numbers will be produced here.
Two ablations isolate the proposal's ingredients. The first removes the identifiability stopping rule while keeping ambiguity-aware ordering, which shows how much compute is wasted on nonidentifiable genes. The second keeps the stopping rule but orders re-solves first-come-first-served, which shows the value of the ordering itself.
Why not just…?
Why not just discard multi-mapped reads so everything streams at constant cost? It gives fast answers to a different and worse question. Cui et al. report losing up to 90% of reads in ribosome profiling this way. Navarro et al. note that repeats cover more than half the human genome, so those regions would become invisible. Isoform-level estimates would be undefined for shared-exon reads. We include unique-only counting as a curve on the accuracy-versus-latency plot so the loss is measured rather than asserted.
Why not just assign ambiguous reads at random? It keeps service time constant, but Kahles et al. document the resulting noise and false positives in differential testing. Our pipeline also already makes per-read cost constant through compatibility classes, so random assignment buys no latency over our first stage. Its only effect is to lose accuracy.
Why not just batch offline and over-provision? For retrospective studies, this is the right answer, and we say so. It fails wherever answers are needed during the run. There, Castro et al. show file staging costs up to 97% more completion time and latency jumps from 0.16 s to over 5 s above 90% utilization. SPARQ reports that static provisioning needs roughly a 40% margin that queue-aware allocation avoids.
Why not just re-solve everything with warm-started online EM, since compute may be cheap? This is the real threat. If re-solves are cheap relative to read arrival, utilization stays low, $W$ is negligible, and decision latency is dominated by $A_g$. In that case scheduling does not matter. The experiments settle this by sweeping sequencing rate and compute budget to locate the utilization regime in which the ambiguity-aware scheduler helps. If that regime turns out to be empty at realistic rates, we report the result as a negative finding. The identifiability stopping rule would still stand as a contribution, because it changes what is published, not only when.
Proposed Experiments
The primary testbed replays Flux Simulator reads, with known ground-truth abundances, at controlled rates. We use both Poisson arrivals and bursty arrivals, the latter to probe the independence assumption flagged by Spadaccino et al. Tests run on a fixed CPU budget, and on a GPU budget as a secondary setting. Read lengths are 51 and 101 nucleotides, and we use both a standard reference and an inflated reference that adds low-support isoforms.
The Human Body Map 2.0 data provides a realistic ambiguity structure. We check whether our streaming ranges converge to Zheng's offline ranges. We also check that the set of genes the scheduler freezes overlaps strongly with the 35–50% Zheng flags as having non-unique optima.
The MCF10 and CD8 T cell datasets provide a downstream check. Zheng found 5 of 257 and 19 of 3152 differential-expression calls unreliable in these datasets. We ask whether streaming calls made at the scheduler's publish time agree with the offline calls, and whether our flagged calls include those unreliable ones.
Metrics are per-gene time-to-stable-estimate at the median and 95th percentile, across-gene and within-gene correlation against ground truth over time, compute spent on frozen genes, and the gap between predicted and measured queue wait.
Three decisive checks determine whether the idea holds. First, the fitted general-service model must predict measured mean wait noticeably better than an exponential model across utilization levels; otherwise the ambiguity-driven service distribution is not the explanation. Second, the full scheduler must beat tuned periodic re-solve and warm-started online EM on tail time-to-stable-estimate at matched end-of-stream accuracy. Third, the stopping-rule ablation must show that without freezing, a measurable share of compute goes to genes whose ranges never shrink. If the first check fails, the queueing model is wrong. If the second fails everywhere, compute is not the bottleneck and the contribution shrinks to a latency analysis plus range-based stopping.
References
- Isoform-level microRNA-155 target prediction using RNA-seq
- Deriving Ranges of Optimal Estimated Transcript Expression due to Nonidentifiability
- Impact of Non-Orthogonal Multiple Access on the Offloading of Mobile Edge Computing
- A risk-sensitive task offloading strategy for edge computing in industrial Internet of Things
- A Queueing Theoretic Perspective on Low-Latency LLM Inference with Variable Token Length
- SPARQ: An Optimization Framework for the Distribution of AI-Intensive Applications under Non-Linear Delay Constraints
- To Stream or Not to Stream: Towards A Quantitative Model for Remote HPC Processing Decisions
- Hybrid Semantic/Bit Communication Based Networking Problem Optimization
- FPGA-based accelerator for adaptive banded event alignment in nanopore sequencing data analysis
- Transcript quantification with RNA-Seq data
- MMR: a tool for read multi-mapper resolution
- A convex formulation for joint RNA isoform detection and quantification from multiple RNA-seq samples
- A Robust Method for Transcript Quantification with RNA-Seq Data
- Impact of human gene annotations on RNA-seq differential expression analysis
- DeepShape: estimating isoform-level ribosome abundance and distribution with Ribo-seq data
- TeXP: Deconvolving the effects of pervasive and autonomous transcription of transposable elements