Papers
Topics
Authors
Recent
Search
2000 character limit reached

Soft QD Using Approximated Diversity (SQUAD)

Updated 7 December 2025
  • The paper introduces SQUAD—a gradient-based, continuous quality-diversity optimization method that leverages a differentiable lower bound surrogate to maximize aggregate illumination over behavior space.
  • It employs kernel-based interactions and pairwise repulsion to balance quality rewards with diversity constraints, effectively scaling to high-dimensional and large-population problems.
  • Empirical evaluations on tasks such as LP, IC, and LSI demonstrate that SQUAD outperforms several state-of-the-art QD benchmarks with superior metrics like QVS and QD-Score.

Soft QD Using Approximated Diversity (SQUAD) is a differentiable, population-based optimization algorithm that reframes Quality-Diversity (QD) as continuous attraction-repulsion in behavior space. SQUAD circumvents the need for explicit discretization of the behavior space, scaling efficiently to high dimensions and large populations while preserving or outperforming state-of-the-art QD benchmarks. The approach formalizes QD objectives as maximization of aggregate "illumination" from a set of solutions over an abstract behavior space, using kernel-based interactions and a tractable differentiable approximation amenable to gradient-based optimization (Hedayatian et al., 30 Nov 2025).

1. Soft QD Objective: Definition and Intuition

Let Θ={θ1,...,θN}\Theta = \{\theta_1, ..., \theta_N\} denote a population of parameter vectors, where f(θ)R+f(\theta) \in \mathbb{R}_+ is a differentiable quality (objective) function and desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d a differentiable behavior descriptor. With fn=f(θn)f_n = f(\theta_n) and bn=desc(θn)b_n = \mathrm{desc}(\theta_n), each solution is treated as an isotropic Gaussian "light source" in behavior space, its "brightness" fnf_n decaying by bandwidth σ>0\sigma > 0.

The induced behavior-value field is

vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),

and the Soft QD Score is defined as the total illumination:

S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.

Direct optimization of S(Θ)S(\Theta) is intractable, so SQUAD proceeds via a tractable lower bound. By applying inclusion-exclusion, truncating at pairwise terms, and bounding f(θ)R+f(\theta) \in \mathbb{R}_+0 by f(θ)R+f(\theta) \in \mathbb{R}_+1, one obtains

f(θ)R+f(\theta) \in \mathbb{R}_+2

where f(θ)R+f(\theta) \in \mathbb{R}_+3.

  • The sum of f(θ)R+f(\theta) \in \mathbb{R}_+4 rewards high-quality solutions.
  • The pairwise repulsion term, exponentially decaying with behavioral distance and weighted by f(θ)R+f(\theta) \in \mathbb{R}_+5, enforces diversity.

2. Derivation, Differentiability, and Limit Properties

The lower bound f(θ)R+f(\theta) \in \mathbb{R}_+6 derives from the inclusion-exclusion form:

f(θ)R+f(\theta) \in \mathbb{R}_+7

For f(θ)R+f(\theta) \in \mathbb{R}_+8, the f(θ)R+f(\theta) \in \mathbb{R}_+9 term is tightly upper bounded by the geometric mean, which admits Gaussian integral solutions.

The resulting objective, dropping constant factors and using desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d0:

desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d1

If desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d2 and desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d3 are differentiable, so is desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d4. The per-solution gradient is: desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d5

Appendix proofs confirm key theoretical properties:

  • desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d6 is nondecreasing under addition of new solutions or increase in desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d7.
  • desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d8 is submodular; marginal gains diminish as the population grows.
  • In the limit desc(θ)BRd\mathrm{desc}(\theta) \in \mathcal{B} \subseteq \mathbb{R}^d9 (fn=f(θn)f_n = f(\theta_n)0), fn=f(θn)f_n = f(\theta_n)1, i.e., soft QD recovers the canonical QD-Score on a fine grid.

3. SQUAD Algorithm and Optimization

The SQUAD algorithm optimizes the lower bound fn=f(θn)f_n = f(\theta_n)2 using mini-batch stochastic gradient ascent. The procedure is as follows:

  • Inputs: population size fn=f(θn)f_n = f(\theta_n)3, batch size fn=f(θn)f_n = f(\theta_n)4, neighbor count fn=f(θn)f_n = f(\theta_n)5, iterations fn=f(θn)f_n = f(\theta_n)6, diversity bandwidth fn=f(θn)f_n = f(\theta_n)7, optimizer fn=f(θn)f_n = f(\theta_n)8 (e.g., Adam with learning rate fn=f(θn)f_n = f(\theta_n)9).
  • Initialization: sample bn=desc(θn)b_n = \mathrm{desc}(\theta_n)0; compute qualities bn=desc(θn)b_n = \mathrm{desc}(\theta_n)1 and behaviors bn=desc(θn)b_n = \mathrm{desc}(\theta_n)2; initialize optimizer state bn=desc(θn)b_n = \mathrm{desc}(\theta_n)3.
  • Loop: For bn=desc(θn)b_n = \mathrm{desc}(\theta_n)4:

    • Choose batch bn=desc(θn)b_n = \mathrm{desc}(\theta_n)5 of size bn=desc(θn)b_n = \mathrm{desc}(\theta_n)6.
    • For each bn=desc(θn)b_n = \mathrm{desc}(\theta_n)7:
    • Identify bn=desc(θn)b_n = \mathrm{desc}(\theta_n)8 nearest neighbors bn=desc(θn)b_n = \mathrm{desc}(\theta_n)9 in behavior space.
    • Compute

    fnf_n0 - Update fnf_n1 using fnf_n2 via fnf_n3; re-evaluate fnf_n4.

  • Termination: Return fnf_n5 at final iteration.

Key hyperparameters: fnf_n6, and the Gaussian kernel width fnf_n7 if computing fnf_n8 directly.

4. Theoretical Properties and Scalability

SQUAD inherits the following properties:

  • Monotonicity: fnf_n9 is nondecreasing as new solutions are added or σ>0\sigma > 00 is increased.
  • Submodularity: Diminishing returns property enables approximate optimality under cardinality constraints.
  • Limiting Behavior: For σ>0\sigma > 01, SQUAD converges to standard QD-Score maximization over a grid.
  • Curse-of-Dimensionality Avoidance: Does not require discretization or archives, and uses continuous, kernel-based repulsion, resulting in memory requirements invariant to behavior-space dimension σ>0\sigma > 02.
  • Approximation Error: Contributions from neglected higher-order overlaps in the inclusion-exclusion expansion are bounded and decay as behavioral coverage increases.

These properties collectively underpin SQUAD’s ability to scale to high-dimensional behavior spaces and large solution populations.

5. Empirical Evaluation

SQUAD's performance was benchmarked on diverse tasks and compared to existing methods including CMA-MEGA, CMA-MAEGA, Sep-CMA-MAE, GA-ME, DNS, and DNS-G.

Tasks and Metrics

  • LP: Linear-Projection Rastrigin, solution dim σ>0\sigma > 03, behavior dims σ>0\sigma > 04.
  • IC: Image Composition (1024 circles, 5-d behavior).
  • LSI: Latent-Space Illumination via StyleGAN2+CLIP, σ>0\sigma > 05 and σ>0\sigma > 06.

Metrics included QD-Score (sum of best-in-cell over CVT), coverage (number of occupied CVT cells), Vendi Score (VS, effective number of clusters), QVS (mean-quality × VS), mean and max objective.

Outcome Summary

  • LP: At σ>0\sigma > 07, CMA-MAEGA/CMA-MEGA slightly outperform SQUAD, but SQUAD surpasses all baselines in both QVS and QD-Score at σ>0\sigma > 08 and σ>0\sigma > 09 (for example, at vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),0 QVS: SQUAD vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),1, CMA-MAEGA vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),2, CMA-MEGA vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),3). Gradient-based methods, including SQUAD, outperform mutation-only approaches at higher dimensionalities.
  • IC: SQUAD achieves highest mean objective (vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),4), highest max objective (vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),5), and best VS (vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),6). Coverage is slightly below CMA-MAEGA (5.68 vs 5.85), but VS more accurately reflects true diversity.
  • Quality-Diversity Trade-Off: Varying vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),7 in vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),8 shows a tunable trade-off—higher diversity (VS) for larger vΘ(b)=max1nNfnexp(bbn22σ2),v_{\Theta}(b) = \max_{1 \leq n \leq N} f_n \exp\left(-\frac{\|b - b_n\|^2}{2 \sigma^2}\right),9 at the expense of mean objective.
  • LSI: In base (S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.0), SQUAD QD-Score S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.1, QVS S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.2, surpassing CMA-MEGA (S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.3), CMA-MAEGA (S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.4). In hard (S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.5), SQUAD (S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.6) vs best baseline (S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.7). Other methods often experience failure (negative mean objectives).

6. Implementation and Practical Considerations

Default Hyperparameters

  • IC/LP: S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.8, S(Θ)=bRdvΘ(b)db.S(\Theta) = \int_{b \in \mathbb{R}^d} v_{\Theta}(b) \, db.9, S(Θ)S(\Theta)0, S(Θ)S(\Theta)1, S(Θ)S(\Theta)2 tuned to domain (IC: S(Θ)S(\Theta)3; LP: easy/medium/hard S(Θ)S(\Theta)4).
  • LSI: S(Θ)S(\Theta)5, S(Θ)S(\Theta)6, S(Θ)S(\Theta)7, S(Θ)S(\Theta)8, S(Θ)S(\Theta)9.

Algorithmic Details

  • If f(θ)R+f(\theta) \in \mathbb{R}_+00, behaviors should be mapped via f(θ)R+f(\theta) \in \mathbb{R}_+01 to f(θ)R+f(\theta) \in \mathbb{R}_+02; ablation indicates this is critical.
  • Each batch update computes f(θ)R+f(\theta) \in \mathbb{R}_+03 pairwise and f(θ)R+f(\theta) \in \mathbb{R}_+04 quality terms, with overall iteration cost f(θ)R+f(\theta) \in \mathbb{R}_+05.
  • Mini-batching and limited nearest neighbors optimize memory efficiency.

Implementation Tips

  • Automatic differentiation frameworks (JAX, PyTorch, etc.) are recommended for both objective and descriptor.
  • Precompute and cache k-NN structures in behavior space.
  • Annealing f(θ)R+f(\theta) \in \mathbb{R}_+06 or adapting f(θ)R+f(\theta) \in \mathbb{R}_+07 to local density can improve performance.
  • Monitor VS, coverage, and mean objective during optimization; early stopping is often effective (e.g., f(θ)R+f(\theta) \in \mathbb{R}_+08200 iterations for IC/LSI).
  • Ensure f(θ)R+f(\theta) \in \mathbb{R}_+09 is nonnegative for meaningful QVS evaluation.

Computational Cost

  • Simple tasks (LP) complete in under 1 minute.
  • IC requires f(θ)R+f(\theta) \in \mathbb{R}_+10190 minutes for 1000 iterations (RTX 4090), but high performance is typically attained in fewer than 200 iterations.
  • LSI (base/hard): f(θ)R+f(\theta) \in \mathbb{R}_+11730/1300 minutes, with convergence in substantially less than the full budget.

7. Significance in Quality-Diversity Optimization

SQUAD provides an alternative to archive-based QD: it offers a smooth, differentiable objective and adaptively balances quality and diversity through a tunable, analytically tractable surrogate. This formulation permits large-scale, high-dimensional QD optimization previously infeasible with grid-based methods. Empirical evidence demonstrates competitiveness and often superiority versus established QD algorithms on standard benchmarks, with additional robustness and scalability. These features make SQUAD a theoretically well-founded and practically effective approach for large-scale, high-diversity optimization tasks (Hedayatian et al., 30 Nov 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Soft QD Using Approximated Diversity (SQUAD).