betaFeedback

WorksComputer Science

SWORD: Scene-Grounded Wasserstein Object-Relation Distance for 3D Scene Graph Prediction

Abstract

3D scene graph prediction is commonly optimized with object-node and relation-edge classification losses. These objectives encourage exact object and relation label recovery, but they do not directly optimize semantic proximity to the ground-truth scene graph: two wrong graphs can receive comparable penalties even when one is much closer in object roles and relation contexts. A direct graph-distance loss is difficult in general, since graph matching and graph edit distance require correspondence search and edit-cost design. Our key observation is that prior supervised 3D scene graph prediction protocols are conducted on fixed object-node indices and supervised edge slots. This can turn a scene graph comparison into a well-defined aligned graph-distance problem. To this end, we propose SWORD, a Scene-Grounded Wasserstein Object-Relation Distance that builds block-normalized object and relation ground distance metrics from training scene graph annotations through a deterministic base-to-context order, without external semantic priors. SWORD lifts these metrics to Wasserstein distances over aligned node and null-augmented edge marginals, providing semantic graph-distance supervision beyond exact-label penalties while preserving the ground-truth graph as the unique zero-distance solution in aligned marginal probability space. We prove that SWORD is a strict metric on aligned marginal probabilistic scene graphs, preserves scene-graph-grounded substitution ordering, controls additive graph-grounded semantic observables, and yields a surrogate upper-bounding decoded semantic error.

Introduction

3D scene graph prediction represents a 3D scene as a graph of object nodes and relation edges, enabling object-level reasoning beyond isolated recognition. Since 3D semantic scene graphs were introduced for indoor reconstructions, a broad line of work has improved 3D scene graph prediction through RGB-D fusion, point-cloud reasoning, knowledge-guided modeling, visual-linguistic training, multimodal knowledge accumulation, transformers, heterogeneous graph learning, object-centric representations, and edge-centric relation reasoning [1, 6, 10, 11, 22, 23, 24, 33, 34, 35, 38]. Despite these advances, the supervision objective is still largely based on local label prediction: object nodes are trained to classify object labels, and relation edges are trained to classify relation labels.

Such exact-label supervision preserves the ground-truth label as the target, but it does not define a semantic error geometry among different wrong scene graphs. If the ground-truth object is chair, predicting sofa and predicting wall are both incorrect after hard decoding, even though sofa may be closer to chair in the scene graph context. Likewise, if the ground-truth relation is near, predicting adjacent and predicting an opposite directional relation are both wrong, although their semantic severities can differ. Thus, CE/BCE-style node-edge classification optimizes exact-label likelihood, but it does not define an explicit scene-graph-grounded distance that orders semantically near and far wrong predictions.

Figure 1 illustrates this limitation. The reference graph is compared with three predicted graphs. Under conventional exact-label scoring, graphs (A) and (B) receive almost the same penalties, 0.31 and 0.30, while graph (C) receives a penalty of 0.62, approximately twice as large. This ordering suggests that (A) and (B) are similarly close to the reference and that (C) is substantially farther away. However, a scene-graph-level reading suggests a different ordering. Graph (A) changes object roles and spatial relations in a way that more strongly disrupts the semantic organization of the reference graph. In contrast, graphs (B) and (C) mainly replace objects or relations with alternatives that remain close in the graph context. The example shows that counting local label mismatches can misrepresent the semantic severity of a 3D scene graph prediction error. A desirable loss should therefore preserve the ground-truth graph as the exact optimum, while assigning larger penalties to semantically disruptive substitutions and smaller penalties to graph-grounded alternatives that remain close to the reference.

Figure 1. Existing CE/BCE-style losses mainly reflect local object and relation label mismatches, making (A) and (B) appear similarly close to the reference and (C) about twice as far. A scene-graph-level interpretation suggests that (A) is more disruptive, whereas (B) and (C) remain semantically closer to the reference. LSWORDL_{\mathrm{SWORD}} previews the graph-grounded ordering by our method.

A natural alternative is graph similarity, but general graph comparison is ill-posed unless one specifies node correspondence, edge correspondence, edit operations, and edit costs. Classical graph edit distance handles this by searching over node and edge insertions, deletions, and substitutions, but the resulting optimization is combinatorial and difficult to use directly as a training objective [2, 5, 7, 26, 27, 28]. Our key observation is that many 3D scene graph prediction protocols are not arbitrary graph comparison problems: the predicted graph and the ground-truth graph share object-node indices and supervised relation edge slots [10, 23, 24, 33, 35]. This fixed correspondence turns graph similarity from a matching-dependent problem into a well-posed aligned node-and-edge distance problem.

To this end, we propose SWORD, a Scene-grounded Wasserstein Object-Relation Distance for 3D scene graph prediction. SWORD constructs object and relation ground metrics from training scene graph annotations, using object labels, relation labels, directed edge slots, endpoint contexts, local graph neighborhoods, relation co-occurrences, and typed-degree profiles. Instead of relying on external semantic priors such as language embeddings, knowledge bases, or vision-language models, SWORD derives its semantic geometry from the training scene graphs themselves. To avoid circularity between object and relation semantics, SWORD constructs these costs through a deterministic base-to-context order, from base object and relation metrics to context-aware object and relation metrics. It then uses Wasserstein distances to lift these costs into probability spaces over aligned node and edge marginals [8, 31].

The resulting objective changes the supervision geometry while preserving exact ground-truth optimality. A wrong prediction that is close under the scene-graph-grounded metric can receive a smaller penalty than a semantically distant wrong prediction, but the exact ground-truth graph remains the unique zero-distance solution in probability space. For practical single-label training, we introduce SWORD-Margin, a metric-induced structured log loss that uses SWORD distances as semantic margins. The construction is deterministic once the graph-profile blocks and edge-slot protocol are specified, and it does not require external semantic priors or CE/BCE mixing weights.

The main contributions are summarized as follows. First, we identify fixed correspondence as the structural property that makes semantic graph distance well posed for supervised 3D scene graph prediction, turning graph comparison from a matching-dependent problem into an aligned object-relation distance problem. Second, we construct scene-graph-grounded object and relation metrics from block-normalized training graph profiles, without relying on external semantic priors. Third, we define SWORD as a Wasserstein object-relation graph distance over aligned node and edge marginals, with a null-augmented relation metric for no-relation edge slots. Fourth, we introduce SWORD-Margin for practical single-label training and establish that SWORD is a strict metric on aligned marginal probabilistic scene graphs, preserves scene-graph-grounded substitution ordering, controls additive graph-grounded semantic observables, and has the exact ground-truth graph as the unique zero-distance minimizer.

Related Work

3D Scene Graph Prediction

3D scene graph prediction is a structured scene understanding task within the field of 3D vision [12, 13, 14]. It represents a 3D scene as object nodes and relation edges, and has evolved from indoor reconstruction-based scene graphs to RGB-D, point-cloud, transformer, heterogeneous-graph, object-centric, and edge-centric formulations [6, 10, 22, 23, 24, 33, 34, 35, 38]. Recent extensions further incorporate visual-linguistic supervision, multimodal knowledge, and pretraining strategies [6, 34]. Across this line of work, the standard prediction interface supervises object nodes and relation edges with annotated labels, and training is typically formulated as independent node and edge classification with CE, BCE, or reweighted classification objectives over object and relation vocabularies [10, 22, 23, 24, 33, 35, 38].

These objectives make the ground-truth label optimal, but their label geometry remains exact-match based: they do not specify whether one incorrect object or relation label is semantically closer to the ground truth than another. Consequently, after hard decoding, two wrong labels have the same exact-error status even if one better preserves the scene-graph semantics of the ground-truth scene [6, 22, 24, 33, 34]. SWORD is orthogonal to architectural advances: it exploits the fixed-correspondence node-edge interface to change the supervision geometry from exact-label matching to a scene-graph-grounded object-relation distance built from block-normalized training graph profiles.

Graph Distance and Matching

General graph similarity is difficult because node correspondence, edge correspondence, attribute substitution, and topology changes must be handled jointly [5, 7, 27, 28]. Graph edit distance provides a classical dissimilarity measure based on node and edge insertion, deletion, and substitution, but exact or approximate computation typically involves combinatorial matching procedures such as edit-path search or bipartite matching [2, 7, 26].

The key observation behind SWORD is that this ambiguity disappears in the fixed-correspondence interface used by many 3D scene graph prediction protocols, where predicted and ground-truth graphs share object-node indices and supervised edge slots [10, 23, 24, 33, 35]. This turns graph comparison into a well-posed problem over aligned node and edge marginals, rather than an edit-path or matching problem over arbitrary graph correspondences. Thus, SWORD defines a metric on aligned marginal graph tuples induced by the supervised 3D scene graph prediction interface, not on unaligned graphs.

Wasserstein Ground Metrics

The 1-Wasserstein distance compares probability measures through an explicit ground cost, making it suitable when different label substitutions should have different semantic severities [8, 31]. This differs from standard classification losses, which mainly score the ground-truth label probability without specifying object-relation substitution costs. SWORD uses Wasserstein distances to lift object and relation ground metrics into node-level, edge-level, and graph-level distances over aligned scene graph marginals. The resulting Wasserstein graph distance provides the metric definition, while the cost-augmented log-sum-exp objective used for single-label training is a metric-induced surrogate rather than a separate graph metric.

Semantic information can also be injected through distributional vector-space semantics, language priors, knowledge bases, vision-language models, or open-vocabulary contrastive learning [3, 4, 6, 16, 21, 30, 34]. SWORD instead constructs its ground metrics from training scene graph annotations themselves, using object-relation contexts, endpoint statistics, local neighborhoods, relation co-occurrences, and typed-degree profiles [23, 24, 33, 35, 38]. This makes the induced semantics dataset-internal and scene-graph-grounded rather than externally imposed. To avoid circularity between object semantics and relation semantics, SWORD constructs these costs through a deterministic base-to-context order, first obtaining base object and relation metrics and then refining them with context-aware object and relation profiles.

Method

We consider fixed-correspondence 3D scene graph prediction, where object nodes and directed relation edges are supervised by annotated training scene graphs [6, 10, 22, 23, 24, 33, 34, 35]. Existing CE and BCE objectives penalize node and edge label errors independently, but do not define a graph-level semantic distance to the ground-truth scene graph. SWORD addresses this gap by constructing scene-graph-grounded object and relation metrics from training graph statistics, and lifting them to a Wasserstein distance between aligned probabilistic scene graphs.

3D Scene Graph Estimation Problem

Let the object and relation label spaces be C\mathcal{C} and R\mathcal{R}, and let ∅\varnothing denote the null relation:

C={1,…,C},R={1,…,K},R0=R∪{∅}.(1)\mathcal{C} = \{1,\ldots,C\}, \qquad\mathcal{R} = \{1,\ldots,K\}, \qquad\mathcal{R}_0 = \mathcal{R} \cup\{\varnothing\}. \tag*{(1)}

For a supervised scene, the predicted graph and the ground-truth graph share the same object-node indices and directed edge-slot indices:

V={1,…,n},A⊆{(i,j):i,j∈V, i≠j}.(2)V = \{1,\ldots,n\}, \qquad\mathcal{A} \subseteq\{(i,j): i,j \in V,\ i \ne j\}. \tag*{(2)}

The set A\mathcal{A} is determined by the benchmark protocol or the prediction architecture, and is not required to contain all ordered pairs. This fixed-correspondence structure is a key observation: general graph comparison requires node correspondences and edit costs, whereas supervised 3D scene graph prediction already provides aligned object-node and edge-slot coordinates. SWORD therefore formulates scene graph comparison as a well-posed metric problem on aligned marginal graph tuples, rather than as a combinatorial graph edit distance or graph matching problem [2, 5, 7, 26, 27].

For node ii and edge slot (i,j)(i,j), the model outputs

pi∈Δ(C),yi∗∈C,(3)p_i \in\Delta(\mathcal{C}), \qquad y_i^* \in\mathcal{C}, \tag*{(3)}
qij∈Δ(R0),rij∗∈R0for single-label relations,(4)q_{ij} \in\Delta(\mathcal{R}_0), \qquad r_{ij}^* \in\mathcal{R}_0 \qquad\text{for single-label relations}, \tag*{(4)}
sij(r)∈[0,1],Sij∗⊆Rfor multi-label relations.(5)s_{ij}^{(r)} \in[0,1], \qquad S_{ij}^* \subseteq\mathcal{R} \qquad\text{for multi-label relations}. \tag*{(5)}

An aligned marginal probabilistic scene graph is represented as

G=({piG}i∈V,{qijG}(i,j)∈A),G∗=({δyi∗}i∈V,{δrij∗gt}(i,j)∈A).(6)G = \left(\{p_i^G\}_{i\in V},\{q_{ij}^G\}_{(i,j)\in\mathcal{A}}\right), \qquad G^* = \left(\{\delta_{y_i^*}\}_{i\in V},\{\delta_{r_{ij}^*}^{\mathrm{gt}}\}_{(i,j)\in\mathcal{A}}\right). \tag*{(6)}

SWORD is a metric on aligned marginal graph tuples of the form in (6). It is not a metric over arbitrary unaligned graphs or unspecified full joint graph distributions.

For finite distributions over a token space, SWORD uses total variation when no lower-level ground metric is defined, and Wasserstein distance otherwise:

dTV(P,Q)=12∑x∈X∣P(x)−Q(x)∣.(7)d_{\mathrm{TV}}(P,Q) = \frac{1}{2}\sum_{x\in\mathcal{X}} |P(x)-Q(x)|. \tag*{(7)}
W1(μ,ν;d)=min⁡π∈Π(μ,ν)∑x,y∈Xπ(x,y)d(x,y).(8)W_1(\mu,\nu;d) = \min_{\pi\in\Pi(\mu,\nu)} \sum_{x,y\in\mathcal{X}} \pi(x,y)d(x,y). \tag*{(8)}

When dd is a metric, W1(⋅,⋅;d)W_1(\cdot,\cdot;d) is a metric on probability measures over X\mathcal{X} [8, 31].

Scene-Graph-Grounded Ground Metrics

SWORD constructs object and relation ground metrics only from training scene graph annotations: object labels, relation labels, directed incidence, endpoint contexts, local neighborhoods, typed degrees, and relation co-occurrence. It does not use raw 3D coordinates, geometry, shape descriptors, point-cloud features, language

@referencesWinvalid priors, or vision-language priors. Thus, the induced semantics are dataset-internal and scene-graph-grounded.

Object and relation semantics are mutually dependent in a scene graph. Object labels are characterized by their relation and neighbor contexts, while relation labels are characterized by endpoint objects and local relation contexts. To avoid a circular definition, SWORD uses an acyclic base-to-context construction:

dObase⟶dRbase⟶dO⟶dR.(9)d_{O}^{\mathrm{base}} \longrightarrow d_{R}^{\mathrm{base}} \longrightarrow d_{O} \longrightarrow d_{R}. \tag*{(9)}

Empirical graph profiles. For a graph-profile channel mm with finite token space Xm\mathcal{X}_m, let Iℓ,m\mathcal{I}_{\ell,m} be the set of training occurrences associated with label ℓ\ell, and let ϕm(α)\phi_m(\alpha) be the token extracted from occurrence α\alpha. A channel-specific empty token ∅m\varnothing_m is used when no occurrence is observed. The empirical profile is

P^ℓ,m(x)={1∣Iℓ,m∣∑α∈Iℓ,m1[ϕm(α)=x],∣Iℓ,m∣>0,1[x=∅m],∣Iℓ,m∣=0.(10)\widehat{P}_{\ell,m}(x) = \begin{cases} \frac{1}{|\mathcal{I}_{\ell,m}|}\sum_{\alpha\in\mathcal{I}_{\ell,m}}\mathbf{1}[\phi_m(\alpha)=x], & |\mathcal{I}_{\ell,m}|>0,\\ \mathbf{1}[x=\varnothing_m], & |\mathcal{I}_{\ell,m}|=0. \end{cases} \tag*{(10)}

Channels are grouped into semantically homogeneous blocks so that no profile family dominates merely by containing more channels. For block family Bt\mathcal{B}_t at construction stage tt, define

BA⁡Bt[{Am}m](ℓ,ℓ′)=1∣Bt∣∑B∈Bt1∣MB∣∑m∈MBAm(ℓ,ℓ′).(11)\operatorname{BA}_{\mathcal{B}_t}\left[\{A_m\}_m\right](\ell,\ell') = \frac{1}{|\mathcal{B}_t|}\sum_{B\in\mathcal{B}_t}\frac{1}{|M_B|}\sum_{m\in M_B}A_m(\ell,\ell'). \tag*{(11)}

The object blocks include neighbor-object, incoming-relation, outgoing-relation, relation-neighbor, and typed-degree profiles. The relation blocks include subject-class, object-class, subject-object pair, reverse-relation, and local relation co-occurrence profiles. These block families are fixed before training and are part of the method specification.

When a Wasserstein channel contains ∅m\varnothing_m, a non-empty ground metric dm+d_m^{+} with diameter at most one is extended as

dm∅(x,y)={dm+(x,y),x,y≠∅m,1,x≠∅m, y=∅m,1,x=∅m, y≠∅m,0,x=y=∅m.(12)d_m^{\varnothing}(x,y)= \begin{cases} d_m^{+}(x,y), & x,y\ne\varnothing_m,\\ 1, & x\ne\varnothing_m,\ y=\varnothing_m,\\ 1, & x=\varnothing_m,\ y\ne\varnothing_m,\\ 0, & x=y=\varnothing_m. \end{cases} \tag*{(12)}

Strict correction. Empirical profile distances may be pseudometrics because distinct labels can have identical graph profiles. For a finite label space L\mathcal{L} and raw pseudometric dL0d_{\mathcal{L}}^{0}, define

ΔL=max⁡u,v∈LdL0(u,v),d‾L0(u,v)={dL0(u,v)/ΔL,ΔL>0,0,ΔL=0,\Delta_{\mathcal{L}}=\max_{u,v\in\mathcal{L}}d_{\mathcal{L}}^{0}(u,v),\qquad \overline{d}_{\mathcal{L}}^{0}(u,v)= \begin{cases} d_{\mathcal{L}}^{0}(u,v)/\Delta_{\mathcal{L}}, & \Delta_{\mathcal{L}}>0,\\ 0, & \Delta_{\mathcal{L}}=0, \end{cases}
PL={d‾L0(u,v):u≠v, d‾L0(u,v)>0},ηL={12min⁡PL,PL≠∅,1,PL=∅,\mathcal{P}_{\mathcal{L}}=\{\overline{d}_{\mathcal{L}}^{0}(u,v):u\ne v,\ \overline{d}_{\mathcal{L}}^{0}(u,v)>0\},\qquad \eta_{\mathcal{L}}= \begin{cases} \frac{1}{2}\min\mathcal{P}_{\mathcal{L}}, & \mathcal{P}_{\mathcal{L}}\ne\varnothing,\\ 1, & \mathcal{P}_{\mathcal{L}}=\varnothing, \end{cases}
SC⁡L[dL0](u,v)=max⁡(d‾L0(u,v),ηL1[u≠v])max⁡a,b∈Lmax⁡(d‾L0(a,b),ηL1[a≠b]).(13)\operatorname{SC}_{\mathcal{L}}[d_{\mathcal{L}}^{0}](u,v)= \frac{\max\left(\overline{d}_{\mathcal{L}}^{0}(u,v),\eta_{\mathcal{L}}\mathbf{1}[u\ne v]\right)} {\max_{a,b\in\mathcal{L}}\max\left(\overline{d}_{\mathcal{L}}^{0}(a,b),\eta_{\mathcal{L}}\mathbf{1}[a\ne b]\right)}. \tag*{(13)}

The scale ηL\eta_{\mathcal{L}} is determined by the training-set distance matrix and is not tuned on validation data. It separates only label pairs indistinguishable under the chosen profiles, without changing the ordering of pairs already separated by nonzero graph-grounded distance.

Base metrics. The base object metric compares exact graph-token profiles by total variation:

AmO,base(a,b)=dTV(P^a,m,P^b,m),(14)A_{m}^{O,\mathrm{base}}(a,b)=d_{\mathrm{TV}}\left(\widehat{P}_{a,m},\widehat{P}_{b,m}\right), \tag*{(14)}
dO,base0(a,b)=BA⁡BObase[{AmO,base}m](a,b),dObase=SC⁡L[dO,base0].d_{O,\mathrm{base}}^{0}(a,b)=\operatorname{BA}_{\mathcal{B}_{O}^{\mathrm{base}}}\left[\{A_{m}^{O,\mathrm{base}}\}_m\right](a,b),\qquad d_{O}^{\mathrm{base}}=\operatorname{SC}_{\mathcal{L}}\left[d_{O,\mathrm{base}}^{0}\right].

Using dObased_{O}^{\mathrm{base}}, define a base endpoint-pair metric and the base relation metric:

dpairbase((a,b),(a′,b′))=dObase(a,a′)+dObase(b,b′)2,(15)d_{\mathrm{pair}}^{\mathrm{base}}\left((a,b),(a',b')\right)= \frac{d_{O}^{\mathrm{base}}(a,a')+d_{O}^{\mathrm{base}}(b,b')}{2}, \tag*{(15)}
AmR,base(r,s)=DmR,base(P^r,m,P^s,m),(16)A_{m}^{R,\mathrm{base}}(r,s)=D_{m}^{R,\mathrm{base}}\left(\widehat{P}_{r,m},\widehat{P}_{s,m}\right), \tag*{(16)}
dR,base0(r,s)=BA⁡BRbase[{AmR,base}m](r,s),dRbase=SC⁡LR[dR,base0].d_{R,\mathrm{base}}^{0}(r,s)=\operatorname{BA}_{\mathcal{B}_{R}^{\mathrm{base}}}\left[\{A_{m}^{R,\mathrm{base}}\}_m\right](r,s),\qquad d_{R}^{\mathrm{base}}=\operatorname{SC}_{\mathcal{L}_{R}}\left[d_{R,\mathrm{base}}^{0}\right].

Here subject and object channels use W1(⋅,⋅;dObase)W_1(\cdot,\cdot;d_{O}^{\mathrm{base}}), endpoint-pair channels use W1(⋅,⋅;dpairbase)W_1(\cdot,\cdot;d_{\mathrm{pair}}^{\mathrm{base}}), and exact relation-token channels use dTVd_{\mathrm{TV}}.

Context-aware metrics. The context-aware object metric compares object profiles using the base object and relation metrics as ground costs. First define

drel−nbrbase((r,c),(r′,c′))=dRbase(r,r′)+dObase(c,c′)2.(17)d_{\mathrm{rel-nbr}}^{\mathrm{base}}\left((r,c),(r',c')\right)= \frac{d_{R}^{\mathrm{base}}(r,r')+d_{O}^{\mathrm{base}}(c,c')}{2}. \tag*{(17)}

The context-aware object metric is

AmO,ctx(a,b)=DmO(P^a,m,P^b,m),A_{m}^{O,\mathrm{ctx}}(a,b)=D_{m}^{O}\left(\widehat{P}_{a,m},\widehat{P}_{b,m}\right),
dO0(a,b)=BA⁡BOctx[{AmO,ctx}m](a,b),dO=SC⁡LO[dO0].(18)d_{O}^{0}(a,b)=\operatorname{BA}_{\mathcal{B}_{O}^{\mathrm{ctx}}}\left[\{A_{m}^{O,\mathrm{ctx}}\}_m\right](a,b),\qquad d_{O}=\operatorname{SC}_{\mathcal{L}_{O}}\left[d_{O}^{0}\right]. \tag*{(18)}

In (18), neighbor-object channels use W1(⋅,⋅;dObase)W_1(\cdot,\cdot;d_{O}^{\mathrm{base}}), relation-label channels use W1(⋅,⋅;dRbase)W_1(\cdot,\cdot;d_{R}^{\mathrm{base}}), relation-neighbor channels use W1(⋅,⋅;drel−nbrbase)W_1(\cdot,\cdot;d_{\mathrm{rel-nbr}}^{\mathrm{base}}), and typed-degree channels use dTVd_{\mathrm{TV}}.

Finally, the context-aware relation metric uses the object metric dOd_{O} for endpoint comparison and dRbased_{R}^{\mathrm{base}} for relation-token comparison:

dpair((a,b),(a′,b′))=dO(a,a′)+dO(b,b′)2,(19)d_{\mathrm{pair}}\left((a,b),(a',b')\right)= \frac{d_{O}(a,a')+d_{O}(b,b')}{2}, \tag*{(19)}
AmR,ctx(r,s)=DmR(P^r,m,P^s,m),A_{m}^{R,\mathrm{ctx}}(r,s)=D_{m}^{R}\left(\widehat{P}_{r,m},\widehat{P}_{s,m}\right),
dR0(r,s)=BA⁡BRctx[{AmR,ctx}m](r,s),dR=SC⁡LR[dR0].(20)d_{R}^{0}(r,s)=\operatorname{BA}_{\mathcal{B}_{R}^{\mathrm{ctx}}}\left[\{A_{m}^{R,\mathrm{ctx}}\}_m\right](r,s),\qquad d_{R}=\operatorname{SC}_{\mathcal{L}_{R}}\left[d_{R}^{0}\right]. \tag*{(20)}

Subject and object channels use W1(⋅,⋅;dO)W_1(\cdot,\cdot;d_{O}), endpoint-pair channels use W1(⋅,⋅;dpair)W_1(\cdot,\cdot;d_{\mathrm{pair}}), and reverse-relation and co-occurrence channels use W1(⋅,⋅;dRbase)W_1(\cdot,\cdot;d_{R}^{\mathrm{base}}). The construction is deterministic and non-iterative.

Null augmentation. Since dRd_{R} has normalized diameter one, we extend it to R0\mathcal{R}_{0} by

dR0(x,y)={dR(x,y),x,y∈R,1,x∈R, y=∅,1,x=∅, y∈R,0,x=y=∅.(21)d_{R}^{0}(x,y)= \begin{cases} d_{R}(x,y), & x,y\in\mathcal{R},\\ 1, & x\in\mathcal{R},\ y=\varnothing,\\ 1, & x=\varnothing,\ y\in\mathcal{R},\\ 0, & x=y=\varnothing. \end{cases} \tag*{(21)}

The null cost is tied to the normalized diameter of dRd_{R} and is not selected by validation as an insertion or deletion cost.

SWORD Distance and Training Objectives

For a node ii, the SWORD node atom distance to the ground truth is

ℓiV=W1(pi,δyi⋆;dO)=∑c∈Cpi(c)dO(c,yi⋆).(22)\ell_{i}^{V}=W_1(p_i,\delta_{y_i}^{\star};d_{O})=\sum_{c\in\mathcal{C}}p_i(c)d_{O}(c,y_i^{\star}). \tag*{(22)}

For a single-label edge slot (i,j)(i,j), the edge atom distance is

ℓijE=W1(qij,δrij⋆;dR0)=∑r∈R0qij(r)dR0(r,rij⋆).(23)\ell_{ij}^{E}=W_1(q_{ij},\delta_{r_{ij}^{\star}};d_{R}^{0})=\sum_{r\in\mathcal{R}_{0}}q_{ij}(r)d_{R}^{0}(r,r_{ij}^{\star}). \tag*{(23)}

For multi-label relation prediction, the sigmoid vector and ground-truth relation set are converted into probability measures on R∅\mathcal{R}_{\varnothing}:

μijpred=1K∑r∈Rsij(r)δr+(1−1K∑r∈Rsij(r))δ∅,(24)\mu_{ij}^{\mathrm{pred}}=\frac{1}{K}\sum_{r\in\mathcal{R}}s_{ij}(r)\delta_r+\left(1-\frac{1}{K}\sum_{r\in\mathcal{R}}s_{ij}(r)\right)\delta_{\varnothing}, \tag*{(24)}
μijgt=1K∑r∈Sijδr+(1−∣Sij∣K)δ∅,(25)\mu_{ij}^{\mathrm{gt}}=\frac{1}{K}\sum_{r\in S_{ij}}\delta_r+\left(1-\frac{|S_{ij}|}{K}\right)\delta_{\varnothing}, \tag*{(25)}
ℓijE,multi=K⋅W1(μijpred,μijgt;dR0).(26)\ell_{ij}^{E,\mathrm{multi}}=K\cdot W_1\left(\mu_{ij}^{\mathrm{pred}},\mu_{ij}^{\mathrm{gt}};d_R^0\right). \tag*{(26)}

The factor KK is fixed by the relation vocabulary size and compensates for the 1/K1/K mass assigned to each real relation slot. For the graph-level notation below, μij\mu_{ij} denotes the edge marginal used by SWORD. In the single-label setting, μijpred=qij\mu_{ij}^{\mathrm{pred}}=q_{ij} and μijgt=δrij∗\mu_{ij}^{\mathrm{gt}}=\delta_{r_{ij}^*}. In the multi-label setting, μijpred\mu_{ij}^{\mathrm{pred}} and μijgt\mu_{ij}^{\mathrm{gt}} are the null-augmented measures defined in Eqs. (24) and (25).

For two aligned marginal scene graphs GG and HH, define

β={1,single-label relation setting,K,multi-label relation setting.(27)\beta= \begin{cases} 1, & \text{single-label relation setting},\\ K, & \text{multi-label relation setting}. \end{cases} \tag*{(27)}
Dβ(G,H)=∑i∈VW1(piG,piH;dO)+β∑(i,j)∈AW1(μijG,μijH;dR0)∣V∣+β∣A∣.(28)D_{\beta}(G,H)=\frac{\sum_{i\in V}W_1(p_i^G,p_i^H;d_O)+\beta\sum_{(i,j)\in\mathcal{A}}W_1(\mu_{ij}^G,\mu_{ij}^H;d_R^0)}{|V|+\beta|\mathcal{A}|}. \tag*{(28)}

The pure SWORD loss is

LSWORD(G,G^)=Dβ(G,G^).(29)L_{\mathrm{SWORD}}(G,\widehat{G})=D_{\beta}(G,\widehat{G}). \tag*{(29)}

For single-label logit training, Wasserstein-to-Dirac losses are bounded linear functions of predicted probabilities and may give weak gradients for confident wrong predictions. We therefore use a cost-augmented log-sum-exp surrogate:

ℓiV,mar=log⁡∑c∈Cexp⁡(zi(c)+dO(c,yi∗)−zi(yi∗)),(30)\ell_i^{V,\mathrm{mar}}=\log\sum_{c\in\mathcal{C}}\exp\left(z_i(c)+d_O(c,y_i^*)-z_i(y_i^*)\right), \tag*{(30)}
ℓijE,mar=log⁡∑r∈R∅exp⁡(uij(r)+dR0(r,rij∗)−uij(rij∗)),(31)\ell_{ij}^{E,\mathrm{mar}}=\log\sum_{r\in\mathcal{R}_{\varnothing}}\exp\left(u_{ij}(r)+d_R^0(r,r_{ij}^*)-u_{ij}(r_{ij}^*)\right), \tag*{(31)}
LSWORD-Margin=∑i∈VℓiV,mar+∑(i,j)∈AℓijE,mar∣V∣+∣A∣.(32)L_{\mathrm{SWORD\text{-}Margin}}=\frac{\sum_{i\in V}\ell_i^{V,\mathrm{mar}}+\sum_{(i,j)\in\mathcal{A}}\ell_{ij}^{E,\mathrm{mar}}}{|V|+|\mathcal{A}|}. \tag*{(32)}

SWORD-Margin is not itself a metric on probabilistic scene graphs; it is a metric-induced structured log loss whose semantic margins are exactly the SWORD ground distances. This cost-augmented form is related to large-margin and softmax-margin structured prediction, but the margin values here are induced by scene-graph-grounded object and relation metrics rather than by hand-designed task costs [9, 29]. For multi-label relations, we use

LSWORDmulti=∑i∈VℓiV,mar+K∑(i,j)∈AℓijE,multi∣V∣+K∣A∣.(33)L_{\mathrm{SWORD}}^{\mathrm{multi}}=\frac{\sum_{i\in V}\ell_i^{V,\mathrm{mar}}+K\sum_{(i,j)\in\mathcal{A}}\ell_{ij}^{E,\mathrm{multi}}}{|V|+K|\mathcal{A}|}. \tag*{(33)}

In Eq. (33), the edge term is the multi-label Wasserstein relation loss, while the object term uses the same SWORD-Margin surrogate as in Eq. (30), because object prediction remains single-label in both relation protocols.

Theoretical Properties

Proposition 1. Ground distances are strict metrics. The distances dOd_O and dRd_R in (18) and (20) are strict metrics on C\mathcal{C} and R\mathcal{R}, respectively.

Proof. Total variation is a metric on finite categorical distributions, and Wasserstein distance is a metric when its ground cost is a metric. The empty-token extension in (12) is a metric because the non-empty diameter is at most one and the empty token is placed at distance one from all non-empty tokens. Therefore, all profile distances used in the acyclic order of (9) induce pseudometrics on label spaces, and the block-normalized averages in (11) preserve pseudometricity as positive weighted sums. The strict correction in (13) takes the pointwise maximum with a scaled discrete metric, which preserves the triangle inequality:

max⁡(d(x,z),e(x,z))≤max⁡(d(x,y)+d(y,z),e(x,y)+e(y,z))≤max⁡(d(x,y),e(x,y))+max⁡(d(y,z),e(y,z)).(34)\begin{aligned} \max(d(x,z),e(x,z))\leq\max(d(x,y)+d(y,z),e(x,y)+e(y,z)) \\ &\leq\max(d(x,y),e(x,y))+\max(d(y,z),e(y,z)). \tag*{(34)} \end{aligned}

It also gives positive separation to all distinct labels, and the final normalization preserves metric properties. Hence dOd_O and dRd_R are strict metrics. □\square

Proposition 2. The null-augmented relation distance is a metric. The distance dR0d_R^0 in (21) is a metric on R∅\mathcal{R}_{\varnothing}.

Proof. For real relations, the claim follows from Proposition 1. For any r,s∈Rr,s\in\mathcal{R}, the only nontrivial triangle involving ∅\varnothing is

dR0(r,s)=dR(r,s)≤1≤dR0(r,∅)+dR0(∅,s).(35)d_R^0(r,s)=d_R(r,s)\leq1\leq d_R^0(r,\varnothing)+d_R^0(\varnothing,s). \tag*{(35)}

All other cases are immediate from (21). □\square

Theorem 1. SWORD is a strict metric on aligned marginal scene graphs. For fixed VV and A\mathcal{A}, DβD_{\beta} in (28) is a strict metric on aligned marginal graph tuples.

Proof. By Propositions 1 and 2, dOd_O and dR0d_R^0 are strict metrics. Therefore, each Wasserstein term in (28) is a metric on the corresponding probability simplex. A positive weighted sum of metrics followed by positive normalization is a metric. If Dβ(G,H)=0D_{\beta}(G,H)=0, every aligned node marginal and every aligned edge marginal coincide:

piG=piH∀i∈V,μijG=μijH∀(i,j)∈A.(36)p_i^G=p_i^H\quad\forall i\in V,\qquad\mu_{ij}^G=\mu_{ij}^H\quad\forall(i,j)\in\mathcal{A}. \tag*{(36)}

Under fixed correspondence, this is equality of aligned marginal scene graph tuples. □\square

Theorem 2. SWORD preserves scene-graph-grounded substitution ordering. Let G∗G^* be the ground-truth graph. Suppose hard graphs HaH_a and HbH_b differ from G∗G^* at node ii, where they assign object labels aa and bb, respectively. If

dO(a,yi∗)<dO(b,yi∗),(37)d_O(a,y_i^*)<d_O(b,y_i^*), \tag*{(37)}

then

Dβ(Ha,G∗)<Dβ(Hb,G∗).(38)D_{\beta}(H_a,G^*)<D_{\beta}(H_b,G^*). \tag*{(38)}

Proof. All graph coordinates cancel except node ii:

Dβ(Ha,G∗)−Dβ(Hb,G∗)=dO(a,yi∗)−dO(b,yi∗)∣V∣+β∣A∣.(39)D_{\beta}(H_a,G^*)-D_{\beta}(H_b,G^*)=\frac{d_O(a,y_i^*)-d_O(b,y_i^*)}{|V|+\beta|\mathcal{A}|}. \tag*{(39)}

The right-hand side is negative by (37). The relation case is identical with dR0d_R^0 replacing dOd_O. □\square

Theorem 3. SWORD controls graph-grounded semantic observables. Let φi:C→R\varphi_i:\mathcal{C}\to\mathbb{R} be 1-Lipschitz with respect to dOd_O, and let ψij:R∅→R\psi_{ij}:\mathcal{R}_{\varnothing}\to\mathbb{R} be 1-Lipschitz with respect to dR0d_R^0. Define

Ψ(G)=∑i∈VEc∼piG[φi(c)]+β∑(i,j)∈AEr∼μijG[ψij(r)]∣V∣+β∣A∣.(40)\Psi(G)=\frac{\sum_{i\in V}\mathbb{E}_{c\sim p_i^G}[\varphi_i(c)]+\beta\sum_{(i,j)\in\mathcal{A}}\mathbb{E}_{r\sim\mu_{ij}^G}[\psi_{ij}(r)]}{|V|+\beta|\mathcal{A}|}. \tag*{(40)}

Then, for any aligned marginal graphs GG and HH,

∣Ψ(G)−Ψ(H)∣≤Dβ(G,H).(41)|\Psi(G)-\Psi(H)|\leq D_{\beta}(G,H). \tag*{(41)}

Proof. By the Kantorovich-Rubinstein dual characterization of W1W_1, the expectation difference of any 1-Lipschitz observable is bounded by the corresponding Wasserstein distance. Applying this coordinate-wise to all nodes and edges, summing, and normalizing gives (41). □\square

Corollary 1. The ground-truth graph is the unique zero-distance minimizer. For the pure SWORD loss,

LSWORD(G,G∗)=0⟺G^=G∗(42)\mathcal{L}_{\mathrm{SWORD}}(G,G^*)=0 \Longleftrightarrow\hat{G}=G^* \tag*{(42)}

in the aligned marginal probability space. With finite softmax or sigmoid logits, exact zero may only be approached in the infinite-logit limit, as in CE and BCE.

Proposition 3. SWORD-Margin upper-bounds decoded semantic error. Let

y^i=arg⁡max⁡c∈Czi(c),r^ij=arg⁡max⁡r∈R∅uij(r).(43)\hat{y}_i=\arg\max_{c\in\mathcal{C}} z_i(c),\qquad\hat{r}_{ij}=\arg\max_{r\in\mathcal{R}_{\varnothing}} u_{ij}(r). \tag*{(43)}

Then

ℓiV,mar≥dO(y^i,yi∗),ℓijE,mar≥dRq(r^ij,rij∗).(44)\ell_i^{V,\mathrm{mar}}\ge d_O(\hat{y}_i,y_i^*),\qquad\ell_{ij}^{E,\mathrm{mar}}\ge d_R^q(\hat{r}_{ij},r_{ij}^*). \tag*{(44)}

Proof. The log-sum-exp term is at least the decoded-class term, and the decoded logit is no smaller than the ground-truth logit. Applying this to (30) and (31) gives (44). □

SWORD does not claim to recover universal human commonsense similarity. Its semantics are dataset-internal and graph-grounded. Theorems 2 and 3 show that the ordering and Lipschitz stability induced by the constructed object and relation metrics are preserved at the aligned graph-distance level for single-coordinate substitutions and additive aligned node-edge observables.

Implementation and Complexity

SWORD separates offline metric construction from online training. Offline, it extracts graph profiles from the training set, computes dObased_O^{\mathrm{base}}, dRbased_R^{\mathrm{base}}, dOd_O, dRd_R, and dRqd_R^q, then stores the object and relation cost matrices. Online, the loss uses only cost-matrix lookup and standard probability or log-sum-exp operations.

Let MOM_O and MRM_R denote the total numbers of object and relation graph-profile channels across all blocks, and let m=∣A∣m=|\mathcal{A}|. The one-time precomputation and online costs are

Tpre=O(C2MO+K2MR),Mstore=O(C2+(K+1)2),(45)T_{\mathrm{pre}}=O(C^2M_O+K^2M_R),\qquad M_{\mathrm{store}}=O(C^2+(K+1)^2), \tag*{(45)}
Tsingle=O(nC+mK),Tmulti=O(nC+mK3).(46)T_{\mathrm{single}}=O(nC+mK),\qquad T_{\mathrm{multi}}=O(nC+mK^3). \tag*{(46)}

Thus, in the single-label setting, SWORD-Margin has the same asymptotic order as standard softmax node and relation classification, with additional fixed semantic cost lookup.

Once the graph-profile block families and benchmark edge-slot protocol are specified before validation, SWORD introduces no validation-tuned loss-side scalar weight, relation insertion cost, relation deletion cost, margin scale, temperature, Sinkhorn coefficient, learned metric parameter, or external-prior weight. The block-normalized averaging, strict correction, null cost, and multi-label scaling are fixed by (11), (13), (21), and (26), respectively.

Experiments

Experimental Setting

Dataset

We conducted experiments on the 3DSSG dataset [33], a semantically enriched 3D scene graph dataset built upon 3RScan [32]. 3DSSG provides object instances, semantic object categories, and directed object-object relation annotations for real-world indoor RGB-D reconstructions. We used two label settings that are commonly adopted in recent 3D scene graph prediction studies.

For the multi-label setting, following recent works [10, 34], we used the original 3DSSG label space with 160 object categories and 26 predicate types, together with the standard train/validation split over 1,553 indoor scenes. In this setting, an ordered object pair may be associated with multiple relation labels.

For the single-label setting, we used the 3DSSG-O27R16 label space and train/validation split introduced by SGGPoint [37]. This setting is based on the O27 object annotation and maps the original object vocabulary into 27 object classes and the relation vocabulary into 16 relation classes. The detailed single-label conversion and scoring protocol are described in Sec. 4.1.2, since they affect how predictions are evaluated rather than the source dataset itself.

Metrics and Task Description

Because the multi-label and single-label settings use different label spaces and scoring rules, we report their results separately.

Multi-label Setting. We follow the standard 3DSSG evaluation protocol [33, 38]. We evaluate object, predicate, and triplet prediction using top-KK Recall (R@K) and top-KK mean Recall (mR@K). For triplet prediction, a predicted triplet is counted as correct only when its subject category, predicate label, and object category all match a ground-truth triplet. We report results on two standard scene graph prediction tasks [36]: Predicate Classification (PredCls) and Scene Graph Classification (SGCls). In PredCls, ground-truth object instances and object categories are given, and the model predicts predicates for directed object pairs. In SGCls, ground-truth object instances are given, and the model predicts both object categories and predicates, so the final subject-predicate-object triplets are evaluated.

Single-label Setting. We follow the 3DSSG-O27R16 protocol used in recent single-label methods [22, 37], where comparative predicates are removed, directional proximity predicates are merged into a unified spatial proximity relation, and ambiguous multi-label relation annotations are converted into a single target relation label. We evaluate object prediction and relationship prediction with R@K, and predicate prediction with F1@K. Unlike recall alone, F1@K jointly reflects precision and recall, and therefore penalizes both false positive predicate predictions and missed predicate labels. This is especially relevant in the single-label setting, where each directed object pair is represented by one relation target.

These automatic metrics are based on exact label agreement. They are therefore appropriate for comparison with prior work, but they do not directly measure whether an incorrect label is semantically close to the ground truth or whether the predicted scene graph remains plausible as a whole. We thus complement the quantitative benchmark results with user studies in Sec. 4.4.

Implementation Details

All experiments were conducted on a single NVIDIA RTX 6000 Ada GPU with 48GB memory. We trained all models for 100 epochs using the AdamW optimizer [15, 20] with a global batch size of 8 scenes and an initial learning rate of 1×10−41\times10^{-4}. The learning rate was decayed with a cosine schedule [19]. For each relation setting, we followed the original implementation of the corresponding backbone in terms of architecture, input preprocessing, training configuration and inference pipeline, while replacing only the supervision objective with the proposed SWORD objective. The object and relation distance matrices were computed once from the training split and kept fixed during training. During training, the precomputed matrices were used only through distance lookup in the corresponding SWORD training objective, either as Wasserstein ground costs or as semantic cost margins.

Comparison with Related Methods

We evaluated SWORD through comparisons with recent 3D scene graph prediction methods. Since SWORD supports both multi-label and single-label relation prediction, we reported the results separately for the two settings.

Multi-Label Setting

For the multi-label setting, we compared SWORD with SGPN [33], SGFN [35], VL-SAT [34], and OCRL [10]. To isolate the effect of the proposed supervision, we used OCRL as the backbone and replaced only the loss-side training objective with the multi-label SWORD objective in Eq. (33). The input modality, network architecture, graph construction, and evaluation protocol are kept unchanged. Thus, this comparison directly reflects the benefit of introducing scene-graph-grounded object and relation costs into training.

Table 1 reports object, predicate, and triplet prediction results. Among the compared methods under the same multi-label evaluation protocol, SWORD achieves the strongest performance across all reported metrics. This is notable because the evaluation still uses exact ground-truth labels: SWORD does not relax the test criterion, but improves strict label ranking by changing the geometry of the training signal. Compared with OCRL, the most meaningful trend appears in mean-recall and triplet-level measures. Mean recall is less dominated by frequent classes, so the consistent improvement suggests that SWORD provides more informative supervision for rare, ambiguous, or visually confusable object-relation patterns. This behavior is consistent with the design of SWORD: semantically nearby substitutions receive smaller graph-grounded costs than distant substitutions, while the underlying SWORD distance still preserves the ground-truth graph as the unique zero-distance solution. As a result, the model can organize its prediction distribution around plausible semantic neighborhoods without giving up exact-label optimality. The triplet results further show that the improvement is not limited to isolated object or predicate classification. A triplet is correct only when the subject, predicate, and object are jointly aligned, the strong triplet performance indicates that SWORD improves the compatibility of node and edge predictions at the graph level. This supports the central motivation of SWORD: object and relation labels should not be supervised as independent local decisions only, but should be structured by their scene-graph-grounded semantic proximity.

ModelObjectPredicateTriplet
R@1R@5mR@1mR@5R@1R@3mR@1mR@3R@50R@100mR@50mR@100
SGPN [33]49.4673.9910.8627.5486.9294.7632.0155.2285.3888.5941.5251.92
SGFN [35]53.3676.8821.2446.6889.0097.7141.8970.8288.5991.1458.3767.61
VL-SAT [34]55.9378.0621.4146.1489.8198.4654.0377.6789.3592.2065.0973.59
OCRL [10]59.5381.2022.5548.1091.2798.4856.3276.2691.4093.8065.3174.54
SWORD59.8682.5824.0850.8491.3899.0258.7478.9292.3694.8268.4178.06

Table 1. Object, predicate, and triplet recall on 3DSSG in the multi-label setting.

Table 2 shows the PredCls and SGCls results. In PredCls, object categories are given, so the task emphasizes relation reasoning. SWORD consistently outperforms OCRL, indicating that the proposed relation distance improves predicate prediction itself rather than only benefiting from better object recognition. In SGCls, both object classification and relation prediction are involved, and SWORD again maintains the best overall performance. This trend suggests that the object and relation ground metrics work coherently: the object-side margin improves node predictions, while the multi-label Wasserstein relation loss provides structured supervision over predicate labels and the null relation.

ModelPredClsSGCls
R@20R@50R@100mR@20mR@50mR@100R@20R@50R@100mR@20mR@50mR@100
SGPN [33]51.958.058.532.138.438.927.028.829.019.722.623.1
SGFN [35]65.978.879.646.154.855.129.531.231.220.523.123.1
VL-SAT [34]67.879.980.857.864.264.332.033.533.731.032.632.7
OCRL [10]70.282.082.658.866.166.436.137.737.835.337.737.9
SWORD71.683.584.161.469.069.437.239.039.237.139.740.1

Table 2. PredCls and SGCls results on 3DSSG in the multi-label setting.

Figure 2 provides qualitative evidence for this behavior. In the bathroom scene, OCRL introduces objects such as microwave and toilet, and produces relations such as part of and behind that are less consistent with the visible scene structure. SWORD still makes some exact-label mismatches, such as predicting bath cabinet or front, but these predictions remain closer to the bathroom context and preserve most of the reference object-relation layout. In the desk scene, OCRL replaces scene-consistent objects with tv and monitor and assigns an implausible hanging on relation to the table. In contrast, SWORD preserves the window-lamp-table-chair arrangement and predicts a physically compatible support relation between the lamp and the table. These examples illustrate that SWORD tends to avoid semantically distant substitutions and yields more coherent graphs when exact labels are uncertain.

Figure 2. Qualitative comparison in the multi-label setting. Red nodes and edges denote deviations from the reference graph.

Overall, the multi-label results demonstrate that SWORD improves both strict quantitative metrics and qualitative graph coherence. By deriving object and relation distances from training scene graphs and using them as supervision geometry, SWORD encourages predictions that are not only more accurate under exact-label evaluation but also more consistent with the semantic and structural organization of 3D scenes.

ModelObjectPredicateRelationship
R@5R@10F1@3F1@5R@50R@100
SGGPoint [37]90.7097.5878.8890.8639.9148.68
SGFormer [22]96.4198.4885.1291.5856.2560.67
SWORD (Multi)96.4898.5585.3091.7456.5860.94
SWORD (Single)97.2098.8286.9592.7258.2562.55

Table 3. Quantitative comparison under the standard single-label protocol [22, 37].

Single-Label Setting

To validate the proposed method in the single-label setting, we compared it with recent single-label methods: SGGPoint [37] and SGFormer [22]. We adopted SGFormer as the backbone and replaced its original training objective with the proposed single-label SWORD-Margin loss in Eq. (32). We also evaluated the multi-label SWORD on the same label space under the single-label protocol by training it with the sigmoid-based multi-label SWORD objective and selecting the predicate with the highest sigmoid output for each directed object pair.

Table 3 shows that the multi-label variant already improves over SGFormer across all reported criteria, indicating that the dataset-internal object-relation geometry of SWORD is beneficial even without a single-label training objective. The single-label variant further achieves the best performance in every column, with a clearer advantage on predicate and relationship evaluation. Since the graph encoder is kept fixed, this gain is attributable to the supervision geometry introduced by SWORD-Margin rather than to an architectural change. This behavior is consistent with the structure of the objective. In the single-label setting, relation candidates are mutually exclusive, and the correct prediction must be selected jointly against other predicates and the no-relation state. SWORD-Margin in Eq. (32) matches this assumption by applying a cost-augmented softmax over R0\mathcal{R}_0, where incorrect labels are separated according to the scene-graph-grounded relation distance. Thus, semantically distant alternatives are discouraged more strongly, while nearby alternatives remain ordered by the learned graph geometry. In contrast, the multi-label variant predicts each predicate independently with sigmoid outputs. This formulation is natural when multiple relations may hold for the same object pair, but under one-label decoding the scores are not calibrated as mutually exclusive choices. As a result, generic or frequent predicates can remain competitive, and the null state is represented through induced probability mass rather than an explicit competing logit.

Figure 3 provides qualitative evidence for this interpretation. SGFormer often recovers part of the scene structure, but its errors tend to weaken the specificity of object-relation configurations. In the first scene, it replaces blanket with towel and maps bed-centered physical relations to the broader predicate close by. In the second scene, an object error from shelf to fridge leads to an implausible relation such as clothes part of fridge. SWORD preserves the main object identities and relation structure more consistently. When it differs from the reference, as in pillow leaning against bed or cabinet hanging on wall, the predicted relation remains compatible with the local geometry and is closer to the reference than a structurally inconsistent object-relation substitution.

Figure 3. Qualitative comparison in the single-label setting. Red nodes and edges denote deviations from the reference graph.

Overall, these results consistently suggest that SWORD-Margin turns the scene-graph-grounded object and relation metrics into an effective training signal for single-label 3D scene graph prediction. It improves exact-label evaluation while preserving the intended behavior of SWORD: the reference graph remains the optimal solution, but graph-grounded near misses are distinguished from semantically and structurally inconsistent predictions.

Ablation Study

We analyzed the two key components of SWORD: the Wasserstein-based supervision objective in Sec. 3.3 and the scene-graph-grounded ground metrics in Sec. 3.2. All variants used the OCRL backbone and follow the same multi-label setting, dataset, tasks, and evaluation protocol as in Sec. 4.1. We only change either the training objective or the label distances used in the Wasserstein terms.

For the ground-metric variants, we keep the proposed multi-label SWORD objective in Eq. (33) fixed and vary only the ground distance. Uniform Dist. uses a constant distance for all distinct labels, and Text-Emb. Dist. computes label distances from CLIP text embeddings [25] of object and relation names. Base (w/o Context) uses the base metrics dObased_{O}^{\mathrm{base}} and dRbased_{R}^{\mathrm{base}} defined in Eqs. (14) and (16). For the objective variants, we keep the context-aware metrics dOd_{O} and dRd_{R} in Eqs. (18) and (20) fixed. SWORD + CE/BCE adds the original OCRL CE/BCE losses to Eq. (33) with unit coefficients and without tuning an additional mixing weight, whereas SWORD (Ours) uses the proposed SWORD objective without the CE/BCE terms.

Table 4 shows a consistent trend across object, predicate, triplet, PredCls, and SGCls evaluations. Uniform Dist. is the weakest among the ground-metric variants, indicating that merely replacing CE/BCE with a transport-style objective is not sufficient when the ground cost does not encode meaningful label geometry. Text-Emb. Dist. improves this behavior, suggesting that non-uniform semantic distances are useful. However, it remains below the graph-grounded metrics because language-level similarity between class names does not explicitly capture how object categories participate as relation endpoints, which predicates they co-occur with, or what structural roles they play in 3D scene graphs.

ObjectPredicateTripletPredClsSGCls
Ground Metric VariantsR@5mR@5R@3mR@3R@50mR@50R@50mR@50R@50mR@50
Uniform Dist.80.7447.9298.2576.0891.0565.0281.665.837.337.5
Text-Emb. Dist.81.6249.2498.6177.1591.6766.4882.567.238.038.3
Base (w/o Context)81.9049.8098.7877.8491.8667.3882.868.038.439.0
Training Objective Variants
SWORD + CE/BCE Loss81.5548.7298.5676.7491.5565.7882.266.537.838.0
SWORD (Ours)82.5850.8499.0278.9292.3668.4183.569.039.039.7

Table 4. Ablation study of ground metrics and objectives in SWORD.

Base (w/o Context) further improves the results by constructing distances from dataset-internal object-relation statistics rather than external language priors. The full context-aware metric, i.e., SWORD (Ours), consistently performs best, showing that the additional context terms refine the label geometry beyond simple graph-token profiles. In particular, object labels are compared through their neighbor objects, incoming and outgoing relations, relation-neighbor contexts, and typed-degree profiles, while relation labels are compared through endpoint configurations, reverse relations, and local relation co-occurrence. This provides supervision that penalizes graph-semantically distant errors more strongly while allowing semantically plausible alternatives to remain closer in the induced metric space. The benefit is also reflected in mean-recall metrics, suggesting that the learned supervision is helpful beyond frequent dominant labels.

The objective comparison shows that SWORD + CE/BCE underperforms the proposed SWORD objective alone. CE/BCE imposes independent exact-label supervision on nodes and edges, whereas SWORD organizes prediction distributions according to the scene-graph-grounded distances. Adding CE/BCE can therefore dilute the distance-aware signal induced by the SWORD metric, especially when predictions should be shaped by semantic proximity rather than only by one-hot or multi-hot targets. Overall, the ablation confirms that SWORD requires both components: a metric-induced objective aligned with Eq. (33) and context-aware ground distances constructed from the internal structure of training scene graphs.

User Study

The quantitative comparisons in Sec. 4.2 show that SWORD improves standard exact-label metrics, even though it changes the supervision geometry rather than simply optimizing uniform CE/BCE-style local classification penalties. However, exact agreement with reference annotations has an inherent limitation: all incorrect labels are counted as errors, regardless of whether they are graph-grounded near misses or semantically distant substitutions. Therefore, the standard metrics can underrepresent improvements in plausibility, descriptiveness, and structural coherence. To evaluate these aspects, we conducted a blind A/B user study comparing OCRL [10] and SWORD.

We used two complementary settings. In the Graph-Graph setting, participants were given the reference graph and two predicted graphs, and selected the prediction that better satisfied Semantic Closeness and Structure Preservation. In the Scene-Graph setting, participants were given the reference 3D scene and two predicted graphs, and selected the prediction that better satisfied Scene Descriptiveness and Relation Plausibility. A total of 28 participants with normal or corrected-to-normal vision evaluated 20 validation samples. Each participant evaluated both settings, and each question was answered as a binary preference without ties; therefore, each criterion was computed over 28×20=56028 \times20 = 560 pairwise judgments. The order of the two methods was randomized for each sample. All graphs were visualized with the same layout style, node and edge appearance, font, and label format to avoid method-unrelated visual bias. Table 5 reports the preference ratios for each criterion.

SettingQuestionBaseline (%)SWORD (%)
Graph-GraphSemantic Closeness26.173.9
Structure Preservation24.175.9
Scene-GraphScene Descriptiveness25.774.3
Relation Plausibility21.678.4

Table 5. User study results for Graph-Graph and Scene-Graph comparisons. Participants compared the baseline (i.e., OCRL [10]) and ours under two questions for each setting.

Graph-Graph Comparison. SWORD is clearly preferred over OCRL for both graph-based criteria. This result complements the exact-label evaluation in § 4.2: while the standard metrics show consistent gains in strict object, predicate, and triplet prediction, the human comparison reveals a larger advantage in the semantic and structural quality of the predicted graphs. This gap is expected because exact-label metrics do not distinguish whether an error is a scene-consistent near miss or a semantically disruptive substitution. In contrast, SWORD explicitly orders object and relation labels by scene-graph-grounded distances, keeping predictions closer to the reference under exact-label uncertainty. The preference for Structure Preservation further suggests that SWORD better maintains coherent subject-predicate-object organization, rather than improving only isolated node or edge labels.

Scene-Graph Comparison. SWORD is consistently preferred when participants judge the predicted graphs directly against the reference 3D scene. The preference for Scene Descriptiveness indicates that SWORD better captures the object roles and overall scene organization perceived by humans. The preference for Relation Plausibility further suggests that its predicted relations are more compatible with the observed arrangement of objects. This is consistent with the design of SWORD: although its metric construction does not use external semantic priors or raw geometric features, it encodes endpoint contexts, local neighborhoods, typed-degree patterns, and relation co-occurrences from training scene graphs. These graph-grounded profiles guide the model away from semantically distant or structurally implausible alternatives.

Overall, the user study highlights a key benefit that is only partially visible in conventional metrics. SWORD improves strict exact-label evaluation, but its larger advantage appears in the quality of the predicted graph as a semantic and structural description of the scene. These results support the central motivation of SWORD: replacing uniform penalties for all wrong labels with scene-graph-grounded distances mitigates annotation ambiguity while preserving exact ground-truth optimality.

Conclusion

We introduced SWORD, a scene-grounded Wasserstein object-relation distance for 3D scene graph prediction. By exploiting the fixed node and edge-slot correspondence in supervised protocols, SWORD defines an aligned graph distance, constructs object and relation ground metrics from training scene graph statistics, and provides distance-aware supervision beyond CE/BCE-style exact-label losses. This preserves the ground-truth graph as the unique zero-distance solution while distinguishing graph-grounded near misses from semantically distant errors. Experiments on 3DSSG show that SWORD improves object, predicate, relationship, and triplet prediction under both multi-label and single-label protocols. User studies further indicate that the predicted graphs are more semantically close, structurally preserved, scene-descriptive, and relation-plausible. These results show that SWORD improves not only exact-label benchmark accuracy but also perceived graph quality. Although SWORD demonstrates strong performance, like most 3D scene graph prediction scenarios, it cannot be applied off-the-shelf to settings where node correspondence, edge slots, or label vocabularies are not fixed. Future work will extend SWORD to partially aligned, open-vocabulary, and temporal scene graphs, while exploring geometric structure and perceptual 3D similarity for richer ground metrics [17, 18].

References

References

  1. [1]Iro Arzeni, Zhi-Yang He, JunYoung Gwak, Amir R Zamir, Martin Fischer, Jitendra Malik, and Silvio Savarese. 2019. 3D Scene Graph: A Structure for Unified Semantics, 3D Space, and Camera. In Proceedings of the IEEE/CVF International Conference on Computer Vision. 5663–5672.
  2. [2]Horst Bunke. 1997. On a relation between graph edit distance and maximum common subgraph. Pattern Recognition Letters 18, 8 (1997), 689–694.DOI
  3. [3]Lianggangxu Chen, Xuejiao Wang, Jiale Lu, Shaohui Lin, Changbo Wang, and Gaoqi He. 2024. CLIP-driven open-vocabulary 3D scene graph generation via cross-modality contrastive learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 27863–27873.DOI
  4. [4]Tianshu Chen, Weihao Yu, Riquan Chen, and Liang Lin. 2019. Knowledge-embedded routing network for scene graph generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 6163–6171.
  5. [5]Donatello Conte, Pasquale Foggia, Carlo Sansone, and Mario Vento. 2004. Thirty years of graph matching in pattern recognition. International Journal of Pattern Recognition and Artificial Intelligence 18, 3 (2004), 265–298.DOI
  6. [6]Mingtao Feng, Haoran Hou, Liang Zhang, Zijie Wu, Yulan Guo, and Ajmal Mian. 2023. 3D spatial multimodal knowledge accumulation for scene graph prediction in point cloud. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 9182–9191.DOI
  7. [7]Xinbo Gao, Bing Xiao, Dacheng Tao, and Xuelong Li. 2010. A survey of graph edit distance. Pattern Analysis and Applications 13, 1 (2010), 113–129.DOI
  8. [8]Alison L Gibbs and Francis Edward Su. 2002. On choosing and bounding probability metrics. International Statistical Review 70, 3 (2002), 419–435.
  9. [9]Kevin Gimpel and Noah A Smith. 2010. Softmax-Margin CRFs: Training Log-Linear Models with Cost Functions. In Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics. Association for Computational Linguistics, Los Angeles, California, 733–736.DOI
  10. [10]KunHo Heo, GiHyun Kim, SuYeon Kim, and MyeongAh Cho. 2025. Object-Centric Representation Learning for Enhanced 3D Semantic Scene Graph Prediction. Advances in Neural Information Processing Systems (2025).arxiv.org/abs/2510.04714
  11. [11]Hyung Chang, Luping Ji, Kiangwei Jiang, Wen Li, and Mao Ye. 2026. ToLL: Topological Layout Learning with Asymmetric Cross-View Structural Distillation for 3D Scene Graph Pretraining. arXiv preprint arXiv:2603.28178 (2026).
  12. [12]U-Chae Jun, Jaeeun Ko, and Jiwoo Kang. 2026. UniCross3D: Unified Cross-View and Cross-Domain Diffusion for Consistent Single-Image 3D Generation. In Computer Graphics Forum. Wiley Online Library, e70378.
  13. [13]Jiwoo Kang, Seongmin Lee, Mingyu Jang, and Sanghoon Lee. 2021. Gradient Flow Evolution for 3D Fusion from a Single Depth Sensor. IEEE Transactions on Circuits and Systems for Video Technology 32, 4 (2021), 2211–2225.DOI
  14. [14]Jiwoo Kang, Seongmin Lee, and Sanghoon Lee. 2021. Competitive Learning of Facial Fitting and Synthesis using UV Energy. IEEE Transactions on Systems, Man, and Cybernetics: Systems 52, 5 (2021), 2858–2873.DOI
  15. [15]Diederik P Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. In Proceedings of the International Conference on Learning Representations.arxiv.org/abs/1412.6980
  16. [16]Sebastian Koch, Nauranas Vaskevicius, Mirco Colosi, Pedro Hermosilla, and Timo Ropinski. 2024. Open3DSG: Open-vocabulary 3D scene graphs from point clouds with queryable objects and open-set relationships. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 14183–14193.arxiv.org/abs/2402.12259
  17. [17]Seongmin Lee, Jiwoo Kang, and Sanghoon Lee. 2025. 3D Facial Shape Similarity with Deep Perceptual Representations. ACM Transactions on Multimedia Computing, Communications and Applications 21, 6 (2025), 1–27.
  18. [18]Seongmin Lee, Jiwoo Kang, Sanghoon Lee, Weisi Lin, and Alan Conrad Bovik. 2024. 3D-PSSIM: Projective Structural Similarity for 3D Mesh Quality Assessment Robust to Topological Irregularities. IEEE Transactions on pattern analysis and machine intelligence 46, 12 (2024), 9595–9611.DOI
  19. [19]Ilya Loshchilov and Frank Hutter. 2016. SGDR: Stochastic gradient descent with warm restarts. Proceedings of the International Conference on Learning Representations.arxiv.org/abs/1608.03983
  20. [20]Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In Proceedings of the International Conference on Learning Representations.
  21. [21]Cewu Lu, Ranjay Krishna, Michael Bernstein, and Li Fei-Fei. 2016. Visual relationship detection with language priors. In Proceedings of the European Conference on Computer Vision. Springer, 852–869.arxiv.org/abs/1608.00187
  22. [22]Changsheng Lv, Mengshi Qi, Xia Li, Zhengyuan Yang, and Huadong Ma. 2024. SGFormer: Semantic Graph Transformer for Point Cloud-Based 3D Scene Graph Generation. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38. 4035–4043.
  23. [23]Yanni Ma, Hao Liu, Yulan Guo, Theo Gevers, and Martin R Oswald. 2026. Edge-Centric Relational Reasoning for 3D Scene Graph Prediction. In Proceedings of the AAAI Conference on Artificial Intelligence. 7847–7855.
  24. [24]Yanni Ma, Hao Liu, Yun Pei, and Yulan Guo. 2024. Heterogeneous graph learning for scene graph prediction in 3D point clouds. In Proceedings of the European Conference on Computer Vision. Springer, 274–291.DOI
  25. [25]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. 2021. Learning transferable visual models from natural language supervision. In Proceedings of the International Conference on Machine Learning. PmLR, 8748–8763.arxiv.org/abs/2103.00020
  26. [26]Kaspar Riesen and Horst Bunke. 2009. Approximate graph edit distance computation by means of bipartite graph matching. Image and Vision Computing 27, 7 (2009), 950–959.DOI
  27. [27]Kaspar Riesen, Xiaoyi Jiang, and Horst Bunke. 2010. Exact and Inexact Graph Matching: Methodology and Applications. In Managing and Mining Graph Data, Charu C. Aggarwal and Haixun Wang (Eds.). Advances in Database Systems, Vol. 40. Springer, 217–247.
  28. [28]Alberto Sanfeliu and King-Sun Fu. 1983. A distance measure between attributed relational graphs for pattern recognition. IEEE Transactions on Systems, Man, and Cybernetics 13, 3 (1983), 353–362.DOI
  29. [29]Ioannis Tsochantaridis, Thorsten Joachims, Thomas Hofmann, Yasemin Altun, and Yoram Singer. 2005. Large Margin Methods for Structured and Interdependent Output Variables. Journal of Machine Learning Research 6, 9 (2005), 1453–1484.DOI
  30. [30]Peter D Turney and Patrick Pantel. 2010. From frequency to meaning: Vector space models of semantics. Journal of Artificial Intelligence Research 37 (2010), 141–188.DOI
  31. [31]Cédric Villani. 2009. Optimal Transport: Old and New. Grundlehren der mathematischen Wissenschaften, Vol. 338. Springer, Berlin.
  32. [32]Johanna Wald, Armen Avetisyan, Nassir Navab, Federico Tombari, and Matthias Nießner. 2019. RIO: 3D object instance re-localization in changing indoor environments. In Proceedings of the IEEE/CVF International Conference on Computer Vision. 7658–7667.arxiv.org/abs/1908.06109
  33. [33]Johanna Wald, Helisa Dhamo, Nassir Navab, and Federico Tombari. 2020. Learning 3D semantic scene graphs from 3D indoor reconstructions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 3961–3970.arxiv.org/abs/2004.03967
  34. [34]Ziqin Wang, Bowen Cheng, Lichuan Zhao, Yong Yang Tang, and Lu Sheng. 2023. VL-SAT: Visual-linguistic semantics assisted training for 3D semantic scene graph prediction in point cloud. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 21560–21569.arxiv.org/abs/2303.14408
  35. [35]Shun-Cheng Wu, Johanna Wald, Keisuke Tateno, Nassir Navab, and Federico Tombari. 2021. SceneGraphFusion: Incremental 3D scene graph prediction from RGB-D sequences. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 7515–7525.
  36. [36]Danfei Xu, Yuke Zhu, Christopher B Choy, and Li Fei-Fei. 2017. Scene graph generation by iterative message passing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 5410–5419.arxiv.org/abs/1701.02426
  37. [37]Chaoyi Zhang, Jianhui Yu, Yang Song, and Weidong Cai. 2021. Exploiting Edge-Oriented Reasoning for 3D Point-Based Scene Graph Analysis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 9705–9715.arxiv.org/abs/2103.05558
  38. [38]Shoulong Zhang, Shuai Li, Aimin Huang, and Hong Qin. 2021. Knowledge-inspired 3D scene graph prediction in point cloud. Advances in Neural Information Processing Systems 34 (2021), 18620–18632.

Paper details

vlnc:W_ypwkfpvd
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents