How xi-l/paretomtl works
Purpose and Entry Points
This repository implements Pareto Multi-Task Learning (Pareto MTL) from the NeurIPS 2019 paper. It has two independent execution tracks:
• A NumPy synthetic optimization demonstration: synthetic_example/run_synthetic_example.py
• A PyTorch multiMNIST training program: multiMNIST/train.py
The supplied PDFs document the algorithm and results: ParetoMTL_NeurIPS2019_Full.pdf and ParetoMTL_NeurIPS2019_Poster.pdf.
Pareto MTL Optimization Core
Pareto MTL turns multi-task loss optimization into preference-conditioned subproblems. For each preference/reference direction, training identifies active constraints and computes a descent direction balancing task-loss gradients with preference constraints.
The minimum-norm convex-combination solver is the central optimization primitive:
• PyTorch-oriented implementation: multiMNIST/min_norm_solvers.py
• NumPy implementation for the synthetic experiment: synthetic_example/min_norm_solvers_numpy.py
These parallel implementations establish a boundary between framework-specific gradient handling and the shared Pareto optimization method.
Synthetic Experiment Pipeline
synthetic_example/run_synthetic_example.py is a standalone numerical driver. It defines or evaluates the synthetic multi-objective problem, obtains task gradients, invokes min_norm_solvers_numpy.py to select Pareto-aware update directions, and iterates toward a set of trade-off solutions.
This path requires NumPy rather than the neural-network/data pipeline and is intended to validate or visualize Pareto-front behavior independently of deep learning.
multiMNIST Training Pipeline
multiMNIST/train.py orchestrates the learned multi-task experiment: dataset loading, model selection, forward passes, per-task losses, Pareto MTL gradient aggregation, optimization, and saved-model handling.
Its data boundary is the locally provisioned multiMNIST dataset:
• Dataset location and acquisition notes: multiMNIST/data/README.md
• Expected data root: multiMNIST/data
• Model output location notes: multiMNIST/saved_model/README.md
Shared-Backbone Task Models
The multiMNIST experiment offers two network families implementing shared representation learning with task-specific predictions:
• LeNet-style model: multiMNIST/model_lenet.py
• ResNet-style model: multiMNIST/model_resnet.py
train.py owns the integration boundary: models produce task outputs, task losses produce gradients, and Pareto MTL replaces ordinary scalar loss summation with a minimum-norm, preference-aware update.
Runtime and External Dependencies
The repository is primarily Python. The synthetic path uses NumPy; the multiMNIST path uses PyTorch-style neural-network training and local image data. There is no service layer, web runtime, database, or cloud infrastructure indicated by the repository structure. Training artifacts are written under multiMNIST/saved_model.
Main entry points: train.py Training orchestrator · run_synthetic_example.py Synthetic driver · min_norm_solvers_numpy.py NumPy min-norm solver · data multiMNIST data
Components 14
Synthetic experiment
Standalone NumPy Pareto-front demonstration.
- Synthetic driver · Runs iterative multi-objective optimization.
synthetic_example/run_synthetic_example.py - Synthetic objectives · Produces objective values and task gradients.
synthetic_example/run_synthetic_example.py - NumPy min-norm solver · Selects convex gradient combinations for updates.
synthetic_example/min_norm_solvers_numpy.py - Trade-off solutions · Approximate Pareto-front points.
- NumPy
multiMNIST training
PyTorch multi-task learning pipeline.
- Training orchestrator · Coordinates data, models, losses, Pareto updates, and checkpoints.
multiMNIST/train.py - multiMNIST data · Locally provisioned image data.
multiMNIST/data - Data acquisition notes
multiMNIST/data/README.md - LeNet task model · Shared representation with task-specific predictions.
multiMNIST/model_lenet.py - ResNet task model · Shared representation with task-specific predictions.
multiMNIST/model_resnet.py - Per-task losses and gradients · Supplies task gradients to Pareto aggregation.
multiMNIST/train.py - PyTorch min-norm solver · Computes preference-aware aggregate descent directions.
multiMNIST/min_norm_solvers.py - Saved models · Checkpoint output location.
multiMNIST/saved_model/README.md - PyTorch
Connections 15
- Synthetic driver → Synthetic objectives: evaluates
- Synthetic objectives → NumPy min-norm solver: task gradients
- NumPy min-norm solver → Synthetic driver: update direction
- Synthetic driver → Trade-off solutions: iterates to
- NumPy → Synthetic driver: numerical runtime
- Data acquisition notes → multiMNIST data: documents setup
- multiMNIST data → Training orchestrator: training batches
- Training orchestrator → LeNet task model: selects
- Training orchestrator → ResNet task model: selects
- LeNet task model → Per-task losses and gradients: task outputs
- ResNet task model → Per-task losses and gradients: task outputs
- Per-task losses and gradients → PyTorch min-norm solver: task gradients
- PyTorch min-norm solver → Training orchestrator: Pareto update
- Training orchestrator → Saved models: writes
- PyTorch → Training orchestrator: training runtime