Heterogeneous Graph Reinforcement Learning for Dependency-aware Multi-task Allocation in Spatial Crowdsourcing

Yong Zhao, Zhengqiu Zhu, Chen Gao, En Wang, Jincai Huang, Fei-Yue Wang · OpenReview

TL;DR

This paper introduces HGRL-TA, a reinforcement learning framework designed to optimize multi-task allocation in spatial crowdsourcing while respecting complex subtask dependencies and worker skill constraints. By leveraging a novel Compound-path-based Heterogeneous Graph Attention Network (CHANet), the framework models intricate worker-task relationships to maximize platform profit, outperforming traditional metaheuristics by over 21% with near-instantaneous execution speeds.

What Problem Does This Paper Address?

Spatial Crowdsourcing (SC) platforms—like ride-hailing, food delivery, or localized maintenance services—match distributed workers with location-based tasks. As these platforms evolve, the tasks become more complex, often requiring decomposition into multiple subtasks with strict execution orders (e.g., in house repairs, the plumbing and framing must be completed before tiling and cleaning).

Managing these Dependency-aware Multi-task Allocation (DMA) problems is incredibly challenging. Traditional platforms assign a single subtask to a worker per round, which leaves workers idle and wastes valuable time. Multi-task allocation fixes this by assigning a sequence of tasks to a worker within a single time slot. However, optimizing this sequence while balancing spatial routing, diverse skill requirements, and strict task dependencies makes the DMA problem NP-hard. Existing heuristic methods lack stability, while metaheuristics (like genetic algorithms) are computationally heavy and too slow for real-time deployment.

Fig. 1: The diagram of related definitional items in this paper.

Methods

The authors frame the DMA problem as a Markov Decision Process (MDP) and solve it using a deep reinforcement learning framework called HGRL-TA (Heterogeneous Graph Reinforcement Learning-based Task Allocation). The core architecture consists of:

  1. Multi-relation Graph Model: The problem state is represented as a heterogeneous graph where workers and subtasks are distinct node types. Nodes contain dynamic features (e.g., worker location, available time, remaining subtask budget). Edges capture three distinct semantic relations: skill matching, task dependency, and spatial adjacency.
  2. CHANet (Compound-path-based Heterogeneous Graph Attention Network): Traditional heterogeneous graph neural networks use meta-paths (e.g., Worker $\rightarrow$ Task $\rightarrow$ Worker) to aggregate features, which can dilute direct, multi-relational information between two specific nodes. CHANet introduces compound paths that blend multiple parallel relations between a worker and a subtask before performing graph attention. This preserves rich structural semantics crucial for matching decisions.
  3. Policy Network & Training: A policy network uses the embeddings generated by CHANet to sequentially select valid worker-subtask pairs. The framework uses invalid action masking to ensure all constraints are met and is trained end-to-end using Proximal Policy Optimization (PPO).
Meta-path vs. Compound-path Method

Datasets

The framework was evaluated using synthetically generated datasets designed to simulate realistic spatial crowdsourcing environments:

  • Environment: A 10×10 spatial grid where worker and subtask locations are uniformly distributed.
  • Scales: Tested across various problem sizes, ranging from small-scale setups (5–15 workers, 20 tasks) to large-scale configurations (20–40 workers, 30–50 tasks).
  • Attributes: Tasks were composed of 3 to 5 dependent subtasks, with skill requirements randomly drawn from a multi-skill pool.

Key Insights and Ideas

  • The Power of Compound Paths: For task allocation, the joint relationship between a specific worker and a specific task (e.g., Are they close AND do they match skills?) matters more than isolated paths. Fusing these relations into a single compound path prior to neighborhood aggregation yields significantly better state representations than standard meta-path methods.
  • Strategic Sacrifice: The RL policy learns to look beyond immediate rewards. It will occasionally assign a worker to a lower-profit prerequisite subtask because doing so unlocks a cascade of highly lucrative downstream subtasks later in the execution cycle.
  • Zero-Shot Generalization: Because the framework learns structural patterns via a graph neural network rather than memorizing specific coordinates, a model trained on small-scale instances can generalize seamlessly to large-scale, unseen problem structures without retraining.

Key Results

  • Profit Maximization: HGRL-TA achieved average platform profits 21.78% higher than a state-of-the-art two-stage genetic algorithm (2SGA) and 65.23% higher than a standard greedy heuristic (DMA-G).
  • Computational Efficiency: As the problem scale expanded, the running time of the genetic algorithm exploded exponentially. In contrast, HGRL-TA executed decisions near-instantaneously, demonstrating the millisecond-level latency required for production environments.
  • Architecture Superiority: In ablation studies, CHANet consistently outperformed alternative heterogeneous graph architectures (such as HGAT-MB and HGNN-F) in both final profit ratio and convergence speed.

Limitations and Future Work

The primary limitation of this work is its offline assumption: the model assumes that all tasks, worker schedules, and locations are completely known at the beginning of the allocation time slot. Real-world crowdsourcing platforms operate in highly dynamic, online environments where workers log on stochastically and tasks appear unexpectedly. The authors note that extending HGRL-TA to handle online, real-time stochastic arrivals is the next major step for this research.

Summary updated

BibTeX
@misc{zhao2024heterogeneous,
  author = {Yong Zhao and Zhengqiu Zhu and Chen Gao and En Wang and Jincai Huang and Fei-Yue Wang},
  title = {{Heterogeneous Graph Reinforcement Learning for Dependency-aware Multi-task Allocation in Spatial Crowdsourcing}},
  year = {2024},
  eprint = {2410.15449},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15449},
}
Figure