Soft QD Using Approximated Diversity (SQUAD)
- 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 denote a population of parameter vectors, where is a differentiable quality (objective) function and a differentiable behavior descriptor. With and , each solution is treated as an isotropic Gaussian "light source" in behavior space, its "brightness" decaying by bandwidth .
The induced behavior-value field is
and the Soft QD Score is defined as the total illumination:
Direct optimization of is intractable, so SQUAD proceeds via a tractable lower bound. By applying inclusion-exclusion, truncating at pairwise terms, and bounding 0 by 1, one obtains
2
where 3.
- The sum of 4 rewards high-quality solutions.
- The pairwise repulsion term, exponentially decaying with behavioral distance and weighted by 5, enforces diversity.
2. Derivation, Differentiability, and Limit Properties
The lower bound 6 derives from the inclusion-exclusion form:
7
For 8, the 9 term is tightly upper bounded by the geometric mean, which admits Gaussian integral solutions.
The resulting objective, dropping constant factors and using 0:
1
If 2 and 3 are differentiable, so is 4. The per-solution gradient is: 5
Appendix proofs confirm key theoretical properties:
- 6 is nondecreasing under addition of new solutions or increase in 7.
- 8 is submodular; marginal gains diminish as the population grows.
- In the limit 9 (0), 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 2 using mini-batch stochastic gradient ascent. The procedure is as follows:
- Inputs: population size 3, batch size 4, neighbor count 5, iterations 6, diversity bandwidth 7, optimizer 8 (e.g., Adam with learning rate 9).
- Initialization: sample 0; compute qualities 1 and behaviors 2; initialize optimizer state 3.
- Loop: For 4:
- Choose batch 5 of size 6.
- For each 7:
- Identify 8 nearest neighbors 9 in behavior space.
- Compute
0 - Update 1 using 2 via 3; re-evaluate 4.
- Termination: Return 5 at final iteration.
Key hyperparameters: 6, and the Gaussian kernel width 7 if computing 8 directly.
4. Theoretical Properties and Scalability
SQUAD inherits the following properties:
- Monotonicity: 9 is nondecreasing as new solutions are added or 0 is increased.
- Submodularity: Diminishing returns property enables approximate optimality under cardinality constraints.
- Limiting Behavior: For 1, 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 2.
- 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 3, behavior dims 4.
- IC: Image Composition (1024 circles, 5-d behavior).
- LSI: Latent-Space Illumination via StyleGAN2+CLIP, 5 and 6.
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 7, CMA-MAEGA/CMA-MEGA slightly outperform SQUAD, but SQUAD surpasses all baselines in both QVS and QD-Score at 8 and 9 (for example, at 0 QVS: SQUAD 1, CMA-MAEGA 2, CMA-MEGA 3). Gradient-based methods, including SQUAD, outperform mutation-only approaches at higher dimensionalities.
- IC: SQUAD achieves highest mean objective (4), highest max objective (5), and best VS (6). Coverage is slightly below CMA-MAEGA (5.68 vs 5.85), but VS more accurately reflects true diversity.
- Quality-Diversity Trade-Off: Varying 7 in 8 shows a tunable trade-off—higher diversity (VS) for larger 9 at the expense of mean objective.
- LSI: In base (0), SQUAD QD-Score 1, QVS 2, surpassing CMA-MEGA (3), CMA-MAEGA (4). In hard (5), SQUAD (6) vs best baseline (7). Other methods often experience failure (negative mean objectives).
6. Implementation and Practical Considerations
Default Hyperparameters
- IC/LP: 8, 9, 0, 1, 2 tuned to domain (IC: 3; LP: easy/medium/hard 4).
- LSI: 5, 6, 7, 8, 9.
Algorithmic Details
- If 00, behaviors should be mapped via 01 to 02; ablation indicates this is critical.
- Each batch update computes 03 pairwise and 04 quality terms, with overall iteration cost 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 06 or adapting 07 to local density can improve performance.
- Monitor VS, coverage, and mean objective during optimization; early stopping is often effective (e.g., 08200 iterations for IC/LSI).
- Ensure 09 is nonnegative for meaningful QVS evaluation.
Computational Cost
- Simple tasks (LP) complete in under 1 minute.
- IC requires 10190 minutes for 1000 iterations (RTX 4090), but high performance is typically attained in fewer than 200 iterations.
- LSI (base/hard): 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).