# On Time, Within Budget: Constraint-Driven Online Resource Allocation for Agentic Workflows

*Xinglin Wang, Zishen Liu, Shaoxiong Feng, Peiwen Yuan, Yiwei Li, Jiayi Shi, Yueqi Zhang, Chuyi Tan, Ji Zhang, Boyuan Pan, Yao Hu, Prof. Kan*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154939) · [OpenReview](https://openreview.net/forum?id=9n93yn1m1m) · [Open on the map](../papers.html#p154939)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Constrained Decision Making](../pgroup/502.md) · Type: new method · Keywords: constraint-driven resource allocation, agentic workflows, online planning, Monte Carlo simulation, budget and deadline constraints, workflow orchestration

Areas: [AI Agents](../areas/agents.md) › Agent Systems and Interactions › Multi-Agent Coordination

## Summary
Monte Carlo Portfolio Planning (MCPP) maximizes the probability that an agentic workflow meets budget and deadline constraints by simulating executions and replanning online.

## Explained to a 5-year-old
People ask computer helpers to do many small jobs together. These helpers need to finish all the jobs before a deadline and without spending too much money. The system decides which helper to use for each job and how many copies to run at the same time. It keeps track of how much time and money is left and changes its plan if something goes wrong. This helps make sure the whole set of jobs finishes successfully.

## Explained to a 5-year-old, longer
Imagine you have a big puzzle where each piece is a small task that a computer program can solve. You have two limits: you cannot spend more than a certain amount of money, and you must finish the whole puzzle before a certain time. The computer needs to decide which program solves each piece and how many times to run it at the same moment. It looks at how long each piece might take and how likely it is to succeed. While the puzzle is being solved, the computer watches how much money and time are left. If a piece takes longer than expected or fails, the computer can change its plan and try a different program or run more copies. This way, the computer tries to make sure the entire puzzle finishes within the limits. It does this by trying many possible plans in its mind and picking the one that seems safest. The computer updates its plan as it learns more about how each piece is going. This helps avoid wasting money and missing deadlines. It also makes the whole system more reliable when it is used in real life. The idea is simple: think ahead, watch the resources, and be ready to adjust.

## For a technical reader
The system treats workflow execution as a stochastic online allocation problem with a finite horizon. It uses estimated success probabilities and runtimes for each subtask-model pair to decide how many parallel samples to launch. After each observed outcome, it re-simulates the remaining workflow to update the constrained completion probability and adjust the allocation. This closed-loop planning directly optimizes the chance of meeting hard budget and deadline constraints without requiring full retraining.

## Problem
Real deployments require workflows to finish within a specified budget and deadline, which is more critical than average efficiency. The core problem is to allocate models and parallel samples online to maximize the probability that the whole workflow completes successfully under these constraints.

## Method
The approach formulates resource allocation as a finite-horizon stochastic online problem, using estimates of success rates and execution times for each subtask-model pair. It allocates models and parallel samples across concurrently executable subtasks while tracking remaining budget and time, and replans based on observed outcomes.

## Results
The approach achieves higher constrained completion probability than strong baselines across various budget-deadline settings.

## Contributions
It introduces a formulation of constraint-driven online resource allocation for agentic workflows and proposes a lightweight closed-loop planner that estimates completion probability via simulated executions and replans dynamically.

## Practical relevance
Enables reliable agentic workflows in production by ensuring they meet hard budget and deadline constraints.

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/154939)
