Truthful job scheduling

From HandWiki

Truthful job scheduling is a mechanism design variant of the job shop scheduling problem from operations research. We have a project composed of several "jobs" (tasks). There are several workers. Each worker can do any job, but for each worker it takes a different amount of time to complete each job. Our goal is to allocate jobs to workers such that the total makespan of the project is minimized. In the standard job shop scheduling problem, the timings of all workers are known, so we have a standard optimization problem. In contrast, in the truthful job scheduling problem, the timings of the workers are not known. We ask each worker how much time he needs to do each job, but, the workers might lie to us. Therefore, we have to give the workers an incentive to tell us their true timings by paying them a certain amount of money. The challenge is to design a payment mechanism which is incentive compatible.

The truthful job scheduling problem was introduced by Nisan and Ronen in their 1999 paper on algorithmic mechanism design.[1]

Definitions

There are [math]\displaystyle{ n }[/math] jobs and [math]\displaystyle{ m }[/math] workers ("m" stands for "machine", since the problem comes from scheduling jobs to computers). Worker [math]\displaystyle{ i }[/math] can do job [math]\displaystyle{ j }[/math] in time [math]\displaystyle{ T_{i,j} }[/math]. If worker [math]\displaystyle{ i }[/math] is assigned a set of jobs [math]\displaystyle{ J_i }[/math], then he can execute them in time:

[math]\displaystyle{ T_i(J_i) = \sum_{j\in J_i} t_{i,j} }[/math]

Given an allocation [math]\displaystyle{ J_1,\dots,J_m }[/math] of jobs to workers, The makespan of a project is:

[math]\displaystyle{ MakeSpan(J_1,\dots,J_n) = \max_{i} {T_i(J_i)} }[/math]

An optimal allocation is an allocation of jobs to workers in which the makespan is minimized. The minimum makespan is denoted by [math]\displaystyle{ MinMakeSpan }[/math].

A mechanism is a function that takes as input the matrix [math]\displaystyle{ T }[/math] (the time each worker needs to do each job) and returns as output:

  • An allocation of jobs to workers, [math]\displaystyle{ J_1,\dots,J_n }[/math];
  • A payment to each worker, [math]\displaystyle{ p_1,\dots,p_n }[/math].

The utility of worker [math]\displaystyle{ i }[/math], under such mechanism, is:

[math]\displaystyle{ u_i = p_i - T_i(J_i) }[/math]

I.e, the agent gains the payment, but loses the time that it spends in executing the tasks. Note that payment and time are measured in the same units (e.g., we can assume that the payments are in dollars and that each time-unit costs the worker one dollar).

A mechanism is called truthful (or incentive compatible) if every worker can attain a maximum utility by reporting his true timing vector (i.e., no worker has an incentive to lie about his timings).

The approximation factor of a mechanism is the largest ratio between [math]\displaystyle{ Makespan }[/math] and [math]\displaystyle{ MinMakespan }[/math] (smaller is better; an approximation factor of 1 means that the mechanism is optimal).

The research on truthful job scheduling aims to find upper (positive) and lower (negative) bounds on approximation factors of truthful mechanisms.

Positive bound – m – VCG mechanism

The first solution that comes to mind is VCG mechanism, which is a generic truthful mechanism. A VCG mechanism can be used to minimize the sum of costs. Here, we can use VCG to find an allocation which minimizes the "make-total", defined as:

[math]\displaystyle{ MakeTotal(J_1,\dots,J_n) = \sum_{i} {T_i(J_i)} }[/math]

Here, minimizing the sum can be done by simply allocating each job to the worker who needs the shortest time for that job. To keep the mechanism truthful, each worker that accepts a job is paid the second-shortest time for that job (like in a Vickrey auction).

Let OPT be an allocation which minimizes the makespan. Then:

[math]\displaystyle{ MakeSpan[VCG] \leq MakeTotal[VCG] \leq MakeTotal[OPT] \leq m\cdot MakeSpan[OPT] }[/math]

(where the last inequality follows from the pigeonhole principle). Hence, the approximation factor of the VCG solution is at most [math]\displaystyle{ m }[/math] – the number of workers.

The following example shows that the approximation factor of the VCG solution can indeed be exactly [math]\displaystyle{ m }[/math]. Suppose there are [math]\displaystyle{ n=m }[/math] jobs and the timings of the workers are as follows:

  • Worker 1 can do every job in time 1.
  • The other workers can do every job in time [math]\displaystyle{ 1+\epsilon }[/math], where [math]\displaystyle{ \epsilon\gt 0 }[/math] is a small constant.

Then, the VCG mechanism allocates all tasks to worker 1. Both the "make-total" and the makespan are [math]\displaystyle{ n=m }[/math]. But, when each job is assigned to a different worker, the makespan is [math]\displaystyle{ 1+\epsilon }[/math].

An approximation factor of [math]\displaystyle{ m }[/math] is not very good, and many researchers have tried to improve it over the following years.

On the other hand, there are some impossibility results that prove that the approximation factor cannot be too small.

Negative bound – 2

The approximation factor of every truthful deterministic mechanism is at least 2.[1]:177-

The proof is typical of lower bounds in mechanism design. We check specific scenarios (in our case, specific timings of the workers). By truthfulness, when a single worker changes his declaration, he must not be able to gain from it. This induces some constraints on the allocations returned by the mechanism in the different scenarios.

In the following proof sketch, for simplicity we assume that there are 2 workers and that the number of jobs is even, [math]\displaystyle{ n = 2k }[/math]. We consider the following scenarios:

  1. The timings of both workers to all jobs are 1. Since the mechanism is deterministic, it must return a unique allocation [math]\displaystyle{ J_1,J_2 }[/math]. Suppose, without loss of generality, that [math]\displaystyle{ |J_1| \leq |J_2| }[/math] (worker 1 is assigned at most as many jobs as worker 2).
  2. The timings of worker 1 to the jobs in [math]\displaystyle{ J_1 }[/math] are [math]\displaystyle{ \epsilon }[/math] (a very small positive constant); the timings of worker 1 to the jobs in [math]\displaystyle{ J_2 }[/math] are [math]\displaystyle{ 1+\epsilon }[/math]; and the timings of worker 2 to all jobs is still 1. Worker 1 knows that, if he lies and says that his timings to all jobs are 1, the (deterministic) mechanism will allocate him the jobs in [math]\displaystyle{ J_1 }[/math] and his cost will be very near 0. In order to remain truthful, the mechanism must do the same here, so that worker 1 does not gain from lying. However, the makespan can be made half as large by dividing the jobs in [math]\displaystyle{ J_2 }[/math] equally between the agents.

Hence, the approximation factor of the mechanism must be at least 2.

References

  1. 1.0 1.1 Nisan, Noam; Ronen, Amir (2001). "Algorithmic Mechanism Design". Games and Economic Behavior 35 (1–2): 166–196. doi:10.1006/game.1999.0790.