Search Space Analysis: Mathematics of Hyperparameter Spaces

Learn about search space analysis in hyperparameter optimization. Understand dimensionality, topology, and structure of hyperparameter spaces.

▶ Open the simulation

Introduction

Search space analysis examines the mathematical properties of hyperparameter spaces, including dimensionality, topology, and structure. Understanding these properties helps select appropriate optimization algorithms and design effective search strategies.

Dimensionality

Intrinsic Dimensionality

Effective dimensionality of search space:

d_eff = number of relevant hyperparameters

Often much smaller than nominal dimensionality.

Curse of Dimensionality

Volume concentration in high dimensions:

Volume(outer shell) / Volume(ball) → 1 as d → ∞

Most volume concentrated near boundary.

Space Topology

Continuous Spaces

Euclidean spaces ℝ^d:

  • Metric: ||λ₁ - λ₂||
  • Complete space
  • Dense subsets

Discrete Spaces

Finite sets with discrete topology:

  • Hamming distance
  • Graph structure
  • Combinatorial complexity

Mixed Spaces

Product of continuous and discrete:

Λ = Λ_continuous × Λ_discrete

Space Volume

Hyperrectangle Volume

V = Πi=1d (b_i - a_i)

Effective Volume

Volume of feasible region:

  • May be much smaller than bounds
  • Constraint-reduced volume
  • Practical search space

Distance Metrics

Euclidean Distance

d(λ₁, λ₂) = √(Σ(λ₁ᵢ - λ₂ᵢ)²)

Manhattan Distance

d(λ₁, λ₂) = Σ|λ₁ᵢ - λ₂ᵢ|

Hamming Distance

For discrete spaces: number of differing coordinates.

Key Insight

Search space structure heavily influences optimization difficulty. High dimensionality, complex topology, and large volume make optimization challenging. Understanding space properties guides algorithm selection.

Coverage Analysis

Grid Coverage

Fraction of space covered by grid:

Coverage = (grid_points / total_points) × 100%

Random Coverage

Expected coverage with n samples:

E[Coverage] ≈ 1 - (1 - V_sample/V_total)^n

Space Reduction

Dimensionality Reduction

  • Identify irrelevant dimensions
  • Project to lower dimension
  • Reduce search complexity

Constraint Tightening

  • Narrow ranges based on domain knowledge
  • Remove infeasible regions
  • Focus search

Frequently Asked Questions

What is search space dimensionality?

Dimensionality is the number of hyperparameters. Intrinsic dimensionality may be smaller if some hyperparameters are irrelevant. High dimensionality causes curse of dimensionality.

What is the curse of dimensionality?

Curse of dimensionality means volume concentrates near boundaries in high dimensions, making uniform sampling inefficient. Grid Search suffers severely, Random Search less so.

How do I analyze search space structure?

Analyze dimensionality, topology (continuous/discrete/mixed), volume, distance metrics, constraints, and effective dimensionality. Understanding structure guides algorithm selection.

What distance metrics are used?

Euclidean distance for continuous spaces, Manhattan distance for L1 norm, Hamming distance for discrete spaces. Choice affects algorithm behavior and results.

How does space volume affect optimization?

Larger volumes require more evaluations for coverage. Effective volume (considering constraints) may be much smaller than nominal volume, affecting search efficiency.

What did you find?

Add reproduction steps (optional)