Training Diffusion Language Models for Black-Box Optimization

Zipeng Sun, Can Chen, Ye Yuan, Haolun Wu, Jiayao Gu, Christopher Pal, Xue Liu

Introduction

In scientific discovery, researchers frequently encounter Offline Black-Box Optimization (BBO). The goal is to discover improved designs—such as a DNA sequence that binds perfectly to a target protein or an optimal robotic morphology—using only a static dataset of past experiments and their corresponding scores. Because running thousands of new physical lab tests is often cost-prohibitive, models must learn to propose better designs strictly from offline data.

Recently, Large Language Models (LLMs) have been adapted for BBO by formatting tasks as natural-language prompts. However, standard LLMs are autoregressive, meaning they generate sequences strictly from left to right. This poses a significant limitation for biological sequences or physical designs, where a specific structural unit depends heavily on the elements that come both before and after it. Furthermore, there is a substantial domain gap: pre-trained LLMs excel at natural language, but they do not inherently grasp the structured, heterogeneous relationships between design strings and numerical performance labels.

The DiBO Framework

To address these limitations, the authors introduce DiBO (Diffusion for Black-Box Optimization). DiBO shifts the underlying architecture from autoregressive models to Diffusion Language Models (DLMs). Unlike left-to-right generation, a DLM starts with a completely masked sequence and iteratively "denoises" it into a valid design. This allows the model to consider the entire context simultaneously, capturing the strong bidirectional dependencies inherent in complex design problems.

The DiBO framework operates through a three-stage pipeline:

  1. Domain Adaptation (DA): To bridge the gap between natural text and BBO data, the authors construct a unified prompt-response corpus. They introduce explicit delimiter tokens (e.g., |design-start|, |label-start|) to mark field boundaries. The model is then fine-tuned to predict masked tokens across this corpus, allowing it to internalize the semantics of the BBO task.
  2. Supervised Fine-Tuning (SFT): The model is trained to reconstruct high-performing designs (the "response") when conditioned on a "prompt" that includes a task description and several lower-performing examples. This stage teaches the model the general direction of optimization.
  3. Reinforcement Learning (RL): Finally, RL is applied to provide fine-grained feedback. If a generated design achieves a higher score than the examples provided in the prompt, the model receives a positive reward. To maintain computational efficiency, the authors utilize a "one-step unmasking" approximation during this stage.

Experimental Setup

DiBO was evaluated on the Design-Bench suite, specifically targeting small-data regimes (e.g., 500 samples). The evaluation spanned both discrete and continuous domains:

  • Discrete Tasks: TF Bind 8 and TF Bind 10 (optimizing DNA sequences for maximum protein binding), alongside extended RNA optimization tasks (RNA-A/B/C).
  • Continuous Tasks: Ant Morphology and D’Kitty Morphology (optimizing the physical shapes of quadruped robots for movement).

Key Insights and Results

  • State-of-the-Art Performance: DiBO achieved the best overall performance across Design-Bench tasks, ranking #1 in both mean and median rank when compared to a dozen baselines, including GANs, VAEs, and other LLM-based optimizers. Notably, on the TF Bind 8 task, DiBO improved the normalized oracle score by 0.082 over the strongest baseline.
  • The Power of Bidirectionality: The most significant takeaway is the advantage of diffusion over autoregressive backbones. On discrete tasks like DNA design, the diffusion model outperformed the autoregressive model by a wide margin, confirming that bidirectional context is crucial for structured design.
  • High Efficiency: Despite its sophisticated architecture, DiBO is remarkably lightweight. The authors completed the entire training pipeline for a discrete task in just 1.5 hours on a single H100 GPU, making the framework highly accessible to researchers without massive compute clusters.
  • Robustness: DiBO proved stable across different prompt wordings and learning rates, indicating that it is not overly sensitive to hyperparameter tuning.

Limitations and Future Directions

While DiBO sets a new standard for offline BBO, it has a few constraints. Due to GPU memory limits, the in-context "few-shot" examples in the prompt were capped at seven. Scaling the context window to include more historical data could yield further performance gains. Additionally, the current study focuses on small-data regimes; how well DiBO scales when millions of data points are available remains an open question. Finally, while DiBO performed well on continuous robot morphology tasks, its performance margin over autoregressive models was smaller than in discrete tasks. Refining how diffusion models process long strings of floating-point numbers is a promising area for future research.

Summary updated

BibTeX
@inproceedings{sun2026training,
  author = {Zipeng Sun and Can Chen and Ye Yuan and Haolun Wu and Jiayao Gu and Christopher Pal and Xue Liu},
  title = {{Training Diffusion Language Models for Black-Box Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=Z7wI0sor6i},
}
Figure