Streaming Autophagy Prediction from Incomplete Measurement Prefixes

Autophagy is the cell's recycling system: damaged material is sealed into vesicles and shipped to the lysosome for breakdown. Whether ramping this system up is helpful or lethal depends on context — the same compound, Rapamycin, accelerates recycling in well-fed cells yet suppresses it under starvation Concurrent detection of autolysosome formation and lysosomal degradation by flow cytometry in a high-content screen for inducers of autophagy. Judging the direction of a live experiment is hard for a subtler reason: an early pile-up of vesicles is ambiguous, meaning either "the cell is producing more" or "the disposal step is clogged." The tandem fluorescent reporter (a green-plus-red tag whose green channel quenches once the vesicle reaches the acidic lysosome) was invented precisely to disambiguate this — but only after the full one-to-six-hour time course is in hand. In a live experiment, or a closed-loop dosing controller, you only have the first hour or two.

This proposal argues that the natural tool for this problem — a sequence model trained on complete trajectories, whether from mechanistic simulators or historical screens — will fail in exactly the way the speech and translation literatures have already documented: models trained with full future context hallucinate and collapse when shown partial prefixes Towards Maximum Likelihood Training for Transducer-Based Streaming Speech Recognition; Simultaneous Machine Translation with Large Language Models). And it argues that the fixes developed there — training on prefixes, and replacing teacher-forced objectives with a risk objective over the model's own predicted continuations Context Consistency between Training and Inference in Simultaneous Machine Translation — transfer to biological time series, where the failure mode is not a degraded translation but a therapeutically inverted diagnosis.

Core Claim

Three claims. First, the prefix gap is real and dangerous in this domain: an offline-trained flux predictor, shown only an early measurement prefix, will systematically misread a late-stage degradative blockade as pathway induction — the exact confusion the tandem reporter exists to prevent, re-entering through the model rather than the assay. Second, prefix-consistent training with a risk objective over the model's own rollouts (I call this Prefix-Consistent Flux Training, PCFT) closes most of that gap, while training separate specialist models per prefix length does not — mirroring the finding that low-context specialist translation models underperform high-context-trained ones even at low latency Context Consistency between Training and Inference in Simultaneous Machine Translation. Third, a dosing policy conditioned on PCFT predictions controls autophagic vesicle counts from streaming observations alone, without privileged access to the underlying state, matching the drug efficiency of offline optimal control in the regime where that control was validated and beating it under single-cell heterogeneity, which its authors acknowledge it cannot represent Prediction of Optimal Drug Schedules for Controlling Autophagy.

Background: Two Literatures, One Failure Shape

The machine-learning side of this proposal draws on three families of fixes for training-inference context mismatch. FoCCE trains a streaming speech recognizer with an auxiliary network that estimates the ratio between the true likelihood and the causally deformed one, then discards the auxiliary network at inference; on LibriSpeech test-clean it closed 26.3% of the streaming/non-streaming word-error-rate gap Towards Maximum Likelihood Training for Transducer-Based Streaming Speech Recognition. Consistency-Bi replaces cross-entropy on gold prefixes with minimum-risk training over the model's own n-best candidates, gaining 4.39 BLEU on IWSLT15 Vi-En and more than 5 BLEU at the tightest latency Context Consistency between Training and Inference in Simultaneous Machine Translation. Shiftable Context shows that even training-free restructuring of how context slots are filled at inference recovers part of the gap (+2.09 BLEU on MuST-C en-de) Shiftable Context: Addressing Training-Inference Context Mismatch in Simultaneous Speech Translation. A fourth result warns against one tempting shortcut: re-encoding the whole history at every new input gives negligible accuracy benefit at large throughput cost LLM as Effective Streaming Processor: Bridging Streaming-Batch Mismatches with Group Position Encoding, and segmented execution without aligned training causes outright instability Training–Inference Consistent Segmented Execution for Long-Context LLMs. None of these works touches a biological modality.

The biology side has the mirror-image gap. Optimal control of autophagy is solved offline over the full time horizon with pseudo-spectral methods, yielding pulsatile schedules that hit target vesicle counts with over five-fold less drug than continuous infusion — but for an idealized average cell, with full state visibility Prediction of Optimal Drug Schedules for Controlling Autophagy. High-content screening delivers population-level flux statistics in one to six hours and discovered the nutrient-context inversion, but its readouts are endpoint-oriented, not streaming Concurrent detection of autolysosome formation and lysosomal degradation by flow cytometry in a high-content screen for inducers of autophagy. The closest machine-learning work, PerturbDiff, predicts single-cell perturbation responses as distributions and wins 96–100% of metric comparisons on Tahoe100M and PBMC PerturbDiff: Functional Diffusion for Single-Cell Perturbation Modeling — but it operates on static, fully observed batch snapshots, with no notion of a measurement arriving incrementally or a prediction made before the trajectory completes. The intersection — a model that predicts live flux outcomes from incomplete prefixes, trained so that its training regime matches that deployment — is unoccupied. (The phrase "AI autophagy" is already taken, unfortunately, by an unrelated study of generative models recursively eating their own synthetic outputs On the caveats of AI autophagy; that work motivates only one design constraint here, namely that filtering or cherry-picking model-generated states collapses distributional diversity, so PCFT must use a distributional risk rather than a selection rule.)

Research Program

The program has four components. First, a heterogeneous autophagy simulator: the validated ODE system of kinase activation fractions (MTORC1, AMPK, ULK1, VPS34) and autophagic vesicle counts Prediction of Optimal Drug Schedules for Controlling Autophagy, extended with per-cell kinetic parameter perturbations and stochastic vesicle counts so that trajectories differ cell-to-cell — directly attacking the average-cell limitation that paper names as its main open problem — plus nutrient switchpoints that can occur mid-trajectory. Second, an observation model that emits what a real instrument would: tandem-reporter-style counts (green-positive/red-positive vesicle populations, mimicking the mCherry-GFP-LC3 readout) sampled at cytometry cadence, with measurement noise, so the predictor never sees the true kinase state.

Third, the predictor and its training. The predictor is a causal sequence model that consumes the observation prefix and outputs (a) a classification of the endpoint flux outcome — induction, blockade, or neutral — and (b) a distribution over final vesicle counts. PCFT trains it on prefixes of random length with a risk objective evaluated on the model's own rollouts:

$$J(\theta) \;=\; \mathbb{E}_{t,\; \hat{\tau}_{t:T} \sim p_\theta(\cdot \mid x_{1:t})}\Big[\Delta\big(\hat{s}(\hat{\tau}_{t:T}),\; s^{\star}(x_{1:T})\big)\Big]$$

Here $x_{1:t}$ is the noisy observation prefix up to a random time $t$, $\hat{\tau}_{t:T}$ is the model's own predicted continuation (not the simulator's gold future), $s^{\star}(x_{1:T})$ is the true endpoint state of the underlying full trajectory, and $\Delta$ is a task risk combining endpoint classification error with normalized vesicle-count error. The contrast with standard training is the point: teacher-forced cross-entropy on gold continuations is exactly the exposure-bias setup that Consistency-Bi showed fails at deployment Context Consistency between Training and Inference in Simultaneous Machine Translation. I will also test a FoCC-style variant: an auxiliary network that estimates the density ratio between the full-context posterior and the prefix-conditioned one, used only during training and discarded at inference Towards Maximum Likelihood Training for Transducer-Based Streaming Speech Recognition. Fourth, a closed-loop dosing policy: at each measurement arrival, the predictor's endpoint distribution drives a dose decision, so the policy's future depends on its own past predictions — the setting where exposure bias compounds.

Proposed Experiments

Experiment 1 validates the simulator by reproducing the published control results: pulsatile schedules reaching target vesicle counts with the reported five-fold-plus drug reduction versus continuous infusion, the synergy of the VPS34-inhibitor-plus-PI3K-inhibitor pairing, and the six-class drug taxonomy (classes 1 and 5 up-regulating autophagy, classes 2, 3, 4 and 6 down-regulating) Prediction of Optimal Drug Schedules for Controlling Autophagy.

Experiment 2 quantifies the prefix gap. The offline-trained predictor (full trajectories, teacher-forced) is evaluated on prefixes of 0.5 to 3 hours. The headline metric is inversion rate: the fraction of blockade trajectories whose early prefix is classified as induction, alongside endpoint classification error and normalized vesicle-count error as functions of prefix length. This is the biology-specific analogue of the perplexity spikes and streaming degradation seen in language and speech Training–Inference Consistent Segmented Execution for Long-Context LLMs; Towards Maximum Likelihood Training for Transducer-Based Streaming Speech Recognition. No reported result found on Lacuna for streaming autophagy prediction, so this baseline is established here.

Experiment 3 is the core comparison: PCFT versus prefix-matched teacher-forced training versus per-prefix specialist models (a 1-hour model, a 2-hour model, and so on), all with the same architecture, data, and total tuning budget. Success for PCFT is endpoint error at the 1-hour prefix within a small margin of the full-trajectory oracle, and — critically — lower inversion rate at every prefix length. For calibration of what "closing the gap" looks like, the FoCCE result (26.3% of the streaming word-error-rate gap closed on LibriSpeech test-clean) is the reference magnitude from the closest analogue task Towards Maximum Likelihood Training for Transducer-Based Streaming Speech Recognition.

Experiment 4 runs the closed-loop dosing policy under streaming observations, comparing a PCFT-trained policy against a teacher-forced-trained one. The prediction is specific: the teacher-forced policy drifts when its own early decisions perturb the trajectory away from anything it saw in training, while the PCFT policy, trained on its own rollouts, stays within the target vesicle range.

Experiment 5 tests environmental inversion. The predictor is trained on trajectories from nutrient-rich conditions and deployed on starvation trajectories, including the Rapamycin-like sign flip documented in the Prestwick screen Concurrent detection of autolysosome formation and lysosomal degradation by flow cytometry in a high-content screen for inducers of autophagy. I ask whether conditioning on an inferred nutrient state lets the model detect the flip, and whether the screen's qualitative findings (cardiac glycosides as flux inducers; 38 activators and 36 inhibitors among 1,120 compounds) are recoverable as held-out checks where per-compound time courses can be obtained. The screen reports endpoints rather than streams, so this experiment is qualitative on real data and quantitative on the simulator; I state that limitation plainly.

Experiment 6 measures the cost side: carried-state streaming prediction versus re-encoding the full observation history at every measurement arrival, reporting prediction wall-clock per cytometry cycle alongside accuracy, since the compute argument depends on trajectory length and cadence.

Baselines

The do-nothing reference point is the offline-trained predictor from Experiment 2: a sequence model trained on complete trajectories with teacher-forced cross-entropy, then applied to prefixes unchanged. This is the default practice implied by existing biological modeling — PerturbDiff-style predictors assume the full profile is available at inference PerturbDiff: Functional Diffusion for Single-Cell Perturbation Modeling — and no reported result found on Lacuna for its streaming performance on autophagy data, so Experiment 2 establishes it. It will be run on the identical simulator draws, architecture, and tuning budget as PCFT; beating it means strictly lower inversion rate and endpoint error at every prefix length, with the 1–2 hour prefixes as the decisive regime.

The strongest existing method on this question is the pseudo-spectral optimal control pipeline of Prediction of Optimal Drug Schedules for Controlling Autophagy, which reports that pulsatile and sequential schedules hold vesicle counts in the target range with more than five-fold reduction in primary drug relative to continuous administration, including the VPS34-plus-PI3K synergy. It is the strongest competitor because it is the only validated quantitative controller of this pathway. For fairness it gets the same simulator, drug set, and target ranges, and — as in its own setting — access to the full ODE state, which is strictly more information than my streaming policy receives from noisy reporter counts. Beating it is defined in two tiers: parity (matching its drug efficiency and control fidelity while using only emitted observations) and superiority (maintaining control under per-cell heterogeneity and mid-trajectory nutrient switchpoints, conditions the average-cell formulation was never claimed to handle and its authors list as its open limitation). I will be explicit about which tier is achieved.

The strongest machine-learning competitor for the mismatch itself is the per-prefix specialist ensemble: separate models trained for each fixed observation window, which is the obvious way to make training match inference without any new objective. It gets the same total compute and tuning budget, split across specialists. Beating it means a single PCFT model achieving lower error at every prefix length, which would also echo the translation finding that low-context specialist training is worse than context-consistent training even at low latency Context Consistency between Training and Inference in Simultaneous Machine Translation.

Two ablations isolate the key ingredient. Prefix-matched training with teacher-forced cross-entropy (same prefixes, no self-rollout risk) isolates the contribution of the exposure-bias fix; full PCFT without prefix-length randomization isolates the contribution of prefix sampling. If the teacher-forced prefix ablation matches PCFT, the exposure-bias story is wrong for this domain and the proposal's central mechanism collapses — that outcome would itself be informative, since it would say the biology failure is purely covariate shift rather than compounded rollout error.

Why not just…?

Why not just use the ODE model with model predictive control? In the clean simulator this is a genuine threat: if the ODEs are the ground truth and the state is observable, a model-based controller with full knowledge will win, and no amount of sequence modeling changes that. The proposal is honest about this and does not compete in that regime. The claim lives one step out: when the controller sees only noisy reporter counts, when cells are heterogeneous so no single parameter set is the truth, and when transcriptomic-scale state matters — a four-variable average-cell model cannot represent the sparse, high-dimensional response manifolds that single-cell data actually show PerturbDiff: Functional Diffusion for Single-Cell Perturbation Modeling; scPerturb: Harmonized Single-Cell Perturbation Data. The decisive experiment is a PSOC controller forced to estimate state from the same reporter stream, plus a robustness test under parameter mismatch; if PSOC-with-estimator matches PCFT under heterogeneity, the simpler route wins and I will say so.

Why not just re-run the offline model on the whole history each time a new measurement arrives? Two answers, one weak and one strong. The weak one is compute: in language processing, full re-encoding buys negligible accuracy at 5.9x–11.3x throughput cost LLM as Effective Streaming Processor: Bridging Streaming-Batch Mismatches with Group Position Encoding, but my trajectories span hours, not hundreds of thousands of tokens, so re-encoding is cheap here and I do not lean on that argument. The strong one is that re-encoding does not address the failure at all: the offline model misreads the prefix because of what it was trained on, not because of how often it is run. Experiment 2 measures exactly this — the re-encoding schedule is held fixed while training regime varies — so the proposal itself settles the question.

Why not just train one specialist model per prefix length? The translation literature already ran this experiment and the specialist route lost: a model trained exclusively at the tightest context performed substantially worse at that very latency than a context-consistently trained model, because cross-entropy on gold prefixes leaves it unable to handle its own imperfect predictions Context Consistency between Training and Inference in Simultaneous Machine Translation. There is also a data argument specific to biology: reliable perturbation signal requires on the order of 300 cells per perturbation condition scPerturb: Harmonized Single-Cell Perturbation Data, and splitting scarce trajectories across prefix-length times nutrient-context times drug-class specialists starves each one. Experiment 3 runs the specialist ensemble under a matched budget anyway, so this is settled empirically rather than by citation.

Decisive Checks

Three results would make or break the proposal. The offline-trained predictor must show a materially elevated inversion rate on short prefixes — if the prefix gap is negligible in this domain, the premise fails and the project stops. PCFT must cut that inversion rate and approach full-trajectory oracle error at the 1-hour prefix, with the teacher-forced prefix ablation performing visibly worse; otherwise the mechanism is misattributed. And the PCFT-driven dosing policy must retain the roughly five-fold drug efficiency of pulsatile offline control Prediction of Optimal Drug Schedules for Controlling Autophagy while staying stable under heterogeneity and mid-course nutrient flips where the average-cell controller does not. If all three hold, the same recipe — prefix-consistent risk training on self-generated rollouts — becomes a reusable template for any biological time-series predictor deployed before its input sequence is complete.