Optimal Transport for Correctional Learning

Rebecka Winqvist, Inês Lourenço, Francesco Quinzan, Cristian R. Rojas, Bo Wahlberg

Abstract

Traditional machine learning assumes that training data is an accurate representation of the underlying system. In practice, however, data is often biased, noisy, or unrepresentative. This paper introduces a generalized framework for Correctional Learning (CL) by framing data correction as an Optimal Transport (OT) problem. By treating data modification as the strategic movement of probability mass, the authors enable a "teacher" agent to optimally perturb a "student" agent's training data to minimize estimation errors, even for complex distributions and non-linear estimators.

Introduction

In many real-world scenarios, the data available for training machine learning models is "broken." Whether due to sensor noise, demographic bias in facial recognition, or skewed sampling in reliability engineering, these flaws lead to inaccurate parameter estimation. Correctional Learning (CL) is a teacher-student framework designed to mitigate these issues. In this setup, an expert teacher—who possesses knowledge of the true system parameters—modifies the data before it is presented to the student (the learning algorithm). The objective is to find an optimal intervention strategy that guides the student toward the truth without exceeding a predefined "intervention budget."

Previous iterations of CL were constrained by their inability to handle complex, non-linear systems, often providing rigid, one-size-fits-all correction policies. This research addresses these limitations by leveraging the mathematical power of Optimal Transport to create a flexible, scalable framework for data correction.

Methodology

The core innovation of this work is the re-casting of data correction as a mass transportation problem. This perspective shifts the focus from individual data points to the underlying probability distributions.

1. Mass Transportation and Kantorovich Formulation

The authors treat the original data distribution and the desired "corrected" distribution as masses of probability. The teacher’s task is to move this mass from the original configuration to a target configuration that minimizes the student's estimation error. This is formulated using the Kantorovich formulation of Optimal Transport, which seeks a transport plan that minimizes cost while satisfying marginal constraints.

2. Linearization via Taylor Approximation

Because a student's estimator function (the mapping from data to parameter estimates) can be highly complex and non-linear, the authors employ a Taylor approximation. Specifically, they use Fréchet derivatives to linearize the objective function. This allows the framework to approximate how small changes in the data distribution will impact the final learned parameters.

3. Discretization and Importance Sampling

To solve the OT problem computationally, the continuous probability space is discretized. The authors use importance sampling to handle the resulting integrals, transforming the problem into a constrained optimization task. The primary decision variable, $\alpha$, represents the transport plan that dictates how probability mass should be redistributed.

4. Intervention Policy

Once the optimal transport plan is identified, the teacher implements the correction by sampling from a conditional probability mass function derived from the plan. This allows the teacher to modify actual data points in a way that aligns with the optimal distributional shift.

Experimental Evaluation

The framework was evaluated across three distinct environments to test its versatility:

  • Gaussian Distribution: A synthetic task focused on estimating the variance ($\sigma^2$) of a normal distribution.
  • Weibull Distribution: A synthetic task estimating the scale parameter ($\lambda$) of a Weibull distribution, a model frequently used in reliability engineering to predict failure rates.
  • Human-Robot Interaction: A simulated Inverse Reinforcement Learning (IRL) task using a 7-degree-of-freedom robotic arm in the PyBullet physics engine. The teacher modified feature counts (e.g., distance to objects) along trajectories to help the robot learn human preferences.

Key Insights

  • Distributional Mapping: The realization that correcting data is equivalent to transporting probability mass allows the use of established, high-performance OT solvers.
  • Budgeted Interventions: The framework explicitly models the "cost" of intervention. By limiting the teacher's ability to "lie" to the student, the framework ensures that corrections remain subtle and the data remains grounded in reality.
  • Policy Flexibility: Because the solution is a transport plan, the teacher can adopt various strategies, such as a "greedy" approach for immediate error reduction or a "receding horizon" approach for long-term stability.

Results

The experimental results demonstrate that the OT-based framework consistently reduces estimation error across all domains. In the Gaussian and Weibull experiments, the student’s error decreased significantly as the teacher’s intervention budget increased. Furthermore, the framework improved sample efficiency, allowing the student to reach lower error rates with fewer data points compared to learning from uncorrected data.

In the robotics application, the teacher successfully "nudged" the robot's learned reward function. By slightly altering observed trajectories, the teacher moved the robot's learned weights (shifting from $0.5$ to $0.05$) much closer to the true human preference of $0.1$, demonstrating the framework's utility in complex, high-dimensional tasks.

Limitations and Future Work

While powerful, the framework faces the curse of dimensionality; the discretization process becomes computationally expensive as the number of features or parameters grows. Additionally, the method's reliance on Fréchet derivatives means it is most effective when the intervention budget is small and the estimator is relatively smooth.

Future research directions include extending the framework to Differential Privacy—using corrections to mask sensitive information—and developing more efficient solvers for high-dimensional time-series data.

Summary updated

Abstract

The contribution of this paper is a generalized formulation of correctional learning using optimal transport, which is about how to optimally transport one mass distribution to another. Correctional learning is a framework developed to enhance the accuracy of parameter estimation processes by means of a teacher-student approach. In this framework, an expert agent, referred to as the teacher, modifies the data used by a learning agent, known as the student, to improve its estimation process. The objective of the teacher is to alter the data such that the student's estimation error is minimized, subject to a fixed intervention budget. Compared to existing formulations of correctional learning, our novel optimal transport approach provides several benefits. It allows for the estimation of more complex characteristics as well as the consideration of multiple intervention policies for the teacher. We evaluate our approach on two theoretical examples, and on a human-robot interaction application in which the teacher's role is to improve the robots performance in an inverse reinforcement learning setting.
BibTeX
@inproceedings{winqvist2023optimal,
  author = {Rebecka Winqvist and Inês Lourenço and Francesco Quinzan and Cristian R. Rojas and Bo Wahlberg},
  title = {{Optimal Transport for Correctional Learning}},
  booktitle = {CDC},
  year = {2023},
  url = {https://openreview.net/forum?id=PRemowKgCG},
}
Figure