Request-Only Optimizations (ROO)
- Request-Only Optimizations (ROO) are techniques that treat the entire user request—including both user and item features—as the primary unit, reducing duplication in data processing and storage.
- ROO achieves significant efficiency gains by deduplicating computation, enabling faster training and lower resource costs, especially in recommendation systems where k-fold savings are reported.
- The approach is versatile, applied in LLM serving, Byzantine replication, transactional memory, and caching, ensuring improved throughput and quality via explicit request semantics.
Request-Only Optimizations (ROO) denotes a family of techniques that make the request itself the primary unit of optimization. In the most explicit usage, ROO in recommendation systems treats a user request, rather than an individual impression, as the unit of training data, data processing, and model computation (Guo et al., 24 Jul 2025). Closely related uses appear in batched LLM serving with request-owned mutable state, in adaptive request insertion for waterfall recommender systems, in read-only fast paths for Byzantine state machine replication, in durable read-only transactions on persistent hardware transactional memory, and in caching algorithms that operate from request-derived noisy estimates rather than exact request streams (Yang et al., 27 May 2026, Qian et al., 2022, Berger et al., 2021, Barreto et al., 2024, Mazziane et al., 2023). This suggests a broader systems pattern: computational and storage redundancy can be removed only if the semantics attached to each request—ownership, versioning, consistency, resource budget, or locality—remain explicit.
1. Defining abstractions and design space
The technical meaning of ROO is context dependent. In recommendation training, a request is written as , where denotes user features and each denotes item features and feedback. In read-write test-time training, each token decode step is exposed as an event
with . In PBFT read-only optimization, clients issue a [READ](https://www.emergentmind.com/topics/reconstruction-and-alignment-of-text-descriptions-read)(r,ts) directly to replicas and accept a value after collecting a quorum of matching replies. In DUMBO, read-only transactions perform no updates but must still observe a crash-consistent view. In NFPL-based caching, the online policy acts on noisy request estimates rather than exact request vectors (Guo et al., 24 Jul 2025, Yang et al., 27 May 2026, Berger et al., 2021, Barreto et al., 2024, Mazziane et al., 2023).
Across these settings, the recurring abstractions are request identity, request-local state, request-local observations, and request-local resource accounting. The optimization target is not merely lower latency or lower storage, but lower redundancy under semantic constraints. A plausible implication is that ROO is best understood not as a single algorithmic template but as a design doctrine: represent what is private to a request only once, batch or shortcut only compatible request phases, and preserve the invariants that determine correctness.
2. Request-level data and model co-design in recommendation systems
In the recommendation setting, ROO is a training and modeling paradigm that treats a user request as the unit of data. The contrast is with impression-level training, where each item in a request becomes a separate example and duplicates the entire user feature vector. If is the number of requests in a mini-batch and is the total number of impressions, typically . Under impression-level storage,
whereas request-only storage is
0
The resulting storage reduction ratio is
1
The same deduplication appears in preprocessing and embedding fan-out. If 2 is the cost of user-side processing and 3 is the cost of item-side processing, then impression-level cost per mini-batch is 4, while request-only cost is 5. The theoretical speedup on RO-side work is therefore 6 (Guo et al., 24 Jul 2025).
The data pipeline buffers events by request, accumulates all impressions for that request, and emits a single training sample with separate RO and NRO fields. Downstream preprocessing flattens these into two variable-length tensors: a 7 dense tensor plus a KeyedJaggedTensor for the RO side, and a 8 dense tensor plus a KeyedJaggedTensor for the NRO side. This data representation is paired with ROO-friendly architectures. In two-tower and early-stage ranking models, the user tower depends only on RO features and is computed once per request, then shared across the 9 impressions. UserArch applies a Linear Compress Embedding layer on the RO side: 0 with 1, 2, and amortized cost 3. For autoregressive or generative recommenders, impression-level training re-encodes the user sequence for each target item at cost
4
whereas ROO encodes the concatenated sequence once at cost
5
For 6, 7, 8, this is a 9 saving, and the production implementation is a Hierarchical Sequential Transduction Unit (HSTU).
Across three major Meta recommendation products, the reported effects span storage, throughput, and quality:
| Area | Efficiency result | Quality/result highlight |
|---|---|---|
| Training sample volume | +43%–150% | prior down-sampling eliminated |
| Retrieval | +48% to +570% throughput | HSTU (ROO) at 0.99× relative FLOPs/example; Recall@100 +3.87% and +2.41%; Topline +4.77% |
| ESR and LSR | ESR: +125% to +266%; LSR: +32% to +100% | NE reductions and statistically significant topline lifts |
The retrieval comparison on Product B is especially notable. Relative to a baseline at 0 FLOPs/example, HSTU trained at impression level uses 1 FLOPs/example and yields Recall@100 gains of 2 and 3, whereas HSTU under ROO uses 4 FLOPs/example with Recall@100 gains of 5 and 6, plus 7 topline. In ranking, reported Normalized Entropy deltas range from 8 to 9, with corresponding lifts in consumption and engagement. The central significance is that request-level deduplication is not confined to storage; it changes the feasible model class by making more expensive RO-side architectures trainable at production scale.
3. Adaptive request insertion in waterfall recommender systems
A different request-centric line of work concerns when to issue an additional paging request inside a waterfall recommender feed. The formal problem defines a set of decision cases 0, local context features 1, user 2, behavior history 3, and binary action 4, where 5 means inserting a request. The edge-side policy 6 maximizes cumulative feedback subject to a global budget 7: 8 subject to
9
With approximately constant request cost 0, the problem reduces to a 0–1 knapsack: 1 The optimization target is therefore the conditional uplift in purchase rate generated by an inserted request (Qian et al., 2022).
AdaRequest decomposes this problem into user-intention modeling, causal uplift estimation, and budgeted decision making. The CUBE module fuses exposed items 2, session clicks 3, long-term clicks 4, candidate items 5, and coarse user/context features through GRUs, self-attention, and scaled dot-product attention. For example,
6
and the session-click matching weights are
7
The final fused representation is
8
CREST then estimates uplift under the Conditional Independence Assumption,
9
Two heads share the CUBE backbone: 0 so that
1
The DRP decision layer ranks cases by 2 and selects the top 3 per time window, using the previous period’s threshold as a real-time proxy.
The reported experiments use 4 request-invocation records, 5 distinct users, and 6 items from Taobao’s “Guess You Like” waterfall feed. Offline, AdaRequest achieves Qini AUUC 7 versus OneModel 8 and TwoModel 9, Qini@50% 0 versus 1, and AUC 2 versus 3. Online, PR@10 improves by 4 versus PoolR 5, and A/B tests report a 6 lift in GMV under a 7 to 8 QPS allowance. Unlike request-level data deduplication, this variant of request optimization concerns the timing of extra requests under a resource cap; the shared idea is that requests are treated as optimizable interventions rather than passive transport events.
4. Request-owned mutable state in batched LLM serving
RW-TTT addresses a serving problem created by test-time training. In TTT, each request carries mutable model-side state—fast weights, low-rank parameter deltas, or streaming learner state. Standard batched LLM serving assumes shared static weights; serial execution is correct but slow, while naive batching can corrupt per-request state. RW-TTT formulates this as read-write TTT serving. Each decode event is tagged by owner, version, and effect, and two events are batch-compatible iff they share the same effect, run the same backend operator shape, and their versions match the runtime’s committed versions: 9 Grouping is performed by a key 0, so that only compatible phases are dispatched together (Yang et al., 27 May 2026).
The crucial invariant lies in the commit path. After a WRITE batch, the backend returns updated state slices 1 aligned with an owner map 2. For each batch slot 3,
4
Each request’s new version is therefore published only to its owner. The throughput model defines
5
while sequential serving is
6
with speed-up
7
On one A100-equivalent GPU with eight In-Place-TTT streams, the reported aggregate throughput is 8 tok/s, compared with 9 tok/s for sequential TTT and 0 tok/s for 1 batch-1 replicas under an equal 2 GiB memory budget. The speed-ups are 3 over sequential and 4 over replicas, with peak memory 5 GiB matching the replica baseline. The method preserves behavior on RULER and passes owner/version checks. The reported trade-offs are phase skew, state movement overhead that grows with the number of owners, and smaller effective batch sizes on WRITE-heavy workloads. The broader importance is that mutable per-request adaptation can coexist with accelerator batching only if ownership and versioning are elevated to explicit runtime contracts.
5. Read-only requests in Byzantine state machine replication
PBFT’s read-only optimization is a classical fast path for pure reads. In the normal path, an ordinary request proceeds through REQUEST, PRE-PREPARE, PREPARE, COMMIT, and then replica replies; the client accepts after collecting 6 matching replies. Under the read-only optimization, the client broadcasts READ(r,ts) to all 7 replicas, each replica executes the read immediately and returns a signed reply, and the client accepts after collecting a quorum 8, namely 9 matching replies. The optimization reduces latency from five communication steps to two, and linearizability follows from quorum intersection: any read quorum of size 00 intersects the update quorum so that at least one correct replica has seen the latest committed update (Berger et al., 2021).
The same work shows that this optimization can violate liveness. In the isolating-leader attack, a Byzantine primary sends PRE-PREPARE(o) only to 01 replicas, omitting 02 honest replicas. The primary and 03 others complete PREPARE/COMMIT, execute the update, and reply, but the client obtains at most 04 matching replies and never reaches the 05 required by the read-only fast path. Linearizability is preserved, but a correct client can remain blocked indefinitely.
Two repairs are given. Decision broadcasting causes any replica that commits 06 with a valid 07-signature COMMIT certificate to broadcast FWD-DECISION(c,v,\Gamma) to all replicas; any replica that receives a valid proof decides, executes, and re-broadcasts. Decision forwarding makes this repair on demand: an isolated replica that collects 08 ACCEPTs but lacks the decision sends REQ-DECISION(c) to 09 peers, and any decided peer returns FWD-DECISION(c,v,\Gamma). Both preserve safety by quorum-intersection arguments, and both restore liveness by ensuring that isolated replicas can eventually obtain a valid decision proof.
The BFT-SMaRt prototype quantifies the trade-off. In LAN, ROO read latency stays around 10 ms up to saturation, while ordered reads jump above 11 ms. In WAN, median ROO reads are 12–13 ms, versus 14–15 ms for ordered reads; on average, ROO is 16 faster at the median and 17 faster at the 18th percentile. Decision broadcasting adds an extra all-to-all broadcast and reduces throughput by about 19–20, with latency up by about 21. Decision forwarding matches baseline performance in the fault-free case, is about 22 faster than broadcasting in LAN under attack, and is worse in WAN under attack because it incurs an additional REQ-DECISION round-trip. A common misconception corrected by this work is that read-only fast paths are automatically benign; the result shows that bypassing ordering can preserve linearizability yet still compromise liveness.
6. Durable read-only transactions on persistent hardware transactional memory
DUMBO studies read-only transactions in persistent hardware transactions (PHTs), where a read-only transaction performs no writes but must still observe a crash-consistent view of persistent memory. Two bottlenecks dominate prior designs such as SPHT and Pisces. First, HTM imposes read-capacity bounds: if the read set exceeds the transactional cache, the transaction aborts and may fall back to a single-global-lock path. With 23 denoting the probability of capacity abort on 24 threads,
25
Second, durable opacity forces a post-commit durability wait. If 26 is the set of observed or concurrent updaters,
27
As thread count rises, these effects can collapse throughput (Barreto et al., 2024).
DUMBO exploits IBM POWER9 support for suspending and resuming both load and store tracking in HTM. The system maintains a copy-on-write shadow of the persistent heap in DRAM, per-thread redo logs in PM, and a global circular array of durability markers. Threads export
28
and a logical durability timestamp 29. The key operational idea is that suspend/resume allows a transaction to expand its read footprint without capacity aborts and to perform out-of-path synchronization without aborting. IsolationWait scans currently active transactions and enforces the invariant that concurrent update transactions do not read one another’s writes; DurWait prunes the wait set to earlier-committed nondurable transactions.
This changes the asymptotic read-only cost model. For SPHT,
30
whereas for DUMBO,
31
The experimental evaluation uses an IBM POWER9 system with 2 sockets, 32 cores each, SMT 33, for 34 virtual cores, with 35 GB DRAM and HTM flushes emulating a 36 ns PM latency. On TPC-C StockLevel, where read sets are large, SPHT and HTM throughput goes to zero due to capacity aborts and fallback, while DUMBO and Pisces scale to 37 threads, with DUMBO at 38 relative throughput versus Pisces 39. On OrderStatus, DUMBO matches HTM up to 40 threads and then continues scaling. On update-only Payment, DUMBO reports an 41–42 speedup over SPHT; on Delivery, DUMBO-SI yields 43–44 higher throughput than SPHT/HTM; and in read-dominated mixed workloads, overall throughput is 45–46 higher. The reported headline result is up to 47 over the state of the art.
7. Request-only observations and insertion policies in caching
Caching work uses request-only information in two distinct ways. NFPL assumes that the cache may not know the exact request sequence and instead observes only noisy request estimates. Time is slotted, each slot collects a batch of 48 requests, the request vector is 49, and the cache decision 50 marks files missing from the cache. The slot cost is
51
Against the best static hindsight cache 52, expected regret is
53
NFPL chooses
54
where 55 is an unbiased noisy estimate and 56. Under unbiasedness and uniform boundedness assumptions, the final guarantee is
57
Special cases include NFPL-Fix and NFPL-Var, with bounds 58 and 59, respectively (Mazziane et al., 2023).
Empirically, NFPL is evaluated on Zipf-distributed requests, a real Akamai CDN trace, and an adversarial round-robin trace. On stationary Zipf and Akamai traces, LFU approaches OPT quickly and FPL/NFPL converge more slowly due to noise; on adversarial round-robin, only FPL and NFPL attain near-OPT performance, while LRU and LFU fail. A notable reported observation is that lower sampling can help on round-robin because the added randomness outperforms a static bias. Practical guidance is to set 60, update every 61 requests, and use approximate counters only when they preserve unbiasedness or controlled bias.
A second caching line studies “cache on 62 request” insertion under elastic storage and bandwidth costs. If storage incurs cost 63 per unit time and misses incur bandwidth cost 64, with 65, the offline-optimal cost for a request sequence with inter-request gaps 66 is
67
Several online policies are analyzed: Always-on 68, Always-on 69, Single-window on 70, and Dual-window on 71. With 72, Always-on 73 has competitive ratio at most 74; Always-on 75 and Single-window on 76 have competitive ratio at most 77; and Dual-window on 78 with 79 has competitive ratio at most 80. Across exponential, Erlang, deterministic, and Pareto inter-request distributions, the single-parameter dual-window policy 81, 82, is reported as a robust compromise. Under exponential arrivals, the peak ratio is approximately 83, and on a campus-network YouTube trace the window-2nd policy yields about 84–85 total-cost savings over “cache on 1st” (Carlsson et al., 2018).
Taken together, these caching results show two complementary meanings of request-only optimization. One treats request information as incomplete and still seeks no-regret behavior under noise; the other uses request counts themselves as admission signals and optimizes insertion thresholds against elastic costs. In both cases, direct access to full future demand is unavailable, so the request sequence becomes the operative object for online control rather than a fully known workload trace.