3D Structure

3D structure is a modality where examples include coordinates, distances, orientations, surfaces, or spatial relationships. It is central to protein structures, ligand conformers, protein-ligand complexes, point clouds, and geometry-aware vision.

A coordinate representation is:

Many tasks should be invariant or equivariant to rigid transforms:

where is a rotation matrix and is a translation.

Pairwise distances are often used as invariant features:

Key Ideas

  • The absolute coordinate frame is often arbitrary; relative geometry usually carries the physical meaning.
  • Coordinates can be represented directly, converted into distances, voxelized, or converted into graphs.
  • Some outputs should be invariant scalars; others should be equivariant coordinates or vectors.
  • Preprocessing choices such as centering, alignment, cropping, or pocket selection can change the task.
  • Chirality and reflection symmetry need special care for molecular settings.

Representation Choices

RepresentationModel SeesUseful ForMain Risk
raw coordinatesatom/residue/point coordinatescoordinate prediction, refinement, equivariant modelsarbitrary frame and missing elements
pairwise distancesinvariant scalar models, contact mapsloses chirality and orientation
local frame featurescoordinates relative to anchorsresidue or pocket local geometryframe construction may leak unavailable context
graph from coordinatesnodes plus distance/contact edgesmolecular and protein graph modelscutoff or neighbor rule changes input
grid or voxeldiscretized density or occupancyCNN-style spatial modelsresolution and alignment artifacts
surface or meshgeometric boundarypockets, shape complementaritysurface generation parameters affect claims

Coordinate Contract

For reusable notes, state:

where stores coordinates, maps rows to atoms/residues/points, is a validity mask, and stores source context such as experimental, predicted, docked, generated, or simulated.

The transform rule should be explicit:

Scalar outputs such as affinity, energy, class probability, or rank should be invariant:

Coordinate, force, direction, or vector outputs should be equivariant:

Structure-Based Risks

  • A pocket cropped around a known ligand pose may leak deployment-unavailable information.
  • Aligning structures to a template can hide whether the model is truly invariant.
  • Missing atoms, unresolved loops, alternate locations, protonation states, and chain selection change the input object.
  • Symmetric atoms or repeated residues require explicit mapping before coordinate losses or RMSD.
  • Reflection invariance can be wrong for chiral molecules and protein structures.

Practical Checks

  • Are coordinates experimental, predicted, simulated, docked, or generated?
  • Is the task invariant to rotation, translation, and reflection?
  • Are missing atoms, alternate conformations, or low-confidence regions handled?
  • Does the model use coordinates, distances, graphs, surfaces, grids, or mixed representations?
  • Does evaluation check geometric validity, not only scalar metrics?
  • Is the atom/residue/point mapping fixed before computing coordinate losses?
  • Is pocket or crop definition available at deployment?