Efficient Iterative Retrieval with Heterogeneous Batching

Dohyun Park, Hubertus Franke, Daniel G. Waddington, Swaminathan Sundararaman, Yongjoo ParkarXiv 2026

TL;DR

Orthrus is a novel LLM serving system designed specifically for iterative Retrieval-Augmented Generation (RAG) workloads that mix embedding and generation tasks. By introducing heterogeneous batching and chunked embedding with incremental pooling, Orthrus co-schedules these conflicting compute patterns within a single inference loop. This system-level optimization boosts throughput by up to 4.52$\times$ and slashes tail latency by up to 55.8% without requiring any model retraining.

What Problem Does This Paper Address?

State-of-the-art information retrieval pipelines, such as iterative RAG, no longer treat embedding and generation as isolated, linear steps. Instead, they alternate dynamically: an embedding model vectorizes a query, a database returns documents, and a generative model evaluates the context to formulate a more precise follow-up query, repeating the cycle until enough context is gathered.

This creates a highly dynamic, mixed workload. However, embedding and generation exhibit fundamentally conflicting computational patterns:

  • Embedding is highly compute-bound, requiring dense parallel forward passes to aggregate internal states across a full input.
  • Generation decoding is highly memory-bound, fetching large Key-Value (KV) caches from memory token-by-token.

Current serving frameworks (like vLLM) are designed for homogeneous batches and execute these tasks in isolation or via static GPU partitioning. This mismatch leads to poor GPU utilization, costly model reloading, or severe head-of-line blocking where lightweight generation steps get stuck behind heavy embedding requests.

Figure 1: Example iterative retrieval. The workload arrives at Time 0. Neither (a) GPU-level splitting nor (b) homogeneous batching within each GPU completes all requests by Time 3; (c) our heterogeneous batching completes them all.

Methods

The authors present Orthrus, a serving system that unifies embedding and generation workloads into a shared model execution pass using two core techniques:

  1. Chunked Embedding with Incremental Pooling: To prevent heavy embedding requests from creating computational "bubbles" that stall generation, Orthrus breaks embedding inputs into fine-grained token chunks across scheduling iterations. It introduces an incremental pooler that mathematically tracks the state of pooling heads (like mean or weighted-mean pooling) across chunks. This aligns the compute granularity of embeddings with generation decode steps.
  2. Intra-Batch Scheduling (IBS): Instead of relying on naive First-Come-First-Served (FCFS) or rigid static ratios, IBS dynamically adjusts batch composition. It measures the backlog of each queue by its total remaining token count rather than raw request count, allocating GPU capacity proportionally to the outstanding work.
Figure 1: Example iterative retrieval. The workload arrives at Time 0. Neither (a) GPU-level splitting nor (b) homogeneous batching within each GPU completes all requests by Time 3; (c) our heterogeneous batching completes them all.

Datasets

The system was evaluated using two types of workloads:

  • Synthetic Workloads: Controlled stress tests with fixed embedding-to-generation ratios using 128-token embedding inputs, 128-token generation prompts, and 512-token generation outputs.
  • 2WikiMultihopQA: A complex multi-hop question-answering dataset integrated into an Iter-RetGen pipeline to simulate realistic RAG scenarios. This workload featured variable-length prompts (averaging 500 tokens), long decodes (averaging 3,000 tokens), and 1–10 retrieved documents per query iteration.

Key Insights and Ideas

  • Complementary Bottlenecks: Because embedding is compute-bound and generation is memory-bound, they are ideal candidates for co-scheduling. Executing them together allows Orthrus to utilize hardware resources that would otherwise sit idle during homogeneous execution.
  • Chunking for Packing Efficiency: While chunking is traditionally used in generation prefills to smooth out latency spikes, applying it to embeddings allows a scheduler to tightly pack heterogeneous tasks into a strict token budget, maximizing token-budget utilization from 8.8% to 85.7%.
  • Zero-Training Deployment: Orthrus operates entirely at the systems level. It achieves massive performance gains without modifying model architectures, altering memory management, or requiring costly model fine-tuning, making it immediately compatible with existing open-weight models and LoRA adapters.

Key Results

  • Higher Throughput: On controlled synthetic workloads, Orthrus achieved 1.28$\times$ to 4.52$\times$ higher throughput than static GPU-level splitting baselines. On the multi-GPU RAG benchmark, it delivered the highest aggregate throughput across all configurations.
  • Reduced Tail Latency: Orthrus reduced end-to-end p99 latency by up to 55.8% compared to dedicated deployments on the RAG benchmark. It also cut p99 embedding latency by 16% by successfully eliminating head-of-line blocking.
  • Sustained GPU Utilization: Across shifting workload phases (ranging from generation-heavy to embedding-heavy), Orthrus maintained a 79% average GPU utilization, compared to just 38% for static partitioning, completing mixed workloads 43% faster.
  • Robust Generalization: The performance gains were consistently observed across multiple model families (Mistral-7B, Qwen2-7B, LLaMA3.1-8B) and even when co-serving entirely separate models (OPT-1.3B and GTR-T5-XL) on a single GPU.

Limitations and Future Work

  • Parallelism Scaling: The current implementation scales by running one model replica per GPU (tested up to four A100s). It does not yet support tensor or pipeline parallelism, where inter-GPU communication and synchronization overheads might interact unpredictably with heterogeneous batching.
  • Ultra-Large Models: The evaluation focused on open-weight models under 10 billion parameters. Larger models (e.g., 70B+) introduce much stricter memory constraints and different compute-to-memory ratios, which could impact the efficiency of Orthrus's batch-packing mechanics.

Summary updated

BibTeX
@misc{park2026efficient,
  author = {Dohyun Park and Hubertus Franke and Daniel G. Waddington and Swaminathan Sundararaman and Yongjoo Park},
  title = {{Efficient Iterative Retrieval with Heterogeneous Batching}},
  year = {2026},
  eprint = {2609.25405},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.25405},
}
Figure