Past-Future Scheduler: Cross-Domain Insights
- Past-Future Scheduler is a design pattern that uses historical data to guide current decisions by explicitly modeling future outcomes.
- It underpins diverse applications such as sequential recommendation, LLM workflow scheduling, quantum resource management, and kernel-level predictive control.
- The mechanism integrates past observations and future predictions through adaptive scheduling, dynamic weight strategies, and predictive controllers to balance performance and resource constraints.
Past-Future Scheduler denotes a family of mechanisms that use past observations, past state, or past tasks to guide present decisions while explicitly estimating future consequences. In the literature, the designation spans sequential recommendation, heterogeneous LLM workflow serving, temporally correlated task selection in sequence learning, quantum resource scheduling, kernel scheduling, and continuous batching for LLM inference. In several cases the phrase is an expository framing rather than the original method name, but the recurring structure is the same: the scheduler or training controller preserves information derived from the past and optimizes current action using a model of future utility, future memory demand, or future supervision (Zhang et al., 2022, Huang et al., 8 May 2026, Gong et al., 14 Jul 2025).
1. Conceptual scope and recurrent structure
Across the cited works, the “past” component is not uniform. In sequential recommendation it is the historical interaction segment; in LLM workflow DAG scheduling it is the execution state inherited from earlier stages, including model residency, parent-output locality, prefix reuse, and device availability; in Active Volume scheduling it is stale-state storage; and in LLM serving it is the historical distribution of output lengths. The “future” component is equally heterogeneous: future segments in recommendation, downstream execution state in workflow serving, bridge qubits in logical-cycle scheduling, or projected KV-cache occupancy in continuous batching (Zhang et al., 2022, Huang et al., 8 May 2026, Heavey et al., 6 Mar 2026, Gong et al., 14 Jul 2025).
| Domain | Past signal | Future signal |
|---|---|---|
| Sequential recommendation | Historical segment | Future segment |
| Heterogeneous LLM workflows | Downstream state within horizon | |
| LLM serving | Historical output lengths | Future required memory |
| Active Volume architecture | Stale-state storage qubits | Bridge qubits |
The optimization objectives also differ. DualRec minimizes a weighted combination of past loss, future loss, and regularization. The learnable scheduler for temporally correlated tasks maximizes main-task validation performance through bi-level optimization. FATE optimizes normalized makespan and normalized P95 latency through horizon-aware frontier planning. LightLLM maximizes goodput under TTFT and MTPOT constraints. The Active Volume scheduler minimizes logical cycles while accounting for bridge and stale-state overheads. This suggests that “Past-Future Scheduler” functions as a cross-domain design pattern rather than a single standardized algorithm (Wu et al., 2020, Huang et al., 8 May 2026, Gong et al., 14 Jul 2025, Heavey et al., 6 Mar 2026).
2. DualRec and the sequential recommendation formulation
In sequential recommendation, the central problem is the training–inference gap created when future context is available during training but unavailable at inference. Standard autoregressive SR optimizes next-item prediction from past-only context, whereas masked or bidirectional methods optimize during training and then collapse to at inference. DualRec addresses this discrepancy by separating past and future modeling into two encoders with different parameters but a shared item embedding layer : a past encoder for 0 and a future encoder 1 for 2. The past encoder uses a left-to-right causal mask, whereas the future encoder uses a right-to-left causal mask. For Transformer instantiations, relative positional embeddings are defined by 3, with 4, and multi-scale masking is implemented through head-specific windows 5 (Zhang et al., 2022).
DualRec couples disentanglement with bi-directional knowledge transfer. The regularizer is a symmetric KL term across attention heads,
6
and the total objective is
7
Here 8 and 9 are next-item cross-entropy losses from the two encoders, while 0 and 1 reuse the shared embedding layer as output embedding. Inference discards 2 and uses only 3, thereby removing the training–inference gap for the deployed model.
The implementation-oriented “Past-Future Scheduler” built on DualRec turns the fixed weights 4 and 5 into schedules. Recommended policies include past-emphasis warm-up,
6
regularization warm-up,
7
and directional KL weighting with 8 early in training to favor future-to-past transfer. A two-phase or three-phase curriculum is also described: past-only pretraining, joint training with 9 and moderate 0, and optional past-only finetuning. The reported empirical guidance is that 1 around 2 is best, extreme 3 undertrains one encoder, and 4 must be moderate because too high a value causes performance drops.
The empirical setting uses Amazon Beauty, Sports and Outdoors, Toys and Games, and Yelp; all data are filtered for users and items with at least 5 interactions, with maximum sequence length 6. Baselines include GRU4Rec, Caser, HGN, RepeatNet, SASRec, S3-Rec, BERT4Rec, SRGNN, GCSAN, FMLP-Rec, and CLEA. Evaluation uses HR@1, HR@5, HR@10, NDCG@5, NDCG@10, and MRR with 7 negative samples per ground-truth item. DualRec achieves the best performance across all four datasets and metrics, with average gains versus the strongest baselines of roughly 8 HR@1, 9 HR@10, 0 NDCG@10, and 1 MRR. Compatibility experiments report consistent improvements when “Dual+BIT” is applied to SASRec, GRU4Rec, and FMLP-Rec. Training cost is approximately 2 the backbone cost, whereas inference cost is the same as a single backbone because only 3 is used.
3. Learnable task scheduling and dual past–future supervision in sequence learning
A second major lineage treats Past-Future scheduling as adaptive selection among temporally correlated tasks. In simultaneous machine translation, tasks differ by how much future input is available through a wait-4 latency constraint; in forecasting, tasks differ by how far into the future the model predicts. The scheduler introduced for temporally correlated task scheduling defines a policy 5 over auxiliary tasks, conditioned on the current mini-batch and model status, and optimizes it jointly with the main model through bi-level optimization:
6
7
The practical optimizer alternates inner updates of 8 with outer REINFORCE updates of 9 using differential reward 0 (Wu et al., 2020).
In simultaneous MT, the task family is 1 and evaluation uses BLEU together with Average Proportion and Average Lagging. The scheduler architecture is an MLP with one hidden layer of size 2 and tanh activation, using a 3-dimensional feature vector that includes source and target length ratios, current and historical training losses, previous validation loss, historical validation losses, and relative training progress. On IWSLT En→Vi, for main tasks 4, the scheduler consistently achieves the highest BLEU; for wait-3, the reported figure is 5 versus MTL 6, CL 7, and best-single 8. On WMT’15 En→De, the scheduler improves BLEU across latencies, with wait-7 reported at 9 versus baseline 0. Strategy analysis shows nearly uniform sampling in early episodes and later concentration on subsets of tasks. Training slows by approximately 1–2 versus vanilla wait-3 because scheduler features require computing main-task losses.
A different interpretation appears in “Dual Past and Future for Neural Machine Translation,” where the scheduler is implicit rather than explicit. Past denotes source-side content already translated by the decoder, and Future denotes source-side content remaining to be translated. Both are modeled as groups of high-level capsules produced by a Guided Capsule Network applied to encoder outputs and the current decoder state. Dual supervision is provided by source-to-target and target-to-source NMT models: partial sub-sequences 4 and 5 supervise Past, while 6 and 7 supervise Future. The capsule-level losses are
8
9
with joint objective
0
Training is synchronous and joint; there is no reported alternation schedule or annealing, and only one direction is used at test time (Yan et al., 2020).
The reported NMT gains are adequacy-oriented. On NIST ZH→EN, Transformer baseline is 1 average BLEU, Zheng et al. (2019) is 2, “Ours” is 3, and “Ours + Inde.Train.” is 4. On WMT14 EN→DE, the authors report 5 BLEU for their Transformer implementation and 6 for the proposed method. Human evaluation on ZH→EN reports under-translation at 7 versus 8 and over-translation at 9 versus 0 compared with GDR. Decoding speed is 1 the baseline Transformer. In both the explicit scheduler of temporally correlated tasks and the implicit scheduler of dual NMT supervision, present learning is organized by a controlled relation between already observed context and future-oriented auxiliary signal.
4. Workflow DAG scheduling and SLA-aware LLM serving
In heterogeneous LLM workflows, FATE treats the scheduler as a repeated frontier planner over a workflow DAG 2 with execution state 3. Here 4 encodes model residency, 5 encodes reusable prefix or cache metadata, 6 records parent-output locations, and 7 captures device next-available times. FATE does not solve a monolithic full-DAG problem. Instead, at each planning wave it constructs a ready frontier 8, introduces binary variables 9 for shard slot 0 of stage 1 on device 2, and maximizes a horizon-aware score
3
The candidate score separates immediate and future terms,
4
where 5 includes queueing, model loading, transfer, execution, and prefix reuse, and 6 values model residency continuity, parent-output locality, prefix reuse alignment, and device reachability within a finite horizon 7 (Huang et al., 8 May 2026).
On the real-DAG benchmark derived from WfCommons and executed on eight RTX 4090 GPUs, FATE achieves normalized makespan 8 and normalized P95 latency 9, reducing them by 00 and 01 over RoundRobin and by 02 and 03 over the strongest non-FATE baseline. In the controlled prefix-reuse suite, it remains strongest, with normalized makespan 04 at repeat ratio 05 and 06 at repeat ratio 07. Ablations show that removing future planning degrades normalized makespan from 08 to 09 10, the largest single drop; removing locality terms yields 11 12, removing same-model bonus 13 14, removing prefix terms 15 16, and removing shard parallelism 17 18. Frontier solves are reported as OPTIMAL, with mean 19 ms, median 20 ms, p95 21 ms, and max 22 ms; elsewhere the paper states that every CP-SAT solve finishes within 23 s under workloads.
A distinct but related scheduler appears in LLM serving under SLA guarantees. Here the core issue is continuous batching under uncertain output lengths, where conservative schedulers reserve memory up to max_new_tokens and aggressive schedulers overcommit based only on current occupancy. The Past-Future scheduler in LightLLM estimates the output-length distribution from a sliding window of completed requests,
24
samples predicted final lengths 25 for both running and queued requests, and computes future memory at completion boundaries by sorting requests in descending order of predicted remaining length and evaluating
26
Admission is allowed only if the predicted future peak stays within capacity, optionally with reserved headroom 27 (Gong et al., 14 Jul 2025).
The serving objective is goodput under SLA guarantees. The reported SLAs are TTFT 28 s and MTPOT 29 s for 30B/31B models, and TTFT 32 s and MTPOT 33 s for the 34B model. LightLLM evaluates window size and settles on 35 as a robust default; scheduler overhead is reported as less than 36 of LLM inference time. The abstract reports up to 37–38 higher goodput than other schedulers under heavy loads. Detailed ablations on LLaMA-2 7B on A100-80G show, for Distribution-1, aggressive scheduling at watermark 39 with current memory 40, future required memory 41, and eviction rate 42, whereas Past-Future with reserved headroom 43 yields current memory 44, future required memory 45, and eviction rate 46. Similar patterns appear on Distribution-2 and Distribution-3. The method is explicitly justified as a balance between request queuing and harmful evictions.
5. Physical-resource scheduling and kernel-level predictive control
The Active Volume scheduler makes the past–future distinction literal at the level of logical qubits. A workspace qubit executes one Active Volume block in one logical cycle; a stale state is any qubit that sits idly while a decoder determines the basis for a reactive measurement; and a bridge qubit is the qubit from a Bell state that idles during a logical cycle while its sister qubit is used as the input for an AV block. The scheduler assigns each logical qubit a role in each logical cycle—workspace, stale-state storage, bridge qubit, memory data, or unused—and uses a greedy strategy to minimize logical cycles while respecting precedence, memory, workspace, and reaction-layer constraints. Runtime is then estimated by
47
with a distance search constrained by
48
The scheduler also produces an empirical bridge-and-stale-state fit of the form 49; for the 50 Fermi–Hubbard lattice, the reported coefficients are 51, 52, 53, with 54 (Heavey et al., 6 Mar 2026).
For the 55 Fermi–Hubbard simulation test circuit, explicit scheduling yields a 56 runtime speedup and a 57 reduction in bridge- and stale-state-qubit overheads compared to the analytic model of (Caesura et al., 10 Jan 2025). The detailed comparison reports logical qubits 58 versus 59, time to completion 60 s versus 61 s, average bridge plus stale fraction 62 versus 63, code distance 64 versus 65, average memory usage fraction 66 versus 67, average unused qubits 68 versus 69, and peak reaction layers 70. The scheduler further shows that reaction times are insignificant in runtime estimates for computers with fewer than 71 logical qubits and that the number of reaction layers per logical cycle remains 72 in this regime. For the 73 Fermi–Hubbard case, the analytic resource estimate fails to find a feasible code distance, whereas the scheduler completes in approximately 74 hours.
KernelOracle applies the past–future idea to operating-system scheduling. It collects CFS traces from a running Linux kernel with perf sched, using commands such as sudo perf sched record -- sleep 50, and trains an LSTM to predict the next scheduling event. The dataset in the main experiments comes from a single-CPU virtual machine running Ubuntu 18.04 with kernel 4.15.0-58-generic, under NGINX load generated by ab -n 1000000 -c 5 http://10.0.2.15/. The paper reports more than 75 seconds of sustained load and 76 unique task names. Inputs include one-hot task identities and standardized inter-schedule time differences 77; one extreme outlier greater than 78 s is dropped. The reported result is qualitative convergence of predicted 79 sequences toward the real sequence’s magnitude and pattern, together with a test loss that decreases and stabilizes by epoch 80 (Kahu, 21 May 2025).
The kernel integration discussion emphasizes that predictive augmentation must remain subordinate to CFS guardrails. Suggested deployment pathways include a userspace helper with shared memory or ring buffer, eBPF hooks, a kernel module with an embedded inference engine, or hardware offload. A blended score is proposed for tie-breaking or limited biasing,
81
under constraints such as maximum vruntime deviation and maximum waiting time. Fairness is monitored through
82
with a fallback to vanilla CFS if predictive deviation becomes excessive. The paper does not report top-1 or top-83 next-task accuracy, perplexity, calibration, or baselines such as Markov models; those omissions are part of the method’s current status.
6. Temporal prediction, invariance, and recurring limitations
A more abstract formulation appears in the scale-invariant temporal-memory model, which is not a scheduler in the systems sense but supplies a general predictive mechanism that can be used for scheduling decisions. The model maintains a bank of leaky integrators,
84
approximates inverse Laplace reconstruction to obtain a fuzzy timeline of the past, and projects this memory forward by a future lag 85 through
86
Pairwise associations are learned Hebbianly and full prediction is produced as
87
The central claim is scale invariance: for any constant 88, the estimated probability 89 is invariant under joint rescaling of 90, 91, and 92. The method is time-local because credit is assigned to the present event by comparing predictions before and after that event (Goh et al., 2021).
This formulation clarifies why past–future schedulers recur across otherwise unrelated domains. A scheduler can be seen as any mechanism that maintains a compressed state of the past and projects a structured estimate of the future. In some applications the projected quantity is a discrete action distribution over temporally correlated tasks; in others it is a frontier score, a future memory peak, or a hazard-like timeline over future events. The papers on renewal processes, LLM workflows, and LLM serving all rely on this principle, albeit with different state spaces and different decision rules (Goh et al., 2021, Huang et al., 8 May 2026, Gong et al., 14 Jul 2025).
Several misconceptions are addressed by the literature. First, future-aware training or scheduling is not automatically beneficial. DualRec shows that future-only training is weaker than past-only training because of inference mismatch, and that too high a regularization weight 93 can harm performance. FATE shows that removing future planning produces the largest single performance drop, but its gains depend on calibrated state-conditional costs and reachability proxies. LightLLM shows that aggressive scheduling can achieve high current memory occupancy while still failing under SLA because future memory peaks trigger evictions. KernelOracle explicitly notes that prediction errors can cause suboptimal choices and that confidence-based gating and safe fallbacks are required (Zhang et al., 2022, Huang et al., 8 May 2026, Gong et al., 14 Jul 2025, Kahu, 21 May 2025).
Second, the future component often disappears at inference or execution time. In DualRec, only the past encoder is retained for recommendation; in dual NMT, only one directional model is used at test time; in LightLLM and FATE, the future is estimated rather than observed; and in Active Volume scheduling, future bridge roles are reserved only to enable concurrent execution in the current cycle. This suggests that “future” usually denotes a training-time, planning-time, or admission-time construct rather than direct access to unavailable information at deployment. The major costs therefore arise not from runtime access to future data but from extra model capacity, solver overhead, or the need to maintain accurate historical statistics (Zhang et al., 2022, Yan et al., 2020, Heavey et al., 6 Mar 2026, Gong et al., 14 Jul 2025).
The common limitations are correspondingly domain-specific. DualRec doubles training cost and may over-align useful asymmetries when 94 is too large. The temporally correlated task scheduler inherits the variance of REINFORCE and can degrade when auxiliary task sets become excessively large. FATE depends on calibrated switch, transfer, and cache proxies, and heavy-tailed service-time distributions affect P95 prediction. LightLLM assumes adjacent-window stability of output-length distributions and behaves conservatively during cold start. The Active Volume scheduler assumes global logical cycles, limited reaction layers, and long-range routing. KernelOracle faces inference-latency constraints and lacks comprehensive accuracy and calibration reporting. Across all of these settings, the past–future coupling is useful precisely because present decisions have delayed effects, but the coupling must be constrained to avoid mismatch, instability, or overhead.