Is It Task Conflict or Clock Skew? Time-Aligned Multi-Task Training on Drifting Quantum Hardware

When one model is trained on several tasks at once, the tasks often pull its shared parameters in opposite directions. Two tasks "conflict" when their gradients, the directions that would most improve each task, point away from each other. An entire family of optimizers is built to detect such conflicts and resolve them, for example by finding an update that hurts no task too much. On quantum processors this kind of optimizer meets a second effect. The hardware's error rates drift over minutes to hours. On a quantum chip, each task's gradient is estimated from separate batches of circuit runs, so different tasks' gradients are often measured at different times. They are therefore measured on slightly different machines.

This note argues that a measurable share of the gradient conflict seen when training multi-task quantum models on real hardware comes from this timing mismatch rather than from the tasks themselves. If so, conflict-resolving optimizers are spending effort on a measurement artifact. We propose to quantify that share. We then build the simplest fix that removes it: estimate all task gradients in the same time window by interleaving their circuits, and let the optimizer's per-task gradient memory forget quickly when a reference circuit shows the device has drifted. Finally, we test whether full conflict-resolving machinery still helps once the artifact is gone.

Core Claim

Definitions and setup. A parameterized quantum circuit is a sequence of quantum gates whose rotation angles $\theta$ are trained like neural-network weights. Its gradients on hardware are estimated with the parameter-shift rule, which re-runs the circuit with each angle shifted forward and backward and differences the measured outputs. Under drift, the gradient we measure for task $i$ at time $t_i$ is approximately

$$\hat g_i = g_i(\theta) + \delta_i(\theta, t_i) + \epsilon_i,$$

where:

  • $g_i(\theta)$ is the gradient the task would have on a stable reference device;
  • $\delta_i(\theta, t_i)$ is the systematic shift caused by the device's noise state at time $t_i$;
  • $\epsilon_i$ is zero-mean shot noise from finite repetitions.

Why timing matters. For two tasks measured at different times $t_i \neq t_j$, the inner product $\langle \hat g_i, \hat g_j \rangle$ contains cross terms between $g_i$ and $\delta_j$, and between $\delta_i$ and $\delta_j$. These terms reflect how much the device changed between $t_i$ and $t_j$, not what the tasks require. When the two gradients are measured in interleaved order within one job, both see nearly the same noise state. The drift term then becomes a common shift rather than a differential one.

What we expect to show. Our claim is threefold:

  1. On drifting hardware, sequentially scheduled multi-task training reports more negative-cosine conflict events than interleaved scheduling at matched shot budgets.
  2. Conflict-averse optimizers applied to sequentially measured gradients make updates that are worse than plain averaging of time-aligned gradients.
  3. Per-task gradient memory, the key bias-correction device in classical multi-objective optimization, becomes harmful under drift unless its memory length adapts to the measured drift rate.

Grounding in Prior Work

Evidence that drift is large on the relevant timescales. Three results motivate the proposal:

  • Detecting and tracking drift in quantum information processors uses time-ordered single-shot records ("clickstreams") with a spectral test to detect drift on a trapped-ion qubit. It finds a 0.92 correlation between qubit detuning and lab temperature.
  • CopyQNN reports quantum neural network accuracy swinging by over 10% within a single day.
  • DISQ shows that drift can flip the sign of a variational algorithm's gradient. Its response is to skip and reschedule the corrupted iteration.

All three treat a single objective. None asks what drift does to the relative geometry of several objectives' gradients, and that relative geometry is exactly what multi-task optimizers act on.

Methods we reuse and critique. On the multi-task side:

- Conflict-Averse Gradient Descent (CAGrad) chooses an update near the average gradient that maximizes the worst-case improvement across tasks. It reports a 0.20% average per-task drop on the NYU-v2 indoor-scene benchmark.

  • MoCo shows that such nonlinear weighting is biased when fed noisy gradients. It fixes this by keeping a running average of each task's gradient (gradient tracking) and regularizing the weighting step. It reports 0.16% on NYU-v2 and 86% success on the Meta-World MT10 robot-manipulation suite, combined with CAGrad.

MoCo's remedy assumes that the thing being averaged is stationary. Under drift, a long running average mixes gradients measured on different noise states, which replaces shot-noise bias with staleness bias. Our drift-gated memory is a direct modification of MoCo's tracking variable, not a replacement for it.

Constraints from on-chip and noise-aware training. QOC trains circuits on-chip with parameter shift. It finds that hardware noise corrupts small-magnitude gradients disproportionately, and prunes them probabilistically. This warns that cosine-based conflict tests are least trustworthy precisely when gradients are small, so our analysis must stratify by gradient magnitude. QuantumNAT (RoQNN) injects vendor-calibrated noise during simulated training and normalizes measurement outputs. It is the standard static-robustness reference point.

Closest prior intersection. Variational Quantum Multi-Objective Optimization is the only quantum multi-objective work in the file. It is derivative-free (CMA-ES on a hypervolume score) and models only shot noise. It therefore never meets gradient conflict or drift. Scaling Laws for Meta-Learning in Quantum Control averages meta-gradients across drift regimes without measuring their conflict. However, it works entirely in a differentiable simulator, where the timing artifact cannot arise.

Research Program

1. Instrument conflict on hardware. We train a shared 4–6 qubit parameterized circuit on two or three tasks at once in TorchQuantum, following the QOC setup:

  • binary MNIST;
  • binary Fashion-MNIST;
  • the Vowel task.

Each task reads out from its own measured qubit, so all tasks share circuit angles.

At each step we estimate every task's parameter-shift gradient under two schedules with identical total shots:

  • Sequential: each task's circuits are sent as a separate block.
  • Interleaved: circuits for all tasks and all shifts are randomly rastered within one job.

A fixed reference circuit is inserted at regular positions in every job and timestamped. We record per-task gradients, their pairwise cosines, and the reference expectation over 24-hour windows on IBM devices.

2. Separate the sources of conflict. We define the drift-attributable conflict rate as the fraction of steps where tasks appear to conflict under sequential scheduling but agree when re-estimated interleaved at the same $\theta$. To keep shot-noise sign errors out of this number, we compute a shot-noise null by splitting the interleaved shots into two halves. Gradients are stratified by magnitude, per the QOC warning.

A drift-replay simulator supplies a controlled counterpart. It applies noise models built from successive vendor calibration snapshots across a day, giving us ground-truth $g_i(\theta)$.

3. Drift-gated gradient memory. We modify MoCo's tracking update $y_i \leftarrow (1-\beta)\,y_i + \beta\,\hat g_i$. The mixing rate $\beta$ is no longer fixed; it rises toward one when the reference circuit's expectation moves beyond a threshold calibrated from its own shot-noise variance. This is a DISQ-style detector used to reset memory rather than to discard measurements. Shots already spent on stable tasks are kept, and only stale history is dropped.

4. Test whether conflict resolution still matters. With time-aligned estimation and drift-gated memory in place, we compare plain averaging against CAGrad and MoCo-weighted updates. If the conflict-resolving step adds nothing once drift is aligned, that is a finding: it would mean the apparent need for gradient surgery in this regime was largely an artifact.

Baselines

Naive reference. Sequentially scheduled parameter-shift training on the averaged loss with a standard optimizer, plus single-task on-chip models trained with the same total shot budget. The single-task models anchor the per-task drop metric, as in the CAGrad and MoCo papers. QOC is the reference for single-task on-chip training. It reports over 90% (2-class) and over 60% (4-class) accuracy, and up to 7% gain from gradient pruning. We reproduce its pruning as an optional add-on to every method.

Strongest existing multi-task method. MoCo combined with CAGrad, run exactly as published but fed parameter-shift gradients under sequential scheduling. This is the strongest competitor because it is the only cited method designed for noisy gradients in multi-objective training. Its best reported figure is 86% Meta-World MT10 success; no reported result found on Lacuna for MoCo, CAGrad, or any gradient-surgery method on quantum hardware or multi-task quantum models.

Strongest drift-specific method. DISQ, adapted to skip the whole multi-task iteration when the summed-loss gradient sign-flips relative to its reference baseline. DISQ reports 1.51–2.24× fidelity over vanilla VQE on IBM devices.

Static robustness method. QuantumNAT noise injection and normalization during pre-training, followed by the same on-chip fine-tuning.

Fairness and target. Every method gets the same circuits, devices, time windows, and total shot and circuit budget, including reference-circuit overhead charged to our method. Each method's hyperparameters are tuned with the same number of simulator trials on drift-replayed noise. The bar for beating MoCo+CAGrad is a lower per-task drop relative to single-task models, together with lower accuracy variance across a 24-hour run, both outside run-to-run confidence intervals across at least five seeds and two devices.

Ablations. Four variants isolate the key ingredient:

  • interleaving alone with plain averaging;
  • interleaving plus fixed-memory MoCo;
  • sequential scheduling plus drift-gated memory;
  • the full method.

Why not just…?

Why not just interleave the circuits and use plain averaging? This is the most serious threat. If time alignment removes the artifact, the remaining conflict between, say, binary MNIST and Fashion-MNIST on a small shared circuit may be too mild for any surgery to matter. The ablation tests this directly. If interleaving plus averaging matches the full method, we report the attribution result and the scheduling rule as the contribution, and drop the claim that conflict-aware optimization is needed. Drift-gated memory remains testable separately, since interleaving does nothing about staleness across steps.

Why not just use MoCo as published? MoCo's tracking variable is designed to average away zero-mean noise. Drift is not zero-mean over the memory window, so MoCo's convergence argument does not cover it. CopyQNN's daily swing of over 10% suggests the window matters. The sequential-plus-fixed-memory versus drift-gated comparison, run in the replay simulator where true gradients are known, measures the staleness bias directly.

Why not just skip corrupted iterations as DISQ does? DISQ discards every task's measurements when any part of the aggregate is corrupted, and it was designed for one scalar energy. In a multi-task step, one task's gradient can stay reliable while another's drifts. Resetting memory keeps those shots; skipping does not. The head-to-head at a matched circuit budget decides whether keeping them helps, given that DISQ reports up to 39.2% circuit savings.

Why not just train robustly offline with noise injection, or recalibrate often? QuantumNAT targets a fixed noise snapshot, while the drift we study moves within hours. Scaling Laws for Meta-Learning in Quantum Control reports non-adaptive controllers stuck at 54.2% fidelity where adaptation reaches 95.7%. Frequent recalibration is controlled by the vendor, not the user, on cloud devices. We nonetheless log vendor recalibration times and analyze conflict separately within and across calibration epochs. If conflict artifacts appear only across epochs, scheduling training inside an epoch would be a simpler fix, and we would say so.

Proposed Experiments

Decisive attribution check. On two IBM devices, over 24-hour runs, measure the drift-attributable conflict rate described above, against its shot-noise null. If it is indistinguishable from the null, the core claim fails and the remaining work stops there.

Ground-truth decomposition. In drift-replay simulation, the true conflict is known exactly. This lets us check that the hardware attribution metric recovers it, and lets us vary drift amplitude to find where sequential scheduling begins to mislead CAGrad.

Main on-chip comparison. Run all baselines and ablations on two- and three-task classification. Report three things:

  • per-task accuracy and per-task drop relative to single-task models;
  • standard deviation of accuracy across the day, following the stability-over-mean framing of Anchor;
  • circuits executed.

Second regime. A two-objective variational problem drawn from the QMOO benchmarks, trained with parameter-shift gradients. This tests whether the effect carries over from classification to Hamiltonian objectives, where DISQ's sign flips were first documented.