Geometric Deep Learning interview questions: GNNs, symmetry, equivariance

Reviewed by Mark Dickie · Last updated

4 questions on this page you can answer and see marked on the spot. Go to the first one

Geometric Deep Learning is the study of neural networks that respect the structure and symmetries of their input, such as graphs, grids, sets, manifolds and point clouds. Interviewers expect you to explain why symmetry matters (permutation, translation, rotation), how message passing builds node representations, and where these models break, for example oversmoothing and the limits set by the Weisfeiler-Leman test. Be ready to connect a data domain to the right symmetry group and the right architecture.

What does a Geometric Deep Learning interview test?

Questions usually probe the link between a symmetry and a layer design. The table maps common topics to the idea you should be able to state.

TopicWhat you should be able to explain
Permutation invariance vs equivarianceWhy a graph-level readout uses sum or mean, while node updates must be equivariant
Message passing (MPNN)Message, aggregate, update steps, and why aggregation must be order-independent
GCN vs GAT vs GraphSAGEFixed normalised weights, learned attention coefficients, sampled neighbourhoods
Oversmoothing and oversquashingNode features converging with depth, and long-range information squeezed through bottlenecks
Expressive powerWhy standard message passing is bounded by 1-WL, and what GIN does to reach it
Equivariant networks (E(n), SE(3))How coordinates and vectors are updated so rotations of the input rotate the output
Spectral methodsGraph Laplacian eigenbasis, ChebNet polynomial filters, why they avoid full eigendecomposition

How should I prepare for Geometric Deep Learning questions?

  1. Derive a single GCN layer by hand on a three-node graph, including self-loops and symmetric degree normalisation.
  2. Write a message-passing layer in PyTorch Geometric or plain PyTorch using scatter operations, then shuffle node order and check the output permutes accordingly.
  3. Explain why a CNN is translation equivariant, then show how the same argument generalises to groups.
  4. Build two non-isomorphic graphs that 1-WL cannot tell apart, and say what positional or structural encodings would fix it.
  5. Compare how a graph transformer and a GNN handle long-range dependencies, and the cost of each.

Key facts

  • Tarmac has 137 Geometric Deep Learning interview questions on this topic, 10 of them on this page, at difficulty 1–5 of 5.
  • Tarmac last reviewed these Geometric Deep Learning interview questions on 5 December 2026.

At a glance

Questions10 shown · 137 in the bank
Difficulty1–5 of 5
FormatsOrdering, Code output, Multiple choice, Multiple answer, True / false, Find the bug, Short answer, Fill in the blank, Flashcard, Design exercise

What you'll review

  1. gdl implicit and sdf
  2. gdl meshes
  3. gdl sparse kernel cost
  4. gdl choosing a representation

Practice questions

Try one before you open the answer. Pick an option and press Check; it's marked on the spot.

Order the steps of the classic Marching Cubes algorithm as applied to a signed distance function (SDF) sampled on a regular 3D grid.#

Put these in order

Show answer

The correct order is: (1) sample the SDF on a regular 3D grid, (2) identify edges with sign changes, (3) use the lookup table to determine which edges are intersected, (4) interpolate vertex positions along intersected edges, (5) assemble and output the triangle mesh. Each step builds on the previous, making the pipeline a strict sequential order.

Why:

Marching Cubes first evaluates the SDF at every grid vertex, then flags edges where the sign flips (indicating the surface passes through). A precomputed table maps each cube's sign pattern to the set of intersected edges. Vertex positions are then interpolated along those edges to approximate the surface, and the resulting triangles are assembled into the final mesh. Each step strictly depends on the output of the previous one.

The code below evaluates the signed distance function (SDF) of a sphere centered at the origin with radius 2.0 at four query points. What exact text does it print?#

import math

def sphere_sdf(center, radius, point):
    dist = math.sqrt(sum((c - p) ** 2 for c, p in zip(center, point)))
    return dist - radius

center = (0.0, 0.0, 0.0)
radius = 2.0
points = [(0, 0, 0), (3, 0, 0), (2, 0, 0), (1, 1, 1)]

for p in points:
    val = sphere_sdf(center, radius, p)
    print(round(val, 4))
Show answer
-2.0
1.0
0.0
-0.2679
Why:

The SDF of a sphere is ||p - center|| - radius. For (0,0,0): distance 0, result 0 - 2 = -2.0 (inside). For (3,0,0): distance 3, result 3 - 2 = 1.0 (outside). For (2,0,0): distance 2, result 2 - 2 = 0.0 (exactly on surface). For (1,1,1): distance √3 ≈ 1.73205, result ≈ -0.2679 (inside, rounded to 4 decimal places).

In geometric deep learning, a triangle mesh is commonly described by a set of vertices and a set of faces. Which statement best captures a key structural advantage of the mesh representation over a raw point cloud for learning tasks such as surface deformation or texture transfer?#

Options

Show answer

A mesh stores explicit edges and faces that define each vertex's local neighborhood, while a point cloud provides only coordinates and must use external heuristics like k-NN to infer connectivity. This built-in topology is what makes meshes well-suited for tasks involving surface structure, such as deformation or texture transfer. The other options confuse resolution, permutation invariance, or topological restrictions with the core advantage of explicit connectivity.

Why:

The defining structural difference is connectivity: a mesh data structure explicitly records which vertices are connected by edges and which sets of vertices form faces, giving the network direct access to the combinatorial neighborhood of each vertex. A point cloud is just an unordered set of 3-D coordinates; any notion of neighborhood must be induced after the fact by geometric proximity rules such as k-nearest-neighbors or radius search. The claim that a mesh always has a higher spatial resolution than a point cloud is wrong because resolution depends on sampling density, not the representation type. The claim that a mesh is permutation-invariant by construction is wrong because the vertices of a mesh are still arbitrarily ordered in memory; permutation invariance must be handled by the architecture (e.g., via shared MLPs and symmetric aggregations), not by the mesh format itself. The claim that a mesh can only represent surfaces homeomorphic to a sphere is wrong because arbitrary triangle meshes can represent surfaces of any genus; there is no topological restriction to the sphere.

In a sparse (submanifold) 3D convolution layer, which of the following factors determine the per-layer kernel computation cost? Select all that apply.#

Options

Pick every one that applies.

Show answer

The per-layer kernel cost of a sparse convolution is determined by the number of active input voxels, the number of non-zero kernel offsets, and the output channel count. The full dense grid dimensions do not matter because empty voxels are skipped entirely.

Why:

In a sparse convolution, computation is performed only over active input sites and their corresponding kernel offsets, so the cost scales with |C_in| × |K| (plus the output-channel width for the matmul). The dense grid dimensions do not enter the cost at all — empty voxels are never touched. Therefore the number of active input voxels, the number of non-zero kernel offsets, and the number of output channels are correct; the total spatial dimensions of the dense embedding grid is not a determinant of kernel cost.

When 3D shape data is given as a triangulated mesh, using a standard message-passing GNN that treats the mesh purely as an unweighted adjacency graph (ignoring face connectivity, edge lengths, and angles) discards geometric structure that a mesh-native method such as intrinsic surface convolution would preserve.#

Options

Show answer

True. Treating a triangulated mesh as a plain adjacency graph ignores edge lengths, dihedral angles, face areas, and curvature — geometric information that intrinsic surface-convolution methods use. Two combinatorially identical meshes with different geometry become indistinguishable under a generic GNN, so the geometric structure is lost.

Why:

A triangulated mesh carries geometric information beyond its adjacency: edge lengths, dihedral angles, face areas, and curvature. A generic message-passing GNN operates only on the combinatorial graph, so it cannot distinguish two isomorphic graphs with very different geometry. Intrinsic convolutions defined directly on the manifold (e.g., using the Laplace-Beltrami operator or geodesic neighborhoods) exploit this extra structure, so collapsing the mesh to a bare adjacency graph does discard geometric information.

The following PyTorch function computes the reconstruction loss and the Eikonal regularizer for an implicit SDF network. grad has shape (N, 3) — one gradient vector per input point. One line contains a bug that makes the Eikonal regularizer enforce the wrong constraint. Identify the buggy line.#

import torch

def compute_losses(gt_sdf, coords, model):
    # gt_sdf: (N,) ground-truth SDF values
    # coords: (N, 3) 3D coordinates
    # model: MLP mapping coords -> SDF

    coords = coords.detach().requires_grad_(True)
    sdf = model(coords).squeeze(-1)  # (N,)

    grad = torch.autograd.grad(
        outputs=sdf,
        inputs=coords,
        grad_outputs=torch.ones_like(sdf),
        create_graph=True,
    )[0]  # (N, 3)

    recon = torch.abs(sdf - gt_sdf).mean()
    grad_norm = grad.norm(dim=0)
    eikonal = ((grad_norm - 1) ** 2).mean()

    return recon + eikonal
Show answer

The bug is on line 19.

Why:

The tensor grad has shape (N, 3): one 3D gradient vector per input point. The Eikonal constraint requires that the gradient magnitude at each individual point equals 1, so the L2 norm must be computed along the coordinate dimension (dim=-1 or dim=1), yielding an (N,) tensor of per-point norms. Line 19 uses dim=0, which computes the norm along the batch dimension instead, producing a (3,) tensor that aggregates across all points. This does not enforce the per-point unit-norm constraint — it minimizes the column-wise norms across the entire batch, which is a fundamentally different (and incorrect) objective.

In spectral graph neural networks, convolutional filters are defined in the spectral domain using the eigendecomposition of the graph Laplacian (i.e., the graph Fourier basis). Explain why a spectral filter learned on one graph cannot be directly applied to a different graph (different structure or different number of nodes), and name the alternative representation strategy that avoids this transferability problem.#

Show answer

The eigenvectors of the graph Laplacian are specific to a particular graph topology — they form an eigenbasis tied to that graph's structure. When the graph changes (different edge set or different number of nodes), the eigenbasis changes entirely, so spectral filter coefficients defined relative to the old basis have no meaning in the new basis. This makes spectral filters non-transferable across graphs. The alternative is the spatial representation, where convolution is defined via local neighborhood aggregation (message passing). Because the spatial approach operates on each node's local neighborhood rather than a global eigenbasis, the same filter can be applied to graphs of different sizes and structures.

Why:

Spectral GNNs parameterize filters as coefficients in the eigenbasis of the graph Laplacian. Since each graph has its own set of eigenvectors (its own Fourier basis), a filter learned on one graph is expressed in a basis that does not exist on a different graph — the coefficients are meaningless when the eigenbasis changes. This is the fundamental reason spectral filters are not transferable across graphs of different size or structure. The spatial approach sidesteps this by defining convolution through local message passing over each node's k-hop neighborhood, which depends only on local connectivity and is therefore independent of the global graph size or eigenbasis. This is a core consideration when choosing a GDL representation: spectral methods offer precise spectral control but sacrifice transferability, while spatial methods trade spectral precision for generality.

A signed distance function (SDF) f: R^3 → R maps every point in space to the signed distance from that point to the nearest point on a surface S, where f > 0 outside the surface, f < 0 inside, and f = 0 exactly on the surface. A fundamental property that any true SDF must satisfy is the _____ equation, which states that the squared magnitude of the gradient of f equals 1 almost everywhere (i.e., ||∇f(x)||² = 1). In practice, neural networks that learn SDF representations enforce this constraint by adding it as a _____ regularization term to the training loss, penalizing deviations of ||∇f(x)||² from 1 at sampled points. This regularization is critical because without it a neural network may learn a function whose zero level set is geometrically correct but whose distance values away from the surface are not metrically meaningful, breaking downstream applications such as sphere tracing for ray-surface intersection.#

Show answer

A signed distance function (SDF) f: R^3 → R maps every point in space to the signed distance from that point to the nearest point on a surface S, where f > 0 outside the surface, f < 0 inside, and f = 0 exactly on the surface. A fundamental property that any true SDF must satisfy is the Eikonal equation, which states that the squared magnitude of the gradient of f equals 1 almost everywhere (i.e., ||∇f(x)||² = 1). In practice, neural networks that learn SDF representations enforce this constraint by adding it as a soft regularization term to the training loss, penalizing deviations of ||∇f(x)||² from 1 at sampled points. This regularization is critical because without it a neural network may learn a function whose zero level set is geometrically correct but whose distance values away from the surface are not metrically meaningful, breaking downstream applications such as sphere tracing for ray-surface intersection.

Why:

The Eikonal equation ||∇f(x)|| = 1 is the defining differential constraint of a valid signed distance function: it encodes the requirement that the rate of change of distance in the direction of steepest ascent is exactly unity. Neural SDF architectures (e.g., DeepSDF, Implicit Atlas) enforce it via a soft regularization (penalty) term, typically ||∇f(x)||² − 1 squared and averaged over sampled points, because directly hard-constraining a neural network's output gradient is intractable.

In geometric deep learning, what is the core trade-off between explicit representations (triangle meshes, point clouds) and implicit representations (learned occupancy fields, signed distance functions) with respect to intrinsic geometric operators and topological flexibility?#

Show answer

Explicit representations (meshes, point clouds) place data directly on the manifold surface, making intrinsic differential operators—such as the discrete Laplace–Beltrami operator and curvature vectors—computable from the discretization, but they require re-meshing or re-sampling whenever topology changes. Implicit representations (learned occupancy or SDF fields) define the shape as the zero level set of a function over ambient space, so topology changes are trivial and spatial resolution is decoupled from mesh complexity, but intrinsic geometric quantities must be recovered indirectly (e.g., by marching-cubes extraction and re-discretization), adding both approximation error and computational overhead.

Why:

The flashcard pins a single, verifiable trade-off: explicit representations give direct access to intrinsic surface operators at the cost of rigid topology handling, while implicit representations gain topological flexibility and resolution independence at the cost of requiring indirect, lossy reconstruction to recover those same intrinsic operators. This is the widely agreed-upon tension in the geometric deep learning literature and avoids the over-claims flagged in the original (e.g., 'constant cost per query point' and 'directly exposing smooth structure'), since the revised back explicitly notes the approximation error and computational overhead of the indirect recovery step.

You are designing an architecture for learning category-level 3D shape priors using implicit neural representations. The system must take a single partial point cloud of an unseen object instance (e.g., a chair with a missing arm) and produce a watertight surface reconstruction of the full shape. The downstream consumer is a robotics grasping pipeline that requires the reconstructed surface to be differentiable with respect to the input point cloud so that grasp poses can be backpropagated through the reconstruction.#

Show answer

I would use a learned signed distance field (SDF) as the implicit representation, parameterized by a fully-connected MLP with positional encoding (or Fourier features). The SDF is the right choice because its zero level set defines the surface analytically and the function is differentiable everywhere by construction (it is a neural network), so spatial queries — including their gradients via the SDF's spatial gradient — can be backpropagated to the input without any discrete rasterization in the forward pass. The key property is that ∇f(x) is the surface normal and f(x) is the signed clearance, which the grasping pipeline can consume directly.

Conditioning: I use an amortized variational encoder — a PointNet or PointTransformer backbone that pools the partial point cloud into a global feature vector, from which I infer the parameters of a Gaussian latent code z ~ q(z | X_partial). The implicit decoder fθ(x, z) then maps any spatial query point x (concatenated with z) to an SDF value. The amortized bottleneck enables smooth interpolation across shape instances (useful for a shape prior) but can over-smooth fine completion details because the bottleneck must compress all geometry into a fixed-dimensional latent. I would accept this trade-off for category-level priors but note that a cross-attention decoder (DeepSDF-style with per-query attention to input points) would preserve more detail at the cost of a less structured latent manifold.

Losses: (1) An L1 data loss on SDF values sampled at surface points (target 0), near-surface points at ±ε (target ±ε), and free-space points far from the surface (target = true unsigned distance with the correct sign from the watertight mesh). (2) The Eikonal regularization term λ·E[||∇fθ(x, z)|| − 1]², computed via autodiff of the network output w.r.t. the spatial input x. This term is critical because without it, the L1 loss alone has degenerate global minima — e.g., a network that outputs 0 near the surface and a small constant far away achieves low L1 but is not a valid distance field, yielding garbage gradients and broken normals. The Eikonal term forces ||∇f|| = 1, which is the defining property of an SDF and also ensures the gradient is a unit surface normal. (3) A latent regularization term KL(q(z|X) || p(z)) for the variational bottleneck. If only watertight meshes are available, I sample the SDF targets by computing the true unsigned distance from each query point to the mesh surface and assigning the sign from the watertight mesh's inside/outside test.

For the grasping pipeline, I would NOT extract a full mesh and then differentiate through it. Instead, I expose the learned SDF fθ(·, z) and its gradient ∇fθ(·, z) directly to the grasping module. A grasp pose query evaluates the SDF and its gradient at the gripper's contact points and approach path: the SDF value gives signed clearance and the gradient gives the local surface normal for approach alignment. This interface is differentiable end-to-end back to the input point cloud through the encoder and decoder, with no discrete extraction step. If a mesh is strictly required for collision checking, I use standard (non-differentiable) marching cubes for that offline step and rely on the SDF-gradient interface for the differentiable grasp-optimization loop.

Why:

This is a staff-level design exercise because it requires integrating representation choice (SDF vs. occupancy), conditioning architecture (amortized latent vs. cross-attention), geometric regularization (Eikonal), and differentiable inference (direct SDF queries vs. differentiable mesh extraction) — four interdependent decisions with non-obvious trade-offs.

Related interview questions

The other 127 questions

This page shows 10 and marks what you pick. That's as far as a page can go. A free account opens the other 127 and keeps every answer. What you miss comes back until it's right: after a day, then at longer gaps.

Start with this topic

Free · the whole bank · 100 answers per 30 days, each marked with written feedback

Interview booked? Practise the job ad instead

What moved, monthly

One email a month when the bulletin comes out: what moved in the markets we track, and the new question topics we published. Confirm your address to join. Unsubscribe any time.