Spherical Harmonics

Spherical harmonics are basis functions on the sphere used to represent angular structure.

They are commonly written as:

where is the degree and is the order. Higher captures higher-frequency angular structure.

For a unit direction , a spherical harmonic maps direction to an angular basis value:

The degree has components. In equivariant neural networks, these components transform together under rotation:

where and is the Wigner-D matrix for degree .

Radial and Angular Split

For two points , define:

Many 3D models separate distance and direction:

where is a radial basis and is an angular basis. Distances are rotation-invariant; directions carry rotation-equivariant information.

Why It Matters

  • They encode directional information in rotation-aware neural networks.
  • They provide a practical bridge between 3D geometry and irreducible representations.
  • In molecular models, they can describe relative directions between atoms or residues.
  • They help decide whether a model needs only scalar distance features or higher-order angular features.

Degree Choice

Maximum DegreeCapturesCost/Risk
scalar radial information onlycannot represent direction-dependent interactions
vector-like directional structuremoderate cost, often enough for vector fields
higher-order angular patternshigher tensor-product and memory cost

For docking, conformers, and protein-ligand interactions, angular features can matter when orientation, directionality, or local geometry is part of the claim. If the task only predicts an invariant scalar from a fixed graph, distances and scalar features may be sufficient.

Checks

  • Are angular features actually needed, or are distances sufficient?
  • What maximum degree is used, and what compute cost does it add?
  • Are directions normalized and numerically stable?
  • Does the model combine radial and angular information cleanly?