# Justitia: Fair and Efficient Scheduling of Task-parallel LLM Agents with Selective Pampering

*Mingyan Yang, Guanjie Wang, Manqi Luo, Yifei Liu, Chen Chen, Han Zhao, Yu Feng, Quan Chen, Minyi Guo*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155554) · [OpenReview](https://openreview.net/forum?id=4goa2ZsfNl) · [Open on the map](../papers.html#p155554)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Speculative Decoding Optimization](../pgroup/126.md) · Type: new method · Keywords: fair scheduling, task-parallel LLM agents, GPU server, memory-centric cost prediction, virtual-time fair queuing

## Summary
Justitia is a fair and efficient scheduler for task-parallel LLM agents that uses memory-centric cost prediction and virtual-time fair queuing to improve scheduling efficiency while preserving fairness.

## Explained to a 5-year-old
We have many computer programs that think like people (LLM agents) and they sometimes work together on tasks. When we run them on a big computer (GPU) that many people share, we need to decide who gets to finish first. We want everyone to finish quickly and also be fair, so nobody waits too long. The new idea is to look at how much memory each task needs, guess how long it will take, and then give a little extra help to some tasks based on when they would finish. This helps everyone finish faster while staying fair.

## Explained to a 5-year-old, longer
Many computers have special programs that can talk and answer questions, called LLM agents. Sometimes these agents work together on a single problem, like solving a puzzle. When we run these agents on a powerful computer that is shared by many people, we need to decide which agent gets to finish its work first. We want the work to finish quickly, but we also want it to be fair so that no agent waits too long. The new idea looks at how much memory each agent needs, because that tells us how long it might take. It uses a simple guess to predict how long each agent will need. Then it gives a little extra help, called pampering, to some agents based on the order they would finish if we shared the computer equally. This extra help makes sure that agents that need more time get a chance to catch up. The system also uses a special way of lining up tasks that guarantees nobody will wait too long. By doing this, the agents finish faster while still being fair to everyone. The whole thing was tested on many different kinds of tasks and worked well. This makes sharing a big computer easier and more pleasant for all users.

## For a technical reader
Justitia is a scheduler designed for running multiple LLM inference tasks on a shared GPU cluster. It estimates each task’s memory usage to predict its runtime, then applies a virtual-time fair-queuing algorithm that gives slight priority to tasks based on their expected completion order. This selective pampering improves overall throughput while guaranteeing a worst-case delay bound. The implementation integrates with vLLM and has been evaluated on a variety of agent workloads, showing significant efficiency gains without sacrificing fairness. Engineers can plug Justitia into existing serving pipelines to achieve more balanced and faster LLM inference.

## Problem
Scheduling task-parallel LLM agents on shared GPU servers must achieve fast completion while guaranteeing worst-case performance, and existing schedulers often trade off fairness for efficiency.

## Method
The approach quantifies agent costs in a memory-centric way using a lightweight predictor, and then applies a virtual-time based fair queuing algorithm to schedule agents, selectively pampering them based on completion order under fair sharing.

## Results
The approach substantially improves scheduling efficiency while preserving fairness on a variety of agent workloads.

## Contributions
A memory-centric cost prediction method for LLM agents, a virtual-time fair queuing scheduler that selectively pamper agents, and empirical evidence of improved efficiency and fairness on diverse workloads.

## Practical relevance
Enables fairer and more efficient LLM serving on shared GPU resources, allowing practitioners to handle diverse task-parallel agents with better resource utilization.

## Research questions this paper is counted under

- [How can we schedule LLM agent tasks across shared resources to balance efficiency, fairness, and latency?](../q/617.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155554)
