Papers
Topics
Authors
Recent
Search
2000 character limit reached

L3-Based Resource Allocation for LLM Inference

Updated 5 January 2026
  • L3-based resource allocation is a co-designed method that distributes computational loads between GPUs and DIMM-PIM to overcome memory and bandwidth limitations in LLM inference.
  • Its adaptive scheduling algorithm balances decoding and prefill operations, achieving up to 14.3× larger batch sizes and 6.1× speedup compared to traditional HBM-only methods.
  • Innovative techniques such as bit-level re-layout and rank-set interleaving enhance data transfer and reduce latency, enabling near-linear improvements with increased DIMM-PIM capacity and bandwidth.

L3-based resource allocation refers to the hardware–software co-designed methodology for efficient distribution and orchestration of computational resources between GPUs and DIMM-based Processing-In-Memory (DIMM-PIM) subsystems during long-context LLM inference. The L3 system achieves scalability in memory capacity and bandwidth by offloading the decoding phase of multi-head attention (MHA)—the principal bottleneck for context length and batch size—from GPU high-bandwidth memory (HBM) to host-side DIMM-PIM, overcoming trade-offs inherent to conventional HBM-accelerated architectures (Liu et al., 24 Apr 2025).

1. Architectural Overview and Resource Model

L3 operates on a heterogeneous platform comprising GG GPUs, each characterized by FP16 throughput (CGPUC_{\mathit{GPU}} [TFLOP/s]), HBM capacity (HGPUH_{\mathit{GPU}} [bytes]), and HBM bandwidth (BHBMB_{\mathit{HBM}} [bytes/s]). The host-side memory subsystem is augmented with DIMM-PIM capability, consisting of DD channels, RR ranks per channel, and BB banks per rank, with each DRAM chip featuring a data bus width wchipw_{\text{chip}}.

The total PIM memory capacity is formalized as: CPIM=D⋅R⋅B⋅(rows⋅cols⋅wchip)C_{\mathit{PIM}} = D \cdot R \cdot B \cdot (\text{rows} \cdot \text{cols} \cdot w_{\text{chip}}) Peak bandwidth per channel is BPIM,chanB_{\mathit{PIM,chan}}, yielding total PIM bandwidth: CGPUC_{\mathit{GPU}}0 Data transfer between GPU and host is mediated by PCIe with bandwidth CGPUC_{\mathit{GPU}}1.

2. Adaptive Scheduling and Latency Modeling

L3’s scheduler orchestrates requests in prefilling and decoding phases, striving for maximal overlap of GPU and PIM pipelines to suppress idle bubbles. In each iteration, two sub-batches are constructed:

  • Prefilling requests: Tracked by set CGPUC_{\mathit{GPU}}2, each with finished token count CGPUC_{\mathit{GPU}}3 and possibly processed in chunks CGPUC_{\mathit{GPU}}4.
  • Decoding requests: Tracked by set CGPUC_{\mathit{GPU}}5, with total context length CGPUC_{\mathit{GPU}}6 per request.

Critical latencies per sub-batch CGPUC_{\mathit{GPU}}7:

  • GPU-side latency: CGPUC_{\mathit{GPU}}8
  • PIM-side latency: CGPUC_{\mathit{GPU}}9 with HGPUH_{\mathit{GPU}}0, HGPUH_{\mathit{GPU}}1, and HGPUH_{\mathit{GPU}}2 encoding prefill transfer overlap.

Each iteration solves: HGPUH_{\mathit{GPU}}3 subject to: HGPUH_{\mathit{GPU}}4

HGPUH_{\mathit{GPU}}5

Thereby, resource allocation dynamically adapts to memory and bandwidth constraints.

3. Heuristic Scheduling Procedure

The practical L3 scheduler employs a greedy iterative procedure:

  1. Pull decoding requests fitting host memory; partition into HGPUH_{\mathit{GPU}}6, HGPUH_{\mathit{GPU}}7 for balanced context-length sums.
  2. Initialize HGPUH_{\mathit{GPU}}8; add largest remaining prefilling requests to sub-batch 0 until HGPUH_{\mathit{GPU}}9, and symmetrically for sub-batch 1.
  3. If remaining imbalance exists, select one request in each sub-batch; set chunk size BHBMB_{\mathit{HBM}}0 to equalize BHBMB_{\mathit{HBM}}1 and BHBMB_{\mathit{HBM}}2 (solving a linear equation for BHBMB_{\mathit{HBM}}3).
  4. Update precomputed counters: BHBMB_{\mathit{HBM}}4. Unfinished chunks are re-enqueued for subsequent iterations.

This approach balances GPU and PIM compute utilization and overlaps communication with computation.

4. Hardware–Software Co-Design and Data Mapping Techniques

L3 resolves hardware mismatches and communication overhead through several architectural innovations:

  • Bit-level re-layout: 16-bit FP elements split across ×8-bit chips are rearranged so that all bits are co-located; a rank PU “re-layout unit” swaps the upper and lower 8 bits beat-by-beat during write bursts with zero added cycles: BHBMB_{\mathit{HBM}}5
  • Element-level mapping for K/V matrices: For BHBMB_{\mathit{HBM}}6 score computation, K is tiled such that each bank holds contiguous BHBMB_{\mathit{HBM}}7 slices. For BHBMB_{\mathit{HBM}}8 context, V-token slices are mapped to successive banks.
  • Rank-set interleaving: Only one rank per channel is driven during PCIe offload; others continue PIM compute, maintaining up to BHBMB_{\mathit{HBM}}9 of PIM power live during transfer. Prefill-only offloads are performed in GPU FC background paths, minimizing critical-path communication to only essential Q/K/V and attention vectors.

5. Performance Metrics and Analytical Outcomes

Key performance metrics include:

  • Speedup:

DD0

  • Maximum batch size before out-of-memory (OOM):
    • Baseline HBM-GPU: DD1 requests of GPT-175B @ 8k tokens on 80 GB HBM (batch DD2).
    • L3 with 2 TB DIMM-PIM: batch DD3 requests (up to DD4 larger).
  • Time Between Tokens (TBT): End-to-end token-generation latency.

On representative traces (OpenR1, Dolphin, OpenThoughts, LongBench) and models (OPT-66B, GPT-89B, GPT-175B), L3 demonstrates:

  • Up to DD5 speedup compared to state-of-the-art HBM-PIM.
  • Up to DD6 larger batch sizes versus HBM-only GPU.
  • DD7 speedup versus CPU-offload methods (NEO/FastDecode) due to superior aggregate PIM bandwidth (8–30× vs. DDR).

6. Scalability and Latency Trade-offs

Analysis of scalability reveals:

  • Scaling DIMM-PIM capacity alone (DD8) results in DD9 throughput improvement (PCIe/PIM bandwidth-limited).
  • Scaling bandwidth alone (RR0 ranksets) yields only RR1 gain (capacity saturation).
  • Simultaneous scaling of capacity and bandwidth (RR2 each) enables RR3 gain; full benefit accrues only through concerted resource growth.

Latency outcomes show:

  • L3 maintains TBT within RR4 of GPU-only baseline even on GPT-89B with 6k tokens, due to pipelined PCIe overlap.
  • Increasing ranksets (RR5) yields near-linear TBT reductions, paralleling growth in RR6.

7. Contextual Significance and System Implications

L3-based resource allocation exemplifies a tightly-coupled approach leveraging joint hardware-software innovation to resolve memory and bandwidth bottlenecks in long-context LLM inference. By formalizing the GPU versus PIM trade space, applying iterative latency-balancing scheduling, implementing dynamic data re-layouts, and exploiting communication overlap, L3 substantially increases throughput and batch capacity (5–6× speedup; 10–15× batch capacity) without sacrificing per-token latency. This architecture marks a substantive advancement in scalable LLM serving and informs future directions in resource management for memory-intensive AI workloads (Liu et al., 24 Apr 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

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

Follow Topic

Get notified by email when new papers are published related to L3-based Resource Allocation.