The DRESS Family of Equations

DRESS is not a single equation. It is a family parameterised by the choice of neighbourhood operator, aggregation function and norm.

Generalized-DRESS

The Generalized-DRESS framework is presented in detail in the k-DRESS paper.

Generalized-DRESS is an abstract template for continuous structural refinement. For each edge \((u, v)\) and a symmetric neighbourhood operator \(\mathcal{N}(u,v)\):

\[ d_{uv}^{(t+1)} = \frac{f\bigl(\{d_{e'}^{(t)}\}_{e' \in \mathcal{N}(u,v)}\bigr)}{g^{(t)}(u) \cdot g^{(t)}(v)} \]

where:

  • \(\mathcal{N}(u,v)\) is a symmetric neighbourhood operator — the set of edges aggregated for edge \((u,v)\),
  • \(f\) is the aggregation function over edges in \(\mathcal{N}(u,v)\),
  • \(g(u)\) is the node norm.

Motif-DRESS

Motif-DRESS is a specialisation of Generalized-DRESS that fixes \(f = \text{sum}\) and \(g = \text{geometric norm}\), defines \(\mathcal{N}(u,v)\) as the set of edges that co-occur with \((u,v)\) in a specific structural motif \(M\), and introduces an optional weight function \(w(e)\) to handle weighted graphs:

\[ d_{uv}^{(t+1)} = \frac{\displaystyle\sum_{e' \in \mathcal{N}_M(u,v)} w_{e'}\,d_{e'}^{(t)}}{\|u\|^{(t)} \cdot \|v\|^{(t)}} \]

where \(\|u\|^{(t)} = \sqrt{\sum_{e' \in \mathcal{N}_M(u,u)} w_{e'}\,d_{e'}^{(t)}}\) is the weighted node norm at time \(t\).

The weights \(w(e)\) act as a multiplicative factor, controlling how much structural information flows along each edge. Because the weights appear identically in the numerator and denominator (both are degree-1 in \(w \cdot d\)), uniformly scaling all weights does not change the fixed point; only the relative weights matter.

Different choices of motif \(M\) yield different neighbourhood operators:

  • Triangle (\(M = K_3\)): \(\mathcal{N}(u,v) = \{(u,x), (x,v) \mid x \in N[u] \cap N[v]\}\) — this recovers Original-DRESS.
  • 4-cycle (\(M = C_4\)): Aggregates over edges participating in 4-cycles with \((u,v)\).
  • \(K_4\) clique: Aggregates over edges forming a \(K_4\) with \((u,v)\).

Complexity: \(\mathcal{O}(\text{Motif Extraction}) + \mathcal{O}(I \cdot |\text{Motifs}|)\). For motifs such as 4-cycles or \(K_4\) cliques in sparse graphs, this is often faster than Original-DRESS.

Expressiveness: All experiments below use the \(K_4\) clique motif. The specific SRG pairs tested below are known to be indistinguishable by 3-WL; each successful distinction therefore demonstrates that Motif-DRESS empirically exceeds 3-WL on these instances.

  • Rook vs. Shrikhande: Successfully distinguishes this pair of SRGs with parameters \((16, 6, 2, 2)\). The Rook graph (\(K_4 \square K_4\)) contains \(K_4\) cliques while the Shrikhande graph does not, so the \(K_4\)-neighbourhood sizes differ per edge.
  • Chang Graphs: Distinguishes 5 of the 6 pairwise comparisons among the four SRGs with parameters \((28, 12, 6, 4)\): T(8), Chang-1, Chang-2, and Chang-3. The only failure is T(8) vs. Chang-3, which share identical \(K_4\)-neighbourhood structure (all edges have the same \(K_4\) count).

Signal preservation under weighted DRESS

Because the Motif-DRESS update is degree-0 homogeneous, uniformly scaling all weights leaves the fixed point unchanged — only the relative weight structure matters. Consequently, structurally meaningful edge weights (such as Laplacian eigenvector differences \(w(u,v) = 1 + \|\varphi(u) - \varphi(v)\|_2\), where \(\varphi\) collects the top-\(k\) eigenvectors of the normalised Laplacian) are not destroyed by the nonlinear iteration but are instead refined into the fixed point. This "Spectral DRESS" variant uses the original triangle motif (\(M = K_3\)), i.e. Original-DRESS with non-uniform edge weights, and empirically distinguishes all six Chang-graph pairs — including T(8) vs. Chang-3, the only pair that the unweighted \(K_4\)-motif approach fails on — demonstrating that DRESS acts as a signal-preserving operator: coherent input structure survives the contraction to the fixed point.

Sufficient Conditions for Convergence

For Motif-DRESS to converge to a unique fixed point, the aggregation function \(f\) and node norm \(g\) must satisfy the following three conditions:

  1. Scale Invariance (Degree-0 Homogeneity). If \(f\) is positively homogeneous of degree \(p\) and \(g\) is positively homogeneous of degree \(q\), then the ratio is homogeneous of degree \(p - 2q\). For the iteration to remain bounded and non-trivial: \(\boxed{p = 2q}\). If \(p > 2q\) the iteration diverges; if \(p < 2q\) it collapses to zero. This makes the mapping scale-invariant: multiplying all \(d\)-values by a constant leaves the next iterate unchanged, so the result depends only on graph structure.

  2. Boundedness. For any valid \(\mathcal{N}_M(e)\) and corresponding norm, the numerator is strictly bounded by the denominator via the Cauchy–Schwarz inequality (or Hölder's inequality for Minkowski-\(r\) variants). Self-loop inclusion ensures the denominator is strictly positive. Thus \(F(d)_{uv} \in [0, 2]\) for all \(d > 0\).

  3. Contraction on the Hilbert Projective Metric. Since \(F\) is a positive, degree-0 homogeneous map on the cone \(\mathbb{R}_{>0}^{|E|}\), Birkhoff's contraction theorem guarantees that \(F\) is a strict contraction under the Hilbert projective metric \(d_H(x, y) = \log\!\bigl(\max_{e} x_e/y_e \cdot \max_{e} y_e/x_e\bigr)\), provided \(F\) maps a bounded part of the cone into a strictly smaller part — which follows from the Cauchy–Schwarz bound above. By the Banach fixed-point theorem on the complete metric space \((\mathbb{R}_{>0}^{|E|}/\!\sim,\, d_H)\), the iteration converges to a unique ray, and the boundedness step pins the representative to \(d^* \in [0, 2]^{|E|}\). A complete formal verification of the contraction constant is deferred to the full version; all empirical tests confirm convergence within 20 iterations.

Self-loops. Self-loops are added to every node before iteration (i.e., the algorithm uses the closed neighbourhood \(N[u] = N(u) \cup \{u\}\)). The self-loop edge \((u,u)\) participates in both the aggregation and the node norm; without it, an isolated edge with no common neighbours would produce \(g(u) \cdot g(v) = 0\), making the iteration undefined.

Invariant: \(d_{uu} = 2\). The self-similarity is invariant under iteration: since \(\mathcal{N}_M(u,u)\) includes all edges incident to \(u\) symmetrically, and \(d_{ux} = d_{xu}\), substituting \(v = u\) yields \(d_{uu}^{(t+1)} = 2g(u)^2 / g(u)^2 = 2\) for all \(t\). Thus \(d_{uu} = 2\) is a fixed property, not a free parameter.

Original-DRESS as a Special Case

The Original-DRESS equation, introduced in Castrillo, León & Gómez (2018), is a special case of Motif-DRESS with:

  • Motif: Triangle (\(M = K_3\)), so \(\mathcal{N}(u,v) = \{(u,x), (x,v) \mid x \in N[u] \cap N[v]\}\)
  • Aggregation: \(f = \text{sum}\)
  • Norm: \(g = \text{geometric norm}\), i.e., \(g(u) = \sqrt{\sum_{x \in N[u]} d_{ux}^{(t)}}\)
\[ d_{uv}^{(t+1)} = \frac{\sum_{x \in N[u] \cap N[v]} \bigl(d_{ux}^{(t)} + d_{xv}^{(t)}\bigr)}{\|u\|^{(t)} \cdot \|v\|^{(t)}} \]

where \(N[u] = N(u) \cup \{u\}\) denotes the closed neighbourhood of \(u\), and \(\|u\|^{(t)} = \sqrt{\sum_{x \in N[u]} d_{ux}^{(t)}}\) is the node norm. Note that \(d_{uu} = 2\) is invariant under iteration. This equation converges to a unique fixed point, providing a continuous structural fingerprint for the graph. However, because it aggregates strictly over triangles (common neighbours), it cannot distinguish graphs with identical triangle counts per edge (e.g., Strongly Regular Graphs).

Some Valid Family Members

Any aggregation–norm pair satisfying \(p = 2q\) produces a valid DRESS variant. Below are concrete examples that can be combined with any motif neighbourhood operator.

Minkowski-r-DRESS

\[ \phi_r = \sum_x (w_{ux}\,d_{ux})^r + (w_{vx}\,d_{vx})^r \qquad \|u\| = \Bigl(\sum_{x \in N[u]} (w_{ux}\,d_{ux})^r\Bigr)^{1/2} \]

so that \(\phi\) has degree \(r\) and each norm factor has degree \(r/2\), giving \(p = r\) and \(2q = 2 \cdot r/2 = r\). ✓

\(r\) Aggregation behaviour Note
1 SUM (linear) The Original-DRESS equation
2 Squared contributions dominate More weight on strong edges
\(\to\infty\) Max over common neighbours Only the strongest edge pair matters

Cosine-DRESS

\[ \phi = \sum_x w_{ux}\,d_{ux} \cdot w_{vx}\,d_{vx} \qquad \|u\| = \sqrt{\sum_{x \in N[u]} (w_{ux}\,d_{ux})^2} \]

\(\phi\) is degree 2 and each norm is degree 1, so \(p = 2q = 2\). ✓

This variant measures similarity through correlated edge strengths rather than their sum.

Geometric-DRESS

\[ \phi = \sum_x \sqrt{w_{ux}\,d_{ux} \cdot w_{vx}\,d_{vx}} \qquad \|u\| = \Bigl(\sum_{x \in N[u]} w_{ux}\,d_{ux}\Bigr)^{1/2} \]

\(\phi\) is degree 1 and each norm is degree \(1/2\), so \(p = 2q = 1\). ✓

Uses the geometric mean of edge pairs. May be more robust to outlier edges.

Kernel-DRESS

Replace the aggregation with a positive-definite kernel:

\[ \phi_K = \sum_x K(w_{ux}\,d_{ux},\; w_{vx}\,d_{vx}) \]

This is valid provided \(K\) is positively homogeneous of degree \(2q\) for the chosen norm. For example, with a polynomial kernel \(K(a,b) = (a + b)^r\) paired with the appropriate Minkowski norm.

k-hop-DRESS

Given graph \(G\), construct the \(k\)-hop augmented graph \(G_k\) (where \((u,v) \in G_k\) iff a path of length \(\le k\) exists in \(G\)), then apply any DRESS family member to \(G_k\). No formula changes are needed; the higher-order structure comes entirely from the input graph construction.

All proofs (boundedness, convergence, uniqueness) carry over immediately since DRESS is well-defined on any valid weighted graph.

Δ-DRESS

Δ-DRESS breaks symmetry by running standard DRESS on each node-deleted subgraph \(G \setminus \{v\}\) for every \(v \in V\). The graph fingerprint is the sorted multiset of \(n\) converged edge-value vectors (one per deletion), compared by flattening and sorting without any summarisation.

Unlike approaches that modify the DRESS iteration itself (e.g., clamping edge values), Δ-DRESS runs unmodified DRESS on structurally altered graphs. Deleting a node from a regular graph produces an irregular subgraph where standard DRESS can now distinguish structure that was hidden by the uniform regularity.

Connection to the Reconstruction Conjecture. The multiset \(\{\!\{ \text{DRESS}(G \setminus \{v\}) : v \in V \}\!\}\) is directly analogous to the deck in the Kelly–Ulam reconstruction conjecture, which posits that graphs with \(n \ge 3\) are determined (up to isomorphism) by their multiset of node-deleted subgraphs. Δ-DRESS computes a continuous relaxation of this deck.

  • Complexity: \(\mathcal{O}(n \cdot I \cdot m \cdot \Delta)\). Embarrassingly parallel across the \(n\) deletions.
  • Expressiveness: Incomparable to the standard WL hierarchy: it empirically distinguishes specific SRG pairs that confound 3-WL, yet fails on some instances (e.g., co-spectral vertex-transitive graphs) that higher-order methods can separate.
    • Rook vs. Shrikhande: Successfully distinguished (SRG(16, 6, 2, 2)).
    • \(2 \times C_4\) vs. \(C_8\): Successfully distinguished (both 2-regular on 8 nodes).
    • Petersen vs. Pentagonal Prism: Successfully distinguished (both 3-regular on 10 nodes).
    • Chang Graphs: Distinguished 5 of 6 pairs. The single failure — T(8) vs. Chang-3 — is expected, as this pair is not separated even by 2-WL.
    • Paley(9) vs. \(L_2(3)\): Failed — both vertex-transitive, so the multiset of deletion fingerprints is identical.

k-Ego-DRESS

For each node \(v\), extract its \(k\)-hop ego network (the induced subgraph on all nodes within distance \(k\) from \(v\)) and run Original-DRESS on that subgraph independently. The graph fingerprint is the multiset of these \(n\) local fixed points.

  • Complexity: \(n \times \mathcal{O}(\text{DRESS}(N_k(v)))\). Extremely fast on sparse graphs where ego networks are small.
  • Expressiveness: Captures local structural variation that global DRESS averages out. On vertex-transitive graphs (e.g., Petersen), 2-hop Ego DRESS splits nodes into distinct structural classes based on their local neighbourhood topology.

delta-DRESS

See Δ-DRESS above. This section is kept for backward compatibility.