IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0321862.html
   My bibliography  Save this article

Optimization of non-smooth functions via differentiable surrogates

Author

Listed:
  • Shikun Chen
  • Zebin Huang
  • Wenlong Zheng

Abstract

Mathematical optimization is fundamental across many scientific and engineering applications. While data-driven models like gradient boosting and random forests excel at prediction tasks, they often lack mathematical regularity, being non-differentiable or even discontinuous. These models are commonly used to predict outputs based on a combination of fixed parameters and adjustable variables. A key transition in optimization involves moving beyond simple prediction to determine optimal variable values. Specifically, the challenge lies in identifying values of adjustable variables that maximize the output quality according to the model’s predictions, given a set of fixed parameters. To address this challenge, we propose a method that combines XGBoost’s superior prediction accuracy with neural networks’ differentiability as optimization surrogates. The approach leverages gradient information from neural networks to guide SLSQP optimization while maintaining XGBoost’s prediction precision. Through extensive testing on classical optimization benchmarks including Rosenbrock, Levy, and Rastrigin functions with varying dimensions and constraint conditions, we demonstrate that our method achieves solutions up to 40% better than traditional methods while reducing computation time by orders of magnitude. The framework consistently maintains near-zero constraint violations across all test cases, even as problem complexity increases. This approach bridges the gap between model accuracy and optimization efficiency, offering a practical solution for optimizing non-differentiable machine learning models that can be extended to other tree-based ensemble algorithms. The method has been successfully applied to real-world steel alloy optimization, where it achieved superior performance while maintaining all metallurgical composition constraints.

Suggested Citation

  • Shikun Chen & Zebin Huang & Wenlong Zheng, 2025. "Optimization of non-smooth functions via differentiable surrogates," PLOS ONE, Public Library of Science, vol. 20(5), pages 1-29, May.
  • Handle: RePEc:plo:pone00:0321862
    DOI: 10.1371/journal.pone.0321862
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0321862
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0321862&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0321862?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Ghafariasl, Parviz & Mahmoudan, Alireza & Mohammadi, Mahmoud & Nazarparvar, Aria & Hoseinzadeh, Siamak & Fathali, Mani & Chang, Shing & Zeinalnezhad, Masoomeh & Garcia, Davide Astiaso, 2024. "Neural network-based surrogate modeling and optimization of a multigeneration system," Applied Energy, Elsevier, vol. 364(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Wu, Long & Yin, Xunyuan & Pan, Lei & Liu, Jinfeng, 2025. "Smart energy management: Process structure-based hybrid neural networks for optimal scheduling and economic predictive control in integrated systems," Applied Energy, Elsevier, vol. 380(C).
    2. Shervin Espahbod & Arash Tashakkori & Mahsa Mohsenibeigzadeh & Mehrnaz Zarei & Ghasem Golshan Arani & Maria Dzikuć & Maciej Dzikuć, 2024. "Blockchain-Driven Supply Chain Analytics and Sustainable Performance: Analysis Using PLS-SEM and ANFIS," Sustainability, MDPI, vol. 16(15), pages 1-16, July.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0321862. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.