Skip to main content

Sampling-based Pareto front Refinement via Efficient Adaptive Diffusion

Project description

moospread logo

PyPI version Documentation

SPREAD: Sampling-based Pareto front Refinement via Efficient Adaptive Diffusion

SPREAD is a novel sampling-based approach for multi-objective optimization that leverages diffusion models to efficiently refine and generate well-spread Pareto front approximations. It combines the expressiveness of diffusion models with multi-objective optimization principles to achieve both high convergence to the Pareto front and excellent diversity across the objective space. SPREAD demonstrates competitive performance against state-of-the-art methods while providing a flexible framework for different optimization contexts.

🚀 Getting Started

Installation

conda create -n moospread python=3.11
conda activate moospread
pip install moospread

Or, to install the latest code from GitHub:

conda create -n moospread python=3.11
conda activate moospread
git clone https://github.com/safe-autonomous-systems/moo-spread.git
cd moo-spread
pip install -e .

Basic usage

This example shows how to solve a standard multi-objective optimization benchmark (ZDT2) using the SPREAD solver.

import numpy as np
import torch

# Import the SPREAD solver
from moospread import SPREAD

# Import a test problem
from moospread.tasks import ZDT2

# Define the problem
problem = ZDT2(n_var=30)

# Initialize the SPREAD solver
solver = SPREAD(
    problem,
    data_size=10000,
    timesteps=1000,
    num_epochs=1000,
    train_tol=100,
    mode="online",
    seed=2026,
    verbose=True
)

# Solve the problem
res_x, res_y = solver.solve(
    num_points_sample=200,
    iterative_plot=True,
    plot_period=10,
    max_backtracks=25,
    save_results=True,
    samples_store_path="./samples_dir/",
    images_store_path="./images_dir/"
)

This will train a diffusion-based multi-objective solver, approximate the Pareto front of the ZDT2 problem, and store generated samples and plots in the specified directories.


📚 Next steps

For more advanced examples (offline mode, mobo mode, tutorials), see the full documentation.

Citation

If you find moospread useful in your research, please consider citing:

@inproceedings{
  hotegni2026spread,
  title={{SPREAD}: Sampling-based Pareto front Refinement via Efficient Adaptive Diffusion},
  author={Hotegni, Sedjro Salomon and Peitz, Sebastian},
  booktitle={The Fourteenth International Conference on Learning Representations},
  year={2026},
  url={https://openreview.net/forum?id=4731mIqv89}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moospread-0.1.5.tar.gz (97.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moospread-0.1.5-py3-none-any.whl (115.3 kB view details)

Uploaded Python 3

File details

Details for the file moospread-0.1.5.tar.gz.

File metadata

  • Download URL: moospread-0.1.5.tar.gz
  • Upload date:
  • Size: 97.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for moospread-0.1.5.tar.gz
Algorithm Hash digest
SHA256 14fededafa851c54cade07f6a7bfc0f2d5516d2a1e70bc258f1da6342ecc393b
MD5 21dbca341fd3173b4c8f6029e11d1066
BLAKE2b-256 8f551c984385ed6714ff3f058a12a0eaf11daf4a012e1ac8011875c39db76ed8

See more details on using hashes here.

File details

Details for the file moospread-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: moospread-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 115.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for moospread-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 de0f455f7d724e4b06baeb47d09cb6e7a48e6793d8798b4106cc78910ee52a8d
MD5 9d3abb63e40fe329bd7ba6d4f767560e
BLAKE2b-256 e6f5a39b2e43b8624d9ed1f4cfaa17863cfaa70190be5718264c667cfedac4d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page