Manuscript Offprint
arXiv:2610.28033Spherical Geometry-Aware Panoptic Scene Graph Generation for Equirectangular Panoramas
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Panoptic scene graph generation (PSGG) represents scene entities with segmentation masks and directed relations. Equirectangular projection (ERP) panoramas challenge PSGG through distortion, latitude-dependent pixel areas, and an artificial seam. We propose a two-stage spherical geometry-aware framework that fuses overlapping perspective-view predictions using observation reliability, spherical overlap, and angular proximity. Relation reasoning combines spherical-area-aware aggregation, weighted no-relation supervision, and dual-longitude score fusion. We also construct a dataset of 340 high-resolution panoramas with 10,571 nodes and 6,632 directed relations. Against corresponding baselines, spherical fusion improves PQ by 36.03% under matched views, while relation reasoning improves mR@50 by 11.20% under PredCls with ground-truth masks and object labels. The full framework improves mR@50 by 52.99% under SGDet with predicted panoptic segments. These results demonstrate the value of spherical geometry for panoramic PSGG.
Index Terms— panoptic scene graph generation, panoptic segmentation, spherical geometry
1. INTRODUCTION
Panoptic scene graph generation (PSGG) represents scene entities with segmentation masks and directed semantic relations [1]. Panoramas capture full-scene entities and interactions in one observation. Prior work exploits panoramic context for holistic 3D understanding [2, 3] and studies omni-range context [4], projection distortion [5, 6], and spherical geometry [7, 8] in panoramic segmentation. PSGG models address predicate imbalance [9], pair selection [10], and mask-aware relation modeling and ranking through DSFormer [11], but largely assume perspective images. Panoramic PSGG must therefore model spherical geometry in both entity representation and relation prediction.
Equirectangular projection creates three geometric challenges for panoramic PSGG (Fig. 1): distorted object

Fig. 1. Panoramic geometry challenges for PSGG. (a) Direct parsing of ERP images introduces object boundary errors in the highlighted region. (b) Equally sized ERP regions correspond to different spherical surface areas at different latitudes. (c) The ERP seam artificially separates spatially adjacent instances on the sphere, disrupting their shared relational context.
boundaries, unequal spherical areas for equal-sized image regions, and seam-separated relational context. Overlapping perspective views reduce distortion but yield duplicate or truncated instances with inconsistent identities, requiring reliable association and fusion. Relation features should reflect spherical rather than image area, and relation-existence predictions should remain stable when the longitude origin moves the ERP seam without changing the scene.
We make three contributions. (1) Spherical geometry-aware panoptic segmentation (SGPS) associates and fuses cross-view instances using observation reliability, spherical overlap, and angular proximity, improving PQ by 36.03% over a baseline with the same view configuration. (2) Spherical geometry-aware relation reasoning (SGRR) combines spherical-area-aware aggregation, weighted no-relation supervision, and dual-longitude score fusion. Under PredCls, this module improves mR@50 by 11.20% over its corresponding baseline. (3) A high-resolution panoramic PSGG dataset comprises 340 panoramas, 10,571 nodes, and 6,632 directed relations with multi-stage quality control. Under SGDet, the complete framework improves mR@50 by
Corresponding author: xueweili@sdju.edu.cn.
52.99% over the corresponding baseline, while stage-wise ablation isolates the gains from SGPS and SGRR.
2.1. Spherical Geometry-Aware Panoptic Segmentation
A fixed MaskDINO [12] predicts panoptic masks in 30 overlapping 90° views sampled at yaw angles 60°k, , and pitch angles 30°l, . The predictions are reprojected into ERP coordinates.
For an ERP pixel p observed in perspective view v, its observation reliability is defined as
where is the reliability of in view , and is 1 for a valid projection and 0 otherwise. The notation retains non-negative values. The angle is measured from the optical axis, with controlling angular decay; is the nearest boundary distance, normalized by . Finally, . Thus, high reliability requires a valid observation near the optical axis and away from view boundaries.
Let be the ERP row of pixel , its latitude, the spherical-area weight of row , and the weighted area of region . For a mask reprojected from view and a same-class candidate , we compute
(2)
where is the unit spherical direction of , is the Euclidean norm, and is the normalized spherical center of . Candidates are matched when , or when and . Here, , , and are the high-overlap, moderate-overlap, and angular-distance thresholds, respectively.
After association, global instance receives a pixel-wise support score
where is the set of source-view observations, is the candidate mask assigned to in view , and equals 1 when belongs to that mask and 0 otherwise. Thing conflicts are resolved by maximum support, after which category-wise stuff predictions fill unassigned regions.
2.2. Spherical Geometry-Aware Relation Reasoning
SGRR builds on the mask-prompted transformer encoder in [11]. A visual backbone and feature pyramid produce an ERP feature map partitioned into patches , whose projected embeddings are . For ordered pair , the masks, boxes, and object labels condition the patch sequence, and the final classification token gives the contextual pair feature .
For node , its spherical mass in patch is . We obtain
(4)
where and index feature patches, is the spherical-area-weighted node feature, denotes feature concatenation, and MLP is a multilayer perceptron. The output is the augmented subject-object pair representation.
For sampled ordered pairs , is the multi-hot foreground-predicate target, and indicates no relation. Let and be the corresponding predicted probabilities. Using binary cross-entropy , we optimize
(5)
where is the number of foreground predicates and weights no-relation supervision. For image , and denote positive and non-self negative pairs. All positives are retained, negatives are sampled uniformly without replacement at ratio , and is their union over the mini-batch. Multiple predicates on one pair share a multi-hot target.
At inference, shifting the ERP image and masks by W/2 forms a second longitude branch. Superscripts (0) and ( ) denote the original and shifted branches, which share param-

Fig. 2. Spherical geometry-aware PSGG framework. Spherical geometry-aware panoptic segmentation (SGPS) fuses overlapping perspective-view predictions. Spherical geometry-aware relation reasoning (SGRR) combines spherical-area-aware aggregation, weighted no-relation supervision, and dual-longitude score fusion.
eters. We compute
where is the fused no-relation probability and is the final score used to rank predicate for pair . Thus, the two branches fuse relation-existence evidence while retaining the original branch's foreground-predicate distribution.
3. EXPERIMENTS
3.1. PanoPSG Dataset and Experimental Setup
We introduce PanoPSG, a high-resolution panoramic panoptic scene graph dataset comprising 340 ERP panoramas, each with full coverage and a resolution of pixels (Table 1). Reviewer-verified masks were delineated in CVAT, while a dedicated platform supported high-resolution relation annotation, persistent node identities, and multiple predicates per ordered pair. A second review checked endpoint validity, duplicate triplets, and mask-relation alignment.
Each panorama contains an average of 31.09 nodes and 19.51 directed relations, respectively and the
Table 1. Statistics of the PanoPSG dataset.
| Property | Statistics |
|---|---|
| Panoramas (train / val) | 340 (272 / 68) |
| Resolution | 11968 × 5984 |
| Pixels / panorama | 71.62 M |
| Node classes (predefined / observed) | 133 / 82 |
| Nodes (thing / stuff) | 10,571 (4,043 / 6,528) |
| Relations / predicates | 6,632 / 21 |
| Mean nodes / relations per panorama | 31.09 / 19.51 |
PSG averages of 11.0 and 5.6 [1]. Together with 71.62 million pixels per image and full-scene coverage, this density supports evaluating panoramic panoptic segmentation and relation reasoning in complex scenes. For implementation, we set , , , , and .
SGPS is evaluated on all 340 panoramas using panoptic quality (PQ) [13], spherical-area-weighted mean intersection over union (Sphere-mIoU), seam-region mIoU (Seam-mIoU), instance recall at an IoU threshold of 0.5 (IR@0.5), and mean instance recall (mIR@0.5). Sphere-mIoU accumulates an -weighted confusion matrix over the dataset and averages class IoU over ground-truth-present classes. Seam-mIoU is computed within the two strips adjacent to the ERP seam. IR@0.5 uses one-to-one, same-category matching and excludes crowd thing instances. IR is micro-averaged over eligible instances, whereas mIR is macro-averaged over
Table 2. Panoptic segmentation performance on PanoPSG (%).
| Method | PQ ↑ | Sphere-mIoU ↑ | Seam-mIoU ↑ | IR@0.5 ↑ | mIR@0.5 ↑ |
|---|---|---|---|---|---|
| Direct ERP | 25.02 | 34.81 | 30.82 | 40.26 | 19.67 |
| Cubemap-6 | 33.22 | 45.47 | 47.71 | 61.92 | 43.29 |
| Basic Fusion | 28.89 | 45.97 | 48.81 | 72.71 | 58.67 |
| Ours | 39.30 | 56.04 | 61.11 | 74.74 | 64.65 |
ground-truth-present thing categories.
Relation models use an image-disjoint split of 272 training and 68 validation panoramas, a 30-epoch training budget, and best-validation checkpoint selection. Predicate classification (PredCls) uses ground-truth masks and object labels, isolating relation reasoning from segmentation errors. Although the annotations permit multiple predicates for each ordered pair, graph-constrained evaluation retains only the highest-scoring predicate [1, 11]. Recall at (R@K) measures the recovery of ground-truth triplets among the top- predictions per image. Mean recall (mR@K) macro-averages predicate-specific recall over the 21 predicates, providing a predicate-balanced complement to aggregate retrieval [14, 11]. We report over 1,325 validation relations. Under scene graph detection (SGDet), node matching requires identical object labels and original-resolution mask IoU > 0.5. Unmatched predictions remain in the top- ranking. Together, PredCls and SGDet distinguish relation-reasoning gains from improvements inherited from panoramic node construction while retaining the same recall-based evaluation.
3.2. Spherical Geometry-Aware Panoptic Segmentation
Table 2 compares first-stage panoptic segmentation methods on PanoPSG. Direct ERP, Cubemap-6, Basic Fusion, and our method use the same frozen MaskDINO segmentation model. Basic Fusion applies basic fusion to the best-performing single-FoV configuration.
Our method leads all five metrics in Table 2. Compared with Basic Fusion under the same view configuration, it improves PQ by 10.41 percentage points, corresponding to a relative improvement of . It also gains 10.07 points in Sphere-mIoU, 12.30 points in Seam-mIoU, and 5.98 points in mIR@0.5. With the segmentation model and view sampling held fixed, these results demonstrate the contribution of reliability-weighted spherical association and fusion to panoptic quality, spherical semantic accuracy, and seam continuity.
3.3. Spherical Geometry-Aware Relation Reasoning
Table 3 compares the proposed relation reasoning model with IMP [15], MOTIFS [16], VCTree [17], and DSFormer [11] under the shared PredCls protocol.
Table 3. Relation-model comparison under PredCls on PanoPSG (%).
| Model | R@20 ↑ | R@50 ↑ | mR@20 ↑ | mR@50 ↑ |
|---|---|---|---|---|
| IMP [15] | 33.77 | 47.16 | 14.45 | 21.13 |
| MOTIFS [16] | 49.92 | 63.59 | 28.40 | 36.42 |
| VCTree [17] | 53.03 | 67.85 | 30.91 | 40.15 |
| DSFormer [11] | 45.06 | 68.60 | 25.50 | 53.49 |
| Ours | 48.68 | 70.57 | 35.18 | 59.48 |
Table 4. Component ablation under SGDet on PanoPSG (%).
| SGPS | SGRR | R@20 ↑ | R@50 ↑ | mR@20 ↑ | mR@50 ↑ |
|---|---|---|---|---|---|
| × | × | 25.43 | 29.28 | 15.01 | 22.25 |
| ✓ | × | 27.02 | 42.79 | 14.62 | 27.00 |
| ✓ | ✓ | 29.13 | 45.13 | 18.45 | 34.04 |
Our method achieves the highest R@50 of 70.57%, mR@20 of 35.18%, and mR@50 of 59.48%. Relative to DSFormer, mR@20 and mR@50 increase by 9.68 and 5.99 percentage points, respectively, with the latter corresponding to an 11.20% relative improvement. VCTree achieves the highest R@20, whereas our method provides the strongest results for R@50 and both predicate-balanced metrics. These results demonstrate that incorporating spherical geometry into the relation pathway improves both aggregate and predicate-balanced relation retrieval.
Table 4 reports the SGDet ablation, where both panoptic segments and directed relations are predicted.
Replacing Direct ERP segmentation with SGPS while retaining the baseline relation model increases R@50 from 29.28% to 42.79% and mR@50 from 22.25% to 27.00%. Adding SGRR further raises these metrics to 45.13% and 34.04%, respectively. The complete framework therefore improves R@50 by 15.85 points and mR@50 by 11.79 points over the baseline; the latter corresponds to a 52.99% relative improvement. These results confirm complementary gains from SGPS and SGRR under SGDet.
4. CONCLUSION
We presented a two-stage spherical geometry-aware panoramic PSGG framework combining SGPS and SGRR, and introduced PanoPSG with 340 panoramas, 10,571 nodes, and 6,632 directed relations. Against corresponding baselines, SGPS improves PQ by under matched views, SGRR improves mR@50 by under PredCls, and the full framework improves mR@50 by under SGDet. SGPS improves graph-node consistency, while SGRR reduces sensitivity to latitude-dependent area and seam placement. These complementary gains validate spherical geometry for panoramic PSGG. The framework provides a unified basis for geometry-consistent scene graphs from high-resolution panoramas.
5. REFERENCES
[1] Jingkang Yang, Yi Zhe Ang, Zujin Guo, Kaiyang Zhou, Wayne Zhang, and Ziwei Liu, “Panoptic scene graph generation,” in Proc. Eur. Conf. Comput. Vis. (ECCV), 2022, pp. 178–196.
[2] Cheng Zhang, Zhaopeng Cui, Cai Chen, Shuaicheng Liu, Bing Zeng, Hujun Bao, and Yinda Zhang, “Deep-PanoContext: Panoramic 3D scene understanding with holistic scene context graph and relation-based optimization,” in Proc. IEEE/CVF ICCV, 2021, pp. 12632–12641.
[3] Yuan Dong, Chuan Fang, Liefeng Bo, Zilong Dong, and Ping Tan, “PanoContext-Former: Panoramic total scene understanding with a transformer,” in Proc. IEEE/CVF CVPR, 2024, pp. 28087–28097.
[4] Kailun Yang, Jiaming Zhang, Simon Reiss, Xinxin Hu, and Rainer Stiefelhagen, “Capturing omni-range context for omnidirectional segmentation,” in Proc. IEEE/CVF CVPR, 2021, pp. 1376–1386.
[5] Jiaming Zhang, Kailun Yang, Chaoxiang Ma, Simon Reiß, Kunyu Peng, and Rainer Stiefelhagen, “Bending reality: Distortion-aware transformers for adapting to panoramic semantic segmentation,” in Proc. IEEE/CVF CVPR, 2022, pp. 16917–16927.
[6] Xu Zheng, Jinjing Zhu, Yexin Liu, Zidong Cao, Chong Fu, and Lin Wang, “Both style and distortion matter: Dual-path unsupervised domain adaptation for panoramic semantic segmentation,” in Proc. IEEE/CVF CVPR, 2023, pp. 1285–1295.
[7] Xuewei Li, Tao Wu, Zhongang Qi, Gaoang Wang, Ying Shan, and Xi Li, “SGAT4PASS: Spherical geometry-aware transformer for panoramic semantic segmentation,” in Proc. IJCAI, 2023, pp. 1125–1133.
[8] Xuewei Li, Xinghan Bao, Zhimin Chen, and Xi Li, “REL-SF4PASS: Panoramic semantic segmentation with REL depth representation and spherical fusion,” in Proc. IEEE/CVF CVPR, 2026, pp. 27676–27685.
[9] Zijian Zhou, Miaojing Shi, and Holger Caesar, “HiLo: Exploiting high low frequency relations for unbiased panoptic scene graph generation,” in Proc. IEEE/CVF ICCV, 2023, pp. 21637–21648.
[10] Jinghao Wang, Zhengyu Wen, Xiangtai Li, Zujin Guo, Jingkang Yang, and Ziwei Liu, “Pair then relation: Pair-Net for panoptic scene graph generation,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 46, no. 12, pp. 10452–10465, 2024.
[11] Julian Lorenz, Alexander Pest, Daniel Kienzle, Katja Ludwig, and Rainer Lienhart, “A fair ranking and new model for panoptic scene graph generation,” in Proc. Eur. Conf. Comput. Vis. (ECCV), 2024, pp. 148–164.
[12] Feng Li, Hao Zhang, Huaizhe Xu, Shilong Liu, Lei Zhang, Lionel M. Ni, and Heung-Yeung Shum, “Mask DINO: Towards a unified transformer-based framework for object detection and segmentation,” in Proc. IEEE/CVF CVPR, 2023, pp. 3041–3050.
[13] Alexander Kirillov, Kaiming He, Ross Girshick, Carsten Rother, and Piotr Dollár, “Panoptic segmentation,” in Proc. IEEE/CVF CVPR, 2019, pp. 9404–9413.
[14] Julian Lorenz, Florian Barthel, Daniel Kienzle, and Rainer Lienhart, “Haystack: A panoptic scene graph dataset to evaluate rare predicate classes,” in Proc. IEEE/CVF ICCV Workshops, 2023, pp. 62–70.
[15] Danfei Xu, Yuke Zhu, Christopher B. Choy, and Li Fei-Fei, “Scene graph generation by iterative message passing,” in Proc. IEEE CVPR, 2017, pp. 5410–5419.
[16] Rowan Zellers, Mark Yatskar, Sam Thomson, and Yejin Choi, “Neural motifs: Scene graph parsing with global context,” in Proc. IEEE CVPR, 2018, pp. 5831–5840.
[17] Kaihua Tang, Hanwang Zhang, Baoyuan Wu, Wenhan Luo, and Wei Liu, “Learning to compose dynamic tree structures for visual contexts,” in Proc. IEEE/CVF CVPR, 2019, pp. 6619–6628.