Common pitfalls to avoid while using multiobjective optimization in machine learning

Junaid Akhter, Paul David Fährmann, Konstantin Sonntag, Sebastian PeitzarXiv 2024 · DOI

TL;DR

This paper provides a much-needed guide for machine learning practitioners looking to use multiobjective optimization (MOO), highlighting common pitfalls and offering practical advice. The authors demonstrate these challenges using Physics-Informed Neural Networks (PINNs) as a case study, showing how misinterpretations can lead to suboptimal results.

What Problem Does This Paper Address?

Multiobjective optimization (MOO) is increasingly relevant in machine learning (ML) because many real-world problems involve balancing competing goals (e.g., maximizing accuracy while minimizing model size). Unlike single-objective optimization, MOO yields a set of optimal trade-offs (a Pareto front) rather than a single best solution. However, there's a significant lack of accessible literature for ML practitioners to effectively apply MOO. This paper aims to fill that gap by identifying and explaining common pitfalls encountered when using MOO in ML, particularly in the context of deep learning and PINNs.

Methods

The authors introduce and discuss fundamental MOO concepts, focusing on two key methods:

  • Weighted Sum (WS) Method: A straightforward scalarization technique that combines multiple objectives into a single one using weights. The paper explains its limitations, particularly its inability to capture non-convex Pareto fronts.
  • Multiobjective Gradient Descent Algorithm (MGDA): A gradient-based method designed to find descent directions for multiple objectives simultaneously. The paper discusses its advantages and how it can be adapted for deep learning.

They also compare these methods with NSGA-II, a popular evolutionary algorithm, to illustrate differences in their performance and capabilities. The core of their methodology involves designing experiments with Physics-Informed Neural Networks (PINNs) to showcase specific MOO challenges.

Datasets

The paper doesn't use traditional datasets in the sense of pre-defined training/testing splits for classification or regression. Instead, it uses:

  • Simulated data: For the PINN experiments, the "data" is derived from the exact solutions of differential equations (logistic equation, heat equation, Rayleigh-Bénard convection). This data is then intentionally corrupted with Gaussian noise to simulate real-world scenarios and create conflicts between the data and physics objectives.
  • Collocation points: These are specific points in the spatial-temporal domain where the physics-based loss is evaluated.

Key Insights and Ideas

  • MOO is only beneficial when objectives conflict: If objectives can be simultaneously minimized without compromise, MOO offers no advantage over single-objective optimization. The paper emphasizes checking for genuine conflicts.
  • Pareto front identification is tricky: The shape of the Pareto front (convex, non-convex, discontinuous) significantly impacts which MOO methods are suitable. Misinterpreting these shapes, especially due to scaling, can lead to incorrect conclusions.
  • Scaling matters for visualization: Plotting Pareto fronts on linear vs. logarithmic scales can drastically alter their apparent shape, potentially leading to misinterpretations of convexity and trade-offs. Linear-linear scales are recommended for assessing true convexity.
  • Model expressivity influences conflict: Inadequate neural network architectures can artificially create conflicts between objectives, even when they don't inherently exist. Conversely, highly expressive models might smooth out conflicts, negating the need for MOO.
  • Convergence is crucial and complex: Ensuring that the chosen MOO method converges to the true Pareto front is vital. Issues like "problematic plateaus" in training loss can be misleading indicators of convergence.

Key Results

  • The paper demonstrates that simple MOO methods like WS can struggle with non-convex Pareto fronts, while more advanced methods like MGDA can better capture them.
  • Experiments with PINNs show that introducing noise into the data creates meaningful trade-offs between data and physics losses, making MOO valuable. Without noise, the objectives often become non-conflicting.
  • The study highlights that evolutionary algorithms like NSGA-II can be computationally expensive and prone to overfitting in deep learning contexts compared to gradient-based MOO methods.
  • The authors provide visual evidence (Pareto front plots) illustrating various types of fronts and the impact of noise and model size on optimization outcomes.

Limitations and Future Work

  • Limited scope of methods: While the paper covers WS and MGDA, it acknowledges a vast body of literature on other MOO techniques that could be explored further.
  • Focus on two objectives: The experiments primarily deal with two objectives (e.g., data loss and physics loss). Extending the analysis to problems with more than two objectives is suggested as future work, as this can introduce further complexities.
  • Specific application to PINNs: While the insights are broadly applicable, the case study is focused on PINNs. Future work could explore MOO in other ML domains with similar challenges.
  • Further exploration of evolutionary algorithms: While NSGA-II is discussed, a more in-depth comparison with other evolutionary algorithms or more advanced deep learning adaptations could be beneficial.
  • Adding sparsity as an objective: The authors suggest exploring sparsity as an additional objective in PINNs, which could lead to more efficient and interpretable models.

Summary updated

BibTeX
@misc{akhter2024common,
  author = {Junaid Akhter and Paul David Fährmann and Konstantin Sonntag and Sebastian Peitz},
  title = {{Common pitfalls to avoid while using multiobjective optimization in machine learning}},
  year = {2024},
  eprint = {2405.01480},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.01480},
}
Figure