Abstract
Traditional online matching models often assume that agents disappear after completing a task. However, modern gig-economy platforms like ride-sharing and freelance marketplaces rely on reusable resources. This paper presents a robust framework for online task assignment that incorporates resource reusability, agent rejection behaviors, and multi-agent task requirements. We propose an LP-based adaptive algorithm that achieves a tight 1/2-competitive ratio, demonstrating significant performance gains over standard baselines in both theoretical analysis and real-world simulations using NYC taxi data.
Introduction
In the landscape of online resource allocation, the standard bipartite matching model—where an agent is matched to a task and then exits the system—is increasingly insufficient. Real-world platforms such as Uber, Lyft, and Amazon Mechanical Turk operate in a continuous loop where agents (drivers or workers) return to the market after completing an assignment.
This paper addresses a generalized model of online task assignment that simultaneously tackles three critical real-world constraints:
- Reusability: Agents become available again after a stochastic "occupation time."
- Rejections: Agents retain the autonomy to decline tasks. They may operate under a "rejection budget" ($\Delta$); exceeding this budget results in the agent leaving the market.
- Task Capacity: Unlike simple matching, a single online task may require the simultaneous coordination of multiple agents (e.g., a large-scale moving job or a specialized team project).
The objective is to design an online algorithm that maximizes total expected profit under a Known Adversarial Distribution (KAD). In this setting, the system designer knows the probability distribution of task types arriving at each time step but does not know the specific sequence of arrivals in advance.
Methodology
The authors propose a two-stage algorithmic framework consisting of an offline benchmark and an adaptive online execution phase.
1. The Offline Benchmark
The process begins by solving a comprehensive Linear Program (LP) that serves as the "best-case scenario" benchmark. This LP incorporates constraints for agent availability, the stochastic nature of reusability, rejection budgets, and the multi-agent capacity requirements of tasks. The solution to this LP provides a fractional assignment strategy that maximizes expected profit if all future arrivals were known.
2. The Online Adaptive Algorithm
When a task arrives in real-time, the algorithm translates the LP's fractional solutions into concrete assignments through two primary mechanisms:
- Decomposition via Carathéodory’s Theorem: To handle multi-agent tasks, the algorithm must select sets of agents without exceeding task capacity. The authors use Carathéodory’s theorem to decompose the LP's fractional solution into a probability distribution over feasible discrete sets of agents. This ensures that the expected number of assignments matches the LP's guidance while maintaining physical feasibility.
- Adaptive Decision-Making: For every agent in a selected set, the algorithm performs a "sanity check" using Dynamic Programming (DP). It calculates the agent's expected future profit. An assignment is only finalized if the profit from the current task, plus the expected future profit after the agent becomes reusable again, exceeds the expected profit of keeping the agent idle for a potential future task. This prevents the system from wasting high-value agents on low-value tasks during periods of high demand.
Theoretical Insights
The paper provides several key theoretical contributions that advance the understanding of online matching:
- Competitive Ratios: The proposed algorithm is proven to be 1/2-competitive when agents have unlimited rejection budgets. In scenarios with limited rejections ($\Delta$), the ratio is $\Delta/(3\Delta - 1)$, which remains at least 1/3.
- Hardness Limits: The authors demonstrate that the 1/2-competitive ratio is tight. This is because the problem contains the "prophet inequality" as a sub-case—a classic result in probability theory that establishes a fundamental limit on how well an online observer can perform against an omniscient adversary.
- Surpassing the 1/e Barrier: In the "Known I.I.D." setting (where task distributions are stationary), many standard algorithms are limited to a competitive ratio of $1/e \approx 0.368$. By incorporating adaptive DP-based checks, this algorithm achieves a ratio $> 0.432$, proving that accounting for future expected value is strictly superior to following LP probabilities blindly.
Empirical Evaluation
The researchers evaluated the framework using both synthetic and real-world datasets:
- Synthetic Dataset: Tests were conducted on bipartite graphs with 30 agents and 100 task types over 200 time steps, using binomial distributions to model occupation times.
- Real-World Application (NYC Taxi): Using the NYC Yellow Cabs dataset from January 2013, the authors modeled drivers as agents and trip requests as tasks. Profits were calculated based on trip fares minus pickup costs.
In both settings, the proposed algorithm consistently outperformed "Greedy" and "Random" baselines. While the preprocessing phase (solving the LP and building DP tables) can take several minutes for large instances, the online decision-making process occurs in less than a millisecond, making it highly suitable for real-time dispatching environments.
Limitations and Future Work
Despite its performance, the framework has areas for improvement. The computational overhead of solving the global LP is the primary bottleneck for massive-scale systems. Future research may explore approximate LP solvers to handle millions of agents. Additionally, the current model does not allow for "recourse"—if an agent rejects a task, the system does not currently attempt to re-assign that task to a backup agent. Finally, investigating the algorithm's robustness to "distributional shifts," where the actual task arrivals deviate from the predicted KAD, remains an important open question.
Summary updated