diff --git a/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/c0634110-b51e-4dc6-9c90-4de515c1bbca_content_list.json b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/c0634110-b51e-4dc6-9c90-4de515c1bbca_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..84243d2c9abed4835e2cdf35074325bf82c2e923 --- /dev/null +++ b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/c0634110-b51e-4dc6-9c90-4de515c1bbca_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b2d5f8132b2eb2551982651f5f80ee7234b7593a30004f6f4e869bbd30d9ed9 +size 154962 diff --git a/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/c0634110-b51e-4dc6-9c90-4de515c1bbca_model.json b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/c0634110-b51e-4dc6-9c90-4de515c1bbca_model.json new file mode 100644 index 0000000000000000000000000000000000000000..a3701a94bf6829e0d0ab98ecd78713e47d3fdb6a --- /dev/null +++ b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/c0634110-b51e-4dc6-9c90-4de515c1bbca_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1e3f80cd380f45b1b90d7215d814ddb9623706206932ac802929400591d9be3 +size 204291 diff --git a/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/c0634110-b51e-4dc6-9c90-4de515c1bbca_origin.pdf b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/c0634110-b51e-4dc6-9c90-4de515c1bbca_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..0ad11dc647f564cceb36938cd34c4958e1d735c7 --- /dev/null +++ b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/c0634110-b51e-4dc6-9c90-4de515c1bbca_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bf60d0e8335dd8e4aa1d12e719a235c0e530fcb427266dd2b12b5bdea2b998f +size 3173384 diff --git a/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/full.md b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/full.md new file mode 100644 index 0000000000000000000000000000000000000000..41aab7823550c6001b1cff5e615834d95099ae9c --- /dev/null +++ b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/full.md @@ -0,0 +1,623 @@ +# UniMRSeg: Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation + +Xiaoqi Zhao1 Youwei Pang2 Chenyang Yu3 +Lihe Zhang3 Huchuan Lu3 Shijian Lu2 Georges El Fakhri1 +123ModalityDice score(%)Whole Tumor (Whole)Tumor Core (Core)Enhancing Tumor (Enhancing)Flair T1 T1ce T2NestedFormer [63]SFusion [30]ShaSpec [55]PASSION [48]UniMRSeg [48]NestedFormer [63]SFusion [30]ShaSpec [55]PASSION [48]NestedFormer [63]SFusion [30]ShaSpec [55]PASSION [48]UniMRSeg [48]○○23.2258.5463.1064.8375.148.2637.2042.8350.3656.312.3116.3422.1530.2335.19○○24.6160.8257.3160.9268.8727.4045.1954.5954.7879.2035.8544.3464.9369.1279.20○○8.1555.6955.4054.1060.416.7729.8434.2639.9345.703.5514.1318.2322.1328.70○○61.1874.2579.5477.3585.3334.0143.2352.7450.2761.8129.8430.9237.4039.6045.61○○47.2272.9170.6075.8281.6440.0271.8275.9380.3582.0149.1366.1874.2379.0379.58○○40.8760.3067.5867.9072.9852.3475.6278.9279.8584.6056.8766.0977.1378.3280.23○○70.5484.4080.2382.3986.2242.8464.3160.2060.5567.9033.6136.5348.0846.0551.14○○22.7767.3572.4077.7177.9813.1642.9252.8051.6059.717.2632.2936.0233.4241.49○○59.1883.7185.3186.6487.7832.4255.6263.5352.8770.0029.4032.0943.5243.3453.12○○58.5784.9082.8085.7487.9643.9173.3076.5278.9485.7154.0569.4877.2879.0881.59○○76.6780.5284.1285.4286.9163.1277.3079.3480.3885.9269.7374.3676.0278.1281.28○○73.0078.9081.1381.3185.5042.2563.6261.9363.9567.4332.4430.0339.8943.6049.57○○74.3080.6583.2083.5287.5160.0476.2878.9379.9282.7864.4770.0274.6879.0980.50○○58.7770.5274.3676.3176.5760.3278.4880.6582.3684.9269.4667.1873.3976.0477.15○○81.0784.9285.0285.9088.7467.0278.8484.2684.7586.0173.7872.0975.5980.7282.18Average↑52.0173.2374.8176.3980.6439.5960.9065.1666.0673.3340.7848.1455.9058.5363.10Std Dev↓23.0910.4710.0810.078.4319.5317.0715.4515.3413.0424.2021.8021.6221.8419.86 + +Table 2: Quantitative comparison of segmentation performance across RGB, Depth and Thermal modalities. + +
ModalityRGB-D Salient Object Segmentation (STERE [34])RGB-T Salient Object Segmentation (VT1000 [54])RGB-D Semantic Segmentation (SUN-RGBD [50])
RGB Depth/ThermalSSLSOD CAVER [80]CAYER [39]PopNet [62]GateNet [82]UniMRSeg [82]SSLSOD [80]LSNet [86]CAYER [39]CONTRINET [51]UniMRSeg [51]TokenFusion [58]CMX CMXNeXt [71]MaskMentor [72]MultiMentor [85]MultiMentor [87]
○.846.825.916.844.918.784.698.720.735.84748.149.648.649.851.7
○•.732.614.645.653.839.894.837.861.854.91140.642.941.041.247.3
••.885.917.917.919.923.930.924.936.929.93851.052.451.953.053.2
Average ↑.821.785.826.805.893.869.820.839.839.89946.648.347.248.050.7
Std Dev ↓.080.155.157.137.047.076.114.110.098.0475.44.95.66.13.1
+ +# 4 Experiments + +# 4.1 Datasets and Metrics + +In this work, we conduct experimental comparisons on four popular visual multi-modal image segmentation tasks to show the generalizability of the proposed method. I) Brain Tumor Segmentation. We follow most brain tumor segmentation methods [22, 63, 10, 30] use the BraTS2020 dataset [32], which contains 369 images with four modality scans: T1ce, T1, T2, and Flair, along with three annotated regions: enhancing tumor, tumor core, and whole tumor, which are mutually inclusive. The dataset is split into training (315), validation (17), and test (37) sets. II) RGB-D Salient Object Segmentation. We adopt the same training set as most methods [80, 82, 39], i.e., 1,485 samples from the NJUD [20] and 700 samples from the NLPR [43]. The test dataset is STERE [34], which contains 1,000 RGB and depth image pairs with complex scenes. III) RGB-T Salient Object Segmentation. We follow the setting of recent works [39, 86, 51], the training set only contains the 2,500 samples from VT5000 [53] and adopt the VT1000 [54] as the test set which contains 1,000 pairs of RGB-T images including more than 400 kinds of common objects collected in 10 types of scenes under different illumination conditions. IV) RGB-D Semantic Segmentation. SUN-RGBD [50] is the popular indoor scene benchmark with 37 classes. It contains 10,335 pairs of RGB-D images, with 5,285 pairs allocated for training and 5,050 for testing. We introduce some widely used metrics in each field for fair evaluation, including Dice for brain tumor segmentation, S-measure [12] ( $S_{m}$ ) for salient object segmentation and IoU for semantic segmentation. + +# 4.2 Implementation Details + +All experiments are conducted on one NVIDIA A800 GPU. We adopt basic image augmentation techniques to avoid overfitting, including random flipping, rotating and border clipping. We train the model for 300 epochs based on the AdamW optimizer [31] with a warmup schedule, an initial learning rate of 0.0001, and a weight decay of 0.00001. For RGB-D and RGB-T tasks, we concatenate the inputs into a 4-channel tensor to maintain the single-stream architecture. For fair comparison, we separately adopt ResNet-50 [18] and ConvNext-B [27] as the backbone for RGB-D/T salient object segmentation and RGB-D semantic segmentation, which are widely used in their respective fields. + +![](images/349a51437694fd12cefb41fce54c9999e59dadbddcb007390f59132d076d5267.jpg) + +![](images/872fb0ef7324cfd7ca00a3a3261ad94875e4ea75f4eef2b02e921783ce32be35.jpg) + +![](images/aa1374add408f5841bc5f2bd95464602a81de2d4ee68dfd9091295c411b30d7f.jpg) +(a) MRI-based Brain Tumor Segmentation +(b) RGB-D Semantic Segmentation +Figure 4: Qualitative comparisons of predictions from different methods across different modality combinations. Best viewed on screen. + +![](images/9846a098060b389cf35101fe400978ec496fac02174bd9e719703bac4969bea7.jpg) +(c) RGB-D Salient Object Segmentation + +![](images/766066ccc632a1254cfa6d5e820d8c3ac6b8e8e6daef4b532127d03e8103edd5.jpg) +(d) RGB-T Salient Object Segmentation + +# 4.3 Evaluation + +Quantitative Results. We conduct thorough comparisons on all the four tasks, as shown in Tab. 1 and Tab. 2. All these models are either directly tested for performance or retrained based on their publicly released code. To simulate missing modalities in practice and keep consistent with training, we fill missing modalities in MRI with zero pixel values and directly copy other existing modalities to complete the dual input of any missing modality in RGB-D and RGB-T tasks. In addition, we follow some methods with depth estimation functions [80, 62, 85] to cascade the intrinsic depth predictor as the input of the models for RGB-D salient object segmentation and RGB-D semantic segmentation tasks. It can be seen that our proposed UniMRSeg achieves excellent performance on all tasks with the best average performance and lowest standard deviation. These high accuracy, strong robustness and generalization capabilities across multiple modalities show its potential as a unified, reliable, and efficient segmentation framework. + +Qualitative Results. In Fig. 4a, PASSION [48] exhibits significant prediction fluctuations for enhancing tumor (blue) and tumor core (red) under missing modalities, while UniMRSeg maintains highly consistent predictions aligned with ground truth. T1 and Flair modalities notably degrade PASSION's boundary discrimination for whole tumor (green), revealing mutually exclusive fusion deficiencies. In Fig. 4b, UniMRSeg achieves precise door segmentation (red) by fusing color and geometric features across RGB/RGB-D modes, whereas CMX [71] fails completely with depth-only inputs. Leveraging spatial topology of chairs, UniMRSeg robustly segments blurred wall-adjacent boxes using pure depth data, demonstrating superior shape reasoning. Fig. 4c shows PopNet [62] produces identical spherical predictions in RGB/RGB-D modes via embedded depth prediction, but degenerates to depth map binarization without RGB. In contrast, UniMRSeg reconstructs RGB semantics from depth and fuses cross-modal features to accurately segment humans and spheres. Fig. 4d verifies thermal modality's advantage in resolving RGB's color-similarity-induced sticking issues. Remarkably, UniMRSeg achieves complete target segmentation using thermal data alone. + +# 4.4 Ablation Study + +In this section, we show the effectiveness of each component on the brain tumor segmentation task with the most complex modality combination. The baseline model is 3D-UNet without any pre-training. + +Each Components. As shown in Tab. 3, the three data perturbations in stage 1 demonstrate the effectiveness of learning intra- and inter-modal features for multi-granular reconstruction. Their accumulation during pre-training leads to over $14.7\%$ performance gain over the baseline in subsequent segmentation. Stage 2 highlights the importance of jointly training the segmentation decoder and the encoder guided by spatial distance clustering, which promote each other. Stage 3 further optimizes cross-modal alignment through reverse attention adapters and prediction-level consistency + +Table 3: Ablation study of each component. + +
ModelsAverage Dice score(%)
WholeCoreEnhancing
Baseline63.3151.6038.40
Stage 1: Multi-granular Modality Reconstruction (Sec. 3.1)
+ Random Modality Dropout66.9855.4742.25
+ Random Modality Shuffle67.7856.8544.17
+ Random Spatial Masking69.3559.8947.12
Stage 2: Modality-invariant Contrastive Learning (Sec. 3.2)
+ Contrastive Learning (Encoder)72.4564.0251.45
+ Segmentation Constraint (Decoder)74.5365.2553.97
Stage 3: Incomplete Modality Adaptive Fine-tuning (Sec. 3.3)
+ Feature-Level Consistency (Adapter)78.1269.3859.25
+ Prediction-Level Consistency (Segmentation)80.6473.3363.10
Three-Stage Design vs. Unified Single Stage
Three-Stage Design80.6473.3363.10
Unified Single Stage20.3213.6710.03
+ +Table 4: Ablation study of the reverse attention adapter. + +
ModelsAverage Dice score(%)
WholeCoreEnhancing
UniMRSeg80.6473.3363.10
w/o Rerseve Attention78.9269.2660.45
w/o Rerseve Attention+Mutual Attention78.1268.9860.23
w/o 3D Swim Transformer+Rerseve Attention+Mutual Attention77.4468.7459.24
Fine-tune Encoder in Stage 377.0568.1558.20
+ +Table 5: Evaluation of different compensation levels. + +
Input Level (Stage 1)Feature Level (Stage 2 and Adapter)Output Level (Segmentation Consistency)Average Dice score(%)
WholeCoreEnhancing
✓--69.3559.8947.12
-✓-72.4662.3050.92
--✓69.4757.2548.31
✓✓-78.1269.3859.25
✓-✓74.4566.4054.38
-✓✓75.6567.4854.95
✓✓✓80.6473.3363.10
Baseline63.3151.6038.40
+ +![](images/2527cd439c12e1ad2472d0dbd464ec42bc0574721059d9a03ac6e1454d4decd4.jpg) +(a) Baseline + +![](images/09d7d0f6b745d12fba3c4790f04a8b3ad87bd43e60e5e8589b8ced9a2edf167c.jpg) +(b) Stage 1 +Figure 5: Average response value of feature maps of each encoding layer under different modal combinations at different stages. + +![](images/af1a093be615a132c40b912a1e46fad494d80c518c39968721304ee565a5a691.jpg) +(c) Stage 2 + +![](images/3df38383ee1fdc2c06d50ae1e8bb66e3a7ff917c18c2c312779f672f8e792af7.jpg) +(d) Stage 3 + +constraints. The latter alone surpasses the stage 2 decoder by $12.0\%$ , showing the importance of enforcing prediction consistency across modalities. Gains in each stage are consistently and gradually improved, with the final model outperforming the baseline by over $44.6\%$ on average. + +Three-Stage Design vs. Unified Single Stage. UniMRSeg is built upon a self-supervised pretraining framework, with training initialized from scratch starting at Stage 1. For each task (e.g., BraTS 2020), self-supervised training is conducted solely on the task's own training set, rather than relying on externally labeled datasets such as ImageNet-pretrained weights for initialization. Our three-stage design includes: 1) Pretrain both the encoder and decoder through arbitrary modality reconstruction. 2) Pretrain the encoder with contrastive learning. The segmentation task here is only used to guide the contrastive objective, not as a final goal. 3) Perform the downstream segmentation task. In this way, our three-stage design explicitly aims to reduce the representation gap between complete and incomplete modalities in the encoder-decoder space during the final segmentation stage. If all these tasks are trained jointly in a single-stage model, it would fall into the scope of multi-task learning, rather than self-supervised pretraining. + +In multi-task learning, the goal is to leverage multiple complementary clues for collaborative learning. These clues can come from the data level [21, 56, 77], or from structural supervision types [47, 24, 65]. Most approaches often incorporate deliberate designs for task-sharing and task-specific components to enable effective joint prediction across tasks. If the three stages are forcibly merged into a single training stage, two major issues will arise: 1) The model is trained with inputs that involve Random Modality Dropout, Random Modality Shuffle, and Random Spatial Masking. The encoder is supervised using the NT-Xent contrastive loss, an adapter is incorporated, and the model is simultaneously tasked with both segmentation and reconstruction. Such a fully entangled training setup lacks a clear task hierarchy, and there is no explicit coordination among the input, encoder, decoder, and output. 2) When all tasks are treated equally without ordering, joint optimization becomes highly difficult. In the unified single-stage training attempt, the total loss involves six parts. As shown in Tab. 3, we compare the three-stage model with the unified single-stage model. We observed two phenomena during the experiments: 1) The single stage model failed to converge, with loss plateauing early. 2) The optimization process was highly unstable, with different losses fluctuating in turn and failing to decrease consistently together. These phenomena and performance clearly indicate that unified single stage training is unable to achieve effective coordination among the various designs and supervision signals. The lack of a clear training order, combined with competing optimization objectives, leads to mutual interference. + +Reverse Attention Adapter. Tab. 4 shows ablations on the reverse attention adapter. There are three key findings: 1) Removing reverse attention alone leads to a $4.2\%$ average drop, confirming its role in semantic compensation for missing modalities. 2) Subsequent elimination of mutual attention yields negligible performance variation, indicating that only emphasizing high-response regions between adapter layers and frozen encoding layers cannot achieve meaningful feature compensation. 3) Replacing the 3D Swin Transformer with a 3D convolution of similar parameters significantly degrades performance, validating the Transformer's advantage in cross-modal correlation modeling. Additionally, we compare freezing vs. fine-tuning the encoder during stage 3. Fine-tuning causes over $6.4\%$ performance drops, indicating that it destroys the adapter-encoder synergy and the compensation mechanism relies on stable encoder representations rather than task-specific tuning. + +To further explain this observation, we provide two perspectives: the inheritance between Stage 2 and Stage 3, and the rationale behind the lightweight reverse attention adapter (RAA). 1) Unlike general SSL methods [4, 17, 16] that focus on learning generic representations without targeting specific downstream tasks, our contrastive learning in Stage 2 is task-aware. We co-train the segmentation head to guide the encoder toward modality-invariant features that are directly beneficial for segmentation, rather than general-purpose representations. This task-guided design ensures that the learned contrastive space aligns with the downstream segmentation objective. Therefore, fine-tuning the encoder in Stage 3 would undermine the task-guided contrastive representations that were carefully established. 2) The RAA itself is designed as a residual correction bridging the encoder representation gap between incomplete and complete modality inputs. Formally: + +$$ +f _ {\text {i n c}} + \mathcal {A} \left(f _ {\text {i n c}}\right) \approx f _ {\text {c o m}}, \tag {6} +$$ + +where $f_{\mathrm{inc}}$ denotes encoder features from incomplete modalities, $f_{\mathrm{com}}$ represents encoder features from complete modalities, and $\mathcal{A}(\cdot)$ is the learnable adapter. During Stage 3, both $f_{\mathrm{inc}}$ and $f_{\mathrm{com}}$ are frozen, while only $\mathcal{A}$ is trained. This constrained setup ensures that the adapter focuses purely on compensating missing information, enabling stable and efficient optimization. Once the encoder is unfrozen, however, all three components become variables, making their roles unclear and the optimization unstable. In conclusion, freezing the encoder in Stage 3 is a deliberate and necessary design choice to preserve the task-guided contrastive representations learned earlier. The RAA thus works in synergy with a stable encoder to effectively compensate for missing modalities and maintain robust segmentation performance. + +Hierarchical Compensation Mechanism. As shown in Tab. 5, single-level compensations each surpass the baseline. Cross-level combinations reveal nonlinear synergy. Notably, merely integrating input- and feature-level compensations outperforms existing methods in Tab. 1. The fully compensated model achieves $36.2\%$ average gain over baseline across categories, demonstrating consistent collaborative synergy among all three levels without mutual exclusion. To quantify modality representation gaps, Fig. 5 visualizes the average feature activation values across different encoding layers under various modality combinations. Fig. 5a displays the baseline visual distributions, where single-modality, dual-modality, and triple-modality combinations exhibit pronounced representation gaps compared to the full-modality setup. Fig. 5b shows results after stage 1 pre-training, where the compensation capability for single-modality inputs is significantly enhanced. Fig. 5c illustrates the results under the joint constraints of contrastive learning and segmentation tasks, where the representations of all the modalities are further aligned. In Fig. 5d, the reverse attention adapter in stage 3 effectively compensates for cumulative errors from modality reconstruction in stage 1 and spatial discrepancy differentiation in stage 2, using only a small number of parameters. + +# 5 Conclusion + +In this work, we propose a novel modality-relax segmentation framework based on a hierarchical self-supervised compensation strategy. Through multi-granularity data perturbation, segmentation task-guided feature distance constraints, and the design of a reverse attention adapter, we simultaneously integrate three different self-supervised techniques into the proposed UniMRSeg model and complete the representation compensation of the missing modality from the input level, feature level, and output level. UniMRSeg is simple yet effective, achieving dominant performance in four different multimodal image segmentation tasks. We hope that this research paradigm focusing on representation-level compensation can inspire more visual tasks that require modality-relax conditions in the future. + +Acknowledgements: This work was supported by the National Natural Science Foundation of China under Grant 62431004, and by Dalian Science and Technology Innovation Foundation under Grant 2023JJ12GX015. + +# References + +[1] R. K. Ando and T. Zhang. A framework for learning predictive structures from multiple tasks and unlabeled data. Journal of Machine Learning Research, 6(Nov):1817-1853, 2005. +[2] R. Bachmann, D. Mizrahi, A. Atanov, and A. Zamir. Multimae: Multi-modal multi-task masked autoencoders. In Proceedings of European Conference on Computer Vision, pages 348-367, 2022. +[3] L.-C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille. Deep convolution, fast convergence, and fully connected crfs. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40:834-848, 2017. +[4] T. Chen, S. Kornblith, M. Norouzi, and G. Hinton. A simple framework for contrastive learning of visual representations. In Proceedings of International Conference on Machine Learning, pages 1597-1607, 2020. +[5] T. Chen, L. Zhu, C. Deng, R. Cao, Y. Wang, S. Zhang, Z. Li, L. Sun, Y. Zang, and P. Mao. Sam-adapter: Adapting segment anything in underperformed scenes. In Proceedings of IEEE International Conference on Computer Vision, pages 3367-3375, 2023. +[6] X. Chen, H. Fan, R. Girshick, and K. He. Improved baselines with momentum contrastive learning. arXiv preprint arXiv:2003.04297, 2020. +[7] Y. X. Chng, H. Zheng, Y. Han, X. Qiu, and G. Huang. Mask grounding for referring image segmentation. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 26573-26583, 2024. +[8] Y. Choi, M. A. Al-Masni, K.-J. Jung, R.-E. Yoo, S.-Y. Lee, and D.-H. Kim. A single stage knowledge distillation network for brain tumor segmentation on limited mr image modalities. Computer Methods and Programs in Biomedicine, 240:107644, 2023. +[9] M. Cordts, M. Omran, S. Ramos, T. Rehfeld, M. Enzweiler, R. Benenson, U. Franke, S. Roth, and B. Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 3213-3223, 2016. +[10] Y. Ding, X. Yu, and Y. Yang. Rfnet: Region-aware fusion network for incomplete multi-modal brain tumor segmentation. In Proceedings of IEEE International Conference on Computer Vision, pages 3975-3984, 2021. +[11] R. Dorent, S. Joutard, M. Modat, S. Ourselin, and T. Vercauteren. Hetero-modal variational encoder-decoder for joint modality completion and segmentation. In Medical Image Computing and Computer Assisted Intervention-MICCAI 2019: 22nd International Conference, Shenzhen, China, October 13-17, 2019, Proceedings, Part II 22, pages 74-82. Springer, 2019. +[12] D.-P. Fan, M.-M. Cheng, Y. Liu, T. Li, and A. Borji. Structure-measure: A new way to evaluate foreground maps. In Proceedings of IEEE International Conference on Computer Vision, pages 4548-4557, 2017. +[13] S. Gupta, J. Hoffman, and J. Malik. Cross modal distillation for supervision transfer. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 2827-2836, 2016. +[14] A. Hatamizadeh, Y. Tang, V. Nath, D. Yang, A. Myronenko, B. Landman, H. R. Roth, and D. Xu. Unetr: Transformers for 3d medical image segmentation. In Proceedings of IEEE/CVF Winter Conference on Applications of Computer Vision, pages 574-584, 2022. +[15] M. Havaei, N. Guizard, N. Chapados, and Y. Bengio. Hemis: Hetero-modal image segmentation. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 469-477, 2016. + +[16] K. He, X. Chen, S. Xie, Y. Li, P. Dólár, and R. Girshick. Masked autoencoders are scalable vision learners. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 16000–16009, 2022. +[17] K. He, H. Fan, Y. Wu, S. Xie, and R. Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 9729-9738, 2020. +[18] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 770-778, 2016. +[19] G. Hinton, O. Vinyals, and J. Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. +[20] R. Ju, L. Ge, W. Geng, T. Ren, and G. Wu. Depth saliency based on anisotropic center-surround difference. In Proceedings of International Conference on Image Processing, pages 1115-1119, 2014. +[21] A. Kirillov, E. Mintun, N. Ravi, H. Mao, C. Rolland, L. Gustafson, T. Xiao, S. Whitehead, A. C. Berg, W.-Y. Lo, et al. Segment anything. In Proceedings of IEEE International Conference on Computer Vision, pages 4015-4026, 2023. +[22] A. J. Larrazabal, C. Martínez, J. Dolz, and E. Ferrante. Orthogonal ensemble networks for biomedical image segmentation. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 594-603, 2021. +[23] D. Li, B. Yang, W. Zhan, and X. He. Multi-category graph reasoning for multi-modal brain tumor segmentation. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 445-455, 2024. +[24] B. Lin, W. Jiang, P. Chen, Y. Zhang, S. Liu, and Y.-C. Chen. Mtmamba: Enhancing multi-task dense scene understanding by mamba-based decoders. In Proceedings of European Conference on Computer Vision, pages 314-330, 2024. +[25] H. Liu, D. Wei, D. Lu, J. Sun, L. Wang, and Y. Zheng. M3ae: Multimodal representation learning for brain tumor segmentation with missing modalities. In Proceedings of AAAI Conference on Artificial Intelligence, pages 1657-1665, 2023. +[26] W. Liu, X. Shen, C.-M. Pun, and X. Cun. Explicit visual prompting for low-level structure segmentations. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 19434-19445, 2023. +[27] Z. Liu, H. Mao, C.-Y. Wu, C. Feichtenhofer, T. Darrell, and S. Xie. A convnet for the 2020s. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 11976-11986, 2022. +[28] Z. Liu, J. Ning, Y. Cao, Y. Wei, Z. Zhang, S. Lin, and H. Hu. Video swim transformer. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 3202-3211, 2022. +[29] Z. Liu, J. Ning, Y. Cao, Y. Wei, Z. Zhang, S. Lin, and H. Hu. Video swim transformer. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 3192-3201, 2022. +[30] Z. Liu, J. Wei, R. Li, and J. Zhou. Sfusion: Self-attention based n-to-one multimodal fusion block. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 159–169, 2023. +[31] I. Loshchilov and F. Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. +[32] B. H. Menze, A. Jakab, S. Bauer, J. Kalpathy-Cramer, K. Farahani, J. Kirby, Y. Burren, N. Porz, J. Slotboom, R. Wiest, et al. The multimodal brain tumor image segmentation benchmark (brats). 34(10):1993-2024, 2014. + +[33] M. Mistretta, A. Baldrati, L. Agnolucci, M. Bertini, and A. D. Bagdanov. Cross the gap: Exposing the intra-modal misalignment in clip via modality inversion. In Proceedings of International Conference on Learning Representations, 2025. +[34] Y. Niu, Y. Geng, X. Li, and F. Liu. Leveraging stereopsis for saliency analysis. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 454-461, 2012. +[35] Y. Pang, L. Zhang, X. Zhao, and H. Lu. Hierarchical dynamic filtering network for rgb-d salient object detection. In Proceedings of European Conference on Computer Vision, pages 235-252, 2020. +[36] Y. Pang, X. Zhao, T.-Z. Xiang, L. Zhang, and H. Lu. Zoom in and out: A mixed-scale triplet network for camouflaged object detection. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 2160-2170, 2022. +[37] Y. Pang, X. Zhao, T.-Z. Xiang, L. Zhang, and H. Lu. Zoomnext: A unified collaborative pyramid network for camouflaged object detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024. +[38] Y. Pang, X. Zhao, L. Zhang, and H. Lu. Multi-scale interactive network for salient object detection. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 9413-9422, 2020. +[39] Y. Pang, X. Zhao, L. Zhang, and H. Lu. Caver: Cross-modal view-mixed transformer for bi-modal salient object detection. IEEE Transactions on Image Processing, 32:892-904, 2023. +[40] Y. Pang, X. Zhao, L. Zhang, and H. Lu. Comptr: Towards diverse bi-source dense prediction tasks via a simple yet general complementary transformer. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025. +[41] Y. Pang, X. Zhao, J. Zuo, L. Zhang, and H. Lu. Open-vocabulary camouflaged object segmentation. In Proceedings of European Conference on Computer Vision, 2024. +[42] D. Pathak, P. Krahenbuhl, J. Donahue, T. Darrell, and A. A. Efros. Context encoders: Feature learning by inpainting. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 2536-2544, 2016. +[43] H. Peng, B. Li, W. Xiong, W. Hu, and R. Ji. RGBD salient object detection: A benchmark and algorithms. In Proceedings of European Conference on Computer Vision, pages 92-109, 2014. +[44] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, et al. Learning transferable visual models from natural language supervision. In Proceedings of International Conference on Machine Learning, pages 8748-8763, 2021. +[45] O. Ronneberger, P. Fischer, and T. Brox. U-net: Convolutional networks for biomedical image segmentation. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 234-241, 2015. +[46] D. She, Y. Zhang, Z. Zhang, H. Li, Z. Yan, and X. Sun. Eoformer: Edge-oriented transformer for brain tumor segmentation. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 333-343, 2023. +[47] H. Shi, S. Ren, T. Zhang, and S. J. Pan. Deep multitask learning with progressive parameter sharing. In Proceedings of IEEE International Conference on Computer Vision, pages 19924-19935, 2023. +[48] J. Shi, C. Shang, Z. Sun, L. Yu, X. Yang, and Z. Yan. Passion: Towards effective incomplete multi-modal medical image segmentation with imbalanced missing rates. In Proceedings of ACM International Conference on Multimedia, pages 456-465, 2024. +[49] C. Shu, Y. Liu, J. Gao, Z. Yan, and C. Shen. Channel-wise knowledge distillation for dense prediction. In Proceedings of IEEE International Conference on Computer Vision, pages 5311-5320, 2021. + +[50] S. Song, S. P. Lichtenberg, and J. Xiao. Sun rgb-d: A rgb-d scene understanding benchmark suite. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 567-576, 2015. +[51] H. Tang, Z. Li, D. Zhang, S. He, and J. Tang. Divide-and-conquer: Confluent triple-flow network for rgb-t salient object detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024. +[52] Y. Tang, D. Yang, W. Li, H. R. Roth, B. Landman, D. Xu, V. Nath, and A. Hatamizadeh. Self-supervised pre-training of swin transformers for 3d medical image analysis. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 20730-20740, 2022. +[53] Z. Tu, Y. Ma, Z. Li, C. Li, J. Xu, and Y. Liu. Rgbt salient object detection: A large-scale dataset and benchmark. IEEE Transactions on Multimedia, 25:4163-4176, 2022. +[54] Z. Tu, T. Xia, C. Li, X. Wang, Y. Ma, and J. Tang. Rgb-t image saliency detection via collaborative graph learning. IEEE Transactions on Multimedia, 22(1):160-173, 2019. +[55] H. Wang, Y. Chen, C. Ma, J. Avery, L. Hull, and G. Carneiro. Multi-modal learning with missing modality via shared-specific feature modelling. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 15878-15887, 2023. +[56] X. Wang, X. Zhang, Y. Cao, W. Wang, C. Shen, and T. Huang. Seggpt: Segmenting everything in context. arXiv preprint arXiv:2304.03284, 2023. +[57] Y. Wang, P. Cao, Q. Hou, L. Lan, J. Yang, X. Liu, and O. R. Zaiane. Progressively correcting soft labels via teacher team for knowledge distillation in medical image segmentation. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 521-530, 2024. +[58] Y. Wang, X. Chen, L. Cao, W. Huang, F. Sun, and Y. Wang. Multimodal token fusion for vision transformers. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 12186-12195, 2022. +[59] Z. Wang, E. P. Simoncelli, and A. C. Bovik. Multiscale structural similarity for image quality assessment. In Asilomar Conference on Signals, Systems & Computers, volume 2, pages 1398-1402, 2003. +[60] C. Wei, H. Fan, S. Xie, C.-Y. Wu, A. Yuille, and C. Feichtenhofer. Masked feature prediction for self-supervised visual pre-training. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 14668-14678, 2022. +[61] J. Wu, W. Ji, Y. Liu, H. Fu, M. Xu, Y. Xu, and Y. Jin. Medical sam adapter: Adapting segment anything model for medical image segmentation. arXiv preprint arXiv:2304.12620, 2023. +[62] Z. Wu, D. P. Paudel, D.-P. Fan, J. Wang, S. Wang, C. Demonceaux, R. Timofte, and L. Van Gool. Source-free depth for object pop-out. In Proceedings of IEEE International Conference on Computer Vision, pages 1032-1042, 2023. +[63] Z. Xing, L. Yu, L. Wan, T. Han, and L. Zhu. Nestedformer: Nested modality-aware transformer for brain tumor segmentation. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 140-150, 2022. +[64] Y. Xu, Y. Bin, J. Wei, Y. Yang, G. Wang, and H. T. Shen. Multi-modal transformer with global-local alignment for composed query image retrieval. 25:8346-8357, 2023. +[65] Y. Yang, P.-T. Jiang, Q. Hou, H. Zhang, J. Chen, and B. Li. Multi-task dense prediction via mixture of low-rank experts. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 27927-27937, 2024. +[66] B. Yin, X. Zhang, Z. Li, L. Liu, M.-M. Cheng, and Q. Hou. Dformer: Rethinking rgbd representation learning for semantic segmentation. In Proceedings of International Conference on Learning Representations, 2024. + +[67] C. Yin and Q. Zhang. A multi-modal framework for robots to learn manipulation tasks from human demonstrations. Journal of Intelligent & Robotic Systems, 107(4):56, 2023. +[68] Q. Yu, X. Zhao, Y. Pang, L. Zhang, and H. Lu. Multi-view aggregation network for dichotomous image segmentation. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 3921-3930, 2024. +[69] Z. Zeng, Z. Peng, X. Yang, and W. Shen. Missing as masking: Arbitrary cross-modal feature reconstruction for incomplete multimodal brain tumor segmentation. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 424-433, 2024. +[70] X. Zhan, X. Pan, B. Dai, Z. Liu, D. Lin, and C. C. Loy. Self-supervised scene de-occlusion. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 3784–3792, 2020. +[71] J. Zhang, H. Liu, K. Yang, X. Hu, R. Liu, and R. Stiefelhagen. Cmx: Cross-modal fusion for rgb-x semantic segmentation with transformers. IEEE Transactions on Intelligent Transportation Systems, 24(12):14679-14694, 2023. +[72] J. Zhang, R. Liu, H. Shi, K. Yang, S. Reiß, K. Peng, H. Fu, K. Wang, and R. Stiefelhagen. Delivering arbitrary-modal semantic segmentation. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 1136-1147, 2023. +[73] J. Zhang, R. Liu, H. Shi, K. Yang, S. Reiβ, K. Peng, H. Fu, K. Wang, and R. Stiefelhagen. Delivering arbitrary-modal semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1136–1147, 2023. +[74] Y. Zhang, N. He, J. Yang, Y. Li, D. Wei, Y. Huang, Y. Zhang, Z. He, and Y. Zheng. mmformer: Multimodal medical transformer for incomplete multimodal learning of brain tumor segmentation. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 107-117, 2022. +[75] X. Zhao, S. Chang, Y. Pang, J. Yang, L. Zhang, and H. Lu. Adaptive multi-source predictor for zero-shot video object segmentation. International Journal of Computer Vision, pages 1-19, 2024. +[76] X. Zhao, Y. Pang, Z. Chen, Q. Yu, L. Zhang, H. Liu, J. Zuo, and H. Lu. Towards automatic power battery detection: New challenge benchmark dataset and baseline. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 22020-22029, 2024. +[77] X. Zhao, Y. Pang, W. Ji, B. Sheng, J. Zuo, L. Zhang, and H. Lu. Spider: A unified framework for context-dependent concept understanding. In Proceedings of International Conference on Machine Learning, pages 60906-60926, 2024. +[78] X. Zhao, Y. Pang, J. Yang, L. Zhang, and H. Lu. Multi-source fusion and automatic predictor selection for zero-shot video object segmentation. In Proceedings of ACM International Conference on Multimedia, pages 2645-2653, 2021. +[79] X. Zhao, Y. Pang, L. Zhang, and H. Lu. Joint learning of salient object detection, depth estimation and contour extraction. IEEE Transactions on Image Processing, 31:7350-7362, 2022. +[80] X. Zhao, Y. Pang, L. Zhang, H. Lu, and X. Ruan. Self-supervised pretraining for rgb-d salient object detection. In Proceedings of AAAI Conference on Artificial Intelligence, pages 3463-3471, 2022. +[81] X. Zhao, Y. Pang, L. Zhang, H. Lu, and L. Zhang. Suppress and balance: A simple gated network for salient object detection. In Proceedings of European Conference on Computer Vision, pages 35-51, 2020. +[82] X. Zhao, Y. Pang, L. Zhang, H. Lu, and L. Zhang. Towards diverse binary segmentation via a simple yet general gated network. International Journal of Computer Vision, 132(10):4157-4234, 2024. + +[83] X. Zhao, L. Zhang, and H. Lu. Automatic polyp segmentation via multi-scale subtraction network. In Proceedings of International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 120-130, 2021. +[84] X. Zhao, L. Zhang, Y. Pang, H. Lu, and L. Zhang. A single stream network for robust and real-time rgb-d salient object detection. In Proceedings of European Conference on Computer Vision, pages 646-662, 2020. +[85] Z. Zhao, J. Li, L. Wang, Y. Wang, and H. Lu. Maskmentor: Unlocking the potential of masked self-teaching for missing modality rgb-d semantic segmentation. In Proceedings of ACM International Conference on Multimedia, pages 1915–1923, 2024. +[86] W. Zhou, Y. Zhu, J. Lei, R. Yang, and L. Yu. Lsnet: Lightweight spatial boosting network for detecting salient objects in rgb-thermal images. IEEE Transactions on Image Processing, 32:1329-1340, 2023. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The paper's contributions and scope are detailed in the abstract and introduction. Section 1. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We include the limitations of our work in Appendix E. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: This is not a theoretical paper. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in Appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: We have included the implementation details in Sec. 4.2. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [No] + +Justification: The code will be released to facilitate further research. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: We have included the implementation details and the hyperparameters in Sec. 4.2. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [Yes] + +Justification: We report average and standard deviation values in our main experiments. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). + +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We report the computing cost in Appendix C. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We have read and understood the code of ethics and have done our best to conform. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [NA] + +Justification: This work does not present any potential negative societal impacts. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: The paper poses no such risks. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We cite the original paper that produced the code package or dataset. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. + +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: The paper does not release new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [NA] + +Justification: This work does not incorporate any large language models as part of the core methods, any LLMs used were only for manuscript editing and formatting. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +Table 6: Quantitative comparison of brain tumor segmentation on BraTS2020. $\uparrow$ and $\downarrow$ indicate that higher and lower scores are better, respectively. Note: The reported results of RFNet [10] and mmFormer [74] are taken from the PASSION paper [48], where they are evaluated using the same training and test splits of BraTS2020. + +
ModalityDice score(%)
Whole Tumor (Whole)Tumor Core (Core)Enhancing Tumor (Enhancing)
Flair T1 T1ce T2RFNet mmFormer PASSION-RFNet UniMRSeg [10][74][48]RFNet mmFormer PASSION-RFNet UniMRSeg [10][74][48]RFNet mmFormer PASSION-RFNet UniMRSeg [10][74][48]RFNet mmFormer PASSION-RFNet UniMRSeg [10]
○○○●82.2583.3381.3584.5466.7763.7453.6968.9440.0838.20
○○●○69.2769.8775.0280.4977.2476.4077.2578.3365.8167.25
○●○○68.5369.6072.2079.7259.5356.0057.2063.3231.9928.66
●○○○82.2883.3483.9584.4564.3061.7458.6066.6936.6733.76
○○●●83.9485.4782.6085.6681.9081.3678.1682.4369.1869.83
○●●○74.0774.7476.4581.4681.4580.5079.8382.0668.5670.70
●●○○85.5186.6086.7886.2770.2867.0765.5772.0041.1938.51
○●○●84.9085.8182.3085.9770.3966.6161.7072.0943.6141.02
●○○●86.4287.7386.8586.7670.7068.6661.5472.3443.6242.17
○●○●○85.1887.3985.5786.5480.1679.6778.3881.9168.3868.11
●●○○86.6187.9987.4688.8181.6780.7179.5482.4169.4770.86
●●○●87.6388.6087.9189.8772.8369.8966.5080.6945.2143.22
○●○●●87.3688.8487.4589.4681.9781.2578.8883.6868.7669.91
○●●●●85.4086.4083.0489.0483.2882.2380.0084.6471.0470.82
●●●●88.3089.2788.2090.4582.8081.9080.7985.2669.6470.62
Average ↑82.5183.6783.1585.9775.0273.1870.5177.1255.5554.91
Std Dev ↓6.276.454.863.267.458.489.666.9514.5616.24
+ +Table 7: Quantitative comparison of brain tumor segmentation on BraTS2018. $\uparrow$ and $\downarrow$ indicate that higher and lower scores are better, respectively. Note: The reported results of mmFormer [74], M3AE [25] and M3FeCon [69] are taken from the M3FeCon [69], where they are evaluated using the same training and test splits of BraTS2018. + +
ModalityDice score(%)
Whole Tumor (Whole)Tumor Core (Core)Enhancing Tumor (Enhancing)
Flair T1 T1ce T2mmFormer M3AEM3FeConUniMRSegmmFormer M3AEM3FeConUniMRSegmmFormer M3AEM3FeConUniMRSeg
[74][25][69][74][25][69][74][25][69]
○○○●81.4384.2285.1387.1064.6169.1472.4876.4541.9246.9349.3254.20
○○●72.6275.1675.2682.2275.9382.5382.3182.2571.3773.0475.8875.46
○●○67.9273.8375.2482.2956.9665.7765.7269.7031.3836.5444.3549.20
●○○86.3788.0489.0589.8561.6166.0269.4273.5237.9834.9646.5951.35
○○●83.2585.5886.6188.5779.0783.8584.7584.8573.1374.3976.5576.75
○●○74.7576.5079.1683.2579.0183.1182.8883.9772.7774.5876.7878.41
●●○87.4688.4990.1791.4566.4770.5372.8276.7241.7548.1648.4753.20
○●○●82.4686.3486.0388.1569.8971.4672.0177.4343.8544.7350.1755.12
●○○●87.9989.3190.4691.7870.1870.5972.8176.9546.4740.5751.1256.09
●○●○87.6188.8590.3591.9878.3484.0384.1485.2073.9374.0876.2378.43
●●○●87.7788.0789.6289.9980.2283.7284.8185.4174.3173.4276.7478.72
●●○●88.0889.2490.2491.8971.9772.4175.9880.2646.5144.1552.6360.12
●○●●88.4789.4690.0792.0179.9484.2584.6485.4774.5374.6877.6479.02
○●●●83.0885.0686.7990.4880.8984.1384.3985.4973.4973.3777.3379.36
●●●●89.9389.5690.6992.4586.2384.2485.0386.4476.3674.8577.8179.87
Average ↑83.2885.1886.3288.9073.4277.0578.2880.6758.6559.2363.8467.02
Std Dev ↓6.375.295.253.508.027.346.605.0516.5116.1714.0512.25
+ +# Appendix + +# A Performance Comparison on BraTS2020 and BraTS2018 + +To enable fair comparisons with a broader range of methods, we adopt the same data split settings as used in the PASSION paper [48] for BraTS2020, where the dataset is divided into 219 cases for training, 50 for validation, and 100 for testing. For BraTS2018, we follow the data split protocol from M3FeCon [69], using 200 cases for training and 85 for testing. As shown in Tab. 6 and Tab. 7, our method consistently achieves the best average performance and lowest standard deviation. + +# B Necessity of the Three-Stage Training Strategy + +The proposed three-stage training pipeline, comprising Multi-granular Modality Reconstruction, Modality-Invariant Contrastive Learning, and Incomplete Modality Adaptive Fine-tuning, is designed to address the unique challenges of missing modality segmentation, which cannot be effectively tackled using standard end-to-end training. + +Unlike single-modality RGB image tasks that benefit from large-scale pre-trained models, many other modalities such as depth, infrared, and medical imaging still lack general-purpose pre-trained encoders. As a result, most models initialized randomly suffer from suboptimal feature representations and unstable performance. Moreover, simple end-to-end optimization struggles to bridge the representation gap between complete and incomplete modality inputs, leading to poor generalization to unseen modality combinations. + +To this end, each stage in our training strategy plays a complementary role in strengthening the model's robustness and adaptability: + +- Stage 1 (Modality Reconstruction): Enables the model to learn cross-modality structural priors and recover semantically meaningful representations from incomplete inputs. +- Stage 2 (Contrastive Learning): Encourages the network to align features between complete and missing modality inputs, enhancing modality-invariant representations. +- Stage 3 (Unified Fine-tuning): Refines prediction consistency across different modality combinations and ensures deployment under a unified model. +- Each stage serves a distinct and complementary role (input-level structure recovery, feature-level modality alignment, and output-level consistency). Extensive ablation studies (Sec. 4.4) validate that each stage contributes distinct improvements in average accuracy. Without any of the stages, performance consistently degrade. + +# C Discussion on Training Complexity and Efficiency + +Although UniMRSeg adopts a three-stage training strategy, it is deliberately designed for efficiency and simplicity. We analyze the training complexity from two perspectives: concise design and inference simplicity. + +**Concise Design:** All three stages in UniMRSeg share a unified 3D U-Net-style encoder-decoder backbone, integrated with a lightweight 3D ASPP module. No additional complex or stacked modules are introduced. This ensures both architectural clarity and training efficiency. Stage 1 utilizes a masked autoencoding-based reconstruction head. This head operates on top of the shared encoder and does not require extra encoder-decoder branches, keeping the design compact. Stage 2 applies a contrastive loss to already-computed latent features, without introducing new network components. Stage 3 focuses on refining segmentation via a lightweight reverse attention adapter and decoder. The encoder is frozen, making this phase computationally efficient and requiring minimal fine-tuning. + +# Single-Stage Inference with Unified Weights: + +Despite the multi-stage training, inference remains a single-stage process. The final model trained at stage 3 merges all learned representations into a unified network with shared parameters across all modality combinations. Unlike other methods that require ensemble inference [25, 8] or modality-specific branches [69, 74], UniMRSeg performs fast, unified + +Table 8: Efficiency comparison. + +
MetricsRFNet [10] mmFormer [74] M3AE [25] UniMRSeg
Parameters (MB)↓3410616787
FLOPs (G)↓148748248202
+ +inference without requiring modality recognition or dynamic model selection. As shown in Tab. 8, UniMRSeg achieves comparable computational efficiency to state-of-the-art methods. + +# D Modality-Agnostic Robustness via Random Modality Shuffle + +Previous multi-modal segmentation methods [69, 74, 10, 25] often rely on a fixed modality-to-channel correspondence, where each input modality (e.g., T1, T2, T1ce, Flari) is assigned to a specific encoder or channel during both training and inference. This design imposes a strong prior assumption: the modality type of each input channel must be known in advance and must strictly align with the model's expected input structure during inference. However, such assumptions significantly limit the scalability and automation of AI-driven medical image analysis pipelines, especially in real-world applications where modality labels may be missing, inconsistent, or ambiguous. + +To alleviate this constraint, we introduce a random modality shuffle strategy in stage 1, where the input modalities are randomly permuted at each training iteration. This forces the model to learn modality-invariant representations and reduces its reliance on fixed input orders. + +As shown in Tab. 9, even after randomly shuffling the modality-channel order five times during inference, the segmentation performance remains stable with minimal variation. These results demonstrate that the random shuffle not only improves performance (see Tab. 3) but also enhances practical robustness and scalability. This aligns with the broader goal of building fully automated and generalizable medical AI systems. + +Table 9: Ablation study on the impact of different modality-channel orders during inference. Flair-T1-T1ce-T2 denotes the best-performing fixed input order, while 5-Ave represents the average result of five inference runs using random modality shuffle. + +
ModelsAverage Dice score(%)
WholeCoreEnhancing
Flair-T1-T1ce-T280.6473.3363.10
5-Ave80.5473.2763.05
+ +# E Limitations and Future Work + +While the three-stage training strategy significantly improves model generalizability and segmentation accuracy under missing modalities, it inevitably increases the training pipeline complexity. This additional training overhead may pose challenges for practitioners in time-constrained or resource-limited environments. We acknowledge this trade-off and consider streamlining or accelerating the training process as a critical future direction. Several promising avenues to achieve this include: I) Curriculum-based Optimization. Introducing a curriculum learning schedule that gradually transitions from reconstruction to segmentation may allow for progressive learning in a single stage. II) Modality-aware Parameter Sharing. Parameter-efficient fine-tuning (e.g., adapters or LoRA) across stages may allow most model weights to be reused, reducing memory and time overhead. III) Cross-task Shared Training Objectives. Reformulating the three tasks under a shared objective (e.g., information bottleneck or consistency maximization) may unify their gradients and reduce stage-specific training routines. These directions hold the potential to preserve the benefits of multi-stage training while simplifying the optimization process, making the proposed method more accessible to broader applications in multi-modal image analysis. \ No newline at end of file diff --git a/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/images.zip b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..62cd68dcb00a52fce223133b4ba0ffd9699152be --- /dev/null +++ b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea6bc8ea2fe1afdddddba11f3fcdd9ccc4fd071aae81344ffaf75a164ced3761 +size 898144 diff --git a/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/layout.json b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..32bb6d9900e496493c2123a59c126e6239a9d720 --- /dev/null +++ b/NeurIPS/2025/UniMRSeg_ Unified Modality-Relax Segmentation via Hierarchical Self-Supervised Compensation/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:deedb1bbef03a8a94a478fa634ff15d3de0aff8973b0ae7852fae97c3c28d697 +size 720914 diff --git a/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/f53a30b2-ddbe-45d3-aa62-e1a007faffb5_content_list.json b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/f53a30b2-ddbe-45d3-aa62-e1a007faffb5_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..507e5e36cab23454f3fe0adcd5a7a351fbb9819d --- /dev/null +++ b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/f53a30b2-ddbe-45d3-aa62-e1a007faffb5_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ede9ffd63c4be24a7c8201cf13e10948c7937e4719b01b444dae410ece55184e +size 127782 diff --git a/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/f53a30b2-ddbe-45d3-aa62-e1a007faffb5_model.json b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/f53a30b2-ddbe-45d3-aa62-e1a007faffb5_model.json new file mode 100644 index 0000000000000000000000000000000000000000..c06df2bc5aac92fb89652b631cf427bb3c823127 --- /dev/null +++ b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/f53a30b2-ddbe-45d3-aa62-e1a007faffb5_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b64ba369a2cb7798ca2f2de7bdabc38c8ccdf681c7b79a6ed90182595405cc76 +size 166293 diff --git a/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/f53a30b2-ddbe-45d3-aa62-e1a007faffb5_origin.pdf b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/f53a30b2-ddbe-45d3-aa62-e1a007faffb5_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..28d7537aae64515ac8d2624d8a5f5eec32373c2b --- /dev/null +++ b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/f53a30b2-ddbe-45d3-aa62-e1a007faffb5_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36972b529b8d204643d69befafdcce64024a1f03e69ef231b42d3a5a5a001b8c +size 4399052 diff --git a/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/full.md b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/full.md new file mode 100644 index 0000000000000000000000000000000000000000..a1d91ecf4965ccd6fb24eef1ad28699a7ccc55ef --- /dev/null +++ b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/full.md @@ -0,0 +1,630 @@ +# UniMotion: A Unified Motion Framework for Simulation, Prediction and Planning + +Nan Song1 Junzhe Jiang1 Jingyu Li1,2 Xiatian Zhu3 Li Zhang1,2* + +$^{1}$ School of Data Science, Fudan University + +$^{2}$ Shanghai Innovation Institute $^{3}$ University of Surrey + +https://github.com/LogosRoboticsGroup/UniMotion + +# Abstract + +Motion simulation, prediction and planning are foundational tasks in autonomous driving, each essential for modeling and reasoning about dynamic traffic scenarios. While often addressed in isolation due to their differing objectives, such as generating diverse motion states or estimating optimal trajectories, these tasks inherently depend on shared capabilities: understanding multi-agent interactions, modeling motion behaviors, and reasoning over temporal and spatial dynamics. Despite this underlying commonality, existing approaches typically adopt specialized model designs, which hinders cross-task generalization and system scalability. More critically, this separation overlooks the potential mutual benefits among tasks. Motivated by these observations, we propose UniMotion, a unified motion framework that captures shared structures across motion tasks while accommodating their individual requirements. Built on a decoder-only Transformer architecture, UniMotion employs dedicated interaction modes and tailored training strategies to simultaneously support these motion tasks. This unified design not only enables joint optimization and representation sharing but also allows for targeted fine-tuning to specialize in individual tasks when needed. Extensive experiments on the Waymo Open Motion Dataset demonstrate that joint training leads to robust generalization and effective task integration. With further fine-tuning, UniMotion achieves state-of-the-art performance across a range of motion tasks, establishing it as a versatile and scalable solution for autonomous driving. + +# 1 Introduction + +Motion understanding is a cornerstone of autonomous driving, supporting essential capabilities such as interactive behavior modeling, motion analysis, and decision-making for the ego vehicle. Core motion tasks include motion simulation, trajectory prediction, and ego planning. Among them, trajectory prediction [1, 2, 3] and ego planning [4] are critical intermediaries between perception modules and control systems in the driving pipeline, while motion simulation [5] generates rich and diverse agent behaviors, serving both development and evaluation for motion models. The complexity of real-world driving, characterized by uncertain behaviors and densely interactive environments, makes these tasks challenging. + +Accordingly, recent research has produced a wide range of task-specific models to optimize performance for its designated objective. Trajectory prediction and planning models have primarily focused on comprehensive representation learning [6, 7, 8, 9], along with a growing emphasis on precise waypoint estimation [10, 11, 12, 13]. In contrast, motion simulation has leaned heavily on + +![](images/31017e98cc176fddb756143f7d12c38469053ae9e2f6b0438c2b6d7e03e63af4.jpg) +Figure 1: Overview of our UniMotion pipeline. (a) We train jointly our model with combined generative and forecasting supervision, resulting in a multi-task model that can simultaneously address all kinds of motion tasks in autonomous driving. (b) We further adopt dedicated fine-tuning strategies for each task, producing task-specific models to promote specialization. + +![](images/b73e4585398c1992dc228ae5c732f6eb71911509a5a4175c96d148d5a1ecab26.jpg) + +generative modeling. Inspired by the success of Large Language Models (LLMs), recent GPT-style architectures [14, 15] have been applied to simulate agent behaviors. Furthermore, this paradigm has also been introduced into prediction [16, 17] and planning [13] tasks to achieve progressive and more accurate regression. + +While these task-customized models have proven effective for different motion tasks, it is challenging to transfer models and learned knowledge across tasks. Considering that these tasks are essentially similar due to their reliance on interaction modeling and motion reasoning, our goal is to build a general model that encourages knowledge sharing among motion tasks and enables cross-task generalization. To achieve this aim, we revisit the formulation of motion tasks and propose a unified motion framework for autonomous driving. We begin by abstracting existing motion tasks into two fundamental categories: diverse motion generation and long-range trajectory forecasting, which serve as a conceptual foundation for unification. From this, we develop UniMotion, a unified framework based on a decoder-only Transformer, chosen for its simplicity, scalability, and strong generative capacity across tasks. By incorporating task-aware interaction modes and training strategies (see Figure 1(a)), UniMotion enables joint training across simulation, prediction and planning, fostering shared representations and efficient multi-task learning. To further enhance task proficiency, we also introduce dedicated fine-tuning strategies (see Figure 1(b)) that adapt the unified model to specific objectives, improving performance and practical deployment. + +Our contributions are summarized as follows: (i) We abstract motion tasks into two core categories and propose UniMotion, a unified Transformer-based framework that jointly models simulation, prediction and planning to promote generality and cross-task knowledge sharing. (ii) We design effective fine-tuning strategies that specialize the jointly trained model for individual tasks, allowing the model to master task-specific expertise. (iii) Extensive experiments on the Waymo Open Motion Dataset (WOMD) show that UniMotion achieves competitive performance under joint training and sets new state-of-the-art results when fine-tuned for specific tasks. + +# 2 Related work + +# 2.1 Motion tasks in autonomous driving + +Existing motion tasks in autonomous driving can be roughly categorized into three types according to their objectives: motion simulation, trajectory prediction, and ego planning. We provide a detailed discussion for each type in the following. + +Motion simulation focuses on simulating diverse and complex motion patterns, augmenting training samples and offering off-board assessment for autonomous driving algorithms. To effectively measure simulation quality, Sim Agents [5] first proposes a benchmark with comprehensive metrics, expecting models to progressively evolve the motion states of all traffic agents. Motivated by the performance of LLMs, existing methods [14, 15] tokenize the agent trajectories and map elements, and employ a scalable decoder-only model to perform auto-regressive trajectory generation. Besides, CATK [18] utilizes closed-loop supervised finetuning with Closest Among Top-K rollouts, which mitigates covariate shift in open-loop behavior cloning and further improves these GPT-style methods. In contrast, UniMM [19] introduces a unified mixture model with both continuous mixture models and discrete GPT-style models to address simulation. + +Trajectory prediction anticipates models to rapidly estimate the future trajectories of traffic participants, providing prior knowledge for subsequent decision-making. As a foundation task in autonomous driving, trajectory prediction has been widely explored [6, 7, 8, 11] with Transformer frameworks. Recent methods [20, 21, 22] uncover detailed temporal information and achieve more accurate prediction. Moreover, there are methods utilizing particular strategies for impressive performance improvements, such as model pre-training [23, 24] and trajectory post-refinement [10, 12]. + +Ego planning is responsible for giving final driving trajectories for ego vehicle according to the driving environment and upstream results. Although rule-based models [25, 26] still hold a crucial position, learning-based methods have emerged and exceeded. PlanTF [27] and PLUTO [28] effectively alleviate the limit of imitation-based planners through designed model architecture and training strategies. Besides, BeTopNet [9] further improves planning performance by explicitly representing behavioral topology among multi-agent future states. + +# 2.2 GPT-style motion models + +GPT-style LLMs have demonstrated strong capabilities in language tasks, which stimulates the emergence of similar architectures in autonomous driving [29, 30]. Given that both trajectories and text share a sequential structure, it is natural to introduce analogous modules and designs into motion models. In particular, the aforementioned simulation methods directly utilize decoder-only models with next-token prediction for simulation tasks, generating diverse multi-agent trajectory sets. There are also some prediction and planning methods adopting modified auto-regressive decoding. For example, MotionLM [17] and Trajeglish [16] introduce a causal decoder for iterative trajectory prediction, and similarly, CarPlanner [13] adopts consistent auto-regressive planning with reinforcement learning. In contrast, we unify all motion tasks under a GPT-style model, fully exploiting the capability of this framework. + +# 3 Methodology + +# 3.1 Preliminary + +Task definition. Motion understanding in autonomous driving focuses on three tasks: simulation, prediction and planning. All these tasks share the same traffic scenario input, including historical agent states $\mathcal{A}_h$ and a high-definition (HD) map $\mathcal{M}$ of driving scenes. Motion simulation is typically designed to support other motion tasks. Given $\mathcal{A}_h$ as initial motion states, it aims to iteratively and concurrently simulate multi-agent states $\{\mathcal{A}_s^i\}_{i=1}^K$ , where $K$ represents the number of generated rollouts. Simulation aims to exhibit high short-term generation diversity. In contrast, trajectory prediction provides distant future trajectories $\mathcal{A}_f$ of traffic agents over a span of time $T_f$ . In real-world scenarios, we expect the predictors to generate the results directly and efficiently, rather than relying on segment-by-segment auto-regressive generation [16, 17]. Accordingly, this task evaluates the ability of models to perform accurate long-range predictions. Ego planning aims to determine feasible trajectories for the ego vehicle by referencing surrounding agents. It can be viewed as first predicting the behaviors of other traffic participants, followed by the progressive generation of the ego vehicle's trajectory. In light of the above observations, we summarize motion tasks into two fundamental components: diverse motion generation and long-range trajectory forecasting. As motivated earlier, we strive to integrate these tasks into a unified framework and jointly develop both capabilities in a single model, thereby enhancing overall motion understanding and fostering mutual complementarity between tasks. + +Input representation. To ensure the generalization of representations across tasks, we standardize the input format via tokenization following [14, 15]. Concretely, the trajectories of all agents are segmented at fixed time intervals and normalized to form a trajectory set, which is then clustered to construct the agent token vocabulary $S_{a}$ . Similarly, map tokens $S_{m}$ are generated by dividing original map polylines into fixed-length segments followed by clustering. The corresponding agent token embeddings $E_{sa} \in \mathbb{R}^{K_a \times C}$ and map token embeddings $E_{sm} \in \mathbb{R}^{K_m \times C}$ obtained by applying MLP modules to $S_{a}$ and $S_{m}$ , respectively, where $K_{(\cdot)}$ and $C$ are the number of tokens and the dim of feature embeddings. Subsequently, the agent states $\mathcal{A}$ and a HD map $\mathcal{M}$ are tokenized based on geometric similarity of segments, forming the input agent embeddings $E_{a} \in \mathbb{R}^{N_{a} \times T \times C}$ and map + +![](images/af350afd9c1d30e9a56b86f8a8f97da463017c313d6dbc16fc7ec27b41532b0b.jpg) +Figure 2: Overview of UniMotion architecture. It takes as input tokenized agent trajectories and map polylines, and adopts a decoder-only structure equipped with an additional map encoder to yield motion states. By employing task-specific attention masks and training objectives, UniMotion is empowered to flexibly and effectively address multiple motion tasks simultaneously. + +embeddings $E_{m} \in \mathbb{R}^{N_{m} \times C}$ , where $N_{a}$ and $N_{m}$ denote the number of agents and map segments, and $T$ denotes the time frames. + +# 3.2 UniMotion for multiple motion tasks + +As depicted in Figure 2, the overall design of our UniMotion follows a decoder-only architecture for agent trajectory generation and prediction, with an additional map context encoder. For each specific motion task, we introduce dedicated interactive patterns and training objectives for specialization, but enable weight sharing to learn general representations. + +# 3.2.1 Scene context encoding and motion decoding + +To ensure the robustness and generalizability of the model, we employ the Transformer architecture with relative positional embedding following [8, 14, 15], which remains invariant under coordinate transformations. Specifically, we first stack several self-attention modules to encode map embeddings, yielding map features $F_{m}$ . Then, agent embeddings $E_{a}$ , along with $F_{m}$ , are further delivered to a agent Transformer decoder constructed with factorized attentions, which are composed of temporal self-attention, agent-map cross-attention and agent-agent self-attention. This can be formulated as: + +$$ +F _ {a} = \mathrm {M H S A} _ {t} (\mathrm {Q} = F _ {a}, \mathrm {K} = \mathrm {V} = F _ {a} + \mathcal {R} _ {t} (P _ {a})), +$$ + +$$ +F _ {a} = \mathrm {M H C A} _ {a - m} (\mathrm {Q} = F _ {a}, \mathrm {K} = \mathrm {V} = F _ {m} + \mathcal {R} _ {a - m} \left(P _ {a}, P _ {m}\right)), \tag {1} +$$ + +$$ +F _ {a} = \mathrm {M H S A} _ {a - a} (\mathrm {Q} = F _ {a}, \mathrm {K} = \mathrm {V} = F _ {a} + \mathcal {R} _ {a - a} (P _ {a})), +$$ + +where $\mathcal{R}$ is the relative positional embedding for spatial and temporal position information $P_{(\cdot)}$ , and the initial $F_{a}$ is directly derived from $E_{a}$ . This decoder module enables the thorough interaction among agents and between agents and road elements, finally giving step-wise motion states. + +# 3.2.2 Joint training across motion tasks + +Following the designs of multi-task language models, we apply customized interactive attention masks for different motion tasks and introduce tailored training objectives to improve both stepwise generation and long-range prediction. At inference time, we adaptively leverage the model's capabilities according to the specific task. + +Motion simulation. The motion simulation task closely resembles language generation, which aims to iteratively select suitable tokens from motion vocabulary. Accordingly, we adopt a causal attention mask and employ Next-Token Prediction (NTP) as the learning strategy, modeling the generation of + +![](images/de7c377a769003988d1a37b50166a559c9a0e39cf6885a27a37eb84706e0027f.jpg) +(a) RL-based fine-tuning + +![](images/fe4ed5c1f183c7e74c6f0c38095be931705c5d7f2ed0b3ee47a94f380e162029.jpg) +(b) Multi-modal fine-tuning + +![](images/dfdd2faf90e8942867b654ff9baef810e7c8fbafd456d468c629e9b3efffa9c7.jpg) +(c) P2G fine-tuning +Figure 3: Illustration of task-specific fine-tuning strategies. We adopt (a) RL-based fine-tuning to improve simulation likelihood while maintaining closed-loop consistency. (b) Multi-modal fine-tuning is introduced to refine the multi-modal behavior of predictions. With reference to the planning inference, we utilize (c) Pred2Gen fine-tuning to address distribution mismatch. + +the next agent token $\mathcal{A}_t$ at step $t$ from the conditional probability $P(\mathcal{A}_t\mid \mathcal{A}_{< t})$ . During inference, motion processes for all agents are simultaneously simulated through auto-regressive generation. + +Trajectory prediction. We regard trajectory prediction as a sequence-to-sequence task, which maps historical segments to future trajectories. Tokens within the historical segments are allowed to attend only to each other, while future tokens can attend both to preceding tokens within the future segment and to all tokens in the historical segments. Moreover, we propose Long-range Future Regression (LFR) to meet the strict requirements of prediction task on accuracy. Specifically, we replace token classification with normalized trajectory regression, and it predicts a complete long-range future trajectory instead of short segments with token-level length, in which case future trajectories $\mathcal{A}_f$ can be derived from: + +$$ +\mathcal {A} _ {f} = \operatorname {M L P} \left(F _ {a}\right), \mathcal {A} _ {f} \in \mathbb {R} ^ {N _ {a} \times T \times T _ {f} \times 2}. \tag {2} +$$ + +Notably, all these tokens are utilized for dense supervision in the training phase, while we only need to perform single-pass reasoning at current step for inference. + +Ego planning. As mentioned in Section 3.1, we consider planning task to be the combination of generation and prediction. Hence, the training objectives for simulation and prediction naturally benefit the planning task, without requiring any additional training strategies. After training, we adopt a two-stage inference approach for ego trajectory generation. Concretely, we first jointly predict future trajectories for all traffic participants, and then tokenize the future parts of these predictions to form the future tokens. Given the predicted future tokens of surrounding agents, we then progressively generate the planning trajectory of ego vehicle. + +# 3.2.3 Task-specific fine-tuning strategies + +Despite the capability of solving multiple tasks simultaneously, models are typically expected to exhibit higher specialization for individual tasks in real-world applications. To this end, we introduce task-specific fine-tuning strategies to further enhance the specialization of UniMotion. Overall, we prefer not to introduce additional parameters during fine-tuning stage. According to this principle, we utilize reinforcement learning-based fine-tuning for simulation and two-stage pred2gen finetuning for planning. Additionally, trajectory prediction requires to produce multi-modal outputs, which will significantly increase the computational burden under dense supervision. To alleviate this, we employ a multi-modal decoder to support the prediction process as a compromise. + +In line with the purpose of Reinforcement Learning from Human Feedback (RLHF) in LLMs, we enhance the model to generate trajectories that align with human driving behavior and traffic rules, which cannot be constrained through direct supervision alone. Hence, we introduce RL-based fine-tuning for simulation. As shown in Figure 3(a), we first generate $n$ rollouts of driving scenes as a group following GRPO [31], with activating the gradient for only one rollout. Subsequently, + +rewards $R$ are computed using the same algorithms as the metrics in Sim Agents [5], which consist of kinematic reward and collision reward for simplicity. We formulate this as: + +$$ +R = \exp \left(\frac {1}{T} \sum_ {i = 1} ^ {T} \log q ^ {\mathrm {g t}}\right) + \mathbf {1} \{\text {n o t c o l l i s i o n} \}, \tag {3} +$$ + +where the kinematic reward is defined as the exponentiated log-likelihood of ground truth samples under the distribution induced by corresponding generated trajectories, whereas the collision reward is an indicator function. Then, the advantage $A$ is derived from the normalized rewards within the group of each agent. Notably, we only supervise one rollout to reduce computational overhead. More details are provided in Section 3.3 and supplementary materials. + +To improve multi-modality of predicted trajectories, we introduce a lightweight transformer decoder similar to [11, 32] as illustrated in Figure 3(b). At this stage, we only focus on the agents of interest that are utilized for evaluation, and perform prediction within perspective local system. To this end, the coordinate-invariant features are transformed into the local agent features $F_{a}^{*}$ and map features $F_{m}^{*}$ through adding the local normalized position content encoded by MLP layer. For each interested agent, the estimated multi-modal trajectories $a_{f}^{*} \in \mathbb{R}^{N_{mo} \times T_{f} \times 2}$ for $N_{mo}$ modes can be derived by: + +$$ +a _ {f} ^ {*} = \operatorname {T r a n s f o r m e r} \left(\mathrm {Q} = F _ {m o}, \mathrm {K} = \mathrm {V} = \left\{F _ {a} ^ {*}, F _ {m} ^ {*} \right\}\right), \tag {4} +$$ + +where $F_{mo}$ denotes the mode features encoded from intention points, and $F_{a}^{*}$ and $F_{m}^{*}$ are with respect to current interested agent. Benefiting from distinct intention points, our model can provide more diverse trajectory choices after fine-tuning. + +During planning inference, the predicted trajectory tokens for surrounding agents will participate in and significantly affect ego generation, inconsistent with the independent training process. To alleviate potential distribution mismatch, we further fine-tune ego generation using the predicted results. As shown in Figure 3(c), the incorrectly predicted trajectories are first filtered out and replaced by the ground truth. Then, we tokenize all predictions and feed them into our network for ego generation, which is fine-tuned with end-to-end supervision. + +# 3.3 Model training + +During the joint training process, we mainly adopt NTP classification loss $\mathcal{L}_{\mathrm{ntp}}$ between next tokens $\mathcal{A}_s$ and corresponding ground truth $\hat{\mathcal{A}}_s$ for generation supervision, and LFR regression loss $\mathcal{L}_{\mathrm{lfr}}$ between $\mathcal{A}_f$ and ground truth $\hat{\mathcal{A}}_f$ for trajectory prediction supervision. We combine these two individual losses with equal weights to form the overall loss $\mathcal{L}$ , formulated as follows: + +$$ +\mathcal {L} = \mathcal {L} _ {\mathrm {n t p}} \left(\mathcal {A} _ {s}, \hat {\mathcal {A}} _ {s}\right) + \mathcal {L} _ {\mathrm {l f r}} \left(\mathcal {A} _ {f}, \hat {\mathcal {A}} _ {f}\right), \tag {5} +$$ + +where we employ the cross-entropy loss and the smooth-L1 loss for $\mathcal{L}_{\mathrm{ntp}}$ and $\mathcal{L}_{\mathrm{lfr}}$ , respectively. + +During the fine-tuning stage, we employ different supervision strategies for each motion task. For simulation fine-tuning, we follow [33] to simplify the GRPO but still preserve the consistency constraint through closed-loop supervision on the gradient-activated rollout $\mathcal{A}_r\in \mathbb{R}^{N_a\times T}$ . Besides, in light of efficiency concerns, we only use $\mathcal{A}_r$ rather than all rollouts to perform a single policy update per iteration. The simulation fine-tuning loss is: + +$$ +\mathcal {L} _ {\mathrm {f t - s i m}} = \mathcal {L} _ {\mathrm {c e}} \left(\mathcal {A} _ {r}, \hat {\mathcal {A}} _ {r}\right) + w _ {\mathrm {s}} \mathcal {L} _ {\mathrm {p}} \left(\mathcal {A} _ {r}, A\right), \tag {6} +$$ + +where $\mathcal{L}_{\mathrm{ce}}$ is the cross-entropy loss between $\mathcal{A}_r$ and ground truth $\hat{\mathcal{A}}_r$ , $\mathcal{L}_{\mathrm{p}}$ is the policy utilized in GRPO with taking $\mathcal{A}_r$ and advantage $A$ as inputs, and $w_{s}$ is a balancing factor. The prediction loss consists of Gaussian NLL loss $\mathcal{L}_{\mathrm{nll}}$ to supervise multi-modal trajectories $a_{f}^{*}$ and cross-entropy loss for mode classification. Meanwhile, the model also learns to regress the local future trajectories $\mathcal{A}_f^*$ for other agents as auxiliary supervision. The loss can be formulated as: + +$$ +\mathcal {L} _ {\mathrm {f t - p r e d}} = w _ {\mathrm {p r}} \mathcal {L} _ {\mathrm {l f r}} \left(\mathcal {A} _ {f} ^ {*}, \hat {\mathcal {A}} _ {f} ^ {*}\right) + \mathcal {L} _ {\mathrm {n l l}} \left(a _ {f} ^ {*}, \hat {a} _ {f} ^ {*}\right) + \mathcal {L} _ {\mathrm {c e}}. \tag {7} +$$ + +In addition, we simply supervise the generation $a_{\mathrm{ego}}$ for ego vehicle and the predictions $\mathcal{A}_f^{\mathrm{surr}}$ for surrounding agents in the planning fine-tuning stage as: + +$$ +\mathcal {L} _ {\mathrm {f t - p l a n}} = w _ {\mathrm {p l}} \mathcal {L} _ {\mathrm {l f r}} \left(\mathcal {A} _ {f} ^ {\text {s u r r}}, \hat {\mathcal {A}} _ {f} ^ {\text {s u r r}}\right) + \mathcal {L} _ {\mathrm {n t p}} \left(a _ {\mathrm {e g o}}, \hat {a} _ {\mathrm {e g o}}\right). \tag {8} +$$ + +Table 1: Performance comparison on 2025 Waymo Open Sim Agents Challenge. + +
MethodRealism Meta Metric ↑Kinematic Metrics ↑Interactive Metrics ↑Map-based Metrics ↑minADE ↓
UniTAM0.76980.48690.78760.90851.3940
UniTFormer0.77760.48920.79970.91401.3592
LLM2AD0.77790.48460.80480.91091.2827
UniMM [34]0.78290.49140.80890.91611.2949
CATK [18]0.78460.49310.81060.91771.3065
UniMotion0.78510.49430.81050.91871.3036
+ +Table 2: Performance comparison on WOMD Prediction Leaderboard. For each metric, the best and second best results are highlighted in bold and underline, respectively. + +
MethodminADE ↓minFDE ↓MR ↓mAP ↑Soft mAP ↑
HDGT [35]0.59331.20550.18540.35770.3709
MTR [11]0.60501.22070.13510.41290.4216
MTR++ [36]0.59061.19390.12980.43290.4414
MGTR [37]0.59181.21350.12980.45050.4599
EDA [32]0.57181.17020.11690.44870.4596
ControlMTR [38]0.58971.19160.12820.44140.4572
RMP-YOLO [39]0.57371.16970.11600.45230.4673
UniMotion0.57181.16430.11620.45340.4642
+ +# 4 Experiments + +# 4.1 Experimental settings + +Datasets and metrics. To evaluate the performance of our method, we conduct extensive experiments on the Waymo Open Motion Dataset, comprising 486,995 training scenarios, 44,097 validation scenarios and 44,920 testing scenarios. Each scenario has an observation window of 9.1 seconds, consisting of 91 frames sampled at $10\mathrm{Hz}$ . Given 11-frame historical agent states and a HD map, the motion models are tasked with generating or predicting the future states of 80 frames. Additionally, prediction and planning tasks only perform one-step inference at the current time, while simulation task requires 32 simulations per scenario. + +We employ respective benchmark metrics to assess our model. For simulation, the core metric is the Realism Meta Metric, which is utilized to measure the similarity between the simulations and the real-world distribution. It is calculated by the weighted sum of Kinematic Metrics for motion features, Interactive Metrics to capture the interaction among agents and Map-based Metrics to test the agent behavior on the map. For prediction, 6 predicted trajectories for each interested agent are expected for evaluation, with metrics including minADE (minimum Average Displacement Error), minFDE (minimum Final Displacement Error), Miss Rate, mAP and Soft MAP. In addition, due to the absence of an official benchmark for planning, we adopt the metrics proposed by [40] as measures. + +Implementation details. We tokenize the trajectories and map elements following [15, 18], with 2,048 tokens for agents and 1,024 tokens for map. During the training phase, We train our models using the AdamW [41] optimizer with a total batch size of 48 on 8 NVIDIA A6000 GPUs for 30 epochs, with the weight decay set to 0.01. We initialize the learning rate of $5 \times 10^{-4}$ , which is then decayed following a cosine annealing schedule. Regarding the fine-tuning stage, we employ the same learning rate for prediction, while a lower learning rate of $5 \times 10^{-5}$ for simulation and planning. Beside, we also fine-tune these tasks with the same epochs. + +Each agent token covers 0.5 seconds, and each map token covers about 0.5 meters. After tokenization, the original 91-step trajectories in Waymo are compressed into 18 frames. For the training phase, the training time for full data is approximately 3.5 days, while using $20\%$ of the data takes around 1 day in our experimental settings. In addition, we set the balance factor $w_{\mathrm{s}}$ , $w_{\mathrm{pr}}$ and $w_{\mathrm{pl}}$ to 0.1, 0.1 and 0.5, respectively. + +Table 3: Performance comparison for Waymo planning. + +
MethodCollision ↓Red light ↓Off route ↓Planning error ↓
@1s@3s@5s
IL5.4692.7724.8160.1751.4164.194
IL+Prediction3.9301.6704.5420.1270.8922.901
Sep. Plan+Pred.1.8131.3270.5270.2381.2513.466
DIPP [40]1.8021.2350.5060.2271.1873.335
UniMotion1.5651.3090.4770.0830.5912.246
+ +# 4.2 Comparison with state of the art + +We compare the performance of our UniMotion with top-ranked competitors on Sim Agents [5], WOMD Prediction and Waymo Planning [40] benchmarks. The leaderboards for Sim Agents and WOMD Prediction are presented in Table 1 and Table 2, respectively. For simulation, our method achieve the best score of 78.51 on Realism Meta Metric. Benefiting from the kinematic reward of fine-tuning, the model is encouraged to generate trajectories with higher motion similarity to real-world situations, driving better Kinematic Metrics than other methods. However, the minADE metric exhibits relatively poorer performance, which can be attributed to the tokenization-based design's stronger emphasis on generation diversity at the cost of slightly reduced prediction accuracy. The leaderboard of the prediction task demonstrate that our method achieves promising results across almost all metrics, except for Soft mAP. Regarding the planning task, UniMotion has far outperformed most of previous approaches as depicted in Table 3, showing that our method stands distinctly ahead of others in terms of planning error. Moreover, to ensure generality and consistency, we supervise model training solely using logged trajectories. This mechanism leads to suboptimal performance in reacting to red lights, which can be mitigated by incorporating traffic rule constraints, as in [40]. + +# 4.3 General ablation study + +We conduct ablation studies on the WOMD validation split to examine the effectiveness of each component in UniMotion. For efficiency, we use only $20\%$ of the training data for ablation studies, while adopting the default experimental settings following Section 4.1 for all other aspects. We focus on the core modules here, while leaving task-specific ablation to the supplementary materials. + +Effects of NTP and LFR. As shown in Table 4, we simply assess the effectiveness of NTP and LFR in our network on simulation and prediction tasks. The first and second rows demonstrate the results of training UniMotion using only NTP or LFR, respectively. Despite the absence of dedicated supervision for another one of tasks, we report all relevant metrics to compare with joint training and showcase the model's ability to handle multiple tasks. It can be observed that the model benefits from both NTP and LFR in generation and prediction, while it performs poorly on another task. In the third row, we implement a joint training strategy with these two types of supervision, simultaneously endowing the model with diverse generative and long-range predictive capabilities. Besides, we find that joint training further improves prediction accuracy compared to using LFR alone, which we attribute to the diverse generation directions serving as targets to guide the prediction process. + +Table 4: Ablation on joint training with NTP and LFR. "Kin."/“Inter.”: Kinematic/Interactive metrics. + +
NTPLFRSimulationPrediction
Kin.Inter.MapminADEminADEminFDEmAP
✓0.48840.79610.91481.40740.76971.55470.2629
✓0.44010.77420.89491.29650.66681.36130.2935
✓✓0.48920.79680.91441.40110.65081.32960.3147
+ +Effects of task-specific fine-tuning. After training a preliminary model with a joint strategy, we further tailor it with designs specific to the target task. As demonstrated in Table 5, fine-tuning methods can intuitively bring consistent improvements across all motion tasks. For simulation, all metrics exhibit varying degrees of gains after fine-tuning, especially in the reward items. The 3rd and + +4th rows of prediction task show that the mAP metric has been remarkably enhanced by introducing an extra anchor-based decoder, which can cover more potential future trajectories. In addition, noticeable improvements are also observed on the minADE and MR metrics, achieving the expected goals of fine-tuning. Regrading the planning task, the 5th row shows limited performance due to the distribution mismatch between predicted tokens and original trajectory tokens. After fine-tuning, the model is adapted to the two-stage process, and there are considerable improvements for all metrics. + +Table 5: Ablation on task-specific fine-tuning for simulation, prediction and planning. Notably, we selected a set of metrics with substantial variation to facilitate comparison. Additionally, we fine-tune planning model with the data following [40] instead of $20\%$ data. + +
Taskft.Metrics
Simulation✘Kinematic ↑Interactive ↑Map-based ↑minADE ↓
✓0.48920.79680.91441.4011
0.49390.80320.91591.3904
Prediction✘minADE ↓minFDE ↓MR ↓mAP ↑
✓0.65081.32960.16260.3147
0.64131.33680.14930.3856
Planning✘Collision ↓Err @1s ↓Err @3s ↓Err @5s ↓
✓1.73470.13260.79432.7809
1.56500.08340.59082.2455
+ +# 4.4 Task-specific ablation study + +In this section, we adopt the same experimental settings and conduct task-specific ablation studies on the simulation and prediction tasks to investigate the effects of different module designs. + +Effects of RL-based fine-tuning for simulation. We present the effects of different constraints in Table 6. As shown in the 2nd and 3rd rows, closed-loop supervised fine-tuning leads to notable improvements, while relying solely on RL-based supervision, like DAPO [33], fails to produce satisfactory results. We attribute this to two primary factors: insufficient reward signals and limited model capacity. + +Table 6: Ablation on RL-based fine-tuning. "con:": consistency constraint. "Kin."/“Inter.”: Kinematic/Interactive metrics. + +
con.rlKin.Inter.MapminADE
0.48920.79680.91441.4011
✓0.49210.80190.91561.3933
✓0.49130.79740.91201.3967
✓✓0.49390.80320.91591.3904
+ +Effects of fine-tuning for prediction. We present the effects of different fine-tuning strategies in Table 7. The comparison between the 2nd and 3rd rows demonstrates that although the end-to-end fine-tuning strategy (without intention anchors) can significantly reduce prediction errors, it severely compromises prediction diversity and confidence, leading to degraded mAP performance. Hence, we retain the intention anchors as part of the fine-tuning process. + +Table 7: Ablation on prediction fine-tuning. + +
StrategyminADEminFDEMRmAP
w/o ft.0.65081.32960.16260.3147
ft. w/o intention0.61741.26390.13130.3389
ft. w/ intention0.64131.33680.14930.3856
+ +![](images/a5a30c5386cd09e2f5c86d76d3fd860cce95bf7bd776f949a069b4964a13cbcf.jpg) +Figure 4: Qualitative results on WOMD validation split. The top and bottom rows present two rollouts of simulation and the results of prediction and planning, respectively. The red and green arrowed curves are ground truth and predicted trajectories. + +# 4.5 Qualitative results + +In Figure 4, we present qualitative results of our network on three motion tasks. The first two panels illustrate the diverse simulation results of all traffic agents at 0s, 4s, and 8s, respectively. The bottom-left figure depicts the multi-modal predictions for interested agents, while the bottom-right figure presents the ego trajectory generation process in a token-by-token manner. These qualitative results demonstrate our network's capability in handling multiple motion tasks. + +# 5 Conclusion + +In this work, we abstract mainstream motion tasks into two core types and aim to address all motion tasks within a unified framework, thereby promoting knowledge sharing and enhancing model generalization. Achieving this, we present UniMotion, an integrated model designed particularly to support joint training for these tasks. The critical components of our framework are distinct interactive modes and training strategies. Besides, we further perform task-specific fine-tuning for each task, fulfilling the requirement for expert-level models in real-world applications. Our extensive experiments on several task benchmarks comprehensively demonstrate that UniMotion is capable of unifying motion tasks, and the fine-tuned versions surpass the current state-of-the-art performance in the respective tasks. + +Limitations and future work. Although we employ a decode-only framework to ensure flexibility, the coupled spatial and temporal interaction and relative position embedding rely on detailed positional information of traffic elements, constraining the model from leveraging more LLM-related technologies. Moreover, after applying tokenization and conducting joint multi-task training, it is worthwhile to explore cross-dataset learning, which could lead to substantial improvements in joint training performance. Limited by computational resources and training time, we have not explored this technique in the present work. + +# Acknowledgments + +This work was supported in part by National Natural Science Foundation of China (Grant No. 62376060). + +# References + +[1] Scott Ettinger, Shuyang Cheng, Benjamin Caine, Chenxi Liu, Hang Zhao, Sabeek Pradhan, Yuning Chai, Ben Sapp, Charles R Qi, Yin Zhou, et al. Large scale interactive motion forecasting for autonomous driving: The waymo open motion dataset. In ICCV, 2021. 1, 13 +[2] Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, et al. Argoverse: 3d tracking and forecasting with rich maps. In CVPR, 2019. 1 +[3] Benjamin Wilson, William Qi, Tanmay Agarwal, John Lambert, Jagjeet Singh, Siddhesh Khandelwal, Bowen Pan, Ratnesh Kumar, Andrew Hartnett, Jhony Kaesemodel Pontes, Deva Ramanan, Peter Carr, and James Hays. Argoverse 2: Next generation datasets for self-driving perception and forecasting. In NeurIPS, 2021. 1 +[4] Holger Caesar, Juraj Kabzan, Kok Seang Tan, Whye Kit Fong, Eric Wolff, Alex Lang, Luke Fletcher, Oscar Beijbom, and Sammy Omari. nuplan: A closed-loop ml-based planning benchmark for autonomous vehicles. arXiv preprint, 2021. 1 +[5] Nico Montali, John Lambert, Paul Mougin, Alex Kuefler, Nicholas Rhinehart, Michelle Li, Cole Gulino, Tristan Emrich, Zoey Yang, Shimon Whiteson, et al. The waymo open sim agents challenge. In NeurIPS, 2023. 1, 2, 6, 8, 13 +[6] Jiyang Gao, Chen Sun, Hang Zhao, Yi Shen, Dragomir Anguelov, Congcong Li, and Cordelia Schmid. Vectornet: Encoding hd maps and agent dynamics from vectorized representation. In CVPR, 2020. 1, 3 +[7] Zikang Zhou, Luyao Ye, Jianping Wang, Kui Wu, and Kejie Lu. Hivt: Hierarchical vector transformer for multi-agent motion prediction. In CVPR, 2022. 1, 3 +[8] Zikang Zhou, Jianping Wang, Yung-Hui Li, and Yu-Kai Huang. Query-centric trajectory prediction. In CVPR, 2023. 1, 3, 4 +[9] Haochen Liu, Li Chen, Yu Qiao, Chen Lv, and Hongyang Li. Reasoning multi-agent behavioral topology for interactive autonomous driving. NeurIPS, 2024. 1, 3 +[10] Sehwan Choi, Jungho Kim, Junyong Yun, and Jun Won Choi. R-pred: Two-stage motion prediction via tube-query attention-based trajectory refinement. In ICCV, 2023. 1, 3 +[11] Shaoshuai Shi, Li Jiang, Dengxin Dai, and Bernt Schiele. Motion transformer with global intention localization and local movement refinement. In NeurIPS, 2022. 1, 3, 6, 7 +[12] Yang Zhou, Hao Shao, Letian Wang, Steven L Waslander, Hongsheng Li, and Yu Liu. Smartrefine: An scenario-adaptive refinement framework for efficient motion prediction. In CVPR, 2024. 1, 3 +[13] Dongkun Zhang, Jiaming Liang, Ke Guo, Sha Lu, Qi Wang, Rong Xiong, Zhenwei Miao, and Yue Wang. Carplanner: Consistent auto-regressive trajectory planning for large-scale reinforcement learning in autonomous driving. CVPR, 2025. 1, 2, 3 +[14] Zikang Zhou, HU Haibo, Xinhong Chen, Jianping Wang, Nan Guan, Kui Wu, Yung-Hui Li, Yu-Kai Huang, and Chun Jason Xue. Behaviorpt: Smart agent simulation for autonomous driving with next-patch prediction. NeurIPS, 2024. 2, 3, 4 +[15] Wei Wu, Xiaoxin Feng, Ziyan Gao, and Yuheng Kan. Smart: Scalable multi-agent real-time motion generation via next-token prediction. NeurIPS, 2024. 2, 3, 4, 7 +[16] Jonah Philion, Xue Bin Peng, and Sanja Fidler. Trajeglish: Traffic modeling as next-token prediction. *ICLR*, 2024. 2, 3 +[17] Ari Seff, Brian Cera, Dian Chen, Mason Ng, Aurick Zhou, Nigamaa Nayakanti, Khaled S Refaat, Rami Al-Rfou, and Benjamin Sapp. MotionIm: Multi-agent motion forecasting as language modeling. In ICCV, 2023. 2, 3 +[18] Zhejun Zhang, Peter Karkus, Maximilian Igl, Wenhao Ding, Yuxiao Chen, Boris Ivanovic, and Marco Pavone. Closed-loop supervised fine-tuning of tokenized traffic models. CVPR, 2025. 2, 7 +[19] Longzhong Lin, Xuewu Lin, Kechun Xu, Haojian Lu, Lichao Huang, Rong Xiong, and Yue Wang. Revisit mixture models for multi-agent simulation: Experimental study within a unified framework. arXiv preprint, 2025. 2 + +[20] Xiaolong Tang, Meina Kan, Shiguang Shan, Zhilong Ji, Jinfeng Bai, and Xilin Chen. Hpnet: Dynamic trajectory forecasting with historical prediction attention. In CVPR, 2024. 3 +[21] Nan Song, Bozhou Zhang, Xiatian Zhu, and Li Zhang. Motion forecasting in continuous driving. NeurIPS, 2024. 3 +[22] Bozhou Zhang, Nan Song, and Li Zhang. Decoupling motion forecasting into directional intentions and dynamic states. NeurIPS, 2024. 3 +[23] Jie Cheng, Xiaodong Mei, and Ming Liu. Forecast-mae: Self-supervised pre-training for motion forecasting with masked autoencoders. In ICCV, 2023. 3 +[24] Zhiqian Lan, Yuxuan Jiang, Yao Mu, Chen Chen, and Shengbo Eben Li. Sept: Towards efficient scene representation learning for motion prediction. In ICLR, 2024. 3 +[25] Martin Treiber, Ansgar Hennecke, and Dirk Helbing. Congested traffic states in empirical observations and microscopic simulations. Physical review E, 2000. 3 +[26] Daniel Dauner, Marcel Hallgarten, Andreas Geiger, and Kashyap Chitta. Parting with misconceptions about learning-based vehicle motion planning. In CoRL, 2023. 3 +[27] Jie Cheng, Yingbing Chen, Xiaodong Mei, Bowen Yang, Bo Li, and Ming Liu. Rethinking imitation-based planners for autonomous driving. In ICRA, 2024. 3 +[28] Jie Cheng, Yingbing Chen, and Qifeng Chen. Pluto: Pushing the limit of imitation learning-based planning for autonomous driving. arXiv preprint, 2024. 3 +[29] Yuntao Chen, Yuqi Wang, and Zhaoxiang Zhang. Drivinggpt: Unifying driving world modeling and planning with multi-modal autoregressive transformers. arXiv preprint, 2024. 3 +[30] Xiaosong Jia, Junqi You, Zhiyuan Zhang, and Junchi Yan. Drivetransformer: Unified transformer for scalable end-to-end autonomous driving. ICLR, 2025. 3 +[31] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Y Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint, 2024. 5 +[32] Longzhong Lin, Xuewu Lin, Tianwei Lin, Lichao Huang, Rong Xiong, and Yue Wang. Eda: Evolving and distinct anchors for multimodal motion prediction. In AAAI, 2024. 6, 7 +[33] Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Tiantian Fan, Gaohong Liu, Lingjun Liu, Xin Liu, et al. Dapo: An open-source llm reinforcement learning system at scale. arXiv preprint, 2025. 6, 9 +[34] Longzhong Lin, Xuewu Lin, Kechun Xu, Haojian Lu, Lichao Huang, Rong Xiong, and Yue Wang. Revisit mixture models for multi-agent simulation: Experimental study within a unified framework. In arXiv preprint, 2025. 7 +[35] Xiaosong Jia, Penghao Wu, Li Chen, Yu Liu, Hongyang Li, and Junchi Yan. Hdgt: Heterogeneous driving graph transformer for multi-agent trajectory prediction via scene encoding. IEEE TPAMI, 2023. 7 +[36] Shaoshuai Shi, Li Jiang, Dengxin Dai, and Bernt Schiele. Mtr++: Multi-agent motion prediction with symmetric scene modeling and guided intention querying. IEEE TPAMI, 2024. 7 +[37] Yiqian Gan, Hao Xiao, Yizhe Zhao, Ethan Zhang, Zhe Huang, Xin Ye, and Lingting Ge. Multi-granular transformer for motion prediction with lidar. In ICRA, 2024. 7 +[38] Jiawei Sun, Chengran Yuan, Shuo Sun, Shanze Wang, Yuhang Han, Shuailei Ma, Zefan Huang, Anthony Wong, Keng Peng Tee, and Marcelo H Ang. Controlmtr: Control-guided motion transformer with scene-compliant intention points for feasible motion prediction. In IEEE ITSC, 2024. 7 +[39] Jiawei Sun, Jiahui Li, Tingchen Liu, Chengran Yuan, Shuo Sun, Zefan Huang, Anthony Wong, Keng Peng Tee, and Marcelo H Ang Jr. Rmp-yolo: A robust motion predictor for partially observable scenarios even if you only look once. arXiv preprint, 2024. 7 +[40] Zhiyu Huang, Haochen Liu, Jingda Wu, and Chen Lv. Differentiable integrated motion prediction and planning with learnable cost function for autonomous driving. TNNLS, 2023. 7, 8, 9 +[41] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In $ICLR$ , 2018. 7 + +# A Details for simulation fine-tuning + +After obtaining the generated rollout $\mathcal{A}_r$ and advantage $A$ , we update policy gradient using simplified objective to ensure stable training of lightweight models, the gradient of which for token $t$ can be estimated as: + +$$ +\nabla_ {\theta} \log \mathcal {F} _ {\theta} \left(\mathcal {A} _ {r} [ t ]\right) \cdot A _ {\left(\mathcal {A} _ {r}\right)} [ t ], \tag {9} +$$ + +where $\mathcal{F}_{\theta}$ denotes our trainable models. Besides, considering the relatively uniform rewards and the large number of iterations, we perform policy update for only one generation per iteration to promote efficient training. + +# B Discussions + +Why we employ decoder-only Transformers as the backbone? We opt for a decoder-only Transformer structure because it is better suited for multi-step generative tasks like simulation, where input and output lengths can vary. Conversely, the encoder-decoder structure, while excellent for sequence-to-sequence prediction tasks, cannot generalize as well across the diverse demands of our multi-task framework. Adopting a decoder-only architecture during joint training ensures stronger generalization capabilities across all our tasks. + +Why the joint training in UniMotion works well? As detailed in Section 3.1, our primary objectives are NTP and LFR. Intuitively, this joint training paradigm fosters the learning of shared, rich intermediate representations across multiple tasks. This enables tokens within the model to attend simultaneously to both their immediate surroundings and more distant scene contexts, leading to a more holistic understanding of the environment. + +Further, despite their apparent differences, the two task objectives possess crucial commonalities. Specifically, while LFR provides direct supervision on long-range logged trajectories, the initial motion direction embedded within these trajectories concurrently serves as the maximization objective for NTP. This underlying consistency and synergistic relationship between LFR and NTP are fundamental to ensuring stable joint training and preventing mode collapse, allowing the model to learn effectively from both detailed local cues and broad long-range dependencies. + +# C More qualitative results + +We provide more qualitative results of our framework in Figure 5 and Figure 6 on the validation set of Waymo Open Motion Dataset [1, 5]. + +# D Failure cases + +Although our UniMotion achieves strong performance across multiple motion tasks, it still encounters certain failure cases. We provide qualitative results and analysis to offer a more comprehensive understanding, which we hope will support future efforts toward developing more robust and capable algorithms, as shown in Figure 7 and Figure 8. + +In simulation task, there is still a possibility of collisions in complex scenario as illustrated in Figure 7 (a). Besides, we have also observed some unrealistic simulations in intersection scenarios as shown in Figure 7 (b), where agents remain stationary despite the green light. We provide the failure cases of prediction task in Figure 8 (a), which demonstrate that it is challenging to predict complex motion patterns, especially sudden turns. Similar issues are also observed in planning, particularly when dealing with sudden U-turns. Additionally, the model might yield reasonable trajectories that fail to reflect the driver's subjective intention. + +![](images/c1e155950225367f58eb6ace0f57c27409b630e0819337a0cc12ff886a42862c.jpg) +(a) Parking lot scene + +![](images/3af2f2cf8e89f502010ea36ae7472ff1c19211946d97aa572a616045352e0503.jpg) +(b) Intersection scene +Figure 5: Qualitative results on the Sim Agents. We present several complex scenarios in autonomous driving, each accompanied by two rollouts. The circled areas highlight the key differences between the two rollouts. + +![](images/464b3de393969e77be0c906819e8b5c734227b2d2609b2fda14e97dc270e254b.jpg) + +![](images/3b2cea10085fcec49b9b35a7ebc2e184e91b64a2ee442614feacae5d21fa1b1c.jpg) +(a) Prediction + +![](images/c341d400f3896e75a1902246cbd6547ac8c60c67534d9eccb543a78d0520e2ad.jpg) + +![](images/f1fc90bf5cf4dbf5d4b409e85e1a3ce15dc4208fa26b3b1a4e8539dfd3422fa6.jpg) +Figure 6: Qualitative results on the WOMD for prediction and planning task. + +![](images/3dbafd2535fcec3bb8cf6bf8e03a6cd79aa44c1c61d0aaa8640280c9037c12c7.jpg) +(b) Planning + +![](images/52044002deef6a6a8e7a5fd28fd5cd7deda2b02007523db2241a535062d1c936.jpg) + +![](images/6b2442d69d2c064b2bfc6f8c8f855f52a07f780f8862621aed946eebbf4a8b87.jpg) + +![](images/a79e08c56aa0329a1d740003e3a4bdb50e82997d3616d28310b203db8e7c609b.jpg) +(a) Collision + +![](images/397a240dbc498ebd52842402df319931f504da7414862b4605ceab2aa43606f7.jpg) + +![](images/90634ae22338e63ba6f388d215607deb2c8d22576bd6575650a272316c747967.jpg) + +![](images/b3a2b36ac4a04dca51f45b4b849774df38408b7b769cb0b576e14944f7d38843.jpg) +(b) Non-red-light stop + +![](images/c42f9d7596831378c681b927560631fbe4155dc4eac4a9e2a719b93bd55f31ce.jpg) +Figure 7: Failure cases in simulation. In the first row, the model causes a collision in a crowded parking lot. In the second row, it incorrectly incorrectly stop without a red light at an intersection. + +![](images/762bc99a1db32c0903ba7aa0520bb9e6908cdf1bfcdb28037babdabdb2644e3e.jpg) + +![](images/63e3d0f7b758ac2933d71652ecfe76064d148d73084f635b8a5382358501d0d4.jpg) +(a) Prediction + +![](images/32dbf075717e172bfd3d2685604f7959372d3e558327f86c19e7d4774eadb5f0.jpg) + +![](images/5c0d198c5a627bdd0eb65c95ce3e8f4e5e26021c9127690adb1ba21a62f7e0ae.jpg) +Figure 8: Failure cases in prediction and planning. The model fails to accurately predict the trajectories of vehicles and pedestrians. In terms of planning, it struggles with scenarios where the targets involve drivers' subjective intentions. + +![](images/4a0edb8666a904405c9dbaeeb11f02666bcf4577403c213f424797076932e1bb.jpg) +(b) Planning + +![](images/e809d9d7a134c7f70f424e3acd18bf92115d948961f50429a36b50dbe1be6bec.jpg) + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: Please see the experiment section. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: Please see the conclusion section. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: This paper does not include theoretical results. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: Please see the experiment section. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [No] + +Justification: The details are provided in the main paper and the appendix. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: Please see the experiment section and appendix. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [No] + +Justification: [NA] + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. + +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: Please see the experiment section. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more computer than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: [NA] + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: Our main idea is specifically designed for applications in autonomous driving. Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to + +generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. + +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: This paper poses no such risks. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: Please see the experiment section. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +# Answer: [NA] + +Justification: This paper does not release new assets. + +# Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +# Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +# Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +# Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +# Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [NA] + +# Justification: [NA] + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/images.zip b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..3e6e1be408d7b63554af8377e016530755d36cde --- /dev/null +++ b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc5c47bbffda37007becf75a5715be66ad6035458f7943226929ecd8be552fa0 +size 1139866 diff --git a/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/layout.json b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..5633b903921d920eeb6eed6d8dc56df657d6ce9f --- /dev/null +++ b/NeurIPS/2025/UniMotion_ A Unified Motion Framework for Simulation, Prediction and Planning/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af599c0bc7e4f44f6b96d372bd8016235b45167f3cf904b72252cb66793b6feb +size 665186 diff --git a/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/d2a69f46-4cec-4c17-bb6c-977364a425fa_content_list.json b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/d2a69f46-4cec-4c17-bb6c-977364a425fa_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..88abc58cca6a57c12f5a11a1a8e0c13ea2081104 --- /dev/null +++ b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/d2a69f46-4cec-4c17-bb6c-977364a425fa_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9e557005dc595641d69a9404f9ad4976aa94c66ecd73a3bf0b69c259439e336 +size 208866 diff --git a/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/d2a69f46-4cec-4c17-bb6c-977364a425fa_model.json b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/d2a69f46-4cec-4c17-bb6c-977364a425fa_model.json new file mode 100644 index 0000000000000000000000000000000000000000..ad7b0c5cc5b754e54475661a77fef303cf1009c4 --- /dev/null +++ b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/d2a69f46-4cec-4c17-bb6c-977364a425fa_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c7e546fe5d3f24166e3a8dfa9b9cc8efe601abec00c73f73cea833ab68b4730 +size 271340 diff --git a/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/d2a69f46-4cec-4c17-bb6c-977364a425fa_origin.pdf b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/d2a69f46-4cec-4c17-bb6c-977364a425fa_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..1ca219c16c17af6434dca47ba3c42631ac35c539 --- /dev/null +++ b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/d2a69f46-4cec-4c17-bb6c-977364a425fa_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dc8888ce9237ccd2360d34bafe5dd7c9fbd9ee59cdc0fa976ea62758cd608b9 +size 12655943 diff --git a/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/full.md b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/full.md new file mode 100644 index 0000000000000000000000000000000000000000..4fd0c038937970d9a196dd3771c40e335a86ae30 --- /dev/null +++ b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/full.md @@ -0,0 +1,937 @@ +# UniPixel: Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning + +Ye Liu $^{1,2}$ , Zongyang Ma $^{2,3}$ , Junfu Pu $^{2}$ , Zhongang Qi $^{4}$ , Yang Wu $^{5}$ , Ying Shan $^{2}$ , Chang Wen Chen $^{1*}$ + +1 The Hong Kong Polytechnic University 2 ARC Lab, Tencent PCG + +$^{3}$ Institute of Automation, Chinese Academy of Sciences $^{4}$ vivo Mobile Communication Co. + +$^{5}$ MindWingman Technology (Shenzhen) Co., Ltd. + +coco.ye.liu@connect.polyu.hk + +https://polyu-chenlab.github.io/unipixel/ + +![](images/d27254d971bc18a15e10eed7ec6fbe751fa1820d87232a03d82cbc2db6fe3d1e.jpg) +Figure 1: UniPixel flexibly supports a large variety of fine-grained image and video understanding tasks, including referring/reasoning/interactive segmentation, motion-grounded video reasoning, and referred video description & question answering. It can also handle a novel PixelQA task that jointly requires object-centric referring, segmentation, and question answering in videos. + +# Abstract + +Recent advances in Large Multi-modal Models (LMMs) have demonstrated their remarkable success as general-purpose multi-modal assistants, with particular focuses on holistic image- and video-language understanding. Conversely, less attention has been given to scaling fine-grained pixel-level understanding capabilities, where the models are expected to realize pixel-level alignment between visual + +signals and language semantics. Some previous studies have applied LMMs to related tasks such as region-level captioning and referring expression segmentation. However, these models are limited to performing either referring or segmentation tasks independently and fail to integrate these fine-grained perception capabilities into visual reasoning. To bridge this gap, we propose UniPixel, a large multi-modal model capable of flexibly comprehending visual prompt inputs and generating mask-grounded responses. Our model distinguishes itself by seamlessly integrating pixel-level perception with general visual understanding capabilities. Specifically, UniPixel processes visual prompts and generates relevant masks on demand, and performs subsequent reasoning conditioning on these intermediate pointers during inference, thereby enabling fine-grained pixel-level reasoning. The effectiveness of our approach has been verified on 10 benchmarks across a diverse set of tasks, including pixel-level referring/segmentation and object-centric understanding in images/videos. A novel PixelQA task that jointly requires referring, segmentation, and question answering is also designed to verify the flexibility of our method. + +# 1 Introduction + +Large Multi-modal Models (LMMs) have been the de facto standard for developing general-purpose assistants. By effectively aligning multi-modalities with language, their significance has been demonstrated across various applications, including multi-modal analysis [59, 19, 107, 108, 48], autonomous driving (AD) [16, 79, 106, 11], and Embodied AI [111, 22, 30, 99]. + +In the field of visual-language understanding, efforts have been dedicated to developing holistic understanding models, where simple projection layers between visual encoders and LLMs are utilized to bridge vision and language modalities. Supported by large-scale alignment pre-training and visual instruction tuning, such a straightforward paradigm achieves strong performance in holistic understanding tasks such as captioning [40, 6, 114] and general question answering [36, 24, 54, 49]. However, these models exhibit two fundamental limitations in fine-grained scenarios. First, their interactions with users are limited to text format, lacking support for more intuitive forms of communication such as drawing points/boxes as references or grounding model responses with key regions represented by masks. Second, the internal reasoning process of these models predominantly operates at a coarse level, directly perceiving the entire content rather than reasoning over specific objects/regions, making them hard to understand fine-grained details. Some previous studies have explored the application of LMMs to related tasks such as region-level captioning [12, 102, 103], referring expression segmentation [29, 55, 41, 21, 71, 62], and reasoning segmentation [32, 27, 96, 4, 112]. Nevertheless, their models are limited to performing either referring or segmentation tasks independently via rigidly defined input/output templates (e.g., "It's ." in LISA [32]), lacking the flexibility to comprehend user-referred concepts and generate mask-grounded responses simultaneously. More importantly, these methods cannot integrate such fine-grained perception capabilities with their original human-like [90, 89, 88, 92, 91] multi-modal reasoning abilities, resulting in degraded performance on general visual understanding benchmarks [100, 93, 28]. + +In this work, we seek to bridge this gap by introducing UniPixel, a large multi-modal model that can flexibly comprehend visual prompt inputs (i.e., points, boxes, and masks) and generate mask-grounded responses. Our model significantly differentiates itself from existing ones by unifying the internal representations of referred and segmented objects via a novel object memory bank, which is a hashmap storing the spatial-temporal information of object-of-interests. During inference, UniPixel initializes the object memory bank and updates it on demand by adding object-centric information according to the context. The model responses are then generated conditioning on the fine-grained object memory. Benefits from such unification, UniPixel is able to perform not only basic referring/segmentation tasks, but also flexible pixel-level reasoning tasks that require simultaneous visual prompt comprehension and mask prediction. As illustrated in Fig. 1 (the last row), given a video $^2$ , a question, and optionally a visual prompt (e.g., a point specified by a click on an object in any frame), UniPixel can (1) infer the mask for the referred object in the corresponding frame, (2) propagate it to all video frames containing the same instance, (3) extract the mask-grounded object features, and finally (4) answer the question conditioning on both the video-level and object-centric + +![](images/b7fe5e3c9d0788a68c97a5e9702bf1dc9ba843de1d6f4bd2ad91c1374c1e67a6.jpg) +Figure 2: Schematic comparison between UniPixel and its counterparts. To the best of our knowledge, UniPixel is the first unified method supporting simultaneous object referring and segmentation. + +![](images/f021bae1a962adc3de63fa30181af01a5542a40fcb4340549d8a12f7344e9446.jpg) +How does the behavior of [3] differ from [1]? + +information. All these operations are seamlessly conducted within a single model, eliminating the need for external frame samplers [96], mask generators [102, 103], or object trackers [4]. + +We evaluate the effectiveness of UniPixel from two aspects, i.e., basic referring/segmentation capabilities and flexible pixel-level reasoning capabilities. For the first aspect, we conduct extensive experiments on 10 public benchmarks across 9 image/video referring/segmentation tasks. Our method achieves state-of-the-art performance in diverse scenarios. Notably, on the challenging video reasoning segmentation and referred video QA tasks, our 3B model obtains $62.1\mathcal{J}\& \mathcal{F}$ on ReVOS [96] and $72.8\%$ Acc on VideoRefer-Bench[103], surpassing strong counterparts with $7\mathrm{B}\sim 13\mathrm{B}$ parameters. Further ablation studies also demonstrate the mutual reinforcement effect of referring and segmentation. For the second aspect, we introduce a novel PixelQA task that jointly requires object-centric referring, segmentation, and QA in videos, which cannot be handled by existing methods. UniPixel establishes a strong baseline for this novel setting. Our contributions are summarized below: + +1. We propose UniPixel, a unified large multi-modal model that supports flexible object referring and segmentation in images and videos, via a novel object memory bank design. +2. Our model achieves state-of-the-art performance on 10 public benchmarks across 9 referring/segmentation tasks, verifying the mutual reinforcement effect of such unification. +3. We also introduce a novel PixelQA task that jointly requires object-centric referring, segmentation, and QA in videos, where UniPixel establishes a strong baseline for this setting. + +# 2 Related Work + +Large Multi-modal Models The remarkable success of large multi-modal models (LMMs) has shifted the paradigm of visual-language understanding from close-ended experts to open-ended task solvers. Early attempts [43, 42, 17, 115] involve an MLP projector or Q-Former [34] to align visual encoders to LLMs, enabling open-ended tasks such as visual question answering. With advanced designs such as dynamic resolution and data augmentation, open-source models, e.g., Qwen-VL [2, 77, 3] and InternVL [14, 74, 13] series, have narrowed the gap with advanced proprietary models like the GPT [58, 59] and Gemini families [67, 18]. Recent studies [60, 25, 51, 37, 48] also explore test-time scaling on visual-language understanding. However, these methods are spatially coarse-grained. UniPixel can also be regarded as an object-centric test-time scaling approach, where key objects are first segmented then encoded to facilitate the subsequent reasoning process. + +Visual Referring and Segmentation To meet the growing demand for fine-grained visual understanding [50, 46, 47, 45, 84], recent efforts have focused on enhancing LMMs with object referring and segmentation capabilities, as compared in Fig. 2. LISA [32] is a representative model that enables LMM-based segmentation by integrating SAM [31] as its decoder. They also introduced a novel reasoning segmentation task, requiring models to perform segmentation based on implicit queries. Other works in this direction [104, 69, 110, 65, 27] have explored advanced mask decoders, more flexible tasks, and larger-scale datasets. Recent studies have also extended these capabilities to videos [4, 96, 101]. Additionally, some research has examined regional understanding through boxes [12] and masks [102, 103]. While recent approaches attempt to unify these two capabilities, they either support only images [65] or rely on sub-optimal, tool-based pipelines [23]. To the best of knowledge, UniPixel is the first end-to-end method unifying object referring and mask prediction. + +![](images/a3622479aa81da759e67d33e39c140ef21c4ea85fc48660ab611aa7858c6911d.jpg) +Figure 3: The architecture of UniPixel. Given a video, a question, and visual prompts, the model encodes them into tokens via the visual encoder, prompt encoder, and tokenizer, respectively, then predicts a spatial-temporal mask for each visual prompt via the mask decoder. The masks are updated into the object memory bank, and subsequently injected into the prompt for pixel-level reasoning. + +# 3 Method + +Problem Formulation We provide a unified definition for pixel-level reasoning tasks. Formally, the inputs are an image or a video $\mathcal{X}$ , a text prompt $\mathcal{T}$ , and $N$ optional visual prompts $\{\mathcal{P}_i\}_{i=1}^N$ where each $\mathcal{P}_i$ could be a point, box, or mask on a specific frame. The outputs are textual responses to the prompt with $K$ grounded spatial-temporal masks $\{\mathcal{M}_i\}_{i=1}^K$ . Here, both $N$ and $K$ could be zero (degenerating to a normal visual understanding task) and $K$ is not necessarily equal to $N$ , as the model may segment extra objects/regions that are not specified by the visual prompts. + +Overview Fig. 3 presents an overview of UniPixel. It is built upon the Qwen2.5-VL [3] framework, consisting of an LLM backbone and a ViT-based visual encoder that supports dynamic resolution inputs. Given a video and a text prompt, the model first tokenizes them via the visual encoder and text tokenizer, then sends them into the LLM for response generation. To boost this framework from holistic-level to pixel-level, we introduce (1) a prompt encoder (Sec.3.1) supporting three types of visual prompts, (2) an object memory bank (Sec.3.2) for storing object information and injecting it into the response generation process, and (3) a mask decoder (Sec.3.3) for generating spatial-temporal masks. We also extend the LLM's vocabulary by adding , , and tokens. The former two serve as placeholders in the input prompt that would be replaced by visual prompt and memory tokens, respectively, while the token is utilized to trigger and guide the mask decoding process. Detailed designs and interactions among these components are illustrated as follows. + +# 3.1 Prompt Encoder + +This module aims to effectively encode each visual prompt into a single token that can be processed by the LLM. We denote a point prompt as a tuple $(x,y,t)$ containing its spatial coordinates $(x,y)$ and the corresponding frame index $t$ . For box prompts, it is extended to $(x_{1},y_{1},x_{2},y_{2},t)$ containing the positions of top-left and bottom-right corners. A mask prompt is densely represented by a 2D binary mask $\mathbf{m}_{ij}\in \{0,1\}$ with the same shape as the encoded target frame. + +![](images/4595ce7c0e8fb1f75dc95338dbd36d46848192dac365420ae42cdf8977bb57fa.jpg) +Figure 4: Joint positional & temporal encoding for point $(\mathrm{X}_1\mathrm{Y}_1\mathrm{T})$ and box $(\mathrm{X}_1\mathrm{Y}_1\mathrm{X}_2\mathrm{Y}_2\mathrm{T})$ prompts. + +For sparse prompts (points and boxes), as shown in Fig. 4, we encode each position $(x_{i},y_{i})$ as the sum of a 2D Fourier embedding [73] and a learnable type embedding (indicating whether it is a single point, top-left corner, or bottom-right corner). For box prompts, we merge the two positional embeddings + +by concatenating them along the channel dimension and linearly projecting them back to the original size. Frame indices are also encoded similarly with 1D Fourier embeddings. The resulting positional and temporal embeddings are concatenated again, and then projected to the LLM's embedding space via a GELU $\rightarrow$ Linear block, such that the sparse coordinates in a point/box are encoded into a compact high-dimensional token. This design is inspired by [31, 66] with two key differences: (1) the spatial-only embeddings are extended to include temporal information, and (2) the negative points are discarded. For dense prompts (masks), we directly resize the binary masks and apply masked pooling on the outputs of the visual encoder. An M $\rightarrow$ L projector (Linear $\rightarrow$ GELU $\rightarrow$ Linear) is leveraged to project the pooled visual features to the LLM's embedding space. + +# 3.2 Object Memory Bank + +Although sparse prompts contain rich positional and temporal information indicating the objects that users are referring to, it is still hard for the model to focus on these important regions. Previous studies [12, 102, 103] also confirm that direct region cropping can generally provide better object awareness compared to positional pointers. To seamlessly integrate such a mechanism while preserving the flexibility of visual prompts (e.g., allow pointing on a single frame instead of drawing complete masks on all frames), we propose an object memory bank to bridge sparse visual prompts and dense object masks. This is a hashmap where the keys are object IDs and the values are the corresponding spatial-temporal masks. It is initialized as an empty storage for every chat session, and is dynamically updated on demand. We define two operations for the object memory bank, namely memory pre-filling and memory injection. Below is an example of memory-enhanced multi-round conversation. + +Prompt 1: How does the behavior of [1] differ from [2] and [3] + + detected, enhancing the prompt with object memory. + +# Memory Pre-filling Response: + +The relevant regions for this question are [1] $<\mathrm{SEG}>$ [2] $<\mathrm{SEG}>$ [3] $<\mathrm{SEG}>$ [4] $<\mathrm{SEG}>$ . ← 4 objects saved into the memory + +# Memory Injected Prompt: + +Here is a video with 4 frames denoted as $<1>$ to $<4>$ . The highlighted regions are as follows: + +[1]: <1> <2> <3> ← This object cannot be seen in the last frame +[2]:<1><2><3><4> +[3]:<1><2><3><4> +[4]:<1><2><3><4> +How does the behavior of [1] differ from [2] and [3]? + +Response 1: [1] appears disinterested and focuses on nibbling on the ground, while [2] is engaging with [4], who is offering some food to [2] and [3]. + +Prompt 2: What food is [4] offering? $\leftarrow$ Users can directly refer to objects in the memory + +Response 2: [4] is offering carrots. + +Memory Pre-filling This operation is triggered upon the detection of tokens in the input prompt, aiming to thoroughly analyze the referred objects and predict their corresponding masks. In this stage, the model responds with object IDs and tokens for the relevant objects according to the context, and predicts their spatial-temporal masks accordingly. These object-mask pairs are then saved into the object memory bank. + +Memory Injection We inject the features of the saved objects into the prompt to enhance object-awareness. Similar to the mask prompt encoder described in Sec. 3.1, each frame-level object mask is downsampled to match the resolution of visual tokens. We then apply masked pooling to aggregate object-centric features. Each frame-level mask is condensed into a single feature token, projected through the mask projector, and subsequently utilized to replace the corresponding token in the memory-injected prompt. Through this pre-filling and injection mechanism, object-centric information is effectively integrated into the model inference process. + +Why using object memory bank? An alternative is directly appending a token to each token, followed by masked pooled features obtained during inference. However, we do not adopt this approach for two reasons: (1) During mask prediction, the tokens, due to the unidirectional nature of causal self-attention, are unable to aggregate the full context of the prompt, thereby compromising the quality of predicted masks. (2) By utilizing the object memory bank, we can effectively decouple regional understanding and mask prediction, allowing each to benefit from referring and segmentation data during training, thus enhancing both capabilities. + +Table 1: Comparison with state-of-the-art methods on ReVOS [96] val split. The best and second-best results are marked bold and underlined, respectively. + +
MethodSizeReferringReasoningOverallR
JFJ&FJFJ&FJFJ&F
Non-LLM-based Specialists
MTTR [5]-29.830.230.020.421.521.025.125.925.55.6
LMPM [21]-29.039.134.113.324.318.821.231.726.43.2
ReferFormer [85]-31.234.332.721.325.623.426.229.928.18.8
LLM-based Generalists
LISA [32]13B45.247.946.634.339.136.739.843.541.68.6
TrackGPT [72]13B48.350.649.538.142.940.543.246.845.012.8
VISA [96]13B55.659.157.442.046.744.348.852.950.914.5
HyperSeg [81]3B56.060.958.550.255.853.053.158.455.7-
InstructSeg [82]3B54.859.257.049.254.751.952.056.954.5-
GLUS [39]7B56.060.758.348.853.951.452.457.354.917.9
ViLLa [112]6B------54.959.157.0-
Sa2VA [101]4B--------53.2-
UniPixel (Ours)3B62.366.764.557.162.159.659.764.462.119.0
UniPixel (Ours)7B63.967.865.859.463.761.561.765.763.719.4
+ +# 3.3 Mask Decoder + +We adopt SAM 2.1 [66] as the mask decoder to disentangle the discrete language modeling and continuous mask prediction capabilities. For each token, we extract its last-layer hidden states, downsample them via an $\mathrm{L} \rightarrow \mathrm{M}$ projector (architecturally identical to the $\mathrm{M} \rightarrow \mathrm{L}$ projector), and reshape them into two tokens. Using two tokens ensures better preservation of object information when downsampling from high- to low-dimensional channel space. These tokens prompt the mask decoder to predict the mask on the first frame, which is then propagated to the other frames. + +# 3.4 Model Training + +The training loss for UniPixel is a linear combination of language modeling loss and mask decoding losses [66], including a focal loss and dice loss for mask prediction, a mean-absolute-error (MAE) loss for IoU prediction, and a cross-entropy loss for objectness prediction. The loss weights are set to 1, 100, 5, 5, and 5, respectively. We train the model through a three-stage progressive alignment recipe. The datasets are listed in Tab. 12. In the first stage, we pre-train the sparse prompt encoder using $851\mathrm{K}$ regional captioning data. Then, we align the LLM and mask decoder by training the $\mathrm{L} \rightarrow \mathrm{M}$ projector on $87\mathrm{K}$ referring segmentation data. In the last stage, we further unfreeze the $\mathrm{M} \rightarrow \mathrm{L}$ projector and mask decoder, and apply LoRA [26] on the visual encoder and LLM. The model is jointly trained on a large-scale corpus with around 1M samples for diverse tasks. + +# 4 Experiments + +We evaluate the effectiveness of UniPixel by conducting extensive experiments across a diverse set of benchmarks. Specifically, we study the following research questions. + +Q1. Whether UniPixel is flexible and effective on basic image/video referring and segmentation tasks compared to the corresponding representative methods? +Q2. How does it perform on the more challenging PixelQA task, which requires joint referring, segmentation, and question answering in videos? +Q3. What effects does each architectural design contribute? More importantly, does the unified modeling of referring and segmentation lead to a mutual reinforcement effect? + +Detailed information about the benchmarks, evaluation metrics, implementation details, and more experimental results can be found in the appendix. + +# 4.1 Q1: Comparison with State-of-the-Arts on Referring and Segmentation Tasks + +Reasoning Video Object Segmentation We begin with the most challenging ReVOS [96] dataset, which requires models to predict masks based on implicit text queries demanding complex reasoning abilities based on world knowledge. The results are shown in Tab. 1. Our 3B variant outperforms all + +Table 2: Comparison with state-of-the-art methods on referring video object segmentation (RVOS) and motion-grounded video reasoning datasets, including MeViS [21] (val1), Ref-YouTube-VOS [71] (val1), Ref-DAVIS17 [62] (val1), and GroundMoRe [20] (test). The best and second-best results are marked bold and underlined, respectively. + +
MethodSizeMeViSRef-YouTube-VOSRef-DAVIS17GroundMoRe
JFJ&FJFJ&FJFJ&FJFJ&F
Non-LLM-based Specialists
ReferFormer [85]-29.832.231.061.364.662.958.164.161.111.214.312.7
LMPM [21]-34.240.237.2------12.714.013.3
OnlineRefer [83]----61.665.563.561.667.764.8---
LLM-based Generalists
PixelLM [69]7B36.341.138.754.355.755.063.470.066.79.910.010.0
LISA [32]13B35.840.037.954.054.854.463.268.866.06.36.76.5
VISA [96]13B41.847.144.561.464.763.067.073.870.45.34.75.9
VideoLISA [4]3.8B41.347.644.461.765.763.764.972.768.8---
VideoGLaMM [56]3.8B42.148.245.265.468.266.873.365.669.5---
ViLLa [112]6B46.552.349.464.670.467.570.678.074.3---
GLUS [39]7B48.554.251.365.569.067.3------
Sa2VA [101]4B--46.2--70.0--73.8---
MoRA [20]7B---------27.426.927.2
UniPixel (Ours)3B50.455.753.168.672.370.570.777.874.236.038.737.4
UniPixel (Ours)7B53.258.355.869.572.471.072.780.176.436.539.137.8
+ +Table 3: Comparison with state-of-the-art methods on image referring expression segmentation (RES) and reasoning segmentation datasets, including RefCOCO+/g [29, 55] and ReasonSeg [32] (val). The best and second-best results are marked bold and underlined, respectively. + +
MethodSizeRefCOCORefCOCO+RefCOCOgReasonSeg
valtestAtestBvaltestAtestBval(U)test(U)gIoUcIoU
Non-LLM-based Specialists
ReLU [41]-73.876.570.266.071.057.765.066.0--
X-Decoder [116]-------64.6-22.617.9
SEEM [117]-------65.7-25.521.2
LLM-based Image Generalists
NExT-Chat [104]7B74.778.969.565.171.956.767.067.0--
PixelLM [69]7B73.076.568.266.371.758.369.370.5--
LISA [32]7B74.979.172.365.170.858.167.970.661.362.9
Groundhog [110]7B78.579.975.770.575.064.974.174.656.2-
LaSagnA [80]7B76.878.773.866.470.660.170.671.948.847.2
M2SA [27]13B74.677.671.064.068.157.669.069.3--
LLM-based Video Generalists
VideoLISA [4]3.8B73.876.668.863.468.856.268.368.861.467.1
VISA [96]7B72.475.568.159.864.853.165.566.452.757.8
Vitron [23]7B75.579.572.266.772.558.067.968.9--
Sa2VA [101]4B78.9--71.7--74.1---
UniPixel (Ours)3B80.582.676.974.378.968.476.377.064.056.2
UniPixel (Ours)7B80.883.077.475.380.170.076.477.160.558.7
+ +existing methods with larger LLMs (including Sa2VA-4B [101] also with SAM 2 decoder), achieving 62.1 overall $\mathcal{J}\&\mathcal{F}$ . The 7B model further boosts the performance to 64.0 $\mathcal{J}\&\mathcal{F}$ - an improvement of $12\%$ over the previous state-of-the-art - demonstrating that UniPixel can effectively understand implicit queries based on its world knowledge, and accurately generate masks as responses. + +Referring Video Object Segmentation The performance comparisons on MeViS [21], Ref-YouTube-VOS [71], and Ref-DAVIS17 [62] datasets are presented in Tab. 2. UniPixel consistently achieves the best performance among its counterparts. Its advantage is particularly evident on the more challenging MeViS dataset, where our 3B model outperforms GLUS-7B [39] by around $3.5\%$ , as well as the similarly sized VideoGLaMM-3.8B [56] by $17\%$ . More experimental results on MeViS [21] val $^u$ set and Ref-SAV [101] val set are provided in Tab. 4 and Tab. 5, respectively. Ref-SAV features long referring descriptions, large object motion, large camera motion, and heavy occlusion compared with existing datasets. Given these complex descriptions and video content, our method consistently performs better than counterparts, including those fine-tuned on the target dataset. + +Motion-Grounded Video Reasoning We also evaluate our method on GroundMoRe [20] dataset (results shown in Tab. 2), which highlights visual answer generation that requires joint spatial and + +Table 4: Experimental results on MeViS [21] valu set. Post means applying post optimization. + +
MethodSizeFTJFJ&F
LMPM [21]-X36.543.940.2
LISA [32]7BX39.946.543.2
LISA [32] + XMem [15]7BX41.949.345.6
VideoLISA [4]7BX48.454.951.7
VideoLISA [4] + Post7BX50.958.154.5
Sa2VA [101]4BX--52.1
Sa2VA [101]8BX--57.0
UniPixel (Ours)3BX56.163.259.7
UniPixel (Ours)7BX58.465.061.7
+ +Table 5: Comparison on Ref-SAV [101] val set. FT means fine-tuning after pre-/co-training. + +
MethodSizeFTJFJ&F
UniRef++ [86]-X11.69.510.5
UNINEXT [95]-X8.86.47.6
LMPM [21]-X12.29.810.3
VISA [96]7BX13.211.311.8
Sa2VA [101]8BX39.643.041.3
UniRef++ [86]-✓15.813.414.6
Sa2VA [101]8B✓48.351.750.0
UniPixel (Ours)3BX66.967.667.2
UniPixel (Ours)7BX68.569.669.0
+ +Table 6: Fine-tuned performance on referring expression segmentation (RES) datasets, including Ref-COCO+/+g [29, 55]. The best and second-best results are marked **bold** and **underlined**, respectively. + +
MethodSizeRefCOCORefCOCO+RefCOCOg
valtestAtestBvaltestAtestBval(U)test(U)
LISA [32]7B74.979.172.365.170.858.167.970.6
GSVA [87]7B77.278.973.565.969.659.872.773.3
OMG-LLaVA [109]7B78.080.374.169.173.163.072.972.9
GLaMM [65]7B79.583.276.972.678.764.674.274.9
Sa2VA [101]4B80.4--74.3--75.7-
UniPixel (Ours)3B81.983.578.675.380.370.677.278.5
UniPixel (Ours)7B83.084.980.477.882.372.778.779.7
+ +Table 7: Experimental results on referring expression comprehension (REC) datasets, including Ref-COCO/+/g [29, 55]. The best and second-best results are marked bold and underlined, respectively. + +
MethodSizeRefCOCORefCOCO+RefCOCOg
valtestAtestBvaltestAtestBval(U)test(U)
OFA [78]-80.083.776.468.376.061.867.667.6
Shikra [9]7B87.090.680.281.687.472.182.382.2
MiniGPT-v2 [8]7B88.791.685.379.985.174.484.484.6
Vitron [23]7B90.993.289.383.789.176.986.487.0
UniPixel (Ours)3B91.893.887.586.390.880.388.088.2
UniPixel (Ours)7B92.094.488.187.291.982.188.688.7
+ +temporal grounding. Note that we mainly compare the results with MoRA [20], which is fine-tuned on GroundMoRe while other methods are evaluated under the zero-shot setting. Benefit from the strong pixel-level reasoning capability, UniPixel significantly performs better than the baseline. + +Referring Expression Segmentation and Reasoning Segmentation Tab. 3 compares the image segmentation capabilities using explicit and implicit queries. We evaluate our co-trained model on RefCOCO+/g [29, 55] and ReasonSeg [32]. While state-of-the-art performance has been achieved on RES datasets, we observe that the reasoning segmentation data (239 samples) can be easily overwhelmed by the other samples during training due to its limited size. Tab. 6 presents the RES performance after fine-tuning. We follow the common practice that jointly fine-tunes the model on RefCOCO+/g datasets [29, 55], and then evaluate on them separately. These results demonstrate the generalizability of UniPixel when facing both explicit and implicit queries. + +Referring Expression Comprehension Our method also supports referring expression comprehension by inferring the bounding boxes from predicted masks. Its performance (accuracy with IoU $\geqslant 0.5$ ) is compared with representative methods in Tab. 7. Benefiting from the high-quality mask prediction, UniPixel can also achieve very competitive performance on this simpler task. + +Referred Video Description and Question Answering We study UniPixel's regional understanding capabilities on VideoRefer-Bench [103], which contains two subsets for description and question answering tasks. The comparisons are in Tab. 8 and Tab. 9. BQ, SQ, RQ, CQ, and FP denote basic questions, sequential questions, relational questions, reasoning questions, and future predictions, respectively. Both tasks leverage mask prompts as inputs, where single-frame and multi-frame modes denote applying the masks only on a specific frame and on all frames, respectively. UniPixel can + +Table 8: Comparison with state-of-the-art methods on VideoRefer-BenchD [103]. The best and second-best results are marked bold and underlined, respectively. + +
MethodSizeSingle-FrameMulti-Frame
SCADTDHDAvg.SCADTDHDAvg.
General LMMs
LLaVA-OV [33]7B2.621.582.192.072.123.091.942.502.412.48
Qwen2-VL [77]7B2.972.242.032.312.393.302.542.222.122.55
InternVL2 [74]26B3.552.992.572.252.844.083.353.082.283.20
GPT-4o-mini [59]-3.562.852.872.382.923.893.182.622.503.05
GPT-4o [59]-3.342.963.012.502.954.153.313.112.433.25
Image Referring LMMs
Ferret [98]7B3.082.011.542.142.193.202.381.971.382.23
Osprey [102]7B3.192.161.542.452.343.302.662.101.582.41
Video Referring LMMs
Elysium [75]7B2.350.300.023.591.57-----
Artemis [63]7B-----3.421.341.392.902.26
VideoRefer [103]7B4.413.273.032.973.424.443.273.103.043.46
UniPixel (Ours)3B4.043.153.103.373.424.083.133.133.423.44
UniPixel (Ours)7B3.833.072.963.623.373.823.053.013.573.36
+ +Table 9: Comparison with state-of-the-art methods on VideoRefer-Bench $^{\text{Q}}$ [103] (mask prompts). MF denotes multi-frame mode. Full question types are in Sec. 4.1. + +
MethodSizeMFBQSQRQCQFPAvg.
General LMMs
LLaVA-OV [33]7BX58.762.964.787.476.367.4
Qwen2-VL [77]7BX62.069.654.987.374.666.0
InternVL2 [74]26BX58.563.553.488.078.965.0
GPT-4o-mini [59]-X57.667.156.585.975.465.8
GPT-4o [59]-X62.374.566.088.073.771.3
Image Referring LMMs
Ferret [98]7BX35.244.741.970.474.648.8
Osprey [102]7BX45.947.130.048.623.739.9
Video Referring LMMs
VideoRefer [103]7BX75.468.659.389.478.171.9
UniPixel (Ours)3BX73.670.360.788.878.072.2
UniPixel (Ours)7BX68.973.164.788.883.373.4
VideoRefer [103]7B✓-70.660.5--72.1
UniPixel (Ours)3B✓75.370.762.387.477.272.8
UniPixel (Ours)7B✓70.674.664.788.882.574.1
+ +Table 10: Evaluation results on our newly introduced PixelQA task. All the visual prompts are applied in a single frame. See Sec. 4.2 for detailed settings. + +
MethodSizeJFJ&FAcc
Point Prompts
InternVL2 [74]26B---60.8
Qwen2-VL [77]72B---69.3
UniPixel (Ours)3B57.364.460.971.1
UniPixel (Ours)7B42.147.144.671.4
Box Prompts
InternVL2 [74]26B---61.3
Qwen2-VL [77]72B---69.0
UniPixel (Ours)3B57.864.761.370.3
UniPixel (Ours)7B41.146.443.871.4
Mixed (50% Points + 50% Boxes)
InternVL2 [74]26B---60.9
Qwen2-VL [77]72B---69.1
UniPixel (Ours)3B57.264.160.670.8
UniPixel (Ours)7B42.347.544.971.4
+ +effectively comprehend both types of prompts, and accurately respond with object-centric descriptions or answers, surpassing strong models including GPT-4o [59] and VideoRefer [103]. + +# 4.2 Q2: Pixel-Level Video Question Answering (PixelQA) + +We design the new PixelQA task based on VideoRefer-Bench $^{\text{Q}}$ [103], where the original mask prompts are replaced with more challenging point or box prompts. Given these ambiguous visual cues, models are expected to correctly identify the target object according to the question and the visual prompt, then respond with both the textual answer and the corresponding object masks. We report the mask prediction $\mathcal{I} \& \mathcal{F}$ and MCQ accuracy in Tab. 10. Note that none of the existing methods supports this scenario. Thus, we apply set-of-mark prompts [97] directly on video frames, and evaluate the QA accuracies of two strong LMMs [77, 74] as our baselines. Aside from point- or box-only prompts, we also explore a more flexible setting that randomly chooses different prompts for different objects. The results verify that our memory pre-filling & injection paradigm effectively enhances the model's reasoning capabilities. Visualizations of this task are shown in Fig. 5. + +# 4.3 Q3: Key Ablation Studies + +Effect of Task Unification We study the effect of task unification in Tab. 11 (a). Unifying referring and segmentation capabilities into a single model and training them jointly leads to better results + +![](images/fed3eced9fec65b6fd71b568917fd0ee46ca0ee6d269bb3a5443313b32dabbf2.jpg) +If [1] continues moving forward, what is a likely future event? +What is a likely future event with [2]? + +![](images/73e95afe7568bdf8dd2614f4b9617cd70b34f6693e90d2d475d30221d7027ba4.jpg) +(A) The bear will encounter other animals (B) The bear will find a place to rest (C) The bear will start running (D) The bear will climb the stone wall + +![](images/6ec2ab668ff445083af57c5bd462b1a8d5f92ad2f56459b772e334d4f675d8fd.jpg) + +![](images/baf7ce051f86c86dbb8fc63ddfcccef0d37b3c61e1669c4bd941255ffcdb0b56.jpg) + +![](images/3b0e4beb650b1d3d2cf284d02a21ab1f0efab1ea3c283aa8407f5c99c3b6dea8.jpg) + +![](images/8d75b14646973ebe0609edf5811f0752e8596c9b4291f18ee63137af8c0dcb00.jpg) + +![](images/972e151b3fde7ec906816bc35ce14faf2a47b6df4501e342dd4bcec51c29801a.jpg) + +![](images/ed7853322e16a00bbcebd81d5e19c44167d72f57d68314776589387258d1eb99.jpg) +(A) He will stop and rest (B) He will start walking slowly (C) He will continue to navigate through more obstacles (D) He will sit down and take a break +How is [4] related to [2]? + +![](images/185ff2ad27d7981ac68f73eb48e743e952794bdc011c10efd89dafccccee8dd3.jpg) + +![](images/d5fd0922016cefa5eb9d19545911732fa1cf17d23b7406d980685cfbca06bb86.jpg) + +![](images/965da8e0e5b991e5761cedfd868bc0292feee6ad5cd46edc176d941d060ab3cd.jpg) + +![](images/ae4c619c3c28f15c06e8d35ba31ed94a92a5d9b2c1651284545ee89618604b77.jpg) + +![](images/d70e4c3e7923efdf7c844a3e784aed126e290ec4f80f5ec0010769511647630c.jpg) + +![](images/0542bb8dd20fa5a5ee76fce094f38c1fc0e4998555a56e927ed31462da272834.jpg) + +![](images/5d7584af293026973f36e228731dc8a1d32b793edae547f2a3c62fac464434cc.jpg) +(A) [4] is holding [2] (B) [4] is controlling [2] with a leash (C) [4] is walking away from [2] (D) [4] is ignoring [2] +Figure 5: Visualization of the outputs from UniPixel on PixelQA task. Star marks and boxes refer to point and box prompts, respectively. The boxed frames denote where the visual prompts are applied. Given different types of visual prompts on a single frame, our method can flexibly infer the relevant object, track it across the entire video, and involve its features in reasoning. + +![](images/1a9c0ee843a28cbcd22bf4364768a887e4b9ce9a966e31e9e25ae1cad53d05ea.jpg) + +![](images/4e1d033b71672015bbd823120519d86a81978775382716e3607eb2d541cfb94a.jpg) + +![](images/ebfc9f11c2927927cfc476a00fcad3f85affa1b428b9be8552c727494299ec02.jpg) + +![](images/a921225ff8d1f3f06f3f52e1ee0b7e2e5cfdccd565f4ce1c20c769885716c099.jpg) + +![](images/c37b4b2cab3daf0cc0da86e8a837fea42bc94721a1430519d976fb53340864a6.jpg) + +![](images/144b7c7e25f74706a7fcc9af73acf4e6bbc40eaec1bd9f6b18925b97e92c1be4.jpg) + +Table 11: Key ablation studies with UniPixel-3B on PixelQA (mixed). See Sec. 4.3 for explanations. +(a) Task Unification + +
ReferSegmentMemoryJ&FAcc
✓-64.6
✓47.5-
✓✓48.267.4
✓✓✓49.068.5
+ +(b) Object Memory Bank + +
Referring MethodJ&FAcc
①<REF>46.864.5
②<REF><SEG>47.864.9
③<REF><SEG>+Pooling47.566.3
④ Object Memory Bank49.068.5
+ +(c) Prompt Encoder & Mask Decoder + +
EncoderDecoderJ&FAcc
w/o Time-44.363.7
w/ Time-49.068.5
-Independent46.166.2
-Propagation49.068.5
+ +on both tasks (first three rows), demonstrating the mutual reinforcement effect of such unification. Incorporating memory pre-filling as an auxiliary task (last row) brings extra improvements. + +Effect of Object Memory Bank Tab. 11 (b) verifies the effectiveness of object memory bank. $①$ means using a single token for each referred object. $②$ means adding an extra segmentation token to segment it as an auxiliary task. $③$ further appends masked-pooled visual tokens after it. The results show that (1) both adding auxiliary segmentation task and masked-pooled features help regional understanding, and (2) decoupling them via object memory bank can further boost the performance. + +Design Space of Prompt Encoder & Mask Decoder We compare different prompt encoder and mask decoder designs in Tab. 11 (c). The performance significantly drops when the temporal encoding in the prompt encoder is removed (first two rows). For the mask decoder (last two rows), we explore an alternative strategy that treats video frames independently (as batched images), which could largely accelerate inference but lead to sub-optimal accuracies. We hypothesize that this is because the LLM-generated token cannot well-capture the object information in all frames, thus disentangling the segmentation and tracking capabilities to an external module is reasonable. + +# 5 Conclusion + +In this work, we proposed UniPixel, a large multi-modal model that supports flexible pixel-level visual reasoning. It unifies the internal representations of referred and segmented objects through a novel object memory bank. We observe that by such unification, the performance of object referring and segmentation can be jointly enhanced. Extensive experiments on diverse pixel-level understanding tasks, including the PixelQA task, demonstrate the significance of the proposed method. We hope this work inspires future advancements in pixel-level visual understanding. + +# Acknowledgements + +This study was supported by The Hong Kong RGC Grant (15229423) and a financial support from ARC Lab, Tencent PCG (ZGG9). We also acknowledge The University Research Facility in Big Data Analytics (UBDA) at The Hong Kong Polytechnic University for providing computing resources that have contributed to the research results reported within this paper. + +# References + +[1] Ali Athar, Xueqing Deng, and Liang-Chieh Chen. Vicas: A dataset for combining holistic and pixel-level video understanding using captions with grounded segmentation. arXiv:2412.09754, 2024. +[2] Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, and Jingren Zhou. Qwen-vl: A versatile vision-language model for understanding, localization, text reading, and beyond. 2023. +[3] Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, et al. Qwen2.5-vl technical report. arXiv:2502.13923, 2025. +[4] Zechen Bai, Tong He, Haiyang Mei, Pichao Wang, Ziteng Gao, Joya Chen, Zheng Zhang, and Mike Zheng Shou. One token to seg them all: Language instructed reasoning segmentation in videos. In NeurIPS, pages 6833-6859, 2024. +[5] Adam Botach, Evgenii Zheltonozhskii, and Chaim Baskin. End-to-end referring video object segmentation with multimodal transformers. In CVPR, pages 4985-4995, 2022. +[6] Fabian Caba Heilbron, Victor Escorcia, Bernard Ghanem, and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In CVPR, pages 961-970, 2015. +[7] Holger Caesar, Jasper Uijlings, and Vittorio Ferrari. Coco-stuff: Thing and stuff classes in context. In CVPR, pages 1209-1218, 2018. +[8] Jun Chen, Deyao Zhu, Xiaoqian Shen, Xiang Li, Zechun Liu, Pengchuan Zhang, Raghuraman Krishnamoorthi, Vikas Chandra, Yunyang Xiong, and Mohamed Elhoseiny. Minigptv2: large language model as a unified interface for vision-language multi-task learning. arXiv:2310.09478, 2023. +[9] Keqin Chen, Zhao Zhang, Weili Zeng, Richong Zhang, Feng Zhu, and Rui Zhao. Shikra: Unleashing multimodal llm's referential dialogue magic. arXiv:2306.15195, 2023. +[10] Xianjie Chen, Roozbeh Mottaghi, Xiaobai Liu, Sanja Fidler, Raquel Urtasun, and Alan Yuille. Detect what you can: Detecting and representing objects using holistic models and body parts. In CVPR, pages 1971-1978, 2014. +[11] Yuan Chen, Zi-han Ding, Ziqin Wang, Yan Wang, Lijun Zhang, and Si Liu. Asynchronous large language model enhanced planner for autonomous driving. In ECCV, pages 22-38, 2024. +[12] Zewen Chen, Juan Wang, Wen Wang, Sunhan Xu, Hang Xiong, Yun Zeng, Jian Guo, Shuxun Wang, Chunfeng Yuan, Bing Li, othersShilong Zhang, Peize Sun, Shoufa Chen, Min Xiao, Wenqi Shao, Wenwei Zhang, Yu Liu, Kai Chen, and Ping Luo. Gpt4roi: Instruction tuning large language model on region-of-interest. arXiv:2307.03601, 2023. +[13] Zhe Chen, Weiyun Wang, Yue Cao, Yangzhou Liu, Zhangwei Gao, Erfei Cui, Jinguo Zhu, Shenglong Ye, Hao Tian, Zhaoyang Liu, et al. Expanding performance boundaries of open-source multimodal models with model, data, and test-time scaling. arXiv:2412.05271, 2024. +[14] Zhe Chen, Jiannan Wu, Wenhai Wang, Weijie Su, Guo Chen, Sen Xing, Zhong Muyan, Qinglong Zhang, Xizhou Zhu, Lewei Lu, et al. Internvl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks. arXiv:2312.14238, 2023. +[15] Ho Kei Cheng and Alexander G Schwing. Xmem: Long-term video object segmentation with an atkinson-shiffrin memory model. In ECCV, pages 640-658, 2022. +[16] Can Cui, Yunsheng Ma, Xu Cao, Wenqian Ye, Yang Zhou, Kaizhao Liang, Jintai Chen, Juanwu Lu, Zichong Yang, Kuei-Da Liao, et al. A survey on multimodal large language models for autonomous driving. In WACV, pages 958-979, 2024. +[17] Wenliang Dai, Junnan Li, Dongxu Li, Anthony Meng Huat Tiong, Junqi Zhao, Weisheng Wang, Boyang Li, Pascale N Fung, and Steven Hoi. Instructlip: Towards general-purpose vision-language models with instruction tuning. In NeurIPS, 2024. + +[18] Google DeepMind. Introducing gemini 2.0: our new ai model for the agentic era, 2024. +[19] Google DeepMind. Gemini 2.5: Our most intelligent ai model, 2025. +[20] Andong Deng, Tongjia Chen, Shoubin Yu, Taojiannan Yang, Lincoln Spencer, Yapeng Tian, Ajmal Saeed Mian, Mohit Bansal, and Chen Chen. Motion-grounded video reasoning: Understanding and perceiving motion at pixel level. arXiv:2411.09921, 2024. +[21] Henghui Ding, Chang Liu, Shuting He, Xudong Jiang, and Chen Change Loy. Mevis: A large-scale benchmark for video segmentation with motion expressions. In ICCV, pages 2694-2703, 2023. +[22] Danny Driess, Fei Xia, Mehdi SM Sajjadi, Corey Lynch, Aakanksha Chowdhery, Ayzaan Wahid, Jonathan Tompson, Quan Vuong, Tianhe Yu, Wenlong Huang, et al. Palm-e: An embodied multimodal language model. arXiv:2303.03378, 2023. +[23] Hao Fei, Shengqiong Wu, Hanwang Zhang, Tat-Seng Chua, and Shuicheng Yan. Vitron: A unified pixel-level vision llm for understanding, generating, segmenting, editing. arXiv:2412.19806, 2024. +[24] Chaoyou Fu, Yuhan Dai, Yongdong Luo, Lei Li, Shuhuai Ren, Renrui Zhang, Zihan Wang, Chenyu Zhou, Yunhang Shen, Mengdan Zhang, et al. Video-mme: The first-ever comprehensive evaluation benchmark of multi-modal llms in video analysis. arXiv:2405.21075, 2024. +[25] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, Shirong Ma, Peiyi Wang, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv:2501.12948, 2025. +[26] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuzhhi Li, Shean Wang, Lu Wang, Weizhu Chen, et al. Lora: Low-rank adaptation of large language models. *ICLR*, 2022. +[27] Donggon Jang, Yucheol Cho, Suin Lee, Taehyeon Kim, and Dae-Shik Kim. Mmr: A large-scale benchmark dataset for multi-target and multi-granularity reasoning segmentation. arXiv:2503.13881, 2025. +[28] Yunseok Jang, Yale Song, Youngjae Yu, Youngjin Kim, and Gunhee Kim. Tgif-qa: Toward spatio-temporal reasoning in visual question answering. In CVPR, pages 2758-2766, 2017. +[29] Sahar Kazemzadeh, Vicente Ordonez, Mark Matten, and Tamara Berg. Referitgame: Referring to objects in photographs of natural scenes. In EMNLP, pages 787-798, 2014. +[30] Moo Jin Kim, Karl Pertsch, Siddharth Karamcheti, Ted Xiao, Ashwin Balakrishna, Suraj Nair, Rafael Rafailov, Ethan Foster, Grace Lam, Pannag Sanketi, et al. Openvla: An open-source vision-language-action model. arXiv:2406.09246, 2024. +[31] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In ICCV, pages 4015-4026, 2023. +[32] Xin Lai, Zhuotao Tian, Yukang Chen, Yanwei Li, Yuhui Yuan, Shu Liu, and Jiaya Jia. Lisa: Reasoning segmentation via large language model. In CVPR, pages 9579-9589, 2024. +[33] Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Peiyuan Zhang, Yanwei Li, Ziwei Liu, et al. Llava-onevision: Easy visual task transfer. arXiv:2408.03326, 2024. +[34] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In ICML, pages 19730–19742, 2023. +[35] Kunchang Li, Yinan He, Yi Wang, Yizhuo Li, Wenhai Wang, Ping Luo, Yali Wang, Limin Wang, and Yu Qiao. Videochat: Chat-centric video understanding. arXiv:2305.06355, 2023. + +[36] Kunchang Li, Yali Wang, Yinan He, Yizhuo Li, Yi Wang, Yi Liu, Zun Wang, Jilan Xu, Guo Chen, Ping Luo, et al. Mvbench: A comprehensive multi-modal video understanding benchmark. In CVPR, pages 22195-22206, 2024. +[37] Zongzhao Li, Zongyang Ma, Mingze Li, Songyou Li, Yu Rong, Tingyang Xu, Ziqi Zhang, Deli Zhao, and Wenbing Huang. Star-r1: Spacial transformation reasoning by reinforcing multimodal llms. arXiv:2505.15804, 2025. +[38] Bin Lin, Bin Zhu, Yang Ye, Munan Ning, Peng Jin, and Li Yuan. Video-llava: Learning united visual representation by alignment before projection. arXiv:2311.10122, 2023. +[39] Lang Lin, Xueyang Yu, Ziqi Pang, and Yu-Xiong Wang. Glus: Global-local reasoning unified into a single large language model for video segmentation. arXiv:2504.07962, 2025. +[40] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, pages 740-755, 2014. +[41] Chang Liu, Henghui Ding, and Xudong Jiang. Gres: Generalized referring expression segmentation. In CVPR, pages 23592-23601, 2023. +[42] Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. Improved baselines with visual instruction tuning. In CVPR, pages 26296-26306, 2024. +[43] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. In NeurIPS, pages 34892-34916, 2023. +[44] Ruyang Liu, Chen Li, Haoran Tang, Yixiao Ge, Ying Shan, and Ge Li. St-llm: Large language models are effective temporal learners. In ECCV, pages 1–18, 2024. +[45] Ye Liu, Jixuan He, Wanhua Li, Junsik Kim, Donglai Wei, Hanspeter Pfister, and Chang Wen Chen. $r^2$ -tuning: Efficient image-to-video transfer learning for video temporal grounding. In ECCV, 2024. +[46] Ye Liu, Huifang Li, Chao Hu, Shuang Luo, Yan Luo, and Chang Wen Chen. Learning to aggregate multi-scale context for instance segmentation in remote sensing images. IEEE Transactions on Neural Networks and Learning Systems, 36(1):595-609, 2024. +[47] Ye Liu, Siyuan Li, Yang Wu, Chang Wen Chen, Ying Shan, and Xiaohu Qie. Umt: Unified multi-modal transformers for joint video moment retrieval and highlight detection. In CVPR, pages 3042–3051, 2022. +[48] Ye Liu, Kevin Qinghong Lin, Chang Wen Chen, and Mike Zheng Shou. Videomind: A chain-of-lora agent for long video reasoning. arXiv:2503.13444, 2025. +[49] Ye Liu, Zongyang Ma, Zhongang Qi, Yang Wu, Ying Shan, and Chang W Chen. E.t. bench: Towards open-ended event-level video-language understanding. In NeurIPS, pages 32076-32110, 2024. +[50] Ye Liu, Junsong Yuan, and Chang Wen Chen. Consnet: Learning consistency graph for zero-shot human-object interaction detection. In ACM MM, pages 4235-4243, 2020. +[51] Zongyang Ma, Yuxin Chen, Ziqi Zhang, Zhongang Qi, Chunfeng Yuan, Shaojie Zhu, Chengxiang Zhuo, Bing Li, Ye Liu, Zang Li, Ying Shan, and Weiming Hu. Visionmath: Vision-form mathematical problem-solving. In ICCV, 2025. +[52] Muhammad Maaz, Hanoona Rasheed, Salman Khan, and Fahad Khan. Videogpt+: Integrating image and video encoders for enhanced video understanding. arXiv:2406.09418, 2024. +[53] Muhammad Maaz, Hanoona Rasheed, Salman Khan, and Fahad Shahbaz Khan. Video-chatgpt: Towards detailed video understanding via large vision and language models. arXiv:2306.05424, 2023. +[54] Karttikeya Mangalam, Raiymbek Akshulakov, and Jitendra Malik. Egoschema: A diagnostic benchmark for very long-form video language understanding. In NeurIPS, 2024. + +[55] Junhua Mao, Jonathan Huang, Alexander Toshev, Oana Camburu, Alan L Yuille, and Kevin Murphy. Generation and comprehension of unambiguous object descriptions. In CVPR, pages 11-20, 2016. +[56] Shehan Munasinghe, Hanan Gani, Wenqi Zhu, Jiale Cao, Eric Xing, Fahad Shahbaz Khan, and Salman Khan. Videoglamm: A large multimodal model for pixel-level visual grounding in videos. arXiv:2411.04923, 2024. +[57] Gerhard Neuhold, Tobias Ollmann, Samuel Rota Bulo, and Peter Kontschieder. The mapillary vistas dataset for semantic understanding of street scenes. In ICCV, pages 4990-4999, 2017. +[58] OpenAI. Gpt-4v(ision) system card, 2023. +[59] OpenAI. Gpt-4o system card, 2024. +[60] OpenAI. Openai o1 system card, 2024. +[61] Wujian Peng, Lingchen Meng, Yitong Chen, Yiweng Xie, Yang Liu, Tao Gui, Hang Xu, Xipeng Qiu, Zuxuan Wu, and Yu-Gang Jiang. Inst-it: Boosting multimodal instance understanding via explicit visual prompt instruction tuning. arXiv:2412.03565, 2024. +[62] Jordi Pont-Tuset, Federico Perazzi, Sergi Caelles, Pablo Arbeláez, Alex Sorkine-Hornung, and Luc Van Gool. The 2017 davis challenge on video object segmentation. arXiv:1704.00675, 2017. +[63] Jihao Qiu, Yuan Zhang, Xi Tang, Lingxi Xie, Tianren Ma, Pengyu Yan, David Doermann, Qixiang Ye, and Yunjie Tian. Artemis: Towards referential understanding in complex videos. In NeurIPS, 2024. +[64] Vignesh Ramanathan, Anmol Kalia, Vladan Petrovic, Yi Wen, Baixue Zheng, Baishan Guo, Rui Wang, Aaron Marquez, Rama Kovvuri, Abhishek Kadian, et al. Paco: Parts and attributes of common objects. In CVPR, pages 7141-7151, 2023. +[65] Hanoona Rasheed, Muhammad Maaz, Sahal Shaji, Abdelrahman Shaker, Salman Khan, Hisham Cholakkal, Rao M Anwer, Eric Xing, Ming-Hsuan Yang, and Fahad S Khan. Glamm: Pixel grounding large multimodal model. In CVPR, pages 13009-13018, 2024. +[66] Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Radle, Chloe Rolland, Laura Gustafson, et al. Sam 2: Segment anything in images and videos. arXiv:2408.00714, 2024. +[67] Machel Reid, Nikolay Savinov, Denis Teplieshin, Dmitry Lepikhin, Timothy Lillicrap, Jean-baptiste Alayrac, Radu Soricut, Angeliki Lazaridou, Orhan Firat, Julian Schrittwieser, et al. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. arXiv:2403.05530, 2024. +[68] Shuhuai Ren, Linli Yao, Shicheng Li, Xu Sun, and Lu Hou. Timechat: A time-sensitive multimodal large language model for long video understanding. In CVPR, pages 14313-14323, 2024. +[69] Zhongwei Ren, Zhicheng Huang, Yunchao Wei, Yao Zhao, Dongmei Fu, Jiashi Feng, and Xiaojie Jin. Pixel reasoning with large multimodal model. In CVPR, pages 26374-26383, 2024. +[70] Chaitanya Ryali, Yuan-Ting Hu, Daniel Bolya, Chen Wei, Haoqi Fan, Po-Yao Huang, Vaibhav Aggarwal, Arkabandhu Chowdhury, Amid Poursaeed, Judy Hoffman, et al. Hiera: A hierarchical vision transformer without the bells-and-whistles. In ICML, pages 29441-29454, 2023. +[71] Seonguk Seo, Joon-Young Lee, and Bohyung Han. Urvos: Unified referring video object segmentation network with a large-scale benchmark. In ECCV, pages 208–223, 2020. +[72] Nicholas Stroh. Trackgpt-a generative pre-trained transformer for cross-domain entity trajectory forecasting. arXiv:2402.00066, 2024. + +[73] Matthew Tancik, Pratul Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. In NeurIPS, pages 7537–7547, 2020. +[74] OpenGVLab Team. Internvl2: Better than the best—expanding performance boundaries of open-source multimodal models with the progressive scaling strategy, 2024. +[75] Han Wang, Yongjie Ye, Yanjie Wang, Yuxiang Nie, and Can Huang. Elysium: Exploring object-level perception in videos via mllm. In ECCV, pages 166-185, 2024. +[76] Haochen Wang, Cilin Yan, Shuai Wang, Xiaolong Jiang, Xu Tang, Yao Hu, Weidi Xie, and Efstratios Gavves. Towards open-vocabulary video instance segmentation. In ICCV, pages 4057-4066, 2023. +[77] Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, et al. Qwen2-vl: Enhancing vision-language model's perception of the world at any resolution. arXiv:2409.12191, 2024. +[78] Peng Wang, An Yang, Rui Men, Junyang Lin, Shuai Bai, Zhikang Li, Jianxin Ma, Chang Zhou, Jingren Zhou, and Hongxia Yang. Ofa: Unifying architectures, tasks, and modalities through a simple sequence-to-sequence learning framework. In ICML, pages 23318-23340, 2022. +[79] Shihao Wang, Zhiding Yu, Xiaohui Jiang, Shiyi Lan, Min Shi, Nadine Chang, Jan Kautz, Ying Li, and Jose M Alvarez. Omnidrive: A holistic llm-agent framework for autonomous driving with 3d perception, reasoning and planning. arXiv:2405.01533, 2024. +[80] Cong Wei, Haoxian Tan, Yujie Zhong, Yujiu Yang, and Lin Ma. Lasagna: Language-based segmentation assistant for complex queries. arXiv:2404.08506, 2024. +[81] Cong Wei, Yujie Zhong, Haoxian Tan, Yong Liu, Zheng Zhao, Jie Hu, and Yujiu Yang. Hyperseg: Towards universal visual segmentation with large language model. arXiv:2411.17606, 2024. +[82] Cong Wei, Yujie Zhong, Haoxian Tan, Yingsen Zeng, Yong Liu, Zheng Zhao, and Yujiu Yang. Instructseg: Unifying instructed visual segmentation with multi-modal large language models. arXiv:2412.14006, 2024. +[83] Dongming Wu, Tiancai Wang, Yuang Zhang, Xiangyu Zhang, and Jianbing Shen. Onlinerefer: A simple online baseline for referring video object segmentation. In ICCV, pages 2761-2770, 2023. +[84] Jianlong Wu, Wei Liu, Ye Liu, Meng Liu, Liqiang Nie, Zhouchen Lin, and Chang Wen Chen. A survey on video temporal grounding with multimodal large language model. arXiv:2508.10922, 2025. +[85] Jiannan Wu, Yi Jiang, Peize Sun, Zehuan Yuan, and Ping Luo. Language as queries for referring video object segmentation. In CVPR, pages 4974-4984, 2022. +[86] Jiannan Wu, Yi Jiang, Bin Yan, Huchuan Lu, Zehuan Yuan, and Ping Luo. Segment every reference object in spatial and temporal spaces. In ICCV, pages 2538-2550, 2023. +[87] Zhuofan Xia, Dongchen Han, Yizeng Han, Xuran Pan, Shiji Song, and Gao Huang. Gsva: Generalized segmentation via multimodal large language models. In CVPR, pages 3858-3869, 2024. +[88] Linshan Xie, Xuehong Lin, Xunda Wang, Junjian Wen, Teng Ma, Jiahao Hu, Peng Cao, Alex TL Leong, and Ed X Wu. Simultaneous eeg-fmri reveals spontaneous neural oscillatory activity in cingulate cortex underlying transient rsfmri network dynamics. In ISMRM, 2024. +[89] Linshan Xie, Xunda Wang, Xuehong Lin, Teng Ma, Junjian Wen, Peng Cao, Alex TL Leong, and Ed X Wu. Single-pulse optogenetic perturbation of thalamo-cortical networks reveals functional architecture of rsfmri networks. In ISMRM, 2024. + +[90] Linshan Xie, Xunda Wang, Xuehong Lin, Junjian Wen, Teng Ma, Alex TL Leong, and Ed X Wu. Brain-wide resting-state fmri network dynamics elicited by activation of single thalamic input. Nature Communications, 2025. +[91] Linshan Xie, Xunda Wang, Teng Ma, Pit Shan Chong, Lee Wei Lim, Peng Cao, Pek-Lan Khong, Ed X Wu, and Alex TL Leong. Are topographically segregated excitatory neurons in visual thalamus functionally diverse? an optogenetic fmri study. In ISMRM, 2022. +[92] Linshan Xie, Xunda Wang, Teng Ma, Hang Zeng, Junjian Wen, Peng Cao, Ed X Wu, and Alex TL Leong. Short single pulse optogenetic fmri mapping of downstream targets in thalamo-cortical pathways. In ISMRM, 2023. +[93] Dejing Xu, Zhou Zhao, Jun Xiao, Fei Wu, Hanwang Zhang, Xiangnan He, and Yueting Zhuang. Video question answering via gradually refined attention over appearance and motion. In ACM MM, pages 1645-1653, 2017. +[94] Lin Xu, Yilin Zhao, Daquan Zhou, Zhijie Lin, See Kiong Ng, and Jiashi Feng. Pllava: Parameter-free llava extension from images to videos for video dense captioning. arXiv:2404.16994, 2024. +[95] Bin Yan, Yi Jiang, Jiannan Wu, Dong Wang, Ping Luo, Zehuan Yuan, and Hutchuan Lu. Universal instance perception as object discovery and retrieval. In CVPR, pages 15325-15336, 2023. +[96] Cilin Yan, Haochen Wang, Shilin Yan, Xiaolong Jiang, Yao Hu, Guoliang Kang, Weidi Xie, and Efstratios Gavves. Visa: Reasoning video object segmentation via large language models. In ECCV, pages 98-115, 2024. +[97] Jianwei Yang, Hao Zhang, Feng Li, Xueyan Zou, Chunyuan Li, and Jianfeng Gao. Set-of-mark prompting unleashes extraordinary visual grounding in gpt-4v. arXiv:2310.11441, 2023. +[98] Haoxuan You, Haotian Zhang, Zhe Gan, Xianzhi Du, Bowen Zhang, Zirui Wang, Liangliang Cao, Shih-Fu Chang, and Yinfei Yang. Ferret: Refer and ground anything anywhere at any granularity. arXiv:2310.07704, 2023. +[99] Samson Yu, Kelvin Lin, Anxing Xiao, Jiafei Duan, and Harold Soh. Octopi: Object property reasoning with large tactile-language models. arXiv:2405.02794, 2024. +[100] Zhou Yu, Dejing Xu, Jun Yu, Ting Yu, Zhou Zhao, Yueting Zhuang, and Dacheng Tao. Activitynet-qa: A dataset for understanding complex web videos via question answering. In AAAI, pages 9127–9134, 2019. +[101] Haobo Yuan, Xiangtai Li, Tao Zhang, Zilong Huang, Shilin Xu, Shunping Ji, Yunhai Tong, Lu Qi, Jiashi Feng, and Ming-Hsuan Yang. Sa2va: Marrying sam2 with llava for dense grounded understanding of images and videos. arXiv:2501.04001, 2025. +[102] Yuqian Yuan, Wentong Li, Jian Liu, Dongqi Tang, Xinjie Luo, Chi Qin, Lei Zhang, and Jianke Zhu. Osprey: Pixel understanding with visual instruction tuning. In CVPR, pages 28202-28211, 2024. +[103] Yuqian Yuan, Hang Zhang, Wentong Li, Zesen Cheng, Boqiang Zhang, Long Li, Xin Li, Deli Zhao, Wenqiao Zhang, Yueting Zhuang, et al. Videorefer suite: Advancing spatial-temporal object understanding with video llm. arXiv:2501.00599, 2024. +[104] Ao Zhang, Yuan Yao, Wei Ji, Zhiyuan Liu, and Tat-Seng Chua. Next-chat: An Imm for chat, detection and segmentation. arXiv:2311.04498, 2023. +[105] Hang Zhang, Xin Li, and Lidong Bing. Video-llama: An instruction-tuned audio-visual language model for video understanding. arXiv:2306.02858, 2023. +[106] Jiawei Zhang, Chejian Xu, and Bo Li. Chatscene: Knowledge-enabled safety-critical scenario generation for autonomous vehicles. In CVPR, pages 15459-15469, 2024. + +[107] Peirong Zhang, Haowei Xu, Jiaxin Zhang, Guitao Xu, Xuhan Zheng, Zhenhua Yang, Junle Liu, Yuyi Zhang, and Lianwen Jin. Aesthetics is cheap, show me the text: An empirical evaluation of state-of-the-art generative models forOCR.arXiv:2507.15085, 2025. +[108] Peirong Zhang, Jiaxin Zhang, Jiahuan Cao, Hongliang Li, and Lianwen Jin. Smaller but better: Unifying layout generation with smaller large language models. International Journal of Computer Vision, 133:3891-3917, 2025. +[109] Tao Zhang, Xiangtai Li, Hao Fei, Haobo Yuan, Shengqiong Wu, Shunping Ji, Chen Change Loy, and Shuicheng Yan. Omg-llava: Bridging image-level, object-level, pixel-level reasoning and understanding. In NeurIPS, pages 71737–71767, 2024. +[110] Yichi Zhang, Ziqiao Ma, Xiaofeng Gao, Suhaila Shakiah, Qiaozi Gao, and Joyce Chai. Groundhog: Grounding large language models to holistic segmentation. In CVPR, pages 14227-14238, 2024. +[111] Xufeng Zhao, Mengdi Li, Cornelius Weber, Muhammad Burhan Hafez, and Stefan Wermter. Chat with the environment: Interactive multimodal perception using large language models. In IROS, pages 3590-3596, 2023. +[112] Rongkun Zheng, Lu Qi, Xi Chen, Yi Wang, Kun Wang, Yu Qiao, and Hengshuang Zhao. Villa: Video reasoning segmentation with large language model. arXiv:2407.14500, 2024. +[113] Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ade20k dataset. In CVPR, pages 633-641, 2017. +[114] Luowei Zhou, Chenliang Xu, and Jason Corso. Towards automatic learning of procedures from web instructional videos. In AAAI, 2018. +[115] Deyao Zhu, Jun Chen, Xiaogian Shen, Xiang Li, and Mohamed Elhoseiny. Minigpt-4: Enhancing vision-language understanding with advanced large language models. arXiv:2304.10592, 2023. +[116] Xueyan Zou, Zi-Yi Dou, Jianwei Yang, Zhe Gan, Linjie Li, Chunyuan Li, Xiyang Dai, Harkirat Behl, Jianfeng Wang, Lu Yuan, et al. Generalized decoding for pixel, image, and language. In CVPR, pages 15116-15127, 2023. +[117] Xueyan Zou, Jianwei Yang, Hao Zhang, Feng Li, Linjie Li, Jianfeng Wang, Lijuan Wang, Jianfeng Gao, and Yong Jae Lee. Segment everything everywhere all at once. In NeurIPS, pages 19769-19782, 2023. + +# Appendix + +In this appendix, we provide more details about the training data, model implementation, and experimental settings to complement the main paper. Additional analysis, ablation studies, visualizations, and discussions are also incorporated. Below is the table of contents. + +A. Model + +1. Implementation Details +2. Training Recipe + +B. Experiments + +1. Tasks and Benchmarks +2. Evaluation Metrics +3. More Experimental Results +4. Ablation Studies +5. Qualitative Results + +C. Discussions + +1. Limitations & Future Work +2. Potential Societal Impacts + +D. Licenses + +# A Model + +# A.1 Implementation Details + +We instantiate our base models with 3B and 7B versions of Qwen2.5-VL [3]. Both variants employ pre-trained SAM 2.1 [66] with Hiera Base+ [70] backbone as the mask decoder. The $\mathrm{M}\rightarrow \mathrm{L}$ projector is initialized with the weights from the $\mathrm{V}\rightarrow \mathrm{L}$ projector of Qwen2.5-VL. The hidden size inside the prompt encoder is 256. To reduce GPU memory and accelerate training, we randomly sample 8 frames per video, with each frame resized to $316^{2} \sim 448^{2}$ pixels ( $128 \sim 256$ tokens per frame). The frame sampling strategies follow the specifications of each benchmark during inference. The mask decoder has a fixed resolution of $768 \times 768$ . For each segmentation sample, up to 5 objects are randomly selected to compute the mask prediction losses. During training, LoRA adapters [26] with rank=128 and alpha=256 are applied to all QKV0 layers in the visual encoder and LLM. The input sequences are restricted to 4K tokens. We train the model with 8 RTX A6000 Ada (48G) GPUs, with a global batch size of 256 for stages 1 and 2, and 32 for stage 3. In the first two stages, the learning rates are set to 1e-3. In the last stage, it is set to 5e-6 for the mask decoder and 2e-5 for all the other parameters, respectively. A linear warmup in the first $3\%$ steps followed by cosine decay is adopted in all stages. The configurations of datasets are introduced in the following section. + +# A.2 Training Recipe + +The detailed distribution of training datasets for UniPixel is shown in Tab. 12. Within the three-stage training recipe, we first pre-train the sparse prompt encoder using short caption samples from Inst-IT [61] and VideoRefer [103]. For each sample, we randomly select a point inside the ground truth mask (50%) or generate an augmented box from it (50%). This stage aims to enable the model with simple visual prompt comprehension and regional captioning capabilities on images and videos. In the second stage, we align the LLM and mask decoder using referring object segmentation datasets [29, 55, 71]. We use short caption/query samples for the first two stages to focus on alignment rather than knowledge learning. For the last stage, we collect a large-scale, high-quality corpus called UniPixel-SFT-1M $^3$ to jointly train the model on diverse pixel-level tasks. The original annotations have been rewritten using task-specific templates to incorporate instructions. All the repurposed datasets and pre-processing pipelines will be publicly available to facilitate future research. + +Table 12: The distribution of training datasets for UniPixel. We use different background colors to denote object referring, object segmentation, regional understanding, memory pre-filling, and general video understanding data, respectively. + +
StageDatasetInputsOutputs#Samples#RepeatRatio
TextImageVideoPointBoxMaskTextMask
1Inst-IT-Image-Short-Caption [61]✓✓✓✓✓351K141.2%
VideoRefer-Short-Caption [103]✓✓✓✓✓500K158.8%
2RefCOCO [29]✓✓✓✓17K520.8%
RefCOCO+ [29]✓✓✓✓17K520.8%
RefCOCOg [55]✓✓✓✓22K526.8%
RefClef [29]✓✓✓✓18K522.0%
Ref-Youtube-VOS [71]✓✓✓✓13K39.5%
3Osprey-Conversation [102]✓✓✓✓1.4K50.1%
Osprey-Detail-Description [102]✓✓✓✓29K52.5%
Osprey-Pos-Neg [102]✓✓✓✓20K51.7%
VideoRefer-Detailed-Caption [103]✓✓✓✓120K510.1%
VideoRefer-QA [103]✓✓✓✓69K55.8%
Inst-IT-Video-QA [61]✓✓✓✓159K513.4%
VideoRefer-QA-Memory [103]✓✓✓✓✓✓69K33.5%
Inst-IT-QA-Memory [61]✓✓✓✓✓✓158K38.0%
RefCOCO [29]✓✓✓✓17K102.9%
RefCOCO+ [29]✓✓✓✓17K102.9%
RefCOCOg [55]✓✓✓✓22K103.7%
RefClef [29]✓✓✓✓18K103.0%
ReasonSeg [32]✓✓✓✓1.6K100.3%
ADE20K [113]✓✓✓✓20K31.0%
COCOSTuff [7]✓✓✓✓118K36.0%
Mapillary Vistas [57]✓✓✓✓18K30.9%
PACO-LVIS [64]✓✓✓✓46K32.3%
PASCAL-Part [10]✓✓✓✓4.4K30.2%
Ref-/YouTube-VOS [71]✓✓✓✓13K51.1%
Ref-DAVIS17 [62]✓✓✓✓0.6K100.1%
Ref-SAV [101]✓✓✓✓56K32.8%
MeViS [21]✓✓✓✓23K51.9%
LV-VIS [76]✓✓✓✓11K30.6%
ViCaS [1]✓✓✓✓41K32.1%
ReVOS [96]✓✓✓✓29K52.5%
GroundMoRe [20]✓✓✓✓5.6K30.3%
LLaVA-1.5-Mix-665K [42]✓✓✓647K110.9%
VideoGPT+ Instruct [52]✓✓✓573K19.7%
+ +# B Experiments + +# B.1 Tasks and Benchmarks + +Our method is extensively evaluated across 9 fine-grained image/video understanding tasks. The benchmark(s) used for each task are listed as follows: + +1. Reasoning Video Object Segmentation: ReVOS [96] +2. Referring Video Object Segmentation: MeViS [21], Ref-YouTube-VOS [71], Ref-DAVIS17 [62], Ref-SAV [101] +3. Motion-Grounded Video Reasoning: GroundMoRe [20] +4. Referring Expression Segmentation: RefCOCO [29], RefCOCO+ [29], RefCOCOg [55] +5. Reasoning Segmentation: ReasonSeg [32] +6. Referring Expression Comprehension: RefCOCO [29], RefCOCO+ [29], RefCOCOg [55] +7. Referred Video Description: VideoRefer-Bench [103] +8. Referred Video Question Answering: VideoRefer-Bench [103] +9. Flexible Pixel-Level Understanding: PixelQA (Ours) + +# B.2 Evaluation Metrics + +For video segmentation tasks, we adopt $\mathcal{I}\&\mathcal{F}$ as the main metric to jointly consider region similarity $\mathcal{I}$ and contour accuracy $\mathcal{F}$ . Image segmentation is evaluated using cIoU (the cumulative intersection over the cumulative union) and gIoU (the average of all per-image IoUs) following existing work. For referred video description and question answering tasks, we follow the official evaluation protocols to report GPT-4o [59] scores and MCQ accuracy, respectively. For referring expression comprehension, + +Table 13: Performance comparison on general video question answering (VideoQA) on MVBench [36]. Note that UniPixel is the only model supporting pixel-level referring & segmentation. + +
ModelSizeASAPAAFAUAOEOIOSMDALSTACMCMASCFPCOENERCIAvg.
GPT-4V [58]-55.563.572.046.573.518.559.029.512.040.583.539.012.022.545.047.552.031.059.011.043.5
Video-ChatGPT [53]7B23.526.062.022.526.554.028.040.023.020.031.030.525.539.548.529.033.029.526.035.532.7
Video-LLaMA [105]7B27.525.551.029.039.048.040.538.022.522.543.034.022.532.545.532.540.030.021.037.034.1
VideoChat [35]7B33.526.556.033.540.553.040.530.025.527.048.535.020.542.546.026.541.023.523.536.035.5
Video-LLaVA [38]7B46.042.556.539.053.553.048.041.029.031.582.545.026.053.041.533.541.527.538.531.543.0
TimeChat [68]7B40.536.061.032.553.053.541.529.019.526.566.534.020.043.542.036.536.029.035.035.038.5
PLLAVA [94]7B58.049.055.541.061.056.061.036.023.526.082.039.542.052.045.042.053.530.548.031.046.6
ST-LLM [44]7B66.053.584.044.058.580.573.538.542.531.086.536.556.578.543.044.546.534.541.558.554.9
VideoGPT+ [52]4B69.060.083.048.566.585.575.536.044.034.089.539.571.090.545.053.050.029.544.060.058.7
VideoChat2 [36]7B75.558.083.550.560.587.574.545.047.544.082.537.064.587.551.066.547.035.037.072.560.4
UniPixel (Ours)3B69.562.583.048.576.586.566.538.049.040.587.049.074.095.049.045.063.534.558.073.562.5
UniPixel (Ours)7B71.068.084.045.078.091.566.535.557.543.091.547.073.592.558.053.074.037.549.069.064.3
+ +Table 14: Effectiveness justification of multi-stage training. The best and second-best results are marked bold and underlined, respectively. The three-stage recipe leads to optimal performance. + +
Stage 1Stage 2Stage 3ReVOSMeViS (valu)VideoRefer-BenchQ
JFJ&FJFJ&FSingle-FrameMulti-Frame
✓✓58.363.661.054.861.958.471.171.5
✓59.063.461.255.262.158.771.872.3
✓✓59.663.561.655.762.559.171.271.6
✓✓✓59.764.462.156.163.259.772.272.8
+ +we leverage mean accuracies, where a predicted bounding box is considered correct when it has the intersection over union (IoU) with the ground truth no less than 0.5. + +# B.3 More Experimental Results + +General Video Question Answering We also evaluate UniPixel on MVBench [36] to compare its general video understanding capabilities with existing methods. The results are illustrated in Tab. 13. Note that our method is the only one in the table that supports referring and segmentation. By jointly training on holistic-level and pixel-level data, UniPixel can effectively balance the capabilities under both scenarios, demonstrated by the strong performance compared with holistic-level models. + +# B.4 Ablation Studies + +Effect of Multi-stage Training We investigate the effectiveness of multi-stage training in Tab. 14. As shown in the first line, directly training the model using large-scale data only leads to sub-optimal performance, due to the unaligned representations among prompt encoder, LLM, and mask decoder. We observe that pre-training either the sparse prompt encoder or the $\mathrm{L}\rightarrow \mathrm{M}$ projector (the second and third lines) brings performance gains on both tasks (referring and segmentation). We hypothesize that this is because pre-aligning either of them can alleviate the burden of joint-task learning in stage 3. The last row verifies that the performance can be further boosted by pre-aligning both of them. + +Number of Hidden Tokens for Mask Decoder As mentioned in the main paper, there is a huge gap between the feature dimensions of the LLM and the mask decoder, thus splitting the token into more hidden tokens can better preserve the object information from the LLM. We ablate this mechanism in Tab. 15. According to the results, using only 1 hidden token cannot fully preserve the object information, as the mask prediction performance is sub-optimal. However, we also observe that using more than 2 hidden tokens (e.g., 4 or 8) only brings negligible performance gain. Therefore, we choose 2 hidden tokens per object in our final model. + +Training Strategy for the $\mathbf{M}\rightarrow \mathbf{L}$ projector The $\mathrm{M}\to \mathrm{L}$ projector aims to project the masked-pooled object-centric features to the LLM's embedding space. Since the object features originate from the visual encoder, it is possible to re-use the pre-trained weights of the original $\mathrm{V}\rightarrow \mathrm{L}$ projector in Qwen2.5-VL. Its effects are studied in Tab. 16. We investigated two strategies: 1) re-using the weights and 2) adding an extra pre-training stage for better alignment. The comparison shows that directly re-using weights without extra pre-training can achieve the best results. + +Table 15: Ablation study on the number of hidden tokens for each $<\mathrm{SEG}>$ . Performance gains are negligible with more than 2 tokens/object. + +
#TokensReVOSMeViS (valu)
JFJ&FJFJ&F
159.663.561.655.862.559.2
259.764.462.156.163.259.7
459.863.961.956.863.159.9
859.564.061.856.462.859.6
+ +Table 16: Ablation study on $\mathrm{M}\rightarrow \mathrm{L}$ projector. Init and PT denote weight initialization from $\mathrm{V}\rightarrow \mathrm{L}$ projector and extra pre-training, respectively. + +
InitPTVideoRefer-BenchQPixelQA
Single-FrameMulti-FrameMixed Acc
71.471.967.7
✓71.571.767.4
✓72.472.668.2
✓✓72.272.868.5
+ +Table 17: Ablation study on training data used in stage 3. The best and second-best results are marked bold and underlined, respectively. Gradually adding more pixel-level data brings performance gains. + +
RegionalSegmentationMemoryGeneralReVOSMeViS (valu)VideoRefer-BenchQ
JFJ&FJFJ&FSingle-FrameMulti-Frame
✓------72.172.0
✓58.963.861.456.063.259.6--
✓✓59.263.761.555.863.159.572.372.6
✓✓✓59.664.562.156.363.559.972.472.5
✓✓✓✓59.764.462.156.163.259.772.272.8
+ +Combination of Training Data Tab. 17 studies the effect of the combination of multi-task cotraining data in stage 3. Compared with training only on the regional or segmentation data, leveraging both of them leads to considerable performance on both tasks. Incorporating memory pre-filling data (requiring both referring and segmentation) can further boost the performance. We also mix some general holistic-level video understanding data to preserve the original capabilities of the pre-trained model, while it slightly affects the performance on pixel-level tasks. + +# B.5 Qualitative Results + +Fig. $6\sim 11$ present more visualizations of outputs from UniPixel on different pixel-level understanding tasks. Our method can effectively handle flexible visual prompts [103], implicit queries [32, 96], long queries [101], and motion-grounded questions [20]. + +# C Discussion + +# C.1 Limitations & Future Work + +Due to the limited computing resources, we did not further scale up the training data to incorporate more pixel-level tasks such as grounded caption generation (GCG) on images [65] or videos [56], which are interesting scenarios and their data may bring more performance gains. Besides, the mask decoder currently predicts the first mask on the first frame and propagates it to the following frames, while it potentially supports predicting on the best frame (defined as the frame with the best view of the target) and propagates it to both sides of the video. We will focus in our future work to explore more pixel-level understanding tasks and more flexible mechanisms for the mask decoder. + +# C.2 Potential Societal Impacts + +This work introduces a new framework for pixel-level visual-language understanding, which could potentially be used in education, surveillance, and healthcare industries, where flexible interactions with the users and fine-grained understanding of images & videos are required. In other scenarios requiring multi-modal assistants, our method can also serve as a more advanced alternative. To the best of our knowledge, there are no potential negative societal impacts to declare. + +# D Licenses + +Our model is built based on the pre-trained Qwen2.5-VL [3] and SAM 2.1 [66] models. They are both licensed under the Apache License 2.0 (https://www.apache.org/licenses/License-2.0). + +What action does [1] perform that involves [3]? + +(A) [1] extends an arm across [3]'s chest (B) [1] hands something to [3] (C) [1] talks to [3] (D) [1] ignores [3] + +![](images/598df0f2b0dea42cd854ae336e479cfe4930f1cf19d5369c13525a52b0578570.jpg) + +![](images/fbbfe0508cddde48d6551515850e775c6a3aa1120b639e03cada6c9444363eed.jpg) + +What is [1] wearing? + +(A) Blue sweatshirt and black jeans (B) Red sweatshirt and light blue jeans (C) Green t-shirt and white pants (D) Yellow hoodie and dark blue jeans + +![](images/44764a6c5298a4df5ec3f963c3e7b0aa05ebd0e11ccdbd726a5d2ac0ab9cbf6b.jpg) + +![](images/2210f0b3e7ed7afc58ad67a3728358f99c16443814e70057b928083c62bfd93d.jpg) + +If [1] continues to move forward, what is a likely future event involving [2]? + +(A) [2] will run away (B) [2] will sit down and stop moving (C) [2] will start barking (D) [2] will continue walking by the wheelchair + +![](images/46aa4f64858b873762eb199dc8744130253ddeeeded02e656b5f505a74f4bbc1.jpg) + +![](images/bc3e5ba9e52d6d6d629bb8860e6393b7d9dd0a870e371d82f55c35b2fc87e089.jpg) + +If $\langle \text{object1} \rangle \langle \text{region} \rangle$ continues riding the bike, what is a likely future event? + +(A) [1] will stop (B) [1] will start running (C) [1] will change a different outfit (D) [1] will continue to challenge different high difficulty movements + +![](images/2039555bbb778e2c7776f34cdb40cc5096188a72319a4373fd11b43b32cf5a9c.jpg) +Figure 6: Visualization of the predictions from UniPixel on PixelQA. + +![](images/9eade8ef4199f7bbc4f975f6b4b86e98038e8835138245b6fc314f8d41e4d33d.jpg) + +Please segment the cow that is the furthest from the camera in this video. + +![](images/c214033751d38905dd53df3606348f23ff2301e657a08e1e47eb04929cf297a7.jpg) + +Which goldfish is on the left side of the screen at the beginning of the video? Please provide the segmentation mask. + +![](images/3ce3350c1f61acd244f41163aaa207d7a018a8fb2aa9fa8ee27b8589650de0fd.jpg) + +Where is the instrument that serves to shield from the sun or protect from rain and snow? + +![](images/44ad87fdce59cb8335e6047f6b709b33f90f16a2068586690f26b0fefb6ba3c0.jpg) + +Can you find the skunk that has black fur all over its body and a tuft of white fur on its head and the tip of its tail? + +![](images/05a42575bb3e82296a39c10c0030a1a8b9d4967558b440059f99f885db398711.jpg) + +Which ferret(s) is/are being licked by a cat consistently? Please provide the segmentation mask. + +![](images/517856bc4719087d43991a44799ff91699e032fef005bf6b0e28ed52c64cb531.jpg) + +Can you segment the insect(s) belonging to the superfamily Papilionoidea of the Lepidoptera order in this video? + +![](images/6a572394a4fe7ef40fe99490bcdb98739b8070393b3c48f858ff8366a7c96c59.jpg) + +Please segment the zebra which is younger in this video. + +![](images/a16866fe16cef25e55fc26e160f796f502197ab4f55beec88e97035befe83004.jpg) +Figure 7: Visualization of the predictions from UniPixel on ReVOS [96]. + +Please segment the black swan in this video. + +![](images/b18dd21c283f847ff03520e00de7f112f7028ca4b556f69f11ba8dc39cee9573.jpg) + +Where is the man wearing a cap and shorts in this video? Respond with the segmentation mask. + +![](images/3dd8dcde89a917814d2fd09c0d3250614af1ac38254ba6149e9abfbb17798a78.jpg) + +Can you find the blue wooden car in the frames? + +![](images/5ab5a05406e57c228de16efbf4a16d7df1ec3fc6757170e799b7a57a5def20b7.jpg) + +Segment and track the green motorbike in this video. + +![](images/6f7b61c69a90ac7d98d40ffbd2061116963244110ae70765aeadd3e045530021.jpg) + +Where is the rope? Give me the segmentation results directly. + +![](images/de36923c7f9c43f52e68511d359106093146c6ab8661bdcec91809fd3135d5da.jpg) +Figure 8: Visualization of the predictions from UniPixel on Ref-DAVIS17 [62]. + +Q: Who might not open the cooler if not for feeding the walrus a fish? + +A: The woman. + +![](images/c3d7e1d045bbb891401f6bddbd5042659634e0a3f43382e2371335112e2d23d1.jpg) + +Q: What might not be given to the woman by the man if he did not eat by himself? + +A: The bag. + +![](images/03f1a4fe83475b01817f93b97a2bf668c833a5cbeacbdc26367aa1372628ad0a.jpg) + +Q: Who opens the ziploc bag to transfer the crushed Oreo cookies into the bowl? + +A: The girl. + +![](images/5287d0e9d83bf03456aae5d1f056fd50f43d8fdf6bea88e6bd34103c84e5d94d.jpg) + +Q: Who dribbles the ball before he shoots it? + +A: The man in the black shorts. + +![](images/7821481530431fee4813afeb5e10ac5521fd711da8d6659860f855d0fd75ed93.jpg) + +Q: Who kicks the ball into the goal? + +A:The boy. + +![](images/19b1868cc0551ea64cbf84d2de556bc138ae5fb5d4a7529e0251be6e3c4b39c4.jpg) + +Q: Who asked if the little girl could carry the box before she picked it up? + +A: The man. + +![](images/f8e74bf86772e7cf56fbcbbf0d4e1d3dcab6b5289cd97b1f606498943171d274.jpg) +Figure 9: Visualization of the predictions from UniPixel on GroundMoRe [20]. + +Find the object according to the description: The object is a dark-colored backpack with light-colored accents, featuring multiple compartments and pockets, securely fastened to an individual's back. The person is dressed in dark clothing and ascending an escalator in a public setting, likely a mall or transportation hub. The backpack has adjustable straps and a top handle, appearing functional for carrying various items. The individual moves steadily up the escalator, indicating a purposeful journey. + +![](images/74d1d97f9bbbe80b333cb6e1601249436fbbeb06f6d9c96e6093ac2d8ae3153b.jpg) + +Analyze the following sentences and provide the corresponding segmentation mask: The object is a dark-colored sedan, likely blue or black, parked on an unpaved surface, possibly a dirt road or an area with loose soil. It has four doors, a visible rear spoiler on the trunk, silver wheels, and tinted windows. The car is slightly tilted, suggesting it might be parked on uneven ground or experiencing some form of imbalance. Throughout the video, the sedan remains stationary, with no indication of movement or actions being performed by the vehicle. + +![](images/55b381ee1aba3e09095c7412de0038320d09d7a19741d1e3a39c4086ea102e8a.jpg) + +Please segment the object according to the description: The object is a person with long dark hair, wearing a dark top and a patterned skirt with geometric designs. This individual is stationary or moving very slowly in the background of a retail store, possibly a furniture or home goods store. The person remains in close proximity to another shopper pushing a shopping cart, suggesting they might be together or interacting. The scene captures a typical shopping experience. + +![](images/4288e01e1cbf92f6706eb7eee1f6aa3c66da48b212fa935c479a5da60c6d15ba.jpg) +Figure 10: Visualization of the predictions from UniPixel on Ref-SAV [101]. + +Find the lens that is more suitable for photographing nearby objects. + +![](images/7bc544627a0d047acbde230cdc4eab06733cec39b4346a2c682daddae7e0ff7a.jpg) + +Which part of the vehicle must be used to display identifying information as required by law? Segment the target directly. + +Where is the goat nearest to the bottom stone? Give me the segmentation mask. + +![](images/1c1bf68fe49e0128a380f0ec05f75914ddd044b2b3cb9d575a8578c7e24a6224.jpg) + +What item in the picture can provide information to help guide travelers through this rugged terrain that can be challenging to navigate? + +Please localize the place where piano players should sit in this image. + +![](images/4a8a3675f84c796ea29c65c90a0973a23efbaa6ec718f3b6afb3ce7f2e358843.jpg) + +Where is the place where the garbage should be put? Please respond with the segmentation mask. + +Segment the place where the patient lies down to receive examination in this image. + +![](images/faece438adbdb6b56e091376cb3904d759254803e1945e4247dc891675d19cab.jpg) + +In some rural areas, horse-drawn carts are still used for transportation and carrying goods. What is the main source of power that drives the cart in the picture? + +![](images/a6b9702d94558c585fa340a1a7b4f9dd73ec3f60ed647b9071d3ea74ee6a44b5.jpg) +Figure 11: Visualization of the predictions from UniPixel on ReasonSeg [32]. + +![](images/35946298a76436b7b9c5c7e1873b6ab961c62c1738c3598f9a8c4ffa0b5cbff8.jpg) + +![](images/5a9895d72bb1a789bc2693ce212fe68882011f827d402342e0fafe274b151b15.jpg) + +![](images/e63ea9814b67ca423427bf5e0056365a2da17ec6b74c177030f10f293d84c61c.jpg) + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: To the best of our knowledge, all the claims made in the abstract and introduction are verified either by referring to previous studies or by conducting experiments. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: The limitations of this work are carefully discussed in the appendix. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: The paper does not include theoretical results. All the claims shall be verified through ablation studies. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: We clearly present the list of datasets used for training, the implementation details, and the evaluation metrics we used to produce the experimental results in the appendix. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: We open-source all the code, checkpoints, data, and training logs to ensure full reproducibility. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: All the detailed settings, hyperparameters, and other necessary information are provided in the appendix. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [No] + +Justification: We are not able to fully report the error bars given the limited computing resources. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. + +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: This information is included in the implementation details in the appendix. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We confirm that the research conforms to the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: The potential societal impacts are discussed in the appendix. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. + +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: The paper poses no such risks. + +# Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We provided citations to the original papers for all the used datasets and base models. + +# Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. + +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: The paper does not release new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. + +We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: The core method development in this research does not involve LLMs as any important, original, or non-standard components. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/images.zip b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..a4819df9532ccea79de56df9c6872c4f5d480011 --- /dev/null +++ b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3d39da3fdca2a8dce753089730225e65d75d14cb3cd195710c7823a4a298d08 +size 2177944 diff --git a/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/layout.json b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..910e2b5cfeb65a32729f3d958164ee869edc696e --- /dev/null +++ b/NeurIPS/2025/UniPixel_ Unified Object Referring and Segmentation for Pixel-Level Visual Reasoning/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec06a96b71766ec6cec73875e21464c2aa9c7dd8b767e4c767c22f92bc2874b1 +size 1035930 diff --git a/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/a5d77b19-6b29-46a4-adfc-5b9cc8332789_content_list.json b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/a5d77b19-6b29-46a4-adfc-5b9cc8332789_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..4e31e28c551c7259851f0874c40ba8d500a24c78 --- /dev/null +++ b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/a5d77b19-6b29-46a4-adfc-5b9cc8332789_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e12813568e3caa3e3f8eb94d5af5f074d43a41b2b5105512dbab75e749ccf776 +size 162594 diff --git a/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/a5d77b19-6b29-46a4-adfc-5b9cc8332789_model.json b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/a5d77b19-6b29-46a4-adfc-5b9cc8332789_model.json new file mode 100644 index 0000000000000000000000000000000000000000..ee95182a3c0ecae0c34b4bc355b1b89e74c9ff69 --- /dev/null +++ b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/a5d77b19-6b29-46a4-adfc-5b9cc8332789_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a76951e0428c2c99233c63d4fa7ea09e1e6cd6aa1397e4045bdec84b3192fb8 +size 213225 diff --git a/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/a5d77b19-6b29-46a4-adfc-5b9cc8332789_origin.pdf b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/a5d77b19-6b29-46a4-adfc-5b9cc8332789_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..31252219e8887846a9141593c9b6b99c24b1b4d3 --- /dev/null +++ b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/a5d77b19-6b29-46a4-adfc-5b9cc8332789_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d2783c29cafc9869057f87a862dfc2aa8626b6a4a495790746eb99f7b9c5151 +size 27979132 diff --git a/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/full.md b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/full.md new file mode 100644 index 0000000000000000000000000000000000000000..4636e257a7d0e4418051d92e4a70bdacd4c014a8 --- /dev/null +++ b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/full.md @@ -0,0 +1,798 @@ +# UniRelight: Learning Joint Decomposition and Synthesis for Video Relighting + +Kai He $^{1,2,3}$ Ruofan Liang $^{1,2,3}$ Jacob Munkberg $^{1}$ Jon Hasselgren $^{1}$ + +Nandita Vijaykumar $^{2,3}$ Alexander Keller $^{1}$ Sanja Fidler $^{1,2,3}$ + +Igor Gilitschenski $^{2,3\dagger}$ Zan Gojcic $^{1\dagger}$ Zian Wang $^{1,2,3\dagger}$ + +$^{1}$ NVIDIA $^{2}$ University of Toronto $^{3}$ Vector Institute + +# Abstract + +We address the challenge of relighting a single image or video, a task that demands precise scene intrinsic understanding and high-quality light transport synthesis. Existing end-to-end relighting models are often limited by the scarcity of paired multi-illumination data, restricting their ability to generalize across diverse scenes. Conversely, two-stage pipelines that combine inverse and forward rendering can mitigate data requirements but are susceptible to error accumulation and often fail to produce realistic outputs under complex lighting conditions or with sophisticated materials. In this work, we introduce a general-purpose approach that jointly estimates albedo and synthesizes relit outputs in a single pass, harnessing the generative capabilities of video diffusion models. This joint formulation enhances implicit scene comprehension and facilitates the creation of realistic lighting effects and intricate material interactions, such as shadows, reflections, and transparency. Trained on synthetic multi-illumination data and extensive automatically labeled real-world videos, our model demonstrates strong generalization across diverse domains and surpasses previous methods in both visual fidelity and temporal consistency. Our project page is https://research.nvidia.com/labs/toronto-ai/UniRelight/. + +# 1 Introduction + +Lighting is crucial in defining a scene's visual appearance, influencing both aesthetics and the perception of objects and materials. Modifying illumination while preserving scene content enables a wide range of applications, including creative editing, simulation, and robust vision systems. Realistic relighting necessitates an accurate understanding of scene geometry and materials, as well as faithful light transport modeling. Recent methods aim to learn these complex relationships from data, but a significant challenge is the scarcity of multi-illumination datasets capturing the same scene under varied lighting conditions. Acquiring such data in the real world requires controlled environments, calibrated equipment, and repeated captures, making it costly and impractical. As a result, most existing approaches rely on synthetic data or focus on narrow domains like portraiture, limiting their ability to generalize to real-world scenes. + +To address the lack of multi-illumination data, recent works [69, 39] have decomposed the relighting task into two stages: an inverse rendering step that estimates scene attributes such as albedo, normal, and depth (i.e., G-buffers), followed by a forward rendering step that synthesizes relit images conditioned on these estimates. This pipeline avoids the need for multi-illumination supervision, allowing each stage to be trained separately using single-illumination data. However, inverse and forward rendering are inherently coupled, and modeling them separately with discrete intermediate representations introduces significant limitations. The forward renderer is highly sensitive to errors in + +![](images/fc6c5a544ffd02a281c2660ab72e81aace09886fc5493d96b09e463ca8bad158.jpg) +Input & Albedo Pred. + +![](images/208641accb7554c730b31a50036855db1dfb948487f5bbfd84475c68633a62d5.jpg) + +![](images/1bf5ee94f42ab67f801152baf0a4aec309ee6c6596935e8f84766762909d39e9.jpg) +Figure 1: Given an input image (top left) or video, our method jointly estimates albedo (bottom left) and synthesizes relit videos with novel lighting conditions using provided HDR probes. Notably, our estimated albedo maps effectively demodulate shadows and specular highlights, while the relit images exhibit plausible shadows and specular highlights. + +![](images/a6351b86d69858856971b3826a01d5e9ff1294acbe1db816c0a24dbbde7f8793.jpg) +Relighting I + +![](images/a8dcd2ae8d563c77cb82017138edb85690bc1577d2fda081955e422cbdc389ee.jpg) + +![](images/5726e91013a41af0ac8b4723820ce445c69344582baa72a6995d2f0f0588eab8.jpg) +Relighting II + +![](images/381e3df3994b237b726c96534a8afda236e2a7f7a49404489e9e67a8bcb5034f.jpg) + +the estimated G-buffers and struggles to capture complex material properties not encoded by them, such as transparency and subsurface scattering. + +Learning an end-to-end relighting model in low data regime is challenging. While prior methods for intrinsic estimation (e.g., geometry [28, 19] and albedo [32, 39]) trained on synthetic data often generalize well to real-world scenes, we observe that directly training relighting models as video-to-video translation leads to poor generalization to unseen domains. We argue that robust relighting requires an explicit understanding of illumination and scene properties. + +Hence, we propose a relighting framework that jointly models the distribution of scene intrinsics and illumination. Inspired by VideoJAM [12], we train a video generative model that jointly denoises latent space for relighting and albedo demodulation in a single pass. Practically, we concatenate both latent representations and treat them as a single video clip. This design is motivated by the hypothesis that demodulation provides a strong prior for the relighting task, such as removing shadows. This joint formulation encourages the model to learn an internal representation of scene structure, leading to improved generalization across diverse and unseen domains. Our approach contrasts with two-stage pipelines that rely on explicit G-buffer estimation. Instead, we implicitly reason about intrinsic scene representation, enabling better representation learning, reducing error accumulation, and modeling of complex visual effects such as specular highlights, transparency, and subsurface scattering. + +Our formulation also offers flexibility to learn from diverse sources of supervision. We leverage high-quality synthetic data for full supervision and complement it with real-world single illumination videos that can be auto-labeled at scale. This hybrid training strategy enables the model to handle complex lighting effects while significantly improving generalization to unseen domains, see Figure 1. UNIRELIGHT enables high-quality relighting and intrinsic decomposition from a single input image or video, producing temporally consistent shadows, reflections, and transparency, and outperforms state-of-the-art methods. + +# 2 Related Work + +Inverse rendering estimates intrinsic scene properties such as geometry, materials, and lighting from input images. Traditional approaches use hand-crafted priors within an optimization framework [34, 3, 21, 11, 77, 2] to handle low-order effects like diffuse shading and reflectance. Recently, the field has been revitalized by applying supervised and self-supervised learning [4, 33, 35, 57, 66, 36, 37, 10, 61, 60, 63, 6] to inverse rendering tasks. These methods typically require large, domain-specific datasets, and struggle to generalize outside the training domain. + +![](images/df509f8a6ff6b060ee5d27a3a188f946bd93ddd2920df4bfdd2649b992f30aed.jpg) +Figure 2: Method overview. Given an input video $\mathbf{I}$ and a target lighting configuration $(\mathbf{E}_{\mathrm{ldr}},\mathbf{E}_{\mathrm{log}},\mathbf{E}_{\mathrm{dir}})$ , our method jointly predicts a relit video $\hat{\mathbf{l}}_E$ and its corresponding albedo $\hat{\mathbf{a}}$ . We use a pretrained VAE encoder-decoder pair $(\mathcal{E},\mathcal{D})$ to map input and output videos to a latent space. The latents for the target relit video and albedo are concatenated along the temporal (frame) dimension with the encoded input video. Lighting features $\mathbf{h}^{\mathbf{E}}$ , derived from the environment maps, are concatenated along the channel dimension with the relit video latent. A finetuned DiT video model denoises the joint latent according to Equation 1, enabling consistent generation of both relit appearance and intrinsic decomposition. + +Most related to our approach are methods that leverage large generative image and video models for inverse rendering [18, 32, 54, 40, 30, 14, 47, 41]. Notably, RGB $\leftrightarrow$ X [69] demonstrates both intrinsic decomposition and neural rendering from intrinsics using finetuned image diffusion models. The DiffusionRenderer [39] extends RGB $\leftrightarrow$ X to video and also supports relighting. + +Relighting is the task of modifying the lighting conditions in images or videos. Many methods first reconstruct 3D scenes from multi-view images [46, 22, 13, 9, 71, 76, 70, 56, 62, 38, 64, 42, 58, 25]. Previously, surface reflectance has been captured using calibrated light stages [15]. Now, relighting is supported by material properties recovered from inverse rendering. These methods typically require per-scene optimization and are limited to static, object-centric scenes with single illumination. Training across multiple scenes has led to the exploration of latent feature learning [78, 43, 72, 7], often incorporating neural rendering modules with intrinsic buffers as priors [53, 20, 50, 31, 65]. + +Recent approaches [55, 31, 68, 26, 39, 5, 75, 45] leverage diffusion models for relighting tasks. These methods are often domain-specific, such as portraits, single objects, and outdoor scenes. Despite promising results, a significant challenge remains the need for multi-illumination datasets [48], which are difficult to capture at scale. + +Joint generative modeling approaches enable diffusion models to predict multiple modalities. Matrix3D [44] predicts pose estimation, depth, and novel view synthesis using a single DiT [52] model. VideoJAM [12] extends this by predicting both generated pixels and their corresponding motion from a single DiT. We leverage this approach to jointly predict a relit image and albedo. + +# 3 Preliminaries: Video Diffusion Models + +Diffusion models approximate a data distribution $p_{\mathrm{data}}(\mathbf{I})$ by learning to iteratively denoise samples corrupted by Gaussian noise [59, 23, 17]. For efficiency, most video diffusion models (VDMs) operate in a lower-dimensional latent space [8, 1]. Given an RGB video $\mathbf{I} \in \mathbb{R}^{L \times H \times W \times 3}$ consisting of $L$ frames at resolution $H \times W$ , a pre-trained VAE encoder $\mathcal{E}$ encodes the video into a latent tensor $\mathbf{z} = \mathcal{E}(\mathbf{I}) \in \mathbb{R}^{l \times h \times w \times C}$ . Then, the final video $\hat{\mathbf{I}}$ is reconstructed by decoding $\mathbf{z}$ with a pre-trained VAE decoder $\mathcal{D}$ . Both the training and inference stages of the VDM are conducted in this latent space. + +In this work, we fine-tune a recent Diffusion Transformer (DiT) video model, Cosmos-Predict1 [1]. Encoding and decoding to and from latent space are performed by the pre-trained VAE Cosmos-1.0-Tokenizer-CV8x8x8, which compresses the video by a factor of eight along the spatial and temporal dimensions: $l = \frac{L}{8}$ , $C = 16$ , $h = \frac{H}{8}$ , and $w = \frac{W}{8}$ . The base model supports text- and image-guided video generation at a resolution of $704 \times 1280$ pixels. + +To train the VDM, noisy versions $\mathbf{z}_{\tau} = \alpha_{\tau}\mathbf{z}_0 + \sigma_{\tau}\epsilon$ are constructed by adding Gaussian noise $\epsilon$ , with the noise schedule provided by $\alpha_{\tau}$ and $\sigma_{\tau}$ following the EDM [27]. The diffusion model parameters $\theta$ of the denoising function $\mathbf{f}_{\theta}$ are optimized using the denoising score matching objective [27]. Once trained, iteratively applying $\mathbf{f}_{\theta}$ to a sample of Gaussian noise will produce a sample of $p_{\mathrm{data}}(\mathbf{I})$ . + +# 4 Method + +We propose a generative relighting framework by fine-tuning a DiT-based video diffusion model [52, 1], which jointly predicts the albedo and relit appearance from an input image or video under a target lighting condition. + +At the core of our method is a joint denoising architecture: the latent representations for albedo and relit video are concatenated at the token level and denoised in a single pass using the DiT model. This formulation enables cross-modal interaction via self-attention, allowing the model to capture shared scene structure and improve generalization and temporal consistency. + +We leverage a combination of synthetic datasets, multi-illumination data, and auto-labeled real-world data to train our model, ensuring robust generalization and high-quality output. In the following sections, we detail the model architecture, data strategy, and training objectives. + +# 4.1 Model Design + +Given an input video $\mathbf{I}$ and a temporally-varying target lighting condition $\mathbf{E} \in \mathbb{R}^{L \times H \times W \times 3}$ of the same dimensions, our goal is to train a model $\mathbf{f}_{\theta}$ that jointly denoises the albedo $\mathbf{a}$ of the input video and a relit video $\mathbf{I}_{\mathbf{E}}$ under the target illumination $\mathbf{E}$ . + +As illustrated in Figure 2, the model comprises a VAE encoder-decoder pair, denoted $(\mathcal{E},\mathcal{D})$ , and a transformer-based denoising function, $\mathbf{f}_{\theta}$ . We use the VAE encoder $\mathcal{E}$ to separately encode the input video $\mathbf{I}$ , the albedo $\mathbf{a}$ , and the relit video $\mathbf{I_E}$ , producing the corresponding latent tensors $(\mathbf{z^I},\mathbf{z^a},\mathbf{z^E})$ . + +Unlike VideoJAM [12], which compresses a pair of latents $(\mathbf{z}^x, \mathbf{z}^y)$ using a linear layer, we find this approach does not yield acceptable quality for our applications. We adopt a simple yet effective strategy: concatenating the latents $\mathbf{z}^{\mathbf{l}}$ , $\mathbf{z}^{\mathbf{a}}$ , and $\mathbf{z}^{\mathbf{E}}$ along the temporal (frame) dimension. This formulation enables the DiT model to apply full self-attention across input, albedo, and relit frames, facilitating cross-modal information exchange. + +Token embeddings. To distinguish between the three modalities in the concatenated sequence, we combine standard RoPE positional embeddings with dedicated type embeddings. We first apply the same positional embedding to each of the three video clips, encoding the spatial-temporal position of tokens within each clip. To indicate modality, we introduce a learnable type embedding $\mathbf{c}_{\mathrm{emb}} \in \mathbb{R}^{K_{\mathrm{emb}} \times C_{\mathrm{emb}}}$ , where $K_{\mathrm{emb}} = 3$ denotes the number of video types. Each type embedding is broadcast across spatial-temporal dimensions and concatenated along the channel dimension with its corresponding latent representation: $\mathbf{c}_{\mathrm{emb}}^{0}$ is appended to $\mathbf{z}^{\mathbf{E}}$ , $\mathbf{c}_{\mathrm{emb}}^{1}$ to $\mathbf{z}^{\mathbf{a}}$ , and $\mathbf{c}_{\mathrm{emb}}^{2}$ to $\mathbf{z}^{\mathbf{I}}$ . + +Condition mask. We attach a binary mask to each frame indicating whether it should be treated as a condition (e.g., input source video) or a denoising target (e.g., relit video). During training, we randomly vary which modalities are used as inputs, allowing the model to generalize under partial supervision. For instance, we may randomly treat a as either a conditioning input or a prediction target (see Section 4.3 for details). + +Encoding HDR lighting. Environment maps contain high dynamic range (HDR) values that often exceed the intensity range of standard images, while the VAEs used in latent diffusion models are trained on low dynamic range (LDR) inputs and cannot directly encode these high-intensity signals. + +To address this, we follow prior work [26, 39] and represent the lighting condition using three complementary buffers: (1) an LDR panorama $\mathbf{E}_{\mathrm{ldr}}$ obtained via standard Reinhard tonemapping; (2) a normalized log-intensity map $\mathbf{E}_{\mathrm{log}} = \log (\mathbf{E} + 1) / E_{\mathrm{max}}$ , where $E_{\mathrm{max}}$ is the maximum log intensity; and (3) a directional encoding $\mathbf{E}_{\mathrm{dir}} \in \mathbb{R}^{L \times H \times W \times 3}$ , where each pixel stores a unit vector indicating its direction in the camera coordinate system. These representations are passed through the VAE encoder, yielding $\mathbf{h}^{\mathbf{E}} = (\mathcal{E}(\mathbf{E}_{\mathrm{ldr}}), \mathcal{E}(\mathbf{E}_{\mathrm{log}}), \mathcal{E}(\mathbf{E}_{\mathrm{dir}}))$ which is concatenated along the channel dimension with $\mathbf{z}^{\mathbf{E}}$ . We also append a binary condition mask to indicate whether lighting features are present. For input video and albedo tokens, we use zero-padded placeholders to maintain shape consistency. + +# 4.2 Data Strategy + +Similar to prior work [39], we combine a large-scale synthetic dataset with smaller real-world datasets. The synthetic dataset offers a large volume of high-quality data, which, when combined with + +powerful diffusion models, shows impressive generalization to unseen domains [28, 19]. However, using synthetic target images biases the model output, resulting in a rendered look. Therefore, we also utilize smaller and lower-quality datasets of automatically labeled real-world data. + +Synthetic data curation. Our synthetic dataset consists of rendered video clips that are tuples $(\mathbf{I},\mathbf{I}_{\mathbf{E}},\mathbf{a},\mathbf{E})$ of input video, relit result, albedo, and environment map. To create a large dataset with complex and diverse scenes and lighting conditions, we follow the methodology of the Diffusion-Renderer [39] and procedurally generate simple scenes with randomized environment map lighting. We curate a collection of 36,500 3D objects from the Objaverse LVIS subset, 4,260 PBR materials, and 766 HDRI environment maps, gathered from publicly available resources. Each scene contains a ground plane with a randomly selected material, and up to three randomly placed 3D objects. We perform collision detection to avoid intersecting objects. Additionally, we place up to three primitive objects (cube, sphere, and cylinder) with randomized shapes and materials, to increase variety. A randomly selected HDR environment map illuminates each scene. We generate videos with random motions including camera orbits, camera oscillation, lighting rotation, object rotation and translation. Each scene is rendered with two different illuminations under the same motion. + +We rendered the dataset using a custom path tracer based on OptiX [51] at high sample counts with path length three to capture global illumination effects, producing a total of 108k videos with 57 frames per video at a resolution of $704 \times 1280$ pixels. + +MIT multi-illumination labeling. The multi-illumination dataset of Murmann et al. [48] consists of 985 real-world indoor scenes for training and 30 scenes for testing, each lit under 25 different conditions. Each image contains a reflective chrome sphere that has been isolated and exported as an HDR image, which can be easily remapped to the latitude-longitude representation expected by our model. We create a dataset by randomly selecting pairs from the 25 lighting conditions and extracting $(\mathbf{I},\mathbf{E},\mathbf{I}_{\mathbf{E}})$ . + +To obtain pseudo-groundtruth albedo labels a, we re-implement the inverse renderer from Diffusion-Renderer [39] based on the Cosmos-1.0-Diffusion-7BVideo2World model [49], fine-tuned on our synthetic dataset. The resulting model produces high-quality albedo estimates across diverse images and videos. For each scene, we estimate albedo under all 25 lighting conditions and average the results to obtain a stable albedo map. + +Real-world auto-labeling. While multi-illumination datasets provide effective supervision for relighting, they are costly to acquire and limited in scale. In contrast, the Internet offers an abundance of high-quality videos captured under single illumination. To leverage this resource, we curate 150k real-world video clips, each with 57 frames at a resolution of $704 \times 1280$ , and automatically annotate them with albedo maps to create paired data (I, a) using the reproduced inverse rendering model. These auto-labeled RGB-albedo pairs significantly increase the diversity and realism of our training set, enabling improved generalization to real-world scenes. + +# 4.3 Training + +Our model is trained on a combination of the synthetic video dataset, the MIT multi-illumination dataset, and real-world auto-labeled data. For image datasets, we treat images as single-frame videos. For both the synthetic video dataset and the MIT multi-illumination dataset, each data sample consists of an input video $\mathbf{I}$ , its corresponding albedo $\mathbf{a}$ , a new environment map $\mathbf{E}$ , and the target relit video $\mathbf{I}_{\mathbf{E}}$ under this new illumination. The target latent variable for these datasets is constructed by concatenating the latent of the relit video, $\mathbf{z}_0^{\mathbf{E}}$ , and the corresponding albedo, $\mathbf{z}_0^{\mathbf{a}}$ , along the temporal dimension. Noise is introduced independently to both $\mathbf{z}_0^{\mathbf{E}}$ and $\mathbf{z}_0^{\mathbf{a}}$ to produce $\mathbf{z}_{\tau}^{\mathbf{E}}$ and $\mathbf{z}_{\tau}^{\mathbf{a}}$ . The model parameters are optimized by minimizing the objective function: + +$$ +\hat {\mathbf {z}} ^ {\mathbf {E}} (\theta), \hat {\mathbf {z}} ^ {\mathbf {a}} (\theta) = \mathbf {f} _ {\theta} \left(\left[ \mathbf {z} _ {\tau} ^ {\mathbf {E}} + \mathbf {h} ^ {\mathbf {E}}, \mathbf {z} _ {\tau} ^ {\mathbf {a}}, \mathbf {z} ^ {\mathbf {I}} \right]; \mathbf {c} _ {\text {e m b}}, \tau\right) \tag {1} +$$ + +$$ +\mathcal {L} (\theta) = \mathbb {E} _ {\left(\mathbf {z} _ {0} ^ {\mathbf {E}}, \mathbf {z} _ {0} ^ {\mathbf {a}}\right) \sim p _ {\mathrm {d a t a}, \epsilon} \sim \mathcal {N} (0, \sigma^ {2} I)} \left[ \left\| \hat {\mathbf {z}} ^ {\mathbf {E}} (\theta) - \mathbf {z} _ {0} ^ {\mathbf {E}} \right\| _ {2} ^ {2} + \lambda_ {\mathbf {a}} \| \hat {\mathbf {z}} ^ {\mathbf {a}} (\theta) - \mathbf {z} _ {0} ^ {\mathbf {a}} \| _ {2} ^ {2} \right], \tag {2} +$$ + +where $[\cdot]$ denotes concatenation in the temporal dimension, and $\lambda_{\mathbf{a}} = 0.1$ is a scalar weight for albedo. + +Training strategy. Our training process incorporates specific conditioning strategies tailored to the data source. For synthetic data and the MIT multi-illumination dataset, we apply three different + +![](images/60f918d223dffd23eddb93620c43a0b545d8da99ef0317adce294d8de8b584e7.jpg) +Figure 3: Qualitative comparison on the synthetic dataset and MIT multi-illumination dataset. Our method produces high-quality inter-reflections and shadows in synthetic scenes (top rows). Crucially, on the MIT multi-illumination dataset (bottom rows), it delivers relighting results with higher accuracy than baselines, which fail when faced with complex materials. + +conditioning strategies. In $12\%$ of training steps, the input video is dropped (i.e., $\mathbf{z}^{\mathbf{I}} = \mathbf{0}$ ), and the ground truth albedo serves as the sole conditioning signal. The denoising function is then $\mathbf{f}_{\theta}([\mathbf{z}_{\tau}^{\mathbf{E}} + \mathbf{h}^{\mathbf{E}}, \mathbf{z}_0^{\mathbf{a}}, \mathbf{0}]; \mathbf{c}_{\mathrm{emb}}, \tau)$ . In another $18\%$ of the training steps, the model is conditioned on both the input video $\mathbf{z}^{\mathbf{I}}$ and the ground truth albedo, resulting in the function $\mathbf{f}_{\theta}([\mathbf{z}_{\tau}^{\mathbf{E}} + \mathbf{h}^{\mathbf{E}}, \mathbf{z}_0^{\mathbf{a}}, \mathbf{z}^{\mathbf{I}}]; \mathbf{c}_{\mathrm{emb}}, \tau)$ . When using these two specific conditions, the conditioning latents of the input video and albedo have their corresponding condition masks set to 1. For the remaining $70\%$ of the training steps, we use the default denoising function where we take input video tokens as conditions and predict the denoised relit video and albedo. + +Our real-world auto-labeled data consists of RGB videos and corresponding albedos but lacks pairwise RGB videos and environment maps. The provided albedo $\mathbf{a}$ is used as a condition, and the RGB video is treated as the target relit video $\mathbf{I}_{\mathbf{E}}$ . Since the original input video and the environment map information are unavailable for this dataset, their respective representations are set to $\mathbf{0}$ : The environment map embedding $\mathbf{h}^{\mathbf{E}}$ within the primary input array becomes $\mathbf{0}$ , and the conditional input video representation $\mathbf{z}^{\mathbf{I}}$ is dropped. The denoising function is thus $\mathbf{f}_{\theta}([ \mathbf{z}_{\tau}^{\mathbf{E}} + \mathbf{0}, \mathbf{z}_0^{\mathbf{a}}, \mathbf{0} ]; \mathbf{c}_{\mathrm{emb}}, \tau)$ . We adopt a 10% probability of dropping conditions to enable classifier-free guidance [24]. + +# 5 Results + +Before evaluating our method, we introduce baselines, metrics, and datasets. Then we conduct ablation studies on the principle of joint modeling and real-world auto-labeling of data. We refer to model implementation details in the Supplement. + +Baselines. For the relighting task, we compare with the 2D methods DiLightNet [68], NeuralGaffer [26], and DiffusionRenderer [39]. As the original DiffusionRenderer is built on Stable Video Diffusion [8], to isolate the effect of the base model and enable a fair algorithmic comparison, we re-implement DiffusionRenderer using the same Cosmos [49] backbone as our method, and adopt a data curation strategy closely following the original paper. We refer to this enhanced variant as DiffusionRenderer (Cosmos). For albedo estimation, we compare with IntrinsicImageDiffusion [32] and DiffusionRenderer [39]. + +Metrics. We apply the standard image metrics PSNR, SSIM, and LPIPS [74] to evaluate relighting and albedo estimation results. For relighting, we also conduct a user study to evaluate the perceptual quality of the produced results. Following prior works [32, 26, 39], we counteract scale ambiguity in both relighting and albedo estimation by a three-channel scaling factor using least-squares error minimization before computing the metrics. + +![](images/ed9e3bed342f3b27c5f63df9c1799ad325baffcbcbf8f3f37edf91b9251ae4f3.jpg) +Figure 4: Qualitative comparison on in-the-wild data. Our method generates more plausible results than the baselines, with higher quality and more realistic appearance. + +Table 1: Quantitative evaluation of relighting, including a user study, where "Ours preferred" indicates the preference over the baselines. A preference over the $>50\%$ indicates Ours outperforming baselines. + +
SyntheticScenesMIT multi-illumination
PSNR ↑SSIM ↑LPIPS ↓PSNR ↑SSIM ↑LPIPS ↓Ours preferred
DiLightNet [68]19.130.5840.31915.790.5390.36892% ± 8%
Neural Gaffer [26]19.170.6380.26317.870.6830.24184% ± 2%
DiffusionRenderer [39]24.170.7680.21716.990.5820.34296% ± 4%
DiffusionRenderer (Cosmos)26.610.8410.22217.290.6220.35588% ± 8%
Ours26.970.8470.19020.760.7490.251n/a
+ +Datasets. We have curated a high-quality synthetic dataset named SyntheticScenes for quantitative and qualitative evaluation of both relighting and albedo estimation tasks. This dataset includes 3D assets from PolyHaven [67] and Objaverse [16], ensuring that no assets were used in the training of our method or any of the baseline methods. SyntheticScenes features 40 scenes, each constructed with a plane textured with random physically-based materials. Each scene is rendered into a 57-frame video sequence under four different lighting conditions, incorporating orbiting camera motions and rotating environment lighting. We cycle through the lighting conditions, selecting one video as the input, and the following as the relighting target, resulting in four different relighting tasks per scene. Additionally, we utilize the test set of MIT multi-illumination benchmark [48], which includes 30 scenes under 25 different illuminations. In this dataset, images are captured sequentially under adjacent flashlight illuminations. For our relighting tasks, the image captured under the $i$ -th lighting condition serves as input, while the image captured under the $(i + 12)$ -th lighting condition is utilized as the target illumination. + +# 5.1 Evaluation + +Qualitative comparison. In Figure 3 and Figure 4, we present a comparative analysis of our method against recent state-of-the-art relighting techniques: DiLightNet [68], NeuralGaffer [26], and DiffusionRenderer [39]. Our approach demonstrates superior performance, particularly in handling intricate shadows and inter-reflections. As illustrated in Figure 3, while DiffusionRenderer performs well on the synthetic dataset, it struggles to accurately represent complex materials—such as anisotropic surfaces, glass, and transparent objects—when utilizing G-buffers as an intermediate state, leading to suboptimal results. NeuralGaffer and DiLightNet do not produce accurate shadows and reflections, leading to poor relighting effects. Specifically, NeuralGaffer often makes very subtle, or no changes to the input video. + +Figure 4 compares relighting results on in-the-wild data. For the first two object-centric scenes, we provided DiLightNet and NeuralGaffer with masks (we used DiLightNet's auto-masking, which is based on Segment Anything [29]) to produce more reasonable results. Notably, DiffusionRenderer struggles with fur, human skin, and car windows in the first three cases, as these are hard to represent + +![](images/b275fbeeafd15a4d9815273b380719173c1f9edb9aa0de0c3a23dd83ad06c11c.jpg) +Input + +![](images/0e55a66ac171cdf9020339e006934cc33e4af8591873f43f019e287b957fedfb.jpg) +Ours (w/o joint modeling) + +![](images/ab9db577e0650f0d55a76b509e3f52ca5cd206c4e0f02056a84d5d673f2026ed.jpg) +Shadow baking artifact + +![](images/0f07bff43fb710240c918706bdeed9d742b97215ba3b04557b20467fc28d0e4b.jpg) +Ours + +![](images/7d2117759fe1989dfb9c0819505b15ef9dbf84c33da59b8b62d61c02ad5d78d7.jpg) +Env. + +![](images/d93f1f37d387e85919442ffe1723fcc485080d8758bd9c523824ea2a533a9d90.jpg) +Figure 5: Ablation on joint modeling. Relighting results on urban street scenes. The orange and green crops highlight regions where the pure relighting model (w/o joint modeling) clearly bakes shadows from the input image into the relit result. Our joint model correctly demodulates the shadows. + +![](images/e2a2b120511c019b88a902a607b920f71210021352e0813725cb09314c5c4eae.jpg) + +![](images/8d840c7fd572607d10c730a07669fc27582f62339a4a945cbc30c1b1426d131f.jpg) + +![](images/b34008aeb35fe237d25dff041db16693a2638d99de53962a288d20de1e488bc9.jpg) + +![](images/21f19722a40889d777fad554f083ba7fb24f3e7e3be106c4ee27b0ec71131b1c.jpg) + +with simple G-buffers. It also misestimates the material of the plastic basin, leading to metal-like appearances. Overall, our relighting model is more general-purpose and can be used more effectively in diverse scenes, yielding comparatively more accurate and high-fidelity relighting results. + +Quantitative comparison. In Table 1, we present a comparative analysis of our method against all baselines on both SyntheticScenes and the MIT multi-illumination benchmark [48]. DiffusionRenderer works well on SyntheticScenes, and the Cosmos version—a stronger base model—leads to improved fidelity. However, on the MIT multi-illumination dataset, DiffusionRenderer fails to model the more challenging materials using only the G-buffers, and even the Cosmos version cannot bridge this gap. + +An outlier is observed in the LPIPS score for NeuralGaffer on the MIT multi-illumination dataset. As mentioned before, NeuralGaffer makes minimal changes to the input and performs poorly, but still achieves the lowest LPIPS score. We speculate that LPIPS considers the images sufficiently similar due to the relatively small deviation in light direction for this dataset. + +User study. We conducted a user study to evaluate the perceptual quality of our relighting method compared to the baseline methods on the MIT multi-illumination dataset. Participants were shown a ground-truth relit image alongside two relighting results—one generated by our method and the other by a baseline model, with the order randomly shuffled. They were asked to select the result that more closely resembled the ground truth, considering aspects such as transparency, shadows, and reflections. For each sample pair, 11 users made a binary selection, and majority voting determined the preferred method for each comparison. We repeated the study three times, involving a total of 33 users, and report the average percentage of samples where our method is preferred over baselines in Table 1, along with the standard deviation for the three experiments. Our results are consistently preferred, strongly outperforming the other baselines. + +Albedo estimation. While our primary focus is on relighting, we also evaluate the quality of our albedo estimates compared to the baselines in Table 2. While the Cosmos version of DiffusionRenderer has a slight edge, our method performs or on par with previous work in all metrics. + +Table 2: Quantitative evaluation of albedo estimation on SyntheticScenes. + +
SyntheticScenes
PSNR ↑SSIM ↑LPIPS ↓
IntrinsicImageDiffusion [32]16.410.5430.395
DiffusionRenderer [39]26.220.8370.166
DiffusionRenderer (Cosmos)28.560.9110.131
Ours28.070.8770.167
+ +# 5.2 Ablation Study + +Ablation on joint modeling. We ablate our joint modeling approach with quantitative and qualitative results in Table 3 and Figure 5. We compare our model to a pure relighting model (without joint modeling), whose denoising function is defined as $\mathbf{f}_{\theta}([{\bf z}_{\tau}^{E} + {\bf h}^{{\bf E}}];{\bf z}^{{\bf I}},\tau)$ . Both models are trained exclusively on synthetic data. The quantitative results in Table 3 reveal that our joint model slightly improves relighting quality compared to the ablated model. The table also shows that providing ground truth albedo as input to our joint model further enhances quality, highlighting the model's capacity to leverage albedo information effectively. For a qualitative assessment, Figure 5 compares the results on urban street scenes outside the training distribution, where urban street scenes typically exhibit strong shadows under sunlight. The joint modeling approach demonstrates superior generalization, characterized by reduced false shadowing, as clearly shown in the figures, whereas the model without joint modeling largely bakes the shadow from the input. + +![](images/9c38f207394e7eba94b61b31623f9174af5ae5f79a1e5c224763f0dd5a692f56.jpg) +Input + +![](images/fb8ffc0768c5be31acc81960f2c72cc0fdc5e50f8be0571a998446f10ff336c4.jpg) +w/o auto-labeled data + +![](images/22fe44786b4fdbb163a4cb0551fd392a3641a7afa31ad17d444ec7955de383b8.jpg) +Ours +Env. + +![](images/e2cf22c2c3cb7bde8321b214274b0bcac7066151201d6e205a46b46be2c34c91.jpg) +Figure 6: Ablation on real-world auto-labeled data. Although the dataset is sparsely labeled, it helps the model generalize to natural images. + +![](images/f917291a9639286bbd2af6d17d1cfdd6bb467b15aa58e4d5fd7cbf75af1cfd51.jpg) + +![](images/8c5cb56900c83d9d094594c27de01463692745223e21a9d2d15d898983c62d66.jpg) + +![](images/4ab4baa0c41e27587f2e40b580c998a710472dbf153717bcd275ff07b245e34d.jpg) + +![](images/7a92f8a7e6860de00548fdc3c8e381c71340efed2e59f67d23dae29d9aa2ad9a.jpg) +Input + +![](images/53c51084608832fef02eaadda02ad40a214e2b903caf3bc1ba88a2afeddabd5e.jpg) +Random Samples + +![](images/dd44e68064fb2daf4346310f50e0c78dc4e071cb7e5448c9f385c1b158c32082.jpg) +Figure 7: Application for data augmentation. The top left image with green outline is the input image. + +![](images/e02b9445883d58acdd36a1dc0bef6d331ce2372509d41ea8e2d289cd0e57266a.jpg) + +Table 3: Ablations on joint modeling designs evaluated on the SyntheticScenes dataset. + +
Ablated VersionsPSNR ↑SSIM ↑LPIPS ↓
Ours (w/o joint modeling)26.420.8420.191
Ours26.970.8470.190
Ours (w/ GT albedo)27.150.8570.181
+ +Table 4: User study of relighting on StreetScenes. Each row compares an ablated variant against the base version (Ours w/o auto-labeled data), reporting percentage of samples where users prefer the base version. + +
Ablated VersionsOurs (w/o auto-labeled data) preferred
Ours (w/o auto-labeled data, w/o joint modeling)68% ± 14%
Ours (w/ auto-labeled data)45% ± 8%
Ours (w/o auto-labeled data, w/ inference-time albedo)54% ± 13%
+ +Ablation on real-world automatically labeled data. We ablate the usefulness of our automatically labeled real-world data in Figure 6. The model trained on solely the synthetic and MIT multi-illumination datasets (center column) exhibits noticeable artifacts for out-of-focus regions and outdoor scenes. This is expected, as both datasets have very limited depth of field and primarily feature indoor scenes or lack sky-like backgrounds. As shown in the figure, even though the real-world auto-labeled dataset contains only a subset (I, a) of the video labels, it significantly helps the model generalize to out-of-domain data, thereby improving image quality. + +User study. We conducted a user study to evaluate the perceptual impact of our design choices on relighting quality, using 19 urban street scenes. For each scene, participants were shown a reference image and two relit videos produced by ablated versions of our method (randomized order). They were asked to select the video with more realistic lighting, focusing on aspects such as shadows and reflections. As before, each comparison was evaluated by 11 participants through binary selection, and the preferred result was determined by majority vote. We repeated the study three times with a total of 33 participants and report the average preference rate and the standard deviation in Table 4. + +When trained only on multi-illumination data (w/o auto-labeled data), the joint modeling variant is strongly preferred over direct relighting. Adding real-world auto-labeled data further improves perceptual quality, consistent with our qualitative and quantitative findings. When comparing models with and without estimated albedo at inference time, the larger standard deviation in user preference suggests the perceptual quality is comparable. This indicates our method does not strictly rely on estimated albedo at test time. + +# 5.3 Application: Illumination Augmentation + +Our model's strong generalization capability enables effective data augmentation for scenarios such as driving and robotics scenes. We test our model under conditions without environment maps and with different random seeds. Figure 7 shows five random illuminations of one input scene. Our model generates diverse data, including nighttime and dusk scenes, demonstrating that it accurately models the illumination distribution and can sample realistic relighting results under varying lighting conditions. + +# 6 Discussion + +To overcome data scarcity and the limitations of decoupled two-stage methods in realistic relighting, we present a novel framework UNIRELIGHT, that jointly models scene intrinsics and illumination. This approach enhances generalization, reduces error accumulation, and more effectively captures complex visual effects by implicitly reasoning about scene properties rather than relying on explicit G-buffers. Furthermore, when trained on real-world auto-labeled data, our model achieves state-of-the-art, high-quality, and realistic relighting results. + +Limitations and future work. While our method performs well on diverse data, our model cannot handle emitting objects, such as toggling lights within scenes. Our design, which is focused on environmental lighting, does not extend to emittance effects, which remains an area of future research. Moreover, incorporating text-based relighting could significantly enhance usability. Future work could investigate the conditioning of lighting with natural language by incorporating text crossattention in our DiT model, a feature currently not implemented. While our method can generate reasonable shadows, integrating our generative approach with explicit 3D information—such as traced shadow buffers—represents a promising direction for improving physical accuracy. Besides, in UNIRELIGHT, we incorporate the albedo to improve the model's generalization, and predicting additional properties could further enhance the model's understanding of scene structure and materials. However, memory requirements scale with the number of properties, making this approach expensive for high-resolution videos; it is worth exploring this direction further. + +# Acknowledgments and Disclosure of Funding + +The authors thank Tianshi Cao and Huan Ling for their insightful discussions that contributed to this project. This work was conducted at and supported by NVIDIA. + +# References + +[1] Niket Agarwal, Arslan Ali, Maciej Bala, Yogesh Balaji, Erik Barker, Tiffany Cai, Prithvijit Chattopadhyay, Yongxin Chen, Yin Cui, Yifan Ding, et al. Cosmos world foundation model platform for physical AI. arXiv preprint arXiv:2501.03575, 2025. 3, 4 +[2] Jonathan T. Barron and Jitendra Malik. Shape, illumination, and reflectance from shading. TPAMI, 2014. 2 +[3] Harry Barrow, J. M. Tenenbaum, A. Hanson, and E. Riseman. Recovering intrinsic scene characteristics. Comput. Vis. Syst, 1978. 2 +[4] Sean Bell, Kavita Bala, and Noah Snavely. Intrinsic images in the wild. ACM ToG, 2014. 2 +[5] Shrisha Bharadwaj, Haiwen Feng, Victoria Abrevaya, and Michael J. Black. GenLit: Reformulating Single-Image Relighting as Video Generation. arXiv preprint arXiv:2412.11224, 2024. 3 +[6] Anand Bhattachad, Daniel McKee, Derek Hoiem, and D. A. Forsyth. StyleGAN knows normal, depth, albedo, and more. arXiv preprint arXiv:2306.00987, 2023. 2 +[7] Anand Bhattachad, James Soole, and D.A. Forsyth. Stylitgan: Image-based relighting via latent control. In CVPR, 2024. 3 +[8] Andreas Blattmann, Tim Dockhorn, Sumith Kulal, Daniel Mendelevitch, Maciej Kilian, Dominik Lorenz, Yam Levi, Zion English, Vikram Voleti, Adam Letts, et al. Stable video diffusion: Scaling latent video diffusion models to large datasets. arXiv preprint arXiv:2311.15127, 2023. 3, 6 +[9] Mark Boss, Raphael Braun, Varun Jampani, Jonathan T. Barron, Ce Liu, and Hendrik P.A. Lensch. NeRD: neural reflectance decomposition from image collections. In ICCV, 2021. 3 +[10] Mark Boss, Varun Jampani, Kihwan Kim, Hendrik P.A. Lensch, and Jan Kautz. Two-shot spatially-varying BRDF and shape estimation. In CVPR, 2020. 2 +[11] Adrien Bousseau, Sylvain Paris, and Frédo Durand. User-assisted intrinsic images. ACM ToG, 2009. 2 +[12] Hila Chefer, Uriel Singer, Amit Zohar, Yuval Kirstain, Adam Polyak, Yaniv Taigman, Lior Wolf, and Shelly Sheynin. VideoJAM: Joint appearance-motion representations for enhanced motion generation in video models. arXiv preprint arXiv: 2502.02492, 2025. 2, 3, 4 +[13] Wenzheng Chen, Joey Litalien, Jun Gao, Zian Wang, Clement Fuji Tsang, Sameh Khalis, Or Litany, and Sanja Fidler. DIB-R++: Learning to predict lighting and material with a hybrid differentiable renderer. In NeurIPS, 2021. 3 +[14] Zhifei Chen, Tianshuo Xu, Wenhang Ge, Leyi Wu, Dongyu Yan, Jing He, Luozhou Wang, Lu Zeng, Shunsi Zhang, and Yingcong Chen. Uni-Renderer: Unifying Rendering and Inverse Rendering Via Dual Stream Diffusion. arXiv preprint arXiv:2412.15050, 2025. 3 + +[15] Paul Debevec, Tim Hawkins, Chris Tchou, Haarm-Pieter Duiker, Westley Sarokin, and Mark Sagar. Acquiring the reflectance field of a human face. In SIGGRAPH, 2000. 3 +[16] Matt Deitke, Dustin Schwenk, Jordi Salvador, Luca Weihs, Oscar Michel, Eli VanderBilt, Ludwig Schmidt, Kiana Ehsani, Aniruddha Kembhavi, and Ali Farhadi. Objverse: A universe of annotated 3D objects. In CVPR, 2023. 7 +[17] Prafulla Dhariwal and Alexander Quinn Nichol. Diffusion models beat GANs on image synthesis. In NeurIPS, 2021. 3 +[18] Xiaodan Du, Nicholas Kolkin, Greg Shakhnarovich, and Anand Bhattachad. Generative models: What do they know? Do they know things? Let's find out! arXiv preprint arXiv:2311.17137, 2024. 3 +[19] Xiao Fu, Wei Yin, Mu Hu, Kaixuan Wang, Yuexin Ma, Ping Tan, Shaojie Shen, Dahua Lin, and Xiaoxiao Long. GeoWizard: unleashing the diffusion priors for 3D geometry estimation from a single image. In ECCV, 2024. 2, 5 +[20] David Griffiths, Tobias Ritschel, and Julien Philip. Outcast: Outdoor single-image relighting with cast shadows. Computer Graphics Forum, 2022. 3 +[21] Roger Grosse, Micah K. Johnson, Edward H. Adelson, and William T. Freeman. Ground truth dataset and baseline evaluations for intrinsic image algorithms. In ICCV, pages 2335-2342. IEEE, 2009. 2 +[22] Jon Hasselgren, Nikolai Hofmann, and Jacob Munkberg. Shape, light, and material decomposition from images using Monte Carlo rendering and denoising. arXiv preprint arXiv:2206.03380, 2022. 3 +[23] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In NeurIPS, 2020. 3 +[24] Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.6 +[25] Yingwenqi Jiang, Jiadong Tu, Yuan Liu, Xifeng Gao, Xiaoxiao Long, Wenping Wang, and Yuexin Ma. GaussianShader: 3D Gaussian splattering with shading functions for reflective surfaces. In CVPR, 2024. 3 +[26] Haian Jin, Yuan Li, Fujun Luan, Yuanbo Xiangli, Sai Bi, Kai Zhang, Zexiang Xu, Jin Sun, and Noah Snavely. Neural Gaffer: Relighting any object via diffusion. In NeurIPS, 2024. 3, 4, 6, 7 +[27] Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. In NeurIPS, 2022. 3 +[28] Bingxin Ke, Anton Obukhov, Shengyu Huang, Nando Metzger, Rodrigo Caye Daudt, and Konrad Schindler. Repurposing diffusion-based image generators for monocular depth estimation. In CVPR, 2024. 2, 5 +[29] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C. Berg, Wan-Yen Lo, Piotr Dólar, and Ross Girshick. Segment Anything. arXiv preprint arXiv:2304.02643, 2023. 7 +[30] Peter Kocsis, Lukas Hollein, and Matthias Nießner. IntrinsiX: High-Quality PBR Generation using Image Priors. arXiv preprint arXiv:2504.01008, 2025. 3 +[31] Peter Kocsis, Julien Philip, Kalyan Sunkavalli, Matthias Nießner, and Yannick Hold-Geoffroy. LightIt: illumination modeling and control for diffusion models. In CVPR, 2024. 3 +[32] Peter Kocsis, Vincent Sitzmann, and Matthias Nießner. Intrinsic image diffusion for indoor single-view material estimation. In CVPR, 2024. 2, 3, 6, 8 +[33] Balazs Kovacs, Sean Bell, Noah Snavely, and Kavita Bala. Shading annotations in the wild. In CVPR, 2017. 2 +[34] Edwin H. Land and John J. McCann. Lightness and retinex theory. J. Opt. Soc. Am., 1971. 2 +[35] Zhengqi Li and Noah Snavely. CGintrinsics: Better intrinsic image decomposition through physically-based rendering. In ECCV, 2018. 2 +[36] Zhengqin Li, Mohammad Shafiei, Ravi Ramamoorthi, Kalyan Sunkavalli, and Manmohan Chandraker. Inverse rendering for complex indoor scenes: Shape, spatially-varying lighting and svbrdf from a single image. In CVPR, 2020. 2 + +[37] Zhengqin Li, Ting-Wei Yu, Shen Sang, Sarah Wang, Sai Bi, Zexiang Xu, Hong-Xing Yu, Kalyan Sunkavalli, Miloš Hasan, Ravi Ramamoorthi, et al. OpenRooms: an end-to-end open framework for photorealistic indoor scene datasets. arXiv preprint arXiv:2007.12868, 2020. 2 +[38] Ruofan Liang, Huiting Chen, Chunlin Li, Fan Chen, Selvakumar Panneer, and Nandita Vijaykumar. ENVIDR: Implicit differentiable renderer with neural environment lighting. In ICCV, 2023. 3 +[39] Ruofan Liang, Zan Gojcic, Huan Ling, Jacob Munkberg, Jon Hasselgren, Zhi-Hao Lin, Jun Gao, Alexander Keller, Nandita Vijaykumar, Sanja Fidler, and Zian Wang. Diffusionrenderer: Neural inverse and forward rendering with video diffusion models. In CVPR, 2025. 1, 2, 3, 4, 5, 6, 7, 8, 22, 23 +[40] Ruofan Liang, Zan Gojcic, Merlin Nimier-David, David Acuna, Nandita Vijaykumar, Sanja Fidler, and Zian Wang. Photorealistic object insertion with diffusion-guided inverse rendering. In ECCV, 2024. 3 +[41] Ruofan Liang, Kai He, Zan Gojcic, Igor Gilitschenski, Sanja Fidler, Nandita Vijaykumar, and Zian Wang. Luxedit: Lighting estimation with video diffusion transformer, 2025. 3 +[42] Zhihao Liang, Qi Zhang, Ying Feng, Ying Shan, and Kui Jia. GS-IR: 3D Gaussian splatting for inverse rendering. arXiv preprint arXiv:2311.16473, 2023. 3 +[43] Andrew Liu, Shiry Ginosar, Tinghui Zhou, Alexei A. Efros, and Noah Snavely. Learning to factorize and relight a city. In ECCV, 2020. 3 +[44] Yuanxun Lu, Jingyang Zhang, Tian Fang, Jean-Daniel Nahmias, Yanghai Tsin, Long Quan, Xun Cao, Yao Yao, and Shiwei Li. Matrix3D: Large Photogrammetry Model All-in-One. arXiv preprint arXiv:2502.07685, 2025. 3 +[45] Yiqun Mei, Mingming He, Li Ma, Julien Philip, Wenqi Xian, David M George, Xueming Yu, Gabriel Dedic, Ahmet Levent Tasel, Ning Yu, et al. Lux post facto: Learning portrait performance relighting with conditional video diffusion and a hybrid dataset. In CVPR, 2025. 3 +[46] Jacob Munkberg, Jon Hasselgren, Tianchang Shen, Jun Gao, Wenzheng Chen, Alex Evans, Thomas Müller, and Sanja Fidler. Extracting triangular 3D models, materials, and lighting from images. arXiv preprint arXiv:2111.12503, 2021. 3 +[47] Jacob Munkberg, Zian Wang, Ruofan Liang, Tianchang Shen, and Jon Hasselgren. VideoMat: Extracting PBR Materials from Video Diffusion Models. In EGSR - CGF Track, 2025. 3 +[48] Lukas Murmann, Michael Gharbi, Miika Aittala, and Fredo Durand. A multi-illumination dataset of indoor object appearance. In ICCV, 2019. 3, 5, 7, 8 +[49] NVIDIA. Cosmos world foundation model platform for physical AI. arXiv preprint arXiv:2501.03575, 2025. 5, 6, 21 +[50] Rohit Pandey, Sergio Orts-Escalano, Chloe LeGendre, Christian Haene, Sofien Bouaziz, Christoph Rhemann, Paul Debevec, and Sean Fanello. Total relighting: Learning to relight portraits for background replacement. ACM ToG, 2021. 3 +[51] Steven G. Parker, James Bigler, Andreas Dietrich, Heiko Friedrich, Jared Hoberock, David Luebke, David McAllister, Morgan McGuire, Keith Morley, Austin Robison, and Martin Stich. OptiX: a general purpose ray tracing engine. ACM ToG, 2010. 5 +[52] William Peebles and Saining Xie. Scalable diffusion models with transformers. arXiv preprint arXiv:2212.09748, 2022.3, 4 +[53] Julien Philip, Michael Gharbi, Tinghui Zhou, Alexei A Efros, and George Drettakis. Multi-view relighting using a geometry-aware network. ACM ToG, 2019. 3 +[54] Pakkapon Phongthawee, Worameth Chinchuthakun, Nontaphat Sinsunthithet, Amit Raj, Varun Jampani, Pramook Khungurn, and Supasorn Suwajanakorn. DiffusionLight: light probes for free by painting a chrome ball. arXiv preprint arxiv:2312.09168, 2023. 3 +[55] Yohan Poirier-Ginter, Alban Gauthier, Julien Philip, Jean-François Lalonde, and George Drettakis. A Diffusion Approach to Radiance Field Relighting using Multi-Illumination Synthesis. Computer Graphics Forum, 2024. 3 +[56] Viktor Rudnev, Mohamed Elgharib, William Smith, Lingjie Liu, Vladislav Golyanik, and Christian Theobalt. NeRF for outdoor scene relighting. In ECCV, 2022. 3 + +[57] Soumyadip Sengupta, Jinwei Gu, Kihwan Kim, Guilin Liu, David W. Jacobs, and Jan Kautz. Neural inverse rendering of an indoor scene from a single image. In ICCV, 2019. 2 +[58] Yahao Shi, Yanmin Wu, Chenming Wu, Xing Liu, Chen Zhao, Haocheng Feng, Jingtuo Liu, Liangjun Zhang, Jian Zhang, Bin Zhou, et al. GIR: 3D Gaussian inverse rendering for reightable scene factorization. arXiv preprint arXiv:2312.05133, 2023. 3 +[59] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In ICML, 2015. 3 +[60] Zian Wang, Wenzheng Chen, David Acuna, Jan Kautz, and Sanja Fidler. Neural light field estimation for street scenes with differentiable virtual object insertion. In ECCV, 2022. 2 +[61] Zian Wang, Jonah Philion, Sanja Fidler, and Jan Kautz. Learning indoor inverse rendering with 3D spatially-varying lighting. In ICCV, 2021. 2 +[62] Zian Wang, Tianchang Shen, Jun Gao, Shengyu Huang, Jacob Munkberg, Jon Hasselgren, Zan Gojcic, Wenzheng Chen, and Sanja Fidler. Neural fields meet explicit geometric representations for inverse rendering of urban scenes. In CVPR, June 2023. 3 +[63] Felix Wimbauer, Shangzhe Wu, and Christian Rupprecht. De-rendering 3D objects in the wild. In CVPR, 2022. 2 +[64] Chen Xi, Peng Sida, Yang Dongchen, Liu Yuan, Pan Bowen, Lv Chengfei, and Zhou. Xiaowei. Intrinsic: Anything: learning diffusion priors for inverse rendering under unknown illumination. arXiv preprint arXiv: 2404.11593, 2024. 3 +[65] Xiaoyan Xing, Konrad Groh, Sezer Karaoglu, Theo Gevers, and Anand Bhattachad. Luminet: Latent intrinsics meets diffusion models for indoor scene relighting. arXiv preprint arXiv:2412.00177, 2024. 3 +[66] Ye Yu and William A. P. Smith. InverseRenderNet: learning single image inverse rendering. In CVPR, 2019. 2 +[67] Greg Zaal and et al. Poly Haven - The Public 3D Asset Library, 2024. 7 +[68] Chong Zeng, Yue Dong, Pieter Peers, Youkang Kong, Hongzhi Wu, and Xin Tong. DiLightNet: fine-grained lighting control for diffusion-based image generation. In SIGGRAPH, 2024. 3, 6, 7, 21 +[69] Zheng Zeng, Valentin Deschaintre, Iliyan Georgiev, Yannick Hold-Geoffroy, Yiwei Hu, Fujun Luan, Ling-Qi Yan, and Miloš Hasan. RGB ↔X: image decomposition and synthesis using material-and lighting-aware diffusion models. In SIGGRAPH, 2024. 1, 3 +[70] Kai Zhang, Fujun Luan, Zhengqi Li, and Noah Snavely. IRON: inverse rendering by optimizing neural SDFs and materials from photometric images. In CVPR, 2022. 3 +[71] Kai Zhang, Fujun Luan, Qianqian Wang, Kavita Bala, and Noah Snavely. PhySG: Inverse rendering with spherical Gaussians for physics-based material editing and relighting. In CVPR, 2021. 3 +[72] Longwen Zhang, Qixuan Zhang, Minye Wu, Jingyi Yu, and Lan Xu. Neural video portrait relighting in real-time via consistency modeling. In ICCV, 2021. 3 +[73] Lvmin Zhang, Anyi Rao, and Maneesh Agrawala. Scaling in-the-wild training for diffusion-based illumination harmonization and editing by imposing consistent light transport. In ICLR, 2025. 22, 23 +[74] Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018. 6 +[75] Tianyuan Zhang, Zhengfei Kuang, Haian Jin, Zexiang Xu, Sai Bi, Hao Tan, He Zhang, Yiwei Hu, Milos Hasan, William T. Freeman, Kai Zhang, and Fujun Luan. RelitLRM: Generative relightable radiance for large reconstruction models. In ICLR, 2025. 3 +[76] Xiuming Zhang, Pratul P. Srinivasan, Boyang Deng, Paul Debevec, William T. Freeman, and Jonathan T. Barron. NeRFactor: neural factorization of shape and reflectance under an unknown illumination. ACM ToG, 2021. 3 +[77] Qi Zhao, Ping Tan, Qiang Dai, Li Shen, Enhua Wu, and Stephen Lin. A closed-form solution to retina with nonlocal texture constraints. TPAMI, 34(7):1437-1444, 2012. 2 +[78] Hao Zhou, Sunil Hadap, Kalyan Sunkavalli, and David W. Jacobs. Deep single-image portrait relighting. In ICCV, October 2019. 3 + +# NeurIPS Paper Checklist + +The checklist is designed to encourage best practices for responsible machine learning research, addressing issues of reproducibility, transparency, research ethics, and societal impact. Do not remove the checklist: The papers not including the checklist will be desk rejected. The checklist should follow the references and follow the (optional) supplemental material. The checklist does NOT count towards the page limit. + +Please read the checklist guidelines carefully for information on how to answer these questions. For each question in the checklist: + +- You should answer [Yes], [No], or [NA]. +- [NA] means either that the question is Not Applicable for that particular paper or the relevant information is Not Available. +- Please provide a short (1–2 sentence) justification right after your answer (even for NA). + +The checklist answers are an integral part of your paper submission. They are visible to the reviewers, area chairs, senior area chairs, and ethics reviewers. You will be asked to also include it (after eventual revisions) with the final version of your paper, and its final version will be published with the paper. + +The reviewers of your paper will be asked to use the checklist as one of the factors in their evaluation. While "[Yes]" is generally preferable to "[No]", it is perfectly acceptable to answer "[No]" provided a proper justification is given (e.g., "error bars are not reported because it would be too computationally expensive" or "we were unable to find the license for the dataset we used"). In general, answering "[No]" or "[NA]" is not grounds for rejection. While the questions are phrased in a binary way, we acknowledge that the true answer is often more nuanced, so please just use your best judgment and write a justification to elaborate. All supporting evidence can appear either in the main paper or the supplemental material, provided in appendix. If you answer [Yes] to a question, in the justification please point to the section(s) where related material for the question can be found. + +IMPORTANT, please: + +- Delete this instruction block, but keep the section heading "NeurIPS Paper Checklist", +- Keep the checklist subsection headings, questions/answers and guidelines below. +- Do not modify the questions and only use the provided macros for your answers. + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The abstract and introduction clearly state our contributions, which are fully supported by the experiments and analysis presented. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We discuss limitations in Section 6. + +# Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: The paper does not contain theoretical results or formal proofs. + +Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: We include all necessary details for reproduction in the main paper and supplementary materials. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [No] + +Justification: We plan to release the code and data upon acceptance. The internal guidelines of our institution prevent us from releasing code at this stage. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. + +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: All relevant details are provided in the paper and supplementary materials. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [No] + +Justification: Due to the high computational cost of training large-scale video diffusion models, we did not perform multiple runs to report error bars. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We include sufficient information in supplementary materials. + +Guidelines: + +- The answer NA means that the paper does not include experiments. + +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: Our work adheres to the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: We discussed societal impacts of our work in the paper. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: Our work does not involve models or data with high risk of misuse. + +# Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: Third-party assets are properly credited, and their licenses are respected. + +# Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: Our paper does not release new assets. + +# Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +# Answer: [Yes] + +Justification: We include the details of all crowdsourcing experiments in supplementary materials. + +# Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +# Answer: [Yes] + +Justification: An approval is obtained for all of our experiments. + +# Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [NA] + +Justification: LLMs were not used in the core methods of this research. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +In this Appendix, we first discuss the broader impact of our project (Appendix A). We then provide additional implementation details of our model and experiments (Appendix B), followed by further results and analysis (Appendix C). Please refer to the accompanying video for additional qualitative results and comparisons. + +# A Broader Impact + +We present UniRelight, a generative framework that jointly estimates albedo and synthesizes relit videos from a single input, enabling diverse lighting manipulation across both synthetic and real-world scenes. This capability can support a range of applications, including creative content generation, visual effects, virtual production, and potentially data augmentation for training more robust computer vision models in domains such as robotics and autonomous driving. + +As with all generative video models, UniRelight may reflect biases present in its training data. Such biases could lead to relighting results that fail to generalize to underrepresented scene types or lighting conditions. Furthermore, tools for lighting manipulation carry the risk of misuse, such as altering or misrepresenting visual content in sensitive contexts like surveillance or media. + +We discourage the use of UniRelight in applications where relighting may contribute to misinformation, misattribution, or privacy violations. In human-centric use cases, we recommend careful dataset curation to ensure fair representation across skin tones, races, and gender identities. Practitioners are encouraged to critically assess and de-bias training data to mitigate unintended harms where appropriate. + +# B Experimental Details + +# B.1 Implementation Details + +We fine-tune our models based on Cosmos-Predict1-7B-Video2World [49], a pre-trained DiT video diffusion model. + +The encoded latents $\mathbf{z}^{\mathrm{I}},\mathbf{z}^{\mathrm{a}},\mathbf{z}^{\mathrm{E}},\mathcal{E}(\mathbf{E}_{\mathrm{ldr}}),\mathcal{E}(\mathbf{E}_{\mathrm{log}})$ and $\mathcal{E}(\mathbf{E}_{\mathrm{dir}})$ are all in $\mathbb{R}^{l\times h\times w\times C}$ , where $C = 16$ . We use $C_{\mathrm{emb}} = 3$ as the dimension of the type embedding. Thus, the concatenated tokens have a channel dimension of $16 + 1 + (16 + 1)\times 3 + 3 = 71$ , where each latent has an associated binary condition mask (added as an extra channel), and the lighting features $(\mathbf{E}_{\mathrm{ldr}},\mathbf{E}_{\mathrm{log}},\mathbf{E}_{\mathrm{dir}})$ each include a condition mask to indicate whether they are provided. + +We adopt an image-video co-training strategy and train the model in two stages. Firstly, we train with only synthetic data by mixing the image data (sampling one frame from the video data) and the video data in a ratio of $1:1$ for 15,000 iterations. Then we train with all data with random sampling, including synthetic video data, synthetic image data, real-world auto-labeled data, and MIT multi-illumination data, in a ratio of $8:1:3:2$ for 12,000 iterations. We augment the real-world auto-labeled data with random flipping. + +All training is done with a batch size of 64, using the AdamW optimizer with a learning rate of $2 \times 10^{-5}$ , with mixed-precision (BF16) training at a resolution of $480 \times 848$ pixels. The AdamW optimizer was employed with a weight decay of 0.1. The exponential decay rates for the moment estimates $\beta$ are set to 0.9 for the first moment and 0.99 for the second moment, with $\epsilon$ at $1 \times 10^{-10}$ . The total training of two stages takes around 4 days on 32 A100 GPUs. + +During inference, we use 35 denoising steps. We do not apply classifier-free guidance (CFG), as we empirically found that inference without CFG yields more accurate and visually consistent results. + +Baseline configurations. Since DiLightNet [68] requires a text prompt per example, we use meta/llama-3.2-90b-vision-instruct to generate a short prompt for each example in the datasets based on the first image in each clip with the instruction "What is in this image? Describe the materials. Be concise and produce an answer with a few sentences, no more than 50 words." + +As each of the baselines generates videos in different resolutions, for UNet-based baselines, we run inference on the model with the video first resized to $486 \times 864$ and then center-cropped to a + +![](images/9ce02258916a677a0f5cfd62f5a3ab405a39e7a37ef86c88932ba9b1c4275e3e.jpg) +Figure 8: Synthetic data visualization. Randomly sampled example images are shown from our synthetic rendering data. The top-most images show albedo maps, while the bottom two rows display rendered scenes under two different illuminations with the corresponding environment maps. + +Table 5: Quantitative comparison with ICLight. + +
PSNR ↑SSIM ↑LPIPS ↓
IC-Light [73]18.080.8340.096
Ours23.190.9010.079
+ +Table 6: Evaluation of inference runtime cost. + +
Runtime cost (seconds) ↓
DiffusionRenderer [39]566.6
DiffusionRenderer (Cosmos)780.0
Ours445.5
+ +resolution of $448 \times 832$ ; for our DiT-based model, we run inference on the model with the resized video with resolution of $486 \times 864$ and then center-cropped to $448 \times 832$ to align the results. + +Quantitative comparison configurations. For quantitative evaluation, we apply background masks to the synthetic dataset to focus on foreground appearance. For the MIT multi-illumination dataset, we follow the dataset protocol and mask out light probes in all outputs before computing metrics. + +# B.2 User Study Details + +We conducted two user studies on Amazon Mechanical Turk to evaluate the perceptual quality of relighting results. + +MIT multi-illumination dataset is a public benchmark with ground truth relighting. Participants were shown three images: a ground truth relit image and two relighting results—one generated by our method and one by a baseline model. Their task was to choose the result that more closely resembled the ground truth, considering attributes such as transparency, shadows, and reflections. + +The exact instructions shown to participants were as follows: + +Carefully compare Image A, the Reference Image, and Image B. Your task is to determine which image (A or B) is more similar to the Reference Image. + +To make an informed decision, you may zoom in to examine the details. Pay close attention to aspects such as lighting, reflections, and shadows, as these can affect how natural the image appears. + +Once you have compared the images, select the one that best matches the Reference Image. + +□ Image A +□ Image B + +We evaluated 30 scenes from the test set, comparing our method against four baselines. The study was repeated three times with 11 unique participants in each run. In total, this resulted in $30 \times 4 \times 11 \times 3 = 3960$ individual comparisons. + +StreetScenes Dataset. This dataset contains 19 urban street scenes without ground-truth relighting. Participants were shown a reference image along with two relit videos generated by different ablated versions of our method. + +The instructions presented to participants were as follows: + +In this study, you will be shown a Reference Image and two videos - Video A and Video B - that changes the lighting of the scene. Your task is to watch both + +![](images/22e14b5ee2ca2f2d480a7832ced8a3c4e4a233f903be0e23a5f1db2b81c9b951.jpg) +Figure 9: Qualitative comparison with IC-Light [73]. We provide the environmental background used for IC-Light conditioning, with the reference environment ball on the left. Our method produces higher-quality and more accurate relighting results. + +videos and choose which one (A or B) you think has more realistic shadows and reflections. To make an informed decision, you may zoom in to examine the details. Pay close attention to aspects such as lighting, reflections, and shadows, as these can affect how natural the image appears. + +Once you have compared the videos, select the one that has more realistic lighting effects. + +Video A +Video B + +We evaluated 19 scenes, comparing a base version against two ablated versions of our method. The study was repeated three times with 11 unique participants in each run. In total, this resulted in $19 \times 2 \times 11 \times 3 = 1254$ individual comparisons. + +# B.3 Synthetic data visualization + +We show a synthetic data visualization in Figure 8. Each scene contains albedo videos, two environment maps, and pairwise videos rendered under the environment maps. + +# C Additional Results + +Runtime cost. We evaluate the inference runtime of our model on a 57-frame video at a resolution of $480 \times 848$ . The overall inference time for performing 35 denoising steps, including VAE encoding and decoding, is 445.5 seconds, measured on a single A100 GPU. + +To contextualize this cost, we compare our method against two baselines: DiffusionRenderer [39] and its Cosmos-based variant. All methods use 35 denoising steps for consistency. DiffusionRenderer is run at $448 \times 832$ resolution (slightly smaller than ours but divisible by 32 to fit its architecture) while the Cosmos variant is run at our native resolution. + +For baseline methods, the total runtime is the sum of the inverse rendering and forward rendering durations. Notably, DiffusionRenderer requires five separate inverse rendering passes and one forward rendering pass per video, resulting in significantly higher computational cost. In contrast, our approach performs joint relighting and albedo estimation in a single pass and is correspondingly faster. Full timing results are shown in Table 6. + +Comparison with IC-Light [73]. We compare our method with the single-image relighting approach IC-Light [73] on object-centric synthetic data, as shown in Table 5 and Figure 9. Note that the + +![](images/5ef610476996498659046fe9406297a39e4bcc26a10738e80c34a6fa9eade30c.jpg) +Figure 10: Additional qualitative comparison on MIT multi-illumination dataset. Our method consistently achieves more accurate relighting results than all baselines on the MIT multi-illumination dataset, demonstrating strong capability in relighting complex materials. + +two methods follow different relighting formulations: IC-Light is designed for object relighting using background context as the primary cue—without access to an explicit environment map, while our method is conditioned on full HDR illumination, but is not specifically tuned for object-centric data. + +Our method shows improved quantitative and qualitative performance. Since IC-Light relies on background appearance as its primary cue and has less information about the surrounding lighting, it may retain input-specific effects in its outputs—such as specular highlights and shadows, which can limit accuracy under novel lighting conditions. In contrast, our method produces more faithful relighting results, with sharper specular highlights, more realistic shadows, and improved visual fidelity. + +Additional qualitative comparison on the MIT multi-illumination dataset. We provide additional qualitative comparisons on the MIT Multi-Illumination dataset in Figure 10. To ensure a fair comparison, we include results from our re-implemented version of DiffusionRenderer using the Cosmos backbone, which achieves higher visual fidelity than the original implementation. Our method + +![](images/094d1f27dc9d7884a16c5531a435f6ef1d7fe8780f4a39d021588d80ea7290f8.jpg) +Input + +![](images/98a0ef12b94f44d7909272da13f4c265a7743ede491361bec84e98885cec6ce7.jpg) +Relighting I + +![](images/38e9c4a189161c7890d6397565762c7979f7126258d918243c9d7a8871f9de56.jpg) +Relighting II + +![](images/c82780ac0a7ac2357295c5cdbdb3372132ceec2043856b79a613e8c2766b670d.jpg) +Relighting III + +![](images/6b14c2e21fe6192909ea033619165b1d9c63a153e986276f0ef845a95d9f33f0.jpg) +Figure 11: Additional qualitative results under point-light illumination. The bottom right of each column indicates the target lighting conditions. Our results show strong robustness of our method under point-light illumination. + +![](images/fbe1745a8515694f5d92b706aed1f5fa1219a142552e6dabcb9553f5766aab67.jpg) + +![](images/38c0fee9e46db2735997b5a061509d6cb6811a852b14cf644942b12283e2d167.jpg) + +![](images/10f6d7ab2c1b0b6a9de30f7e651e7b3330b679189f8cd5e6f23f16c83ae67083.jpg) + +![](images/220e2ba589f6e7edd8d6ad8ad5de1ca9b319103b113d542d5a16f8b80e7123ee.jpg) +Input + +![](images/ca53d2bf3780936001aa4c1b6969dd2e0ad730dc33a604e3914312f8a29e21a9.jpg) +Estimated Albedo + +![](images/1e4e1d8483c7ba1fe25f48bc16f1e09c4a940a504c2f712aff934c2042984a33.jpg) +Relighting + +![](images/73bbc93b4ccada7addf8ff1bc586d5e4ca42b11a491c0d066a41e5697456c9df.jpg) +Env. + +![](images/a531ee4980ceb85bb47c2f3fb58c6cf0c50606c1cb9a3bd5ddf6c9595b8967c4.jpg) + +![](images/682b4fc1085511af53bf7db102175b59cb43aa3c1ee01822897fb8cd22a27059.jpg) + +![](images/749b66c6e1a7cf8261dd81ef0e8bde1a9bf4910a236fad5dc0ffb5b6dce70dec.jpg) + +![](images/9e64057bd8d0ef3bc3f19a8e95363663a405b76dcdb52217370b0af495472552.jpg) + +![](images/240b732a2ad8a1452f7dbd2291253f7a81d679cd1cdeef82398f76af1f773fb0.jpg) + +![](images/b59b26713c7f40161596a8cbdfdd8a1e68f2a665f94d5c8885e5978e17a919fb.jpg) + +![](images/e53ea253220df3469d1f0919fb27378f57f2e00a80fbe463edf4bbfa4ccdff0b.jpg) + +![](images/ebea8c79ce652e666731f09c8604a2d50e123d45dd19f21f62d54e992e88dbac.jpg) + +![](images/53ad06874b2aa6c8e9fb69316c20aa86fe2032ce09b429dc9452a5f5968aac1b.jpg) + +![](images/04889c02731a642e4c4fe02cc36c3d812b81db96d89fffd0cf0f9d1bfc6f924e.jpg) + +![](images/af4c4bfd8a7954b314823ebf8af4114cf990a8935ffb7fc7cd8d676dc1a7a0fd.jpg) + +![](images/5244bca55478b1ba41bfea80776cf7d00198e0a4843880ca4bc406b4659c2427.jpg) + +![](images/87b1f57a00913401fb5f66381ffeaec93cf15e02e62134faed864346f66ff455.jpg) +Figure 12: Additional qualitative results on real scenes. Our method provides high-quality albedo estimation and realistic relighting results. + +![](images/59c0564e06a3eeab8ad0d5b92b4e5b350dedb4a98ead898a058c82f4f97c9757.jpg) + +![](images/cf280cd73fddecc54bc4868ec512092ba56e0ddde0ddf2b7688355f9417f0d3c.jpg) + +![](images/fc9e8d5c3d3554bbb188f1259214ed27705f5b5332725f07f511db33086fb160.jpg) + +consistently produces more accurate transparency, specular highlights, and shadows across scenes, demonstrating strong capability in handling complex materials and outperforming all baselines in visual quality. + +Additional qualitative results under point-light illumination. We further evaluate the robustness of our method in extreme cases, such as point-light illuminations, which do not exist in our training data. As shown in Figure 11, our method produces high-quality relighting results, demonstrating the strong robustness and generalization capability of our method. + +Additional qualitative results on real scenes. We present additional results on real scenes in Figure 12. Our method produces high-quality albedo and relighting results with realistic specular highlights and shadows under target lighting conditions. \ No newline at end of file diff --git a/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/images.zip b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..c5d5318611da0dce2c93fe19aff09623604b5dec --- /dev/null +++ b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c17e209f5160db521e75a0115f50402a55e55faa90116511c7da1d99410d13b3 +size 1174308 diff --git a/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/layout.json b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..a834db8c16638487b46ccded8fa458a3f9c290f7 --- /dev/null +++ b/NeurIPS/2025/UniRelight_ Learning Joint Decomposition and Synthesis for Video Relighting/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd404b6a580ff11fbe3c8ebf3b634d59c9043f09004b5edfcaf37ecd1de221b0 +size 903545 diff --git a/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/b4516587-7c8c-44ae-a712-fec06f190281_content_list.json b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/b4516587-7c8c-44ae-a712-fec06f190281_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..ca5649adbcc00440450260289229cc5c3bb056fe --- /dev/null +++ b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/b4516587-7c8c-44ae-a712-fec06f190281_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fddd3a6c4d0af53cf1260c91d34244a06b92d9aafec2f34385f3ddfa57e2df7 +size 163844 diff --git a/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/b4516587-7c8c-44ae-a712-fec06f190281_model.json b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/b4516587-7c8c-44ae-a712-fec06f190281_model.json new file mode 100644 index 0000000000000000000000000000000000000000..fb439437b2a820cb03d1c0371d1e4f7041f75def --- /dev/null +++ b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/b4516587-7c8c-44ae-a712-fec06f190281_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42b4d1da2082b3b33314aafa5260f6a248f477cad0b6ff6cc0b91da55bb322ee +size 212679 diff --git a/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/b4516587-7c8c-44ae-a712-fec06f190281_origin.pdf b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/b4516587-7c8c-44ae-a712-fec06f190281_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a5e7fe63bbbc016ca2febf11f1c093d1348c5a1a --- /dev/null +++ b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/b4516587-7c8c-44ae-a712-fec06f190281_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cdfcd60f05d85823de70e32fca46295268cc7f986ea7f87d6531e45a298309c +size 26126029 diff --git a/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/full.md b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/full.md new file mode 100644 index 0000000000000000000000000000000000000000..9e98d2640396e0a9f3fc470b3fa4e9fc0a0f8bbf --- /dev/null +++ b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/full.md @@ -0,0 +1,737 @@ +# UniSite: The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection + +Jigang Fan $^{1,*}$ Quanlin Wu $^{1,*}$ Shengjie Luo $^{2}$ Liwei Wang $^{1,2,3,\dagger}$ + +1Center for Data Science, Peking University + +$^{2}$ State Key Laboratory of General Artificial Intelligence, Peking University + +3Center for Machine Learning Research, Peking University + +{jigangfan,luosj} $@$ stu.pku.edu.cn,{quanlin,wanglw}@pku.edu.cn + +# Abstract + +The detection of ligand binding sites for proteins is a fundamental step in Structure-Based Drug Design. Despite notable advances in recent years, existing methods, datasets, and evaluation metrics are confronted with several key challenges: (1) current datasets and methods are centered on individual protein-ligand complexes and neglect that diverse binding sites may exist across multiple complexes of the same protein, introducing significant statistical bias; (2) ligand binding site detection is typically modeled as a discontinuous workflow, employing binary segmentation and subsequent clustering algorithms; (3) traditional evaluation metrics do not adequately reflect the actual performance of different binding site prediction methods. To address these issues, we first introduce UniSite-DS, the first UniProt (Unique Protein)-centric ligand binding site dataset, which contains 4.81 times more multi-site data and 2.08 times more overall data compared to the previously most widely used datasets. We then propose UniSite, the first end-to-end ligand binding site detection framework supervised by set prediction loss with bijective matching. In addition, we introduce Average Precision based on Intersection over Union (IoU) as a more accurate evaluation metric for ligand binding site prediction. Extensive experiments on UniSite-DS and several representative benchmark datasets demonstrate that IoU-based Average Precision provides a more accurate reflection of prediction quality, and that UniSite outperforms current state-of-the-art methods in ligand binding site detection. The dataset and codes will be made publicly available at https://github.com/quanlin-wu/unisite. + +# 1 Introduction + +The detection of ligand binding sites on target proteins is one of the most critical steps in modern drug discovery strategies [1, 2, 3]. Structure-based drug design approaches begin with the three-dimensional structure of the target protein, from which deep, druggable cavities are identified. These regions, referred to as binding sites or binding pockets, are composed of sets of protein residues. Once the protein's sites are recognized, virtual screening of a molecular library can be performed using methods such as protein-ligand docking and protein-ligand affinity prediction [4, 5]. Alternatively, de novo molecular design [6, 7] can be conducted based on the local structure of the binding sites to identify potential candidate compounds. As a fundamental step, the accurate identification of protein binding sites can significantly facilitate and influence subsequent steps in drug discovery. + +Over the past several decades, some endeavours have been made to detect protein ligand binding sites. These methods have evolved from traditional techniques based on geometry [8], template searching [9], and energy probes [10], to machine learning methods based on surface features [11], and further to deep learning methods utilizing convolutional neural networks (CNNs) [12] and graph neural networks (GNNs) [13, 14, 15]. Concurrently, a series of protein-ligand datasets have also been established progressively, including scPDB [16] and PDBbind [17] datasets for protein-ligand complex structures, as well as benchmark datasets such as Holo4K [18] and COACH420 [19] for evaluating binding site detection methods. + +Although the above efforts have significantly advanced the field of ligand binding site detection, current methods, datasets, and evaluation metrics are confronted with substantial challenges: + +Issue 1. All previous methods and datasets are PDB (Protein Data Bank file)-centric, specifically focusing on individual protein-ligand structures, which introduces considerable statistical bias. Due to experimental constraints, only a limited number of binding sites in the protein are typically observed in one single protein-ligand structure where ligands are bound. However, one protein can be associated with numerous distinct protein-ligand structures, which exhibit high structural similarity in their protein components yet considerable variation in their binding site regions [20, 21, 22] (Figure 1). But existing datasets and methods only regard these structures as individual data entries, focusing on limited binding sites in single PDB structure. Training and evaluating on PDB-centric datasets introduces significant statistical bias, as the annotation paradigm of individual PDB structures overlooks many other ground truth binding sites. + +Issue 2. Existing methods employ discontinuous workflows for binding site detection. Most approaches [8, 11, 13, 14] first perform semantic segmentation to generate binary masks of potential binding residues/atoms, then cluster them into discrete binding sites. Alternative implementations only predict binding site centers [15], and the associated residues need to be extracted using external methods. These fragmented pipelines highly rely on the post-processing methods (e.g. clustering algorithms), inherently limit end-to-end optimization and struggle with overlapping binding sites. + +Issue 3. Traditional evaluation metrics inadequately reflect the actual performance of binding site detection. The most widely used evaluation metrics are DCC and DCA [11]. DCC represents the distance between the predicted binding site center and the ground truth binding site center. DCA denotes the shortest distance between the predicted binding site center and any heavy atom of the ligand. These metrics suffer from two fundamental limitations (Figure 4): (1) they completely disregard the structural properties such as shape, size, and residue composition of binding sites, which are crucial for downstream tasks (Appendix A), and (2) the absence of proper matching criteria between predictions and ground truth may lead to double-counting of predictions. + +To address the issues mentioned above, this paper makes the following contributions: + +1) We introduce UniSite-DS, a manually curated, UniProt (Unique Protein)-centric dataset of protein ligand binding sites. Leveraging the unique identifiers assigned to protein sequences in UniProt [23], we systematically integrated all ligand binding sites associated with given unique protein across multiple PDB structures. To the best of our knowledge, it is the first UniProt-centric dataset. Notably, UniSite-DS includes 4.81 times more multi-site proteins than existing datasets [16, 17], and the overall size of the dataset is 2.08 times larger. The Uniprot-centric dataset corrects the statistical bias of previous PDB-centric datasets, thereby resolving Issue 1 and significantly broadening the available data. +2) We propose UniSite-1D and UniSite-3D, two end-to-end methods for protein ligand binding site detection. Both models utilize a transformer encoder-decoder architecture, supervised by a set prediction loss with bijective matching. UniSite 1D/3D directly predict $N$ potentially overlapping binding sites without requiring post-processing clustering steps, thus completely resolves Issue 2. The UniSite-1D variant operates exclusively on 1D protein sequence inputs, providing structure-free binding site detection capability. For enhanced performance, the UniSite-3D variant incorporates 3D structural information while maintaining the same end-to-end prediction framework. +3) To overcome the limitations inherent in traditional evaluation methods outlined in Issue 3, we introduce an Average Precision (AP) metric based on Intersection over Union (IoU) for fair and comprehensive binding site assessment. Extensive experiments have demonstrated that the IoU-based AP maintains strong concordance with method rankings under traditional metrics while overcoming their key limitations, providing a more accurate reflection of prediction quality. + +4) Extensive experiments on UniSite-DS and classical datasets have demonstrated that our methods outperform the current state-of-the-art methods in protein ligand binding site detection. These results indicate that the end-to-end detection framework, which operates without the need for specialized feature engineering, is already capable of exhibiting strong performance for binding site detection. + +![](images/39a515f12d98d5abd993a6fe70107d4999e8139f68262ac262e5cb78ff937e84.jpg) +Figure 1: Comparison between UniSite-DS and previous datasets. (Top left) In PDBbind2020, only one ligand binding site and one structure are recorded for UniProt ID Q8WS26. (Top right) In contrast, UniSite-DS integrates distinct binding sites across all available structures (highly similar, mean TM-Score=0.99), identifying 17 unique ligand binding sites derived from 13 representative PDB entries. (Bottom left and center) Comparison of UniSite-DS with other widely used datasets in terms of multi-site entries and the number of unique proteins. For HOLO4K and COACH420, the most widely used mlig subsets were selected, where each entry corresponds to a PDB structure, while in UniSite-DS, each entry corresponds to a UniProt ID. (Bottom right) Distribution of the number of unique proteins in UniSite-DS with respect to the number of distinct binding sites they contain. + +# 2 UniSite-DS: The First Uniprot-centric Dataset + +A key challenge in detecting protein binding sites is how to identify all potential binding sites [20, 21]. Most proteins contain an inherently conserved binding site, commonly referred to as the active site. The active site is shared among members of the same protein family, which means that molecules targeting this site will simultaneously target all other proteins within the family, which is highly likely to lead to off-target effects and side effects [24]. Identifying other binding sites within the protein that can be targeted is a crucial strategy. These sites are often located in regions topologically distant from the active site and can modulate the protein's function through allosteric effects [25, 26, 27]. + +As illustrated in Figure 1, one single protein can correspond to a large number of different ligand-bound structures. While the overall protein structure tends to be highly conserved, the ligand binding site regions vary considerably across these structures. The motivation behind constructing UniSite-DS lies in the recognition that identifying all potential binding sites of a protein requires a comprehensive examination of all its ligand-bound structures—an important consideration that has been overlooked by previous methods and datasets. + +To construct UniSite-DS, we performed the following search and processing steps: (1) We utilized AHoJ [28] to systematically search for all protein-ligand interactions in the PDB database [29]; (2) To ensure dataset quality, we excluded entries with a resolution greater than $2.5\AA$ or those determined by non-crystallographic methods; (3) Following P2Rank's filtering criteria [11], we removed solvent molecules and ligands composed of fewer than five atoms, resulting in a total + +of 143,197 protein-ligand interaction entries; (4) For each interaction, binding site residues were identified within a $4.5\AA$ radius of the ligand; (5) We discarded entries with three or fewer binding site residues to eliminate "floating" ligands; (6) Leveraging UniProt's unique protein sequence identifiers [23], we mapped binding site residues from all protein-ligand interactions of each UniProt entry to their corresponding sequences via SIFTS annotations [30], integrating all ligand binding sites across different PDB structures; (7) To eliminate data redundancy among ligand binding sites, we applied Non-Maximum Suppression (NMS) with an Intersection over Minimum (IoM) threshold of 0.7 and an Intersection over Union (IoU) threshold of 0.5, excluding highly overlapping sites. This process resulted in 13,464 distinct UniProt IDs, of which 4,846 contained multiple ligand-binding sites; (8) Based on the criteria from Proteina [31], we set the sequence length threshold to 800; (9) We manually inspected all UniProt IDs with more than ten ligand binding sites, as well as those where a single protein-ligand complex structure contributed three or more binding sites. As a result, we identified 11,510 valid UniProt IDs, including 3,670 with multiple ligand binding sites. The distribution of ligand binding sites is shown in Figure 1. More details about the UniSite-DS curation workflow and manual inspection process are provided in Appendix B. + +As the first UniProt-centric dataset, UniSite-DS encompasses 4.81 times more multi-site entries than previous datasets, and covers 2.96 times more UniProt entries than the widely used PDBbind dataset [17], as well as 2.08 times more than sc-PDB [16] (Figure 1). UniSite-DS eliminates the statistical biases inherent in earlier datasets and significantly expands the available data on multi-site ligand binding sites. Notably, case studies conducted using UniSite-DS (Appendix E) highlighted the limitations of current binding site prediction methods in handling multi-site proteins. This observation motivated us to develop a novel end-to-end method for protein-ligand binding site detection. + +# 3 The Proposed Methodology + +In this paper, we formulate protein ligand binding site detection as a set prediction task: given a protein $P$ with an amino acid sequence $S$ of length $L$ , the goal of binding site detection is to identify a set of binding sites $\{m_i^{gt}\}_{i=1}^{N_{gt}}$ , where each binding site is represented by a binary mask $m_i^{gt} \in \{0,1\}^L$ . Here, $m_{ij}^{gt} = 1$ indicates that the $j$ -th residue is part of the $i$ -th site, while $m_{ij}^{gt} = 0$ means it is not. Currently, most learning-based binding site detection methods adopt a discontinuous workflow: first predicting a score for each amino acid residue or heavy atom, and then clustering them into distinct binding sites. To streamline this process, we propose UniSite, the first UniProt-centric and direct set prediction approach that adheres to the end-to-end paradigm (Figure 2). Two components are essential for direct set prediction in this context: (1) a set prediction loss based on bijective match- + +![](images/281f8d99c9f05898997dc33a1d943bf766f476f61c8059e904f55cf26463c0e9.jpg) +Figure 2: Comparison of detection approaches. (Top) Conventional learning-based binding site detection methods typically employ a discontinuous workflow: first predicting binary masks for residues/atoms, then clustering these masks into distinct binding sites. (Bottom) In contrast, our method directly outputs a set of $N$ potentially overlapping binding sites in a single step. + +ing between predicted and ground truth binding sites; and (2) an architecture capable of predicting a set of sites in a single forward pass. The architecture of UniSite is shown in detail in Figure 3. + +# 3.1 Set prediction loss for binding site detection + +UniSite infers a fixed-size set of $N$ predictions $z = \{(p_i, m_i) | m_i \in \{0, 1\}^L\}_{i=1}^N$ in a single forward pass, where $m_i$ represents the predicted binding site, and $p_i$ denotes the probability of binding and $\emptyset$ (non-binding) category. Since the ground truth set $|z^{gt}| = N^{gt}$ and the prediction set $|z| = N$ typically have unequal sizes, we assume $N \geq N^{gt}$ and pad the ground truth set with $\emptyset$ (non-binding) tokens. The padded ground truth set is defined as $z_{pad}^{gt} = \{(c_i^{gt}, m_i^{gt}) | c_i^{gt} \in \{1, \emptyset\}, m_i^{gt} \in \{0, 1\}^L\}_{i=1}^N$ , where $c_i^{gt} = 1$ indicates a true binding site and $c_i^{gt} = \emptyset$ corresponds to the padding. + +![](images/1f2a3062ea41d4cfed0f3eb0d0ad3068615abe4e3c83e9ff4e5c7c57d6c83ccd.jpg) +Figure 3: The architecture of UniSite. Our models employ an encoder to extract the residue-level features. Then a decoder module is used to generate embeddings of the $N$ predicted binding sites. Finally, the segmentation module outputs $N$ potentially overlapping binding site predictions. The encoder comprises dual pathways: a sequence encoder and an optional structural encoder, allowing UniSite to operate with either sequence-only input or combined sequence-structure information. + +To train a set prediction model, we require a bijective matching $\sigma$ between the predicted set $z$ and the padded ground truth set $z_{pad}^{gt}$ . This matching is obtained by minimizing matching cost $\mathcal{L}_{\mathrm{match}}$ : + +$$ +\hat {\sigma} = \arg \min \sum_ {i} ^ {N} \mathcal {L} _ {\text {m a t c h}} \left(z _ {i} ^ {g t}, z _ {\sigma (i)}\right) \tag {1} +$$ + +where $\sigma$ is a permutation of $N$ elements and $\mathcal{L}_{\mathrm{match}}$ quantifies the pairwise matching cost between ground truth site $z_{i}^{gt}$ and the prediction with index $\sigma(i)$ . Following prior work [32, 33], we employ the Hungarian algorithm to compute the optimal matching and use the matching cost defined as: + +$$ +\mathcal {L} _ {\text {m a t c h}} \left(z _ {i} ^ {g t}, z _ {\sigma (i)}\right) = - \mathbf {1} _ {\left\{c _ {i} ^ {g t} \neq \emptyset \right\}} \log p _ {\sigma (i)} \left(c _ {i} ^ {g t}\right) + \mathbf {1} _ {\left\{c _ {i} ^ {g t} \neq \emptyset \right\}} \mathcal {L} _ {\text {m a s k}} \left(m _ {i} ^ {g t}, m _ {\sigma (i)}\right) \tag {2} +$$ + +where $\mathcal{L}_{\mathrm{mask}} = \lambda_{\mathrm{bce}}\mathcal{L}_{\mathrm{bce}} + \lambda_{\mathrm{dice}}\mathcal{L}_{\mathrm{dice}}$ is a combination of BCE loss and dice loss [34], $p_{\sigma (i)}$ and $m_{\sigma (i)}$ denote the predicted probability and the binding site for the $\sigma (i)$ -th prediction, respectively. This matching cost considers both the class prediction and the similarity of the predicted and ground truth binding sites. Given the optimal matching $\hat{\sigma}$ , we compose a cross-entropy classification loss and the binary mask loss $\mathcal{L}_{\mathrm{mask}}$ for each predicted site to train model parameters: + +$$ +\mathcal {L} _ {\text {m a s k} \& \operatorname {c l s}} \left(z ^ {g t}, z\right) = \lambda_ {\operatorname {c l s}} \sum_ {i} ^ {N} - \log p _ {\hat {\sigma} (i)} \left(c _ {i} ^ {g t}\right) + \mathbf {1} _ {\left\{c _ {i} ^ {g t} \neq \emptyset \right\}} \mathcal {L} _ {\text {m a s k}} \left(m _ {i} ^ {g t}, m _ {\hat {\sigma} (i)}\right) \tag {3} +$$ + +# 3.2 UniSite architecture + +As illustrated in Figure 3, UniSite comprises three main components: (1) an encoder module that extracts residue-level representations $\mathcal{F} \in \mathbb{R}^{L \times d_{\mathrm{model}}}$ of the protein; (2) a decoder module consisting of multiple Transformer decoder layers to generate embeddings of the $N$ predicted binding sites, and (3) a segmentation module which combines the residue-level representations and the decoder embeddings to produce the final predictions $\{(p_i, m_i) | m_i \in \{0, 1\}^L\}_{i=1}^N$ . This architecture maintains conciseness while demonstrating strong compatibility with existing protein representation methods. In our implementation, we construct two variants: UniSite-1D using only sequence encoding, and UniSite-3D incorporating both sequence and structural encoders. + +Sequence encoder. The amino acid sequence encodes the primary information of a protein and serves as the fundamental input for the UniProt-centric binding site detection. First, an input embedding module receives three inputs: (1) learnable embeddings for the 21 amino acid types (20 standard amino acids plus an "unknown" category); (2) sinusoidal positional embedding [35] for residue indices; (3) pre-trained ESM-2 [36] protein embeddings. These three components are + +concatenated along the feature dimension, and subsequently processed by a 3-layer multilayer perceptron (MLP) to generate the initial per-residue features. Then a stack of Transformer encoder layers process the combined features to capture residue-residue interactions and global sequence patterns. + +Structural encoder. Protein structure serves as the most critical input for structure-based tasks, including ligand binding site detection. Recent advances have proposed various structural feature extraction approaches, including hand-crafted algorithms [11], CNN-based methods [12, 37] and graph neural network approaches [13, 15]. To demonstrate the generality and effectiveness of our approach, we utilize GearNet-Edge [38], a standard E(3)-invariant GNN model, without introducing any custom architecture or specialized feature engineering. + +Given a protein $P$ , the protein structure is represented as a residue-level relational graph $\mathcal{G} = (\mathcal{V}, \mathcal{E}, \mathcal{R})$ , where $\mathcal{V}$ and $\mathcal{E}$ represent the set of nodes and edges respectively, and $\mathcal{R}$ is the set of edge types. Each node in the protein graph represents the alpha carbon of a residue, while sequential edges, radius edges and $K$ -nearest neighbor edges are considered in the graph. Based on the defined protein graph, the node features are updated through the relational graph convolution layers [39] as follows: + +$$ +u _ {i} ^ {(l)} = \operatorname {R e L U} \left(\mathrm {B N} \left(\sum_ {r \in \mathcal {R}} W _ {r} \sum_ {j \in \mathcal {N} _ {r} (i)} h _ {j} ^ {(l - 1)}\right)\right), h _ {i} ^ {(l)} = h _ {i} ^ {(l - 1)} + u _ {i} ^ {(l)} \tag {4} +$$ + +where $h_i^{(l)}$ represents the feature of node $i$ at the $l$ -th layer, $\mathcal{N}_r(i) = \{j \in \mathcal{V} | (j, i, r) \in \mathcal{E}\}$ denotes the neighborhood of node $i$ with the edge type $r$ , and $W_r$ is the convolutional kernel matrix shared within the edge type $r$ . Specifically, BN represents a batch normalization layer and ReLU denotes the ReLU activation function. + +Unlike conventional binding site detection methods that rely on structural input, our framework allows the structural encoder to be optionally included. When incorporated, the structural features are concatenated with sequence features and projected via a linear layer to match the decoder's channels. + +Transformer decoder. The decoder comprises multiple Transformer decoder layers [35] that simultaneously process $N$ embeddings of dimension $d_{\mathrm{model}}$ , $\mathcal{Q} \in \mathbb{R}^{N \times d_{\mathrm{model}}}$ , through multi-head self-attention and cross-attention mechanisms. Following established practices in [32, 40], these input embeddings are learnable positional embeddings which we refer to as site queries. The attention mechanisms enable the decoder to perform global reasoning over all potential binding sites while incorporating contextual information from the residue-level protein features output by the encoder. + +Segmentation module. We process the $N$ site queries through a linear classifier followed by the softmax activation to generate class probabilities $\{p_i = (p_i^{site}, p_i^\emptyset) | p_i^{site}, p_i^\emptyset \in [0,1]\}_{i=1}^N$ . Here, the classifier predicts an additional $\emptyset$ (non-binding) category to indicate when a query does not correspond to any actual binding site. For mask prediction, the site queries $\mathcal{Q} \in \mathbb{R}^{N \times d_{\mathrm{model}}}$ are converted to $N$ mask embeddings $\mathcal{E}_{\mathrm{mask}} \in \mathbb{R}^{N \times d_{\mathrm{model}}}$ by a MLP. Finally, the binary mask prediction for each query is computed via dot-production between the $i$ -th mask embedding and the residue-level protein features $\mathcal{F} \in \mathbb{R}^{L \times d_{\mathrm{model}}}$ , followed by a sigmoid activation: + +$$ +m _ {i} [ j ] = \operatorname {s i g m o i d} \left(\mathcal {E} _ {\text {m a s k}} [ i,: ] \cdot \mathcal {F} [ j,: ] ^ {T}\right) \tag {5} +$$ + +# 4 Rethinking the Evaluation Metrics for Binding Site Detection + +DCC (Distance between the predicted binding site center and the true binding site center) and DCA (Shortest distance between the predicted binding site center and any heavy atom of the ligand) are the two most widely-used metrics for binding site detection. A binding site prediction is considered successful when its DCC or DCA value is below a predetermined threshold. Previous works [11, 37, 41, 14] quantify prediction performance via the Success Rate, defined as the ratio of successful predictions to the total number of ground truth sites: + +$$ +\text {S u c c e s s} \left(\mathrm {D C C} \text {o r} \mathrm {D C A}\right) = \frac {\mid \{\text {P r e d i c t e d s i t e s} \mid \mathrm {D C C} \text {o r D C A} < \text {t h r e s h o l d} \} \mid}{\mid \{\text {G r o u n d t r u t h s i t e s} \mid} \tag {6} +$$ + +However, these metrics suffer from two critical limitations: (Limitation 1) They disregard the prediction scores or ranks, and predictions may be double-counted due to the absence of proper matching criteria (Figure 4 A and Table S1). (Limitation 2) They only evaluate the center of + +![](images/6beb0725168f9a4e8d055dd7c3491ca3190b6412e320ee3cf6a0c3867ef678a9.jpg) +Figure 4: DCC or DCA failure cases. (A) Repeated counting of the same predicted site since absence of matching. (B) Different ligands bound to the same site lead to deviations in DCC or DCA calculations. (C-D) Failed predictions classified as successful by DCC or DCA but below the IoU threshold. + +![](images/cb0590c39d38364d465a59d2d5aecca6c9a0b361350e1dc47af61be2c76f0ad1.jpg) + +![](images/8376a08f4741f91c0a646b85cdbc71b11b227d14e0b0a9f319e3536cf40f84df.jpg) + +![](images/d81de26640c81b2d657d52ee450baabae965e56e74fa501b3b3e91a19d949e5b.jpg) + +binding sites and are ligand-dependent (DCC typically considers the ligand center as site center). Since different ligands can bound to one binding site, relying solely on ligand-centered evaluation causes these metrics to completely miss key structural properties such as the shape, size, and residue composition of the binding site. It leads to evaluation failures in certain scenarios (Figure 4 B-D), disregard the crucial information required for downstream tasks (Appendix A). + +The quantitative analysis of the DCC and DCA metrics is provided in Appendix G to further substantiate their evaluative flaws. The analysis reveals that approximately $20\%$ of proteins are subject to double-counting during evaluation. Furthermore, the measured mean ground truth DCC $(2.15\mathring{\mathrm{A}},92.65\% < 4\mathring{\mathrm{A}})$ and DCA $(1.57\mathring{\mathrm{A}},98.88\% < 4\mathring{\mathrm{A}})$ exhibit a significant deviation from the ideal value of 0, revealing a systematic bias inherent to these metrics. These results directly correspond to the previously discussed limitations and confirm that DCC and DCA metrics significantly distort model performance assessment. + +Previous works have recognized these limitations. To address Limitation 1, a common approach is to calculate the DCC or DCA for either the top- $n$ or top- $(n+2)$ predicted binding sites [11, 13, 14], where $n$ is the number of ground truth sites. For Limitation 2, DeepSurf [41] and Utgés et al. [42] propose computing the IoU between the predicted and ground truth binding site residues. Given two binding sites $m_A, m_B \in \{0,1\}^L$ , where $L$ is the protein sequence length, the IoU of two sites is defined as: + +$$ +\operatorname {I o U} \left(m _ {A}, m _ {B}\right) = \frac {\operatorname {s u m} \left(m _ {A} \& m _ {B}\right)}{\operatorname {s u m} \left(m _ {A} \mid m _ {B}\right)}, \text {w h e r e} m _ {A}, m _ {B} \in \{0, 1 \} ^ {L} \tag {7} +$$ + +However, these methods fail to address the core issues, as they still lack proper matching between predicted and ground truth sites, and the top- $n$ or top- $(n+2)$ metrics introduce information leakage. + +To overcome these limitations, we propose to calculate the Average Precision (AP) metric based on the residue-level IoU as a fair metric for method evaluation. We calculate AP as follows: First, we sort all predictions by confidence scores. Then, we match each ground truth site to the predicted site with the highest score and residue-level IoU above a predetermined threshold, enforcing a one-to-one assignment constraint. Finally, we compute AP as the area under the interpolated precision-recall curve following COCO evaluation protocols [43], which is widely used in object detection. The pseudo-code for AP calculation is provided in Appendix K. The AP metric offers two significant advantages: (1) the residue-level IoU enables accurate shape and size comparison between binding sites; (2) the one-to-one matching scheme inherently prevents double-counting of predictions. + +# 5 Experiments + +# 5.1 Settings + +Dataset. UniSite-DS is used for training and validation. We employ MMSeq2 [44] to ensure that no test UniProt sequence has similarity above 0.9 to any sequence in the training set. For each UniProt sequence, we select the PDB structure with the highest sequence identity as the representative structure. Additionally, we compare UniSite with baseline methods on widely-used binding site benchmark datasets, HLO4K [11] and COACH420 [11]. Following DeepSurf [41] and EquiPocket [13], we use the mlig subsets of HLO4K and COACH420 for evaluation. Since + +our models are trained under a UniProt-centric schema, we only consider single-chain structures, denoting the test datasets as HLO04K-sc and COACH420 (all structures in COACH420 are originally single-chain). All test UniProt entries are strictly excluded from the training set. More details are provided in Appendix F. + +Implementation details. We set $d_{\mathrm{model}} = 256$ by default. The transformer encoder consists of 6 standard Transformer encoder layers with a feed-forward dimension 1024 and the dropout rate of 0.1. We employ 6 Transformer decoder layers following the architecture of DETR [32]. By default, We use 32 site queries, where each query is associated with a learnable positional encoding and a zero-initialized query embedding. The multi-layer perceptron in the segmentation module consists of 2 hidden layers with 256 channels. For mask prediction, we use a combination of BCE loss and dice loss [34]: + +$$ +\mathcal {L} _ {\text {m a s k}} = \lambda_ {\text {b c e}} \mathcal {L} _ {\text {b c e}} + \lambda_ {\text {d i c e}} \mathcal {L} _ {\text {d i c e}} \tag {8} +$$ + +where $\lambda_{\mathrm{bce}} = \lambda_{\mathrm{dice}} = 5.0$ . The classification loss weight $\lambda_{\mathrm{cls}}$ is set to 2.0, and we downweight the classification loss by a factor of 10 when $c_i^{gt} = \emptyset$ to mitigate class imbalance. Following DETR [32], we apply segmentation modules which share the same weights after each decoder layer, and supervise their predictions by the set prediction loss. We optimize the model using the AdamW optimizer [45] with a learning rate of $1.0 \times 10^{-4}$ and a weight decay factor of 0.05. For the structural encoder, we implement the GearNet-Edge network following the origin paper [38] without specialized feature engineering. Notably, we train the GearNet-Edge network from scratch rather than loading pre-trained weights. All models are trained on 8 NVIDIA RTX 4090 GPUs. + +Our method predicts the associated residues along with a confidence score for each binding site. For applications requiring binding site centers, we compute these as the centroids of the convex hull encompassing all atoms within each predicted binding site [14, 46]. + +Table 1: Results on UniSite-DS. We highlight the top two performing methods for each metric in bold. a Fpocket-rescore denotes sites initially predicted by Fpocket and subsequently rescored by P2Rank. b VN-EGNN only outputs centers of predicted sites. For each center, We include the residues within a $9\AA$ radius, which has the best AP performance (Appendix H). + +
MethodTypeInputAP0.3↑AP0.5↑
Fpocket [8]Geometry-basedstructure0.18360.1017
Fpocket-rescoreaMachine-learningstructure + Fpocket result0.50750.2349
P2Rank [11]structure0.50560.2157
DeepPocket [12]CNN-basedstructure + Fpocket result0.42730.2334
GrASP [14]GNN-basedstructure0.44690.2848
VN-EGNNb [15]structure0.16210.0705
UniSite-1DOurssequence0.51210.3033
UniSite-3Dstructure0.56030.3835
+ +Evaluation metrics. For comprehensive evaluation, we compare IoU-based AP and traditional DCC or DCA metrics in HLO04K-sc and COACH420. Since a Uniprot-centric data entry can contain ligands from multiply PDB structures, coordinate-dependent metrics like DCC and DCA become unsuitable due to potential inconsistencies in ligand spatial arrangements. Consequently, we merely use IoU-based AP metric on UniSite-DS. Following EquiPocket [13], we set the DCC or DCA threshold to $4\mathring{\mathrm{A}}$ , and compute the DCC or DCA success rate of top- $n$ predictions. We calculate AP using IoU thresholds of 0.3 and 0.5. + +# 5.2 Results on UniSite-DS + +The results on UniSite-DS are shown in Table 1. The geometry-based method Fpocket [8] exhibits inferior performance since it merely considers the geometry and electronegativity. P2Rank [11] achieves better results by extracting the protein surface features with Random Forest. DeepPocket [12] utilizes 3D-CNN to rescore and refine Fpocket predictions, improving the preformance in $\mathrm{AP}_{0.5}$ . Notably, Fpocket-rescore, which combines Fpocket's initial predictions with P2Rank's re-ranking, surpasses both P2Rank and DeepPocket, highlighting the importance of proper scoring in binding site detection as captured by our AP metric. For graph models, GrASP [14] achieves further improvements in $\mathrm{AP}_{0.5}$ by employing graph attention networks. However, VN-EGNN [15] performs poorly under + +AP metrics, because it only outputs predicted binding site centers, discarding structural properties (shape and size) or residue identification. For evaluation purposes, we include the residues within a $9\AA$ radius of each predicted center, which has the best AP performance (Appendix H). + +Trained on the UniProt-centric dataset, UniSite-1D outperforms all baseline methods without protein structure, demonstrating remarkable capability for structure-free binding site detection, particularly valuable for site-aware protein-ligand docking (Appendix A). UniSite-3D further improves the performance remarkably by incorporating structure information. The above observations not only validate the effectiveness of our methods, but also reveal the significant statistical biases inherent in previous PDB-centric datasets, which limit the performance of prior methods. + +# 5.3 Results on HLO4K-sc and COACH420 + +The results on HLO04K-sc and COACH420 are shown in Table 2. Fpocket [8], P2Rank [11] and DeePocket [12] exhibit a consistent performance ranking across different datasets and metrics. The improvement achieved by Fpocket-rescore is also consistently evident. These indicate the concordance between our proposed IoU-based AP and traditional DCC or DCA metrics. Besides, the AP metric demonstrates superior discriminative power. On HLO04K-sc, while DeepPocket and GrASP [14] show almost identical performance in $\mathrm{DCA}_{\mathrm{top - n}}(< 0.01)$ , they diverge substantially ( $>0.10$ ) in $\mathrm{AP}_{0.3}$ . Similarly, on COACH420, performance differences among Fpocket-rescore, P2Rank, and GrASP are more pronounced under AP evaluation than with DCC metrics. As an exception, VN-EGNN [15] performs well in DCC or DCA while performing poorly under AP, as it merely predicts the binding site centers, discarding structural properties and residue identification. Notably, it is problematic since both the structural properties and the residue identification of binding sites are critical for downstream tasks (Appendix A). Since UniSite-DS is a UniProt-centric dataset while HLO04K-sc and COACH420 are both PDB-centric, there is a training-test gap for UniSite-1D/3D. Even so, both UniSite-1D and UniSite-3D maintain strong performance on the two PDB-centric benchmarks across all evaluation metrics, demonstrating the effectiveness of our framework. More results are provided in Appendix J. + +Table 2: Results on HLO4K-sc and COACH420. We highlight the top two performing methods for each metric in bold. a Fpocket-rescore denotes sites initially predicted by Fpocket and subsequently rescored by P2Rank. b VN-EGNN only outputs centers of predicted sites. For each center, We include the residues within a $9\AA$ radius, which has the best AP performance (Appendix H). + +
MethodHOL04K-scCOACH420
AP0.3↑DCCtop-n↑DCAtop-n↑AP0.3↑DCCtop-n↑DCAtop-n↑
Fpocket [8]0.27110.30760.43820.21060.27080.4107
Fpocket-rescorea0.58990.51830.76540.56020.44050.7113
P2Rank [11]0.60110.53000.81880.61880.46430.7411
DeepPocket [12]0.54150.49250.73690.51840.39580.6756
GrASP [14]0.66680.51310.74160.71500.48510.7620
VN-EGNNb[15]0.26060.58610.69990.26370.54460.7530
UniSite-1D (ours)0.68670.55380.76920.59210.45540.7351
UniSite-3D (ours)0.70910.57160.78790.71960.47020.7381
+ +Table 3: Effect of sequence similarity. The second column indicates the sequence identity between training sets and test sets. + +
MethodSimilarityAP0.3↑AP0.5↑
UniSite-1D0.51210.3033
UniSite-3D<0.90.56030.3835
UniSite-1D0.50560.2945
UniSite-3D<0.70.55790.3734
UniSite-1D0.43380.2243
UniSite-3D<0.50.46770.2801
+ +Table 4: Effect of site queries. This table shows results of UniSite-3D trained with a varying number of site queries. + +
# of queriesAP0.3↑AP0.5↑
160.55150.3795
320.56030.3835
480.55620.3861
640.56150.3867
+ +# 5.4 Ablation study + +Sequence similarity. Both the structure and function of proteins diverge with the decreasing of sequence similarity. It is necessary to evaluate our protein ligand binding site detection method across varying similarity thresholds. We employ MMSeqs2 [44] to partition UnSite-DS with three similarity thresholds: 0.5, 0.7 and 0.9, ensuring that no test protein exceeds the corresponding similarity to any training protein. Compared to threshold 0.9, UnSite-1D/3D exhibit only a slight decrease under threshold 0.7 (Table 3), indicating that our methods possess generalization ability. As proteins with sequence similarity below 0.5 typically belong to evolutionarily distant families and exhibit markedly different structural folds, we observe significant AP performance degradation for UniSite-1D and UniSite-3D under threshold 0.5. + +Number of site queries. As shown in Table 4, UniSite-3D exhibits stable performance across varying numbers of site queries. we select 32 queries as our default configuration, considering both the computation cost and the coverage of ground truth binding sites (99.5% proteins in UniSite-DS have sites less than 20). + +# 6 Concluding Remarks and Future Perspectives + +Key Contributions. In this paper, we introduce UniSite-DS, the first UniProt-centric dataset of protein ligand binding sites, which systematically integrates all ligand binding sites across multiple PDB structures for each unique protein. UniSite-DS corrects the statistical bias in previously available PDB-centric datasets and methods, while significantly broadening the available data. To amend the discontinuous workflows in existing binding site detection methods, we proposed UniSite-1D/3D, two end-to-end methods supervised by set prediction loss with bijective matching. In addition, we introduce IoU-based AP as a more accurate evaluation metric. Extensive experiments on UniSite-DS and several benchmark datasets demonstrate that our frameworks achieve superior performance, and the IoU-based AP metric can provide a more accurate reflection of binding site prediction quality. + +Limitations and Future Work. The current version of UniSite-DS involves manual curation to remove unreasonable entries. A promising direction for future work is to develop automated methods for repairing and reintegrating excluded data to further enhance the dataset's coverage and quality. Additionally, our current model design aims to demonstrate the effectiveness of the end-to-end ligand binding site learning framework, without incorporating specialized feature engineering. Future investigations could explore the inclusion of specialized feature engineering to further improve model performance and generalization ability. + +# Acknowledgements + +We thank the reviewers for their constructive feedback, and Hannes Stärk, Chenyu Wang, Zuobai Zhang, Zaixi Zhang, and Bozitao Zhong for helpful discussions. Liwei Wang is supported by National Science and Technology Major Project (2022ZD0114902) and National Science Foundation of China (NSFC92470123, NSFC62276005). + +# References + +[1] Ryosuke Nakashima, Keisuke Sakurai, Seiji Yamasaki, Kunihiko Nishino, and Akihito Yamaguchi. Structures of the multidrug exporter acrb reveal a proximal multisite drug-binding pocket. Nature, 480(7378):565-569, 2011. +[2] Fabien Vincent, Arsenio Nueda, Jonathan Lee, Monica Schenone, Marco Prunotto, and Mark Mercola. Phenotypic drug discovery: recent successes, lessons learned and new directions. Nature Reviews Drug Discovery, 21(12):899-914, 2022. +[3] HC Stephen Chan, Yi Li, Thamani Dahoun, Horst Vogel, and Shuguang Yuan. New binding sites, new opportunities for gpcr drug discovery. Trends in biochemical sciences, 44(4):312-330, 2019. + +[4] Stephen J Campbell, Nicola D Gold, Richard M Jackson, and David R Westhead. Ligand binding: functional site location, similarity and docking. Current opinion in structural biology, 13(3):389-395, 2003. +[5] Shuya Li, Tingzhong Tian, Ziting Zhang, Ziheng Zou, Dan Zhao, and Jianyang Zeng. Pocketanchor: Learning structure-based pocket representations for protein-ligand interaction prediction. Cell Systems, 14(8):692-705, 2023. +[6] Alexander S Powers, Helen H Yu, Patricia Suriana, Rohan V Koodli, Tianyu Lu, Joseph M Paggi, and Ron O Dror. Geometric deep learning for structure-based ligand design. ACS Central Science, 9(12):2257-2267, 2023. +[7] Arne Schneuing, Charles Harris, Yuanqi Du, Kieran Didi, Arian Jamasb, Ilia Igashov, Weitao Du, Carla Gomes, Tom L Blundell, Pietro Lio, et al. Structure-based drug design with equivariant diffusion models. Nature Computational Science, 4(12):899-909, 2024. +[8] Vincent Le Guilloux, Peter Schmidtke, and Pierre Tuffery. Fpocket: an open source platform for ligand pocket detection. BMC bioinformatics, 10:1-11, 2009. +[9] Michal Brylinski and Jeffrey Skolnick. A threading-based method (findsite) for ligand-binding site prediction and functional annotation. Proceedings of the National Academy of sciences, 105(1):129-134, 2008. +[10] Chi-Ho Ngan, David R Hall, Brandon Zerbe, Laurie E Grove, Dima Kozakov, and Sandor Vajda. Ftsite: high accuracy detection of ligand binding sites on unbound protein structures. Bioinformatics, 28(2):286-287, 2012. +[11] Radoslav Krivák and David Hoksza. P2rank: machine learning based tool for rapid and accurate prediction of ligand binding sites from protein structure. Journal of cheminformatics, 10:1-12, 2018. +[12] Rishal Aggarwal, Akash Gupta, Vineeth Chelur, CV Jawahar, and U Deva Priyakumar. Deep-pocket: ligand binding site detection and segmentation using 3d convolutional neural networks. Journal of Chemical Information and Modeling, 62(21):5069-5079, 2021. +[13] Zhewei Wei, Ye Yuan, Chongxuan Li, Wenbing Huang, et al. Equipocket: an e (3)-equivariant geometric graph neural network for ligand binding site prediction. In *Forty-first International Conference on Machine Learning*, 2023. +[14] Zachary Smith, Michael Strobel, Bodhi P Vani, and Pratyush Tiwary. Graph attention site prediction (grasp): identifying druggable binding sites using graph neural networks with attention. Journal of chemical information and modeling, 64(7):2637-2644, 2024. +[15] Florian Sestak, Lisa Schneckenreiter, Johannes Brandstetter, Sepp Hochreiter, Andreas Mayr, and Günter Klambauer. Vn-egnn: E (3)-equivariant graph neural networks with virtual nodes enhance protein binding site identification. arXiv preprint arXiv:2404.07194, 2024. +[16] Jérémy Desaphy, Guillaume Bret, Didier Rognan, and Esther Kellenberger. sc-pdb: a 3d-database of ligandable binding sites—10 years on. Nucleic acids research, 43(D1):D399–D404, 2015. +[17] Renxiao Wang, Xueliang Fang, Yipin Lu, and Shaomeng Wang. The pdbbind database: Collection of binding affinities for protein- ligand complexes with known three-dimensional structures. Journal of medicinal chemistry, 47(12):2977-2980, 2004. +[18] Peter Schmidtke, Catherine Souaille, Frédéric Estienne, Nicolas Baurin, and Romano T Kroeimer. Large-scale comparison of four binding site detection algorithms. Journal of chemical information and modeling, 50(12):2191-2200, 2010. +[19] Jianyi Yang, Ambrish Roy, and Yang Zhang. Protein-ligand binding site recognition using complementary binding-specific substructure comparison and sequence profile alignment. Bioinformatics, 29(20):2588-2595, 2013. + +[20] Feng He, Cheng-Guo Wu, Yang Gao, Sabrina N Rahman, Magda Zaoralova, Makaia M Papasergi-Scott, Ting-Jia Gu, Michael J Robertson, Alpay B Seven, Lingjun Li, et al. Allosteric modulation and g-protein selectivity of the ca2+-sensing receptor. Nature, 626(8001):1141-1148, 2024. +[21] Edda SF Matthees and Carsten Hoffmann. The ca2+-sensing receptor and the pocketome: comparing nature's complexity with human intervention in receptor modulation. Signal Transduction and Targeted Therapy, 9(1):173, 2024. +[22] Johannes Morstein, Victoria Bowcut, Micah Fernando, Yue Yang, Lawrence Zhu, Meredith L Jenkins, John T Evans, Keelan Z Guiley, D Matthew Peacock, Sophie Krahnke, et al. Targeting ras-, rho-, and rab-family gtpases via a conserved cryptic pocket. Cell, 187(22):6379-6392, 2024. +[23] UniProt Consortium. Uniprot: a worldwide hub of protein knowledge. Nucleic acids research, 47(D1):D506–D515, 2019. +[24] Jifa Zhang, Yinglu Zhang, Jiaxing Wang, Yilin Xia, Jiaxian Zhang, and Lei Chen. Recent advances in alzheimer's disease: Mechanisms, clinical trials and new drug development strategies. Signal transduction and targeted therapy, 9(1):211, 2024. +[25] Timothy P Hughes, Michael J Mauro, Jorge E Cortes, Hironobu Minami, Delphine Rea, Daniel J DeAngelo, Massimo Breccia, Yeow-Tee Goh, Moshe Talpaz, Andreas Hochhaus, et al. Asciminib in chronic myeloid leukemia after abl kinase inhibitor failure. New England Journal of Medicine, 381(24):2315-2326, 2019. +[26] Lauren M Slosky, Yushi Bai, Krisztian Toth, Caroline Ray, Lauren K Rochelle, Alexandra Badea, Rahul Chandrasekhar, Vladimir M Pogorelov, Dennis M Abraham, Namratha Atluri, et al. $\beta$ -arrestin-biased allosteric modulator of ntsr1 selectively attenuates addictive behaviors. Cell, 181(6):1364-1379, 2020. +[27] Jigang Fan, Yaqin Liu, Ren Kong, Duan Ni, Zhengtian Yu, Shaoyong Lu, and Jian Zhang. Harnessing reversed allosteric communication: a novel strategy for allosteric drug discovery. Journal of Medicinal Chemistry, 64(24):17728-17743, 2021. +[28] Christos P Feidakis, Radoslav Krivak, David Hoksza, and Marian Novotny. Ahoj: rapid, tailored search and retrieval of apo and holo protein structures for user-defined ligands. Bioinformatics, 38(24):5452-5453, 2022. +[29] Helen Berman, Kim Henrick, and Haruki Nakamura. Announcing the worldwide protein data bank. Nature structural & molecular biology, 10(12):980-980, 2003. +[30] Sameer Velankar, José M Dana, Julius Jacobsen, Glen Van Ginkel, Paul J Gane, Jie Luo, Thomas J Oldfield, Claire O'Donovan, Maria-Jesus Martin, and Gerard J Kleywegt. Sifts: structure integration with function, taxonomy and sequences resource. Nucleic acids research, 41(D1):D483–D489, 2012. +[31] Tomas Geffner, Kieran Didi, Zuobai Zhang, Danny Reidenbach, Zhonglin Cao, Jason Yim, Mario Geiger, Christian Dallago, Emine Kucukbenli, Arash Vahdat, et al. Proteina: Scaling flow-based protein structure generative models. arXiv preprint arXiv:2503.00710, 2025. +[32] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European conference on computer vision, pages 213-229. Springer, 2020. +[33] Russell Stewart, Mykhaylo Andriluka, and Andrew Y Ng. End-to-end people detection in crowded scenes. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2325-2333, 2016. +[34] Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In 2016 fourth international conference on 3D vision (3DV), pages 565-571. IEEE, 2016. + +[35] Ashish Vavwani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. +[36] Alexander Rives, Joshua Meier, Tom Sercu, Siddharth Goyal, Zeming Lin, Jason Liu, Demi Guo, Myle Ott, C Lawrence Zitnick, Jerry Ma, et al. Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences. Proceedings of the National Academy of Sciences, 118(15):e2016239118, 2021. +[37] José Jiménez, Stefan Doerr, Gerard Martínez-Rosell, Alexander S Rose, and Gianni De Fabritiis. Deepsite: protein-binding site predictor using 3d-convolutional neural networks. Bioinformatics, 33(19):3036-3042, 2017. +[38] Zuobai Zhang, Minghao Xu, Arian Jamasb, Vijil Chenthamarakshan, Aurelie Lozano, Payel Das, and Jian Tang. Protein representation learning by geometric structure pretraining. In International Conference on Learning Representations, 2023. +[39] Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne Van Den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional networks. In *The semantic web: 15th international conference*, ESWC 2018, Heraklion, Crete, Greece, June 3–7, 2018, proceedings 15, pages 593–607. Springer, 2018. +[40] Bowen Cheng, Alexander G. Schwing, and Alexander Kirillov. Per-pixel classification is not all you need for semantic segmentation. In Advances in Neural Information Processing Systems, 2021. +[41] Stelios K Mylonas, Apostolos Axenopoulos, and Petros Daras. Deepsurf: a surface-based deep learning approach for the prediction of ligand binding sites on proteins. Bioinformatics, 37(12):1681-1690, 2021. +[42] Javier S Utges and Geoffrey J Barton. Comparative evaluation of methods for the prediction of protein-ligand binding sites. Journal of Cheminformatics, 16(1):126, 2024. +[43] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. arXiv preprint arXiv:1405.0312, 2014. +[44] Martin Steinegger and Johannes Söding. Clustering huge protein sequence sets in linear time. Nature communications, 9(1):2542, 2018. +[45] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. +[46] R Tyrrell Rockafellar. Conjugate convex functions in optimal control and the calculus of variations. Journal of Mathematical Analysis and Applications, 32(1):174-222, 1970. +[47] Marcel L. Verdonk, Jason C. Cole, Michael J. Hartshorn, Christopher W. Murray, and Richard D. Taylor. Improved protein-ligand docking using gold. *Proteins: Structure, Function, and Bioinformatics*, 52(4):609-623, 2003. +[48] Oleg Trot and Arthur J Olson. Autodock vina: improving the speed and accuracy of docking with a new scoring function, efficient optimization, and multithreading. Journal of computational chemistry, 31(2):455-461, 2010. +[49] Zhirui Liao, Ronghui You, Xiaodi Huang, Xiaojun Yao, Tao Huang, and Shanfeng Zhu. Deep-dock: enhancing ligand-protein interaction prediction by a combination of ligand and structure information. In 2019 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), pages 311-317. IEEE, 2019. +[50] Gengmo Zhou, Zhifeng Gao, Qiankun Ding, Hang Zheng, Hongteng Xu, Zhewei Wei, Linfeng Zhang, and Guolin Ke. Uni-mol: A universal 3d molecular representation learning framework. In The Eleventh International Conference on Learning Representations, 2023. + +[51] Patrick Bryant, Atharva Kelkar, Andrea Guljas, Cecilia Clementi, and Frank Noé. Structure prediction of protein-ligand complexes from sequence information with umol. Nature Communications, 15(1):4536, 2024. +[52] Martin Buttenschoen, Garrett M Morris, and Charlotte M Deane. Posebusters: Ai-based docking methods fail to generate physically valid poses or generalise to novel sequences. Chemical Science, 15(9):3130-3139, 2024. +[53] Josh Abramson, Jonas Adler, Jack Dunger, Richard Evans, Tim Green, Alexander Pritzel, Olaf Ronneberger, Lindsay Willmore, Andrew J Ballard, Joshua Bambrick, et al. Accurate structure prediction of biomolecular interactions with alphafold 3. Nature, 630(8016):493-500, 2024. +[54] Iambic Therapeutics. Transforming computational drug discovery with neuralplexer2. https://www.iambic.ai/post/np2, 2024. Accessed: 2025-05-01. +[55] Manfred Hendlich, Friedrich Rippmann, and Gerhard Barnickel. Ligsite: automatic and efficient detection of potential small molecule-binding sites in proteins. Journal of Molecular Graphics and Modelling, 15(6):359-363, 1997. +[56] Jie Liang, Clare Woodward, and Herbert Edelsbrunner. Anatomy of protein pockets and cavities: measurement of binding site geometry and implications for ligand design. Protein science, 7(9):1884-1897, 1998. +[57] Daniele Toti, Le Viet Hung, Valentina Tortosa, Valentina Brandi, and Fabio Polticelli. Libra-wa: a web application for ligand binding site detection and protein function recognition. Bioinformatics, 34(5):878-880, 2018. +[58] Radoslav Krivák and David Hoksza. Improving protein-ligand binding site prediction accuracy by classification of inner pocket points using local features. Journal of cheminformatics, 7:1-13, 2015. +[59] Zhao Yang, Bing Su, Jiahao Chen, and Ji-Rong Wen. Interpretable enzyme function prediction via residue-level detection. arXiv preprint arXiv:2501.05644, 2025. +[60] Franck Da Silva, Jeremy Desaphy, and Didier Rognan. Ichem: a versatile toolkit for detecting, comparing, and predicting protein-ligand interactions. *ChemMedChem*, 13(6):507-510, 2018. +[61] Clemens Isert, Kenneth Atz, and Gisbert Schneider. Structure-based drug design with geometric deep learning. Current Opinion in Structural Biology, 79:102548, 2023. + +# A Impact of Binding Site Accuracy on Downstream Tasks + +The accuracy of protein-ligand binding site detection is critical for downstream tasks. Taking molecular docking as an example (Figure S1), a comparison of different methods leads to the following conclusions: (1) The definition of binding site residues can strongly impact the docking performance, highlighting the importance of our proposed IoU-based AP metric. (2) Docking methods that do not specify binding sites (blind docking) show significant performance improvements when provided with binding site information, emphasizing the importance of accurate binding site identification. + +![](images/2d3155674f1a7a5ac16ab39b8f504de194bd6462cd8e0708431295b12e1f19b4.jpg) +Figure S1: The significant impact of binding site detection on molecular docking. (A) Gold [47] defines the binding site using a sphere. (B) AutoDock Vina [48] defines the binding site using a cube. (C) DeepDock [49] and (D) Uni-Mol [50] identify the binding site by applying a fixed radius around the ligand. (E) Docking success rates on the PoseBusters dataset under different binding site configurations. Docking success rate is defined as the proportion of predictions with an RMSD less than $2\AA$ . Data sourced from [51, 52, 53, 54]. + +![](images/0cd822d47020d118d1c45f3056584cf927d280f76de3479ad5e64f13756e61dc.jpg) + +# B UniSite-DS Curation Workflow and Representative Manual Inspection Case Studies + +As shown in Figure S2, the UniSite-DS workflow comprises three main components: (I) dataset curation, (II) quality control, and (III) manual inspection. Below, we describe two representative types of cases encountered during manual inspection that required special consideration: + +1. Case 1. Supramolecular assemblies across multiple protein subunits. The Photosystem I-LHCI Supercomplex is a core component of the photosynthetic machinery, consisting of multiple subunits such as UniProt ID: P05310 (Photosystem I P700 chlorophyll a apoprotein A1, PDB: 7dkz_A), Q41038 (Chlorophyll a-b binding protein, 7dkz_B), and Q32904 (Chlorophyll a-b binding protein 3, 7dkz_C). Although each of these proteins binds a large number of Chlorophyll a molecules, they function as part of a tightly integrated supramolecular assembly. Therefore, they are not suitable to be included as independent entries in the UniSite-DS database and have been excluded in the current version. +2. Case 2. Large composite cavities jointly formed by multiple ligands. Trypanothione reductase (UniProt ID: Q389T8) is a key enzyme in Trypanosoma brucei that specifically catalyzes the reduction of trypanothione, functionally analogous to glutathione reductase in mammals. The ligands from structures PDB: 5s9x_A, 5s9t_A, and 2wov_C together form a large binding cavity. These ligand binding sites could potentially be merged. However, since each ligand actually occupies only a portion of the cavity rather than the entire cavity, whether such a composite cavity formed by different ligands should be considered a unified binding site often depends on system-specific definitions in the literature. As a result, entries that require further literature-based validation were excluded from the current version of the UniSite-DS database. + +# I) Curation Process + +Systematic retrieval of all protein-ligand interactions from the PDB database +Identification of binding site residues within 4.5 Å of each ligand +- Integration of all ligand binding sites across different PDB structures using UniProt identifiers and SIFTS annotations +Redundancy removal using NMS with IoM $\geq$ 0.7 and IoU $\geq 0.5$ to exclude highly overlapping binding sites +Additional quality control and manual inspection to ensure high-quality dataset + +# II) Quality Control + +- Exclude structures with resolution $>2.5\AA$ or determined by non-crystallographic methods +- Remove solvent molecules + +- Discard entries with $\leq 3$ binding site residues to eliminate floating ligands + +# III) Manual Inspection + +- Manual inspection of entries with $>10$ ligand binding sites or with $\geq 3$ sites contributed by a single protein-ligand complex +Entries involving supramolecular assemblies across multiple protein subunits +- Entries with large composite cavities jointly formed by multiple ligands, each occupying only part of the cavity + +# IV) Manual Inspection Case Studies + +Case 1) Entries involving supramolecular assemblies across multiple protein subunits + +![](images/449e5baeccf25fcf7e145fd8e98ae2b96473b2ae7ab8987c5e8b1cc0f1464555.jpg) + +Case 2) Entries with large composite cavities jointly formed by multiple ligands, each occupying only part of the cavity + +![](images/096990baca25a7ba8f43ba74d96aac082f21744bdf40ad7e8a2b0eeaf7f32c66.jpg) +Figure S2: Overview of the UniSite-DS workflow. Workflow of (I) dataset curation, (II) quality control, and (III) manual inspection for UniSite-DS, together with (IV) representative manual inspection case studies. + +# C Related Work + +Over the past several decades, numerous methods have been developed for detecting protein-ligand binding sites, accompanied by advances in techniques leveraging the geometric, physical and chemical features of proteins. + +Early methods relied on traditional computational algorithms. Since most binding sites show up as cavities in protein 3D structures, geometry-based methods (Fpocket [8], LigSite [55]) identify and rank these hollow cavities through hand-crafted features like alpha spheres [56]. Template-based methods (FINDSITE [9] and LIBRA [57]) predict ligand binding sites by comparing the query protein with templates from known protein structure database. These methods typically generate a large number of predicted sites while performing poorly in ranking them. + +Subsequent approaches like PRANK [58] and P2Rank [11] employ traditional machine learning methods, particularly Random Forest. Based on the predictions of Fpocket [8], PRANK assigns "ligandibility" scores, which denotes ligand binding potential, to candidate sites. P2Rank is a widely used method which integrates the geometric features of the protein surface with Random Forest Algorithm. + +In recent years, deep learning methods have emerged for protein-ligand binding site detection. CNN-based approaches [12, 37, 41] treat protein structures as 3D images, applying 3D convolutional neural networks similar to those used in computer vision. Alternatively, GNN-based methods [15, 14, 13] utilize graph neural networks by constructing graphs incorporating both geometric and chemical features of proteins. Despite their improved performance, these methods typically adopt discontinuous workflows: they first perform semantic segmentation to generate binary masks of potential binding residues/atoms, then cluster these masks into discrete binding sites. This fragmented pipeline heavily depends on post-processing (e.g., clustering algorithms), inherently limiting end-to-end optimization and struggling with overlapping binding sites. DETR-based architectures have also been adapted for other protein tasks, such as ProtDETR [59], which performs enzyme function classification rather than binding site detection. + +# D Baseline Justification + +We selected representative baseline methods that span the major methodological paradigms in ligand binding site detection. Fpocket [8] represents traditional geometry-based computational algorithms. P2Rank [11] is the most widely used machine learning approach. Among deep learning approaches, DeepPocket [12], GrASP [14], and VN-EGNN [15] were included as they represent different neural network architectures: DeepPocket employs 3D CNNs, while GrASP and VN-EGNN utilize GNNs. + +For a fair and consistent comparison, we extracted ligand binding site residues from each baseline's output files according to their respective standard formats: + +- Fpocket: For each predicted pocket, Fpocket outputs a file named pocket{index}_atm.pdb, which contains the atomic coordinates of the predicted binding site in PDB format. These atoms were directly used to identify the corresponding binding residues. +- P2Rank: P2Rank generates a {name}.pdb_prediction.csv file for each input structure. The residue_ids column specifies the chain IDs and residue IDs of residues constituting each predicted binding site. These identifiers were parsed to obtain the binding site residues. +- DeepPocket: DeepPocket refines and re-scores the pockets predicted by Fpocket, while maintaining the same output format. +- GrASP: GrASP outputs a {name}_probs.pdb file, where the bfactor column encodes the predicted binding probabilities of heavy atoms. Following the original publication, we filtered atoms based on their predicted scores and clustered them spatially into distinct binding sites. +- VN-EGNN: VN-EGNN produces a prediction.csv file containing four columns (x, y, z, rank) that specify the 3D coordinates and ranking of predicted pocket centers. As the method does not directly output residue-level predictions, binding site residues were obtained by including all residues within a defined radius, as described in Appendix H. + +# E Case Study of Classical Methods + +As discussed in Section 1, 2, previous approaches are developed based on PDB-centric datasets, which introduce substantial statistical biases. We conduct a case study of these methods, and the results (Figure S3) indicate that, for multi-site proteins, existing approaches are weak in distinguishing between different ligand binding sites. This limitation motivated us to investigate the problems in existing approaches and to develop a new methodology. + +![](images/a8593d6268c43e506a64cab8e00f018698a2ff7b21c8ce2a746b44a461c90ab3.jpg) +A Ground Truth Sites + +![](images/5bc8080a3ab29790d11fcc6ec437da9b30c831b417165f703ac92da0033ad8a3.jpg) +C GrASP + +![](images/246270c574791a4c734489482ea8bc86ef4a1484a50ee484a96c49719be4d04a.jpg) +Figure S3: Case study of classical methods. For UniProt ID Q7YYQ9, the two ground truth binding sites are represented by dark blue and orange meshes, respectively. All predicted binding sites are shown as surfaces. (A) The two ground truth binding sites are colored in dark blue and orange. (B) The two binding sites predicted by our UniSite-3D method are colored in cyan and purple. (C) The single binding site predicted by the GNN-based method GrASP [14] is colored in green. (D) The single binding site predicted by the classical machine learning method P2Rank [11] is colored in red. (E) The single binding site predicted by the geometry-based method Fpocket [8] is colored in cyan. + +![](images/0dbfcdcdf1084e029e11d18ca83429959df1caad7e2ae1c0bc72173f717341d1.jpg) +E Fpocket + +![](images/4280c28fbec93143a478c54aea3f6043064676274ee6ac1f74beb3cb159801a6.jpg) + +# F External Datasets + +scPDB [16] is a famous dataset for protein-ligand binding site detection, commonly employed for training and validation in recent studies ( [15, 14, 13]). scPDB provides both protein and ligand structures, accompanied by the structures of binding site extracted via VolSite [60]. Notably, only one binding site and one corresponding ligand are annotated for each data entry. In this work, we use the 2017 release of scPDB, which contains 17,594 structures and 5,550 unique proteins. (Source: http://bioinfo-pharma.u-strasbg.fr/scPDB/) + +PDBBind [17] is a widely used dataset to study protein-ligand interaction, especially for protein-ligand docking [51, 61]. Similar to scPDB, PDBBind annotates one ligand structure and one binding site structure in each data entry. In this paper, we use the general set of v2020, the latest academic-free edition, which comprises 19,443 structures and 3,888 unique proteins. (Source: http://www.pdbbind.org.cn/download/) + +HOL04K and COACH420 are two benchmark datasets utilized for protein-ligand binding site detection. Follow VN-EGNN [15], EquiPocket [13] and GrASP [14], we employ the mlig subsets of these two dataset, which contain explicitly specified relevant ligands. HOL04K-mlig comprises 3,204 structures and 1,259 unique proteins, while COACH420-mlig covers 284 structures and 265 unique proteins. (Source: https://github.com/rdk/p2rank-datasets) + +# G Quantitative Analysis of Evaluation Flaws in DCC and DCA Metrics + +In Section 4, we discussed two critical limitations in the design of the DCC and DCA metrics. Here, we conduct a quantitative analysis on the HOLO4K-sc benchmark to demonstrate the flawed evaluation introduced by these metrics. + +**Limitation 1.** The absence of proper matching criteria may lead to double-counting of predictions (Figure 4 A). We quantified the proportion of proteins affected by double-counting during evaluation on the HOLO4K-sc benchmark (Table S1). The results reveal that DCC and DCA metrics suffer from widespread double counting artifacts, which significantly distort model performance assessment. + +Table S1: Double counting (DC) rate of DCC or DCA metrics on HOL04K-sc. We highlight the top two performing methods for each metric in bold. a Fpocket sites rescored by P2Rank. b Residues within 9 Å of each VN-EGNN predicted center, which has the best AP performance (Appendix H). + +
MethodHOL04K-sc
DC of DCCtop-nDC of DCAtop-n
Fpocket [8]18.80%18.31%
Fpocket-rescorea13.23%13.66%
P2Rank [11]18.98%18.31%
DeepPocket [12]13.53%14.21%
GrASP [14]16.29%14.88%
VN-EGNNb[15]12.80%11.70%
UniSite-1D (ours)8.88%8.94%
UniSite-3D (ours)9.86%10.04%
+ +**Limitation 2.** DCC or DCA only evaluate the center of binding sites and are ligand-dependent, which leads to evaluation failures in certain scenarios (Figure 4 B-D). For HLO4K-sc, we calculated these metrics of the centroid of ground truth binding residues for each protein. The results indicate that the mean ground truth DCC is $2.15\,\text{\AA}$ ( $92.65\% < 4\,\text{\AA}$ ), and the mean ground truth DCA is $1.57\,\text{\AA}$ ( $98.88\% < 4\,\text{\AA}$ ). However, in principle, both DCC and DCA should ideally be 0 when evaluated using ground truth binding residues, indicating these metrics inherently contain systematic bias. + +To mitigate some of DCC's inherent limitations, we defined a corrected metric, DCC-residue, which uses the center of ground truth binding residues rather than the ligand center for calculation. This modification resolves failure cases caused by ligand diversity in traditional DCC evaluation. As shown in Table S2, the corrected DCC-residue metric exhibits improved consistency with IoU-based AP in ranking the performance of different methods. + +Table S2: IoU-based AP, DCC-residue and DCC results on HOL04K-sc. We highlight the top two performing methods for each metric in bold. a Fpocket sites rescored by P2Rank. b Residues within 9Å of each VN-EGNN predicted center, which has the best AP performance (Appendix H). + +
MethodHOL04K-sc
AP0.3↑DCC-residue top-n↑DCCtop-n↑
Fpocket [8]0.27110.29820.3076
Fpocket-rescorea0.58990.50050.5183
P2Rank [11]0.60110.49720.5300
DeepPocket [12]0.54150.49020.4925
GrASP [14]0.66680.53790.5131
VN-EGNNb [15]0.26060.59970.5861
UniSite-1D (ours)0.68670.64000.5538
UniSite-3D (ours)0.70910.62640.5716
+ +# H The AP Evaluation of VN-EGNN + +Since VN-EGNN [15] outputs only the centers of predicted binding sites, it is non-trivial to identify the binding residues. In order to evaluate the IoU-based AP, we include the residues with a fixed radius for each predicted center (Figure S4). As shown in Table S3, the radius of $9\AA$ has the best performance across all datasets. + +![](images/46a700269f5cc657b492212589e06ef1096469460780c0a70625c75d616f5798.jpg) +Figure S4: Binding sites derived from the predicted center by VN-EGNN using different radii. Binding site residues are visualized using surface representation: (A) residues within a $4.5\AA$ radius; (B) residues within a $6\AA$ radius; (C) residues within a $9\AA$ radius; (D) residues within a $12\AA$ radius. + +![](images/8db0b25f46b95fd2d1434540158615320b9bd9d88ba12a95dbde8497ed4f4d20.jpg) + +![](images/e3029b179c1f29a3b763a09721330fd4ff565a6d19139466b831dfe218961d9e.jpg) + +![](images/bb8ff317621c952e429185a594dd7a162d9c60e2942625ccd560afc6bce67b7f.jpg) + +Table S3: AP evaluation results of VN-EGNN using different radii. + +
RadiusUniSite-DSHOLO4K-scCOACH420
AP0.3↑AP0.5↑AP0.3↑AP0.5↑AP0.3↑AP0.5↑
4.5Å0.00540.00040.00490.00010.00720.0007
6Å0.08940.00880.12900.01720.18140.0189
9Å0.16210.07050.26060.13460.26370.1138
12Å0.00870.00100.14110.00140.14440.0013
+ +# I The Recall Evaluation of Different Methods + +The AP metric provides a comprehensive evaluation of binding site detection performance by considering both precision and recall. However, it is also important to evaluate how many true binding sites can be recovered under different IoU thresholds, since the goal of binding site detection is to identify novel and biologically meaningful sites/pockets. We computed the Recall of different methods across multiple IoU thresholds on the HLO4K-sc dataset, and the results are summarized in Table S4. UniSite-3D achieves state-of-the-art Recall across all IoU thresholds. + +Notably, the high recall obtained by Fpocket is due to its tendency to output nearly all potential cavities in a protein, rather than accurately identifying biologically relevant pockets. In fact, Fpocket tends to assign lower scores to true binding sites, making it challenging for biologists to distinguish meaningful pockets. This limitation has motivated many studies to develop rescoring strategies for Fpocket. While Recall reflects the potential of a method to detect biologically significant pockets, it does not account for the confidence score of each prediction. This limitation is addressed by the AP metric, which is why we adopt it as a fair and balanced criterion for evaluating different methods. + +Table S4: The AP and Recall results on H0LO4K-sc. We highlight the top two performing methods for each metric in bold. a Fpocket sites rescored by P2Rank. b Residues within 9 Å of each VN-EGNN predicted center, which has the best AP performance (Appendix H). + +
MethodHOL04K-sc
AP0.3AP0.5Recall0.3Recall0.5Recall0.7Recall0.9
Fpocket [8]0.27110.14880.83610.59220.21300.0253
Fpocket-rescorea0.58990.28470.83610.59220.21300.0253
P2Rank [11]0.60110.26250.78140.53370.18680.0089
DeepPocket [12]0.54150.28910.75140.58240.25840.022
GrASP [14]0.66680.41260.71860.53740.25370.0159
VN-EGNNb[15]0.26060.13460.72890.48740.05660
UniSite-1D (ours)0.68670.45950.82120.61990.35350.0824
UniSite-3D (ours)0.70910.54460.84690.69010.41060.1039
+ +# J Full Results on HLO04K-sc and COACH420 + +Table S5: Full results on HLO4K-sc. We highlight the top two performing methods for each metric in bold. a Fpocket sites rescored by P2Rank. b Residues within 9Å of each VN-EGNN predicted center, which has the best AP performance (Appendix H). + +
MethodHOL04K-sc
AP0.3AP0.5DCCtop-nDCCtop-n+2DCAtop-nDCAtop-n+2
Fpocket [8]0.27110.14880.30760.41810.43820.5941
Fpocket-rescorea0.58990.28470.51830.59410.76540.8577
P2Rank [11]0.60110.26250.53000.56230.81880.8652
DeepPocket [12]0.54150.28910.49250.54780.73690.7851
GrASP [14]0.66680.41260.51310.52670.74160.7612
VN-EGNNb[15]0.26060.13460.58610.63390.69990.7500
UniSite-1D (ours)0.68670.45950.55380.64000.76920.8305
UniSite-3D (ours)0.70910.54460.57160.64700.78790.8422
+ +Table S6: Full results on COACH420. We highlight the top two performing methods for each metric in bold. a Fpocket sites rescored by P2Rank. b Residues within 9Å of each VN-EGNN predicted center, which has the best AP performance (Appendix H). + +
MethodCOACH420
AP0.3AP0.5DCCtop-nDCCtop-n+2DCAtop-nDCAtop-n+2
Fpocket [8]0.21060.12190.27080.37500.41070.5714
Fpocket-rescorea0.56020.29050.44050.51790.71130.8333
P2Rank [11]0.61880.26180.46430.50000.74110.8034
DeepPocket [12]0.51840.25120.39580.48210.67560.7560
GrASP [14]0.71500.49140.48510.49700.76200.7917
VN-EGNNb[15]0.26370.11380.54460.60710.75300.7768
UniSite-1D (ours)0.59210.29980.45540.52380.73510.8006
UniSite-3D (ours)0.71960.39770.47020.53870.73810.8095
+ +# K Pseudo-code for Average Precision Calculation + +Algorithm 1 Average Precision Calculation +Input: prediction_list: A list, where each element represents the predictions for one protein. Each element is of the form $\{(s_i, m_i) | s_i \in \mathbb{R}, m_i \in \{0, 1\}^L\}_{i=1}^N$ , where $m_i$ represents the $i$ -th predicted binding site as a binary mask of length $L$ , and $s_i$ denotes the $i$ -th confidence score. groundtruth_list: A list, where each element represents the ground truth (gt) binding sites for one protein. Each element is of the form $\{m_i^{gt} | m_i^{gt} \in \{0, 1\}^L\}_{i=1}^{N_{gt}}$ , where $m_i^{gt}$ represents the $i$ -th ground truth binding site as a binary mask of length $L$ . iou_threshold: IoU threshold for considering a prediction as True Positive. Output: AP: Average Precision under the given IoU threshold. + +Step 1: Determine TP (True Positive) or FP (False Positive) for each prediction +1: for predictions_per_protein, ground truths_per_protein in ZIP(prediction_list, groundtruths_list) do +2: Set all ground truths in ground_truths_per_protein as unused +3: Sort predictions_per_protein = { $(s_i, m_i) | s_i \in \mathbb{R}, m_i \in \{0, 1\}^L\}_{i=1}^N$ by decreasing confidence score $s_i$ +4: for $i = 1$ to $N$ do +5: Find ground Truth_j that has the max residue-level IoU( $m_j^{gt}$ , $m_i$ ) with prediction_i +6: if IoU( $m_j^{gt}$ , $m_i$ ) > iou_threshold and groundtruth_j is unused then +7: Mark prediction_i as TP +8: Set ground Truth_j as used +9: else +10: Mark prediction_i as FP +11: end if +12: end for +13: end for + +Step 2: Sort all predictions across all proteins by decreasing confidence scores +14: allpredictions $\leftarrow$ FLATTEN_ALL(prediction_list) +15: all-ground_truths $\leftarrow$ FLATTEN_ALL(groundtruthsList) +16: Sort allpredictions by decreasing confidence scores + +Step 3: Calculate the precision-recall curve +Step 4: Calculate average precision +27: Calculate AP as the area under the precision-recall curve +28: return AP +17: Set cum_TP, cum_BP as 0, precision_list and recall_list as empty +18: for prediction_i in allpredictions do +19: if prediction_i is marked as TP then +20: cum_TP $\leftarrow$ cum_TP + 1 +21: else +22: cum_BP $\leftarrow$ cum_BP + 1 +23: end if +24: precision_list.append(cum_TP / (cum_TP + cum_BP)) +25: recall_list.append(cum_TP / LEN(all-groundtruths)) +26: end for + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The claims reflect our contribution about dataset, methodology and evaluation metrics, which are illustrated in Section 2, Section 3 and Section 4 respectively. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We discussed the limitations in Section 6. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: This paper does not include theoretical results. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: We described the details of our model architecture, evaluation metrics, and experiment settings in Section 3-5. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [Yes] + +Justification: The dataset and codes will be made publicly available at https://github. com/quanlin-wu/unisite. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: We described the details of our experiment settings and model implementation in Section 5.1. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [No] + +Justification: Error bars are not reported because it would be too computationally expensive. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). + +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: As described in Section 5.1, all experiments are conducted using 8 NVIDIA RTX 4090 GPUs (24G memory) for about 2 days. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We have conducted with the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: Our work will propagate the development of structure based drug discovery. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: This paper poses no such risks. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: All assets used in this paper have been properly credited to their original creators or owners. Unless otherwise specified, all methods implemented in this work adhere to the MIT License. All datasets include source information or URLs, and their usage follows the licensing terms provided by the respective sources. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. + +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +Justification: The dataset and codes will be made publicly available at https://github. com/quanlin-wu/unisite. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. + +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: The core method development in this research does not involve LLMs. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/images.zip b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..6afbb8be323c791ec802f1b3989405241094aeac --- /dev/null +++ b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d05bddcaa3b3f2d4296e12969fcca1ccfd93365c1343badd5a244a1c6065017e +size 1030982 diff --git a/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/layout.json b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..ed8865a6c268819946affd74c317a3acbb81d259 --- /dev/null +++ b/NeurIPS/2025/UniSite_ The First Cross-Structure Dataset and Learning Framework for End-to-End Ligand Binding Site Detection/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e273f8138657522539b32cb06863bbbf1786e182b3c9ed21c468d99115c2b4f6 +size 838562 diff --git a/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/73f4a637-9b94-452d-9f3d-b86044c14545_content_list.json b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/73f4a637-9b94-452d-9f3d-b86044c14545_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..ac0cff4bf881ca8303ea81e0cdba35523a93c665 --- /dev/null +++ b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/73f4a637-9b94-452d-9f3d-b86044c14545_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8fd32b72d8ea1fcd26bfe0a51ad4b58c27a4d75837f30690967773c0a66be15 +size 134938 diff --git a/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/73f4a637-9b94-452d-9f3d-b86044c14545_model.json b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/73f4a637-9b94-452d-9f3d-b86044c14545_model.json new file mode 100644 index 0000000000000000000000000000000000000000..4e99fafc308e1beb3fbfa9c9dfd08d6488d173d8 --- /dev/null +++ b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/73f4a637-9b94-452d-9f3d-b86044c14545_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30e6e0fef5d1edb0b681cb5383d850d4c4acd283cdb77ea405efefc68b219081 +size 178890 diff --git a/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/73f4a637-9b94-452d-9f3d-b86044c14545_origin.pdf b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/73f4a637-9b94-452d-9f3d-b86044c14545_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..295d89b557353f771b186ed8593e83221f0317d0 --- /dev/null +++ b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/73f4a637-9b94-452d-9f3d-b86044c14545_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d23d0471e68eec0c727c0bb7536b6e9e20189fd962d05c16bd96f85ddfdbfe3 +size 19918945 diff --git a/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/full.md b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/full.md new file mode 100644 index 0000000000000000000000000000000000000000..ca0fa6e3f0de92032b13713e380b0601960e2fb5 --- /dev/null +++ b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/full.md @@ -0,0 +1,594 @@ +# UniTok: A Unified Tokenizer for Visual Generation and Understanding + +Chuofan Ma $^{1,2}$ Yi Jiang $^{2\dagger}$ Junfeng Wu $^{2,3}$ Jihan Yang $^{1}$ +Xin Yu $^{1}$ Zehuan Yuan $^{2*}$ Bingyue Peng $^{2}$ Xiaojuan Qi $^{1\dagger*}$ + +1The University of Hong Kong 2ByteDance Inc. + +$^{3}$ Huazhong University of Science and Technology + +# Abstract + +Visual generative and understanding models typically rely on distinct tokenizers to process images, presenting a key challenge for unifying them within a single framework. Recent studies attempt to address this by connecting the training of VQVAE (for autoregressive generation) and CLIP (for understanding) to build a unified tokenizer. However, directly combining these training objectives has been observed to cause severe loss conflicts. In this paper, we show that reconstruction and semantic supervision do not inherently conflict. Instead, the underlying bottleneck stems from limited representational capacity of discrete token space. Building on these insights, we introduce UniTok, a unified tokenizer featuring a novel multi-codebook quantization mechanism that effectively scales up the vocabulary size and bottleneck dimension. In terms of final performance, UniTok sets a new record of 0.38 rFID and $78.6\%$ zero-shot accuracy on ImageNet. Besides, UniTok can be seamlessly integrated into MLLMs to unlock native visual generation capability, without compromising the understanding performance. Additionally, we show that UniTok favors CFG-free generation, reducing gFID from 14.6 to 2.5 on ImageNet $256 \times 256$ benchmark. GitHub: https://github.com/FoundationVision/UniTok. + +![](images/24d3288e99c12cc8d9b4b983ea4ccdf5415dd803d97462bfb369723bc48afe47.jpg) +Figure 1: The major challenge in unified tokenizer training. CLIP supervision cannot be easily incorporated into VQVAE training – This provides only marginal improvements in understanding performance, while drastically degrading reconstruction FID. + +![](images/e2e32779d8eda7fc9c15646b84602c23d59a4d20c99b46ad5155e54f524a924b.jpg) + +![](images/f357035c3ab7ca29285d01e54d5090b031ebef4e9ab9937423f9f04a566ee8c3.jpg) + +![](images/93709fddb0d411ee90ed97270d77c5226ce45906cd17ac8bfa9e70f79556b345.jpg) + +# 1 Introduction + +The advent of GPT-4o [33] highlights the immense potential of Multimodal Large Language Models (MLLMs) with native visual generation capabilities [12, 46, 62, 73, 58]. These unified models offer precise control in multimodal interactions, enabling exceptional fluency in tasks such as multi-turn image editing and visual in-context learning. However, a fundamental dilemma remains in the choice of visual tokenizers for unified MLLMs – e.g., the CLIP [38, 71] tokenizer excels in multimodal understanding but complicates generative modeling due to its high-dimensional, continuous feature + +space; Conversely, the discrete VQVAE [8] tokenizer fits autoregressive generation but struggles to capture essential semantics for understanding [62]. + +In this work, we aim to design a unified visual tokenizer to bridge the gap in multimodal generation and understanding. Intuitively, this can be achieved by integrating CLIP supervision into VQVAE training, resulting in a discrete tokenizer capturing both fine-grained details and high-level semantics. However, we empirically find this training recipe confronts severe convergence issues [61] and largely falls behind the CLIP baseline in multimodal understanding (Figure 1). While prior studies commonly attribute these challenges to conflicts between semantic and pixel-level feature learning [61, 37, 58], recent progress in visual generation suggests the opposite, showing semantic regularization could benefit tokenizers in reconstruction-oriented training [63, 4, 19]. Such disparity motivates us question: Do reconstruction and semantic losses truly conflict in tokenizer training? + +To study the problem, we conduct a comprehensive ablation on the unified tokenizer training paradigm (Figure 3), which yields several intriguing findings: First, we show that removing reconstruction supervision, which leads to a vector-quantized CLIP model, does not improve understanding performance compared to the unified tokenizer. This observation indicates that the performance gap between unified and CLIP tokenizers mainly arises from vector quantization, rather than conflicts between learning objectives; Further analysis reveals that this gap is driven by two key factors: token factorization, which projects tokens into a lower-dimensional space for code index lookup [65], and discretization. These operations are essential for vector quantization but inevitably compromise the expressiveness of visual tokens. We thus argue that the primary bottleneck of unified tokenizers lies in the limited representational capacity of discrete token space. + +In light of the issue, we consider expanding the vocabulary size and latent code dimension, which allows for a closer approximation of the continuous feature space. However, extensive studies have shown that doing so could result in low codebook utilization [74, 65] and diminishing performance gains [67]. To address this, we introduce multi-codebook quantization to partition the visual token into several chunks, each discretized using a small, separate sub-codebook, akin to the multi-head attention mechanism [54]. This design exponentially scales the vocabulary size with the number of sub-codebooks, while avoiding the optimization problems of large monolithic codebooks. Besides, we replace traditional linear projection layers with adapted attention modules for token factorization, which is observed to consistently improve training stability and understanding performance. + +Building upon these techniques, we train a unified tokenizer called UniTok to bridge visual generation and understanding. Through extensive experiments, we demonstrate that UniTok achieves comparable or even better performance to domain-specific tokenizers: On ImageNet evaluation, UniTok records an impressive 0.38 reconstruction FID and $78.6\%$ zero-shot accuracy at $256 \times 256$ resolution; In building unified MLLMs, UniTok enables the MLLM with native visual generation capabilities while maintaining decent understanding performance. It outperforms the Liquid [59] baseline with a VQGAN tokenizer by $5.5\%$ on VQAv2 [13], $9.2\%$ on TextVQA [42], and 339 points on MME [64]; In addition, we demonstrate that semantic supervision leads to improved latent space structure for autoregressive generation, i.e., for class-conditional image generation on ImageNet $256 \times 256$ , UniTok significantly reduces generation FID without classifier-free guidance from 14.6 to 2.5 under the LlamaGen [43] framework, which aligns with recent findings in diffusion modeling [19, 4, 63]. + +# 2 Related Work + +Image Tokenization for Generation. In the domain of visual generation, image tokenization plays an important role in encoding raw pixels into compact latent features for generative modeling [53, 39]. Among a variety of tokenizers, the vector-quantized tokenizer [53] is favored for its discrete latent space and compatibility with autoregressive or masked generative models [48, 43, 3, 66]. The pioneering work VQVAE [53] initially introduced the concept of discretizing continuous tokens by mapping them to the nearest neighbors in a learnable codebook. Built on this, VQGAN [8] added perceptual loss [72] and discriminator loss [16] to improve the reconstruction quality. ViT-VQGAN [65] subsequently advanced the framework with the transformer architecture. In recent literature, considerable efforts have been devoted to developing better quantization methods such as residual quantization [18] and lookup-free quantization [67], which also constitute a focal point of this paper. + +Image Tokenization for Understanding. The unprecedented success of large language models (LLMs) [57, 1, 51, 47] has catalyzed the development of multimodal large language models (MLLMs) + +[28, 25, 31]. As a critical component of MLLMs, the selection of an effective vision tokenizer has been the subject of extensive study [55, 49]. A common choice of the vision tokenizer is the pretrained CLIP model [38], which undergoes alignment with language during its pretraining phase. While self-supervised learning models, such as DINOv2 [34], are shown to be advantageous at region-level tasks [30]. However, these tokenizers predominantly encode images into a continuous feature space, presenting challenges for uniformly modeling both vision and text tokens. To address this, some works have explored discretizing CLIP tokens [10] or employing VQVAE encoders [27, 62]. Yet, these methods have been observed to substantially impair understanding performance of MLLMs. + +Unified Vision-Language Models. The rise of MLLMs is not limited to the realm of visual understanding. Recent advancements have witnessed an increasing focus on unifying visual generation and understanding within one MLLM [7, 60, 46, 73, 62, 50, 21]. Specifically, a line of works employs continuous visual tokenizers for image encoding, and leverages pretrained diffusion models for image synthesis [7, 11, 44]. This approach inevitably increases model complexity and disconnects the visual sampling process from the MLLM. In contrast, another stream of research adopts VQVAE models to encode images into discrete tokens [46, 56, 62, 61, 59]. These tokens are subsequently modeled using the same cross-entropy loss that is applied to text tokens, facilitating a unified approach to multimodal learning. However, as reconstruction-oriented VQVAE does not naturally align with the LLM token space, these models typically suffer from degraded visual comprehension capabilities. Our research aligns with the second approach, with a particular focus on the tokenizer design that is suitable for both generation and understanding tasks. + +# 3 Method + +In this section, we introduce UniTok, a unified tokenizer well-suited for both visual generation and understanding tasks. We start with a unified training recipe that integrates reconstruction (VQVAE) and semantic (CLIP) supervisions (Section 3.1). However, we find that simply combining both training objectives leads to severe performance degradation, which can be mainly attributed to limited representational capacity of discrete tokens (Section 3.2). To this end, we propose multi-codebook quantization and attention projection to enhance the latent feature space and derive unified visual representations (Section 3.3). An overview of the framework is presented in Figure 2. + +![](images/e4a3740cba98d9b66dfe4c6a152f661c36e3ced96cc08deb4ac416eb0852f389.jpg) +Figure 2: An overview of UniTok. The tokenizer is trained to reconstruct the input image while aligning its discrete latent features with the text caption. For vector quantization, each visual token is split into multiple chunks, which then undergo code index lookup on corresponding sub-codebooks. + +# 3.1 Unified Supervision + +Visual generative and understanding models typically impose distinct demands on the visual tokenizers. For instance, generation emphasizes precise encoding of the visual signals, whereas understanding prioritizes capturing high-level semantics. To accommodate both requirements, we jointly train the tokenizer with $(i)$ a VQVAE-based reconstruction loss to preserve low-level information, and $(ii)$ an image-text contrastive loss that enhances high-level semantics of the features. + +To be specific, the VQVAE-based loss term $\mathcal{L}_{\mathrm{recon}}$ consists of a pixel-level reconstruction loss $\mathcal{L}_{\mathrm{R}}$ , a perceptual loss $\mathcal{L}_{\mathrm{P}}$ based on the LPIPS metric [72], a discriminator loss $\mathcal{L}_{\mathrm{G}}$ to enhance reconstruction + +fidelity [16], and a vector quantization loss $\mathcal{L}_{\mathrm{VQ}}$ to minimize distance between the encoder output and its nearest code entry. It is denoted as: + +$$ +\mathcal {L} _ {\text {r e c o n}} = \mathcal {L} _ {\mathrm {R}} + \lambda_ {\mathrm {V Q}} \mathcal {L} _ {\mathrm {V Q}} + \lambda_ {\mathrm {P}} \mathcal {L} _ {\mathrm {P}} + \lambda_ {\mathrm {G}} \mathcal {L} _ {\mathrm {G}}, \tag {1} +$$ + +where $\lambda$ is the weight factor for the corresponding loss term. The image-text contrastive loss term $\mathcal{L}_{\mathrm{contra}}$ is basically the same as in CLIP [38]. Therefore, the final loss term can be written as: + +$$ +\mathcal {L} = \mathcal {L} _ {\text {r e c o n}} + \lambda_ {\text {c o n t r a}} \mathcal {L} _ {\text {c o n t r a}}. \tag {2} +$$ + +We simply choose $\lambda_{\mathrm{contra}} = 1$ in this paper. + +# 3.2 Quantization Bottleneck + +Despite being augmented with CLIP supervision, we find that the unified tokenizer exhibits unsatisfactory performance in visual understanding tasks, significantly lagging behind the commonly used CLIP tokenizer. To figure out the underlying cause of this underperformance, we break down the key components involved in training a unified tokenizer, as illustrated in Figure 3. Starting with the CLIP baseline, we provide a step-by-step walk-through of all changes in following paragraphs. + +![](images/cc182200a28d3a44eac10b00a8abb6ca35b9a889c5a6cd3e5e5066fd82fdfcc8.jpg) +Figure 3: Roadmap from CLIP to UniTok. It is observed that major degradation in understanding performance comes from token factorization and discretization, rather than reconstruction supervision. The proposed multi-codebook quantization and attention projection effectively address this by scaling up the vocabulary size and bottleneck dimension. The VQA score is measured using the average score across the VQAv2, GQA, TextVQA, and POPE benchmarks. All tokenizers are trained from scratch on $512\mathrm{m}$ image-text pairs from DataComp. + +Factorization. Modern VQ-tokenizers typically project continuous tokens to a lower-dimensional latent space for code index lookup (e.g. from 768-d to 8-d), known as token factorization [65]. This increases the relative density of codes by compressing the latent code space, thereby reducing quantization error. To evaluate the impact of factorization in CLIP training, we add two linear projection layers on top of the CLIP vision encoder (right before average pooling), which transforms tokens from 768-d to 16-d and then back to 768-d. Notably, vector quantization and reconstruction supervision are not included at this stage. Surprisingly, it turns out that this channel compression operation significantly compromises the expressiveness of tokens, leading to severe performance degradation in downstream VQA tasks. + +Discretization. Based on the implementation described above, we further introduce vector quantization to CLIP training, which maps factorized tokens to their nearest code entries. Compared to language tokenizers with vocabularies exceeding 200k entries, the vocabulary size of modern VQ-tokenizers is markedly smaller (i.e., typically ranging from 4k to 16k). Mapping continuous tokens to such a small codebook results in considerable information loss. This is validated in our experiment, which demonstrates that discretizing the factorized tokens with a 16k codebook causes an average accuracy drop of 2.1 in VQA tasks. + +Reconstruction Supervision. Finally, we integrate reconstruction losses into the training process to build a unified tokenizer, as outlined in Section 3.1. Previous literature suggests that loss conflict between VQVAE and CLIP is a major cause of performance degradation in joint training [61]. We observe a similar phenomenon where joint training results in sub-optimal ImageNet zero-shot classification accuracy and reconstruction FID compared to specialized training. However, surprisingly, we find that this degradation has negligible impacts on downstream understanding performance. + +Moreover, the degradation in classification accuracy and reconstruction FID diminishes after we improve the quantization methods (detailed in the next section). Based on these observations, we speculate that the perceived loss conflict is only a superficial issue, and the primary cause of the underperformance lies in the limited representational capacity of discrete tokens. + +# 3.3 UniTok + +A straightforward solution to breaking the quantization bottleneck could be increasing the codebook size and the latent code dimension. However, current studies on VQVAE tokenizers suggest that there is diminishing gain in scaling and the performance saturates after the codebook size reaches 16k [67, 43]. Continuing expansion results in a substantial portion of codes being rarely used or becoming 'dead' during training, which negatively impacts downstream task performance [65]. To address this, we propose multi-codebook quantization and attention projection in the following paragraphs. + +Multi-codebook quantization (MCQ) discretizes the latent tokens with a set of independent codebooks. Specifically, the latent vector $f \in \mathbb{R}^d$ is first evenly split into $n$ chunks $\{f_1, f_2, \dots, f_n\}$ , where $f_i \in \mathbb{R}^{\frac{d}{n}}$ . The subsequent quantization process is denoted as: + +$$ +\hat {f} = \operatorname {C o n c a t} \left(\mathcal {Q} \left(Z _ {1}, f _ {1}\right), \mathcal {Q} \left(Z _ {2}, f _ {2}\right), \dots , \mathcal {Q} \left(Z _ {n}, f _ {n}\right)\right) \tag {3} +$$ + +where $\hat{f}$ is the discretized latent vector, $\mathcal{Q}$ is the code index lookup operation, and $Z_{i}$ is $i$ -th subcodebook. Compared to conventional quantization methods, the proposed MCQ effectively scales up the vocabulary size. For instance, by increasing the number of sub-codebooks from 1 to 4, and suppose each sub-codebook contains 16k code entries, the theoretical vocabulary size exponentially increases from $2^{14}$ to $2^{56}$ (i.e., there are up to $2^{14\times 4}$ possible combinations of codes for each token). As the size of each individual codebook remains constant, it circumvents the optimization problem associated with large codebooks. Besides, the dimensionality of the latent codes also scales proportionally with the number of codebooks (i.e., increasing from 16-d to 64-d in this case), which further enhances the representational capacity of discrete representations. + +Discussions. MCQ shares a similar concept with residual quantization (RQ) [18] in using multiple codes to quantize a token, but differs fundamentally in design philosophy: RQ follows a coarse-to-fine quantization order, whereas MCQ adopts a divide-and-conquer strategy. This distinction gives MCQ unique advantages when operating in high-dimensional latent spaces, where codes tend to become increasingly sparse. For instance, with a latent dimension of 64-d, we observe that MCQ's quantization loss is 15 to 45 times lower than that of RQ. This is because MCQ partitions the original latent space into multiple low-dimensional subspaces for quantization. Our ablation study in Table 7 further confirms the superiority of MCQ in unified tokenizer training. + +Attention projection. Existing VQ methods usually employ linear or convolutional projection layers for token factorization. But as shown in Figure 3, this over-simplified design fails to preserve rich semantics when compressing the feature dimensions, leading to degraded understanding performance. To alleviate this problem, we suggest adapting the multi-head attention modules for factorization. Specifically, instead of concatenating features from multiple heads after the attention calculation, we replace the concatenation operation with average pooling to realize channel compression. Figure 6 provides a detailed illustration of the adaptation. Despite its simplicity, we find this design effectively strengthens the representational power of factorized tokens and stabilizes training. + +# 3.4 Unified MLLM + +We proceed to develop a unified multimodal model with UniTok. Particularly, we leverage the unified framework introduced in Liquid [59], which models (discrete-valued) vision and language sequences with a universal next-token prediction loss. But instead of learning the visual codebook from scratch, we reuse code embeddings of UniTok by projecting them to the MLLM token space with an MLP projector. Notably, despite UniTok encodes an image into $H \times W \times K$ codes (where $K$ represents the number of sub-codebooks), we simplify this for MLLM input by merging every $K$ consecutive codes into a single visual token. Similarly, when it comes to visual token prediction, we make each token autoregressively predict the next $K$ codes, using a depth transformer head as implemented in RQ-Transformer [18] and VILA-U [61]. This design maintains efficiency for visual generation in the context of multi-codebooks. + +# 4 Experiments + +# 4.1 Implementation Details + +Tokenizer Setup. Leading VQVAE tokenizers predominantly adopt the CNN architecture, while ViT is preferred in CLIP training for its scalability. To take advantage of both, we choose a hybrid architecture, ViTamin-L/16 [5], to instantiate UniTok. We configure UniTok with eight sub-codebooks, each containing 4,096 code entries and a latent dimension set to 8-d (the global latent dimension is thus 64-d). The discriminator is initialized with pretrained DINOv2-S [34]. We train the tokenizer for one epoch on the public dataset DataComp-1B [9] consisting of 1.28B image-text pairs, with all images resized to $256 \times 256$ resolution and a global batch size of 16k. The learning rate is set to 1e-3 for the tokenizer and 2e-4 for the discriminator. Besides, we prepare two settings for evaluation: one with pretrained CLIP weight initialization and one with random initialization (the default setting). + +MLLM Setup. We instantiate a unified MLLM described in Section 3.4 with the Llama-2-7B base model [52]. Following Liquid, we first pretrain the model on a mix of multimodal data, which is composed of 10M language data from DCLM [22], 30M internal MidJourney-style synthetic data, and 30M re-captioned image-text pairs from COYO [32] and Laion [41]. Subsequently, we finetune the model on 1.5M text-to-image data and 1.5M multimodal instruction tuning data introduced in Mini-Gemini [23]. Specifically, the learning rate is set to 5e-5 in the pretraining stage and 2e-5 in the finetuning stage. For visual understanding evaluation, we report results on standard VQA benchmarks including VQAv2 [13], GQA [14], TextVQA [42], POPE [24], MME [64], and MM-Vet [70]. For visual generation evaluation, we report results on GenAI-Bench [26] and MJHQ-30K [20]. + +# 4.2 Tokenizer Comparison + +We benchmark UniTok on ImageNet using two primary metrics: Fréchet Inception Distance (FID) to evaluate reconstruction quality, and top-1 zero-shot accuracy to assess image-text alignment. The results are presented in Table 1. To provide a fair comparison with tokenizers trained on small datasets, we also train a version of UniTok on OpenImages [17] solely with reconstruction supervision. It can be seen that UniTok excels in reconstruction quality compared to both unified and domain-specific tokenizers, recording an impressive $0.38\mathrm{rFID}$ on ImageNet with $16\times$ downsampling ratio. As a discrete tokenizer, UniTok even surpasses the continuous VAE tokenizer from Stable Diffusion v2.1 [40], showcasing the superiority of the proposed multi-codebook quantization. For the perception performance, we observe that randomly initialized UniTok demonstrates suboptimal zero-shot classification accuracy. This is expected as current training schedule (i.e., one epoch on 1.28B samples) is insufficient for CLIP training to fully converge. It can be seen that initializing the model with pretrained CLIP weights largely alleviates the problem, boosting the zero-shot accuracy from $70.8\%$ to $78.6\%$ . In complement to quantitative results, we provide examples of reconstructed images in Figure 4. + +Table 1: Comparison on ImageNet reconstruction FID and zero-shot classification accuracy. rFID is measured at $256\times 256$ resolution with $16\times$ downsample ratio. $\dagger$ indicates model using pretrained CLIP weights for initialization. \* indicates model trained on OpenImages. + +
Method#TokensrFID ↓Accuracy
VQVAE Model
VQ-GAN* [8]2564.98-
RQ-VAE [18]2561.30-
VAR* [48]6800.90-
UniTok*2560.33-
CLIP Model
CLIP [38]256-76.2
SigLIP [71]256-80.5
ViTamin [5]256-81.2
Unified Model
TokenFlow†[37]6801.37-
VILA-U†[61]2561.8073.3
UniTok2560.4170.8
UniTok†2560.3878.6
+ +# 4.3 Class-Conditional Image Generation + +Recent studies on diffusion models indicate that injecting semantics into VAE training leads to a better-structured latent space, considerably enhancing guidance-free generation performance [63, 4, 19]. To evaluate whether UniTok possesses similar properties, we test it within the LlamaGen framework for class-conditional image generation. As shown in Table 2, UniTok reduces the FID by 12.11 compared to the VQGAN baseline in CFG-free generation, under the same generator setup. This implies that UniTok learns a more structured code distribution, benefiting autoregressive modeling. + +![](images/73210aef10fb2b885d793ed79c8965106e0e16728a202b9fd0102279b2d71574.jpg) + +![](images/5323887858f10c132d21133378866105238b6f77266eb6d93c71305f42e0c479.jpg) + +![](images/5ccecd61b1b0444eb5f362dcbaec910c171d28b57d68939f02c703ec04064d38.jpg) +Original Images + +![](images/2c9622fd6ad934e2de058f49c3cf584e96a048c8fb753e14e2fb02a94c22792a.jpg) + +![](images/bcebc10c5f3469aafe8ef8fa5b077d81f4389dbacacd1c0e3c16107c6aa41118.jpg) + +![](images/9f8f9dff8b814187481c22c2c81b80aa4ff6ad5cf18a94aee4e5913b9accdb30.jpg) +Figure 4: Qualitative results on image reconstruction in a resolution of $256 \times 256$ . + +![](images/e7be833009d85fd3bff50e3f18e5edc98d7cd5795a12587558328a73c714be69.jpg) +Reconstructed Images + +![](images/481f5f1c989f47709c98e94d98ead8a016e3281f54e4c07e284facaa2780fe40.jpg) + +![](images/3bd9335edf05aa99d97d9ebb3ed3e8eb27c1b6d3a88c8d9dd12f5cf49c56321a.jpg) + +![](images/6443277a0e6980cb5ff5b4d58eb0a508cb9adc1ed891a0e7d116ab318053459c.jpg) + +Table 2: Class-conditional image generation results on ImageNet ${256} \times {256}$ . †: VQGAN tokenizer from LlamaGen. ‡: Images are generated at ${384} \times {384}$ resolution and then resized to ${256} \times {256}$ for evaluation. 'Pre.': precision; 'Rec.': recall; 'CFG': classifier-free-guidance. + +
TokenizerrFIDGenerator#Params.Generation w/o CFGGeneration w/ CFG
gFID↓IS↑Pre.Rec.gFID↓IS↑Pre.Rec.
Diffusion Models
SD-VAE [40]0.61DiT [35]675M9.62121.50.670.672.27278.20.830.57
VAVAE [63]0.28LightningDiT [63]675M2.17205.60.770.651.35295.30.790.65
Masked Generative Models
LFQ [67]0.9MAGVIT-v2 [67]307M3.07213.1--1.91324.3--
TiTok-L [69]2.21MaskGIT [3]177M3.15173.0--2.77199.8--
Autoregressive Models
VQGAN†2.19LlamaGen‡[43]1.4B14.6586.30.630.682.34253.90.810.60
UniTok (Ours)0.41LlamaGen [43]1.4B2.51216.70.820.572.77227.50.810.57
+ +# 4.4 Unified Understanding and Generation + +Understanding Performance. We evaluate the understanding performance of UniTok on diverse VQA benchmarks in Table 3. Our unified MLLM showcases clear advantages when compared to other unified models that also utilize a discrete visual tokenizer. Specifically, UniTok significantly outperforms the Chameleon model, which relies on a traditional VQVAE tokenizer, by $7.2\%$ higher accuracy on VQAv2. Additionally, it surpasses VILA-U, another model with a unified tokenizer, by $3.3\%$ in accuracy on the TextVQA benchmark and by a notable margin of 112 points on the MME-Perception scores. Furthermore, we can see that UniTok largely narrows the performance gap with MLLMs that incorporate continuous visual tokenizers. These strong results confirm the candidacy of UniTok as a unified visual tokenizer for multimodal models. + +Generation Performance. Table 4 presents the text-to-image generation performance of our unified MLLM on the GenEval benchmark. We show that UniTok not only outperforms most of the unified MLLMs, but also demonstrates competitive performance against domain experts (diffusion models) trained on billions of images. Besides, UniTok achieves non-trivial improvements over Liquid while using exactly the same set of text-to-image training data, highlighting the importance of a unified tokenizer. We also provide results on GenAI-Bench in Table 10 and Table 11 in Appendix. + +We further evaluate the quality of images generated by our model on the MJHQ-30K benchmark, details of which are presented in Table 5. Notably, as this benchmark primarily relies on the FID score + +Table 3: Comparison with unified multi-modal large language models on VQA benchmarks. + +
MethodLLMToken TypeRes.VQAv2GQATextVQAPOPEMMEMM-Vet
Emu [45]Llama-13BContinuous22452.0-----
LaVIT [15]Llama-7BContinuous22466.046.8----
DreamLLM [7]Vicuna-7BContinuous22472.9-41.8--26.6
Unified-IO 2 [29]6.8B from scratchContinuous38479.4--87.7--
Janus [58]DeepSeek-1.3BContinuous38477.359.1-87.0133834.3
CM3Leon [68]7B from scratchDiscrete25647.6-----
LWM [27]Llama-2-7BDiscrete25655.844.818.875.2--
Show-o [62]Phi-1.5-1.3BDiscrete25659.348.7-73.8948-
Chameleon [46]34B from scratchDiscrete51269.6----
Liquid [59]Gemma-7BDiscrete51271.358.442.481.11119-
VILA-U [61]Llama-2-7BDiscrete25675.358.348.383.9133627.7
UniTokLlama-2-7BDiscrete25676.861.151.683.2144833.9
+ +Table 4: Comparison with other visual generation methods on the GenEval benchmark. + +
MethodType#DataSingle Obj.Two Obj.CountingColorsPositionColor Attri.Overall↑
SD v2.1 [39]Diffusion2000M0.980.510.440.850.070.170.50
SD-XL [36]Diffusion2000M0.980.740.390.850.150.230.55
DALL-E 3 [2]Diffusion-0.960.870.470.830.430.450.67
Show-o [62]Discrete Diff.36M0.950.520.490.820.110.280.53
2.0B0.980.800.660.840.310.500.68
LWM [27]Autoregressive-0.930.410.460.790.090.150.47
Janus [58]Autoregressive-0.970.680.300.840.460.420.61
Liquid [59]Autoregressive30M0.980.730.320.760.170.370.55
UniTokAutoregressive30M0.990.710.360.790.260.450.59
+ +for evaluation, high-resolution images are preferred because they potentially capture more fine-grained details. Despite this makes FID across different resolutions less comparable, we show that our model achieves impressive performance even at the smallest resolution, showcasing its ability to generate high-quality, detail-rich images. + +We present some examples of the images generated by our model in Figure 5, using text prompts sampled from MJHQ-30K. The visualization results demonstrate our model is capable of synthesizing photorealistic and visually appealing images. Moreover, the model is able to comprehend a wide spectrum + +of concepts, such as 'Vincent van Gogh painting style' and 'bitcoin', and flexibly combine these concepts to synthesize creative images. + +Table 5: Results on MJHQ-30K. + +
MethodTypeRes.FID↓
SD-XL [36]Diffusion10249.55
PixArt [6]Diffusion10246.14
Playground [20]Diffusion10244.48
Liquid [59]Autoregressive5125.47
Janus [58]Autoregressive38410.10
LWM [27]Autoregressive25617.77
Show-o [62]Discrete Diff.25615.18
VILA-U [61]Autoregressive25612.81
UniTokAutoregressive2567.46
+ +# 4.5 Ablation Studies + +Impact of Supervision Types. To ablate the impact of contrastive and reconstruction losses in UniTok training, we conduct experiments on tokenizers trained with different supervision types, as shown in Table 6. It is worth noting that all the tokenizers are vector-quantized even though some do not have reconstruction supervision. First, we show that reconstruction-oriented tokenizer significantly lags behind tokenizers with contrastive supervision in visual understanding performance. This observation evidences the limitations of traditional VQVAE. Second, we demonstrate that reconstruction and contrastive training objectives do not inherently conflict, or can be addressed by enhancing discrete feature space. With multi-codebook quantization, the jointly trained tokenizer not only exhibits understanding performance on par with the tokenizer trained solely with contrastive loss, but also slightly improves generation performance over the reconstruction-oriented tokenizer. + +MCQ v.s. RQ. Following discussions in Section 3.3, we provide an apple-to/apple comparison between multi-codebook quantization and residual quantization in Table 7. For fair comparisons, we + +![](images/9b74248716873f198241c048072f2a0cd3390a148e305cde73b90e1a78220dca.jpg) +Figure 5: Images generated in a resolution of $256 \times 256$ with our unified MLLM. + +Table 6: Impact of different supervision types on downstream generation and understanding performance. The rFID and gFID are measured on the ImageNet $(256\times 256)$ validation set. LlamaGen-L [43] is adopted as the generator for gFID evaluation. + +
SupervisionGenerationUnderstanding
rFID ↓gFID ↓VQAv2GQASciQATextVQAPOPEMME
Contrastive--68.9556.8965.6449.8982.341373
Reconstruction0.823.5956.3347.5363.2643.6577.09902
Recon. + Contra.0.723.2669.1456.0665.2549.2281.421333
+ +directly implement RQ on our codebase, keeping all the training settings the same as UniTok. Both tokenizers are trained on a 512M subset of DataComp-1B. Notably, unlike MCQ, RQ by default uses a shared large codebook. To keep the global codebook size the same as UniTok, we set the codebook size of RQ to 32768. It can be seen that RQ demonstrates inferior reconstruction performance and lower classification accuracy compared to MCQ under the high bottleneck dimension (64-d) setting. + +Number of Sub-Codebooks. To gain deeper insights into multi-codebook quantization, we evaluate how tokenizer performance changes with the number of sub-codebooks in Table 8. Specifically, the size of a codebook is denoted as $A \times B$ , where $A$ is the number of sub-codebook and $B$ is the size of sub-codebook. For rFID evaluation, we train the tokenizer solely with reconstruction loss on OpenImages [17], and evaluated it on ImageNet (256 × 256) validation set. While for ImageNet zero-shot accuracy evaluation, the tokenizer is trained on DataComp-1B 128m subset using only contrastive loss. Given a constant global codebook size, we see that increasing the number of subcodebooks consistently improves reconstruction FID and classification accuracy. This indicates that MCQ generally benefits vector-quantized models, independent of the training objectives. + +Table 7: MCQ v.s. RQ. + +
MethodCode ShapeCode Dim.rFID↓Accuracy
RQ16×16×8643.4658.8
MCQ16×16×8640.5563.7
Codebook / Vocabulary
1×16384 / 214
2×8192 / 226
4×4096 / 248
8×2048 / 288
Accuracy
41.0%
43.9%
44.7%
46.1%
+ +Table 8: Ablation on number of sub-codebooks. + +CLIP Weight Initialization. We notice that higher ImageNet accuracy does not guarantee superior downstream performance. In Table 9, we ablate the impact of CLIP weight initialization on visual understanding performance. Specifically, we adopt the classic LLaVA framework for evaluation, + +replacing the original CLIP tokenizer with UniTok while keeping all other the training settings unchanged. One tokenizer is initialized with the pretrained ViTamin-L-256 [5] weights, while the other is randomly initialized. To our surprise, UniTok that is trained from scratch surpasses the one initialized with pretrained CLIP weights, despite the latter actually achieves better zero-shot classification accuracy. This suggests downstream VQA performance may not be highly correlated with ImageNet classification accuracy. More importantly, it also implies that CLIP weight initialization may serve as a negative prior for unified tokenizers, as the unified visual feature space could drastically differ from CLIP feature space. + +Table 9: Comparison of different initialization methods under the LLaVA framework. $\dagger$ indicates the model uses CLIP weights for initialization. We highlight the default setting of UniTok in gray. + +
TokenizerVQAv2GQATextVQAPOPEMME
UniTok†69.956.249.381.21331
UniTok72.458.251.682.41392
+ +# 5 Limitations and Conclusion + +This paper studies unified visual tokenization for generation and understanding, which serves as the cornerstone of unified multimodal large language models. We investigate the training paradigm of unified tokenizers and identify that the current challenge in unification mainly arises from the limited representational power of discrete tokens. To address this limitation, we introduce multi-codebook quantization and attention projection to build a unified tokenizer called UniTok. We show that UniTok excels in downstream visual generation and understanding tasks. The ablation study further reveals that discriminative and generative representation learning does not inherently conflict. We hope our findings could inspire future research in this domain. + +However, due to limited computational resources, UniTok is only trained for one epoch, which is not sufficient for CLIP-based semantic representation learning. We believe extending the training schedule could further benefit the tokenizer, especially in understanding performance. + +Acknowledgments This work has been supported by the National Key R&D Program of China (Grant No. 2022YFB3608300), Hong Kong Research Grant Council - Early Career Scheme (Grant No. 27209621), General Research Fund Scheme (Grant No. 17202422, 17212923, 17215025) Themebased Research (Grant No. T45-701/22-R) and Shenzhen Science and Technology Innovation Commission (SGDX20220530111405040). We sincerely thank Seng Ye for the insightful discussions and valuable contributions to this project. + +# References + +[1] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023. +[2] James Betker, Gabriel Goh, Li Jing, Tim Brooks, Jianfeng Wang, Linjie Li, Long Ouyang, Juntang Zhuang, Joyce Lee, Yufei Guo, et al. Improving image generation with better captions. Computer Science. https://cdn.openai.com/papers/dall-e-3.pdf, 2(3):8, 2023. +[3] Huiwen Chang, Han Zhang, Lu Jiang, Ce Liu, and William T Freeman. Maskgit: Masked generative image transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11315-11325, 2022. +[4] Hao Chen, Yujin Han, Fangyi Chen, Xiang Li, Yidong Wang, Jindong Wang, Ze Wang, Zicheng Liu, Difan Zou, and Bhiksha Raj. Masked autoencoders are effective tokenizers for diffusion models. arXiv preprint arXiv:2502.03444, 2025. +[5] Jieneng Chen, Qihang Yu, Xiaohui Shen, Alan Yuille, and Liang-Chieh Chen. Vitamin: Designing scalable vision models in the vision-language era. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12954-12966, 2024. +[6] Junsong Chen, Jincheng Yu, Chongjian Ge, Lewei Yao, Enze Xie, Yue Wu, Zhongdao Wang, James Kwok, Ping Luo, Huchuan Lu, et al. Pixart-alpha: Fast training of diffusion transformer for photorealistic text-to-image synthesis. arXiv preprint arXiv:2310.00426, 2023. +[7] Runpei Dong, Chunrui Han, Yuang Peng, Zekun Qi, Zheng Ge, Jinrong Yang, Liang Zhao, Jianjian Sun, Hongyu Zhou, Haoran Wei, et al. Dreamllm: Synergistic multimodal comprehension and creation. arXiv preprint arXiv:2309.11499, 2023. +[8] Patrick Esser, Robin Rombach, and Bjorn Ommer. Taming transformers for high-resolution image synthesis. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 12873-12883, 2021. +[9] Samir Yitzhak Gadre, Gabriel Ilharco, Alex Fang, Jonathan Hayase, Georgios Smyrnis, Thao Nguyen, Ryan Marten, Mitchell Wortsman, Dhruba Ghosh, Jieyu Zhang, et al. Datacomp: In search of the next generation of multimodal datasets. Advances in Neural Information Processing Systems, 36, 2024. +[10] Yuying Ge, Yixiao Ge, Ziyun Zeng, Xintao Wang, and Ying Shan. Planting a seed of vision in large language model. arXiv preprint arXiv:2307.08041, 2023. +[11] Yuying Ge, Sijie Zhao, Jinguo Zhu, Yixiao Ge, Kun Yi, Lin Song, Chen Li, Xiaohan Ding, and Ying Shan. Seed-x: Multimodal models with unified multi-granularity comprehension and generation. arXiv preprint arXiv:2404.14396, 2024. +[12] Google. Experiment with gemini 2.0 flash native image generation, 2025. +[13] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6904-6913, 2017. +[14] Drew A Hudson and Christopher D Manning. Gqa: A new dataset for real-world visual reasoning and compositional question answering. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 6700-6709, 2019. + +[15] Yang Jin, Kun Xu, Liwei Chen, Chao Liao, Jianchao Tan, Bin Chen, Chenyi Lei, An Liu, Chengru Song, Xiaoqiang Lei, et al. Unified language-vision pretraining with dynamic discrete visual tokenization. arXiv preprint arXiv:2309.04669, 2023. +[16] Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4401-4410, 2019. +[17] Alina Kuznetsova, Hassan Rom, Neil Alldrin, Jasper Uijlings, Ivan Krasin, Jordi Pont-Tuset, Shahab Kamali, Stefan Popov, Matteo Malloci, Alexander Kolesnikov, et al. The open images dataset v4: Unified image classification, object detection, and visual relationship detection at scale. International journal of computer vision, 128(7):1956-1981, 2020. +[18] Doyup Lee, Chiheon Kim, Saehoon Kim, Minsu Cho, and Wook-Shin Han. Autoregressive image generation using residual quantization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11523-11532, 2022. +[19] Xingjian Leng, Jaskirat Singh, Yunzhong Hou, Zhenchang Xing, Saining Xie, and Liang Zheng. Repa-e: Unlocking vae for end-to-end tuning with latent diffusion transformers. arXiv preprint arXiv:2504.10483, 2025. +[20] Daiqing Li, Aleks Kamko, Ehsan Akhgari, Ali Sabet, Linmiao Xu, and Suhail Doshi. Playground v2. 5: Three insights towards enhancing aesthetic quality in text-to-image generation. arXiv preprint arXiv:2402.17245, 2024. +[21] Hao Li, Changyao Tian, Jie Shao, Xizhou Zhu, Zhaokai Wang, Jinguo Zhu, Wenhan Dou, Xiaogang Wang, Hongsheng Li, Lewei Lu, et al. Synergen-vl: Towards synergistic image understanding and generation with vision experts and token folding. arXiv preprint arXiv:2412.09604, 2024. +[22] Jeffrey Li, Alex Fang, Georgios Smyrnis, Maor Ivgi, Matt Jordan, Samir Gadre, Hritik Bansal, Etash Guha, Sedrick Keh, Kushal Arora, et al. Datacomp-lm: In search of the next generation of training sets for language models. arXiv preprint arXiv:2406.11794, 2024. +[23] Yanwei Li, Yuechen Zhang, Chengyao Wang, Zhisheng Zhong, Yixin Chen, Ruihang Chu, Shaoteng Liu, and Jiaya Jia. Mini-gemini: Mining the potential of multi-modality vision language models. arXiv preprint arXiv:2403.18814, 2024. +[24] Yifan Li, Yifan Du, Kun Zhou, Jinpeng Wang, Wayne Xin Zhao, and Ji-Rong Wen. Evaluating object hallucination in large vision-language models. arXiv preprint arXiv:2305.10355, 2023. +[25] Ji Lin, Hongxu Yin, Wei Ping, Pavlo Molchanov, Mohammad Shoeybi, and Song Han. Vila: On pre-training for visual language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 26689-26699, 2024. +[26] Zhiqiu Lin, Deepak Pathak, Baiqi Li, Jiayao Li, Xide Xia, Graham Neubig, Pengchuan Zhang, and Deva Ramanan. Evaluating text-to-visual generation with image-to-text generation. In European Conference on Computer Vision, pages 366–384. Springer, 2025. +[27] Hao Liu, Wilson Yan, Matei Zaharia, and Pieter Abbeel. World model on million-length video and language with ringattention. arXiv preprint arXiv:2402.08268, 2024. +[28] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. Advances in neural information processing systems, 36, 2024. +[29] Jiasen Lu, Christopher Clark, Sangho Lee, Zichen Zhang, Savya Khosla, Ryan Marten, Derek Hoiem, and Aniruddha Kembhavi. Unified-io 2: Scaling autoregressive multimodal models with vision language audio and action. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 26439–26455, 2024. +[30] Chuofan Ma, Yi Jiang, Jiannan Wu, Zehuan Yuan, and Xiaojuan Qi. Groma: Localized visual tokenization for grounding multimodal large language models. In European Conference on Computer Vision, pages 417-435. Springer, 2025. + +[31] Brandon McKinzie, Zhe Gan, Jean-Philippe Fauconnier, Sam Dodge, Bowen Zhang, Philipp Dufter, Dhruti Shah, Xianzhi Du, Futang Peng, Floris Weers, et al. Mm1: Methods, analysis & insights from multimodal llm pre-training. arXiv preprint arXiv:2403.09611, 2024. +[32] Byeon Minwoo, Park Beomhee, Kim Haecheon, Lee Sungjun, Baek Woonhyuk, and Kim. Saehoon. Coyo-700m: Image-text pair dataset., 2022. +[33] OpenAI. Introducing 4o image generation, 2025. +[34] Maxime Oquab, Timothee Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al. Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023. +[35] William Peebles and Saining Xie. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4195-4205, 2023. +[36] Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas Müller, Joe Penna, and Robin Rombach. Sdxl: Improving latent diffusion models for high-resolution image synthesis. arXiv preprint arXiv:2307.01952, 2023. +[37] Liao Qu, Huichao Zhang, Yiheng Liu, Xu Wang, Yi Jiang, Yiming Gao, Hu Ye, Daniel K Du, Zehuan Yuan, and Xinglong Wu. Tokenflow: Unified image tokenizer for multimodal understanding and generation. arXiv preprint arXiv:2412.03069, 2024. +[38] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748-8763. PMLR, 2021. +[39] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10684-10695, 2022. +[40] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10684-10695, 2022. +[41] Christoph Schuhmann, Romain Beaumont, Richard Vencu, Cade Gordon, Ross Wightman, Mehdi Cherti, Theo Coombes, Aarush Katta, Clayton Mullis, Mitchell Wortsman, et al. Laion-5b: An open large-scale dataset for training next generation image-text models. Advances in Neural Information Processing Systems, 35:25278–25294, 2022. +[42] Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, and Marcus Rohrbach. Towards vqa models that can read. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 8317-8326, 2019. +[43] Peize Sun, Yi Jiang, Shoufa Chen, Shilong Zhang, Bingyue Peng, Ping Luo, and Zehuan Yuan. Autoregressive model beats diffusion: Llama for scalable image generation. arXiv preprint arXiv:2406.06525, 2024. +[44] Quan Sun, Yufeng Cui, Xiaosong Zhang, Fan Zhang, Qiying Yu, Yueze Wang, Yongming Rao, Jingjing Liu, Tiejun Huang, and Xinlong Wang. Generative multimodal models are in-context learners. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14398-14409, 2024. +[45] Quan Sun, Qiying Yu, Yufeng Cui, Fan Zhang, Xiaosong Zhang, Yueze Wang, Hongcheng Gao, Jingjing Liu, Tiejun Huang, and Xinlong Wang. Generative pretraining in multimodality. arXiv preprint arXiv:2307.05222, 2023. +[46] Chameleon Team. Chameleon: Mixed-modal early-fusion foundation models. arXiv preprint arXiv:2405.09818, 2024. +[47] Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Riviere, Mihir Sanjay Kale, Juliette Love, et al. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295, 2024. + +[48] Keyu Tian, Yi Jiang, Zehuan Yuan, Bingyue Peng, and Liwei Wang. Visual autoregressive modeling: Scalable image generation via next-scale prediction. arXiv preprint arXiv:2404.02905, 2024. +[49] Shengbang Tong, Ellis Brown, Penghao Wu, Sanghyun Woo, Manoj Middepogu, Sai Charitha Akula, Jihan Yang, Shusheng Yang, Adithya Iyer, Xichen Pan, et al. Cambrian-1: A fully open, vision-centric exploration of multimodal llms. arXiv preprint arXiv:2406.16860, 2024. +[50] Shengbang Tong, David Fan, Jiachen Zhu, Yunyang Xiong, Xinlei Chen, Koustuv Sinha, Michael Rabbat, Yann LeCun, Saining Xie, and Zhuang Liu. Metamorph: Multimodal understanding and generation via instruction tuning. arXiv preprint arXiv:2412.14164, 2024. +[51] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Roziere, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023. +[52] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Jasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. +[53] Aaron Van Den Oord, Oriol Vinyals, et al. Neural discrete representation learning. Advances in neural information processing systems, 30, 2017. +[54] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. +[55] Guangzhi Wang, Yixiao Ge, Xiaohan Ding, Mohan Kankanhalli, and Ying Shan. What makes for good visual tokenizers for large language models? arXiv preprint arXiv:2305.12223, 2023. +[56] Xinlong Wang, Xiaosong Zhang, Zhengxiong Luo, Quan Sun, Yufeng Cui, Jinsheng Wang, Fan Zhang, Yueze Wang, Zhen Li, Qiying Yu, et al. Emu3: Next-token prediction is all you need. arXiv preprint arXiv:2409.18869, 2024. +[57] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems, 35:24824-24837, 2022. +[58] Chengyue Wu, Xiaokang Chen, Zhiyu Wu, Yiyang Ma, Xingchao Liu, Zizheng Pan, Wen Liu, Zhenda Xie, Xingkai Yu, Chong Ruan, et al. Janus: Decoupling visual encoding for unified multimodal understanding and generation. arXiv preprint arXiv:2410.13848, 2024. +[59] Junfeng Wu, Yi Jiang, Chuofan Ma, Yuliang Liu, Hengshuang Zhao, Zehuan Yuan, Song Bai, and Xiang Bai. Liquid: Language models are scalable and unified multi-modal generators. arXiv preprint arXiv:2412.04332, 2024. +[60] Shengqiong Wu, Hao Fei, Leigang Qu, Wei Ji, and Tat-Seng Chua. Next-gpt: Any-to-any multimodal llm. arXiv preprint arXiv:2309.05519, 2023. +[61] Yecheng Wu, Zhuoyang Zhang, Junyu Chen, Haotian Tang, Dacheng Li, Yunhao Fang, Ligeng Zhu, Enze Xie, Hongxu Yin, Li Yi, et al. Vila-u: a unified foundation model integrating visual understanding and generation. arXiv preprint arXiv:2409.04429, 2024. +[62] Jinheng Xie, Weijia Mao, Zechen Bai, David Junhao Zhang, Weihao Wang, Kevin Qinghong Lin, Yuchao Gu, Zhijie Chen, Zhenheng Yang, and Mike Zheng Shou. Show-o: One single transformer to unify multimodal understanding and generation. arXiv preprint arXiv:2408.12528, 2024. +[63] Jingfeng Yao, Bin Yang, and Xinggang Wang. Reconstruction vs. generation: Taming optimization dilemma in latent diffusion models. arXiv preprint arXiv:2501.01423, 2025. +[64] Shukang Yin, Chaoyou Fu, Sirui Zhao, Ke Li, Xing Sun, Tong Xu, and Enhong Chen. A survey on multimodal large language models. arXiv preprint arXiv:2306.13549, 2023. + +[65] Jiahui Yu, Xin Li, Jing Yu Koh, Han Zhang, Ruoming Pang, James Qin, Alexander Ku, Yuanzhong Xu, Jason Baldridge, and Yonghui Wu. Vector-quantized image modeling with improved vqgan. arXiv preprint arXiv:2110.04627, 2021. +[66] Lijun Yu, Yong Cheng, Kihyuk Sohn, José Lezama, Han Zhang, Huiwen Chang, Alexander G Hauptmann, Ming-Hsuan Yang, Yuan Hao, Irfan Essa, et al. Magvit: Masked generative video transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10459-10469, 2023. +[67] Lijun Yu, José Lezama, Nitesh B Gundavarapu, Luca Versari, Kihyuk Sohn, David Minnen, Yong Cheng, Vighnesh Birodkar, Agrim Gupta, Xiuye Gu, et al. Language model beats diffusion-tokenizer is key to visual generation. arXiv preprint arXiv:2310.05737, 2023. +[68] Lili Yu, Bowen Shi, Ramakanth Pasunuru, Benjamin Muller, Olga Golovneva, Tianlu Wang, Arun Babu, Binh Tang, Brian Karrer, Shelly Sheynin, et al. Scaling autoregressive multi-modal models: Pretraining and instruction tuning. arXiv preprint arXiv:2309.02591, 2(3), 2023. +[69] Qihang Yu, Mark Weber, Xueqing Deng, Xiaohui Shen, Daniel Cremers, and Liang-Chieh Chen. An image is worth 32 tokens for reconstruction and generation. Advances in Neural Information Processing Systems, 37:128940-128966, 2024. +[70] Weihao Yu, Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Zicheng Liu, Xinchao Wang, and Lijuan Wang. Mm-vet: Evaluating large multimodal models for integrated capabilities. arXiv preprint arXiv:2308.02490, 2023. +[71] Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. Sigmoid loss for language image pre-training. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11975–11986, 2023. +[72] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 586-595, 2018. +[73] Chunting Zhou, Lili Yu, Arun Babu, Kushal Tirumala, Michihiro Yasunaga, Leonid Shamis, Jacob Kahn, Xuezhe Ma, Luke Zettlemoyer, and Omer Levy. Transfusion: Predict the next token and diffuse images with one multi-modal model. arXiv preprint arXiv:2408.11039, 2024. +[74] Lei Zhu, Fangyun Wei, Yanye Lu, and Dong Chen. Scaling the codebook size of vqgan to 100,000 with a utilization rate of $99\%$ . arXiv preprint arXiv:2406.11837, 2024. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes]. + +Justification: We have included the motivation, empirical findings, technical innovations, and major achievements of our work in the abstract and introduction. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: Please see 'Limitations and Conclusion' section. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: This paper does not include theoretical results. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: We have included the implementation details of our tokenizer and MLLM (such as training data, hyperparameter configurations, testing framework, etc) in the 'Experiments' part. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: Most code and data for this paper are open-source, except the unified MLLM training data, which includes some internal, non-public data. However, our main focus - tokenizer training - uses only publicly available data. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: Please see our code for the full set of hyperparameter configurations. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [No] + +Justification: We mainly evaluate our methods using ImageNet FID and zero-shot accuracy, metrics known for low variance. Following prior work, we omit error bars in our experiments. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. + +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: It takes roughly 50 hours with the equivalent computing power of 256 A100 GPUs to train the tokenizer. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: I have read and confirmed that this paper complies with the NeurIPS Code of Ethics. + +Guidelines: + +The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: Please see Appendix. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. + +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [No] + +Justification: We will add safeguards in our future release. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We strictly followed the licenses to use other assets (like DataComp) with credits. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URI. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. + +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: This paper does not release new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. + +We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: The core method development in this research does not involve LLMs as any important, original, or non-standard components. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# A Attention Projection Modules + +Figure 6 illustrates the adaptations we made to the tradition MHA module, which enables channel compression and expansion in token factorization. + +![](images/b328deb3bbde08dc3d61670755469c8ab73cb3e926e54a645e099e9b951f739f.jpg) +Channel Compression Block + +![](images/19e71bb401230a41d2981c126a0ee85491ba0778e220f5f22159dfce56886cd5.jpg) +Channel Expansion Block +Figure 6: Modified attention blocks for factorization. Modules in yellow indicate a change in the number of channels. $C$ and $c$ stand for the channel dimension, $h$ is the number of heads in the multi-head attention module. $C = h \times c$ . + +# B More Generation Results + +We provide the results on GenAI-Bench in Table 10 and Table 11. UniTok consistently delivers superior generation performance on this benchmark. + +Table 10: Comparison with other visual generation methods on GenAI-Bench (basic prompts). + +
MethodType#Training ImagesAttribute↑Scene↑Relation↑Overall↑
SpatialActionPart
SD v2.1 [39]Diffusion2000M0.800.790.760.770.800.78
SD-XL [36]Diffusion2000M0.840.840.820.830.890.83
Midjourney v6Diffusion-0.880.870.870.870.910.87
DALL-E 3 [2]Diffusion-0.910.900.920.890.910.90
Show-o [62]Discrete Diff.36M0.720.720.700.700.750.70
LWM [27]Autoregressive-0.630.620.650.630.700.63
VILA-U [61]Autoregressive15M0.780.780.770.780.790.76
Liquid [59]Autoregressive30M0.840.860.810.830.910.83
UniTokAutoregressive30M0.850.870.860.860.890.85
+ +Table 11: Comparison with other visual generation methods on GenAI-Bench (advanced prompts). + +
MethodType#Training ImagesCount↑Differ↑Compare↑Logical↑Overall↑
NegateUniversal
SD v2.1 [39]Diffusion2000M0.680.700.680.540.640.62
SD-XL [36]Diffusion2000M0.710.730.690.500.660.63
Midjourney v6Diffusion-0.780.780.790.500.760.69
DALL-E 3 [2]Diffusion-0.820.780.820.480.800.70
Show-o [62]Discrete Diff.36M0.700.620.710.510.650.60
LWM [27]Autoregressive-0.590.580.540.490.520.53
VILA-U [61]Autoregressive15M0.700.710.740.530.660.64
Liquid [59]Autoregressive30M0.760.730.740.460.740.65
UniTokAutoregressive30M0.760.760.790.460.730.67
+ +# C Impact Statement + +This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here. \ No newline at end of file diff --git a/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/images.zip b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..e879c35d9c10251aff398f2caa6b35f458d2aed9 --- /dev/null +++ b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3d9b8f439c6f1616659a4e86e92e1a5cf05bde242c46bc181bc1805e97f28d7 +size 839514 diff --git a/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/layout.json b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..a3686a9ff5b3ec81b8ef89e3decb498256e3f72c --- /dev/null +++ b/NeurIPS/2025/UniTok_ a Unified Tokenizer for Visual Generation and Understanding/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:680b664f51f56b661a63578cba7430bfd918e1630826d6c5e94a5b75255b8976 +size 668828 diff --git a/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/a3ce51a5-b568-4eed-ad05-4d7fa41aa97c_content_list.json b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/a3ce51a5-b568-4eed-ad05-4d7fa41aa97c_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..1319149e5c68f150ab59c6a1117973d88bee7bbe --- /dev/null +++ b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/a3ce51a5-b568-4eed-ad05-4d7fa41aa97c_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85e73f6697d47b5d459b49a2b119a8bd3157617fedf99e028fd0b32707745180 +size 242859 diff --git a/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/a3ce51a5-b568-4eed-ad05-4d7fa41aa97c_model.json b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/a3ce51a5-b568-4eed-ad05-4d7fa41aa97c_model.json new file mode 100644 index 0000000000000000000000000000000000000000..8347c9b733eefc5e0b251c431505fde0c48a809e --- /dev/null +++ b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/a3ce51a5-b568-4eed-ad05-4d7fa41aa97c_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:214beb5f3f5cc6abf38514667fc765267e9da8b482d274a5c970d5dbb75e7127 +size 308360 diff --git a/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/a3ce51a5-b568-4eed-ad05-4d7fa41aa97c_origin.pdf b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/a3ce51a5-b568-4eed-ad05-4d7fa41aa97c_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..5a2743a412cb2dc461e79311e912916b6dd3f9d1 --- /dev/null +++ b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/a3ce51a5-b568-4eed-ad05-4d7fa41aa97c_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70e780125fb5766a1bbd2ae9340a1e2686e1fd76de32bdd2904e7fea472af00e +size 4313131 diff --git a/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/full.md b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/full.md new file mode 100644 index 0000000000000000000000000000000000000000..4fdd657943bec174dfb66c90e17b945a65d9ad94 --- /dev/null +++ b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/full.md @@ -0,0 +1,1235 @@ +# UniTraj: Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces + +Yuanshao Zhu $^{1,2,3,*}$ , James Jianqiao Yu $^{4,\dagger}$ , Xiangyu Zhao $^{2,\dagger}$ , Xun Zhou $^{4}$ , Liang Han $^{4}$ , Xuetao Wei $^{1}$ , Yuxuan Liang $^{3,\dagger}$ + +$^{1}$ Southern University of Science and Technology, $^{2}$ City University of Hong Kong + +3 The Hong Kong University of Science and Technology (Guangzhou) + +$^{4}$ Harbin Institute of Technology, Shenzhen + +yuanshao@ieee.org, jqyu@ieee.org, xianzhao@cityu.edu.hk + +zhouxun2023@hit.edu.cn, han.liang@hit.edu.cn + +weixt@sustech.edu.cn, yuxliang@outlook.com + +# Abstract + +Building a universal trajectory foundation model is a promising solution to address the limitations of existing trajectory modeling approaches, such as task specificity, regional dependency, and data sensitivity. Despite its potential, data preparation, pre-training strategy development, and architectural design present significant challenges in constructing this model. Therefore, we introduce UniTraj, a Universal Trajectory foundation model that aims to address these limitations through three key innovations. First, we construct WorldTrace, an unprecedented dataset of 2.45 million trajectories with billions of GPS points spanning 70 countries, providing the diverse geographic coverage essential for region-independent modeling. Second, we develop novel pre-training strategies—Adaptive Trajectory Resampling and Self-supervised Trajectory Masking—that enable robust learning from heterogeneous trajectory data with varying sampling rates and quality. Finally, we tailor a flexible model architecture to accommodate a variety of trajectory tasks, effectively capturing complex movement patterns to support broad applicability. Extensive experiments across multiple tasks and real-world datasets demonstrate that UniTraj consistently outperforms existing methods, exhibiting superior scalability, adaptability, and generalization, with WorldTrace serving as an ideal yet non-exclusive training resource. The implementation codes and full dataset are available at https://github.com/Yasoz/UniTraj. + +# 1 Introduction + +Trajectory data, as the digital footprints of human movement, is becoming a fundamental data source for understanding mobility patterns and transforming urban intelligence [3]. These spatiotemporal sequences unlock critical insights across diverse applications: from optimizing transportation networks that alleviate congestion in megacities, enhancing location-based services that personalize user experiences [18, 2], to powering logistics systems that determine the efficiency of global supply chains [12, 24, 36]. Despite their significance, extracting meaningful patterns (from statistical methods to deep learning [25]) of trajectory data presents profound challenges due to their inherent complexity, varying lengths, irregular sampling rates, and region-specific characteristics. + +As trajectory data continues to expand exponentially, three critical limitations in current approaches have become increasingly apparent: (1) Task Specificity: Current approaches are typically designed + +![](images/fe0e294753ec471d040ffa8e1f650a1f65d696110dfbd59e59407c7063636aca.jpg) +Figure 1: Overview of this work, we propose a trajectory foundation model and also collect a worldwide trajectory dataset. The pre-trained UniTraj can be used as a backbone while adapters are trained for different regions and tasks. + +for single-purpose applications, limiting their generalizability and requiring substantial re-engineering for new tasks. (2) Regional Dependency: Many models are developed and trained on data from specific geographic regions, making them ineffective when applied to different locations with distinct mobility patterns and infrastructure. (3) Data Sensitivity: Real-world trajectory data often contains noise, irregular sampling, or missing entries, making models highly sensitive to data quality and necessitating extensive preprocessing, which reduces robustness. These limitations point to a fundamental gap: the absence of a universal foundation model capable of operating across diverse tasks, geographic regions, and data quality levels. While foundation models have revolutionized NLP [1, 7] and CV [9, 13] by providing versatile, pre-trained architectures that generalize across domains, trajectory analysis has not yet benefited from this paradigm shift. Creating this model would transform trajectory intelligence from its current fragmented state to a unified approach with significantly enhanced generalization capabilities [27, 39]. + +However, building such a model presents key challenges: (1) Data preparation: The first challenge is to prepare a sufficiently diverse trajectory dataset that spans different geographic regions and appropriate sampling rates. Existing datasets lack sufficient geographic diversity and scale, also limited by proprietary restrictions and collection costs. This data scarcity severely hampers model generalizability and cross-regional research efforts on a global scale. (2) Pre-training Strategy: Developing robust and scalable pre-training strategies is another challenge. Real-world trajectory data exhibits heterogeneous quality with noising, varying sampling rates, and missing points. Effective pre-training must accommodate these inconsistencies while learning robust representations that transfer across diverse contexts. (3) Model Design: The last challenge involves selecting and tailoring an effective model architecture. A universal foundation model requires an architecture that balances adaptability across tasks with computational efficiency, capturing complex spatio-temporal dependencies without overfitting to specific regional information or trajectory patterns. + +To address these challenges, we introduce Universal Trajectory foundation model (UniTraj) supported by three key innovations. As shown in Figure 1, we firstly construct WorldTrace, the first trajectory dataset with large-scale, high-quality, and global distribution, which provides the essential foundation for region-agnostic modeling. Then, we design several novel pre-training strategies—adaptive resampling and self-supervised masking—that enable robust learning from heterogeneous trajectory data with varying sampling rates and quality, bridging the gap between regional variations and inconsistent data. Finally, we design a flexible model architecture that captures complex spatio-temporal dependencies while adapting to diverse trajectory tasks, creating a versatile backbone for trajectory modeling. Collectively, UniTraj achieves task-adaptive, region-independent, and data quality resilience, delivering a scalable and efficient solution for trajectory analysis applications. In summary, our research makes the following key contributions: + +- We introduce WorldTrace, a pioneering trajectory dataset spanning 70 countries with 2.45 million trajectories and billions of GPS points. Its unprecedented global diversity and quality overcome the limitations of existing region-specific datasets, offering a comprehensive and open groundwork for facilitating trajectory modeling research. +- We propose UniTraj, trained on WorldTrace and equipped with novel pre-training and masking strategies that effectively capture complex spatio-temporal dependencies. This model significantly + +enhances generalizability across tasks and geographical contexts, adapts to the heterogeneity of data, and provides a scalable and efficient solution for a wide range of trajectory analysis applications. + +- We demonstrated the effectiveness of UniTraj through comprehensive experiments on multiple trajectory analysis tasks. The results show significantly improved performance of zero-shot and fine-tuning settings, confirming its potential as a versatile backbone for diverse trajectory modeling tasks, performing optimally when trained on diverse and high-quality datasets like WorldTrace. + +# 2 Related Work + +Trajectory Datasets. Trajectory datasets are foundational for advancing mobility research, yet existing collections vary (geographic coverage, data quality, and granularity) considerably in their utility and limitations. Well-known datasets, such as GeoLife [46], collected over five years by 182 users, has contributed significantly to fields like travel mode detection [5] and traffic flow analysis [19]. However, its limited geographic coverage and participant diversity restrict its generalizability. Ehicle-focused datasets such as Porto [28], T-drive [42], and Electric Vehicle Data [34] provide valuable mobility insights but frequently exhibit low or inconsistent sampling rates that complicate analysis. Synthetic alternatives like SynMob [49] offer uniform sampling but lack the regional diversity and quality variations essential for robust model development. Proprietary collections including GAIA [8] and Grab-Posisi [15] contain high-quality data but remain largely inaccessible due to regulatory and commercial constraints. These limitations—geographic constraints, sampling irregularities, and access restrictions—collectively impede the development of universal trajectory models. The community urgently needs comprehensive, openly accessible datasets with global coverage to advance trajectory modeling research and enable effective model generalization. + +Foundation Models. The success of foundation models in natural language processing and computer vision, exemplified by BERT [7], GPT-3 [1], and Vision Transformers [9], has demonstrated how large-scale pretraining can yield highly generalizable representations across diverse tasks. This paradigm has recently extended to time series and spatio-temporal domains, with models like TST [44], TimeFM [6], and Moirai [38] leveraging Transformer architectures to capture temporal dependencies. In spatio-temporal prediction specifically, approaches such as UniST [43], Opencity [20], and ClimaX [29] have shown promise in traffic flow and climate modeling, respectively. However, these models often remain tailored to specific tasks or regions, limiting their broader applicability. Trajectory-specific models like TrajGDM [4], BigCity [41], and TrajFM [23] address certain tasks but lack the scalability and robustness needed for cross-task or cross-region applications. While unsupervised learning approaches like MAE [13] and TimeFM [6] have proven effective for images and time series, trajectory modeling presents unique challenges that demand greater flexibility to accommodate diverse mobility patterns, geographic contexts, and sampling characteristics without extensive task-specific modifications. To summary, there remains a pressing need for trajectory foundation models that unify multiple tasks within a single framework, providing robust, transferable representations that generalize across tasks and handle data variability while maintaining computational efficiency. + +# 3 Preliminary + +Definition 1: (Trajectory). A trajectory represents the sequential record of movement through space over time. Formally, a trajectory $\pmb{\tau}$ of length $n$ is expressed as a sequence of continuously sampled GPS points: $\pmb{\tau} = \{p_1, p_2, \dots, p_n\}$ , where each point $p_i = \langle \mathrm{lng}_i, \mathrm{lat}_i, t_i \rangle$ denotes the spatial coordinates (longitude and latitude) at timestamp $t_i$ . The sampling interval between consecutive points is defined as $\Delta t_i = t_i - t_{i-1}$ , for $i = 2, \dots, n$ . These intervals may be uniform within or across trajectories, or vary significantly based on data collection methods and environmental factors. + +Definition 2: (Trajectory Dataset). A trajectory dataset comprises multiple trajectories, each capturing the movement of an object over time. Formally, it is given by $\mathcal{D} = \{\tau_1,\tau_2,\dots ,\tau_{|\mathcal{D}|}\}$ , where $|\mathcal{D}|$ denotes the total number of trajectories in the dataset. These collections may vary in geographic coverage, sampling rates, and quality depending on their source and application scenario. + +Problem Statement: (Universal Trajectory Modeling). Building upon the above definitions, this study aims to develop a universal foundation model for trajectory data that can adapt to diverse tasks and geographic contexts while accommodating heterogeneous data sources. Formally, consider a set + +of trajectories $\mathcal{D} = \{\pmb{\tau}_i\}_{i=1}^{|\mathcal{D}|}$ , where each $\pmb{\tau}_i$ is defined as in Definition 1. The goal is: + +$$ +F: \boldsymbol {\tau} \mapsto \mathbf {h} \in \mathbb {R} ^ {d}, \tag {1} +$$ + +which projects a raw trajectory $\tau$ into a d-dimensional representation $\mathbf{h}$ . This function $F(\cdot)$ must capture intrinsic spatio-temporal patterns within trajectories while demonstrating three key capabilities: (1) task adaptability across various applications including classification, prediction, and anomaly detection; (2) region independence, enabling zero-shot generalization to different geographic contexts; and (3) resilience to data quality variations, effectively handling inconsistent sampling rates, varying trajectory lengths, and noise without extensive preprocessing or task-specific re-engineering. + +# 4 Methodology + +In this section, we describe the methodology for developing UniTraj, addressing the key challenges outlined in the introduction. Our approach is structured around answering three fundamental questions: (1) How to construct a diverse and high-quality trajectory dataset that enables cross-regional generalization? (2) How to develop robust and scalable pre-training strategies that accommodate heterogeneous trajectory data? and (3) How to design an effective model architecture that adapts across diverse trajectory tasks? + +# 4.1 WorldTrace Dataset Construction + +To address the data preparation challenge, we introduce WorldTrace, a large-scale, globally distributed trajectory dataset specifically designed to support universal trajectory modeling. Below, we introduce our data acquisition process, preprocessing pipeline, and key dataset statistics, demonstrating WorldTrace's suitability as a foundation for developing robust and generalizable trajectory foundation models. Detailed information on processing, analysis, and copyright can be found in Appendix A. The full dataset is available on the Hugging Face3 and ModelScope4 platforms. + +Data Acquisition. We sourced raw trajectory data from OpenStreetMap (OSM) GPS traces [30], focusing on contributions uploaded between 2021-2023 and tagged for motorized movement to ensure data currency and relevance. This approach minimizes device heterogeneity and outdated data impacts. All collected data is stored in the standardized GPX format (an XML schema), containing latitude, longitude, timestamps, and optional metadata, providing a uniform structure that simplifies parsing and preprocessing. During acquisition, we implemented preliminary filtering to exclude trajectories with obvious anomalies such as coordinates outside valid ranges or duplicate entries. + +Table 1: Summary statistics of WorldTrace. + +
StatisticValue
Number of Trajectories2.45 Million
Total Raw Points8.8 Billion
Geographical Covered70 Countries
Sampling Interval1 sec (normalized)
Time Span08/2021 – 12/2023
Avg. Duration6 min
Avg. Distance5.73 km
Avg. Speed48.0 km/h
+ +Data Preprocessing. Our preprocessing pipeline balances preserving authentic movement patterns with removing noise and inconsistencies, which includes the following steps: + +1. Normalization: The original data had a high sampling frequency of up to $10\mathrm{Hz}$ , causing redundancy and increased storage demands. We therefore resampled trajectories to a uniform rate of one point per second (1 Hz), preserving essential motion details while reducing data size. In addition, by standardizing trajectories to 1s/point, we can perform better resampling during subsequent model training to accommodate frequency inconsistent issues. +2. Filtering: We discarded trajectories with fewer than 32 points or covering distances below 100 meters, as such short trips often lack meaningful patterns and introduce noise. Following established practices [5], we also removed trajectories containing implausible speeds (e.g., exceeding $120\mathrm{km / h}$ ), typically caused by GPS errors or anomalies. We also apply distance- and loop-based outlier detection to identify and remove trajectories that deviate markedly from the expected path. + +3. Calibration: Given that GPS signals can suffer from errors due to building obstructions, multipath effects, and receiver noise [14], we applied map-matching techniques [40] to align raw GPS points with underlying road networks. This calibration step is common practice in trajectory data processing and is widely used in data collection and related research to correct positioning errors [8, 37], improve spatial accuracy, and make trajectory analysis more reliable. + +Data Analysis and Statistics. After acquiring and preprocessing the raw trajectory data, we conducted an in-depth analysis to examine the characteristics and quality of the WorldTrace dataset. Table 1 summarizes key statistics of WorldTrace. Overall, the dataset contains approximately 2.45 million trajectories and 8.8 billion raw GPS points, covering 70 countries across all inhabited continents. The data spans August 2021 to December 2023, with an average trajectory duration of about six minutes (with normalized to a 1-second sampling interval), an average distance of $5.73\mathrm{km}$ and an average speed of $48.0~\mathrm{km / h}$ . The number of points per trajectory ranges from 32 to more than 600, averaging around 358 points. Collectively, these attributes confirm WorldTrace's suitability for developing universal trajectory models that can address varied spatiotemporal patterns and broad geographical contexts. + +# 4.2 Pre-Training Strategies + +Having established a diverse trajectory dataset, we develop robust pre-training strategies to learn robust and transferable spatio-temporal representations. Rather than relying on task-specific supervision, we leverage unannotated trajectory data to capture both local and global movement patterns. To address the heterogeneous data quality challenges (varying sampling rates, differing lengths, and missing points) posed by real-world trajectory, we propose two strategies tailored specifically for trajectory: Adaptive Trajectory Resampling and Self-supervised Trajectory Masking. Due to space limitations, more details and analysis about pre-training strategies can be found in Appendix B. + +Adaptive Trajectory Resampling (ATR). Real-world trajectory data often exhibits inconsistent sampling intervals and lengths due to diverse collection standards, device capabilities, and user behaviors. Such discrepancies challenge model generalization, as features learned under one sampling regime may not transfer to another. Inspired by common practice of multi-scale representation learning, ATR strategy addresses these issues through two complementary components: + +- Dynamic Multi-Scale Resampling. This approach dynamically adjusts sampling frequency based on trajectory length, ensuring shorter trajectories retain fine-grained detail while longer ones are efficiently compressed. Specifically, we design a logarithmic resampling function $R(n)$ to implement this strategy: + +$$ +R (n) = R _ {\min } + \left(1 - R _ {\min }\right) \cdot \frac {\ln \left(n - n _ {\min } + 1\right)}{\ln \left(n _ {\max } - n _ {\min } + 1\right)}, \tag {2} +$$ + +where $n_{\mathrm{min}}$ and $n_{\mathrm{max}}$ define thresholds for trajectory lengths considered "short" or "long", and $R_{\mathrm{min}}$ is the minimum sampling ratio. This logarithmic function creates a smooth transition in sampling density ( $n_{\mathrm{min}} < n < n_{\mathrm{max}}$ ), providing three key benefits: (1) preserving critical motion patterns across trajectory lengths, (2) reducing overfitting by limiting redundancy in densely sampled data, and (3) exposing the model to diverse temporal resolutions during training. + +- Interval Consistent Resampling. This component focuses on the sampling rate, imposing a uniform time interval $\Delta t$ between consecutive points within each track: + +$$ +\boldsymbol {\tau} ^ {\prime} = \left\{p _ {k _ {j}} \mid k _ {j} = 1 + (j - 1) \Delta t, j = 1, 2, \dots , m \right\}. \tag {3} +$$ + +By ensuring consistent spacing, this approach simplifies downstream modeling by creating regular temporal structures that make time-dependent patterns easier to learn, while mitigating complications from missing data or irregular sampling. + +Combining these approaches, ATR enables models to learn representations that generalize across varying sampling rates and trajectory lengths (analysis presented in Appendix B.1), which is a critical capability for universal trajectory modeling. + +Self-supervised Trajectory Masking (STM). Trajectory data is often incomplete or irregular due to device limitations, communication failures, and environmental factors. Motivated by masked auto-encoding methods from visual and language models, we introduce a tailored self-supervised + +trajectory masking strategy, in which part of the input trajectory is hidden, forcing the model to infer local and global dependencies. Given a resampled trajectory $\tau' = \{p_1, p_2, \ldots, p_n\}$ , we define a masking function $\mathcal{M}(\tau', r)$ that replaces a fraction $r$ of points with a [MASK] tokens: + +$$ +\tilde {\tau} = \mathcal {M} \left(\tau^ {\prime}, r\right) = \left\{p _ {1}, \dots , \left[ \mathrm {M A S K} \right] _ {i \in \mathbf {I}}, \dots , p _ {n} \right\}, \tag {4} +$$ + +where $\mathbf{I} \subseteq \{1, 2, \dots, n\}$ and $r = |\mathbf{I}| / n$ . To comprehensively address different data incompleteness scenarios, (see Appendix B.2 for details) we employ four complementary masking strategies: + +- Random Masking: Uniformly samples points to mask $(\mathbf{I}_{\mathrm{rand}} \sim \mathrm{Uniform}(\{1,2,\dots,n\}))$ , forcing the model to infer both short-range and long-range dependencies. By forcing the reconstruction of randomly omitted points, the approach enhances the model's ability to generalize to diverse gaps. +- Block Masking: Conceals consecutive points $(\mathbf{I}_{\mathrm{block}} = \{k, k + 1, \dots, k + b - 1\})$ to simulate sensor failures, encouraging reconstruction of continuous segments. This approach prompts the model to utilize surrounding context for reconstructing entire missing segments, encouraging it to capture longer-range dependencies. +- Key Points Masking: Identifies and masks critical turning points using the Ramer-Douglas-Peucker algorithm [10]: $\mathbf{I}_{\mathrm{key}} = \{p_k \mid d_{\max}(p_k, \overline{p_1 p_n}) > \epsilon\}$ ( $d_{\max}(\cdot)$ is the maximum perpendicular distance between point $p_k$ and line $\overline{p_1 p_n}$ , $\epsilon$ is the threshold). This focuses learning on structurally significant points (sharp turns or notable speed changes) that define the trajectory's shape. +- Last N Masking: Masks final trajectory points $(\mathbf{I}_{\mathrm{last}} = \{n - N + 1, n - N + 2, \dots, n\})$ . This setting emulates real-world forecasting tasks where future data is unavailable and must be inferred from historical observations, making it particularly effective for prediction scenarios. + +# 4.3 Universal Trajectory Modeling + +To effectively leverage the diverse trajectory data and robust pre-training strategies described above, we need to design a model architecture that can capture local and global patterns while freeing itself from regional and task-specific constraints. Our motivation for adopting this structure design is as follows: (1) We need an architecture that can be generalized to a wide range of tasks without extensive restructuring. Therefore, we adopted minimal trajectory data information (latitude, longitude, and timestamp) and ignored other region-bound information such as POI and geographical context. (2) This structure uses the reconstruction of missing points in partial observations as a proxy task and can inherit the masking strategy introduced earlier. (3) The separation of encoding and decoding enables flexible application to various downstream tasks through transfer learning or fine-tuning. More details about the architecture and parameters can be found in Appendix C. + +Building Trajectory Embedding. Effective trajectory modeling requires transforming raw spatial and temporal data into structured embeddings that capture both local and global movement patterns. To ensure the generality of the model, we only use the latitude, longitude, and time information of the trajectory, and embed the spatial and temporal components separately to form a unified representation. For the spatial component, we normalize trajectory and map them into a $d$ -dimensional space using a 1D convolutional, yielding a spatial embedding $h_i^s$ . Similarly, the temporal component, based on the time intervals $\Delta t_i$ , is embedded into the same $d$ -dimensional space via a linear layer, resulting in a temporal embedding $h_i^t$ . This decoupled design enables the model to effectively learn relative movement and temporal dependencies, and also cope with situations where one component may be absent. Beyond point-wise embedding, modeling the relationships between trajectory points is critical for understanding movement patterns. We adopt Rotary Position Encoding (RoPE) [32], which applies rotational transformations in the embedding space. The advantage of RoPE is its ability to preserve relative positional relationships while allowing for flexible encoding of spatial-temporal patterns across varying trajectory scales. + +Adaptive Representation Learning. Based on the trajectory embeddings, we use a encoder-decoder architecture with RoPE-enhanced attention mechanism to adaptively learn a general representation of trajectories. The encoder processes the visible points in a trajectory those that are unmasked during training. Given a masked trajectory $\tilde{\tau} = \{p_1,\dots ,[\mathrm{MASK}]_{i\in \mathbf{I}},\dots ,p_n\}$ , we first extract the embedding representations of the unmasked points $\mathbf{H} = \{h_1,h_2,\dots ,h_m\}$ (where $m\leq n$ and $i\notin \mathbf{I}$ ) through the embedding steps. The encoder, denoted as $\mathbf{E}_{\theta}$ , processes these visible embeddings to generate latent representations: $z_{\mathrm{enc}} = \mathbf{E}_{\theta}\left(\mathbf{H}\right)$ . The decoder reconstructs masked trajectory points based on the latent embeddings produced by the encoder. It receives the visible embeddings and mask + +Table 2: Performance comparison of UniTraj with trajectory recovery tasks. The results are reported in MAE and RMSE with meters. Bold denotes the best results and underline denotes the second-best results. + +
MethodsWorldTraceChengduXi'anGeoLifeGrab-PosisiPorto
MAERMSEMAERMSEMAERMSEMAERMSEMAERMSEMAERMSE
Linear427.68516.15205.74258.52176.49220.87196.85249.76507.41617.28396.61482.39
DHTR220.35302.4775.1998.6862.8583.4380.04168.25351.20415.16194.37232.59
Transformer130.82147.6255.2362.8545.8551.9694.68113.77136.58163.29104.36126.96
DeepMove51.1662.2929.3239.0227.3135.6786.38107.78126.93168.07136.66174.96
TrajBERT58.1370.1426.4833.8319.4525.1334.5343.24112.68136.2478.7799.23
TrajFM47.6458.9219.1025.0918.8624.1359.3464.24107.64130.6971.1592.96
UniTraj (zero-shot)10.2213.5611.9820.948.9313.8337.2163.89114.07167.0178.28100.14
Improvement(%)↑78.55↑76.99↑37.28↑16.54↑52.65↑42.69↓7.76↓47.46↓5.97↓27.79↓10.02↓7.72
UniTraj (fine-tune)6.949.676.9210.416.509.9323.2334.7048.9569.2360.1879.76
Improvement(%)↑85.43↑83.59↑63.77↑58.51↑65.54↑58.85↑32.73↑19.75↑54.52↑47.03↑15.42↑14.20
+ +tokens, which are initialized as learnable vectors representing missing positions. The full sequence is created by merging the encoded visible embeddings with the mask tokens, preserving the original structure of the trajectory: + +$$ +\mathbf {z} _ {\mathrm {d e c}} = \operatorname {R e o r d e r} \left(\left\{ \begin{array}{l l} z _ {i} = z _ {\text {e n c}, j} & \text {i f} i = \operatorname {I n d e x} (j), i \notin \mathbf {I} \\ [ \text {M A S K} ] & \text {i f} i \in \mathbf {I} \end{array} \right\}\right), \tag {5} +$$ + +where $z_{\mathrm{enc},j}$ corresponds to the $j$ -th encoder output. The decoder then processes the reordered sequence to predict the missing trajectory points: $\hat{\tau} = \mathrm{Linear}(\mathbf{D}_{\phi}(\mathbf{z}_{\mathrm{dec}}))$ . The model is trained to minimize the reconstruction loss between the predicted and original points at the masked positions: + +$$ +\mathcal {L} = \frac {1}{| \mathbf {I} |} \sum_ {i \in \mathbf {I}} \| f _ {\theta , \phi} (\tilde {\boldsymbol {\tau}}) _ {i} - \boldsymbol {\tau} _ {i} \| ^ {2}, \tag {6} +$$ + +where $f_{\theta ,\phi}(\tilde{\tau})$ represents the encoder-decoder network, and $i$ refers to the masked positions. + +# 5 Experiments + +# 5.1 Experimental Setups + +Datasets. We evaluate UniTraj on six diverse real-world trajectory datasets representing different collection scenarios, quality levels, motion patterns, and geographic regions. These include WorldTrace, Chengdu, Xi'an, GeoLife, Grab-Posisi, and Porto. Detailed summary are provided in Appendix D.1. + +# 5.2 Task Applicability Analysis + +We explore the applicability and generalizability of UniTraj to various data and downstream tasks, e.g., trajectory recovery, prediction, classification, and generation tasks. Due to space constraints, we provide the detailed setup and the results of generation task in Appendix D.2. It is important to clarify that our work aims to develop a general-purpose trajectory foundation model that generalizes across diverse geographic regions without region-specific dependencies, validating its effectiveness as a backbone supporting real-world trajectory applications across geographical contexts. Existing trajectory representation learning methods inherently rely on region-bound information (POIs, road networks, etc.) [16, 22, 26, 48], which contradicts our initial goal of region-independent modeling. UniTraj extracts meaningful representations solely from trajectory points without requiring auxiliary geographic context. Therefore, we deliberately excluded these methods from our baseline comparison as their architectural dependency on regional knowledge fundamentally diverges from our objective of developing a globally deployable model. + +Trajectory Recovery. Table 2 presents a comprehensive comparison of UniTraj against established baselines across six datasets, revealing patterns that illuminate fundamental capabilities in trajectory reconstruction. The performance disparity between UniTraj and previous methods is particularly pronounced in geographically diverse and quality-variable datasets, where it demonstrates substantial resilience to regional variations. In the zero-shot setting, UniTraj achieves remarkable results, confirming it effectively captures transferable spatio-temporal patterns without requiring additional fine-tuning. The performance difference becomes particularly instructive when analyzing low-quality datasets like GeoLife and Grab-Posisi, with their highly irregular sampling intervals and multiple + +travel modes. It demonstrate the effectiveness of our adaptive resampling strategy in handling temporal heterogeneity. The Chengdu and Xi'an datasets reveal another critical aspect of UniTraj's capabilities, models trained on high-quality data exhibit reliable transferability and achieve optimal results even in zero-shot scenarios. When fine-tuned, UniTraj achieves the lowest error scores across all datasets, demonstrating UniTraj's superior generalizability across diverse geographic regions. For instance, on GeoLife, UniTraj's fine-tuned performance (MAE 23.23) reduces error by $32.73\%$ compared to TrajBERT, showcasing its effectiveness with complex travel patterns and lower-quality data. These results validate WorldTrace's potential as a foundation dataset and UniTraj's consistent superiority in trajectory recovery tasks, with substantial improvements through fine-tuning reinforcing its adaptability and robustness. + +Trajectory Prediction. Table 3 shows UniTraj's exceptional performance in trajectory prediction, a different task requiring forward inference rather than reconstruction. The zero-shot results merit particular attention, as they represent the most challenging scenario for trajectory models. On WorldTrace, UniTraj's zero-shot MAE significantly outperforms all baselines, underscoring the model's versatility in capturing universal motion patterns. When fine-tuned, the performance further improves, consistently achieving the best results across all + +Table 3: Performance comparison of UniTraj with trajectory prediction tasks. + +
MethodsWorldTraceChengduGeoLife
MAERMSEMAERMSEMAERMSE
Linear153.12159.65156.85164.58189.02201.34
DHTR146.48151.63123.47129.73180.32187.59
Transformer114.25117.0767.3870.86165.02170.84
DeepMove55.6958.6736.3139.10116.46123.20
TrajBERT80.5786.3664.7368.92113.68121.18
TrajFM75.4581.3277.8280.48121.94128.16
UniTraj (zero-shot)49.8555.0242.7545.93108.35133.60
Improvement(%)↑10.49↑6.22↓17.74↓17.46↑4.69↓10.25
UniTraj (fine-tune)30.1034.4628.7832.4490.97102.88
Improvement(%)↑45.95↑41.27↑20.74↑17.03↑19.98↑15.10
+ +evaluated datasets. This generalization capability stems from our Last-N masking strategy, which explicitly shapes the embedding space to support predictive inference. These results further confirm that UniTraj not only generalizes remarkably well across diverse datasets but also benefits considerably from fine-tuning, making it highly adaptable for real-world applications requiring accurate trajectory predictions. + +Trajectory Classification. Figure 2 presents classification accuracy results that reveal UniTraj's capacity to learn discriminative representations of movement modalities. Notably, even without fine-tuning, UniTraj achieves $71.3\%$ accuracy on GeoLife, outperforming several supervised baselines. This zero-shot performance demonstrates that the pre-trained representations inherently capture transportation mode signatures, where movement modality emerges as a natural organizing principle. On the Grab-Posisi + +![](images/198ee5a090a4aed303318259839f7bf3556fd92a860e4aa6c860e2879039d8d6.jpg) +Figure 2: Performance comparison of classification task with GeoLife and Grab-posisi dataset. + +dataset, which presents additional challenges due to similar motion patterns for mixed travel modes (car and motorcycle). UniTraj achieves $79.3\%$ accuracy after fine-tuning with a substantial improvement over the best baseline. This improvement emphasizes UniTraj's ability to capture subtle kinematic signatures that differentiate travel modes with complex or similar patterns. + +# 5.3 Dataset Study + +This section analyzes the impact of dataset scale, quality, and diversity on model performance of UniTraj, particularly its generalization capability across different data sources. We focus on two main experiments: (1) examining the effect of dataset scale and quality within WorldTrace, with varying data volumes ( $\{0.01, 0.5, 1\}$ millions) and a high-quality (obtained by further removing loops, staying dense trajectories) subset, and (2) assessing UniTraj's adaptability and effectiveness by training it on these datasets beyond WorldTrace, thus showing its potential as a foundation model. + +Effect of Dataset Scale and Quality. Figure 3(a) illustrates the relationship between training data volume and model performance, revealing a phenomenon that goes beyond simple scaling laws. With increasing trajectory count from WorldTrace (from 0.5M to 2.45M), the MAE on the in-domain test set decreases dramatically, showing substantial improvement up to approximately 1M trajectories before beginning to exhibit diminishing returns. The above result indicates that larger datasets enable + +Table 4: Ablation study on different resampling and masking strategies on six datasets. + +
MethodsWorldTraceChengduXi'anGeoLifeGrab-posisiPorto
MAERMSEMAERMSEMAERMSEMAERMSEMAERMSEMAERMSE
w/o Dynamic Multi-scale resampl.426.80482.37192.54272.42157.85223.96499.95671.691933.282504.1693.14119.93
w/o Interval Consistent resampl.21.3024.7612.9820.619.3413.9069.41115.33102.45149.601724.122016.61
w/o Key points masking25.4928.9114.4621.9811.1015.1745.9472.84113.65162.5776.51101.18
w/o Block masking7.7910.479.2215.367.1611.1848.5977.7389.34128.72198.41238.88
UniTraj10.2213.5611.9820.948.9313.8337.2163.89114.07167.0178.28100.14
+ +the model to capture a wider range of spatio-temporal patterns. However, while increasing the dataset size from 1 million to 2.45 million trajectories results in better coverage, the model's MAE slightly increases due to the introduction of more noise in the full dataset. In contrast, training on a high-quality subset of 1 million trajectories, which includes curated, noise-free data, yields more reliable and consistent learning. This highlights the importance of both dataset scale and quality, with quality being especially crucial when data volume is limited. + +![](images/6622c1febeef20eefef516bf41b6b528d355cd7d4315afa4c8aec66f3a06c136.jpg) +(a) Training data volume. + +![](images/16efda25cf3148fc7c45483e077178ce3b74b51c88292d8edb3a8896db939231.jpg) +(b) Training dataset. +Figure 3: The effect of amount of data volume, diversity dataset, and different parameter settings. + +![](images/82f76225e3e062dcbf49c5658aa3893faebf098f4c4feaa587fe0c6e530bf32e.jpg) +(c) Number of Encoders + +![](images/f0a8cb34d258b0750e92bf3f59dd352bb6dc4b6dd2890bf9642b7cc18e4a1d19.jpg) +(d) Mask ratio $(\%)$ . + +Effect of Dataset Diversity. In Figure 3(b), we compare UniTraj's zero-shot performance when trained on WorldTrace and Chengdu (the highest quality dataset available), evaluated across multiple real-world datasets. Models trained on WorldTrace exhibit superior generalization across diverse datasets (e.g., GeoLife and Porto), reflecting the broad geographic and contextual coverage of WorldTrace. Conversely, models trained on Chengdu perform best on datasets with similar density and travel modes, such as Xi'an. However, proprietary datasets like Chengdu, while offering high quality, are not publicly available, limiting their applicability for universal tasks. These results demonstrate UniTraj's robustness and adaptability, validating WorldTrace as an ideal training resource for building a universal trajectory foundation model. At the same time, the findings confirm that UniTraj can effectively leverage other datasets when necessary, further enhancing its versatility. + +# 5.4 Model Study + +We investigate architectural components, parameter settings, and pre-training strategies to assess sensitivity to parameter choices and the contributions of their core components. + +Effect of Parameter Settings. Figure 3(c) Figure 3(d) and presents the results of our parameter sensitivity analysis, examining how the number of encoder blocks and the masking ratio influence model performance. As shown in Figure 3(c), increasing the number of encoder blocks from 2 to 8 significantly reduces MAE, with performance plateauing beyond 8 blocks. This plateau suggests that while deeper architectures can improve model capacity, the benefits diminish without corresponding adjustments in data or hyperparameters [17]. Figure 3(d) demonstrates that a masking ratio of $50\%$ yields the best performance. Low masking ratios (e.g., $5\% -10\%$ ) result in higher MAE due to insufficient training signal, while higher ratios (e.g., $75\%$ ) lead to increased MAE from excessive information loss. A $50\%$ masking ratio strikes a balance, providing the model with a strong training signal without sacrificing the context needed for effective trajectory reconstruction. + +Ablation Study. Table 4 presents an ablation study, showing how different pre-training strategies affect UniTraj's performance across datasets. The performance varies across datasets, indicating the effectiveness and limitations of them depending on the specific data and task scenarios. Dynamic Multi-scale Resampling significantly improves performance across most datasets, especially GeoLife and Grab-Posisi, which have inconsistent sampling intervals and lower data quality. This suggests that dynamic resampling helps the model to adapt to heterogeneous dataset scenarios and to be adaptive for information preservation (see Appendix B.1.1 for more details). The Interval Consistent Resampling has a notable positive effect on datasets with consistent sampling rates, such as Porto + +and WorldTrace. It indicates that the integration of this strategy strategy can effectively separate the temporal sampling pattern from the region, it enhances the generalization of the model to data sets with different sampling rates (analysis presented in Appendix B.1.2). Key Points Masking leads to substantial performance drops on high-quality datasets like Chengdu and Xi'an but appears to offer minimal benefits, or even slight disadvantages, for certain datasets. This finding suggests that adjusting adaptive masking strategies based on trajectory complexity, potentially applying it selectively to trajectories with significant directional changes, while using alternative strategies for smoother paths. Block Masking shows significant effects on GeoLife and Porto, where it helps the model handle low sampling frequencies. However, its impact on other datasets is more inconsistent, suggesting that it introduces an artificial challenge that may increase complexity in high-frequency datasets. (we provide a robustness analysis in Appendix B.2) Overall, the varying impact of UniTraj's pre-training strategies across datasets highlights its adaptability to different tasks and scenarios. While not all of them universally enhance performance, their combined use provides a balanced training strategy, allowing for flexible configuration depending on specific dataset requirements. Fine-tuning further optimizes performance, ensuring stability and robustness across diverse tasks. + +# 6 Conclusion + +In this work, we presented UniTraj, a universal trajectory foundation model designed to overcome the task specificity, regional dependency, and data quality limitations of current approaches. UniTraj acts as a robust backbone that generalizes effectively across diverse tasks and regions. To support its development, we introduced WorldTrace, a high-quality global dataset with 2.45 million trajectories from 70 countries, offering broad geographic coverage, varied sampling rates, and open accessibility. Together, UniTraj and WorldTrace provide a versatile, high-performing foundation for trajectory analysis, paving the new solution for more adaptable and efficient models in trajectory-based research. Future work will focus on expanding the geographic and modal diversity of the WorldTrace dataset to better cover underrepresented regions and non-motorized travel. We also aim to enhance the UniTraj model by integrating contextual information, such as road networks and points of interest, to improve its predictive accuracy and real-world applicability. Further optimizations to the model architecture and pre-training strategies will also be explored to boost performance and efficiency. + +# 7 Acknowledgement + +This work was mainly supported by the National Natural Science Foundation of China under Grant No. 62506097, No. 62402414 and No.62502404. This work is also supported by the Guangdong Basic and Applied Basic Research Foundation (No. 2025A1515011994), Tencent (CCF-Tencent Open Fund, Tencent Rhino-Bird Focused Research Program), Didi (CCF-DiDi GAIA Collaborative Research Funds), Guangzhou Municipal Science and Technology Project (No. 2023A03J0011) and Guangzhou-HKUST(GZ) Joint Funding Program (No. 2024A03J0620), Hong Kong Research Grants Council's Research Impact Fund (No.R1015-23), Research Grants Council's Collaborative Research Fund (No.C1043-24GF), Research Grants Council's General Research Fund (No.11218325), Institute of Digital Medicine of City University of Hong Kong (No.9229503), Huawei (Huawei Innovation Research Program), Tencent (CCF-Tencent Open Fund, Tencent Rhino-Bird Focused Research Program), Alibaba (CCF-Alimama Tech Kangaroo Fund No. 2024002), Ant Group (CCF-Ant Research Fund), Didi (CCF-Didi Gaia Scholars Research Fund), Kuaishou, and Bytedance. + +# References + +[1] T. B. Brown. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. +[2] Y. Chang, E. Tanin, G. Cong, C. S. Jensen, and J. Qi. Trajectory similarity measurement: An efficiency perspective. arXiv preprint arXiv:2311.00960, 2023. +[3] W. Chen, Y. Liang, Y. Zhu, Y. Chang, K. Luo, H. Wen, L. Li, Y. Yu, Q. Wen, C. Chen, et al. Deep learning for trajectory data management and mining: A survey and beyond. arXiv preprint arXiv:2403.14151, 2024. + +[4] C. Chu, H. Zhang, and F. Lu. Trajgdm: A new trajectory foundation model for simulating human mobility. In Proceedings of the 31st ACM International Conference on Advances in Geographic Information Systems, pages 1-2, 2023. +[5] S. Dabiri and K. Heaslip. Inferring transportation modes from GPS trajectories using a convolutional neural network. Transportation research part C: emerging technologies, 86:360-371, 2018. +[6] A. Das, W. Kong, R. Sen, and Y. Zhou. A decoder-only foundation model for time-series forecasting. arXiv preprint arXiv:2310.10688, 2023. +[7] J. Devlin. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. +[8] Didi Chuxing. Gaia open datasets., 2018. +[9] A. Dosovitskiy. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. +[10] D. H. Douglas and T. K. Peucker. Algorithms for the reduction of the number of points required to represent a digitized line or its caricature. Cartographica: the international journal for geographic information and geovisualization, 10(2):112-122, 1973. +[11] J. Feng, Y. Li, C. Zhang, F. Sun, F. Meng, A. Guo, and D. Jin. Deepmove: Predicting human mobility with attentional recurrent networks. In Proceedings of the 2018 world wide web conference, pages 1459-1468, 2018. +[12] C. Guo, B. Yang, J. Hu, and C. Jensen. Learning to route with sparse trajectory sets. In 2018 IEEE 34th International Conference on Data Engineering (ICDE), pages 1073-1084. IEEE, 2018. +[13] K. He, X. Chen, S. Xie, Y. Li, P. Dollár, and R. Girshick. Masked autoencoders are scalable vision learners. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 16000-16009, 2022. +[14] B. Hofmann-Wellenhof, H. Lichtenegger, and E. Wasle. GNSS-global navigation satellite systems: GPS, GLONASS, Galileo, and more. Springer Science & Business Media, 2007. +[15] X. Huang, Y. Yin, S. Lim, G. Wang, B. Hu, J. Varadarajan, S. Zheng, A. Bulusu, and R. Zimmermann. Grab-posisi: An extensive real-life gps trajectory dataset in southeast asia. In Proceedings of the 3rd ACM SIGSPATIAL International Workshop on Prediction of Human Mobility, page 1-10, 2019. +[16] J. Jiang, D. Pan, H. Ren, X. Jiang, C. Li, and J. Wang. Self-supervised trajectory representation learning with temporal regularities and travel semantics. In 2023 IEEE 39th international conference on data engineering (ICDE), pages 843-855. IEEE, 2023. +[17] J. Kaplan, S. McCandlish, T. Henighan, T. B. Brown, B. Chess, R. Child, S. Gray, A. Radford, J. Wu, and D. Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. +[18] H. Lan, J. Xie, Z. Bao, F. Li, W. Tian, F. Wang, S. Wang, and A. Zhang. Vre: a versatile, robust, and economical trajectory data system. Proceedings of the VLDB Endowment, 15(12):3398-3410, 2022. +[19] L. Li, R. Jiang, Z. He, X. M. Chen, and X. Zhou. Trajectory data-based traffic flow studies: A revisit. Transportation Research Part C: Emerging Technologies, 114:225-240, 2020. +[20] Z. Li, L. Xia, L. Shi, Y. Xu, D. Yin, and C. Huang. Opencity: Open spatio-temporal foundation models for traffic prediction. arXiv preprint arXiv:2408.10269, 2024. +[21] Y. Liang, K. Ouyang, Y. Wang, X. Liu, H. Chen, J. Zhang, Y. Zheng, and R. Zimmermann. Trajformer: Efficient trajectory classification with transformers. In Proceedings of the 31st ACM International Conference on Information & Knowledge Management, pages 1229-1237, 2022. + +[22] Y. Lin, H. Wan, S. Guo, J. Hu, C. S. Jensen, and Y. Lin. Pre-training general trajectory embeddings with maximum multi-view entropy coding. IEEE Transactions on Knowledge and Data Engineering, 36(12):9037-9050, 2023. +[23] Y. Lin, T. Wei, Z. Zhou, H. Wen, J. Hu, S. Guo, Y. Lin, and H. Wan. Trajfm: A vehicle trajectory foundation model for region and task transferability. arXiv:2408.15251, 2024. +[24] Y. Lin, Z. Zhou, Y. Liu, H. Lv, H. Wen, T. Li, Y. Li, C. S. Jensen, S. Guo, Y. Lin, et al. Unite: A survey and unified pipeline for pre-training st trajectory embeddings. arXiv e-prints, pages arXiv-2407, 2024. +[25] M. Luca, G. Barlacchi, B. Lepri, and L. Pappalardo. A survey on deep learning for human mobility. ACM Computing Surveys (CSUR), 55(1):1-44, 2021. +[26] Z. Ma, Z. Tu, X. Chen, Y. Zhang, D. Xia, G. Zhou, Y. Chen, Y. Zheng, and J. Gong. More than routing: Joint GPS and route modeling for refine trajectory representation learning. In Proceedings of the ACM Web Conference 2024, pages 3064-3075, 2024. +[27] G. Mai, W. Huang, J. Sun, S. Song, D. Mishra, N. Liu, S. Gao, T. Liu, G. Cong, Y. Hu, et al. On the opportunities and challenges of foundation models for geospatial artificial intelligence. arXiv preprint arXiv:2304.06798, 2023. +[28] W. K. Meghan O'Connell, moreiraMatias. Ecml/pkdd 15: Taxi trajectory prediction (i), 2015. +[29] T. Nguyen, J. Brandstetter, A. Kapoor, J. K. Gupta, and A. Grover. Climax: A foundation model for weather and climate. arXiv preprint arXiv:2301.10343, 2023. +[30] OpenStreetMap Contributors. Openstreetmap, 2024. +[31] J. Si, J. Yang, Y. Xiang, H. Wang, L. Li, R. Zhang, B. Tu, and X. Chen. Trajbert: Bert-based trajectory recovery with spatial-temporal refinement for implicit sparse trajectories. IEEE Transactions on Mobile Computing, 2023. +[32] J. Su, M. Ahmed, Y. Lu, S. Pan, W. Bo, and Y. Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024. +[33] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. +[34] G. Wang, X. Chen, F. Zhang, Y. Wang, and D. Zhang. Experience: Understanding long-term evolving patterns of shared electric vehicle networks. In The 25th Annual international conference on mobile computing and networking, pages 1-12, 2019. +[35] J. Wang, N. Wu, X. Lu, W. X. Zhao, and K. Feng. Deep trajectory recovery with fine-grained calibration using kalman filter. IEEE Transactions on Knowledge and Data Engineering, 33(3):921-934, 2019. +[36] S. Wang, Z. Bao, J. S. Culpepper, and G. Cong. A survey on trajectory data management, analytics, and learning. ACM Computing Surveys (CSUR), 54(2):1-36, 2021. +[37] Z. Wang, K. Fu, and J. Ye. Learning to estimate the travel time. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, page 858-866, London, United Kingdom, 2018. Association for Computing Machinery. +[38] G. Woo, C. Liu, A. Kumar, C. Xiong, S. Savarese, and D. Sahoo. Unified training of universal time series forecasting transformers. arXiv preprint arXiv:2402.02592, 2024. +[39] H. Yan and Y. Li. Generative ai for intelligent transportation systems: Road transportation perspective. ACM Computing Surveys, 2025. +[40] C. Yang and G. Gidofalvi. Fast map matching, an algorithm integrating hidden markov model with precomputation. International Journal of Geographical Information Science, 32(3):547-570, 2018. + +[41] X. Yu, J. Wang, Y. Yang, Q. Huang, and K. Qu. Bigcity: A universal spatiotemporal model for unified trajectory and traffic state data analysis. arXiv preprint arXiv:2412.00953, 2024. +[42] J. Yuan, Y. Zheng, C. Zhang, W. Xie, X. Xie, G. Sun, and Y. Huang. T-drive: Driving directions based on taxi trajectories. In Proceedings of the 18th SIGSPATIAL International Conference on Advances in Geographic Information Systems, GIS '10, page 99-108, New York, NY, USA, 2010. Association for Computing Machinery. +[43] Y. Yuan, J. Ding, J. Feng, D. Jin, and Y. Li. Unist: a prompt-empowered universal model for urban spatio-temporal prediction. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 4095–4106, 2024. +[44] G. Zerveas, S. Jayaraman, D. Patel, A. Bhamidipaty, and C. Eickhoff. A transformer-based framework for multivariate time series representation learning. In Proceedings of the 27th ACM SIGKDD conference on knowledge discovery & data mining, pages 2114-2124, 2021. +[45] P. Zhao, A. Luo, Y. Liu, J. Xu, Z. Li, F. Zhuang, V. S. Sheng, and X. Zhou. Where to go next: A spatio-temporal gated network for next poi recommendation. IEEE Transactions on Knowledge and Data Engineering, 34(5):2512-2524, 2020. +[46] Y. Zheng, H. Fu, X. Xie, W.-Y. Ma, and Q. Li. Geolife GPS trajectory dataset - User Guide, July 2011. +[47] Y. Zheng, L. Zhang, X. Xie, and W.-Y. Ma. Mining interesting locations and travel sequences from gps trajectories. In Proceedings of the 18th international conference on World wide web, pages 791-800, 2009. +[48] S. Zhou, S. Shang, L. Chen, C. S. Jensen, and P. Kalnis. Red: Effective trajectory representation learning with comprehensive information. arXiv preprint arXiv:2411.15096, 2024. +[49] Y. Zhu, Y. Ye, Y. Wu, X. Zhao, and J. J. Yu. Synmob: Creating high-fidelity synthetic GPS trajectory dataset for urban mobility analysis. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023. +[50] Y. Zhu, J. J. Yu, X. Zhao, Q. Liu, Y. Ye, W. Chen, Z. Zhang, X. Wei, and Y. Liang. Controltraj: Controllable trajectory generation with topology-constrained diffusion model. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 4676-4687, 2024. + +# SUPPLEMENTARY MATERIAL + +UNITRAJ: LEARNING A UNIVERSAL TRAJECTORY FOUNDATION MODEL FROM BILLION-SCALE WORLDWIDE TRACES + +TABLE OF CONTENTS + +# A Details of WorldTrace Dataset 15 + +A.1 Data Collection 15 +A.2 Data Processing 16 +A.3 Data Statistics and Analysis 16 +A.4 Data Privacy and Copyright 17 + +# B Pre-training Strategies 18 + +B.1 Adaptive Trajectory Resampling 18 +B.2 Self-supervised Trajectory Masking 21 + +# C Details of UniTraj 24 + +C.1 Overall Architecture 24 +C.2 Input Representation and Embedding 24 +C.3 Adaptive Representation Learning 25 +C.4 Task-Specific Adaptation 26 +C.5 Implementation Details 27 + +# D Experiments Details 27 + +D.1 Datasets 27 +D.2 Tasks Applicability Study Settings 28 +D.3 Dataset Study Settings 30 +D.4 Model Study Settings 30 + +# E More Discussion 30 + +E.1 Limitation 30 +E.2 Broader Impact 31 +E.3 Ethics Issues 31 + +# A Details of WorldTrace Dataset + +In this section, we detail the collection of the dataset, the processing, and provide a detailed analysis of the resulting dataset. + +![](images/f3321d21fd8a59dd766f5c2e21613128fcaeeefb9ac80f4ee4554c64e4882d90.jpg) +Figure 4: The process pipeline of WorldTrace dataset construction. + +# A.1 Data Collection + +Data Source. As shown in Figure 4, the raw data for WorldTrace is sourced from the shared trajectory data platform on OpenStreetMap (OSM) [30]5. This platform, a public sharing project, hosts over 11 million GPS trajectories uploaded by contributors worldwide from 2004 to the present. To ensure data quality and reliability, we specifically targeted contributions tagged for motorized movement to ensure data currency and relevance to modern transportation networks. This approach helps minimize device heterogeneity and avoids outdated data that might not reflect current infrastructure. The raw data is stored in the standardized GPX (GPS Exchange Format), an XML schema designed for exchanging GPS data between applications and web services https://www.topografia.com/GPX/1/1/. Each GPX file contains sequences of trackpoints with the following attributes: + +- Latitude (decimal degrees) +- Longitude (decimal degrees) +- Altitude (decimal numbers) +- Timestamp (ISO 8601 format) +- Optional metadata (version, tags, etc.) + +In addition, while crawling the original trajectory, we also crawled the basic information about the trajectory descriptions, such as the starting point, markers, time, creator, etc., which was saved as a JSON file. + +Collection Process. Prior to integration, our collection pipeline involved the following steps: Our collection pipeline involved the following steps: + +1. API-based Retrieval: We use the OSM API to systematically query and download GPX traces based on selected filters to ensure global coverage. In order not to increase the burden on server providers, we did not use concurrent crawling, and the whole collection process lasted about 6 months, yielding about 4.5 million raw traces. +2. Initial Filtering: During acquisition, we implemented preliminary filtering to exclude trajectories with obvious anomalies such as: Coordinates outside valid ranges (-90° to 90° for latitude, -180° to 180° for longitude); Duplicate or long duration consecutive points; Empty or near-empty traces (fewer than 60 seconds). +3. Format Standardization: All collected data was parsed from the original GPX format and converted to a unified internal format for subsequent processing. + +# A.2 Data Processing + +Our preprocessing pipeline was designed to balance preserving authentic movement patterns with removing noise and inconsistencies. The process consists of three main stages: + +Normalization. The raw data exhibited highly variable sampling frequencies, ranging from subsecond intervals up to several seconds between consecutive points. This heterogeneity creates challenges for modeling and increases storage requirements unnecessarily. We therefore applied the following normalization procedures: + +- Temporal Resampling: We resampled all trajectories to a uniform rate of one point per second (1 Hz). For segments with sampling rates higher than 1 Hz, we select the first occurrence of a trajectory point within each one-second window. For segments with lower sampling rates, we used linear interpolation between available points to estimate positions at one-second intervals. +- Coordinate Standardization: All coordinates were converted to the WGS84 datum for consistency, and we ensured uniform precision across the dataset (6 decimal places for both latitude and longitude, providing 0.1m precision at the equator). + +Filtering. After normalization, we implemented a multi-stage filtering process to meticulously remove trajectories that were deemed unsuitable for our analysis. This comprehensive filtering approach involved several key steps: + +- Length-based Filtering: We discarded trajectories with fewer than 32 points (equivalent to 32 seconds after resampling) or covering distances below 100 meters, as these typically represent stationary periods or very short movements with limited analytical value. +- Speed-based Filtering: We calculated point-to-point speeds and removed trajectories containing implausible values (e.g., exceeding $120\mathrm{km/h}$ or lower $0.5\mathrm{km/h}$ in urban environments), typically caused by GPS errors or anomalies. +- Distance-based Outlier Detection: We calculated the distance between the original trajectory and the map-matched trajectory. Trajectories that were too far away (indicating large deviations in motion) were flagged for further inspection or removal. +- Loop Detection: We identify and remove trajectories that form perfect or near-perfect loops with no apparent destination by their geometry, which usually indicates the presence of clearly anomalous patterns. + +Calibration. GPS signals can suffer from various errors due to atmospheric conditions, satellite geometry, and physical obstructions. To improve data quality, we applied map-matching techniques to align raw GPS points with underlying road networks, using a Hidden Markov Model-based approach (or using online API) with a custom emission probability function that accounts for both point-to-road distance and heading consistency. Besides, each trajectory point was enriched with derived attributes. + +# A.3 Data Statistics and Analysis + +Overall Statistics. The final WorldTrace dataset contains: + +- Approximately 2.45 million trajectories. +8.8 billion raw GPS points (before normalization). +- Coverage across 70 countries on all inhabited continents. +- Temporal span from August 2021 to December 2023. +- Average trajectory duration of approximately 6 minutes. +- Average trajectory distance of 5.73 kilometers. +Average travel speed of $48.0\mathrm{km / h}$ +- Points per trajectory ranging from 32 to over 600, with an average of 358 points. + +Geographic Distribution. WorldTrace offers extensive geographic coverage, as illustrated in Figure 5, encompassing trajectory data from 70 countries and spanning diverse environments and + +![](images/15e7325965e3456e8f76bef2410df23ee9c8a3653468ef0fe88ac1ffe700b65a.jpg) +(a) Geographic distribution across the world. + +![](images/7684c2800f1fd39dc0218890ded23ae9bcf45b762579c5708440aaa8810e1615.jpg) +(b) Trajectory counts of top 10 countries. + +![](images/af5144eda61e0531ccfa5011ac131fe2e353fa966ef26ce69be1dfa6535c6120.jpg) +(c) Distribution within contiguous USA. +Figure 5: The distribution details of WorldTrace dataset. + +infrastructure types. This global distribution is visualized in Figure 5(a), highlighting dense concentrations in North America, East Asia, and parts of Europe, with trajectory counts exceeding in the most represented regions. Figure 5(b) further details the top 10 countries by trajectory counts, with the United States, China, and Canada leading in data volume. Notably, it exhibits substantial geographic diversity, with varying densities across urban, suburban, and rural environments. The top 10 countries by trajectory count, namely, the USA, China, Canada, Germany, UK, Japan, Brazil, Australia, South Korea, and Hungary, represent a wide range of urban forms, road networks, and mobility cultures. Additionally, Figure 5(c) provides a closer look at the data density within the contiguous United States, demonstrating high-resolution coverage along major road networks and urban centers. This detailed distribution underscores the dataset's ability to capture nuanced variations in trajectory data across different regions. Collectively, these figures emphasize the potential of WorldTrace to serve as a robust foundation for developing region-independent and universal trajectory models. Its extensive geographic coverage and diverse environmental representation make it well-suited for applications that require broad and adaptable trajectory data. + +# A.4 Data Privacy and Copyright + +To protect privacy and comply with international data protection regulations, all data collection adhered strictly to privacy regulations and ethical guidelines. Trajectories were anonymized, and any personally identifiable information was excluded to protect user privacy. In addition, all raw data follows the Open Data Commons Open Database License (ODbL) license from OSM: http://opendatacommons.org/licenses/odbl/1.0/. We will share derived datasets under the same license terms to respect the data use policies of the community. + +# B Pre-training Strategies + +In this section, we provide specific details on the adaptive trajectory resampling strategy and the self-supervised trajectory masking strategy, and we will provide the design motivation and theoretical analysis for these two strategies. + +# B.1 Adaptive Trajectory Resampling + +Trajectory data heterogeneous is one of the main challenges in cross-regional and cross-device trajectory modeling. The Adaptive Trajectory Resampling strategy solves this problem through two complementary components: Dynamic Multi-Scale Resampling and Interval Consistent Resampling. We designed these two strategies with the motivation of fitting different regions and dataset qualities through diversified trajectory sampling frequencies and motion patterns. Dynamic Multi-Scale Resampling ensures an optimal balance between information preservation and computational efficiency across different trajectory lengths, prioritizing the retention of key motion patterns. Interval Consistent Resampling enhances the model's generalization ability across datasets with different sampling rates by normalizing the time dimension. + +# B.1.1 Dynamic Multi-Scale Resampling + +As discussed in Section 4.2, we adopted a logarithmic resampling ratio that adjusts the sampling rate according to the trajectory length. The resampling ratio function $R(n)$ is designed to decrease logarithmically as the trajectory length $n$ increases: + +$$ +R (n) = \left\{ \begin{array}{l l} R _ {\min }, & n \geq n _ {\max } \\ 1 - \left(1 - R _ {\min }\right) \phi (n), & n _ {\min } < n < n _ {\max } \\ 1, & n \leq n _ {\min } \end{array} \right. \tag {7} +$$ + +where $R_{\mathrm{min}}$ is the minimum sampling ratio, and $n_{\mathrm{min}}$ and $n_{\mathrm{max}}$ denotes the shortest and longest length thresholds, respectively. The normalization factor $\phi(n)$ is computed as follows: + +$$ +\phi (n) = \frac {\ln \left(n - n _ {\min } + 1\right)}{\ln \left(n _ {\max } - n _ {\min } + 1\right)}. \tag {8} +$$ + +Formal Definition. Here, we provide a formal definition and theoretical analysis of the above empirical results through information theory and computational efficiency perspectives. For any trajectory $\pmb{\tau} = \{p_1, p_2, \dots, p_n\}$ consists of $n$ spatio-temporal points. The number of points for resampled trajectory $\pmb{\tau}' = \{p_1, p_2, \dots, p_m\}$ is: + +$$ +m = R (n) \cdot n, \tag {9} +$$ + +where function $R(n)$ that determines what proportion of points to retain. The logarithmic sampling strategy guarantees bounded sample sizes for arbitrarily long trajectories while preserving critical minimum information content. Specifically: + +- For $n \leq n_{\min}$ : $R(n) = 1$ , so $m = n$ ; +- For $n \geq n_{\max}$ : $R(n) = R_{\min}$ , we set $m = m_{\max}$ as a constant. Clearly, the number of sampled points is bounded above by $m_{\max}$ . + +To ensure boundedness, we analyze $m(n)$ in the intermediate domain $n \in (n_{\min}, n_{\max})$ . + +$$ +m = \left[ 1 - \left(1 - R _ {\min }\right) \cdot \phi (n) \right] \cdot n. \tag {10} +$$ + +Taking derivative: + +$$ +\frac {d (R (n) \cdot n)}{d n} = 0 \tag {11} +$$ + +Solving this equation yields a value $n^* < n_{\max}$ , ensuring that $m_{\max}$ is bounded. Since $R(n)$ becomes constant for $n \geq n_{\max}$ , and $m$ increases linearly in that region, the global maximum occurs at either $n^*$ or $n_{\max}$ . However, due to the logarithmic decay of $R(n)$ , the growth of $m$ slows, and the maximum value is achieved at a finite $n^* < n_{\max}$ . Hence, $m$ is bounded for all $n$ . + +# Corollary 1: Information Preservation and Computing Efficiency Optimization + +**Standpoint:** The logarithmic sampling function provides an optimal balance between information preservation and computational efficiency across varying trajectory lengths. + +Proof: Let $I(\tau)$ represent the information content of trajectory $\tau$ . Empirical studies in spatiotemporal data analysis suggest that information content typically scales sub-linearly with trajectory length, following approximately: + +$$ +I (\boldsymbol {\tau}) \propto n ^ {\alpha}, \tag {12} +$$ + +where $0 < \alpha < 1$ . For example, $\alpha \approx 0.7$ indicates that only $70\%$ of the trajectory points contain valid feature information, and the remaining $30\%$ are redundant. For a resampled trajectory $\tau'$ with $m = R(n) \cdot n$ points, the information preservation ratio $\eta$ can be approximated as: + +$$ +\eta = \frac {I \left(\boldsymbol {\tau} ^ {\prime}\right)}{I (\boldsymbol {\tau})} \approx \left(\frac {m}{n}\right) ^ {\alpha} = R (n) ^ {\alpha}. \tag {13} +$$ + +The computational cost $C$ of processing trajectory typically scales linearly with length: + +$$ +C (\tau) \propto n ^ {\beta}, \tag {14} +$$ + +where $\beta \geq 1$ , typically $\beta \approx 2$ for Transformer-based models. After resampling, the computational efficiency gain $\gamma$ is: + +$$ +\gamma = \frac {C (\boldsymbol {\tau})}{C \left(\boldsymbol {\tau} ^ {\prime}\right)} \approx \left(\frac {n}{m}\right) ^ {\beta} = \frac {1}{R (n) ^ {\beta}}. \tag {15} +$$ + +The optimal sampling function maximizes the product of information preservation and computational efficiency: + +$$ +\max _ {R (n)} \eta \cdot \gamma = \max _ {R (n)} R (n) ^ {\alpha} \cdot \frac {1}{R (n) ^ {\beta}} = \max _ {R (n)} R (n) ^ {\alpha - \beta}. \tag {16} +$$ + +Since $\alpha < \beta$ for typical trajectory data, this is a decreasing function $R(n)$ . However, we must maintain a minimum level of information, hence the constraint $R(n) \geq R_{\min}$ . + +When we examine the information density: + +$$ +D (n) = \frac {I (\tau)}{n} \propto n ^ {\alpha - 1}, \tag {17} +$$ + +we observe that it decreases as $n$ increases, indicating diminishing information return per point in longer trajectories. An optimal sampling ratio should proportionally track this information density: + +$$ +R _ {\text {o p t}} (n) \propto D (n) \propto n ^ {\alpha - 1}. \tag {18} +$$ + +Our logarithmic resampling function's derivative in the intermediate domain $(n_{\mathrm{min}} < n < n_{\mathrm{max}})$ is: + +$$ +\frac {d R (n)}{d n} = - \frac {1 - R _ {\operatorname* {m i n}}}{\ln \left(n _ {\operatorname* {m a x}} - n _ {\operatorname* {m i n}} + 1\right)} \cdot \frac {1}{n - n _ {\operatorname* {m i n}} + 1} \propto \frac {1}{n} \tag {19} +$$ + +As $n$ increases, the growth rate of the logarithmic function slows down, causing the rate at which the sampling rate $R(n)$ decreases to also slow down. This is closely proportional to the derivative of the theoretical optimal sampling rate: + +$$ +\frac {d R _ {\text {o p t}} (n)}{d n} \propto (\alpha - 1) n ^ {\alpha - 2} \propto \frac {1}{n ^ {2 - \alpha}}. \tag {20} +$$ + +For example, when $\alpha \approx 0.7$ , we have $\frac{dR_{\mathrm{opt}}(n)}{dn} \propto \frac{1}{n^{1.3}}$ . This property of logarithmic functions (their rate of change is inversely proportional to the input value), making them naturally suited to this task. Therefore, Logarithmic resampling provides a theoretically reasonable compromise: it preserves almost all of the information from short trajectories (where every point may be significant) while reducing redundancy in long trajectories (where redundancy is highest). Compared to linear functions, logarithmic functions can more naturally adapt to the information density curve across the entire trajectory length range. + +![](images/e3d8118ffe6d1cd56afdbec600f14b9d8b000f637baf088f960c2b9aa49a4141.jpg) +Figure 6: Illustration of the difference between dynamic resampling strategies with linear method. + +Visualization. As shown in Figure 6, we compare in detail the proposed dynamic resampling strategy with a linear resampling strategy (where the sampling ratio $R(n)$ decreases linearly with the length of the trajectory) regarding the sampling ratio and the sampled points. Specifically, this figure illustrates the dynamic resampling strategy compared to a linear resampling approach. The top plot displays how the sampling ratio $R(n)$ decreases with trajectory length $n$ . The dynamic strategy (orange curve) follows a logarithmic decrease, ensuring a smoother transition from retaining all points for short trajectories ( $n \leq n_{\mathrm{min}}$ ) to reducing redundancy for long trajectories ( $n \geq n_{\mathrm{max}}$ ), with a minimum sampling ratio $R_{\mathrm{min}}$ . In contrast, the linear resampling strategy (blue curve) decreases the sampling ratio at a constant rate. The bottom plot shows the relationship between the number of sampled points and trajectory length for both strategies. The dynamic approach adjusts sampling more gradually, preserving detail for intermediate trajectories while minimizing redundancy in longer trajectories. However, linear sampling methods instead suffer from redundancy of sampling points due to the smoothly decreasing sampling rate. This dynamic resampling strategy ensures a balance between data volume reduction and the retention of critical movement details. The visual comparison highlights the adaptive nature of the dynamic strategy. + +# B.1.2 Interval Consistent Resampling + +Consider different cities may exhibit drastically different sampling intervals due to: Varying data collection protocols (e.g., 1s in City A vs. 5s in City B) and technical limitations or regional preferences in tracking technologies. This heterogeneity poses a serious challenge for developing universal trajectory models, as models trained on data from one region may fail to generalize to regions with different sampling characteristics. Therefore, we performed consistent interval sampling (at random time intervals) on the original dataset to ensure its generalizability across different datasets. Specifically, ICR standardizes the temporal intervals between trajectory points, transforming a trajectory $\pmb{\tau} = \{(x_1,y_1,t_1),(x_2,y_2,t_2),\ldots ,(x_n,y_n,t_n)\}$ with irregular time intervals into a trajectory $\pmb{\tau}' = \{(x_{1},y_{1},\Delta t),(x_{2},y_{2},\Delta t),\ldots ,(x_{m},y_{m},\Delta t)\}$ with uniform time intervals $\Delta t = t_{i + 1} - t_i$ , for all $i\in [1,m - 1]$ . + +# Corollary 2: Temporal Regularity for Cross-Dataset Generalization + +**Standpoint:** Interval consistent resampling regularizes the temporal dimension of trajectory samples, enhancing the model's ability to generalize across datasets with heterogeneous sampling rates. + +Proof: Let $\mathcal{D}_1$ and $\mathcal{D}_2$ be two datasets of region with average sampling intervals $\mu_{\Delta t}^{(1)}$ and $\mu_{\Delta t}^{(2)}$ . Assume the temporal pattern recognition task can be formalized as learning a function $f_{\theta}: \tau \to Y$ where the learned parameters $\theta$ should ideally be robust to sampling rate variations. For trajectories with irregular sampling, the model must learn the relationship: + +$$ +y = f _ {\theta} \left(\left(x _ {1}, y _ {1}, t _ {1}\right), \left(x _ {2}, y _ {2}, t _ {2}\right), \dots , \left(x _ {n}, y _ {n}, t _ {n}\right)\right). \tag {21} +$$ + +This requires implicitly learning the distribution of time intervals $P(\Delta T)$ , which varies across datasets. With ICR, the learning problem becomes: + +$$ +y = f _ {\theta} \left(\left(x _ {1} ^ {\prime}, y _ {1} ^ {\prime}, t _ {1} ^ {\prime}\right), \left(x _ {2} ^ {\prime}, y _ {2} ^ {\prime}, t _ {2} ^ {\prime}\right), \dots , \left(x _ {m}, y _ {m}, t _ {m}\right)\right), \quad \text {w i t h} t _ {i + 1} ^ {\prime} - t _ {i} ^ {\prime} = \Delta t _ {\text {f i x e d}} \tag {22} +$$ + +where temporal intervals are now consistently fixed, eliminating the need to learn dataset-specific temporal distributions. + +Information Entropy Analysis. From the entropy perspective, consider trajectories from different regions $r$ with characteristic sampling intervals $\Delta t^r$ , where the distribution of intervals can be modeled as: + +$$ +P (\Delta t \mid r) \sim \mathcal {N} \left(\mu_ {r}, \sigma_ {r} ^ {2}\right), \tag {23} +$$ + +where $\mathcal{N}$ is a dataset distribution with region-specific mean $\mu_r$ and variance $\sigma_r^2$ . The entropy of the joint distribution of regions (or dataset) and sampling intervals is: + +$$ +H (\mathcal {D}, \Delta T) = H (\mathcal {D}) + H (\Delta T \mid \mathcal {D}). \tag {24} +$$ + +This high conditional entropy $H(\Delta T \mid \mathcal{D})$ creates a strong statistical correlation between regions and temporal patterns, forcing region-specific model adaptations. Interval Consistent Resampling transforms the original trajectory $\pmb{\tau}$ into $\pmb{\tau}'$ where $t_{i+1}' - t_i' = \Delta t_{\mathrm{fixed}} \forall i \in [1,m-1]$ . This transformation minimizes the conditional entropy: + +$$ +H \left(\Delta T ^ {\prime} \mid \mathcal {D}\right) \approx 0, \tag {25} +$$ + +which effectively decoupling the temporal sampling pattern from the region. This transformation reduces dataset-specific temporal variability, thereby bringing the conditional distributions of trajectories across datasets closer in distributional space: + +$$ +P \left(\boldsymbol {\tau} ^ {\prime} \mid \mathcal {D} _ {1}\right) \approx P \left(\boldsymbol {\tau} ^ {\prime} \mid \mathcal {D} _ {2}\right). \tag {26} +$$ + +The reduction means the model sees more consistent input distributions, thus reducing the domain gap in learning. + +For trajectory modeling tasks that focus on spatial patterns rather than absolute temporal dynamics, information loss is minimal when resampling preserves relative temporal order and approximate speed relationships. For a trajectory with velocity profile $v(t) = (p_{i+1} - p_i) / (t_{i+1} - t_i)$ , the constraint: + +$$ +\frac {\left\| p _ {i + 1} ^ {\prime} - p _ {i} ^ {\prime} \right\|}{\left\| p _ {i + 1} - p _ {i} \right\|} \approx \frac {\Delta t _ {\text {f i x e d}}}{\Delta t _ {i}} \tag {27} +$$ + +ensures that relative speed information is preserved even as absolute time intervals are normalized. + +# B.2 Self-supervised Trajectory Masking + +Self-supervised Trajectory Masking (STM) forms a critical component of UniTraj's pre-training strategy, enabling the model to learn robust representations from incomplete trajectory data. While we introduced the concept in the main paper, this appendix provides a more detailed examination of the theoretical foundations, implementation details, and empirical justifications for our masking approach. Our Self-supervised Trajectory Masking framework implements four complementary masking strategies (as illustrated in Figure 7), each designed to simulate different types of real-world data incompleteness and encourage specific learning objectives: + +# B.2.1 Random Masking + +Random Masking applies a uniform probability distribution to select trajectory points for masking, where each point has an equal chance of being masked regardless of its position or significance. Formally, we select a subset of indices: + +$$ +\mathbf {I} _ {\text {r a n d}} \sim \operatorname {U n i f o r m} (\{1, 2, \dots , n \}). \tag {28} +$$ + +![](images/87b7e6409bdcbec1be356142861c54417b245ca5446467d8be894172710f345d.jpg) +Figure 7: Illustration of the difference masking strategies. + +to mask. This strategy forces the model to develop both local and global dependencies, as it must learn to infer missing points from surrounding context without relying on predictable patterns. Random masking is a general masking strategy used to simulate sensor failures or temporary GPS signal loss that often occur in random trajectories. + +# B.2.2 Block Masking + +Block Masking conceals consecutive segments of the trajectory by selecting a starting point $k$ and masking $b$ consecutive points: + +$$ +\mathbf {I} _ {\text {b l o c k}} = \{k, k + 1, \dots , k + b - 1 \}, \text {f o r s o m e} k. \tag {29} +$$ + +This approach simulates extended sensor failures, tunnels, or urban canyons where trajectory data may be unavailable for continuous periods. The strategy challenges the model to reconstruct substantial missing segments by understanding the broader movement context, encouraging the development of long-range dependencies and trajectory continuity reasoning. + +# B.2.3 Key Points Masking + +Algorithm 1 Ramer-Douglas-Peucker (RDP) Algorithm +1: RDP(τ, s, e, ε) +2: Initialize max distance $d_{\mathrm{max}} \gets 0$ +3: Initialize index $k \gets -1$ +4: for $i = s + 1$ to $e - 1$ do +5: Calculate the distance from $p_i$ to $\overline{pspe}$ : $d_i$ +6: if $d_i > d_{\mathrm{max}}$ then +7: Update max distance $d_{\mathrm{max}} \gets d_i$ +8: Update index $k \gets i$ +9: end if +10: end for +11: if $d_{\mathrm{max}} > \epsilon$ then +12: $\tau_{\mathrm{left}} \gets \mathrm{RDP}(\tau, s, k, \epsilon)$ +13: $\tau_{\mathrm{right}} \gets \mathrm{RDP}(\tau, k, e, \epsilon)$ +14: return $\{p_k\} \cup \tau_{\mathrm{left}} \cup \tau_{\mathrm{right}}$ +15: else +16: return $\{p_s, p_e\}$ +17: end if + +The key points masking adopt the Ramer-Douglas-Peucker (RDP) algorithm [10], which simplifies a trajectory by retaining points that are farthest from the line $\overline{p_1p_n}$ connecting the first and last points. The indices are determined by + +$$ +\mathbf {I} _ {\text {k e y}} = \left\{p _ {k} \mid d _ {\max } \left(p _ {k}, \overline {{p _ {1} p _ {n}}}\right) > \epsilon \right\}, \tag {30} +$$ + +where $\epsilon$ is a predefined threshold, and $d_{\mathrm{max}} = \max \left\{d(p_k,\overline{p_1p_n})\mid 2\leq k\leq n - 1\right\}$ is the maximum distance measures deviation from this line. As summarized in Algorithm 1, the RDP algorithm iteratively identifies the point $p_k$ that maximizes $d_{\mathrm{max}} = d(p_k,\overline{p_1p_n})$ . If $d_{\mathrm{max}} > \epsilon$ , the corresponding point $p_k$ is treated as a key point and included in the mask set Ikey. This process is recursively applied to the trajectory segments $\pmb{\tau}_{\mathrm{left}} = \{p_1,\dots ,p_k\}$ and $\pmb{\tau}_{\mathrm{right}} = \{p_k,\dots ,p_n\}$ , isolating critical points + +for masking. By focusing on these pivotal points, the model is challenged to reconstruct essential trajectory segments, reinforcing its understanding of key structural patterns within trajectories. + +# B.2.4 Last N Masking + +Last N Masking systematically removes the final N points of each trajectory: + +$$ +\mathbf {I} _ {\text {l a s t}} = \{n - N + 1, n - N + 2, \dots , n \}. \tag {31} +$$ + +This strategy explicitly simulates trajectory prediction scenarios where future positions must be forecasted based on historical observations. By incorporating this masking approach during pretraining, the model develops capabilities directly applicable to trajectory prediction tasks, creating a natural bridge between self-supervised pre-training and downstream forecasting applications. + +# Corollary 3: Robustness through Comprehensive Masking + +**Standpoint:** Self-supervised Trajectory Masking improves the robustness and generalization ability of the model to incomplete and heterogeneous trajectory data through a comprehensive masking strategy, enabling the model to learn more effective trajectory representations. + +Proof: Let the trajectory data space be $\mathcal{D}$ , with a true data distribution denoted as $P(\tau)$ . In real-world applications, due to device limitations, communication failures, and environmental factors, the observed trajectories are often incomplete or irregular, and their distribution is denoted as $P(\tilde{\tau})$ . The incompleteness of trajectory data can be formalized as a conditional distribution $P(\tilde{\tau} \mid \tau)$ , representing the probability of observing an incomplete $\tilde{\tau}$ given a complete trajectory $\tau$ . + +STM can be formalized as a set of masking functions $\{\mathcal{M}_1,\mathcal{M}_2,\ldots ,\mathcal{M}_k\}$ , each corresponding to a different masking strategy. For a resampled trajectory $\pmb {\tau}' = \{p_1,p_2,\dots ,p_n\}$ , the masking function $\mathcal{M}_i$ transforms it as: + +$$ +\tilde {\boldsymbol {\tau}} _ {i} = \mathcal {M} _ {i} \left(\boldsymbol {\tau} ^ {\prime}, r _ {i}\right) = \left\{p _ {1}, \dots , \left[ \operatorname {M A S K} \right] _ {j \in \mathbf {I} _ {i}}, \dots , p _ {n} \right\} \tag {32} +$$ + +where $\mathbf{I}_i\subseteq \{1,2,\ldots ,n\}$ is the index set of masked positions and $r_i = |\mathbf{I}_i| / n$ is the masking ratio. + +Information-Theoretic Analysis. From an information-theoretic perspective, STM introduces an artificial information bottleneck that forces the model to learn efficient representations. We define the model objective as minimizing the reconstruction loss: + +$$ +\mathcal {L} (\theta) = \mathbb {E} _ {\boldsymbol {\tau} \sim P (\boldsymbol {\tau}), i \sim \mathcal {U} (1, k)} \left[ d \left(f _ {\theta} \left(\mathcal {M} _ {i} (\boldsymbol {\tau}, r _ {i})\right), \boldsymbol {\tau}\right) \right], \tag {33} +$$ + +where $d$ is a chosen distance metric. + +During training, the model needs to learn the joint distribution $P(\pmb{\tau}, \tilde{\pmb{\tau}}_i)$ and estimate the conditional distribution $P(\pmb{\tau} \mid \tilde{\pmb{\tau}}_i)$ . By Bayes' theorem: + +$$ +P (\boldsymbol {\tau} \mid \tilde {\boldsymbol {\tau}} _ {i}) = \frac {P \left(\tilde {\boldsymbol {\tau}} _ {i} \mid \boldsymbol {\tau}\right) P (\boldsymbol {\tau})}{P \left(\tilde {\boldsymbol {\tau}} _ {i}\right)}. \tag {34} +$$ + +By using diverse masking strategies, the model learns to estimate $P(\pmb{\tau} \mid \tilde{\pmb{\tau}}_i)$ across different types of masked trajectories, which is equivalent to learning the true trajectory distribution $P(\pmb{\tau})$ and the various degradation mechanisms $P(\tilde{\pmb{\tau}}_i \mid \pmb{\tau})$ . + +Optimality Theory of Diversity Complementary Masking Strategies. A key innovation in STM is the use of multiple complementary masking strategies. We define the coverage region of the union of masking strategies as: + +$$ +\mathcal {C} \left(\left\{\mathcal {M} _ {1}, \dots , \mathcal {M} _ {k} \right\}\right) = \int_ {\tilde {\boldsymbol {\tau}} \in \mathcal {D}} \max _ {i \in \{1, \dots , k \}} P _ {\mathcal {M} _ {i}} (\tilde {\boldsymbol {\tau}}) d \tilde {\boldsymbol {\tau}}, \tag {35} +$$ + +where $P_{\mathcal{M}_i}(\tilde{\tau})$ denotes the distribution of incomplete trajectories generated by masking strategy $\mathcal{M}_i$ . + +We assert that for a suitable masking ratio and a diverse set of masking strategies $\{\mathcal{M}_1,\dots ,\mathcal{M}_k\}$ , the combined coverage region satisfies: + +$$ +\mathcal {C} \left(\left\{\mathcal {M} _ {1}, \dots , \mathcal {M} _ {k} \right\}\right) > \max _ {i \in \{1, \dots , k \}} \mathcal {C} \left(\left\{\mathcal {M} _ {i} \right\}\right). \tag {36} +$$ + +This inequality indicates that the joint use of diverse masking functions provides strictly better coverage over possible incomplete trajectories than any individual strategy. + +The advantage of combining multiple masking strategies in STM over using a single masking strategy can also be theoretically justified by comparing the expected reconstruction error. Assume the real-world conditional distribution of incomplete trajectories is $P_{\mathrm{real}}(\tilde{\tau} \mid \tau)$ . For a single masking strategy $\mathcal{M}_i$ , let the generated distribution be $P_{\mathcal{M}_i}(\tilde{\tau} \mid \tau)$ . Then the expected reconstruction error under this distribution is: + +$$ +\mathbb {E} _ {\boldsymbol {\tau} \sim P (\boldsymbol {\tau}), \tilde {\boldsymbol {\tau}} \sim P _ {\text {r e a l}} (\tilde {\boldsymbol {\tau}} | \boldsymbol {\tau})} [ d (f _ {\theta} (\tilde {\boldsymbol {\tau}}), \boldsymbol {\tau}) ] \tag {37} +$$ + +It can be shown that training with a mixture of multiple masking strategies leads to a lower bound on this error compared to using any single strategy. This is because the mixture of diverse masking strategies better approximates the true real-world distribution of incomplete trajectories: + +$$ +K L \left(P _ {\text {r e a l}} (\tilde {\boldsymbol {\tau}} \mid \boldsymbol {\tau}) \left\| \frac {1}{k} \sum_ {i = 1} ^ {k} P _ {\mathcal {M} _ {i}} (\tilde {\boldsymbol {\tau}} \mid \boldsymbol {\tau}) \right.\right) < \min _ {i \in \{1, \dots , k \}} K L \left(P _ {\text {r e a l}} (\tilde {\boldsymbol {\tau}} \mid \boldsymbol {\tau}) \| P _ {\mathcal {M} _ {i}} (\tilde {\boldsymbol {\tau}} \mid \boldsymbol {\tau})\right) \tag {38} +$$ + +Here, $KL(\cdot \| \cdot)$ denotes the Kullback-Leibler divergence. + +# C Details of UniTraj + +In this section, we provide a detailed implementation of UniTraj, including the architecture and parameter settings. + +# C.1 Overall Architecture + +The UniTraj model adopts an encoder-decoder architecture based on transformer blocks, designed to process trajectory data with minimal regional dependency and maximum task adaptability. Figure 8 illustrates the overall framework of UniTraj, which consists of several key components: spatiotemporal tokenization, encoder, decoder, and rotary embedding layers. + +Our model takes trajectory points that have already undergone adaptive resampling (ATR) and masking (STM) as described in Appendix B. The input trajectories are represented as sequences of latitude-longitude coordinates and timestamps: $\tau = \{(\mathrm{lng}_i, \mathrm{lat}_i, t_i) | i = 1, 2, \dots, n\}$ , where $n$ is the total number of points after resampling. Unlike previous approaches that rely on region-specific features or road network information, UniTraj operates solely on these basic coordinates, enhancing its universal applicability across diverse geographic contexts. + +![](images/c742590ad9054b985cf38f60673425632328f7a07a3ebe46fdab8823d19efac9.jpg) +Figure 8: The main architecture and components of UniTraj. + +# C.2 Input Representation and Embedding + +Spatio-Temporal Tokenization. To enhance numerical stability and generalization, all input coordinates are normalized relative to the first point in the trajectory $(x_{i},y_{i}) = (\mathrm{lng}_{i} - \mathrm{lng}_{1},\mathrm{lat}_{i} - \mathrm{lat}_{1})$ + +For the spatial component, we project the normalized coordinates into a $d$ -dimensional space using a 1D convolutional neural network, yielding a spatial embedding + +$$ +\boldsymbol {h} _ {i} ^ {s} = \operatorname {C o n v 1 D} \left(\left[ x _ {i}, y _ {i} \right]; \theta_ {s}\right), \tag {39} +$$ + +where $\theta_{s}$ represents the learnable parameters of the convolutional layer. We use a kernel size of 1 with no stride to capture local spatial dependencies. Similarly, the temporal component, based on the time intervals $\Delta t_i$ , is embedded into the same $d$ -dimensional space via a linear layer, resulting in a temporal embedding: + +$$ +\boldsymbol {h} _ {i} ^ {t} = W _ {t} \cdot \Delta t _ {i} + b _ {t}, \tag {40} +$$ + +where $W_{t} \in \mathbb{R}^{d \times 1}$ and $b_{t} \in \mathbb{R}^{d}$ are learnable parameters. The final embedding for each trajectory point is obtained by element-wise addition of the spatial and temporal components: + +$$ +\boldsymbol {h} _ {i} = \boldsymbol {h} _ {i} ^ {s} + \boldsymbol {h} _ {i} ^ {t} \tag {41} +$$ + +This dual-tokenization captures both spatial and temporal dynamics, enabling the model to learn relative movement and temporal dependencies effectively. + +Rotary Positional Encoding (RoPE). In addition to encoding the spatial and temporal details of each trajectory point, it is essential to capture the relative positional relationships between points. These relationships enable the model to comprehend the movement sequence and the timing between points, both crucial for accurate trajectory modeling. To achieve this, we employ Rotary Position Encoding (RoPE) [32], which maintains the relative positional information between points by rotating the trajectory embedding vectors. Given the combined spatial-temporal embeddings $h_i$ for point $i$ in the trajectory, RoPE applies a rotational transformation: + +$$ +\operatorname {R o P E} \left(\boldsymbol {h} _ {i}\right) = \left( \begin{array}{c c} \cos \theta_ {i} & - \sin \theta_ {i} \\ \sin \theta_ {i} & \cos \theta_ {i} \end{array} \right) \left( \begin{array}{l} \boldsymbol {h} _ {i} ^ {(1)} \\ \boldsymbol {h} _ {i} ^ {(2)} \end{array} \right), \tag {42} +$$ + +where $\pmb{h}_i^{(1)}$ and $\pmb{h}_i^{(2)}$ are the first and second halves of the embedding $\pmb{h}_i$ , and $\theta_i$ is a rotation angle that varies proportionally with the position index $i$ . Specifically, $\theta_i$ is calculated as $\theta_i = \frac{i}{10000^{2k / d}}$ , where $k$ is the index of the embedding dimension, and $d$ is the total dimension of the embedding. + +The main advantage of RoPE is its ability to preserve relative positional information through rotational symmetry. This ensures that the relative distance and directional relationships between points are maintained, enabling the model to capture both local patterns (e.g., short-term movements) and global patterns (e.g., long-range directionality) within a trajectory. By encoding these relative positions, RoPE strengthens the model's capacity to understand movement dynamics across varying scales. + +# C.3 Adaptive Representation Learning + +The UniTraj employs an encoder-decoder architecture [13] tailored for trajectory data. The encoder and decoder use Transformer blocks [33] with RoPE-powered self-attention mechanisms to capture dependencies within trajectory embeddings. + +Encoder. Given a masked trajectory $\tilde{\pmb{\tau}} = \{p_1,\dots ,[\mathrm{MASK}]_{i\in \mathbf{I}},\dots ,p_n\}$ , we first extract the embedding representations of the unmasked points $\mathbf{H} = \{h_1,h_2,\dots ,h_m\}$ (where $m\leq n$ and $i\notin \mathbf{I}$ ) through the tokenizer and positional encoding steps. The encoder $\mathbf{E}_{\theta}$ processes the visible (unmasked) points in a trajectory to generate contextualized representations. It consists of $L_{e}$ transformer blocks, each incorporating: + +1. Multi-head Self-attention with RoPE: As described previously, we apply RoPE to the self-attention mechanism: + +$$ +\operatorname {A t t e n t i o n} (Q, K, V) = \operatorname {s o f t m a x} \left(\frac {Q _ {\mathrm {R o P E}} \cdot K _ {\mathrm {R o P E}} ^ {T}}{\sqrt {d _ {k}}}\right) \cdot V \tag {43} +$$ + +where $Q_{\mathrm{RoPE}}$ and $K_{\mathrm{RoPE}}$ are the query and key matrices with RoPE applied. + +2. Feed-forward Network (FFN): A two-layer FFN with GELU activation: + +$$ +\operatorname {F F N} (x) = W _ {2} \cdot \operatorname {G E L U} \left(W _ {1} \cdot x + b _ {1}\right) + b _ {2} \tag {44} +$$ + +3. Layer Normalization and Residual Connections: Each sub-block is wrapped with layer normalization (Pre-LN) and residual connections: + +$$ +\mathbf {H} ^ {\prime} = \operatorname {L a y e r N o r m} (\mathbf {H} + \operatorname {A t t e n t i o n} (\mathbf {H})) \tag {45} +$$ + +$$ +\mathbf {H} ^ {\prime} = \operatorname {L a y e r N o r m} \left(\mathbf {H} ^ {\prime} + \operatorname {F F N} \left(\mathbf {H} ^ {\prime}\right)\right) \tag {46} +$$ + +The encoder's output is a set of hidden representations $\mathbf{H}^e = \{\pmb {h}_i^e |i = 1,2,\dots ,m\}$ for the $m$ visible points. + +Decoder. The decoder reconstructs the masked points based on the contextualized representations from the encoder. It operates by combining the encoder's embeddings with mask tokens and processing them through $L_{d}$ transformer layers: + +1. Input Combination: The decoder input consists of both the encoder outputs for visible points and the mask token embeddings for masked positions: + +$$ +\mathbf {H} _ {0} ^ {d} = \operatorname {R e o r d e r} \left(\left\{ \begin{array}{l l} h _ {i} = \mathbf {h} _ {j} ^ {e} & \text {i f} i = \operatorname {I n d e x} (j), i \notin \mathbf {I} \\ h ^ {\text {m a s k}} & \text {i f} i \in \mathbf {I} \end{array} \right\}\right), \tag {47} +$$ + +where $h^{\mathrm{mask}}$ represents the mask token embeddings for all masked positions. + +2. Decoder Transformer Blocks: The combined input is processed through $L_{d}$ transformer blocks, each with the same structure as the encoder blocks (self-attention with RoPE, FFN, layer normalization, and residual connections). The self-attention mechanism allows information to flow between visible and masked positions: + +$$ +\mathbf {H} _ {l} ^ {d} = \operatorname {T r a n s f o r m e r B l o c k} \left(\mathbf {H} _ {l - 1} ^ {d}\right) \tag {48} +$$ + +for $l\in \{1,2,\ldots ,L_d\}$ + +3. Output Projection: The final layer projects the decoder's representations for the masked positions back to coordinate space: + +$$ +\left(\hat {x} _ {j}, \hat {y} _ {j}\right) = W _ {o} \cdot \boldsymbol {h} _ {L _ {d}, j} ^ {d} + b _ {o} \tag {49} +$$ + +where $j$ indexes the masked positions, and $W_{o}\in \mathbb{R}^{2\times d}$ and $b_{o}\in \mathbb{R}^{2}$ are learnable parameters. These projected coordinates are then transformed back to the original coordinate system $(\hat{\mathrm{lng}}_j,\hat{\mathrm{lat}}_j) = (\hat{x}_j + \mathrm{lng}_1,\hat{y}_j + \mathrm{lat}_1)$ . + +UniTraj is trained using a self-supervised learning approach with a reconstruction loss function. For each trajectory, we apply our masking strategies (random, block, key points, or last N), and the model is trained to reconstruct these masked points: + +$$ +\mathcal {L} = \frac {1}{| \mathbf {I} |} \sum_ {j \in \mathbf {I}} \| (\hat {x} _ {j}, \hat {y} _ {j}) - (x _ {j}, y _ {j}) \| _ {2} ^ {2}, \tag {50} +$$ + +where $\mathbf{I}$ is the set of masked positions, and $\| \cdot \|$ denotes the L2 norm. + +# C.4 Task-Specific Adaptation + +For downstream applications, UniTraj can be used in two primary ways: + +1. Zero-shot Transfer: The pre-trained model's encoder can be directly applied to extract trajectory representations for various tasks without further training. We use the pre-trained UniTraj as a backbone and attach task-specific Multi-Layer Perceptron (MLP) adapters to the output: + +$$ +\mathbf {H} ^ {\text {f i n a l}} = \operatorname {M L P} \left(\operatorname {U n i T r a j} _ {\text {e n c o d e r}} (\tau)\right) \tag {51} +$$ + +The MLP adapter typically consists of 2-3 layers with non-linear activations: + +$$ +\mathbf {H} ^ {\mathrm {a d a}} = W _ {2} \cdot \operatorname {R e L U} \left(W _ {1} \cdot \mathbf {H} ^ {e} + b _ {1}\right) + b _ {2} \tag {52} +$$ + +where $\mathbf{H}^e$ is the output from the UniTraj encoder. + +2. Fine-tuning: Update all parameters of the backbone and adapters with specific dataset. + +For different downstream tasks, we design specific adapter architectures: + +- For Trajectory Recovery/Prediction: We can directly use UniTraj's decoder as an adapter without any additional modifications. +- For Trajectory Classification: The adapter includes pooling operations followed by fully connected layers to produce class logits. +- For Trajectory Generation: The adapter interfaces with generative models by providing conditioned trajectory embeddings. + +# C.5 Implementation Details + +Additionally, we summarize the list of key hyperparameters and implementation-specific settings that may be used in the implementation of UniTraj in Table 5. Specifically, our model contains 8 encoders and 4 decoders, each using 4 heads in the attention layer. The model has approximately 2.38 million parameters, allowing it to balance complexity and computational efficiency. We set the embedding dimension to 128 and employ RoPE to capture spatial and temporal relationships effectively. Our model can handle an arbitrary length of the number of trajectory points and pad it to a length of 200. Naturally, due to the use of rotational positional embedding, our model holds extension capability and supports a maximum length of 512. In addition, when performing the dynamic resampling strategy, we set the minimum number of sampling points to 36 and the maximum to 600, and its minimum sampling rate is 0.35. Finally, we provide the probability of using various masking strategies during training, which can be further adapted to the specific task as we discussed in Section 5.4 and Table 4. + +Table 5: General parameters setting for UniTraj. + +
ParameterSetting valueRefer range
Encoder Blocks8≥ 2
Decoder Blocks4≥ 2
Attention Heads4≥ 1
Encode Dim12864 ~ 256
Parameters of Model (Millions)2.38-
Mask ratio0.50.25 ~ 0.75
Trajectory Length Padding20036 ~ 256
Maximum Length Padding512-
Minimum Trajectory Points36-
Maximum Trajectory Points600-
Minimum Sampling ratio0.35-
Random Masking0.7-
Key Points Masking0.15-
Block Masking0.05-
Last N Masking0.1-
+ +# D Experiments Details + +We use the Adam optimizer and mean square error loss with an initial learning rate of $1 \times 10^{-3}$ with a learning rate scheduler. The model is trained for 200 epochs with a batch size of 1024, and early stopping is applied based on validation performance. All experiments were conducted using PyTorch, where the foundation model is trained on NVIDIA A100/L40s 40GB GPUs and the baseline experiments are performed on RTX 2080 Ti. + +# D.1 Datasets + +We evaluate the performance of the proposed model using six diverse real-world trajectory datasets. Each dataset represents different data collection scenarios, quality levels, motion patterns, and geographic regions, providing a comprehensive test of the capabilities of UniTraj. + +- **WorldTrace:** WorldTrace is our proposed large-scale, globally distributed dataset, which we describe in detail in Section 4.1. We curated a high-quality subset of 1.1 million trajectories from + +the original dataset, which have been filtered to remove long stops and loops. Of this subset, 1 million trajectories are designated for model training combined with resampling or masking strategies, with the remaining 100,000 reserved for testing without any operation. To ensure consistency and enable independent zero-shot evaluations, the testing dataset is normalized to a sampling interval of 3 seconds per point. + +- Chengdu [8]: The Chengdu dataset comprises over one million urban mobility trajectories collected from taxis operating in Chengdu, China, reflecting daily commuting and transportation patterns in a densely urbanized area. It features dense, high-frequency (3-second for most trajectories) sampling points that provide detailed insights into active urban environments. +- Xi'an [8]: Similar to Chengdu, the Xi'an dataset includes millions of taxi trajectories gathered in Xi'an, China, focusing on movement patterns within another densely populated Chinese city. The data, collected during November 2016, captures the traffic dynamics and urban mobility behaviors specific to this region. +- GeoLife [47]: The GeoLife dataset is a widely used trajectory dataset collected over three years by 182 users, primarily in Beijing, China. It is mainly distinguished by a wide variety of travel modes, including walking, cycling and driving. With this data, we can study the trajectory movement patterns and behavioral habits of different travel modes. Besides, this dataset suffers from irregular and often long sampling intervals, which limit its granularity and quality for trajectory analysis. +- Grab-Posisi [15]: Sourced from Southeast Asia, this dataset contains 84,000 ride-hailing trajectories, predominantly from the Grab service in cities such as Jakarta and Singapore. The variable sampling intervals across these trajectories provide insights into urban mobility patterns unique to Southeast Asian metropolises. +- Porto [28]: The Porto dataset consists of taxi trajectories collected in Porto, Portugal, capturing trips between different areas of the city. Although it provides valuable insight into taxi mobility within the city, the dataset has a relatively low sampling frequency, with long intervals (15 seconds) between data points. + +# D.2 Tasks Applicability Study Settings + +# D.2.1 Trajectory Recovery + +In this experiment, we randomly mask $50\%$ of trajectory points and test the recovery performance. Specifically, we evaluate UniTraj in both zero-shot (trained solely on WorldTrace) and fine-tuned settings (trained on WorldTrace and then fine-tuned on each respective dataset), aiming to understand its adaptability with and without task-specific training. Additionally, we compare UniTraj against a diverse range of baselines, including traditional deep learning models (Linear, DHTR [35], Transformer [33], and DeepMove [11]) and pre-trained models (TrajBERT [31] and TrajFM [23]). Performance metrics include Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) with meters, computed based on geographic distance: + +$$ +\mathrm {M A E} = \frac {1}{n} \sum_ {i} ^ {n} \left| y _ {i} - \hat {y} _ {i} \right|, \tag {53} +$$ + +$$ +\mathrm {R M S E} = \sqrt {\frac {1}{n} \sum_ {i} ^ {n} \left(y _ {i} - \hat {y} _ {i}\right) ^ {2}} \tag {54} +$$ + +where $y_{i}$ and $\hat{y}_i$ are the real and recovered coordinates, respectively. + +# D.2.2 Trajectory Prediction + +In this task, we focus on predicting future trajectories based on historical trajectory points. Following the setup [23] in previous work, we predicted the locations of five future points. The baseline settings and evaluation metrics are consistent with those used for the trajectory recovery task, and experiments were conducted on WorldTrace, Chengdu, and GeoLife datasets. + +# D.2.3 Trajectory Classification + +The Trajectory Classification task is conducted on two datasets, GeoLife and Grab-Posisi. In this task, we will only use the encoder module of the UniTraj as a backbone and then add a classification header. + +We compare UniTraj in two settings: without fine-tuning (wo/ft), where only the classifier head is trained, and with fine-tuning (ft), where the entire model is updated. For baselines, we following prior literature [21] use representative classification models including GRU, LSTM, STGN [45], and TrajFormer [21]. Performance is reported by classification accuracy: + +$$ +\operatorname {A c c} = \frac {1}{n} \sum_ {i} ^ {n} \mathbf {I} \left(y _ {i}, \hat {y} _ {i}\right), \tag {55} +$$ + +where $y_{i}$ and $\hat{y}_i$ are the predicted and true labels, respectively, and $\mathbf{I}(\cdot)$ is a indicator function. Following the general settings of previous work, we selected four travel modes from the Geolife dataset, namely walking, bus, bike, and driving. For the Grab-Posisi dataset, there are two travel modes: car and motorcycle. + +# D.2.4 Trajectory Generation + +In this task, we follow the approach in prior work [50], assessing trajectory generation using sequences of road segments that represent trajectories without explicit temporal attributes. Specifically, we use ControlTraj as a downstream task for trajectory generation, where we replace the road segment extraction component (RoadMAE) of the ControlTraj with UniTraj's encoder, testing the effectiveness of the embedded representation. The evaluation includes density error metrics [50]: + +$$ +\operatorname {D e n s i t y} \operatorname {E r r o r} = \operatorname {J S D} (G \| O) = \frac {1}{2} \mathbb {D} (\| \frac {(G + O)}{2}) + \frac {1}{2} \mathbb {D} (G \| \frac {(G + O)}{2}), \tag {56} +$$ + +where $G$ is the distribution of the generated trajectories in the city (which divides each city into grids of $16 \times 16$ size and calculates the count of trajectory points associated with each grid), and $O$ is the distribution of the original trajectories. JSD(·) is the Jenson-Shannon divergence for two distributions. + +![](images/759c8322f52614a766164f734da2065d1746da46e59af78d2e53b28291587875.jpg) +(a) Original. + +![](images/685de70df41311a9efbbbe462c36836a7ea56e0c6bb2d3cb69021b5516205d1d.jpg) +(b) ControlTraj. + +![](images/b33fd407bc090da2bca4c855df843dc576a6d0cafbe46fc9d4c2a8a9f3a3cba6.jpg) +(c) ControlTraj + UniTraj. + +![](images/2208f2292a44ef7cf313a3a5af7a19483b7689a3b03f2a171f4cb66b2cd67160.jpg) +(d) Original. + +![](images/c07355c90896e42bc68a9f4a9b837815f8c7baf926f5a8437b1b1aceb98089c3.jpg) +(e) ControlTraj. + +![](images/f80b35e90e14b6995ae6a721f2cbc45e9c900b0ea591db15c81e6d33fb7cc3b0.jpg) +(f) ControlTraj + UniTraj. +Figure 9: Performance comparison of trajectory generation task with Chengdu dataset (first row), and transfer to Xi'an dataset (second row). + +For the this task, UniTraj demonstrates its versatility through integration with existing generative frameworks. By replacing ControlTraj's road segment extraction module with UniTraj, we achieved + +a $5.1\%$ reduction in density error (from 0.0039 to 0.0037) when trained and generated on the Chengdu dataset. This improvement, though modest in magnitude, represents a significant advance in trajectory fidelity. More impressively, when transferring the generation capability to Xi'an without retraining—a challenging cross-region scenario—the UniTraj-enhanced generator maintains a density error of 0.0152. In contrast, the baseline ControlTraj experiences a 0.0171 density error when transferred across regions. This cross-region resilience further validates UniTraj's ability to capture universal trajectory patterns that transcend specific geographic contexts. We also show the heatmap visualizations to measure the accuracy and realism of generated trajectories in Figure 9, where brighter regions indicate denser trajectories and darker regions indicate sparser ones. Detailed analysis of the generated trajectories reveals that UniTraj-enhanced generation produces more realistic speed variations, particularly in complex road segments such as intersections, sparse or dense areas. In summary, the above results underscore UniTraj's potential for robust and transferable trajectory generation, proving its effectiveness in both familiar and novel geographic settings. + +# D.3 Dataset Study Settings + +Effect of Dataset Scale and Quality. This task focuses on the impact of dataset size and quality on UniTraj performance. We analyze WorldTrace for the effects of different amounts and qualities of training data. Specifically, we further process the complete WorldTrace dataset by removing cyclic trajectories, removing trajectories with too many stopping points and sparse trajectories. In total, we partitioned a subset of high-quality trajectory data numbering 1 million items, and further partitioned a subset of 10,000, 500,000 trajectory data for UniTraj training. + +Effect of Dataset Diversity. The task assessed the impact of using different data coverage (i.e., geographic diversity) on the model. We evaluate the zero-shot performance of UniTraj trained on the WorldTrace and Chengdu datasets, respectively, and tested on multiple real-world trajectory datasets. We chose the Chengdu dataset for comparison because it has very high data quality and has the identical me collection standards as the Xi'an dataset. + +# D.4 Model Study Settings + +For setting the number of encoders decoders for the model, we adopt the following scheme {encoders: 2,4,6,8,12}, {decoders:2,2,4,4,6}, {attention heads:2,2,2,4,8}. We believe that an asymmetric encoder-decoder architecture can significantly reduce the number of parameters while maximizing the performance of the model. And the scaling law between the number of model parameters and the size of the data will be one of the considerations in our future research and model architecture design. + +# E More Discussion + +# E.1 Limitation + +While UniTraj represents a significant advancement in universal trajectory modeling, several limitations remain that warrant acknowledgment and future investigation. Despite WorldTrace's unprecedented geographic coverage spanning 70 countries, data distribution remains uneven, with certain regions (particularly in Africa and parts of Asia) underrepresented, potentially limiting model performance in these areas. Additionally, our focus on motorized movement may restrict generalization to non-motorized mobility patterns, such as pedestrian trajectories with distinctly different motion properties. The computational resources required for training and deploying UniTraj at scale present practical challenges for resource-constrained environments, necessitating more efficient architectures or distillation approaches. From a technical perspective, UniTraj relies solely on coordinate and temporal information, lacking integration of contextual features like road networks, traffic conditions, and points of interest that could further enhance predictive accuracy. Addressing these limitations represents promising directions for future research, potentially through expanded geographic coverage, multimodal trajectory integration, architecture optimization, context-aware modeling, and continual learning techniques. Nonetheless, we believe that the proposed UniTraj and WorldTrace datasets will contribute to the development of the entire community towards a more generalized, global view of trajectory analysis. + +# E.2 Broader Impact + +This work presents both promising opportunities and notable concerns for society. Positively, this universal trajectory model could popularize mobility intelligence across diverse regions, enabling improved transportation systems in underserved areas without extensive local data collection. The model could drive more efficient urban planning, reduce traffic congestion and emissions, and enhance logistics optimization globally. However, this technology could also enable more pervasive monitoring capabilities, raising surveillance concerns if misused. Additionally, there exists potential for widening technological disparities between resource-rich and resource-constrained organizations. Balancing these implications requires commitment to privacy-preserving techniques and equitable access policies to ensure this technology advances social welfare while minimizing potential harms. + +# E.3 Ethics Issues + +The development and application of large-scale trajectory foundation models raise important ethical considerations, which have been carefully addressed throughout this research. A primary concern is data privacy and the risk of re-identification. To mitigate this, we implemented a robust anonymization protocol: during data collection from OpenStreetMap, we deliberately excluded user identifiers, and the data was subsequently processed through filtering, resampling, and map-matching. This multi-step process significantly abstracts the trajectories from their original form, ensuring the publicly shared dataset is thoroughly anonymized. + +Another critical issue is the potential for misuse, particularly for large-scale surveillance. The design of UniTraj inherently addresses this risk at the model level by learning from aggregated, generalized movement patterns rather than individual user paths, making it incapable of reconstructing original trajectories or tracing personal identities. To further prevent the learning of localized patterns, we will not release any model versions fine-tuned on private datasets and will advocate for clear guidelines for responsible use. + +Finally, we acknowledge the potential for biases arising from the uneven geographical distribution of training data. To address this, we are employing data augmentation techniques to mitigate the effects of data scarcity in certain regions. We analyze these inherent biases and their potential societal consequences, and we are committed to ongoing efforts to enhance data diversity and model fairness in future work to ensure our research aligns with best practices in responsible AI. + +# NeurIPS Paper Checklist + +The checklist is designed to encourage best practices for responsible machine learning research, addressing issues of reproducibility, transparency, research ethics, and societal impact. Do not remove the checklist: The papers not including the checklist will be desk rejected. The checklist should follow the references and follow the (optional) supplemental material. The checklist does NOT count towards the page limit. + +Please read the checklist guidelines carefully for information on how to answer these questions. For each question in the checklist: + +- You should answer [Yes], [No], or [NA]. +- [NA] means either that the question is Not Applicable for that particular paper or the relevant information is Not Available. +- Please provide a short (1–2 sentence) justification right after your answer (even for NA). + +The checklist answers are an integral part of your paper submission. They are visible to the reviewers, area chairs, senior area chairs, and ethics reviewers. You will be asked to also include it (after eventual revisions) with the final version of your paper, and its final version will be published with the paper. + +The reviewers of your paper will be asked to use the checklist as one of the factors in their evaluation. While "[Yes]" is generally preferable to "[No]", it is perfectly acceptable to answer "[No]" provided a proper justification is given (e.g., "error bars are not reported because it would be too computationally expensive" or "we were unable to find the license for the dataset we used"). In general, answering "[No]" or "[NA]" is not grounds for rejection. While the questions are phrased in a binary way, we acknowledge that the true answer is often more nuanced, so please just use your best judgment and write a justification to elaborate. All supporting evidence can appear either in the main paper or the supplemental material, provided in appendix. If you answer [Yes] to a question, in the justification please point to the section(s) where related material for the question can be found. + +IMPORTANT, please: + +- Delete this instruction block, but keep the section heading "NeurIPS Paper Checklist", +- Keep the checklist subsection headings, questions/answers and guidelines below. +- Do not modify the questions and only use the provided macros for your answers. + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: All claims have been confirmed in the methods and experiments section. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We have discussed this in detail in Appendix E of the supplementary materials. + +# Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: We provide analysis and proof in Appendix of the supplementary materials. + +Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: We provide code and sample data in the supplementary materials. In addition, we provide detailed parameter settings in the Appendix C.5. + +Guidelines: + +- The answer NA means that the paper does not include experiments. + +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: We provide code and data at https://github.com/Yasoz/UniTraj. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). + +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: We provide detailed data and hyperparameters settings in the Appendix C.5. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [NA] + +Justification: We report results by taking the average of multiple rounds of experiments. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We declare the computing resources used in the experiments in Appendix D. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. + +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more computer than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We ensure that no personally identifiable information is included in the data. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: We discussed this topic in Discussion at Appendix. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: This paper is not related to this risk. + +Guidelines: + +- The answer NA means that the paper poses no such risks. + +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We declare the license of the used data in Appendix A. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +Justification: licensing, acquisition, and processing of the dataset introduced in this paper, and ensure that there are no privacy risks. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +# Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +# Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [Yes] + +Justification: We use LLM to improve language expression and visualization results. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/images.zip b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..350e1cd5bee5545cc8a85a9ba35188499dffd2c8 --- /dev/null +++ b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:463bd41ae684b36760c110c7ff40942cd0cdcee35f3730f46864aa740f7eb223 +size 1160145 diff --git a/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/layout.json b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..4b31a7902bfc96e53e777875ffcd43f28208779d --- /dev/null +++ b/NeurIPS/2025/UniTraj_ Learning a Universal Trajectory Foundation Model from Billion-Scale Worldwide Traces/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d548322e42ccb55bd4863e4469b20fadeda950e773b4c4a2532a65adbe033810 +size 1255265 diff --git a/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/93380a86-a8ed-4bbd-8669-e1b96b060dfd_content_list.json b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/93380a86-a8ed-4bbd-8669-e1b96b060dfd_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..aa322a0e877334d4eccfab5ec217deff6093c1e8 --- /dev/null +++ b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/93380a86-a8ed-4bbd-8669-e1b96b060dfd_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9154c13cf1be285840431a1e63087cf03115d89299b5e045612a92b4524315fd +size 134519 diff --git a/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/93380a86-a8ed-4bbd-8669-e1b96b060dfd_model.json b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/93380a86-a8ed-4bbd-8669-e1b96b060dfd_model.json new file mode 100644 index 0000000000000000000000000000000000000000..3624c3c12b423dc7e17295a396866426b0480043 --- /dev/null +++ b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/93380a86-a8ed-4bbd-8669-e1b96b060dfd_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a06ea9f0fe7c0f12e510b0902d4a56669f0242fb50a71c6179e8504eac4ed17b +size 177597 diff --git a/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/93380a86-a8ed-4bbd-8669-e1b96b060dfd_origin.pdf b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/93380a86-a8ed-4bbd-8669-e1b96b060dfd_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..8a3eb2fd274999ec92cce20f29c300d3d56bf417 --- /dev/null +++ b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/93380a86-a8ed-4bbd-8669-e1b96b060dfd_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c3f3577c060b8d24c5d0f954dd334f1a90fe0a214545ad08e4927b3c6f5876e +size 15695372 diff --git a/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/full.md b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/full.md new file mode 100644 index 0000000000000000000000000000000000000000..94fda7671915a5e09bb699a5e2cc99cecb402934 --- /dev/null +++ b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/full.md @@ -0,0 +1,611 @@ +# UniTransfer: Video Concept Transfer via Progressive Spatial and Timestep Decomposition + +Guojun Lei $^{1*}$ , Rong Zhang $^{2*}$ , Tianhang Liu $^{1}$ , Hong Li $^{4}$ , Zhiyuan Ma $^{3\dagger}$ , Chi Wang $^{5}$ , Weiwei Xu $^{1\dagger}$ + +$^{1}$ State Key Lab of CAD&CG, Zhejiang University, $^{2}$ Zhejiang Gongshang University, $^{3}$ Huazhong University of Science and Technology, $^{4}$ Beihang University, + +5 Ningbo Global Innovation Center, Zhejiang University +guojunlei@zju.edu.cn, zhangrong@zjgsu.edu.cn, link0502@buaa.edu.cn, tianhang@zju.edu.cn, mzyth@hust.edu.cn, wangchi1995@zju.edu.cn, xww@cad.zju.edu.cn + +[Web Page] + +![](images/3c08302cac3a9ed546184d51e5c481406d2f0bceb14e0fcc1d926a8a750bf02d.jpg) + +![](images/6672b18abf6bca75915dbfb0f32fb6460e1df5960f98776f103bdb2e4a1161b3.jpg) + +![](images/417652e5526cc510813911d955192f98aee27d7f4f381b2216bc6464eb9761be.jpg) +Figure 1: Results of our UniTransfer. These qualitative results exhibit the superior performance of our approach in transferring various reference components, including characters, garments, backgrounds, and motions, to synthesize the new target videos. + +![](images/be441be8280de8fc038521d219ef128645be60d6c7b2fa1e48a1c713ea897934.jpg) + +# Abstract + +Recent advancements in video generation models have enabled the creation of diverse and realistic videos, with promising applications in advertising and film production. However, as one of the essential tasks of video generation models, video concept transfer remains significantly challenging. Existing methods generally model video as an entirety, leading to limited flexibility and precision when solely editing specific regions or concepts. To mitigate this dilemma, we propose a novel architecture UniTransfer, which introduces both spatial and diffusion timestep decomposition in a progressive paradigm, achieving precise and controllable video concept transfer. Specifically, in terms of spatial decomposition, we decouple videos into three key components: the + +foreground subject, the background, and the motion flow. Building upon this decomposed formulation, we further introduce a dual-to-single-stream DiT-based architecture for supporting fine-grained control over different components in the videos. We also introduce a self-supervised pretraining strategy based on random masking to enhance the decomposed representation learning from large-scale unlabeled video data. Inspired by the Chain-of-Thought reasoning paradigm, we further revisit the denoising diffusion process and propose a Chain-of-Prompt (CoP) mechanism to achieve the timestep decomposition. We decompose the denoising process into three stages of different granularity and leverage large language models (LLMs) for stage-specific instructions to guide the generation progressively. We also curate an animal-centric video dataset called OpenAnimal to facilitate the advancement and benchmarking of research in video concept transfer. Extensive experiments demonstrate that our method achieves high-quality and controllable video concept transfer across diverse reference images and scenes, surpassing existing baselines in both visual fidelity and editability. Web Page: https://yu-shaonian.github.io/UniTransfer-Web/ + +# 1 Introduction + +Recent years, the rapid advancement of generative AI technologies [13, 36, 33] has greatly reformed the community of video editing, opening up new potentials for diverse, fine-grained, and user-controllable content manipulation tasks. Video Concept Transfer (VCT) is one of the most important downstream tasks in video editing, aiming to substitute various user-specified target concepts in a video, such as objects, characters, backgrounds, or subject motions, to enable personalized content manipulation. Its applications span across diverse areas such as film production, game development, virtual reality, etc., drawing increasing attention from both academia and industry. + +Despite its potential, achieving high-quality video concept transfer is still challenging as it requires seamless integration of different components, preservation of the identity of the target object, and visual fidelity of the generated videos. Some recent approaches rely on text-based guidance to control the transfer [10, 4, 41]. However, the inherent ambiguity of natural language descriptions often results in imprecise manipulation of object attributes and behaviors, restricting their application scenarios. In contrast, image-guided methods offer a more accurate way to encode the appearance and identity of target objects. For example, methods likeAnimateAnyone2[15] and MIMO [29] have demonstrated the ability to replace human subjects in videos with specific reference images. However, these existing approaches mainly focus on human transfer and struggle to generalize to broader editing tasks [25] involving arbitrary objects, backgrounds, garments or motion patterns. VideoSwap [11] and AnyV2V [20] rely on personalized modeling or image editing techniques to address this dilemma. But the ability of their foundation models limits their scalability and flexibility in complex videos. + +This paper focuses on image-based video concept transfer, including animals, characters, backgrounds, and motions. This task inherently involves manipulations and integrations of different components within a video, which often exhibit substantial variation in terms of visual appearance, motion pattern, or semantic attributes. However, most existing approaches [23, 41, 11, 20, 28] generally model the video as a unified whole without considering the heterogeneous nature of its constituents, which may introduce undesired artifacts. MIMO [29] introduced spatial decomposed modeling to VCT by decomposing a video into three predefined components: human, scene, and occlusion. It helps improve the quality of video character replacement. However, MIMO only decomposes videos in the spatial dimension, which is not sufficient for high-quality video generation, as it takes all the timesteps in the denoising process equally. Motivated by ProSpect [53], diffusion models actually generate images in the progressive order of "layout $\rightarrow$ content $\rightarrow$ texture", and this work also exhibits that different stages in the diffusion models require guidance at different granularities. + +In this work, we propose UniTransfer, a Diffusion Transformer (DiT) based video concept transfer framework via progressive decomposition of both the spatial dimension and the denoising process. In the spatial dimension, we decompose videos into three core components: foreground, background, and motion dynamics, enabling our model to adapt to general concept transfer flexibly. To achieve this, we allow the model to learn the decomposition from coarse foreground masks to detailed ones. Specifically, we first introduce a random masking-based self-supervised pretraining strategy to + +strengthen the decomposed representation learning, which enables the model to capture disentangled features without requiring fine-grained annotations. Then we design a dual-to-single-stream Dit architecture to realize further decomposition with delicate semantic annotations. In this stage, individual branches are responsible for encoding different video components, and their features are later integrated into a unified representation through a single-stream network. This design enhances the model's capacity to manipulate different objects and maintain the temporal consistency. + +In the denoising process, we decompose the timestep into coarse-grained, mid-grained, and fine-grained stages instead of modeling it equally. Inspired by the Chain-of-Thought (CoT) strategy, we develop a Chain-of-Prompt (CoP) mechanism and leverage Large Language Models (LLMs) to produce hierarchical prompts at different granularities and utilize them to guide the generation, enabling progressive refinement from noise to detailed textures. The main contributions are summarized as follows: + +- We propose a DiT-based image-guided video concept transfer framework UniTransfer, which incorporates progressive spatial and timestep decomposition. +- We introduce a self-supervised pretraining strategy based on randomized masking to enhance the disentangled representation learning and design a dual-to-single-stream architecture to achieve spatial decomposition. +- We further introduce an LLMs-guided chain-of-prompt mechanism to achieve the timestep decomposition. This progressive prompting strategy guides the generation process with stage-specific instructions, improving the VCT generation quality. +- We collect an animal-centric video dataset called OpenAnimal to facilitate the training and benchmarking of research in video concept transfer. Extensive experiments demonstrate that our method outperforms state-of-the-art methods in various video concept transfer scenarios. + +# 2 Related Work + +Text-driven Video Editing. Video editing has witnessed remarkable advances in conditional content synthesis and manipulation through diffusion-based architectures [27]. Recently, video editing typically relies on textual prompts to control object attributes or behaviors [10, 4, 1]. Video-P2P [23, 32] achieves preservation of motion dynamics through attention modulation. RF-Edit [41] preserves structural integrity and temporal consistency by rectified flow ODE solving with reduced error. MotionDirector [55] requires separate training for each motion type. When adapting to new scenarios, it only supports text-guided scene transitions, which significantly limits its flexibility. VMC [18] also needs separate training for different scenes. However, due to the inherent ambiguity and underspecification of natural language, such methods often struggle to achieve fine-grained and accurate control over video content. + +Image-guided Video Editing. To overcome these limitations, researchers introduce additional reference images to guide the editing process of the video subject. MIMO [29] and MovieCharacter [34] decompose the video into elements such as foregrounds and preprocessed backgrounds, and perform character transfer through video composition techniques.AnimateAnyone2 [15] proposes a framework to animate characters while considering environmental affordances. Despite their effectiveness, they are designed for character video editing, which limits the application scenarios. + +In contrast, VideoSwap [11] pioneers a more general approach to image-guided concept transfer through semantic correspondence learning, enabling more versatile and accurate video edits beyond character animation. Yet critically, its reliance on multi-image concept anchoring introduces semantic abstraction, achieving category-level consistency (e.g., kitten, airplane) but failing to preserve instance-specific attributes. AnyV2V [20] leverages arbitrary image editing tools [3, 42, 7] to modify the first frame of a video and then propagates the modifications to subsequent frames, enabling instance-based object-driven editing and identity manipulation. However, the two-stage pipeline heavily depends on the results of off-the-shelf image editing techniques, and the temporal consistency can not be guaranteed. To address these limitations, we propose a novel framework that does not rely on external image editing tools. Instead, our method decomposes the video into three disentangled components: foreground, background, and motion. Integrating with a carefully-tailored network architecture in conjunction with a large language model (LLM)-based chain-of-thought reasoning mechanism, our method can achieve precise and flexible video concept transfer. + +![](images/ea4f934ee795c8870fc38f922e5c7acb6558768a593f50a0992ff1c5434fc613.jpg) +Figure 2: Our progressive spatial and timestep decomposition modeling. + +Chain-of-Thought Prompting [19] aims to substantially improve the reasoning capabilities of large language models (LLMs) [6]. It provides a framework for complex multi-step inference through explicit intermediate reasoning steps. The CoT concept evolves into CoX [44], where X denotes swappable nodes (e.g. intermediates [19, 56, 21, 40], augmentation [12, 49, 9, 52], feedback [46, 24, 2, 8], and models [47, 5, 45]) for task-specific adaptation. We further propose Chain-of-Prompt (CoP), which shifts the CoX paradigm to the iterative denoising steps of diffusion models. This systematic approach decomposes the video generation into sequential coarse-to-fine steps, where hierarchical prompt guidance progressively refines temporal features through successive diffusion iterations. + +# 3 Method + +In this section, we present UniTransfer, a DiT-based image-guided video concept transfer framework with progressive decomposed video modeling. Our goal is to generate high-quality videos with user-specified concepts in the referenced images, including objects, characters, animals, backgrounds, or motion dynamics. To achieve this, we decompose the video both in the spatial and the timestep dimension. The overview of the proposed framework is illustrated in Figure 2. + +# 3.1 Spatial Decomposition + +Existing video generation methods typically treat the video as a holistic entity and attempt to model it under the guidance of text prompts or reference images. Although such strategies are effective for general video synthesis, they fall short in the context of video concept transfer, which requires compositional control over different parts of the video, including foreground objects, background scenes, and motion dynamics. Encoding the entire video into a single latent space makes it difficult to independently manipulate these components during generation. As a result, existing image-based video object transfer methods are often limited to transferring only the main subject, instead of manipulating different components, including background appearance or motion dynamics. + +To achieve more flexible and controllable video concept transfer, we propose to spatially disentangle the video generation process. Specifically, a video can be decomposed into three distinct components: the foreground $M$ , the background $B$ , and the corresponding motion flow $F$ . In general, the foreground component may consist of different objects (e.g., characters, animals, or objects). Under this setting, we redefine the video denoising process as follows: + +$$ +\mathcal {L} (\theta) = \mathbb {E} _ {x _ {0}, \epsilon , \mathcal {U}, t} \left[ \| \epsilon - \hat {\epsilon} _ {\theta} (x _ {t}, \tau , \mathcal {U}, t) \| _ {2} ^ {2} \right], \tag {1} +$$ + +![](images/a2448abffcb7cd62965d6ff982a0c091d1d69901b3ddea6b8610ab6b544d98f3.jpg) +Figure 3: The architecture of our UniTransfer. + +where $\tau$ is the condition of text prompts, $\mathcal{U} = (M,B,F)$ . This decomposition enables us to treat each component independently and recombine them flexibly in the generation pipeline, laying the foundation for video concept transfer. + +Building upon this decomposed formulation, we propose a progressive learning scheme that enables the model to effectively capture and utilize the decomposed components for video generation. To achieve this, we design two modules: (1) a random masking-based self-supervised learning mechanism to model the coarse relationships between the foregrounds and the backgrounds without delicate semantic annotations. (2) a carefully designed dual-to-single stream architecture, UniTransfer, tailored to learn detailed interactions of three different components. In the following, we will introduce them respectively. + +# 3.1.1 The Architecture of UniTransfer + +In this stage, we propose a DiT-based architecture named UniTransfer to decompose the video into three components: the foreground appearance, the background scene, and the motion dynamics to enable flexible and fine-grained control over VCT. Unlike previous approaches that treat the video as a monolithic entity, UniTransfer is designed to disentangle and recompose these components in a controllable diffusion-based generation process. + +In the training process, given the input video $V$ , we first randomly sample a single frame to serve as a reference image $I$ . A pretrained semantic segmentation model is then utilized to predict a foreground mask $M \in \{0,1\}^{H \times W}$ , which partitions the reference frame into a foreground region $F = I \odot M$ and a background region $B = I \odot (1 - BBox(M))$ , where $\odot$ represents element-wise multiplication and $BBox(M)$ means all the pixels in the bounding box are setting to 1. With the unaligned masks, we force the model to learn shape-agnostic interactions between the foreground and the background. Meanwhile, motion dynamics are extracted from the entire video using a pretrained optical flow model RAFT [39], which captures the temporal dynamics independent of appearance content. UniTransfer takes $F, B, O$ along with the video description $\tau$ as guidance and iteratively denoises from a randomly sampled Gaussian noise map to generate a new video $\hat{V}$ . Figure 3 illustrates the framework of the network, which is in a dual-to-single-stream paradigm consisting of three collaborative branches: a foreground branch, a background branch, and a fusion branch. + +The foreground and background branches are built based on the CogVideoX architecture[48]. Each of them is composed of an image VAE encoder to project $F$ and $B$ into latent codes $z_{f}$ and $z_{b}$ , a text encoder to provide shared high-level text embedding $z_{\tau}$ , and a stack of $N$ DiT blocks for temporal feature modeling. In the background branch, a random Gaussian noise vector $z_{t}$ of the timestep $t$ is concatenated with $z_{b}$ and $z_{\tau}$ , and the combined representation is passed through the DiT blocks $h_{b}^{i}$ , for $i = 1, \dots, N$ . In contrast, the foreground branch is treated as a conditional stream with no noise input. It adopts a symmetric structure and produces intermediate feature maps for each DiT block $h_{f}^{i}$ , for $i = 1, \dots, N$ . Afterwards, we design a feature injection module that introduces foreground features into the background stream inspired by ControlNet [51]. Specifically, the foreground feature map is processed by a zero-initialized convolutional projection layer and then element-wise added to the corresponding layer in the background branch at each DiT block. It allows the model to inject spatially aligned foreground appearance into the generative path. + +Moreover, the enhanced background features are combined with the motion dynamics in the fusion branch, which consists of a motion encoder to project the optical flow to a latent code $z_{o}$ , and $N$ + +DiT blocks for further feature fusion. The flow encoder adopts four symmetrically arranged stages, aligning with the structure in 3D VAE encoder [48]. Inspired by Tora[54], we also design an adaptive norm layer before adding it to the dit block. To enable the model to handle the misalignments between the motion and the input images and improve the generalization ability, we inject random noise into the input optical flow. $z_{o}$ is fused with the background stream through element-wise addition in each fusion DiT block $h^{i}$ , for $i = 1,\dots ,N$ . The model outputs the predicted noise at a given denoising timestep $t$ as follows: + +$$ +\hat {\epsilon} _ {\theta} = h \left[ Z C o n v \left(h _ {f} \left(z _ {f} \odot z _ {\tau}\right)\right) \oplus h _ {b} \left(z _ {t} \odot z _ {b} \odot z _ {\tau}\right) \oplus z _ {o} \right] \tag {2} +$$ + +where $ZConv$ represents the zero-initialized convolution. $\odot$ and $\oplus$ represent the concatenation operation and element-wise addition, respectively. + +# 3.1.2 Self-Supervised Pre-Training via Random Masking + +Learning robust video representations for concept-aware generation typically requires large-scale datasets with annotated semantic masks or motions. However, existing video datasets rarely provide sufficient annotations. Relying on small-scale annotated datasets is not enough to directly learn spatially decoupled representations for video concept transfer. To address this limitation, we follow LMD [26] to introduce a random masking strategy before training with fine-grained annotations. It leverages large-scale unlabeled video datasets for learning initial disentangled representations. In this stage, we only learn the foreground and background decomposition for coarse initialization. In this stage, the binary foreground mask $M \in \{0,1\}^{H \times W}$ is generated through random masking to arbitrarily partition the reference image $I$ into two regions $F$ and $B$ . The mask is initialized as an all-zero matrix and is iteratively updated by randomly drawing rectangles of random size and position on it. The pixels inside each rectangle are set to 1, and the process continues until the foreground coverage exceeds $50\%$ of the image area. This masking strategy ensures spatial diversity and balance between foreground and background regions. Then the reference frame is partitioned into a foreground region $F = I \odot M$ and a background region $B = I \odot (1 - \text{Dilate}(M))$ , where $\text{Dilate}(M)$ represents the morphological dilation operation to enable the model to learn the boundary interactions. Then $F$ and $B$ are fed into the foreground branch and a background branch, which inject the features into the denoising network independently. This allows the model to learn how to reconstruct coherent video content from partial and spatially isolated cues, without requiring ground-truth foreground-background labels. Through extensive self-supervised training on large-scale data, our model acquires strong prior knowledge, enabling efficient adaptation to downstream tasks via precise supervised fine-tuning. + +# 3.2 Timestep Decomposition + +Revisiting the preliminary of diffusion models reveals another limitation in current video generation pipelines: the same conditioning prompt is applied across all timesteps during the denoising process. It is difficult to generate grained texture corresponding to the grained prompts at the initial stage. Inspired from ProSpect [53], the role of each timestep varies significantly in the generation process. In the early stages of denoising, the model focuses primarily on recovering the global structure and semantic layout of the video. In contrast, the later stages are responsible for learning fine-grained details such as textures, colors, and subtle appearance attributes. Applying a static, single-level prompt across all timesteps ignores this progression in modeling focus. For instance, using overly complex or fine-grained textual prompts during early timesteps may misguide the model, leading to the omission of some semantic attributes or misalignments between the generated content and the input prompt. + +To address this, we introduce a timestep decomposition mechanism named Chain-of-Prompt (CoP) inspired by the Chain-of-Thought reasoning paradigm in large language models. Specifically, we decompose the denoising timesteps into three granularity levels—coarse, medium, and fine—and leverage a large language model (LLM) to automatically generate three levels of prompts that progressively reflect the abstraction and detail required at different denoising stages. These prompts are then injected into the diffusion model in a stage-aware manner, ensuring that early timesteps receive high-level, structural guidance, while later steps benefit from detailed, appearance-level + +![](images/94ff65bb3bd4b84bb24668b29c24e296a062a60e951ff3090b855adf3c1beb3d.jpg) +Figure 4: Comparison of video character transfer. Note that our backgrounds are better preserved. control. Then the denoising loss can be defined as follows: + +$$ +\mathcal {L} (\theta) = \left\{ \begin{array}{l l} \| \epsilon - \hat {\epsilon} _ {\theta} \left(z _ {t}, \tau_ {c r s}, \mathcal {U}, t\right) \| _ {2} ^ {2}, & t \in [ t _ {c}, T - 1 ] \\ \| \epsilon - \hat {\epsilon} _ {\theta} \left(z _ {t}, \tau_ {m i d}, \mathcal {U}, t\right) \| _ {2} ^ {2}, & t \in [ t _ {f}, t _ {c}) \\ \| \epsilon - \hat {\epsilon} _ {\theta} \left(z _ {t}, \tau_ {f i n e}, \mathcal {U}, t\right) \| _ {2} ^ {2}, & t \in [ 0, t _ {f}) \end{array} \right. \tag {3} +$$ + +where $\tau_{crs},\tau_{mid},\tau_{fine}$ are coarse-grained, mid-grained and fine-grained text prompts, respectively. $t_c$ and $t_f$ are the end points of the corresponding stages. $T$ is the total timestep of the diffusion process. In our paper, as the dataset provides detailed video descriptions, we utilize them as the fine-grained prompts. Then we employ an LLM Qwen-QWQ-32B [38] to summarize $\tau_{fine}$ to $\tau_{crs},\tau_{mid}$ . This decomposition strategy helps to align the complexity of text guidance with the focus of the generation phase, improving both semantic consistency and visual fidelity in the final video output. + +# 4 Experiments + +To better demonstrate the strengths of our approach, we conduct experiments to validate foreground transfer, background transfer, and optical flow transfer across videos. The implementation details can be referred to the appendix. + +# 4.1 Animal-centric Dataset + +To promote the broader applicability of video editing models, we introduced a new dataset OpenAnimal, which focused on single-animal video sequences across a wide range of species and diverse motion patterns. While following a similar structure to human-centric datasets (e.g., TikTok, UBC), OpenAnimal is specifically tailored for animal subjects with 10000 video clips. + +# 4.2 Comparison and Analysis + +As current state-of-the-art methods are primarily trained on human datasets, they often struggle to generalize to non-human scenarios, such as animal motion transfer or object-level editing in nature-based scenes. For fair comparison, we conducted qualitative and quantitative experiments on UBC[50] and TikTok[17] to evaluate the video character transfer performance. Besides, to further evaluate our model's ability to generalize to other concepts, we also demonstrate qualitative results of animal transfer, cloth transfer, background transfer, and motion transfer. + +# 4.2.1 Video Character Transfer + +To evaluate the effectiveness of our method in video character transfer, we compare it with state-of-the-art character animation and video editing baselines, includingAnimate Anyone [14],Champ [57], + +Table 1: Quantitative comparison of video quality for video character transfer. + +
TikTokUBC
LPIPS↓PSNR↑SSIM↑FID↓FVD↓LPIPS↓PSNR↑SSIM↑FID↓FVD↓
MRAA0.51325.310.425134.236340.58923.320.53789.13438
DisCo0.67421.560.532112.245710.46723.450.41294.15483
MagicAnimate0.25924.560.65789.234280.14327.080.74248.19391
Animate Anyone0.19825.890.71379.183980.13226.540.79844.18378
Champ0.24126.570.78767.144010.15927.030.81141.02324
UniAnimate0.19124.340.72458.193780.12727.090.79843.24334
Ours0.15226.780.80346.743450.12527.120.81439.73312
+ +Table 2: Video consistency quality comparison. SubC: Subject Consistency; BkgC: Background Consistency; MoS: Motion Smoothness; AesQ: Aesthetic Quality; DyaD: Dynamic Degree. + +
TikTokUBC
SubC↑BkgC↑MoS↑AesQ↑DyaD↑SubC↑BkgC↑MoS↑AesQ↑DyaD↑
Video-P2P0.8420.8530.7820.4430.7100.8130.8670.7340.4970.371
ControlVideo0.7120.4190.7470.5190.8230.8140.7730.8950.6240.241
RF-Editor0.9110.8730.5810.4230.7650.8250.6480.7890.4340.627
MotionClone0.7840.8650.8910.6510.8300.9240.9430.8710.6130.679
CogVideoX0.9270.9040.9260.5570.8420.9110.9170.9110.6630.902
Mofa-Video0.9230.9170.9620.5930.8370.9230.8790.9570.6120.829
Ours0.9450.9310.9620.6510.9030.9390.9420.9710.6640.911
+ +UniAnimate [43], AnyV2V [20], Video-P2P [23], etc.. Qualitative results are presented in Figure 4. Given an input video, these existing approaches typically modify or replace objects based on textual or image-based prompts. As illustrated in Figure 4, the text-guided transfer methods fail to transfer the reference image to the video, while the image-guided baselines struggle to preserve the structural features or maintain the appearance of the backgrounds. In contrast, our approach leverages reference image guidance and incorporates a progressive spatial and timestep decomposition, which aligns more naturally with real-world editing workflows. Our approach can achieve better preservation of the reference appearance, higher visual quality of the video, and greater inter-frame consistency than all baselines. These improvements are attributed to our novel decomposition strategy, which enables fine-grained control and more structured video generation. + +Besides, we perform further quantitative evaluation from two perspectives: video quality and temporal consistency. As shown in Table 1 and Table 2, our method achieves superior performance across multiple metrics, including FID, LPIPS, and subject consistency, aesthetic quality, etc. from vbench[16], significantly outperforming the compared baselines. This demonstrates the robustness and generalization ability of our approach in complex video character transfer tasks. + +# 4.2.2 Adaptation to Various Video Concept Transfer Tasks. + +Our proposed decomposition-based modeling and random masking pre-training mechanism enable our framework to effectively isolate and manipulate individual visual factors within a video, which can generalize beyond conventional foreground transfer. In this section, we provide more diverse qualitative results of a wide range of video concept transfer tasks, including motion transfer, background transfer, animal transfer, and regional foreground transfer, such as clothing replacement. These results demonstrate the flexibility and adaptability of our approach in handling diverse transformations, which are typically challenging for conventional video editing methods. + +Motion transfer. Our framework supports motion transfer by applying the motion dynamics extracted from a driving video onto a reference image, similar to pioneer works[37]. To evaluate the effectiveness of our method on this task, we conduct comparisons with state-of-the-art motion-guided video generation approaches, including AnyV2V [20], MotionClone [22], MotionI2V [37], AnyV2V [20] and Mofa-Video [31]. The results are shown in Figure 5. As illustrated, MotionI2V struggles with maintaining the video consistency as time progresses, often introducing noticeable artifacts or drift in later frames. AnyV2V fails to preserve the appearance of the reference image. MotionClone primarily relies on text guidance for controlling video appearance, which limits its ability to precisely align the generated content with the reference image. Mofa-Video may generate blurry results. In contrast, our method produces videos that not only maintain high visual fidelity but also exhibit coherent and realistic motion consistent with the driving video. This advantage stems from our explicit spatial decomposition and motion-conditioned generation design, which enables better disentanglement and control over appearance and temporal dynamics. + +![](images/870cd7dd582e9212ca9d451b5f0b6e7aa5b08b8721c1da42a0bd4393af4c6961.jpg) +Figure 5: Comparison of video motion transfer. + +Table 3: Ablation study. + +
Visual QualityVideo Smoothness
LPIPS ↓PSNR ↑SSIM ↑FID ↓FVD ↓SubC ↑BkgC ↑
Early Motion Injection0.23425.160.74356.793740.8710.736
w/o Flow Noise Injection0.29324.310.65969.313910.9150.893
w/o Self-Supervised Pre-training0.49819.870.546101.344870.7350.892
w/o dual-stream decomposition0.34123.120.69478.134230.8940.639
w/o CoP Timestep Decomposition0.19225.870.71251.323570.8810.924
Full Model0.15226.780.80346.743450.9450.931
+ +Foreground transfer. Our framework enables flexible foreground transfer, including part-level object replacement, such as garment transfer. It poses significant challenges due to the need to selectively modify localized visual regions while preserving the subject's identity and overall video harmonization. This is particularly important in fashion, virtual try-on, and personalization applications. As shown in Figure 7, our model successfully replaces the clothing items in the target videos, with the referenced garments, without disrupting the consistency of facial features, body motion, or background. These results highlight the strength of our decomposition framework in enabling precise and high-quality object-level modifications within complex video generation tasks. + +Background transfer. In most video editing approaches, modifications are typically limited to the main subject or local elements. In contrast, our method supports background replacement by leveraging the spatial disentanglement. As illustrated in Figure 7, our framework enables users to seamlessly replace the entire background of a video. Our approach ensures that background changes—such as scene transitions from indoor to outdoor—are consistent across all frames, while the foreground subject remains temporally coherent and unaffected in terms of identity and motion. + +# 4.3 Ablation Study. + +To verify the effectiveness of the components in our video generation pipeline, we designed several sets of ablation experiments on TikTok[17]. Specifically, we evaluate the following configurations: (1) Early Motion Injection: Instead of injecting motion in the intermediate network layers, we input motion information alongside the foreground and background features in the early layers, and apply attention-based fusion within the denoising branch. (2) Feature Fusion (w/o dual-stream decomposition): We directly concatenate foreground and background features and feed them into the denoising module. (3) Without Self-Supervised Pre-training. (4) Without CoP Timestep Decomposition. (5) Without Flow Noise Injection. The ablation study results are shown in Table 3. From the first two rows, we can see the superiority of the design of our motion branch, where the added noise improves the generalization ability and the injection strategy provides more accurate guidance. The third row emphasizes that the self-supervised training is critical for enhancing the + +decomposed representation learning. The last two rows illustrate that our modeling of the spatial and timestep decomposition both are essential for flexible and high-quality video concept manipulation. + +# 5 Conclusion + +In this work, we present a novel framework for controllable video concept transfer by introducing a progressive spatial and timestep decomposition modeling strategy. Unlike existing methods that treat the video as a holistic entity, our approach explicitly disentangles the video into foreground, background, and motion components, and further decomposes the denoising process into hierarchical stages via chain-of-prompt guidance. This design allows for more fine-grained control over video synthesis, enabling diverse video concept transfer tasks, such as character transfer, motion transfer, background transfer, and garment-level editing. We also incorporate a self-supervised pretraining scheme based on random masking to support robust learning under no additional supervision, which effectively bootstraps spatial disentanglement using large-scale unlabeled video data. Besides, we curate a new dataset featuring animal subjects to advance research in video generation. Extensive experiments on different transfer tasks demonstrate that our method significantly outperforms state-of-the-art baselines in terms of visual quality, consistency, and controllability. + +# Acknowledgments and Disclosure of Funding + +Weiwei Xu is partially supported by NSFC (No. 92570206, No.62421003). Rong Zhang is partially supported by NSFC (No. 62302449) and Zhejiang Provincial Natural Science Foundation of China (No. LQ23F020009). Zhiyuan Ma is supported by the National Natural Science Foundation of China (No. 62406161), China Postdoctoral Science Foundation (No. 2023M741950), and the Postdoctoral Fellowship Program of CPSF (No. GZB20230347). This paper is partially supported by the Yongjiang Innovation Project No. 2025Z062. + +# References + +[1] Rameen Abdal, Or Patashnik, Ivan Skorokhodov, Willi Menapace, Aliaksandr Siarohin, Sergey Tulyakov, Daniel Cohen-Or, and Kfir Aberman. Dynamic concepts personalization from single videos. In Proceedings of the Special Interest Group on Computer Graphics and Interactive Techniques Conference Papers, pages 1–9, 2025. +[2] Rishabh Bhardwaj and Soujanya Poria. Red-teaming large language models using chain of utterances for safety-alignment. arXiv preprint arXiv:2308.09662, 2023. +[3] Tim Brooks, Aleksander Holynski, and Alexei A Efros. Instructpix2pix: Learning to follow image editing instructions. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 18392-18402, 2023. +[4] Minghong Cai, Xiaodong Cun, Xiaoyu Li, Wenze Liu, Zhaoyang Zhang, Yong Zhang, Ying Shan, and Xiangyu Yue. Ditctrl: Exploring attention control in multi-modal diffusion transformer for tuning-free multi-prompt longer video generation. arXiv:2412.18597, 2024. +[5] Chi-Min Chan, Weize Chen, Yusheng Su, Jianxuan Yu, Wei Xue, Shanghang Zhang, Jie Fu, and Zhiyuan Liu. Chateval: Towards better llm-based evaluators through multi-agent debate. arXiv preprint arXiv:2308.07201, 2023. +[6] Yupeng Chang, Xu Wang, Jindong Wang, Yuan Wu, Linyi Yang, Kaijie Zhu, Hao Chen, Xiaoyuan Yi, Cunxiang Wang, Yidong Wang, et al. A survey on evaluation of large language models. ACM transactions on intelligent systems and technology, 15(3):1-45, 2024. +[7] Xi Chen, Lianghua Huang, Yu Liu, Yujun Shen, Deli Zhao, and Hengshuang Zhao. Anydoor: Zero-shot object-level image customization. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 6593-6602, 2024. +[8] Shehzaad Dhuliawala, Mojtaba Komeili, Jing Xu, Roberta Raileanu, Xian Li, Asli Celikyilmaz, and Jason Weston. Chain-of-verification reduces hallucination in large language models. arXiv preprint arXiv:2309.11495, 2023. + +[9] Silin Gao, Jane Dwivedi-Yu, Ping Yu, Xiaqing Ellen Tan, Ramakanth Pasunuru, Olga Golovneva, Koustuv Sinha, Asli Celikyilmaz, Antoine Bosselut, and Tianlu Wang. Efficient tool use with chain-of-abstraction reasoning. arXiv preprint arXiv:2401.17464, 2024. +[10] Michal Geyer, Omer Bar-Tal, Shai Bagon, and Tali Dekel. Tokenflow: Consistent diffusion features for consistent video editing. In The Twelfth International Conference on Learning Representations, 2024. +[11] Yuchao Gu, Yipin Zhou, Bichen Wu, Licheng Yu, Jia-Wei Liu, Rui Zhao, Jay Zhangjie Wu, David Junhao Zhang, Mike Zheng Shou, and Kevin Tang. Videoswap: Customized video subject swapping with interactive semantic point correspondence. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7621–7630, 2024. +[12] Shirley Anugrah Hayati, Taehee Jung, Tristan Bodding-Long, Sudipta Kar, Abhinav Sethy, Joo-Kyung Kim, and Dongyeop Kang. Chain-of-instructions: Compositional instruction tuning on large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 24005–24013, 2025. +[13] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840-6851, 2020. +[14] Li Hu, Xin Gao, Peng Zhang, Ke Sun, Bang Zhang, and Liefeng Bo.Animate anyone: Consistent and controllable image-to-video synthesis for character animation. arXiv:2311.17117, 2023. +[15] Li Hu, Guangyuan Wang, Zhen Shen, Xin Gao, Dechao Meng, Lian Zhuo, Peng Zhang, Bang Zhang, and Liefeng Bo. Animate anyone 2: High-fidelity character image animation with environment affordance. arXiv preprint arXiv:2502.06145, 2025. +[16] Ziqi Huang, Yinan He, Jiashuo Yu, Fan Zhang, Chenyang Si, Yuming Jiang, Yuanhan Zhang, Tianxing Wu, Qingyang Jin, Nattapol Chanpaisit, Yaohui Wang, Xinyuan Chen, Limin Wang, Dahua Lin, Yu Qiao, and Ziwei Liu. VBench: Comprehensive benchmark suite for video generative models. 2024. +[17] Yasamin Jafarian and Hyun Soo Park. Learning high fidelity depths of dressed humans by watching social media dance videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 12753-12762, June 2021. +[18] Hyeonho Jeong, Geon Yeong Park, and Jong Chul Ye. Vmc: Video motion customization using temporal attention adaption for text-to-video diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9212-9221, 2024. +[19] Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213, 2022. +[20] Max Ku, Cong Wei, Weiming Ren, Harry Yang, and Wenhu Chen. Anyv2v: A tuning-free framework for any video-to-video editing tasks. arXiv preprint arXiv:2403.14468, 2024. +[21] Chengshu Li, Jacky Liang, Andy Zeng, Xinyun Chen, Karol Hausman, Dorsa Sadigh, Sergey Levine, Li Fei-Fei, Fei Xia, and Brian Ichter. Chain of code: Reasoning with a language model-augmented code emulator. arXiv preprint arXiv:2312.04474, 2023. +[22] Pengyang Ling, Jiazi Bu, Pan Zhang, Xiaoyi Dong, Yuhang Zang, Tong Wu, Huaian Chen, Jiaqi Wang, and Yi Jin. Motionclone: Training-free motion cloning for controllable video generation. arXiv:2406.05338, 2024. +[23] Shaoteng Liu, Yuechen Zhang, Wenbo Li, Zhe Lin, and Jiaya Jia. Video-p2p: Video editing with cross-attention control. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8599–8608, 2024. +[24] Zhili Liu, Yunhao Gou, Kai Chen, Lanqing Hong, Jiahui Gao, Fei Mi, Yu Zhang, Zhenguo Li, Xin Jiang, Qun Liu, et al. Mixture of insightful experts (mote): The synergy of thought chains and expert mixtures in self-alignment. arXiv preprint arXiv:2405.00557, 2024. +[25] Zhiyuan Ma, Guoli Jia, and Bowen Zhou. Adapedit: Spatio-temporal guided adaptive editing algorithm for text-based continuity-sensitive image editing. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 4154-4161, 2024. +[26] Zhiyuan Ma, Zhihuan Yu, Jianjun Li, and Bowen Zhou. Lmd: faster image reconstruction with latent masking diffusion. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 4145-4153, 2024. + +[27] Zhiyuan Ma, Yuzhu Zhang, Guoli Jia, Liangliang Zhao, Yichao Ma, Mingjie Ma, Gaofeng Liu, Kaiyan Zhang, Ning Ding, Jianjun Li, et al. Efficient diffusion models: A comprehensive survey from principles to practices. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025. +[28] Zhiyuan Ma, Liangliang Zhao, Biqing Qi, and Bowen Zhou. Neural residual diffusion models for deep scalable vision generation. Advances in Neural Information Processing Systems, 37:117456-117480, 2024. +[29] Yifang Men, Yuan Yao, Miaomiao Cui, and Liefeng Bo. Mimo: Controllable character video synthesis with spatial decomposed modeling. arXiv preprint arXiv:2409.16160, 2024. +[30] Kepan Nan, Rui Xie, Penghao Zhou, Tiehan Fan, Zhenheng Yang, Zhijie Chen, Xiang Li, Jian Yang, and Ying Tai. Openvid-1m: A large-scale high-quality dataset for text-to-video generation. arXiv:2407.02371, 2024. +[31] Muyao Niu, Xiaodong Cun, Xintao Wang, Yong Zhang, Ying Shan, and Yinqiang Zheng. Mofa-video: Controllable image animation via generative motion field adaptions in frozen image-to-video diffusion model. arXiv:2405.20222, 2024. +[32] Hao Ouyang, Qiuyu Wang, Yuxi Xiao, Qingyan Bai, Juntao Zhang, Kecheng Zheng, Xiaowei Zhou, Qifeng Chen, and Yujun Shen. Codef: Content deformation fields for temporally consistent video processing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8089-8099, 2024. +[33] William Peebles and Saining Xie. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pages 4195-4205, 2023. +[34] Di Qiu, Zheng Chen, Rui Wang, Mingyuan Fan, Changqian Yu, Junshi Huang, and Xiang Wen. Moviecharacter: A tuning-free framework for controllable character video synthesis. arXiv preprint arXiv:2410.20974, 2024. +[35] Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Radle, Chloe Rolland, Laura Gustafson, Eric Mintun, Junting Pan, Kalyan Vasudev Alwala, Nicolas Carion, Chao-Yuan Wu, Ross Girshick, Piotr Dólar, and Christoph Feichtenhofer. Sam 2: Segment anything in images and videos. arXiv preprint arXiv:2408.00714, 2024. +[36] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. 2022. +[37] Xiaoyu Shi, Zhaoyang Huang, Fu-Yun Wang, Weikang Bian, Dasong Li, Yi Zhang, Manyuan Zhang, Ka Chun Cheung, Simon See, Hongwei Qin, et al. Motion-i2v: Consistent and controllable image-to-video generation with explicit motion modeling. In ACM SIGGRAPH 2024 Conference Papers, pages 1-11, 2024. +[38] Qwen Team. Qwq-32b: Embracing the power of reinforcement learning, March 2025. +[39] Zachary Teed and Jia Deng. Raft: Recurrent all-pairs field transforms for optical flow. In Computer Vision – ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part II, page 402–419, 2020. +[40] Hongru Wang, Rui Wang, Fei Mi, Yang Deng, Zezhong Wang, Bin Liang, Ruifeng Xu, and Kam-Fai Wong. Cue-cot: Chain-of-thought prompting for responding to in-depth dialogue questions with llms. arXiv preprint arXiv:2305.11792, 2023. +[41] Jiangshan Wang, Junfu Pu, Zhongang Qi, Jiayi Guo, Yue Ma, Nisha Huang, Yuxin Chen, Xiu Li, and Ying Shan. Taming rectified flow for inversion and editing. arXiv preprint arXiv:2411.04746, 2024. +[42] Qixun Wang, Xu Bai, Haofan Wang, Zekui Qin, Anthony Chen, Huaxia Li, Xu Tang, and Yao Hu. Instantid: Zero-shot identity-preserving generation in seconds. arXiv preprint arXiv:2401.07519, 2024. +[43] Xiang Wang, Shiwei Zhang, Changxin Gao, Jiayu Wang, Xiaogiang Zhou, Yingya Zhang, Luxin Yan, and Nong Sang. Unianimate: Taming unified video diffusion models for consistent human image animation. arXiv preprint arXiv:2406.01188, 2024. +[44] Yu Xia, Rui Wang, Xu Liu, Mingyan Li, Tong Yu, Xiang Chen, Julian McAuley, and Shuai Li. Beyond chain-of-thought: A survey of chain-of-X paradigms for LLMs. In Owen Rambow, Leo Wanner, Marianna Apidianaki, Hend Al-Khalifa, Barbara Di Eugenio, and Steven Schockaert, editors, Proceedings of the 31st International Conference on Computational Linguistics, pages 10795-10809, Abu Dhabi, UAE, January 2025. Association for Computational Linguistics. + +[45] Ziyang Xiao, Dongxiang Zhang, Yangjun Wu, Lilin Xu, Yuan Jessica Wang, Xiongwei Han, Xiaojin Fu, Tao Zhong, Jia Zeng, Mingli Song, et al. Chain-of-experts: When llms meet complex operations research problems. In The twelfth international conference on learning representations, 2023. +[46] Yutaro Yamada, Khyathi Chandu, Yuchen Lin, Jack Hessel, Ilker Yildirim, and Yejin Choi. L3go: Language agents with chain-of-3d-thoughts for generating unconventional objects. arXiv preprint arXiv:2402.09052, 2024. +[47] Tao Yang, Tianyuan Shi, Fanqi Wan, Xiaojun Quan, Qifan Wang, Bingzhe Wu, and Jiaxiang Wu. Psycot: psychological questionnaire as powerful chain-of-thought for personality detection. arXiv preprint arXiv:2310.20256, 2023. +[48] Zhuoyi Yang, Jiayan Teng, Wendi Zheng, Ming Ding, Shiyu Huang, Jiazheng Xu, Yuanming Yang, Wenyi Hong, Xiaohan Zhang, Guanyu Feng, et al. Cogvideox: Text-to-video diffusion models with an expert transformer. arXiv:2408.06072, 2024. +[49] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR), 2023. +[50] Polina Zablotskaia, Aliaksandr Siarohin, Bo Zhao, and Leonid Sigal. Dwnet: Dense warp-based network for pose-guided human video generation. British Machine Vision Conference, British Machine Vision Conference, Oct 2019. +[51] Lvmin Zhang and Maneesh Agrawala. Adding conditional control to text-to-image diffusion models. In ICCV, 2023. +[52] Yuanhao Zhang, Yumeng Wang, Xiyuan Wang, Changyang He, Chenliang Huang, and Xiaojuan Ma. Coknowledge: Supporting assimilation of time-synced collective knowledge in online science videos. arXiv preprint arXiv:2502.03767, 2025. +[53] Yuxin Zhang, Weiming Dong, Fan Tang, Nisha Huang, Haibin Huang, Chongyang Ma, Tong-Yee Lee, Oliver Deussen, and Changsheng Xu. Prospect: Prompt spectrum for attribute-aware personalization of diffusion models. ACM Transactions on Graphics (TOG), 42(6):244:1-244:14, 2023. +[54] Zhenghao Zhang, Junchao Liao, Menghao Li, Zuozhuo Dai, Bingxue Qiu, Siyu Zhu, Long Qin, and Weizhi Wang. Tora: Trajectory-oriented diffusion transformer for video generation, 2024. +[55] Rui Zhao, Yuchao Gu, Jay Zhangjie Wu, David Junhao Zhang, Jia-Wei Liu, Weijia Wu, Jussi Keppo, and Mike Zheng Shou. Motiondirector: Motion customization of text-to-video diffusion models. In European Conference on Computer Vision, pages 273–290. Springer, 2024. +[56] Denny Zhou, Nathanael Scharli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Claire Cui, Olivier Bousquet, Quoc Le, et al. Least-to-most prompting enables complex reasoning in large language models. arXiv preprint arXiv:2205.10625, 2022. +[57] Shenhao Zhu, Junming Leo Chen, Zuozhuo Dai, Zilong Dong, Yinghui Xu, Xun Cao, Yao Yao, Hao Zhu, and Siyu Zhu. Champ: Controllable and consistent human image animation with 3d parametric guidance. In European Conference on Computer Vision, pages 145-162. Springer, 2024. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The claims in the abstract and introduction accurately reflect our paper's contribution and scope. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: The limitation of the method proposed is discussed in the supplemental material. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +# Answer: [NA] + +Justification: The paper does not include theoretical results. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: In the Section 3 and Section 4, we have provided sufficient information for the experimental results reproduction. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: We are happy to release our code for the reproduction. Due to time constraints, we plan to organize and disclose the code upon completion of the paper submission process. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: We have provided the training and test details in Section 4.1 of the Appendix. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [No] + +Justification: Due to the significant computational resources required for multiple repeated execution of all experiments, we have not reported error bars. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). + +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We have reported the information on the computer resources in the Section 4. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We have read the NeurIPS Code of Ethics and confirm that the research in this article fully complies with its content. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: The paper has discussed both potential positive social impacts and negative societal impacts of the work performed in the supplemental material. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. + +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: The paper poses no such risks. + +# Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We have cited the original paper that provided the code and dataset used in the paper. + +# Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. + +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: The paper does not release new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. + +We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: The core method development in this research does not involve LLMs as any important, original, or non-standard components. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# A Video Diffusion Model Preliminary + +Video diffusion models generalize the concept of image diffusion probabilistic models [13] to the temporal domain. Formally, let $z_0 \in \mathbb{V}^{f \times h \times w \times c}$ represent a video latent variable, where $f$ denotes the number of frames, with $h \times w$ dimension, $c$ channels. The forward diffusion process is defined as a Markov chain that gradually corrupts the original video into Gaussian noise: + +$$ +z _ {t} = \sqrt {\bar {\alpha} _ {t}} z _ {t - 1} + \sqrt {1 - \bar {\alpha} _ {t}} \epsilon , \quad \epsilon \sim \mathcal {N} (0, \mathbf {I}), \tag {4} +$$ + +where $t \in \{1, \dots, T\}$ indexes the diffusion timestep, $\bar{\alpha}_t$ controls the noise intensity, and $\epsilon$ represents standard Gaussian noise. In the reverse process, a denoising network is used to estimate the noise from $z_{t-1}$ to $z_t$ , typically called a Diffusion Model $\theta$ . The training objective minimizes the following loss function: + +$$ +\mathcal {L} (\theta) = \mathbb {E} _ {z _ {0}, \epsilon , \mathcal {C}, t} \left[ \| \epsilon - \hat {\epsilon} _ {\theta} (z _ {t}, \mathcal {C}, t) \| _ {2} ^ {2} \right], \tag {5} +$$ + +where $\mathcal{C}$ represents conditioning information such as text prompts or reference images. + +# B Implementation Details + +In this paper, we focus on image-guided video concept transfer, where the foregrounds, backgrounds, or motion dynamics can be manipulated. We perform experiments including character, animal, object, background and motion transfer to evaluate our approach. The weights of the model are initialized from a pretrained CogVideoX-5B [48]. The experiments are conducted on a server equipped with $8 \times$ NVIDIA Tesla H100 80G GPUs. In our paper, we generate 49-frame videos at the resolution of $720 \times 480$ . + +Our training pipeline consists of two stages: a large-scale self-supervised pretraining phase and a supervised fine-tuning phase. In the pre-training phase, we trained our model on the OpenVid dataset[30], a large-scale collection of approximately 12 million videos covering a wide range of categories including humans, animals, vehicles, and diverse backgrounds. The training used a learning rate of $1 \times 10^{-4}$ and ran for 200,000 iterations. The OpenVid dataset comprises approximately 12 million samples. + +In the supervised training phase, we adapt the pretrained model to specific video concept transfer scenarios. For the human-centric editing task, we fine-tune the model on a combination of the TikTok [17] and UBC Fashion [50] datasets, which include rich annotations for character-level transfer tasks. The model is finetuned for 10,000 iterations with a learning rate of $5 \times 10^{-5}$ . For the animal-centric task, we performed an additional 10,000 fine-tuning iterations on OpenAnimal using the same learning rate. + +# C More Details about Self-Supervised Pretraining + +In practice, obtaining large amounts of high-quality annotated data remains challenging. Although efficient segmentation tools like SAM2[35] are available, they still require extensive manual interactions, such as point prompts, bounding boxes, or object-specific filtering. To address this limitation and reduce the reliance on manual annotations, we introduce a self-supervised pretraining approach, the detailed algorithmic pipeline of which is outlined below Algorithm 1 and Figure 6. + +# D More Details about CoP Guidance + +The detailed algorithmic pipeline of our Chain-of-Prompt (CoP) guidance is demonstrated in Algorithm 2. + +To assess the effectiveness of CoP, we conducted ablation experiments comparing it with static prompts, including: (i) All Coarse Prompt: using a coarse prompt across all timesteps, and (ii) All Detailed Prompt: using a detailed prompt across all timesteps. The results demonstrate that the allocoarse setting tends to produce results lacking fine-grained appearance fidelity and exhibiting texture degradation, while the all-detailed setting often introduces misguidance during early denoising steps, leading to distorted structures. In contrast, our CoP strategy, which progressively schedules coarse-to-fine prompts, strikes a balance between structural stability and appearance precision, achieving better performance. The quantitative evaluation can be referred to in Table 4. + +![](images/c381fbb8aae59c318b46198f911ceccd358f996e7ec4d118ec1e1299dc83347f.jpg) +Figure 6: Self-supervised Pretraining. + +# E More Results + +Our framework enables flexible foreground and background transfer, including part-level object replacement, such as garment transfer. The results of different transfer tasks are shown in Figure 10, Figure 11, Figure 12, Figure 7. Our curated animal-centric dataset OpenAnimal is demonstrated in Figure 13. + +![](images/35d93655e468110916dbde259db5f3480766a21f013e70f57be8753da8447053.jpg) +Figure 7: More UniTransfer results of different transfer tasks. + +# F Limitation + +Although our model can achieve subject transfer and background replacement in videos, there are still cases where the subject and background appear with artifacts. This issue might be due to current segmentation models cannot fully separate foreground and background elements, leading to imperfect composite results in the final output. In the future, we plan to address this by leveraging large-scale models for enhanced video scene understanding, further improving the quality of generated videos. + +For scenes involving multiple moving entities, we can fuse their individual optical flows into a composite representation and sequentially condition the network on each object through multiple inference passes. For interacting subjects, our method remains effective when the occlusion or overlap between them is relatively small, as each subject's region can still be identified and modeled with reasonable independence. However, cases with large overlapping areas or complex physical interactions pose challenges to our models due to ambiguity in motion attribution and visual entanglement. Joint modeling of interacting subjects is an interesting direction for future work. + +Algorithm 1: The pipeline of our self-supervised pretraining. +Input: image: input image coverage: target coverage ratio (default: 0.5) min_block_size: minimum block size (default: 320) max_block_size: maximum block size (default: 640) Output: foreground: processed image with coverage background: inverse masked image +Function random_white_blocks(image, coverage, min_block_size, max_block_size) if image is None then raise ValueError("Input image is empty"); if image is grayscale then result $\leftarrow$ convert image to BGR color space; else result $\leftarrow$ copy of image; $(h,w)\gets$ height and width of result; total_area $\leftarrow h\times w$ covered_area $\leftarrow 0$ target_area $\leftarrow$ total_area $\times$ coverage; mask $\leftarrow$ zero matrix of size $(h,w)$ . result_2 $\leftarrow$ gray matrix (127.5) with same size as result; max_iter $\leftarrow$ 500; while covered_area $< <$ target_area and max_iter $>0$ do max_iter $\leftarrow$ max_iter-1; block_size $\leftarrow$ random integer between min_block_size and max_block_size; $x\gets$ random integer between 0 and $w -$ block_size; $y\gets$ random integer between 0 and $h -$ block_size; if mask[y:y+block_size,x:x+block_size] contains any 1 then continue; >Special overlapping effect result_2[y:y+block_size-5,x : $x +$ block_size-5] $\leftarrow$ result[y:y+block_size-5,x:x+block_size-5]; result[y:y+block_size+5,x:x+block_size+5] $\leftarrow$ [127.5,127.5,127.5]; mask[y:y+block_size,x:x+block_size] $\leftarrow$ 1; covered_area $\leftarrow$ covered_area + block_size $\times$ block_size; if covered_area $>1.1\times$ target_area then break; return foreground, background; + +Table 4: CoP mechanism with different level prompts. + +
Visual QualityVideo Smoothness
LPIPS ↓PSNR ↑SSIM ↑FID ↓FVD ↓SubC ↑BkgC ↑
All Coarse Prompt0.17423.150.70172.464330.7140.865
All Detailed Prompt0.16524.620.73449.263670.8320.901
Full Model0.15226.780.80346.743450.9450.931
+ +# G Social Impact + +Our research decouples video generation into foreground, background, and their corresponding motion. This technology will enhance the efficiency of video production, drive innovation in industries such as film and gaming, and enable more immersive entertainment and educational experiences. However, as this technology becomes more widespread, society may face ethical and legal challenges, including concerns over the authenticity of video content, characters, and backgrounds. Therefore, establishing appropriate regulatory frameworks to ensure responsible use of this technology is a critical task that demands our attention. + +Algorithm 2: Chain-of-Prompt-Guided Video Denoising +Input: initial_noisy视频:Initial noisy video +base_prompt: Original text description +total_steps: Total denoising steps (default: 50) +T1, T2: Stage transition steps +Output: generated视频:Final generated video +Function hierarchical_denoising(initial_noisy视频,base_prompt,total_steps = 50) +// Phase partitioning (all steps) $T_{1} \leftarrow 35$ // First phase + $T_{2} \leftarrow 15$ // Second phase +// Generate hierarchical prompts using LLM +prompts $\leftarrow$ QwQ32B_GenerateHierarchicalPrompts(base_prompt); +// Returns: {'stage1': coarse, 'stage2': detailed, 'stage3': fine} +current Video $\leftarrow$ initial_noisy Video; +for step $\leftarrow$ total_steps to 1 do +if step $\geq T_{1}$ then + guidance_prompt $\leftarrow$ prompts['stage1']; // Coarse prompt + guidance_weight $\leftarrow 1.5$ // Strong guidance +else if step $\geq T_{2}$ then + guidance_prompt $\leftarrow$ prompts['stage2']; // Detailed prompt + guidance_weight $\leftarrow 2.0$ +else + guidance_prompt $\leftarrow$ prompts['stage3']; // Fine prompt + guidance_weight $\leftarrow 1.0$ +// Execute denoising step current Video $\leftarrow$ +DenoiseStep(current Video, guidance_prompt, guidance_weight, step); +return current Video; + +![](images/e7219758d52cccfb32850423cbd14b7758571405e2ef65ec2d49d125e2a4e299.jpg) +Figure 8: More results compared with other methods. + +![](images/580a61e3cd806b6891643912a3371836b379e107cbb060f267510cf78d903732.jpg) +Figure 9: More Visual Results (Left is reference video, middle is reference image, right is output). + +![](images/974aacfccffbc2ec842676859042a3db7bc76e1663c34fd877501906507b31b2.jpg) +Figure 10: More Visual Results.(Left is reference video, middle is reference image, right is output) + +![](images/096e4478110851bc18ad429237c77365c98dcc875cc077b3c20849a82dbfe46e.jpg) +Figure 11: More Visual Results.(Left is reference video, middle is reference image, right is output) + +![](images/9d93a947d659a1ee3b85481f5d9a208ee1a8115039a76dc1c24c01dd359b281b.jpg) +Figure 12: Animal Motion Transfer.(Left is reference video, right is output) + +![](images/267018cf69e84d845e7bba8fee97409ceef3af9d379c7aa0c9f04fe262dc77c1.jpg) +Figure 13: OpenAnimals Datasets. \ No newline at end of file diff --git a/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/images.zip b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..28730ffacbc3abee538e5349e1342b2f20c93397 --- /dev/null +++ b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef37dbff86c160ba1733e3139a1c1929b4f6135ff5097613aaf59ac8cf965882 +size 1710676 diff --git a/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/layout.json b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..947cae25d82cd8f5f972b3284cbda294c44eb722 --- /dev/null +++ b/NeurIPS/2025/UniTransfer_ Video Concept Transfer via Progressive Spatio-Temporal Decomposition/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d179fedad651f882956ebd250a30ae5b4ed5b0265fac4edbb2728a5dbb9ae2f5 +size 706624 diff --git a/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/df253d71-d373-4df5-bac7-d8d70f5b5635_content_list.json b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/df253d71-d373-4df5-bac7-d8d70f5b5635_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..4354e2fa43247d7bd62d15fec025fd06c0d7fa7b --- /dev/null +++ b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/df253d71-d373-4df5-bac7-d8d70f5b5635_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9f6ae379dacf73f7e708f453066425182518fe30a6289e6148c33dd6b73fbbf +size 134391 diff --git a/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/df253d71-d373-4df5-bac7-d8d70f5b5635_model.json b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/df253d71-d373-4df5-bac7-d8d70f5b5635_model.json new file mode 100644 index 0000000000000000000000000000000000000000..7157bd164ffdf230fcddaa28e9c0f8e843910ea3 --- /dev/null +++ b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/df253d71-d373-4df5-bac7-d8d70f5b5635_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92675fba73b8590eed290814552dfcead7c7561f156b6e07d2f490526e4d71fd +size 179205 diff --git a/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/df253d71-d373-4df5-bac7-d8d70f5b5635_origin.pdf b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/df253d71-d373-4df5-bac7-d8d70f5b5635_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e3534329dd121bd53fb40906c9c3cc5936f22cdd --- /dev/null +++ b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/df253d71-d373-4df5-bac7-d8d70f5b5635_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:255e3f9e06e2925001c657936860d0cb481247920a1b1cd88de7cde8d6e034e2 +size 9103549 diff --git a/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/full.md b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/full.md new file mode 100644 index 0000000000000000000000000000000000000000..6b63bc7f1df44980737db9988cc09aee24a8df1b --- /dev/null +++ b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/full.md @@ -0,0 +1,551 @@ +# UniViT: Unifying Image and Video Understanding in One Vision Encoder + +Feilong Tang $^{1,3}$ , Xiang An $^{2*}$ , Haolin Yang $^{3*}$ , Yin Xie $^{2}$ , Kaicheng Yang $^{2}$ , Ming Hu $^{1,3}$ , Zheng Cheng $^{2}$ , Xingyu Zhou $^{2}$ , Zimin Ran $^{4}$ , Imran Razzak $^{3}$ , Ziyong Feng $^{2}$ , Behzad Bozorgtabar $^{5}$ , Jiankang Deng $^{6}$ , Zongyuan Ge $^{1}$ + +1Monash University, 2DeepGlint, 3MBZUAI, 4UTS, 5EPFL, 6Imperial College London Feilong.Tang@monash.edu, xiangan@deepglint.com + +# Abstract + +Despite the impressive progress of recent pretraining methods on multimodal tasks, existing methods are inherently biased towards either spatial modeling (e.g., CLIP) or temporal modeling (e.g., V-JEPA), limiting their joint capture of spatial details and temporal dynamics. To this end, we propose UniViT, a cluster-driven unified self-supervised learning framework that effectively captures the structured semantics of both image spatial content and video temporal dynamics through event-level and object-level clustering and discrimination. Specifically, we leverage offline clustering to generate semantic clusters across both modalities. For videos, multi-granularity event-level clustering progressively expands from single-event to structured multi-event segments, capturing coarse-to-fine temporal semantics; for images, object-level clustering captures fine-grained spatial semantics. However, while global clustering provides semantically consistent clusters, it lacks modeling of structured semantic relations (e.g., temporal event structures). To address this, we introduce a contrastive objective that leverages these semantic clusters as pseudo-label supervision to explicitly enforce structural constraints, including temporal event relations and spatial object co-occurrences, capturing structured semantics beyond categories. Meanwhile, UniViT jointly embeds structured object-level and event-level semantics into a unified representation space. Furthermore, UniViT introduces two key components: (i) Unified Rotary Position Embedding integrates relative positional embedding with frequency-aware dimension allocation to support position-invariant semantic learning and enhance the stability of structured semantics in the discrimination stage; and (ii) Variable Spatiotemporal Streams adapt to inputs of varying frame lengths, addressing the rigidity of conventional fixed-input approaches. Extensive experiments across varying model scales demonstrate that UniViT achieves state-of-the-art performance on linear probing, attentive probing, question answering, and spatial understanding tasks. + +# 1 Introduction + +Visual representations are fundamental to the success of various downstream tasks. Contrastive [48, 71] and self-supervised [6, 10, 44] frameworks have strong spatial semantic modeling and cross-modal alignment. However, existing methods exhibit inherent biases toward specific modalities, limiting their joint capture of spatial details and temporal dynamics: Image-centric models (e.g., CLIP [48]) capture static semantics but inadequately model temporal dynamics, while video-centric models (e.g., V-JEPA [10]) incorporate temporal cues but exhibit deficiencies in fine-grained spatial modeling. + +![](images/baef14c5a1719305c511345702b6f7629510ca74c7961a843a0143c97e66eafa.jpg) +(a) Image Discrimination + +![](images/3c3c12553e67f7a5b7aee390df8c4dbb6eb7f732f43d34ad2074c4aadaba827f.jpg) +(b) Video Discrimination +Figure 1: Comparisons of cluster discrimination in image, video, and unified representation. (a) Image multi-label cluster discrimination improves semantic cohesion by assigning multiple samples to cluster centers, capturing various granularities of visual signals at the object level, but is limited to image representations. (b) Video cluster discrimination assigns discrete event-level labels to video segments, modeling dynamic semantics but lacking fine-grained spatial structures. (c) The proposed UniViT adopts unified multi-label discrimination at event and object levels with shared clusters and encoders, bridging spatial semantics and temporal structures within a unified representation. + +![](images/1ee9dfde80869eb6d7cae54d90a13858cda583a897a8cb8b0b84454af8913619.jpg) +(c) UniViT Discrimination + +The key to unified visual pretraining lies in jointly modeling static and dynamic semantics through structured, semantically coherent representations. Recent approaches such as UNICOM [2], MLCD [4] and RICE [64] enhance perception of structured semantics in images by introducing clustering mechanisms. MLCD further advances this approach by employing multi-label clustering to capture multiple semantic components in images, as depicted in Fig. 1 (a). Furthermore, ChatUnivi [34] introduces video event clustering for semantic modeling; however, it remains primarily focused on static objects and isolated events, lacking semantic modeling at the structured event level, thus failing to capture structured temporal dynamics. For instance, although actions such as "grabbing a cup" and "grabbing a phone" differ in their visual manifestation, a model with event-level abstraction can generalize them into a unified "grabbing" event category and capture the semantic relationship between the action and the target object. Moreover, such a model can infer the structural role of an action within an event sequence, such as recognizing that "grabbing a bowl" often precedes the event of "serving food." This capability signifies a transition from isolated event recognition to structured event understanding. Therefore, we argue that transitioning from instance semantic recognition to cross-modal structured modeling is essential for constructing a unified visual pretraining framework. + +In this work, we propose UniViT, a cluster-driven unified self-supervised learning framework that effectively captures the structured semantics of both image spatial content and video temporal dynamics through event-level and object-level clustering and discrimination, as depicted in Fig. 1(c). Specifically, we design a two-stage cluster-discrimination training paradigm. In the clustering stage, we employ offline clustering to generate semantic for both modalities. For videos, we perform multi-granularity event-level clustering by densely sampling frames at multiple temporal scales, progressively organizing individual events into structured segments of multiple events, thus capturing coarse-to-fine temporal semantics. For static images and individual video frames, we employ object-level clustering extracts fine-grained spatial semantics. Subsequently, in the discrimination stage, we introduce a contrastive objective that utilizes these semantics as pseudo-label supervision to explicitly enforce structural constraints, including temporal relations among adjacent events and spatial co-occurrences among objects. This approach captures structured semantics beyond isolated categories, aligning dynamic and static semantic content within a unified representation space. + +The core of this method is to jointly model structured semantics across image and video modalities within a unified representation space, effectively bridging static spatial details and dynamic temporal relations. Therefore, UniViT introduces two critical components: (i) Unified Rotary Position Embedding (U-RoPE), decomposing positional embeddings into distinct spatial and temporal components through frequency-aware allocation, thereby facilitating position-invariant representation learning and enhancing stability of structured semantic representations during the discrimination stage; and (ii) Variable Spatiotemporal Streams $(\mathrm{VS}^2)$ , adapting to varying frame lengths, enabling the model to flexibly capture fine-grained spatial details and diverse temporal scales simultaneously. Notably, UniViT retains the original vision encoder without incurring extra inference costs. + +![](images/18dd4619c0034749523d493869bf1887f2a867eda3fd703f3f64439c92981848.jpg) +Figure 2: Overview of the UniViT framework for unified representation learning. Image and video inputs are processed by 2D/3D convolutions, with video features segmented into events. The resulting tokens are fed into a shared UniViT backbone with U-RoPE, followed by Attentive Pooling to produce a class-level representation for contrastive learning against memory bank class centers. + +Extensive experiments across varying model scales demonstrate that UniViT achieves state-of-the-art performance on multiple downstream tasks, including linear probing, attentive probing, image and video question answering, and spatial understanding. The contributions are summarized as follows: (i): We propose UniViT, a cluster-driven unified self-supervised learning framework that effectively captures the structured semantics of both image spatial content and video temporal dynamics through event-level and object-level clustering and discrimination. (ii): We introduce U-RoPE and VS² strategies to explicitly disentangle spatial-temporal positional embeddings and adaptively handle varying frame lengths, facilitating position-invariant and structured spatiotemporal representations. (iii): Extensive experiments across diverse model scales and tasks demonstrate that UniViT achieves state-of-the-art performance on multiple downstream tasks. + +# 2 Methodology + +Our goal is to achieve unified representation learning across image and video modalities (Fig. 2). + +Variable Spatiotemporal Streams $(\mathbf{VS}^2)$ . Given visual samples $X = \{x_{i}\}_{i = 1}^{N}$ , each sample $x_{i}$ is uniformly divided into non-overlapping patches, accommodating both images and videos in a unified manner. Specifically, each image sample $x_{i}\in \mathbb{R}^{H\times W\times 3}$ is partitioned into spatial patches of size $P\times P$ , while each video sample $x_{i}\in \mathbb{R}^{T\times H\times W\times 3}$ is partitioned into variable-length frame sequences $\{\mathcal{F}_{i,s}\}_{s = 1}^{S_i}$ , with each sequence $\mathcal{F}_{i,s}\in \mathbb{R}^{T_{i,s}\times H\times W\times 3}$ covering consecutive RGB frames (e.g., 1, 2, 4, 8, or 16 frames) over the same spatial regions, where $S_{i}$ denotes the number of sequences within the $i$ -th video. Subsequently, each sequence $\mathcal{F}_{i,s}$ is independently encoded via a shared Transformer-based encoder $\phi (\cdot)$ into spatiotemporal embedding tokens $Z_{i}$ : + +$$ +Z _ {i} = \left[ \phi \left(\mathcal {F} _ {i, 1}\right); \phi \left(\mathcal {F} _ {i, 2}\right); \dots ; \phi \left(\mathcal {F} _ {i, S _ {i}}\right) \right] \in \mathbb {R} ^ {M \times C}, \quad \text {w i t h} \quad M = \sum_ {s = 1} ^ {S _ {i}} M _ {s}. \tag {1} +$$ + +where $M_{s}$ and $C$ denote the number of embedding tokens and the embedding dimension for the $s$ -th sequence, respectively. The resulting tokens are projected into $D$ -dimensional vectors, forming token embeddings $E_{i} = \{e_{i,j}\}_{j=1}^{M} \in \mathbb{R}^{M \times D}$ that encode local visual features [21]. Subsequently, positional encodings are dynamically assigned using the VS $^2$ strategy. Therefore, this design enhances flexibility and spatiotemporal representational capacity. + +Event-level and Object-level Clustering. Iterative clustering-discrimination approaches commonly suffer from substantial computational overhead [14]. To address this issue, we adopt a single-step offline clustering to efficiently capture both object-level semantics from images and event-level semantics from videos. Specifically, image embeddings are obtained by pooling the features extracted from local object patches, $e_i^{obj} = e_i \in \mathbb{R}^D$ , while video embeddings which are derived from a fixed-length 16-frame input are obtained by concatenating frame-level features within each segment, yielding $e_{i,s}^{\mathrm{evt}} = [e_{i,1};\ldots ;e_{i,s}] \in \mathbb{R}^{s\times D}$ from variable-length sub-clips of $s \in \{1;2;\dots ;S_i\}$ . We define a set of shared semantic centroids $\mathcal{C} = \{c_k^{\mathrm{obj}}\}_{k = 1}^{K_{\mathrm{obj}}} \cup \{c_k^{\mathrm{evt}}\}_{k = 1}^{K_{\mathrm{evt}}} \subseteq \mathbb{R}^D$ , where $K = K_{\mathrm{obj}} + K_{\mathrm{evt}}$ represents the total number of clusters across both modalities. The clustering objective is then + +formulated separately for object and event embeddings: + +$$ +\mathcal {C} _ {\mathrm {u n i}} = \arg \min _ {\left\{c _ {k} ^ {\mathrm {o b j}}, c _ {k} ^ {\mathrm {e v t}} \right\}} \sum_ {i = 1} ^ {N} \left(\min _ {k \in [ 1, K _ {\mathrm {o b j}} ]} \left\| e _ {i} ^ {\mathrm {o b j}} - c _ {k} ^ {\mathrm {o b j}} \right\| _ {2} ^ {2} + \sum_ {s = 1} ^ {S _ {i}} \min _ {k \in [ 1, K _ {\mathrm {e v t}} ]} \left\| e _ {i, s} ^ {\mathrm {e v t}} - c _ {k} ^ {\mathrm {e v t}} \right\| _ {2} ^ {2}\right), \tag {2} +$$ + +where $N$ is the number of samples. $\mathcal{C}_{\mathrm{uni}}$ integrates object-level and event-level semantics for consistent representation learning. + +Unified Rotary Position Embedding (U-RoPE). Unlike traditional absolute position encoding defined as $p = (t,x,y)$ , U-RoPE adopts a relative scheme [53] $\Delta p = (t_1 - t_2, x_1 - x_2, y_1 - y_2)$ that supports position-invariant semantic learning, enabling better modeling of multi-event structures in videos. Specifically, the rotary position embedding is applied directly to the query-key dot-product attention matrix, i.e., $\mathbf{A}_{i,j} = (\mathbf{q}_i R_i)(\mathbf{k}_j R_j)^\top$ . For image inputs, the temporal position $t$ is fixed across the spatial grid $(x,y)$ . For video inputs, temporal positions vary across frames while spatial positions are computed the same way as for images. Existing methods, such as M-RoPE [60], typically allocate temporal position encodings with high-frequency components, determined by the rotary frequency $\theta_n = \beta^{-\frac{2n}{C}}$ . This allocation causes periodic oscillations, leading to unstable frame representations that conflict with dense label discrimination. Therefore, we propose a unified frequency allocation strategy that assigns global event-related temporal structures to smoother low-frequency components, while retaining high-frequency components for local spatial details: + +$$ +\Phi_ {S} = \left\{\beta^ {- \frac {2 (2 j + k)}{C}} \mid j \in [ 0, \frac {3}{4} L), k \in \{0, 1 \} \right\}, \quad \Phi_ {T} = \left\{\beta^ {- \frac {2 j}{C}} \mid j \in [ \frac {3}{4} L, L) \right\}, \tag {3} +$$ + +where $\Phi_S$ and $\Phi_T$ respectively denote the rotation frequencies used for spatial and temporal rotary applying to the $2L$ -dimensional embedding space, with $L = \frac{C}{2}$ , and $\beta$ represents the base frequency. + +Joint Training Objective. Visual samples commonly exhibit multiple semantic components, including object-level semantics from images and event-level semantics from videos, rendering single-label assignments inadequate for unified multimodal representation learning. To capture both object-level and event-level semantic structures, we introduce a contrastive objective that leverages these semantic clusters as pseudo-label supervision to explicitly enforce structural constraints. Specifically, for each visual embedding $e_i \in \mathbb{R}^D$ , we identify multiple positive semantic labels from the unified semantic centroid set $\mathcal{C}_{uni} \in \mathbb{R}^{(|\mathcal{C}_{obj}| + |\mathcal{C}_{evt}|) \times D}$ , consisting of both object-level $\mathcal{C}_{obj}$ and event-level $\mathcal{C}_{evt}$ centroids. The remaining centroids in this unified set are treated as negative labels. Subsequently, the joint multi-label semantic discrimination objective is formulated as: + +$$ +\mathcal {L} _ {\text {J o i n t}} = \sum_ {m \in \{o b j, e v t \}} \left[ \log \left(1 + \sum_ {j \in \Omega_ {n} ^ {m}} \exp \left(\sigma_ {j} ^ {m}\right)\right) + \log \left(1 + \sum_ {i \in \Omega_ {p} ^ {m}} \exp \left(- \sigma_ {i} ^ {m}\right)\right) \right], \tag {4} +$$ + +where $m \in \{obj,evt\}$ denotes the semantic granularity level, corresponding respectively to object-level (images or single frames) and event-level (video segments). $\Omega_p^m$ and $\Omega_n^m$ represent the sets of positive and negative semantic labels for granularity level $m$ , while $\sigma_i^m$ and $\sigma_j^m$ indicate embedding similarity scores to positive and negative semantic centroids, respectively. The embedding similarity score $\sigma_{u,k}^m$ is computed as $\sigma_{u,k}^m = e_u^\top c_k^m$ , where $u$ and $k$ index visual embeddings and semantic centroids within the corresponding positive or negative sets, respectively. This unified formulation leverages semantic clustering to capture spatiotemporal structures for discriminative embeddings. + +Unified Image and Video Understanding. As shown in Fig.3a, the frame-to-frame similarity under the multi-event setting is significantly lower than that of the single-event counterpart, indicating finer-grained temporal discrimination and better action segmentation. The lower training loss in Fig. 3b indicates that fine-grained temporal modeling in the multi-event setting benefits video understanding. In Fig. 3c, U-RoPE demonstrates faster convergence and improved stability over absolute position encoding and M-RoPE. By decoupling spatial and temporal dimensions and avoiding high-frequency temporal encoding, U-RoPE enables robust position-invariant learning across both images and videos. Fig. 3d illustrates the distribution of cosine similarity between image and video feature embeddings, indicating that video and image representations are related yet significantly different. + +# 3 Experiments + +# 3.1 Implementation Details. + +Pretraining Setup. Our models are pre-trained on the LAION400M[50], COYO700M[13], and InternVid[61]. We use 80 H800 GPUs for the training process. During training, we maintained a 1:1 + +![](images/d1d76a4be003c257d90a1c1e0b2c8f00cd854643ddc7e991d6e0f9a13f3e1012.jpg) +(a) Mean frame similarity. + +![](images/3290489635510111d01d7e32a4517bdb4090210d8cd25f1e0ec5d387d913d9ba.jpg) +(b) Loss cruve. + +![](images/cd2eb2bc9e10fb3b61a539f55eb4ebfee3ab7483f7141fb0e6b1bb35440c700d.jpg) +(c) U-RoPE +Figure 3: Analysis of multi-event approach. (a) Multi-event frames demonstrate significantly lower frame similarity (0.65 vs 0.75, indicating greater inter-frame distinctiveness that improves feature discrimination. (b) Multi-event processing substantially accelerates convergence speed, with higher frame counts (8-16) showing faster loss reduction compared to single or fewer frames. (c) U-RoPE enables better local semantic learning, resulting in lower loss compared to other methods. (d) Distribution of cosine similarity between image and video feature embeddings. + +![](images/ffefb9196320c358ba9e2690738f0e13896c1eaf0f22807c2d43d77eae4bd9a0.jpg) +(d) Image Video Similarity + +
MethodArch.ResolutionParamsData Images/VideoLanguage pre.Image TasksVideo Tasks
Avg.Food [12]CIFAR [36]EuroSAT [32]Resc45 [18]Caltech101 [62]Imagenet [49]Sum397 [63]Avg.K400 [35]K600 [16]K700 [51]HMD851 [37]UCF101 [52]RareAct [42]SSV2 [27]
Methods pretrained on Images
Sigclipv2 [58]ViT-B/1625686M10B✓90.595.294.793.190.995.483.281.258.271.370.959.066.392.231.316.3
ViT-L/16256303M10B✓92.696.597.294.594.396.084.185.363.977.377.566.571.795.039.819.4
ViT-SO400M224428M10B✓93.497.197.895.095.896.185.586.466.478.779.168.876.395.046.120.9
DINOv2 [44]ViT-S/1422422M145M✗85.989.390.292.485.691.082.370.349.260.360.249.856.587.216.414.3
ViT-B/1422487M145M✗89.395.194.792.190.493.583.176.456.766.966.954.363.891.638.814.5
ViT-L/14224311M145M✗91.495.296.494.391.295.484.782.456.567.567.554.264.391.835.614.6
CLIP [48]ViT-B/1622486M400M✓89.093.092.492.490.895.681.477.156.567.467.154.266.988.137.514.0
ViT-L/14224304M400M✓91.695.794.294.593.495.783.284.763.774.874.263.271.392.653.116.8
I-JEPA [7]ViT-H/14224631M22K✗83.076.394.789.779.592.380.168.440.648.646.634.156.383.92.012.4
ViT-g/162241011M22K✗85.078.995.190.483.793.783.370.241.548.947.235.358.283.13.913.8
MLCD [4]ViT-L/14336304M1.1B✗92.996.897.895.095.295.784.385.466.878.878.968.280.497.146.917.4
Methods pretrained on Videos
V-JEPA [10]ViT-L/16224312M2M✗--------57.062.363.249.277.795.46.344.9
ViT-H/16224649M2M✗--------56.159.360.546.983.094.44.044.8
LanguageBind [73]ViT-L/14224407M3M✓--------60.072.172.360.371.993.333.816.4
VideoMAEV2 [59]ViT-g/142241012M1.35M✗--------35.339.842.629.430.675.01.627.9
Methods pretrained on Image and Video
PE-Core [11]ViT-B/1622493M5.4B/22M✓89.994.092.792.991.294.484.280.154.066.666.253.665.990.319.415.9
ViT-L/14336317M5.4B/22M✓92.196.794.594.893.695.385.384.667.679.679.869.477.796.847.522.5
ViT-G/144481882M5.4B/22M✓93.196.997.795.693.995.786.285.468.481.581.772.180.597.342.223.7
UniViTViT-S/1622426M1.1B/60M✗85.588.985.592.587.491.481.371.552.065.664.950.959.489.618.115.6
ViT-B/1622499M1.1B/60M✗89.091.492.693.190.294.283.178.261.974.774.861.570.294.832.025.1
ViT-L/14224334M1.1B/60M✗91.895.295.594.793.195.484.284.568.382.983.072.481.497.333.827.3
ViT-L/14336334M1.1B/60M✗92.895.197.795.193.795.785.486.573.184.184.273.383.598.256.332.1
+ +Table 1: Attentive Probe Evaluation under few-shot settings for label efficiency analysis. Bold indicates the best performance. + +ratio between images and video frames, with an image batch size of 16K and a video batch size of 2K (each video containing 16 frames). In total, our model is exposed to approximately 20B image frames throughout the training. For our standard model, we use 224 resolution images. For the 336 resolution variant, we first train the model at 224 resolution, then increase it to 336 and continue training for an additional 1B frames. We utilize the AdamW optimizer with a learning rate of 0.001 and weight decay of 0.2. The number of classes $(k)$ is one million, the ratio of sampled negative class centers $(r)$ is 0.1, and the number of positive labels $(l)$ assigned to each image and video is 8. + +Multimodal Setup. For our multimodal large language model evaluations, we adopt the LLaVA-NeXT [41] framework while maintaining experimental consistency. All training methodologies precisely follow the original LLaVA-NeXT-Video implementation, utilizing identical pretraining datasets and instruction-tuning data. We employ Qwen2.5-7B [68] as our language model backbone, which effectively mitigates potential hyperparameter biases that might favor OpenAI-CLIP in the original LLaVA-NeXT-Video configuration. This controlled experimental design ensures fair comparison when evaluating the performance of our vision encoders within multimodal systems. + +# 3.2 Comparisons with Existing Vision Encoders + +Attentive Probing Results. We evaluate the comprehensive ability of UniViT across 14 standard benchmarks, covering a wide range of semantic and vision-centric tasks, using a 50-shot attentive + +
MethodArch.ResolutionParamsDelta Images/VideosLanguage pre.Image TasksVideo Tasks
Avg.Food [12]CIFAR [36]EuroSAT [32]Resc45 [18]Caltech101 [62]Imagenet [49]Sun397 [63]Avg.K400 [35]K600 [16]K700 [51]HMDB51 [37]UCF101 [52]RareAct [42]SSV2 [27]
Methods pretrained on Images
Sigclipv2 [58]ViT-B/1625686M10B✓93.794.696.798.393.198.583.591.356.372.473.660.263.790.612.521.1
ViT-L/16256303M10B✓94.396.297.898.293.198.685.291.359.476.578.266.266.893.112.522.7
ViT-SO400M224428M10B✓94.796.498.297.894.098.685.792.266.578.679.768.868.094.453.123.2
DINOv2 [44]ViT-S/1422422M145M✗90.689.197.798.184.497.081.186.952.262.662.949.053.582.937.517.2
ViT-B/1422487M145M✗92.192.898.798.186.196.184.588.159.068.970.657.361.789.946.918.0
ViT-L/14224311M145M✗93.694.399.498.590.197.586.389.061.073.774.163.164.491.840.619.6
CLIP [48]ViT-B/1622486M400M✓91.892.295.997.890.996.380.289.258.370.371.757.764.488.537.518.0
ViT-L/14224304M400M✓93.895.098.198.693.397.483.990.564.476.477.865.864.892.853.119.8
I-JEPA [7]ViT-H/14224631M22K✗86.174.198.398.678.695.679.378.041.849.450.237.546.974.118.815.5
ViT-g/162241011M22K✗87.977.798.298.782.595.882.180.642.049.650.437.747.774.718.815.1
MLCD [4]ViT-S/1622422M1.1B✗88.784.094.298.587.992.979.184.638.948.149.638.336.761.425.013.0
ViT-B/1622486M1.1B✗91.789.897.698.790.895.882.386.948.358.960.748.446.579.928.115.6
ViT-L/14224304M1.1B✗91.487.297.298.889.395.685.486.058.171.472.860.060.288.337.516.7
ViT-L/14336304M1.1B✗94.996.299.499.194.597.986.391.062.276.076.264.162.592.246.917.5
Methods pretrained on Videos
LanguageBind [73]ViT-L/14224407M3M✓--------63.674.475.162.571.192.946.922.1
Methods pretrained on Image and Videos
PE-Core [11]ViT-B/1622493M5.4B/22M✓93.493.298.198.892.997.283.490.558.169.571.256.866.088.737.516.9
ViT-L/14336317M5.4B/22M✓95.096.299.498.893.698.086.792.063.774.575.462.269.192.453.119.0
ViT-G/144481882M5.4B/22M✓95.296.399.398.193.597.989.592.168.680.881.170.473.494.756.323.2
UniViTViT-S/1622426M1.1B/60M✗91.087.795.898.890.596.480.487.356.067.668.854.056.687.640.616.8
ViT-B/1622499M1.1B/60M✗92.290.197.198.992.296.383.187.560.875.777.363.266.093.128.122.3
ViT-L/14224334M1.1B/60M✗94.394.898.899.093.898.185.690.267.184.385.374.564.192.243.825.5
ViT-L/14336334M1.1B/60M✗94.996.698.999.094.998.486.590.272.085.385.474.978.196.656.327.4
+ +Table 2: Linear Probe Evaluation. Bold indicates the best performance. + +![](images/4ead013ea478fec156416f0a30fc51c55501f21855c8ef7cc4209bed27e8d8b7.jpg) +Figure 4: Comparisons of UniViT and existing vision encoders across diverse multimodal image and video benchmarks, highlighting UniViT's superior unified representation capabilities. + +probing setup, which allows us to measure feature quality without extensive task-specific finetuning. As shown in Table 1, our model achieves state-of-the-art performance on multiple standard benchmarks, including object classification, scene recognition, and fine-grained categorization. + +Linear Probing Results. As shown in Table 2, we report performance on the same set of benchmarks as in attentive probe, this time using a standard linear probing setup instead. The trend aligns closely with the attentive probe results; our UniViT achieves state-of-the-art performance on both semantic and non-semantic tasks, further validating the quality and generality of the learned representations. + +All experimental settings for the compared models strictly follow their original implementations to ensure fair comparison. Under this consistent protocol, despite being pretrained without pixel-level or feature-level supervision (e.g., MAE, JEP), our UniViT still achieves strong visual understanding across a wide range of vision-centric tasks. Notably, previous video encoders cannot handle static images, while image encoders struggle with temporally dependent tasks (e.g., SSV2). In contrast, UniViT leverages a unified representation space that captures both spatial and temporal patterns, enabling strong performance across image and video domains. This demonstrates the generalization capability of our architecture, which is designed for unified representation learning across modalities. + +UniViT as a Vision Encoder for MLLMs. In this section, we evaluate our unified vision encoder, UniViT, which is designed to seamlessly handle both image and video modalities. We conduct comprehensive experiments on a diverse set of benchmarks to assess the model's ability to learn shared semantic representations across static and temporal inputs. The evaluation is performed within the LLaVA-NeXT-Video framework under consistent and controlled settings to ensure fair comparison. We benchmark UniViT on 18 datasets spanning four major domains: General VQA and Knowledge VQA. These datasets cover both image-based and video-based VQA tasks, providing + +![](images/7463b6141d3dff518d3fd04b2c94e5fada937eae1463be5170d4215131c17ee6.jpg) +Figure 6: PCA visualization of patch features extracted by our UniViT. Patches displaying similar colors indicate semantic similarities, reflecting that they embody analogous elements or attributes. + +a holistic view of the model's multimodal reasoning capability. As summarized in Fig. 4, UniViT achieves strong and consistent performance across all categories, notably outperforming conventional single-modality baselines such as CLIP and SigLIP. At a resolution of $336\mathrm{px}$ , UniViT surpasses CLIP on 17 out of 18 benchmarks. Importantly, UniViT demonstrates robust performance across both Image-VQA and Video-VQA, highlighting its versatility and effectiveness in learning generalizable multimodal semantics. Notably, these results are achieved without any language supervision, further demonstrating the strength of our unified framework in capturing cross-modal visual understanding. This positions UniViT as a practical and scalable solution for real-world multimodal applications. + +Scaling Behavior. To investigate the scalability of our unified vision encoder, we conduct a systematic analysis of its performance across varying configurations using an attentive probe protocol on both image and video tasks. Rather than comparing against other paradigms, we focus on the internal scaling behavior of our framework along three progressive dimensions: (1) increasing training data volume, (2) expanding model capacity, and (3) increasing input resolution. + +As illustrated in Fig. 5, we analyze the scaling behavior of UniViT on video tasks by averaging performance scores from seven video datasets. This provides a stable estimate of performance trends specific to video understanding. This controlled design allows us to isolate and examine the contribution of each scaling factor. We observe consistent and meaningful improvements at all stages. Increasing data volume leads to noticeable gains for both modalities, suggesting that enhanced data diversity improves unified semantic modeling. Expanding model capacity, from small to large variants, further boosts representation quality, with more pronounced benefits on fine-grained tasks. Higher input resolution also contributes positively to overall performance, especially in video tasks where capturing spatial continuity across frames is crucial for robust representation learning. Compared to existing models, our approach exhibits more efficient scaling behavior, with larger variants + +![](images/8652d09a8513f96f5fa7deecdf6687b9fdb3a9184be11287eb05b81d2a2d16d3.jpg) +Figure 5: Scaling Behavior: Performance scalability of UniViT across model capacities, training data volumes, and input resolutions. Average accuracy across multiple video tasks demonstrates consistent improvements with increased scale. + +delivering consistently stronger improvements across video tasks. These results demonstrate that our model scales effectively with standard training resources while maintaining strong generalization across diverse video benchmarks. + +# 4 Ablation Study + +Pretraining Strategy. As shown in Table 3a and 3b, we conduct ablation studies to analyze the impact of robust pretraining strategies and position embedding designs. In Table 3a, we progressively apply modifications including attentive pooling, and stronger data augmentation. Each contributes positively to K400 and SSV2, highlighting the importance of stable pretraining for video understanding. In Table 3b, we compare different designs for position embedding. We find that moving from absolute + +
DataK400SSV2
Baseline64.115.0
+Atten Pool65.215.5
+Data Aug65.615.6
+ +(a) Pretraining Strategy. The effects attentive pooling, and data augmentation. + +
MethodK400SSV2
Abs + ViT64.213.9
Abs + 2DRoPE64.714.3
M-RoPE65.115.2
U-RoPE65.615.6
+ +(b) Position Embedding. Comparison of absolute position, 2D, 3D, and unified RoPE strategies. + +
FramesK400SSV2
Baseline62.713.2
+864.414.2
+4,865.215.3
+1,2,4,865.615.6
+ +(c) Varing Frames with Multi-Event. Pretraining at varying frames with multi-event. + +
MethodK400SSV2
only Obj.62.312.5
only Evt.61.911.3
Obj.+Evt.62.713.2
Obj.+Multi-Evt.65.615.6
+ +(d) Clustering Strategy. Perform clustering at the Event-level and Object-level. + +
Num ClassesK400SSV2
500k65.215.5
1M65.615.6
2M65.815.5
5M65.215.4
+ +(e) Classes Number. The number of classes during event-level and object-level clustering. +Table 3: Ablation experiments on K400 and SSV2 under few-shot settings. (a) Pretraining strategies. (b) Position embeddings. (c) Multi-event frame sampling. (d) Semantic clustering strategies. (e) Number of clustering classes. The entries marked in gray are the same, which specify the default settings. + +position embedding to 2D-RoPE with 1d-absolutioe position and 3D-RoPE leads to substantial performance gains, with 3D-RoPE achieving better results. This suggests that temporal embedding better captures motion dynamics. Our U-RoPE decouples spatial and temporal dimensions during embedding, enabling more flexible handling of both image and video modalities, and achieves the best overall performance. + +Effect of Variable Spatiotemporal Streams. We begin with a baseline where the model is pretrained using only 16-frame video clips. To enhance temporal modeling, we introduce variable-length frame inputs (e.g., 1, 2, 4, 8, 16 frames) with dense labels, as shown in Table 3c. On K400, performance remains stable across frame combinations. In contrast, the more temporally complex SSV2 benefits notably from dense supervision with diverse frame counts, suggesting it helps capture short-range temporal dynamics. To qualitatively assess the short-range temporal robustness of our model, we visualize patch-level features using PCA, as shown in Fig. 6. The model produces consistent local semantic representations across a variety of image and video inputs, demonstrating strong spatial grounding and frame-invariant semantic encoding. Together, these findings validate the effectiveness of our variable-frame pretraining strategy and highlight the model's generalization capability. + +Qualitative Analysis of Frame-Agnostic Semantics. We visualize the object-level feature distribution using T-SNE projection on K400, comparing both image and video samples. As shown in Fig. 7, our model produces well-formed and compact clusters, where image and video instances from the same semantic class are consistently grouped together. This indicates a strong alignment of visual representations across modalities. The tight intra-class clusters and clear inter-class boundaries demonstrate the model's ability to abstract high-level semantics that are shared between static and temporal visual data. Compared to the State of the Art model, such as SigLIP2 and DINOv2, our method achieves superior intra-class compactness and inter-class separation, highlighting its strength in learning modality-invariant and semantically consistent features. + +The Effect of Clustering. To investigate the impact of different clustering strategies on video understanding, we perform ablation studies at both the event and object levels. As shown in Table 3d, using only object-level clustering achieves $62.3\%$ on K400 and $12.5\%$ on SSV2. Clustering only at the event level yields similar performance. However, combining object-level and event-level clustering leads to consistent improvements on both benchmarks (62.7% and $13.2\%$ ), indicating that the two levels provide complementary information. Furthermore, when we extend to multi-granularity event clustering (Obj.+Multi-Evt.), the performance improves further, achieving the best results on both datasets (65.6% and $15.6\%$ ). These results demonstrate that clustering at varying event granularities, in combination with object-level semantics, significantly enhances video understanding. + +![](images/ffe97fe4cfa76c182d432d94bd06c421ca242b61dea6619fc2aa571874398fba.jpg) +UniViT + +![](images/61f5c9d2ff1cca2c6a1523cf593e34a5d9a3f418e398b60bc457e1c5436bc99e.jpg) +MCLD + +![](images/c657acc5097cd6d89610c34d0696e8e38681a637d960e1252068b11cd672b562.jpg) +V-JEPA +Figure 7: Visualization of object feature distributions using T-SNE projection onto a spherical space on K400 and K700 dataset. Class tokens serve as query vectors for QKV computation. + +![](images/d2f32ef9040b296d6a6935c1f27bed1e1cbdc838eed275320130521a1bc1dfc6.jpg) +I-JEPA + +![](images/e534d0ba2def34ab8921001d073c2aad46c457052d5ea8839717c4859680e003.jpg) +DINOv2 + +![](images/dc35d64d4651035a0c485aeb3beef92b97adbbfd2c46a1615f2bab5c759ca1fe.jpg) +SigLip2 + +Impact of Number of Class Choices. As shown in Table 3e, we jointly vary the number of training classes. We observe that performance improves as both values increase, peaking at 1M classes. Interestingly, despite the significant increase in video data, the optimal number of classes aligns with that used in large-scale image pretraining, suggesting that current video datasets exhibit relatively low semantic diversity. At the same time, assigning multiple positives per sample proves beneficial for learning richer and more robust representations, especially in complex temporal tasks such as SSV2. + +# 5 Related Work + +Advances in Visual Representation Learning. The adoption of Vision Transformers [21, 39] has become a prevailing paradigm in the field of visual representation learning. Concurrently, equivariant self-supervised learning approaches [20, 45, 26, 29, 19] have emerged to predict structured data transformations consistent with group-theoretic formulations. Masked image modeling methods [30, 9, 22, 65] acquire visual representations by reconstructing masked regions of the input image in the pixel space. Moreover, JEPAs [6, 8] predict masked regions within a learned latent space rather than in the raw pixel domain. Contrastive Language-Image Pretraining (CLIP) [11, 55, 40, 24, 67, 50] aligns images and texts within a shared embedding space through instance-level contrastive supervision. However, existing approaches predominantly focus on either static image understanding or spatiotemporal modeling in isolation. In this work, UniViT structuring a shared semantic space for images and videos by modeling intra- and inter-instance, effective transfer to downstream tasks. + +Cluster Discrimination. Instance discrimination methods [17, 31, 47], exemplified by CLIP [47, 69, 28], leverage instance-level contrastive supervision but neglect semantic similarities across instances, whereas cluster-based approaches [14, 5, 15] assign single pseudo-labels per sample, failing to adequately represent images containing multiple visual elements. To better capture semantic structures, cluster discrimination methods [14, 5, 72, 15] typically iteratively assign pseudo-labels through clustering and train classifiers based on these labels, grouping visually similar instances to encourage semantic coherence. However, conventional approaches assign only a single pseudo-label per image, limiting their capacity to represent multiple semantic concepts within one instance, an issue recently addressed by multi-label clustering methods such as Unicom [2] and MLCD [4]. In this work, we adopt multi-label clustering to unify the representation learning of images and videos, effectively enhancing the semantic coherence. + +Efficient Training. Recent literature has explored various strategies for efficient CLIP training, such as large-batch optimization (up to 160K) [46, 50] and specialized optimizers like LAMB[56, 70]. RoPE originally designed for language models [54], has also been adapted to vision transformers via two-dimensional extensions [33, 1]. Additionally, significant efforts have focused on effective data curation and filtering at scale [25, 50, 24, 67], as well as image recaption using MLLMs [23, 38, 43, 66, 57, 3]. Motivated by these advances, we extend these methodologies to video data, constructing a unified data engine that facilitates robust representation learning across both images and videos. + +# 6 Conclusion & Limitation + +In this paper, we introduced UniViT, a cluster-driven unified self-supervised learning framework designed to jointly capture structured semantics across both spatial and temporal modalities through clustering and discrimination. Leveraging multi-granularity event-level clustering for videos and object-level clustering for images, UniViT first constructs structured semantic clusters across modalities during the clustering stage. Subsequently, in the discrimination stage, UniViT explicitly incorporates these clusters as pseudo-labels into a contrastive objective, effectively integrating structured semantic representations into a unified embedding space. To address limitations inherent to traditional + +position encoding and fixed-input approaches, we further introduced U-RoPE and VS $^2$ , enhancing semantic stability and flexibility across modalities. Extensive evaluations across multiple benchmarks demonstrate UniViT's superior scalability and its ability to achieve state-of-the-art performance on various downstream tasks, highlighting its effectiveness in unified visual representation learning. + +**Limitation:** We clarify the limitations of our proposed UniViT: $(i)$ : UniViT relies on offline clustering with pretrained embeddings, potentially introducing biases from the initial feature extraction model and limiting its ability to adaptively update cluster assignments during training. $(ii)$ : Although our VS $^2$ strategy supports flexible temporal lengths and arbitrary input resolutions, long sequences or extremely high-resolution inputs may still incur substantial computational costs, potentially constraining practical scalability in resource-limited scenarios. + +# 7 Acknowledgments + +This work was supported by the Center of Excellence for Antimicrobial Therapeutics Discovery and Innovation (CEATDI), Grant No. 8002003. + +# References + +[1] Pravesh Agrawal, Szymon Antoniak, Emma Bou Hanna, Baptiste Bout, Devendra Chaplot, Jessica Chudnovsky, Diogo Costa, Baudouin De Monicault, Saurabh Garg, Theophile Gervet, Soham Ghosh, Amélie Héliou, Paul Jacob, Albert Q. Jiang, Kartik Khandelwal, Timothee Lacroix, Guillaume Lample, Diego Las Casas, Thibaut Lavril, Teven Le Scao, Andy Lo, William Marshall, Louis Martin, Arthur Mensch, Pavankumar Muddireddy, Valera Nemychnikova, Marie Pellat, Patrick Von Platen, Nikhil Raghuraman, Baptiste Rozière, Alexandre Sablayrolles, Lucile Saulnier, Romain Sauvestre, Wendy Shang, Roman Soletskyi, Lawrence Stewart, Pierre Stock, Joachim Studnia, Sandeep Subramanian, Sagar Vaze, Thomas Wang, and Sophia Yang. Pixtral 12b. arXiv:2410.07073, 2024. +[2] Xiang An, Jiankang Deng, Kaicheng Yang, Jaiwei Li, Ziyong Feng, Jia Guo, Jing Yang, and Tongliang Liu. Unicom: Universal and compact representation learning for image retrieval. In ICLR, 2023. +[3] Xiang An, Yin Xie, Kaicheng Yang, Wenkang Zhang, Xiuwei Zhao, Zheng Cheng, Yirui Wang, Songcen Xu, Changrui Chen, Chunsheng Wu, et al. Llava-onevision-1.5: Fully open framework for democratized multimodal training. arXiv preprint arXiv:2509.23661, 2025. +[4] Xiang An, Kaicheng Yang, Xiangzi Dai, Ziyong Feng, and Jiankang Deng. Multi-label cluster discrimination for visual representation learning. In European Conference on Computer Vision, pages 428-444. Springer, 2024. +[5] Yuki Markus Asano, Christian Rupprecht, and Andrea Vedaldi. Self-labelling via simultaneous clustering and representation learning. arXiv preprint arXiv:1911.05371, 2019. +[6] Mahmoud Assran, Quentin Duval, Ishan Misra, Piotr Bojanowski, Pascal Vincent, Michael Rabbat, Yann LeCun, and Nicolas Ballas. Self-supervised learning from images with a joint-embedding. pages 15619–15629, 2023. +[7] Mahmoud Assran, Quentin Duval, Ishan Misra, Piotr Bojanowski, Pascal Vincent, Michael Rabbat, Yann LeCun, and Nicolas Ballas. Self-supervised learning from images with a joint-embedding predictive architecture, 2023. +[8] Alexei Baevski, Wei-Ning Hsu, Qiantong Xu, Arun Babu, Jiatao Gu, and Michael Auli. Data2vec: A general framework for self-supervised learning in speech, vision and language. arXiv preprint arXiv:2202.03555, 2022. +[9] Hangbo Bao, Li Dong, and Furu Wei. Beit: Bert pre-training of image transformers. arXiv preprint arXiv:2106.08254, 2021. +[10] Adrien Bardes, Quentin Garrido, Jean Ponce, Xinlei Chen, Michael Rabbat, Yann LeCun, Mahmoud Assran, and Nicolas Ballas. Revisiting feature prediction for learning visual representations from video, 2024. +[11] Daniel Bolya, Po-Yao Huang, Peize Sun, Jang Hyun Cho, Andrea Madotto, Chen Wei, Tengyu Ma, Jiale Zhi, Jathushan Rajasegaran, Hanoona Rasheed, et al. Perception encoder: The best visual embeddings are not at the output of the network. arXiv preprint arXiv:2504.13181, 2025. +[12] Lukas Bossard, Matthieu Guillaumin, and Luc Van Gool. Food-101 – Mining discriminative components with random forests. In ECCV, 2014. +[13] Minwoo Byeon, Beomhee Park, Haecheon Kim, Sungjun Lee, Woonhyuk Baek, and Saehoon Kim. Coyo-700m: Image-text pair dataset. https://github.com/kakaobrain/coyo-dataset, 2022. +[14] Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In ECCV, 2018. +[15] Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. arXiv preprint arXiv:2006.09882, 2020. +[16] Joao Carreira, Eric Noland, Andras Banki-Horvath, Chloe Hillier, and Andrew Zisserman. A short note about kinetics-600, 2018. +[17] Ting Chen, Simon Kornblith, Kevin Swersky, Mohammad Norouzi, and Geoffrey Hinton. Big self-supervised models are strong semi-supervised learners. arXiv preprint arXiv:2006.10029, 2020. +[18] Gong Cheng, Junwei Han, and Xiaoqiang Lu. Remote sensing image scene classification: Benchmark and state of the art. Proceedings of the IEEE, 2017. + +[19] Rumen Dangovski, Li Jing, Charlotte Loh, Seungwook Han, Akash Srivastava, Brian Cheung, Pulkit Agrawal, , and Marin Soljačić. Equivariant contrastive learning. arXiv preprint arXiv:2111.00899, 2111. +[20] Alexandre Devillers and Mathieu Lefort. Equimod: An equivariance module to improve self-supervised learning. arXiv preprint arXiv:2211.01244, 2023. +[21] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In ICLR, 2021. +[22] Alaaeldin El-Nouby, Michal Klein, Shuangfei Zhai, Miguel Angel Bautista, Alexander Toshev, Vaishaal Shankar, Joshua M Susskind, and Armand Joulin. Scalable pre-training of large autoregressive image models. arXiv preprint arXiv:2401.08541, 2024. +[23] Lijie Fan, Dilip Krishnan, Phillip Isola, Dina Katabi, and Yonglong Tian. Improving CLIP training with language rewrites. In NeurIPS, 2023. +[24] Alex Fang, Albin Madappally Jose, Amit Jain, Ludwig Schmidt, Alexander Toshev, and Vaishaal Shankar. Data filtering networks. In ICLR, 2024. +[25] Samir Yitzhak Gadre, Gabriel Ilharco, Alex Fang, Jonathan Hayase, Georgios Smyrnis, Thao Nguyen, Ryan Marten, Mitchell Wortsman, Dhruba Ghosh, Jieyu Zhang, Eyal Orgad, Rahim Entezari, Giannis Daras, Sarah Pratt, Vivek Ramanujan, Yonatan Bitton, Kalyani Marathe, Stephen Mussmann, Richard Vencu, Mehdi Cherti, Ranjay Krishna, Pang Wei Koh, Olga Saukh, Alexander Ratner, Shuran Song, Hannaneh Hajishirzi, Ali Farhadi, Romain Beaumont, Sewoong Oh, Alex Dimakis, Jenia Jitsev, Yair Carmon, Vaishaal Shankar, and Ludwig Schmidt. DataComp: In search of the next generation of multimodal datasets. In NeurIPS, 2023. +[26] Quentin Garrido, Laurent Najman, and Yann Lecun. Self-supervised learning of split invariant equivariant. Proceedings of Machine Learning Research, pages 10975-10996, 2023. +[27] Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzynska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Fruend, Peter Yianilos, Moritz Mueller-Freitag, Florian Hoppe, Christian Thurau, Ingo Bax, and Roland Memisevic. The "something something" video database for learning and evaluating visual common sense. In Proceedings of the IEEE international conference on computer vision, pages 5842-5850, 2017. +[28] Tiancheng Gu, Kaicheng Yang, Xiang An, Ziyong Feng, Dongnan Liu, Weidong Cai, and Jiankang Deng. Rwkv-clip: A robust vision-language representation learner. arXiv:2406.06973, 2024. +[29] Sharut Gupta, Joshua Robinson, Derek Lim, Soledad Villar, and Stefanie Jegelka. Structuring representation geometry with rotationally equivariant. 2023. +[30] Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár, and Ross Girshick. Masked autoencoders are scalable vision learners. arXiv preprint arXiv:2111.06377, 2021. +[31] Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9729-9738, 2020. +[32] Patrick Helber, Benjamin Bischke, Andreas Dengel, and Damian Borth. Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2019. +[33] Byeongho Heo, Song Park, Dongyoon Han, and Sangdoo Yun. Rotary position embedding for vision transformer. In ECCV, 2024. +[34] Peng Jin, Ryuichi Takanobu, Wancai Zhang, Xiaochun Cao, and Li Yuan. Chat-univi: Unified visual representation empowers large language models with image and video understanding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13700-13710, 2024. +[35] Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, Mustafa Suleyman, and Andrew Zisserman. The kinetics human action video dataset. arXiv:1705.06950, 2017. +[36] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, 2009. + +[37] Hildegard Kuehne, Hueihan Jhuang, Estíbaliz Garrote, Tomaso Poggio, and Thomas Serre. HMDB: a large video database for human motion recognition. In ICCV, 2011. +[38] Zhengfeng Lai, Haotian Zhang, Bowen Zhang, Wentao Wu, Haoping Bai, Aleksei Timofeev, Xianzhi Du, Zhe Gan, Jiulong Shan, Chen-Nee Chuah, Yinfei Yang, and Meng Cao. VeCLIP: Improving CLIP training via visual-enriched captions. In ECCV, 2024. +[39] Kunchang Li, Yali Wang, Peng Gao, Guanglu Song, Yu Liu, Hongsheng Li, and Yu Qiao. Uniformer: Unified transformer for efficient spatiotemporal representation learning. arXiv preprint arXiv:2201.04676, 2022. +[40] Xianhang Li, Zeyu Wang, and Cihang Xie. CLIPA-v2: Scaling CLIP training with 81.1% zero-shot imagenet accuracy within a $10,000 budget; an extra $4,000 unlocks 81.8% accuracy. arXiv:2306.15658, 2023. +[41] Haotian Liu, Chunyuan Li, Yuheng Li, Bo Li, Yuanhan Zhang, Sheng Shen, and Yong Jae Lee. Llava-last: Improved reasoning,OCR, and world knowledge, 2024. +[42] Antoine Miech, Jean-Baptiste Alayrac, Ivan Laptev, Josef Sivic, and Andrew Zisserman. Rareact: A video dataset of unusual interactions, 2020. +[43] Thao Nguyen, Samir Yitzhak Gadre, Gabriel Ilharco, Sewoong Oh, and Ludwig Schmidt. Improving multimodal datasets with image captioning. In NeurIPS, 2023. +[44] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mido Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Hervé Jégou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOV2: Learning robust visual features without supervision. TMLR, 2024. +[45] Jung Yeon Park, Ondrej Biza, Linfeng Zhao, Jan Willem van de Meent, and Robin Walters. Learning symmetric embeddings for equivariant world models. arXiv preprint arXiv:2204.11371, 2022. +[46] Hieu Pham, Zihang Dai, Golnaz Ghiasi, Kenji Kawaguchi, Hanxiao Liu, Adams Wei Yu, Jiahui Yu, Yi-Ting Chen, Minh-Thang Luong, Yonghui Wu, Mingxing Tan, and Quoc V. Le. Combined scaling for zero-shot transfer learning. Neurocomputing, 2023. +[47] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In ICML, 2021. +[48] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In ICML, 2021. +[49] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211-252, 2015. +[50] Christoph Schuhmann, Romain Beaumont, Richard Vencu, Cade W Gordon, Ross Wightman, Mehdi Cherti, Theo Coombes, Aarush Katta, Clayton Mullis, Mitchell Wortsman, Patrick Schramowski, Srivatsa R Kundurthy, Katherine Crowson, Ludwig Schmidt, Robert Kaczmarczyk, and Jenia Jitsev. LAION-5b: An open large-scale dataset for training next generation image-text models. In NeurIPS Datasets and Benchmarks, 2022. +[51] Lucas Smaira, João Carreira, Eric Noland, Ellen Clancy, Amy Wu, and Andrew Zisserman. A short note on the kinetics-700-2020 human action dataset, 2020. +[52] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv:1212.0402, 2012. +[53] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024. +[54] Jianlin Su, Yu Lu, Shengfeng Pan, Bo Wen, and Yunfeng Liu. RoFormer: Enhanced transformer with rotary position embedding. Neurocomputing, 2024. +[55] Quan Sun, Yuxin Fang, Ledell Wu, Xinlong Wang, and Yue Cao. EVA-CLIP: Improved training techniques for clip at scale. arXiv:2303.15389, 2023. + +[56] Quan Sun, Jinsheng Wang, Qiying Yu, Yufeng Cui, Fan Zhang, Xiaosong Zhang, and Xinlong Wang. EVA-CLIP-18B: Scaling clip to 18 billion parameters. arXiv:2402.04252, 2024. +[57] Feilong Tang, Chengzhi Liu, Zhongxing Xu, Ming Hu, Zile Huang, Haochen Xue, Ziyang Chen, Zelin Peng, Zhiwei Yang, Sijin Zhou, et al. Seeing far and clearly: Mitigating hallucinations in mllms with attention causal decoding. In CVPR, 2025. +[58] Michael Tschannen, Alexey Gritsenko, Xiao Wang, Muhammad Ferjad Naeem, Ibrahim Alabdulmohsin, Nikhil Parthasarathy, Talfan Evans, Lucas Beyer, Ye Xia, Basil Mustafa, Olivier Henaff, Jeremiah Harmsen, Andreas Steiner, and Xiaohua Zhai. SigLIP 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features. arXiv:2502.14786, 2025. +[59] Limin Wang, Bingkun Huang, Zhiyu Zhao, Zhan Tong, Yinan He, Yi Wang, Yali Wang, and Yu Qiao. Videomae v2: Scaling video masked autoencoders with dual masking. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14549-14560, 2023. +[60] Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, et al. Qwen2-vl: Enhancing vision-language model's perception of the world at any resolution. arXiv preprint arXiv:2409.12191, 2024. +[61] Yi Wang, Yinan He, Yizhuo Li, Kunchang Li, Jiashuo Yu, Xin Ma, Xinhao Li, Guo Chen, Xinyuan Chen, Yaohui Wang, et al. Internvid: A large-scale video-text dataset for multimodal understanding and generation. arXiv:2307.06942, 2023. +[62] Peter Welinder, Steve Branson, Takeshi Mita, Catherine Wah, Florian Schroff, Serge Belongie, and Pietro Perona. Caltech-ucsd birds 200. 2010. +[63] Jianxiong Xiao, Krista A. Ehinger, James Hays, Antonio Torralba, and Aude Oliva. Sun database: Exploring a large collection of scene categories. International Journal of Computer Vision, 119:3-22, 2014. +[64] Yin Xie, Kaicheng Yang, Xiang An, Kun Wu, Yongle Zhao, Weimo Deng, Zimin Ran, Yumeng Wang, Ziyong Feng, Roy Miles, et al. Region-based cluster discrimination for visual representation learning. In ICCV, 2025. +[65] Zhenda Xie, Zheng Zhang, Yue Cao, Yutong Lin, Jianmin Bao, Zhuliang Yao, Qi Dai, , and Han Hu. Simmim: A simple framework for masked image modeling. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022. +[66] Hu Xu, Po-Yao Huang, Xiaqing Ellen Tan, Ching-Feng Yeh, Jacob Kahn, Christine Jou, Gargi Ghosh, Omer Levy, Luke Zettlemoyer, Wen tau Yih, Shang-Wen Li, Saining Xie, and Christoph Feichtenhofer. Altogether: Image captioning via re-aligning alt-text. In EMNLP, 2024. +[67] Hu Xu, Saining Xie, Xiaqing Ellen Tan, Po-Yao Huang, Russell Howes, Vasu Sharma, Shang-Wen Li, Gargi Ghosh, Luke Zettlemoyer, and Christoph Feichtenhofer. Demystifying clip data. In ICLR, 2024. +[68] An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, Huan Lin, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Yang, Jiaxi Yang, Jingren Zhou, Junyang Lin, Kai Dang, Keming Lu, Keqin Bao, Kexin Yang, Le Yu, Mei Li, Mingfeng Xue, Pei Zhang, Qin Zhu, Rui Men, Runji Lin, Tianhao Li, Tingyu Xia, Xingzhang Ren, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yu Wan, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zihan Qiu. Qwen2.5 technical report. arXiv:2412.15115, 2024. +[69] Kaicheng Yang, Jiankang Deng, Xiang An, Jiawei Li, Ziyong Feng, Jia Guo, Jing Yang, and Tongliang Liu. Alip: Adaptive language-image pre-training with synthetic caption. In ICCV, 2023. +[70] Yang You, Jing Li, Sashank J. Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xiaodan Song, James Demmel, Kurt Keutzer, and Cho-Jui Hsieh. Large batch optimization for deep learning: Training BERT in 76 minutes. In ICLR, 2020. +[71] Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. Sigmoid loss for language image pre-training. In ICCV, 2023. +[72] Xiaohang Zhan, Jiahao Xie, Ziwei Liu, Yew-Soon Ong, and Chen Change Loy. Online deep clustering for unsupervised representation learning. In CVPR, 2020. +[73] Bin Zhu, Bin Lin, Munan Ning, Yang Yan, Jiaxi Cui, HongFa Wang, Yatian Pang, Wenhao Jiang, Junwu Zhang, Zongwei Li, et al. LanguageBind: Extending video-language pretraining to n-modality by language-based semantic alignment. arXiv preprint arXiv:2310.01852, 2023. + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: We claim our contributions and scope in Introduction. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We discuss the limitations of our limitations in the last section, Conclusion&Limitation. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: [NA] + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: We clearly provide the information of our experiment setting in the section, Implementation Details. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [No] + +Justification: The study is based on a proprietary dataset that is subject to confidentiality constraints. Due to these restrictions, we are currently unable to provide public access to the dataset and code. We are exploring possibilities for future release, subject to approval. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: We clearly provide our experiment setting in the section, Baseline and Implementation details. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [NA] + +Justification: [NA] + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) + +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We provide sufficient information on the computation resources in Implementation details + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: This paper strictly adheres to all requirements of the NeurIPS Code of Ethics, including transparency in data usage, fairness in research methods. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [NA] + +Justification: [NA] + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: [NA] + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We explicitly acknowledge the original owners of the assets, including code, data, and models. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. + +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: [NA] + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: [NA] + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: [NA] + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [Yes] + +Justification: We describe the details of how our model is used as the vision encoder in the LLM-based MLLM, along with the corresponding experimental settings, in UniViT as an Encoder of MLLM. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/images.zip b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..13520e28e41af0f18c5587a42bdae3e111100529 --- /dev/null +++ b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f433a502293b6b1e72b8ea1a82fefd33baf8dbae1e7590901fdf21630f0f6316 +size 739062 diff --git a/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/layout.json b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..9e9749004e7ff1bdd4af593f34d4d1fc060177d8 --- /dev/null +++ b/NeurIPS/2025/UniViT_ Unifying Image and Video Understanding in One Vision Encoder/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3aa6b0ab85517dd07ac9f84687f896eee9454137839e3ec1d589e77be55c7d2b +size 658071 diff --git a/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/ef5cbd61-b723-49e2-98bf-c398cc247c7c_content_list.json b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/ef5cbd61-b723-49e2-98bf-c398cc247c7c_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..f8fc2b5216c3fd2f9716b0ae4217c52aee7feb40 --- /dev/null +++ b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/ef5cbd61-b723-49e2-98bf-c398cc247c7c_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e96a1f2854701765d71a88bfd37a1fe48b4d131204614d9108d07b53feb09fd8 +size 171962 diff --git a/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/ef5cbd61-b723-49e2-98bf-c398cc247c7c_model.json b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/ef5cbd61-b723-49e2-98bf-c398cc247c7c_model.json new file mode 100644 index 0000000000000000000000000000000000000000..06bb89b68f5f1153d49c867716da47afccb576bf --- /dev/null +++ b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/ef5cbd61-b723-49e2-98bf-c398cc247c7c_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7863ca4c804f4f3ade970c04ac03a23818f91f21dd84ec054f0d39db16328281 +size 220431 diff --git a/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/ef5cbd61-b723-49e2-98bf-c398cc247c7c_origin.pdf b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/ef5cbd61-b723-49e2-98bf-c398cc247c7c_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..190b8d49a2e5a3bbfa6f62189ef6ef3749dd7767 --- /dev/null +++ b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/ef5cbd61-b723-49e2-98bf-c398cc247c7c_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7902782117a312a8d5f7ddb1cfd0985f180abb85a8d4e53f101e48def0ed173 +size 1426075 diff --git a/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/full.md b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/full.md new file mode 100644 index 0000000000000000000000000000000000000000..e662c7ad9dababdb418d0b983d3cdd2692fe710b --- /dev/null +++ b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/full.md @@ -0,0 +1,826 @@ +# UniZyme: A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge + +Chenao Li, Shuo Yan, Enyan Dai* + +Hong Kong University of Science and Technology (Guangzhou) + +# Abstract + +Enzyme-catalyzed protein cleavage is essential for many biological functions. Accurate prediction of cleavage sites can facilitate various applications such as drug development, enzyme design, and a deeper understanding of biological mechanisms. However, most existing models are restricted to an individual enzyme, which neglects shared knowledge of enzymes and fails to generalize to novel enzymes. Thus, we introduce a unified protein cleavage site predictor named UniZyme, which can generalize across diverse enzymes. To enhance the enzyme encoding for the protein cleavage site prediction, UniZyme employs a novel biochemically-informed model architecture along with active-site knowledge of proteolytic enzymes. Extensive experiments demonstrate that UniZyme achieves high accuracy in predicting cleavage sites across a range of proteolytic enzymes, including unseen enzymes. The code is available in https://github.com/Ao-LiChen/UniZyme. + +# 1 Introduction + +During enzyme-catalyzed protein hydrolysis, proteolytic enzymes cleave proteins at specific cleavage sites. This process is illustrated in Fig. 1, and it is crucial for a variety of physiological processes, including cell proliferation, immune response, and cell death [1, 2]. Accurate prediction of enzymecatalyzed cleavage sites in the substrate proteins facilitates the identification of therapeutic targets and guides drug design [3]. For instance, abnormal protein hydrolysis is closely associated with cancer, viral infections, and neurodegenerative diseases, and predicting the cleavage sites of abnormal proteins under pathological conditions can reveal biomarkers or intervention targets [4, 5]. Additionally, in the design of enzyme inhibitors or prodrugs, identifying key cleavage peptides, such as those cleaved under the catalysis of HIV enzyme, helps enhance drug specificity and minimize off-target effects [6, 7]. + +Mapping cleavage sites experimentally via peptide assays or high-throughput mass spectrometry is arduous and costly [8]. Therefore, recent studies have employed machine learning methods to advance the prediction of protein cleavage sites. For example, CAT3 [9] predicts caspase-3 cleavage sites based on position-specific scoring matrices (PSSM), and ProsperousPlus [10] integrates multiple methods to comprehensively evaluate cleavage site predictions. However, these methods generally focus on an individual failing to generalize to proteases without labele + +![](images/dfdda77515ea184c95f825470a4593676e1a3d73b329a37d93b69a805ceb67fa.jpg) +Figure 1: Enzyme-catalyzed protein hydrolysis. Enzyme system, overlooking shared patterns and data. This limitation impedes tasks like off-target + +assessment of therapeutic proteins in human body [11, 12]. Therefore, it is crucial to develop a unified protein cleavage site predictor that can generalize across a diverse range of proteolytic enzymes. + +To develop a unified protein cleavage site predictor for diverse proteolytic enzymes, the information of enzyme should be extracted and incorporated for the prediction. However, due to substantial cost of biological experiments, existing cleavage site databases only cover a small number of proteolytic enzymes (Tab. 1), which significantly challenges the learning of enzyme information encoder. Despite the limited coverage of enzymes in existing cleavage site datasets, many proteolytic enzymes are annotated with their active sites, which is the core functional region for catalyzing the protein hydrolysis. Specifically, the unique physicochemical environment of these active sites enables recognition of target substrates and lowers the activation energy required for cleaving specific peptide bonds. Therefore, we propose to leverage redundant knowledge of enzyme active sites to enhance the modeling of enzymes in enzyme-catalyzed protein cleavage sites. + +However, it is non-trivial to achieve a unified cleavage site predictor enhanced with enzyme active-site knowledge. Two major challenges remain to be resolved. First, the cleavage process is influenced by various factors of enzymes such as 3D structures and environments of active sites. Hence, how to design the architecture of enzyme encoder to effectively capture useful information for enzyme-catalyzed cleavage site prediction? Second, the active-site regions of enzymes determine the specificity and efficiency of enzymatic hydrolysis. How can we leverage this rich information of enzyme active sites to improve cleavage site prediction? In an attempt to address the challenges, we propose a novel framework named UniZyme. More specifically, a biochemically-informed enzyme encoder is deployed along with the active site-aware pooling to produce high-quality enzyme representations. We further augment the enzyme encoder by pretraining on a supplemented enzyme set for active-site prediction. Furthermore, a joint training of enzyme active-site prediction and substrate cleavage site prediction is applied in UniZyme. In summary, our main contributions are as follows: + +- We investigate a novel and crucial problem of building a unified protein cleavage site predictor that generalizes across diverse proteolytic enzymes; +- We propose a novel framework UniZyme that effectively integrates the enzyme active-site knowledge to enhance the cleavage site prediction in enzyme-protein interaction; +- Extensive experiments demonstrate the effectiveness of our UniZyme in predicting cleavage sites of substrate proteins for both seen and unseen proteolytic enzymes. + +# 2 Problem Formulation + +In this section, we first introduce the preliminaries of enzyme-catalyzed protein hydrolysis. Then, we present the problem definition of protein cleavage site prediction with enzyme active-site knowledge. + +# 2.1 Preliminaries of Enzyme-Catalyzed Protein Hydrolysis + +Cleavage Sites in Enzyme-Catalyzed Protein Hydrolysis. Protein hydrolysis is a biochemical process where proteins are broken down into smaller fragments such as amino acids and peptides under the catalysis of proteolytic enzymes. As illustrated in Fig. 1, during the protein hydrolysis, proteolytic enzymes will firstly recognize specific amino acid sequences or structural motifs within substrate proteins. Then, the enzymes catalyze the cleavage of peptide bonds at the cleavage site, leading to the formation of smaller peptide fragments or individual amino acids. The positions of cleavage sites are governed by various factors including substrate's amino acid composition, spatial conformation, and unique properties of the enzyme [13-15]. + +Active Sites of Enzymes. The active sites in enzyme provide an environment that lowers the activation energy required for peptide bond cleavage. As shown in Fig. 1, with the active sites, enzymes can recognize and bind to target substrates, enabling the cleavage of specific peptide bonds within substrate proteins [16]. Hence, active site information can benefit the modeling of enzyme-catalyzed protein hydrolysis. + +Current Framework of Cleavage Site Prediction. Recent studies have employed machine learning models to predict cleavage sites [17-21]. However, these methods generally train an independent model for each enzyme, which only predicts the cleavage sites of substrate proteins under the catalysis + +of one specific enzyme. Specifically, let $\mathcal{P}^s$ denote the substrate protein, this enzyme-specific cleavage site predictor aims to learn the $f:\mathcal{P}^s\to \mathbf{c}^{e,s}$ , where $\mathbf{c}^{e,s}\in \{0,1\}^{|\mathcal{P}^s|}$ denotes the labels of cleavage site with the enzyme $\mathcal{P}^e$ . However, the training of enzyme-specific model excludes the valuable interaction knowledge from other enzyme-protein systems. In addition, the enzyme-specific model cannot generalize to unseen enzymes, which limits its application on unseen enzymes and other enzymes with limited annotations. Therefore, it is crucial to develop a unified cleavage site predictor capable of identifying cleavage sites in substrate proteins across various enzymes. + +Limited Enzyme Coverage in Cleavage Site Database. Tab. 1 presents statistics from the MEROPS, which is the most comprehensive cleavage site + +
Table 1: Statistics of Cleavage Sites Data in MEROPS.
# Proteolytic Enzyme # Substrate Enzyme-Substrate Ratio
86610,1461:11.7
+ +database. Due to the high cost of experimental assays, MEROPS [22] only includes 866 commonly used proteolytic enzymes. This results in a striking enzyme–substrate ratio of 1:11.7. The limited enzyme coverage poses a significant challenge for developing a unified cleavage site predictor that generalizes across diverse enzyme–substrate systems. Despite the limited enzyme coverage in cleavage site databases, the lower cost of annotating enzyme active sites has enabled UniProt [23] to provide 10,749 high-quality proteolytic enzymes with labeled active sites across multiple organisms. The rich information of active sites can be helpful in enzyme modeling to facilitate the cleavage site prediction in protein hydrolysis. + +# 2.2 Problem Definition + +In protein hydrolysis, both enzyme $\mathcal{P}^e$ and substrate $\mathcal{P}^s$ are proteins composed of amino acid residues that fold into 3D structures. We denote a protein of length $N$ by $\mathcal{P} = (\mathbf{X},\mathbf{R})$ , where $\mathbf{X}\in \mathbb{R}^{N\times d}$ is the feature matrix of $N$ residues, $\mathbf{R}\in \mathbb{R}^{N\times 3}$ denotes the 3D positions of residues. We denote $\mathbf{c}^{e,s}\in \{0,1\}^{|\mathcal{P}_s|}$ as the cleavage site label for the substrate protein $\mathcal{P}^s$ under the catalysis of enzyme $\mathcal{P}^e$ . The training data for cleavage site prediction can be represented as $\mathcal{D}_c = \{(\mathcal{P}_i^e,\mathcal{P}_i^s,\mathbf{c}_i^{e,s})\}_{i = 1}^{|\mathcal{D}_c|}$ . In this work, we propose to enhance the cleavage site prediction with the active site information of enzymes. Hence, we will also utilize a set of enzymes labeled with active sites $\mathbf{a}\in \{0,1\}^{|\mathcal{P}_e|}$ , which is denoted as $\mathcal{D}_a = \{(\mathcal{P}_i^e,\mathbf{a}_i)\}_{i = 1}^{|\mathcal{D}_a|}$ . + +During the test phase, we will predict the cleavage site for each pair of test enzymes and substrates $(\mathcal{P}_t^e,\mathcal{P}_t^s)$ . The active sites of test enzymes will not be available for inference. And the test enzyme $\mathcal{P}_t^e$ can be either seen, i.e., $\mathcal{P}_t^e\in \mathcal{D}_c$ or unseen, i.e., $\mathcal{P}_t^e\notin \mathcal{D}_c$ , which correspond to supervised setting and zero-shot setting, respectively. For each test substrate protein $\mathcal{P}_t^s$ , its cleavage site with the test enzyme $\mathcal{P}_t^e$ is not included in the training set $\mathcal{D}_c$ . With the above notations and descriptions, the formal definition of building a unified cleavage site predictor can be given by: + +Problem 1. Given the dataset $\mathcal{D}_c$ annotated for cleavage site prediction and the supplemented dataset $\mathcal{D}_a$ containing enzymes active sites, we aim to obtain a unified cleavage site predictor: + +$$ +f: \left(\mathcal {P} ^ {e}, \mathcal {P} ^ {s}\right)\rightarrow \mathbf {c} ^ {e, s}, \tag {1} +$$ + +which can accurately predict cleavage sites of test proteins $\mathcal{P}_t^e$ under the catalysis of test proteolytic enzymes $\mathcal{P}_t^s$ . Note that test enzymes can be either seen or unseen during the training phase. + +# 3 Methodology + +In this section, we give the details of the proposed UniZyme. As the Fig. 2 shows, apart from the substrate encoder, UniZyme deploys an enzyme encoder to enable the generalization of cleavage site prediction across various enzymes. In addition, active site information in protein hydrolysis is incorporated into enzyme encoder training to enhance cleavage site prediction. Two main challenges remain to be addressed: (i) how to design the enzyme encoder to preserve critical information for cleavage site prediction? (ii) how to leverage the rich information of enzyme active sites to improve the cleavage site prediction? To tackle the above challenges, our UniZyme deploys a biochemically-informed enzyme encoder which augments the graph transformer with enzyme energy frustration. Furthermore, UniZyme employs active site-aware pooling to preserve the enzyme's information crucial for protein hydrolysis. To facilitate enzyme representation learning, UniZyme first pretrains the enzyme encoder using active site prediction with the supplemented enzyme set. Then, a joint + +![](images/2377069b562b673a90b97161a91657469491e8b0f6a5930867d8638ebf9834ea.jpg) +Figure 2: Architecture of biochemically-informed enzyme encoder and framework of UniZyme. + +![](images/2de6de6054762352466e246f9280f79b8cef64bbbdbbd5e72c5a4ad2c91aad96.jpg) + +loss of active site prediction and cleavage site prediction is employed to optimize the UniZyme for accurate cleavage site prediction. Next, we introduce each component in detail. + +# 3.1 Biochemically-Informed Enzyme Encoder + +Enzymes' 3D structures, especially the local environments around their active sites, are crucial for catalyzing protein hydrolysis. Although direct active-site annotations are often unavailable for test data, recent studies indicate that local energetic frustration can identify functionally important regions [24]. Building on these insights, we propose a biochemically-informed enzyme encoder that integrates both the spatial positions of residues and their energetic frustration scores [25]. + +Encoding Energetic Frustration. Previous studies indicate that local energetic frustration, referring to regions in a protein not optimized for minimal energy, is commonly observed around enzyme active sites and can significantly influence catalysis [24]. To quantify this phenomenon, a frustration score $\mathbf{F}(i,j)$ is computed for each residue pair $(i,j)$ within an enzyme $\mathcal{P}^e$ following [24]: + +$$ +\mathbf {F} (i, j) = \frac {\mathbf {E} (i , j) - \mu_ {\text {r a n d}} (i , j)}{\sigma_ {\text {r a n d}} (i , j)}, \tag {2} +$$ + +where $\mathbf{E}(i,j)$ is the actual interaction energy between residues $(i,j)$ in the enzyme $\mathcal{P}^e$ . $\mu_{\mathrm{rand}}(i,j)$ and $\sigma_{\mathrm{rand}}(i,j)$ represent the mean and standard deviation of interaction energies that derived from randomized configurations (see Appendix C for details). A higher $\mathbf{F}(i,j)$ implies stronger local energetic frustration, suggesting that the residue pair is more likely to belong to a functionally important region. Therefore, we incorporate this frustration score to provide useful biochemical information to the enzyme encoder. + +Integrating Energy and 3D Position in Transformer. Following prior works [26], we encode the 3D positions by computing pair-wise distance between residues: $\mathbf{D}(i,j) = \| \mathbf{r}_i - \mathbf{r}_j\|_2$ , where $\mathbf{r}_i \in \mathbb{R}^3$ is the $\mathrm{C}\alpha$ -atom coordinate of residue $i$ . Both energetic frustration score and distance matrix capture pairwise relationships akin to the spatial encoding in graph transformers. Therefore, we locate those pair-wise signals to provide complementary information for the self-attention score computation. Concretely, for an enzyme $\mathcal{P}^e = (\mathbf{X},\mathbf{R})$ , we process both $\mathbf{F}(i,j)$ and distance matrix $\mathbf{D}(i,j)$ with a Gaussian Basis Kernel function followed by a MLP: + +$$ +\Phi_ {i, j} ^ {\text {e n e r g y}} = \operatorname {M L P} \left(\phi_ {\text {e n e r g y}} (\mathbf {F} (i, j))\right), \quad \Phi_ {i, j} ^ {\text {d i s t}} = \operatorname {M L P} \left(\phi_ {\text {d i s t}} (\mathbf {D} (i, j))\right), \tag {3} +$$ + +where $\phi_{\mathrm{energy}}$ and $\phi_{\mathrm{dist}}$ denote the learnable Gaussian Basis Kernel function that can map energy frustration score and distance score to a $d$ -dimensional vector (See Appendix C for more details). MLP is further deployed to transform these vectors to the space of attention scores. We then add the resulting $\Phi_{(i,j)}^{\mathrm{dist}}$ and $\Phi_{(i,j)}^{\mathrm{energy}}$ as bias terms to the self-attention mechanism. Denote $\mathbf{A}_{i,j}^{k}$ as the $(i,j)$ -element of the Query-Key product matrix in $k$ -th attention layer, we have: + +$$ +\mathbf {A} _ {i, j} ^ {k} = \frac {\left(\mathbf {h} _ {i} ^ {k - 1} \mathbf {W} _ {Q}\right) \left(\mathbf {h} _ {j} ^ {k - 1} \mathbf {W} _ {K}\right) ^ {T}}{d} + \Phi_ {i, j} ^ {\text {e n e r g y}} + \Phi_ {i, j} ^ {\text {d i s t}} \tag {4} +$$ + +$$ +\mathbf {H} ^ {k} = \operatorname {s o f t m a x} \left(\mathbf {A} ^ {k}\right) \mathbf {H} ^ {k - 1} \mathbf {W} _ {V}, +$$ + +where $\mathbf{H}^k\in \mathbb{R}^{N\times d}$ denotes the updated representation matrix. And $\mathbf{W}_Q,\mathbf{W}_K$ , and $\mathbf{W}_V$ are projection matrices for the query, key, and value transformations. + +# 3.2 Enhancing Enzyme Representation Learning with Active Site Knowledge + +To incorporate crucial active-site knowledge into enzyme representation learning, we use three strategies: (i) an auxiliary active-site prediction task to strengthen the enzyme encoder, (ii) large-scale pretraining for active-site prediction to capture general catalytic patterns, and (iii) an active site-aware pooling mechanism that emphasizes catalysis-related residues. Next, we give more details. + +Active Site Prediction. Active sites play a key role in catalyzing the protein cleavage. Hence, active-site information can provide essential understandings of enzyme functions. As a result, we deploy the active site prediction as the auxiliary task to benefit the enzyme encoder training by: + +$$ +\hat {a} _ {i} = \operatorname {s i g m o i d} \left(\mathbf {h} _ {i} \cdot \mathbf {w} _ {a}\right), \tag {5} +$$ + +where $\hat{a}_i\in [0,1]$ denotes the probability of the $i$ -th residue being the active site, $\mathbf{h}_i\in \mathbb{R}^d$ is the representation of $i$ -th residues in the enzyme, and $\mathbf{w}_a\in \mathbb{R}^d$ denotes the learnable parameters for active site prediction. + +Pretraining with the Supplemented Enzyme Set $\mathcal{D}_a$ . The number of enzymes annotated in cleavage site database is limited, which poses a significant challenge for the effective training of enzyme encoders [27]. Despite the limited enzyme coverage in cleavage site database, abundant enzymes are annotated with active sites. Therefore, we select enzymes highly homologous to the target proteolytic enzymes in biological function to expand the pretraining dataset. Formally, the objective function of pretraining the enzyme encoder on the supplemented enzyme set $\mathcal{D}_a$ can be written as: + +$$ +\min _ {\theta_ {e}, \mathbf {w} _ {a}} \mathcal {L} _ {a} (\mathcal {D} _ {a}) = \frac {1}{| \mathcal {D} _ {a} |} \sum_ {(\mathcal {P} ^ {e}, \mathbf {a}) \in \mathcal {D} _ {a}} l _ {\mathrm {B C E}} (\hat {\mathbf {a}}, \mathbf {a}), \tag {6} +$$ + +where $\theta_{e}$ denotes the parameters of enzyme encoder. $\hat{\mathbf{a}} = [\hat{a}_1,\dots \hat{a}_N]$ denotes the probability vector of active site on the enzyme $\mathcal{P}^e$ . $l_{\mathrm{BCE}}$ denotes the element-wise binary cross entropy loss. By pretraining on a large corpus of enzyme sequences, we allow the model to capture broader structural and functional patterns common across enzymes. + +Active Site-Aware Pooling. To obtain enzyme representation from a sequence of residue representations, a pooling operation such as mean pooling is required. However, residues that are active sites are more critical for enzymatic activity. Intuitively, these active sites should contribute more in the aggregated enzyme representation [28]. Therefore, we design an active site-aware pooling mechanism, whose pooling weights are based on the predicted active site probabilities. Let $\hat{a}_i \in \mathbb{R}^N$ be the predicted probability that $i$ -th residue is an active site in an $N$ -residue enzyme. The active site-aware pooling can be written as: + +$$ +\mathbf {h} ^ {e} = \operatorname {s o f t m a x} \left(\left[ w _ {1}, \dots , w _ {N} \right]\right) \mathbf {H}, \quad w _ {i} = f \left(\hat {a} _ {i}\right), \tag {7} +$$ + +where $\mathbf{H} \in \mathbb{R}^{N \times d}$ is residue representation matrix from by the enzyme encoder. $f(\cdot)$ is a learnable function that will map each $\hat{a}_i$ to the pooling weight $w_i$ , see in appendix C. With the active site-aware pooling, we would be able to encourages the model to focus on catalytically relevant segments of the enzyme. + +# 3.3 Cleavage Site Prediction + +Substrate Protein Encoding. As annotations tying substrate residues to intrinsic energetic states are unavailable, we omit the energetic frustration of the substrate protein. And we only input residue feature matrix $\mathbf{X}^s$ and distance matrix $\mathbf{D}^s$ of the substrate $\mathcal{P}^s$ are integrated in the transformer: $\mathbf{H}^s = \mathrm{Transformer}(\mathbf{X}^s,\mathbf{D}^s)$ , where $\mathbf{H}^s\in \mathbb{R}^{|\mathcal{P}^s| \times d}$ is the substrate representation. Further details are provided in Appendix C. + +Cleavage Site Prediction. During protein hydrolysis, enzymes generally recognize local residue sequences about 15-30 residues in length. To reflect this biological behavior, we predict whether a subsequence of length $l$ in substrate $\mathcal{P}^e$ will be cleaved by enzyme $\mathcal{P}^e$ . Formally, this process can be written by: + +$$ +\hat {c} _ {t} ^ {e, s} = \operatorname {M L P} \left(\operatorname {C O N C A T} \left(\mathbf {H} _ {t: t + l} ^ {s}, \mathbf {h} ^ {e}\right)\right) \tag {8} +$$ + +where $\mathbf{H}_{t:t + l}^s$ is a contiguous slice taken directly from the substrate representation matrix $\mathbf{H}^s$ and $\mathbf{h}^e$ is the enzyme representation obtained by Eq.(7). The length of the subsequence is set as 31 (15 + +residues on each side.). The optimization function of cleavage site prediction can be written as: + +$$ +\mathcal {L} _ {c} \left(\mathcal {D} _ {c}\right) = \frac {1}{\left| \mathcal {D} _ {c} \right|} \sum_ {\left(\mathcal {P} ^ {e}, \mathcal {P} ^ {s}, \mathbf {c} ^ {e, s}\right) \in \mathcal {D} _ {c}} l _ {\mathrm {B C E}} \left(\mathbf {c} ^ {e, s}, \hat {\mathbf {c}} ^ {e, s}\right) \tag {9} +$$ + +where $\hat{\mathbf{c}}^{e,s} = [\hat{c}_1^{e,s},\dots,\hat{c}_{|\mathcal{P}^s|}^{e,s}]$ denotes the probability vector of cleavage site within the substrate $\mathcal{P}^s$ given the enzyme $\mathcal{P}^e$ . $l_{\mathrm{BCE}}$ is the element-wise binary cross entropy loss. + +# 3.4 Final Objective Function + +For each enzyme $\mathcal{P}^e\in \mathcal{D}_c$ in the cleavage site database, their active sites are also included in the $\mathcal{D}_a$ . Consequently, we combine the cleavage site prediction loss and the active site prediction to jointly train the whole framework by: + +$$ +\min _ {\theta} \mathcal {L} _ {c} \left(\mathcal {D} _ {c}\right) + \lambda \mathcal {L} _ {a} \left(\mathcal {D} _ {a} ^ {c}\right), \tag {10} +$$ + +where $\theta$ denotes all parameters in UniZyme including the enzyme encoder, substrate encoder, active prediction module and cleavage site prediction module. $\mathcal{D}_a^c\subset \mathcal{D}_a$ provides the active-site annotations for the enzymes in $\mathcal{D}_c$ . + +# 4 Experiments + +In this section, we conduct experiments to answer the following research questions: + +- RQ1: How does the UniZyme perform in supervised cleavage site prediction? +- RQ2: How well does UniZyme generalize to cleavage site prediction for zero-shot enzymes? +- RQ3: How do the design of biochemically-informed enzyme encoder and utilization of active-site knowledge contribute to the performance of UniZyme? + +# 4.1 Experimental Setup + +Dataset. The cleavage site dataset $\mathcal{D}_c$ is sourced from the MEROPS database, which provides annotations for roughly 10k substrate proteins across 876 enzymes. With a standard dataset expansion procedure commonly used in cleavage site prediction[10, 18, 20, 21], which propagates substrate-site annotations across enzymes within the same family, we obtain 220k valid enzyme-substrate pairs. The supplemented dataset $\mathcal{D}_a$ is constructed by combining enzyme active-site annotations in MEROPS [22] and UniProt [23]. Specifically, MEROPS provides active sites for the enzymes already included in $\mathcal{D}_c$ . UniProt provides hydrolase enzymes with the EC number of $3.4.*$ * that are highly homologous to the proteolytic enzymes in $\mathcal{D}_c$ , resulting in 11,530 enzymes with active sites. + +Evaluation. To demonstrate the generalization ability of UniZyme, we evaluate its performance on protein cleavage site prediction for both seen enzymes (supervised) and unseen enzymes (zero-shot). The + +Table 2: Splits of MEROPS for evaluation. + +
TrainingSupervised TestZero-Shot Test
Enzyme Families6776923
Substrate-Enzyme Pairs197,61320,3605,345
+ +dataset split of the MEROPS for supervised and zero-shot setting are in Tab. 2. The dataset construction details can be found in Appendix A. + +- Supervised Setting: In this scenario, target enzymes are paired with novel substrates that were not present in the training data. We restrict our evaluation to enzyme families with at least five unique substrates, yielding 69 enzyme families and a total of 21k enzyme-substrate pairs. For each family, we randomly split the data 70/10/20 into training, validation, and test sets. +- Zero-shot Setting: In the zero-shot setting, target enzymes are entirely held out during both training and pretraining. We consider only families with at least five distinct enzymes, reserving $20\%$ of each family's enzymes as a test set. In total, this yields 23 enzyme families (5.3k enzyme-substrate pairs), with all test enzymes sharing under $60\%$ sequence identity with any enzyme seen during training or pretraining. + +Baseline Methods. To evaluate our model, we compare with the three categories of baselines. (i) Specialized models: CAT3 [9] and ScreenCap3 [18] are two models specifically designed for + +C14.003 enzyme family. (ii) Deep models for an individual enzyme: ProsperousPlus [10], DeepCleave [20], and DeepDigest [29] are state-of-the-art deep learning methods focusing an individual enzyme system. To compare with UniZyme across multiple enzyme families, multiple predictors are trained for each baseline method, where each predictor is trained with data of an individual enzyme. Thus, these baselines are limited to supervised setting where an enzyme is provided with substantial experimental data. (iii) Models revising UniZyme with baseline enzyme encoders: Research on cleavage site prediction for zero-shot enzymes remains limited. The closest works are enzyme-substrate reaction predictors, namely ClipZyme [30] and ReactZyme [31], which encode both enzymes and substrates for reaction prediction. However, these models operate at the substrate level and cannot directly predict specific cleavage sites. Therefore, to demonstrate the superiority of the proposed enzyme encoder and enhancement strategies in Unizyme, we substitute the Unizyme's enzyme encoder with enzyme encoders from ClipZyme and ReactZyme. This yields two baselines for comparison in both supervised and zero-shot settings. For ClipZyme, we utilize their EGNN enzyme encoder pretrained for enzyme-substrate reaction prediction. See Appendix B for more details of baselines. + +Implementation Details. We utilized the esm2-t12-35M-UR50D model to generate 480-dimensional residue features for both enzymes and substrates. The hyperparameter $\lambda$ is selected based on the validation set under supervised setting. Hyperparameter analysis are in Sec 4.5. Each experiment is conducted with 5 runs with different random seeds. To ensure a fair evaluation, hyperparameters of trainable baselines were selected by validation set. More details are in Appendix C. + +# 4.2 Supervised Cleavage Site Prediction + +To answer RQ1, we compare our UniZyme with various existing methods in supervised cleavage site prediction, ensuring that all models are trained and evaluated on the same data. As mentioned in Sec. 4.1, baselines designed for individual enzymes require training a separate predictor for each enzyme family. ClipZyme and ReactZyme are baselines revising our UniZyme with their enzyme encoders, avoiding repeated training. The overall comparisons on all 69 enzymes in supervised setting are given in Tab. 3 and Fig. 3. Results on 8 represent + +tative enzymes are given in Tab. 4. Specifically, we can observe that: (i) Methods focusing on a single enzyme generally show poor performance; whereas those trained on multiple enzymes such as Our UniZyme and ReactZyme achieve significantly better results. This highlights the advantage of developing a unified cleavage site predictor across diverse proteolytic enzymes. (ii) Compared with ClipZyme which adopts an enzyme encoder pretrained with the enzyme-substrate reaction task, the proposed UniZyme achieves much better performance. It implies the effectiveness of active-site information in enhancing the enzyme encoder. (iii) Our UniZyme also consistently outperforms the ReactZyme by a large margin. This is because of the deployment of biochemically-informed enzyme encoder and the active-site knowledge. + +Table 3: Performance comparisons on overall 69 enzyme families under supervised setting. + +
ModelAverage PR-AUC (%)Rate of Rank 1 (%)Average Rank
UniZyme79.375.01.26
ReactZyme70.07.52.51
ClipZyme74.717.51.91
ProsperousPlus7.20.04.65
DeepCleave6.50.04.61
DeepDigest4.20.05.52
+ +Table 4: PR-AUC (%) on 8 out of 69 enzyme families under supervised setting. Note that ScreenCap3 and CAT3 are specialized models for the C14.003 enzyme family. + +
ModelC01.034C14.003C14.005M13.001M24.026S01.001S01.224S08.070
UniZyme78.1±1.345.9±1.252.2±0.960.1±1.187.2±0.882.1±1.262.4±1.185.0±1.3
ReactZyme64.4±0.743.8±0.847.6±0.948.0±0.770.3±1.469.6±1.227.0±0.966.0±0.8
ClipZyme71.1±0.735.3±0.943.2±1.037.1±1.373.1±0.873.8±0.941.7±0.673.8±0.9
DeepDigest3.2±0.50.5±1.12.4±1.116.7±1.31.4±0.421.1±0.91.2±1.02.2±1.2
DeepCleave4.8±1.11.0±1.14.2±0.919.0±1.07.1±1.226.9±1.45.0±0.518.3±0.6
ProsperousPlus4.6±1.326.6±2.115.9±0.521.1±0.82.4±0.816.3±1.04.3±0.943.6±1.0
CAT3-18.5±6.2------
ScreenCap3-29.2±16.0------
+ +![](images/054263a55d445789d95e867b50909e09b41b90b5a9342ad76cf3ef979620bba3.jpg) +Figure 3: Per-family PR-AUC (\%) across 69 supervised enzymes (Part 1: Enzymes 1-35). Results for the remaining 34 enzymes are provided in Appendix M (Fig. 9). + +# 4.3 Cleavage Site Prediction for Zero-Shot Enzymes + +To answer RQ2, we evaluate the performance of UniZyme on the zero-shot benchmarks, where enzymes are unseen during the training/pretraining phase. We adopt Needleman-Wunsch algorithm to ensure all zero-shot enzymes have under $60\%$ sequence similarity with any enzyme used for training and pretraining. Since enzyme-specific models cannot handle novel enzymes, we only compare UniZyme to ReactZyme and ClipZyme, both of which are modified to predict cleavage sites for novel enzymes. The summarized results are given in Tab. 5, 6 and Fig. 5. From the results, we can observe that our UniZyme consistently outperform the baseline methods. In particular, UniZyme exceeds ReactZyme and ClipZyme by more than $7\%$ in PR-AUC across most enzyme families. This improvement stems from the utilization of active-site knowledge in the enzyme modeling and the biochemical-informed encoder, promoting the generalization ability of UniZyme to unseen enzymes. + +To further demonstrate the generalization ability of our model on unseen enzymes, we applied it to identify potential HIV-1 enzyme substrates and predict their cleavage sites as shown in Fig. 4. We present the model's prediction on an unseen HIV-1 enzyme acting on a 147-residue substrate (P62157) with four experimentally validated HIV-1 cleavage sites. As shown in Fig. 4, UniZyme can accurately predict the four annotated cleavage sites, achieving $100\%$ accuracy. Additionally, UniZyme successfully predicts the cleavage sites of a test case (Uniprot: P00698). This demonstrates the ability to analyze cleavage sites for any potential protein of HIV-1 enzymes. This result provides valuable insights for therapeutic intervention and the development of inhibitors targeting HIV-1 enzymes. + +Table 5: PR-AUC (%) on 8 out of 23 zero-shot enzyme families. + +
ModelA01.009C01.060C02.002M10.001M10.004M12.217S01.010S01.217
UniZyme37.5±0.684.3±1.366.4±0.681.1±1.082.8±1.893.2±1.361.0±0.865.0±1.2
ReactZyme18.0±0.362.7±0.849.7±1.276.0±1.271.0±2.875.0±1.123.0±1.142.9±0.8
ClipZyme25.2±0.659.2±0.948.6±1.276.8±0.656.5±3.584.4±0.918.9±0.941.3±0.6
+ +Table 6: Performance comparisons on overall 23 enzyme families under zero-shot setting. + +
ModelAverage PR-AUC (%)Rate of Rank 1 (%)Average Rank
UniZyme71.178.31.30
ReactZyme64.721.72.04
ClipZyme61.70.02.65
+ +![](images/c324ecd03d6f393898738243198d7b2c3b1743f7b976e380d76b5e6c3224d23e.jpg) +(a) Substrate P62157 (Accuracy $= 1.0$ + +![](images/56a2cbb429d6e50001a2a266879b80b6ab7dc4d97ca88430d32cb3195b124f9e.jpg) +(b)Substrate P00698 (No Ground Truth) +Figure 4: Predicted HIV-1 enzyme cleavage sites highlighted in red (threshold = 0.5). + +![](images/c8362bd7aaa813d7595dfe398212edbdde9373d55fa063b9e056d9b67ed68b2b.jpg) +Figure 5: PR-AUC $(\%)$ on the zero-shot benchmark. + +# 4.4 Ablation Studies + +To answer RQ3, we conduct a series of ablation studies to understand the contributions of biochemically-informed enzyme encoder and the active-site knowledge. To demonstrate the effectiveness of the biochemically-informed enzyme encoder, we remove energy frustration and 3D structure, resulting in a variant named UniZyme\SE. To show the benefits brought by pretraining on general enzymes with active site prediction, we trained a variant, UniZyme\P, which excludes the enzyme pretraining phase. To further demonstrate the enhancement of active-site knowledge to the model, we remove the active site prediction in the pretraining/training phase. Additionally, the active site-aware pooling is replaced with average pooling, resulting in a variant named UniZyme\A. Fig. 6 shows the PR-AUC scores across different enzyme families in both zero-shot and supervised settings. More details can be found in the Tab. 17. From these results, we observe: + +- UniZyme consistently achieves better results than UniZyme\SE. This indicates that the incorporation of structural-energy features in the biochemically-informed enzyme encoder can enable stronger generalization and performance in cleavage site prediction. +- UniZyme\P significantly performs worse than UniZyme on both supervised and zero-shot setting. This verifies that pretraining on a supplemented enzyme set with active site prediction can produce a more transferable enzyme encoder for cleavage site prediction. +- UniZyme outperforms UniZyme\A by a large margin. This demonstrates that the active-site knowledge can enhance the enzyme-catalyzed cleavage site prediction. + +# 4.5 Hyperparameter Analysis + +In this subsection, we investigate how the hyperparameter $\lambda$ affects the UniZyme. $\lambda$ controls to contribution of active site prediction loss to the training of UniZyme. To explore the hyperparameter analysis, we vary $\lambda$ as $\{100, 10, 1, 0.1, 0.01\}$ in the training phase of UniZyme. Due to the expensive computational cost in training on the full dataset $\mathcal{D}_c$ , we conduct the hyperparameter analysis with $3\%$ of training data in various enzyme families. Performance on these enzymes are given in Fig. 7. We can find that while $\lambda = 100$ produces competitive ROC-AUC results, it leads to suboptimal PR-AUC. Small values like 0.1 and 0.01 cause a noticeable drop in ROC AUC (e.g. C14.005). Among the tested values, $\lambda = 10$ demonstrates the most consistent performance, achieving strong PR-AUC (e.g., M10.004) while maintaining competitive ROC AUC across datasets such as C14.003 and A01.009. Thus, we selected $\lambda = 10$ as the optimal choice for final training. + +![](images/b6ee2df39ecbf5165852c8bd0f16d595dbc88d3c1e42e13640b3904164e389f7.jpg) +(a) Supervised + +![](images/3836f6a5ce18953203c7321750adc57cf9d4bd3f7e8c84ef139c38fe3335704b.jpg) +(b) Zero-shot + +![](images/16497ba72f05ad3a8b90490b18c01cbdcad2fae131c64617220f11462fd7d80f.jpg) +Figure 6: Ablation studies of UniZyme. +(a) ROC-AUC +Figure 7: Hyperparameter sensitivity analysis. + +![](images/344309db6f25df0ff77d0fafd60ca21538c797f2805f256bfca2d7ccc01a55e8.jpg) +(b) PR-AUC + +# 5 Related Works + +Protein Representation Learning. Protein representation learning aims to effectively capture and represent the structural and functional features of proteins for downstream tasks. Inspired by large language models, recent years have seen the emergence of sequence-based pre-trained models such as ESM [32] and ProtTrans [33]. In terms of methods that utilize structural information, geometric graph neural networks [34-38] and transformers with structural constraints [26, 39, 40] have become widely used architectures. These approaches show that structural pretraining can significantly benefit downstream performance. + +Beyond individual model designs, systematic benchmarks have begun to evaluate how different pretraining paradigms transfer to real-world applications. In particular, Protap [41] establishes a comprehensive benchmark that jointly compares backbone architectures, pretraining objectives, and domain-specific models across both general and specialized protein tasks. It covers five representative applications—including enzyme-catalyzed cleavage site prediction and PROTAC-mediated degradation—and provides unified data splits, evaluation protocols, and analysis of how structural inductive biases interact with pretraining scale. Within this framework, UniZyme is integrated as the representative enzyme-substrate model, demonstrating how incorporating biochemical priors such as energy frustration and active-site cues can complement large-scale foundation encoders. + +Cleavage Site Prediction. Early prediction of enzyme-catalyzed cleavage sites relied on substrate sequence motifs, such as CAT3 [9] and Screen-Cap3 [18]. Subsequent works including Procleave [21] and ProsperousPlus [10] began to integrate substrate structural features to better capture enzymatic preferences. Deep learning approaches such as DeepCleave [20], DeepDigest [29], and DeepNeuropred [17] further advanced the field by leveraging CNNs and protein language models. However, these are enzyme-specific models, applicable only to individual targets and often ignoring active-site information. Building on these developments and contextualized by the Protap benchmark, we propose a unified cleavage-site predictor enhanced with explicit active-site knowledge. + +# 6 Conclusion and Future work + +In this paper, we study a novel problem of developing a unified protein cleavage site predictor for diverse proteolytic enzymes. Specifically, we design a biochemically-informed enzyme encoder and incorporate redundant enzyme active-site information. Our experimental results demonstrate that UniZyme outperforms baselines by a large margin across various enzyme-substrate families, particularly excelling in zero-shot scenarios. Ablation studies further demonstrate the effectiveness of each proposed module in UniZyme. There are two directions that need further investigation. First, while this study focuses on proteolytic enzymes, we will extend to other categories of enzymes and substrates, and investigate whether enzyme-catalyzed reactions follow scaling law. Second, if more hydrolysis process data becomes available, incorporating dynamic structural information may improve prediction accuracy. + +# 7 Acknowledgment + +This material is based upon work supported by, or in part by, the National Natural Science Foundation of China (NSFC) under grant number 62506316. The findings in this paper do not necessarily reflect the view of the funding agencies. + +# References + +[1] Vishva M Dixit. The road to death: Caspases, cleavage, and pores. Science Advances, 9(17): eadi2011, 2023. +[2] BioRender.com. Academic license, 2025. https://www.biorender.com. +[3] Boris Turk. Targeting proteases: successes, failures and future prospects. Nature reviews Drug discovery, 5(9):785-799, 2006. +[4] John A McCauley and Michael T Rudd. Hepatitis c virus ns3/4a protease inhibitors. Current opinion in pharmacology, 30:84-92, 2016. +[5] Fang Liu, Ru Chen, Wenlu Song, Liangwen Li, Chunyang Lei, and Zhou Nie. Modular combination of proteolysis-responsive transcription and spherical nucleic acids for smartphone-based colorimetric detection of protease biomarkers. Analytical Chemistry, 93(7):3517-3525, 2021. +[6] Eric Devroe, Pamela A Silver, and Alan Engelman. HIV-1 incorporates and proteolytically processes human ndr1 and ndr2 serine-threonine kinases. Virology, 331(1):181-189, 2005. +[7] Zhengtong Lv, Yuan Chu, and Yong Wang. HIV protease inhibitors: a review of molecular selectivity and toxicity. HIV/AIDS-Research and palliative care, pages 95-104, 2015. +[8] Jie Zheng, Timothy S. Strutzenberg, Adrian Reich, Venkatasubramanian Dharmarajan, Bruce D. Pascal, Gogce C. Crynen, Scott J. Novick, Ruben D. Garcia-Ordonez, and Patrick R. Griffin. Comparative analysis of cleavage specificities of immobilized porcine pepsin and nepenthesin ii under hydrogen/deuterium exchange conditions. Analytical Chemistry, 92(16):11018-11028, 08 2020. ISSN 0003-2700. doi: 10.1021/acs.analchem.9b05694. +[9] Muneef Ayyash, Hashem Tamimi, and Yaqoub Ashhab. Developing a powerful in silico tool for the discovery of novel caspase-3 substrates: a preliminary screening of the human proteome. BMC Bioinformatics, 13(1):14, Jan 2012. ISSN 1471-2105. doi: 10.1186/1471-2105-13-14. URL https://doi.org/10.1186/1471-2105-13-14. +[10] Fuyi Li, Xudong Guo, Cong Wang, Tatsuya Akutsu, Geoffrey Webb, Lachlan Coin, Lukasz Kurgan, and Jiangning Song. Prosperousplus: a one-stop and comprehensive platform for accurate protease-specific substrate cleavage prediction and machine-learning model construction. Briefings in Bioinformatics, 24, 09 2023. doi: 10.1093/bib/bbad372. +[11] M. Werle and A. Bernkop-Schnürch. Strategies to improve plasma half life time of peptide and protein drugs. *Amino Acids*, 30(4):351-367, 2006. doi: 10.1007/s00726-005-0289-3. URL https://doi.org/10.1007/s00726-005-0289-3. +[12] Chang Liu, Junxian Wu, Yongbo Chen, Yiheng Liu, Yingjia Zheng, Luo Liu, and Jing Zhao. Advances in zero-shot prediction-guided enzyme engineering using machine learning. ChemCatChem, n/a(n/a):e202401542. doi: https://doi.org/10.1002/cctc.202401542. URL https://chemistry-europe.onlinelibrary.wiley.com/doi/abs/10.1002/cctc.202401542. +[13] Theo Klein, Ulrich Eckhard, Antoine Dufour, Nestor Solis, and Christopher M Overall. Proteolytic cleavage-mechanisms, function, and "omic" approaches for a near-ubiquitous posttranslational modification. Chemical Reviews, 118(3):1137–1168, 2018. doi: 10.1021/acs.chemrev.7b00120. Available from PMC6716334. +[14] Apoorv Verma, Emma Åberg Zingmark, Tobias Sparrman, Ameeq Ul Mushtaq, Per Rogne, Christin Grundström, Ronnie Berntsson, Uwe H. Sauer, Lars Backman, Kwangho Nam, Elisabeth Sauer-Eriksson, and Magnus Wolf-Watz. Insights into the evolution of enzymatic specificity and catalysis: From asgard archaea to human adenylate kinases. Science Advances, 8(44): eabm4089, 2022. doi: 10.1126/sciadv.abm4089. URL https://www.science.org/doi/abs/10.1126/sciadv.abm4089. +[15] Benjamin E. Turk, Lisa L. Huang, Elizabeth T. Piro, and Lewis C. Cantley. Determination of protease cleavage site motifs using mixture-based oriented peptide libraries. Nature Biotechnology, 19(7):661-667, 2001. ISSN 1546-1696. doi: 10.1038/90273. URL https://doi.org/10.1038/90273. + +[16] Chandrabose Selvaraj, Ondipilliraja Rudhra, Abdulaziz S. Alothaim, Mustfa Alkhanani, and Sanjeev Kumar Singh. Chapter three - structure and chemistry of enzymatic active sites that play a role in the switch and conformation mechanism. In Rossen Donev, editor, Protein Design and Structure, volume 130 of Advances in Protein Chemistry and Structural Biology, pages 59-83. Academic Press, 2022. doi: https://doi.org/10.1016/j.apcsb.2022.02.002. URL https://www.sciencedirect.com/science/article/pii/S1876162322000165. +[17] Lei Wang, Zilu Zeng, Zhidong Xue, and Yan Wang. Deepneuropepred: A robust and universal tool to predict cleavage sites from neuropeptide precursors by protein language model. Computational and Structural Biotechnology Journal, 23:309-315, 2024. ISSN 2001-0370. doi: https://doi.org/10.1016/j.csbj.2023.12.004. URL https://www.sciencedirect.com/science/article/pii/S2001037023004786. +[18] Szu-Chin Fu, Kenichiro Imai, Tatsuya Sawasaki, and Kentaro Tomii. Screencap3: Improving prediction of caspase-3 cleavage sites using experimentally verified noncleavage sites. *PROTEOMICS*, 14(17-18):2042-2046, 2014. doi: https://doi.org/10.1002/pmic.201400002. URL https://analyticalsciencejournals.onlinelibrary.wiley.com/doi/abs/10.1002/pmic.201400002. +[19] Jelle Verspurten, Kris Gevaert, Wim Declercq, and Peter Vandenabeele. Sitepredicting the cleavage of proteinase substrates. Trends in Biochemical Sciences, 34(7):319-323, 2009. ISSN 0968-0004. doi: https://doi.org/10.1016/j.tibs.2009.04.001. URL https://www.sciencedirect.com/science/article/pii/S0968000409001017. +[20] Fuyi Li, Jinxiang Chen, André Leier, Tatiana Marquez-Lago, Quanzhong Liu, Yanze Wang, Jerico Revote, A Ian Smith, Tatsuya Akutsu, Geoffrey I Webb, Lukasz Kurgan, and Jiangning Song. Deepcleave: a deep learning predictor for caspase and matrix metalloprotease substrates and cleavage sites. Bioinformatics, 36(4):1057-1065, 09 2019. ISSN 1367-4803. doi: 10.1093/bioinformatics/btz721. URL https://doi.org/10.1093/bioinformatics/btz721. +[21] Fuyi Li, Andre Leier, Quanzhong Liu, Yanan Wang, Dongxu Xiang, Tatsuya Akutsu, Geoffrey I. Webb, A. Ian Smith, Tatiana Marquez-Lago, Jian Li, and Jiangning Song. Procleave: Predicting protease-specific substrate cleavage sites by combining sequence and structural information. Genomics, Proteomics & Bioinformatics, 18(1):52-64, 05 2020. +[22] Neil D Rawlings, Alan J Barrett, and Alex Bateman. Merops: the database of proteolytic enzymes, their substrates and inhibitors. *Nucleic Acids Research*, 40(Database issue):D343–D350, 2012. doi: 10.1093/nar/gkr987. URL http://merops.sanger.ac.uk. Available from PMC3245014. +[23] The UniProt Consortium. Uniprot: the universal protein knowledgebase in 2025. Nucleic Acids Research, 53(D1):D609-D617, 11 2024. ISSN 0305-1048. doi: 10.1093/nar/gkae1010. URL https://doi.org/10.1093/nar/gkae1010. +[24] Maria I. Freiberger, A. Brenda Guzovsky, Peter G. Wolynes, R. Gonzalo Parra, and Diego U. Ferreiro. Local frustration around enzyme active sites. Proceedings of the National Academy of Sciences of the United States of America, 116(10):4037-4043, 2019. doi: 10.1073/pnas.1819859116. URL https://doi.org/10.1073/pnas.1819859116. +[25] Enyan Dai and Suhang Wang. Towards self-explainable graph neural network, 2021. URL https://arxiv.org/abs/2108.12055. +[26] Shengjie Luo, Tianlang Chen, Yixian Xu, Shuxin Zheng, Tie-Yan Liu, Liwei Wang, and Di He. One transformer can understand both 2d & 3d molecular data, 2023. URL https://arxiv.org/abs/2210.01765. +[27] Enyan Dai, Limeng Cui, Zhengyang Wang, Xianfeng Tang, Yinghan Wang, Monica Cheng, Bing Yin, and Suhang Wang. A unified framework of graph information bottleneck for robustness and membership privacy, 2023. URL https://arxiv.org/abs/2306.08604. +[28] Enyan Dai and Suhang Wang. Towards prototype-based self-explainable graph neural network, 2022. URL https://arxiv.org/abs/2210.01974. + +[29] Jinghan Yang, Zhiqiang Gao, Xiuhan Ren, Jie Sheng, Ping Xu, Cheng Chang, and Yan Fu. Deepdigest: prediction of protein proteolytic digestion with deep learning. Analytical Chemistry, 93(15):6094-6103, 2021. +[30] Peter G. Mikhael, Itamar Chinn, and Regina Barzilay. Clipzyme: Reaction-conditioned virtual screening of enzymes, 2024. URL https://arxiv.org/abs/2402.06748. +[31] Chenqing Hua, Bozitao Zhong, Sitao Luan, Liang Hong, Guy Wolf, Doina Precup, and Shuangjia Zheng. Reactzyme: A benchmark for enzyme-reaction prediction, 2024. URL https://arxiv.org/abs/2408.13659. +[32] Nadav Brandes, Dan Ofer, Yam Peleg, Nadav Rappoport, and Michal Linial. Proteinbert: a universal deep-learning model of protein sequence and function. Bioinformatics, 38(8): 2102-2110, 2022. +[33] Ahmed Elnaggar, Michael Heinzinger, Christian Dallago, Ghalia Rehawi, Yu Wang, Llion Jones, Tom Gibbs, Tamas Feher, Christoph Angerer, Martin Steinegger, et al. Protrans: Toward understanding the language of life through self-supervised learning. IEEE transactions on pattern analysis and machine intelligence, 44(10):7112-7127, 2021. +[34] Bowen Jing, Stephan Eismann, Patricia Suriana, Raphael JL Townshend, and Ron Dror. Learning from protein structure with geometric vector perceptrons. arXiv preprint arXiv:2009.01411, 2020. +[35] Victor Garcia Satorras, Emiel Hoogeboom, and Max Welling. E (n) equivariant graph neural networks. In International conference on machine learning, pages 9323-9332. PMLR, 2021. +[36] Zuobai Zhang, Minghao Xu, Arian Jamasb, Vijil Chenthamarakshan, Aurelie Lozano, Payel Das, and Jian Tang. Protein representation learning by geometric structure pretraining. arXiv preprint arXiv:2203.06125, 2022. +[37] Junjie Xu, Jiahao Zhang, Mangal Prakash, Xiang Zhang, and Suhang Wang. Dualequinet: A dual-space hierarchical equivariant network for large biomolecules, 2025. URL https://arxiv.org/abs/2506.19862. +[38] Junjie Xu, Artem Moskalev, Tommaso Mansi, Mangal Prakash, and Rui Liao. Beyond sequence: Impact of geometric context forrna property prediction, 2025. URL https://arxiv.org/ abs/2410.11933. +[39] Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng, Guolin Ke, Di He, Yanming Shen, and Tie-Yan Liu. Do transformers really perform badly for graph representation? Advances in neural information processing systems, 34:28877-28888, 2021. +[40] Junjie Xu, Artem Moskalev, Tommaso Mansi, Mangal Prakash, and Rui Liao. HARMONY: A multi-representation framework for RNA property prediction. In ICLR 2025 Workshop on Machine Learning for Genomics Explorations, 2025. URL https://openreview.net/forum?id=U3Ejoy1BG2. +[41] Shuo Yan, Yuliang Yan, Bin Ma, Chenao Li, Haochun Tang, Jiahua Lu, Minhua Lin, Yuyuan Feng, Hui Xiong, and Enyan Dai. Protap: A benchmark for protein modeling on realistic downstream applications, 2025. URL https://arxiv.org/abs/2506.02052. +[42] Helen M. Berman, John Westbrook, Zukang Feng, Gary Gilliland, T. N. Bhat, Helge Weissig, Ilya N. Shindyalov, and Philip E. Bourne. The protein data bank. *Nucleic Acids Research*, 28 (1):235–242, 01 2000. ISSN 0305-1048. doi: 10.1093/nar/28.1.235. URL https://doi.org/10.1093/nar/28.1.235. +[43] Alessia David, Suhail Islam, Evgeny Tankhilevich, and Michael J. E. Sternberg. The alphafold database of protein structures: A biologist's guide. Journal of Molecular Biology, 434(2): 167336, 2022. doi: 10.1016/j.jmb.2021.167336. URL https://doi.org/10.1016/j.jmb. 2021.167336. Epub 2021 Oct 29. + +[44] Ruidong Wu, Fan Ding, Rui Wang, Rui Shen, Xiwen Zhang, Shitong Luo, Chenpeng Su, Zuofan Wu, Qi Xie, Bonnie Berger, Jianzhu Ma, and Jian Peng. High-resolution de novo structure prediction from primary sequence. bioRxiv, 2022. doi: 10.1101/2022.07.21.500999. URL https://www.biorxiv.org/content/early/2022/07/22/2022.07.21.500999. +[45] R. Gonzalo Parra, Nicholas P. Schafer, Leandro G. Radusky, Min-Yeh Tsai, A. Brenda Guzovsky, Peter G. Wolynes, and Diego U. Ferreiro. Protein frustratometer 2: a tool to localize energetic frustration in protein molecules, now with electrostatics. *Nucleic Acids Research*, 44(W1):W356-360, 2016. doi: 10.1093/nar/gkw304. URL https://doi.org/10.1093/nar/gkw304. Epub 2016 Apr 29. +[46] Aram Davtyan, Nicholas P. Schafer, Weihua Zheng, Cecilia Clementi, Peter G. Wolynes, and Garegin A. Papaian. Awsem-md: Protein structure prediction using coarse-grained physical potentials and bioinformatically based local structure biasing. The Journal of Physical Chemistry B, 116(29):8494-8503, 07 2012. ISSN 1520-6106. doi: 10.1021/jp212541y. URL https://doi.org/10.1021/jp212541y. +[47] Yujie Song, Qiang Yuan, Shuo Chen, et al. Accurately predicting enzyme functions through geometric graph learning on esmfold-predicted structures. Nature Communications, 15:8180, 2024. doi: 10.1038/s41467-024-48180-9. GraphEC. +[48] Niloofar Abdollahi, Shayan A. M. Tonekaboni, Jian Huang, Bo Wang, and Sean MacKinnon. Nodecoder: A graph-based machine learning platform to predict active sites of modeled protein structures. In NeurIPS Machine Learning for Structural Biology (MLSB) Workshop, 2021. NodeCoder. +[49] J. J. Perona and C. S. Craik. Evolutionary divergence of substrate specificity within the chymotrypsin-like serine protease fold. J. Biol. Chem., 272(48):29987-29990, 1997. +[50] E. Szabó, Z. Böcskei, G. Náray-Szabó, and L. Graf. Three-dimensional structure of asp189ser trypsin provides evidence for an inherent structural plasticity of the protease. Eur. J. Biochem., 263(1):20-26, 1999. +[51] W. Ma, C. Tang, and L. Lai. Specificity of trypsin and chymotrypsin: loop-motion-controlled dynamic correlation as a determinant. Biophys. J., 89(2):1183-1193, 2005. +[52] S. F. Lichtenthaler, R. Wang, H. Grimm, S. M. Uljon, C. L. Masters, and K. Beyreuther. Mechanism of the cleavage specificity of alzheimer's disease -secretase identified by phenylalanine-scanning mutagenesis of the transmembrane domain of the amyloid precursor protein. Proc. Natl. Acad. Sci. U.S.A., 96(6):3053-3058, 2003. +[53] Jan P. Pethe, A. B. Rubenstein, and S. D. Khare. Data-driven supervised learning of a viral protease specificity landscape from deep sequencing and molecular simulations. Proc. Natl. Acad. Sci. U.S.A., 116(1):168-176, 2019. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The abstract and introduction clearly enumerate the three main contributions of UniZyme and these match the experimental results demonstrating its superior performance and generalization. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We conduct a failure case analysis in Appendix K to analyze the limitation of our work. It implies the future directions to improve the proposed UniZyme. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: No formal theorems or proofs are presented in this empirical work. + +Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: Data curation procedures, training/test splits, model architectures, and hyperparameters are fully specified in the main text and Appendix, and code is made available. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: The UniZyme code repository URL is provided in the abstract, and all source data (MEROPS, UniProt) are publicly accessible. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: Dataset statistics, data splits, optimizer settings, batch size, pretraining protocol, and evaluation metrics are described in Sections 4 and Appendix A, B and C. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [Yes] + +Justification: All reported metrics (ROC-AUC, PR-AUC) include mean $\pm$ standard deviation over five runs. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. + +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We detail the exact GPU (NVIDIA A6000), the number of GPUs used $(8\times \mathrm{A}6000$ for training, $1\times \mathrm{A}6000$ for inference), per-task runtimes (hours for training, seconds per inference), and aggregate compute cost in Appendix I. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: Our work involves no human subjects or other sensitive domains, and we have followed all NeurIPS ethical guidelines, preserving anonymity and data integrity throughout. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: The Broader Impacts section L describes concrete benefits—faster drug discovery, enzyme re-engineering, and pandemic preparedness—and notes the potential + +misuse of the model for creating harmful proteases, thereby covering both positive and negative societal impacts. + +# Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: UniZyme does not release high-risk models or restricted data. + +# Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We explicitly state in Appendix A the license terms, and cite all related sources. + +# Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. + +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +Justification: The supplemented enzyme dataset is documented in Appendix A with detailed curation steps, and the code/data release is described in abstract. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: No human-subject or crowdsourced data is involved. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: No human-subject or crowdsourced data is involved. + +# Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [NA] + +Justification: No large-language models were used in the core methodology or manuscript preparation. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +Algorithm 1 Training algorithm of UniZyme +Require: Supplemented enzyme set $\mathcal{D}_a$ , Cleavage site prediction dataset $\mathcal{D}_c$ , hyperparameters $\lambda$ +Ensure: A unified cleavage site predictor $f_{\theta}$ +1: Initialize features of enzyme and substrate protein by ESM-2 +2: Pretrain enzyme encoder on $\mathcal{D}_a$ with $\mathcal{L}_a$ by Eq.(6) +3: for epoch = 1 to $N$ do +4: for each batch $(\mathcal{P}^e, \mathcal{P}^s)$ in $\mathcal{D}_c$ do +5: Compute the distance matrix $\mathbf{D}^e$ , and energetic frustration matrix $\mathbf{F}^e$ from enzyme structure by Eq.(2) +6: Encode the enzyme and substrate protein by Eq.(4) +7: Obtain the enzyme representation with active site-aware pooling by Eq.(7) +8: Predict active sites of enzymes by Eq.(5) +9: Predict cleavage sites of substrate proteins by Eq.(8) +10: Update $\theta$ via $\nabla (\mathcal{L}_c + \lambda \mathcal{L}_a)$ +11: end for +12: if validation loss increases for 3 epochs then +13: break +14: end if +15: end for + +# A Details of Data Curation and Benchmark Construction + +# A.1 Data Curation and Preprocessing + +For the cleavage dataset, we downloaded enzyme-substrate pairs from the MEROPS [22] database, collected substrate sequences from the UniProt database, and retrieved enzyme sequences recorded in MEROPS. Additionally, we compared the enzyme sequences between MEROPS and UniProt, excluding those with discrepancies, as such inconsistencies often result from asynchronous updates. To maintain controllable sequence lengths, we filtered out all enzyme and substrate sequences exceeding 1,500 residues. + +Regarding the supplemented enzyme set with active sets, we first searched in the UniProt [23] database for enzymes with EC numbers starting with 3.4.*.* and filtered for reviewed data. Then, we selected entries with annotated active sites as our pretraining dataset. In addition, proteolytic enzymes in MEROPS are all annotated with active sites, and are combined as the supplemented enzyme set. + +Protein structures were collected from the PDB [42] and AlphaFoldDB [43]. For proteins without available structures in these databases, we generated their structures using OmegaFold [44]. + +Additionally, all datasets are used in accordance with their respective licenses: MEROPS is distributed under the GNU Lesser General Public License (LGPL), UniProt under Creative Commons Attribution 4.0 (CC BY 4.0), the Protein Data Bank under CC0, AlphaFold DB under CC BY 4.0, and OmegaFold under the MIT License. + +# A.2 Data Expansion + +The MEROPS database classifies enzymes into categories based on their substrate cleavage sites. Enzymes belonging to the same MEROPS category typically share highly similar cleavage-site characteristics[22]. Drawing on previous work, we assume that minor sequence differences among enzymes of the same category can be disregarded. Consequently, the hydrolysis information from a substrate-enzyme pair is extended to all enzymes in that category. + +Therefore, we expanded our dataset by matching each substrate not only with the originally mapped enzyme but also with other enzymes in the same MEROPS category. Through this procedure, we obtained approximately 220K valid enzyme-substrate pairings, involving 677 unique enzymes. Detailed distributions of enzyme and substrate pairs are provided in Tab. 7. + +Table 7: Dataset statistics of training datasets. + +
UtilizationDatasets#Substrate-Enzyme PairsEnzymesSubstrates
Active site datasetUniProtNA11,530NA
Cleavage site datasetMEROPS197,6136777,475
+ +# A.3 Construction of Supervised and Zero-shot Benchmarks + +Supervised Setting. We selected MEROPS enzyme families containing at least five distinct substrates, yielding 69 families and approximately $21\mathrm{K}$ enzyme-substrate pairs. All pairs in each family were randomly split 70/10/20 into training, validation and test sets. To ensure the test substrates were sufficiently distinct from those in training, we collected all substrates per family and computed pairwise sequence similarity using the Needleman-Wunsch algorithm (BLOSUM62, gap opening penalty=10, gap extension penalty=0.5). Substrates exhibiting less than $50\%$ similarity to any other were deemed independent, and $20\%$ of independent substrates were sampled to form the final test set. This procedure evaluates model generalization on more divergent substrates within each MEROPS family. + +Zero-shot Setting. Following the same selection criteria, we identified MEROPS families with at least five enzymes, yielding 23 families and roughly $5.3\mathrm{K}$ enzyme-substrate pairs. In each family, $20\%$ of the enzymes were randomly set aside as a zero-shot test set. To guarantee that these test enzymes were truly unseen, we computed pairwise sequence identities against all training and pretraining enzymes using the Needleman-Wunsch algorithm (BLOSUM62, gap opening penalty $= 10$ , gap extension penalty $= 0.5$ ) and retained only those enzymes whose identity fell below a $60\%$ threshold. This procedure prevents any overlap between zero-shot test enzymes and the training/pretraining pool, rigorously evaluating the model's ability to generalize to novel enzymes. + +# B Details of Baselines + +Below, we provide additional details on how we adapt, retrain, or utilize each baseline for comparison. Unless otherwise specified, all default hyperparameters are used as in the original implementations of these methods. For any required data, we convert our data format accordingly. + +ProsperousPlus [10] and DeepDigest [29] all provide publicly available code, enabling us to retrain their models within our supervised setting. We use the same training and test sets as those used for our method, specifically for the supervised benchmark. We adopt the default training code from each repository while ensuring that all other settings remain consistent. + +ScreenCap3 [18] and CAT3 [9], specialized for the C14.003 enzyme, do not provide publicly available datasets or source code for retraining. Instead, they each offer a prediction platform: a web server for ScreenCap3 and standalone software for CAT3. We use these platforms to generate predictions on our test set. Since their training data are not publicly accessible, we can only report their performance as is, with the caveat that neither model can be applied to other enzymes. + +We also compare with two recent enzyme-substrate interaction models, ClipZyme [30] and Re-actZyme [31], which were originally proposed for reaction rather than cleavage prediction. Re-actZyme encodes enzymes with an ESM-2 plus MLP pipeline, but since its trained weights are unavailable, we retrain it from scratch on our dataset. ClipZyme employs an E(n) Equivariant Graph Neural Network (EGNN) to incorporate structural information into its enzyme encoder. Both models use average-pooling to aggregate the extracted enzyme features and are trained without activation-site loss. To highlight the effect of leveraging active-site knowledge, we keep the original pretrained EGNN for ClipZyme as is and integrate it into our cleavage-site prediction framework, adding only a linear projection layer to interface with the cleavage-site prediction module. + +# C Implementation Details + +Framework and Hardware. We implemented our models in PyTorch and trained using the Adam optimizer with a learning rate of $1 \times 10^{-4}$ and a batch size of 48. All experiments were conducted + +on eight NVIDIA A6000 GPUs(48G). We adopted an early stopping strategy with a patience of 3 epochs, monitoring the validation loss to prevent overfitting. + +Substrate Representations. Similar to the enzyme pipeline, but without energetic frustration, each residue is embedded by ESM-2 padded to 1500 length. We compute pairwise $\mathrm{C}\alpha$ -distances $\mathbf{D}^s (i,j) = \| \mathbf{r}_i - \mathbf{r}_j\| _2$ , then applying a reciprocal transform. Each distance entry is processed by a Gaussian basis kernel and MLP, yielding a bias term $\Phi_{i,j}^{\mathrm{dist}}$ added to the attention score: + +$$ +\mathbf {A} _ {i, j} ^ {k} = \frac {\left(\mathbf {h} _ {i} ^ {k - 1} \mathbf {W} _ {Q}\right) \left(\mathbf {h} _ {j} ^ {k - 1} \mathbf {W} _ {K}\right) ^ {T}}{d} + \Phi_ {i, j} ^ {\text {d i s t}}, \tag {11} +$$ + +thus incorporating structural information. The substrate representation $\mathbf{H}^s\in \mathbb{R}^{|\mathcal{P}^s |\times d}$ is obtained via + +$$ +\mathbf {H} ^ {s} = \operatorname {T r a n s f o r m e r} \left(\mathbf {X} ^ {s}, \mathbf {D} ^ {s}\right), \tag {12} +$$ + +with the same architecture as the enzyme encoder but omitting energy-related parameters. + +Pooling Weight Function. In Active Site-Aware Pooling module, $f(\cdot)$ is a learnable mapping that transforms each predicted active-site probability into its final pooling weight, in direct analogy to how we use Gaussian kernels to map energy and distance into attention biases. + +Concretely, we first pass the scalar probability $\hat{a}_i$ through a Gaussian basis expansion: + +$$ +\phi_ {\mathrm {a c t}} (\hat {a} _ {i}) = \left[ \phi_ {\mathrm {a c t}, 1} (\hat {a} _ {i}), \dots , \phi_ {\mathrm {a c t}, K} (\hat {a} _ {i}) \right] \in \mathbb {R} ^ {K}, \tag {13} +$$ + +which produces a richer, multi-dimensional embedding. We then apply an MLP to collapse this embedding to a single weight: + +$$ +w _ {i} = f \left(\hat {a} _ {i}\right) = \operatorname {M L P} \left(\phi_ {\text {a c t}} \left(\hat {a} _ {i}\right)\right). \tag {14} +$$ + +Energy Frustration Calculation. We computed residue-pair frustration using the Frustratometer tool [45] with AWSEM (Associative Water-mediated Structure and Energy Model) potentials [46], disabling electrostatic interactions ( $k_{\mathrm{electrostatics}} = 0$ ) and enforcing a minimum sequence separation of 12 residues between residue pairs. Specifically, for each pair of residues $(i,j)$ in enzyme $\mathcal{P}^e$ , the actual interaction energy $\mathbf{E}(i,j)$ was extracted from the AWSEM potential. To capture local energetic fluctuations, we generated an ensemble of randomized configurations (where the sequence or side-chain identities are shuffled while preserving the protein backbone), thereby obtaining a distribution of interaction energies for each pair. + +Let $\mu_{\mathrm{rand}}(i,j)$ and $\sigma_{\mathrm{rand}}(i,j)$ be the mean and standard deviation of these interaction energies over the randomized ensemble. The frustration score $\mathbf{F}(i,j)$ is then computed as: + +$$ +\mathbf {F} (i, j) = \frac {\mathbf {E} (i , j) - \mu_ {\text {r a n d}} (i , j)}{\sigma_ {\text {r a n d}} (i , j)}. \tag {15} +$$ + +A higher $\mathbf{F}(i,j)$ indicates that the local region around residues $(i,j)$ is more frustrated (i.e., further from minimal AWSEM-derived energy). Such regions often correspond to sites of functional importance in enzymes. + +To estimate how $\mathbf{E}(i,j)$ deviates from an energetically minimal arrangement, we generated an ensemble of randomized "decoy" configurations for the same residue pair. These decoys preserve global geometry (e.g. backbone coordinates) but shuffle aspects such as side-chain packing or local environment, depending on the chosen protocol within the Frustratometer. Each decoy thus provides a distinct pairwise interaction energy. By sampling multiple decoys, we obtain an approximate distribution of energies $\tilde{E}_k(i,j)$ , from which we compute: + +$$ +\mu_ {\text {r a n d}} (i, j) = \frac {1}{K} \sum_ {k = 1} ^ {K} \tilde {E} _ {k} (i, j), \tag {16} +$$ + +$$ +\sigma_ {\text {r a n d}} (i, j) = \sqrt {\frac {1}{K - 1} \sum_ {k = 1} ^ {K} \left(\tilde {E} _ {k} (i , j) - \mu_ {\text {r a n d}} (i , j)\right) ^ {2}}, \tag {17} +$$ + +where $K$ is the number of randomized decoys (typically on the order of a few hundred in the Frustratometer). + +Gaussian Basis Kernel Function. Following Transformer-M [26], we employ a set of learnable Gaussian basis kernels to transform a scalar input (e.g., the distance $\mathbf{D}(i,j)$ or the frustration score $\mathbf{F}(i,j)$ ) into a fixed-dimensional embedding. Concretely, suppose we have $K$ Gaussian kernels parameterized by $\{\mu^k,\sigma^k\}_{k = 1}^K$ . For an input scalar $x$ , the Gaussian basis kernel function $\phi (x)$ is defined as: + +$$ +\phi (x) = \left[ \exp \left(- \frac {1}{2} \left(\frac {x - \mu^ {1}}{\sigma^ {1}}\right) ^ {2}\right), \exp \left(- \frac {1}{2} \left(\frac {x - \mu^ {2}}{\sigma^ {2}}\right) ^ {2}\right), \dots , \exp \left(- \frac {1}{2} \left(\frac {x - \mu^ {K}}{\sigma^ {K}}\right) ^ {2}\right) \right] ^ {\top}. \tag {18} +$$ + +Each kernel center $\mu^k$ and width $\sigma^k$ is learnable, allowing the model to adaptively capture different regions of the input space. We apply this basis expansion to both $\mathbf{D}(i,j)$ and $\mathbf{F}(i,j)$ , producing a $K$ -dimensional vector for each pair $(i,j)$ . An MLP then projects this kernel output into the space of attention biases. We set the number of Gaussian basis functions to $K = 10$ , each parameterized by learnable centers $\mu^k$ and widths $\sigma^k$ . Notably, we maintain separate sets of Gaussian parameters for the energy and structure channels, ensuring that the model can adaptively learn distinct representations for each. + +Training Algorithm. Each sample's ESM-2 embeddings (packed to length 1500), along with distance and energy frustration matrices, are fed into our model to predict both active-site and cleavage-site residues. We use a weighted binary cross-entropy loss and optimize with Adam for up to 15 epochs, applying early stopping (patience $= 3$ ) based on validation loss. + +# D Comparison of Active-Site Prediction Module + +To comprehensively evaluate the active-site prediction module of UniZyme, we compared it with two representative structure-based models that utilize enzyme structural and sequence information: GraphEC [47] and NodeCoder [48]. Both models were implemented using their official repositories and retrained on the same large-scale active-site prediction dataset employed by UniZyme. The dataset statistics are summarized in Table 8. The performance of different models is reported in Table 9. UniZyme achieves consistently superior results compared to the baselines. + +Table 8: Data statistics for the active-site prediction task. + +
DatasetNumber of EnzymesNumber of Active Sites
Training922024891
Test23496459
+ +Table 9: Comparison of active-site prediction performance. + +
ModelAUROC (%)AUPR (%)Precision (%)Recall (%)F1 (%)
UniZyme89.535.165.345.653.7
GraphEC80.328.052.138.744.4
NodeCoder67.417.832.622.326.5
Random Guess50.03.23.250.06.0
+ +# E Structural Source Sensitivity Analysis + +To evaluate the robustness of UniZyme with respect to the source of structural data, we partitioned the test set into four quadrants based on whether the enzyme and substrate structures were obtained from experimental (natural) or predicted sources. Table 10 reports the PR-AUC results under both supervised and zero-shot settings. + +Table 10: PR-AUC (%) of UniZyme under different structural-source combinations. + +
Structure SourceZero-shot PR-AUC (%)Supervised PR-AUC (%)
Both Natural Structures (3%)72.280.3
Natural Enzyme + Generated Substrate (7%)71.977.9
Natural Substrate + Generated Enzyme (8%)70.581.9
Both Generated Structures (82%)69.478.3
+ +# F Statistical Significance Testing + +To confirm that the performance improvements of UniZyme over baseline models are statistically significant, we conducted two-sample t-tests on PR-AUC scores across enzyme families under both supervised and zero-shot settings. Table 11 summarizes the results. + +Table 11: Two-sample t-test results comparing UniZyme with baseline models. + +
SettingComparisont-valuep-value
SupervisedUniZyme vs ReactZyme7.187.8e-10
SupervisedUniZyme vs ClipZyme5.093.0e-06
Zero-shotUniZyme vs ReactZyme2.611.6e-02
Zero-shotUniZyme vs ClipZyme4.273.1e-04
+ +# G Cross-Task Transferability: EC Number Classification + +To assess whether the enzyme encoder of UniZyme captures generalizable biochemical signals, we evaluated it on the EC number classification task for proteases (EC 3.4.*.*). The same dataset split used in the cleavage-site prediction task was reused here. Table 12 presents the results in terms of AUROC. + +Table 12: Performance of enzyme encoders on EC number classification. + +
ModelAUROC (%)
UniZyme94.1
ClipZyme90.2
ReactZyme82.3
+ +# H Interpretability and Mechanistic Consistency + +We conducted interpretability analyses to understand how UniZyme utilizes active-site information for cleavage-site prediction. Higher predicted active-site confidence consistently corresponds to better PR-AUC, indicating that UniZyme effectively leverages active-site cues (Table 13). Gradient-based attribution analysis further shows that active-site residues contribute more strongly to cleavage prediction than background residues (Table 14), confirming that the model's attention is aligned with catalytic regions. Moreover, perturbation experiments demonstrate that masking top predicted active-site residues causes a substantial PR-AUC drop, whereas perturbing random residues has minimal effect (Table 15), verifying that UniZyme's predictions are causally linked to the identified catalytic sites. + +Mechanistic Basis of Enzyme Cleavage. During protein hydrolysis, enzyme active sites provide a specific geometric and electrochemical environment that enables cleavage only at substrate residues exhibiting optimal complementarity. Thus, active-site geometry and chemistry directly influence cleavage-site specificity. Structural biology and mutational evidence strongly support this relationship: a single residue change in the S1 pocket of canonical serine proteases (e.g., trypsin vs. chymotrypsin) + +can dramatically alter specificity by reshaping charge preference and side-chain accommodation [49, 50]. Loop variations near the active-site pocket can also reshape neighboring subsites and modulate substrate scope [51]. Furthermore, structural studies of Alzheimer's $\gamma$ -secretase show that the architecture of the binding cleft and distal exosomes critically determine substrate recognition, where mutations at the interface shift cleavage patterns [52]. Energetic and mutational scanning analyses of viral proteases (e.g., HCV NS3/4A) also reveal that substrates optimally filling the active-site groove undergo efficient catalysis, while suboptimal packing results in weak or absent cleavage [53]. + +These mechanistic observations provide biological grounding for UniZyme's interpretability analyses: the model's high sensitivity to predicted active-site residues mirrors the physicochemical principles underlying real enzymatic catalysis, reinforcing that UniZyme captures not only statistical correlations but also mechanistic causality. + +Table 13: PR-AUC (%) across bins of predicted active-site confidence. + +
Active-Site Probability RangeZero-shot PR-AUC (%)Supervised PR-AUC (%)
[0.8, 1.0]78.685.4
[0.6, 0.8)73.880.3
[0.4, 0.6)63.173.9
[0.2, 0.4)57.761.6
[0, 0.2)52.156.2
+ +Table 14: Average attribution magnitude for active-site and background residues. + +
Residue TypeEmbed. Sens. (Sup.)Upstream Attr. (Sup.)Embed. Sens. (Zero-shot)Upstream Attr. (Zero-shot)
Active-site residues0.680.740.550.60
Background residues0.230.100.190.08
+ +Table 15: Effect of perturbing pooling weights on PR-AUC $(\%)$ + +
Perturbation TargetSup. Orig.Sup. PostΔ (Sup.)Zero Orig.Zero PostΔ (Zero)
Predicted active-site residues (Top-5)79.366.213.171.157.413.7
Random non-active-site residues79.378.81.571.169.41.7
+ +# I Computational Effectiveness + +Tab. 16 reports wall-clock times measured on NVIDIA A6000 GPUs. Training was conducted on 8xA6000 GPUs; inference was profiled on a single A6000 GPU. As shown, UniZyme's end-to-end training cost is comparable to baselines, and its average per-pair inference latency remains within practical bounds (around 1s overhead). + +Table 16: Training and inference times. + +
ModelTotal Training Time (h)Inference per Pair (s)
Pretraining of UniZyme12.5—
UniZyme30.95.2
ClipZyme31.43.5
ReactZyme30.34.4
+ +# J Ablation Studies + +The Tab. 17 reports the average PR-AUC across 69 supervised families and 23 zero-shot families. Full UniZyme achieves the best results in both settings, and performance progressively declines when the SE, A, or P modules are ablated. + +Table 17: Ablation Studies on 69 supervised and 23 zero-shot enzyme families. + +
ModelSupervisedZero-shot
UniZyme79.3±1.271.1±2.3
UniZyme\SE75.3±1.965.3±1.4
UniZyme\A72.5±1.560.6±1.8
UniZyme\P73.0±2.262.1±2.7
+ +# K Failure Case Analysis (Limitation) + +In our supervised experiments, the M10.003 family consistently lagged behind C14.003 and C14.005, despite having comparable dataset sizes. To understand this, we computed the Shannon entropy of the amino acid distribution at positions P1-P6 around the cleavage site (P3-P4) in Tab. 18. Lower entropy indicates more conserved residues, which simplifies pattern recognition. + +Table 18: Shannon entropy at positions around the cleavage site (P3-P4). + +
ClanP1P2P3 (cleavage site)P4 (cleavage site)P5P6
C14.0054.104.093.203.994.114.11
C14.0034.114.013.403.964.054.11
M10.0033.974.003.953.664.033.90
+ +Both C14.003 and C14.005 exhibit markedly lower entropy at the cleavage-site residues (P3, P4), indicating conserved amino acids that aid substrate recognition. By contrast, M10.003 shows uniformly higher entropy, reflecting greater sequence diversity and fewer distinctive cleavage motifs. Moreover, as a metalloprotease, M10.003's activity depends on complex metal-ion coordination in its active-site, further complicating its cleavage specificity. + +These observations suggest that M10.003's higher substrate diversity and more intricate catalytic mechanism underlie its lower prediction accuracy. In future work, we plan to integrate metal-ion binding data and more detailed active-site pocket features to better capture the unique determinants of metalloprotease specificity. + +# L Broader Impacts + +Accurately predicting protease-substrate cleavage sites across a wide enzymatic landscape is pivotal for therapeutic molecule design, industrial biocatalysis, and systematic studies of disease-associated proteolysis. By performing large-scale virtual mapping of these interactions, UniZyme enlarges the set of candidate targets that experimentalists can pursue, thereby accelerating lead prioritization in early-stage drug discovery, guiding the engineering of enzymes with enhanced specificity and stability, and enabling rapid evaluation of emerging viral proteases to bolster pandemic preparedness. Like any computational framework that substantially improves the efficiency of protease screening and functional prediction, UniZyme could be misapplied—for instance, to create proteases that undermine existing biologics or aid in the synthesis of harmful compounds. + +# M Additional Experiments and Visualizations + +As shown in Fig. 8, we conducted zero-shot testing on all enzymes not included in the training data to evaluate the model's capability in predicting enzyme active sites. + +![](images/e067b71fdbba07281125b56755eede0295dca25e41112fc380f3b69a282de22a.jpg) +(a) ROC Curve + +![](images/c9104701edecbc10cd1cee4a424a21b575fb18022002431ab40fdd9bda399b04.jpg) +(b) PR Curve +Figure 8: Model performance of active-site prediction + +![](images/2d63650b236681725872155f9065d70f3abd3b565fae1971679771c986bcd471.jpg) +Figure 9: Per-family PR-AUC (\%) across 69 supervised enzymes(Part 2: Enzymes 36-69) corresponding to Fig. 3. \ No newline at end of file diff --git a/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/images.zip b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..0e9dce735d88ede8f061628b777d112d2188e294 --- /dev/null +++ b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f49d97a0df97ad93445add1973e5058081b22cfb54d46aa6acbc51dda60a1e3e +size 833424 diff --git a/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/layout.json b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..ed7c26fb6f0466e42d02435709e9cf052ef5a798 --- /dev/null +++ b/NeurIPS/2025/UniZyme_ A Unified Protein Cleavage Site Predictor Enhanced with Enzyme Active-Site Knowledge/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:781df6682cc1fa8aea58c0e480b93f98fff059e28889f5baa909e4f6958aef8a +size 901506 diff --git a/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/c1eed45b-1e4c-481f-9d38-909b94148d62_content_list.json b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/c1eed45b-1e4c-481f-9d38-909b94148d62_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..f92dcf4ef794dc218029b1e4686f008b528ae32c --- /dev/null +++ b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/c1eed45b-1e4c-481f-9d38-909b94148d62_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5b7fe25fe5fb8f9c9110a7f257adbb51ba8e347e5268303ff876d0628adda27 +size 130440 diff --git a/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/c1eed45b-1e4c-481f-9d38-909b94148d62_model.json b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/c1eed45b-1e4c-481f-9d38-909b94148d62_model.json new file mode 100644 index 0000000000000000000000000000000000000000..1850cd477e897b29ecafa96ee89574038d8b9b07 --- /dev/null +++ b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/c1eed45b-1e4c-481f-9d38-909b94148d62_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6342e55c7dae6d9940b431a566cf8c411768ecdc0607ffdfb7478fd6a64410da +size 168272 diff --git a/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/c1eed45b-1e4c-481f-9d38-909b94148d62_origin.pdf b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/c1eed45b-1e4c-481f-9d38-909b94148d62_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..e1d3c1abe8919e1199d5326c9e9cf89d89a48af6 --- /dev/null +++ b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/c1eed45b-1e4c-481f-9d38-909b94148d62_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4374e3ad3b07fede02e2644c959623e2496d4eca7ac69379d534a412bc359757 +size 718413 diff --git a/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/full.md b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/full.md new file mode 100644 index 0000000000000000000000000000000000000000..412ed5a0564f98910e22138136f93b4263d11400 --- /dev/null +++ b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/full.md @@ -0,0 +1,564 @@ +# Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation + +Geng Chen* Pengfei Ren* Xufeng Jian Haifeng Sun† Menghao Zhang + +Qi Qi Zirui Zhuang Jing Wang Jianxin Liao Jingyu Wang + +State Key Laboratory of Networking and Switching Technology, + +Beijing University of Posts and Telecommunications + +{chengeng, rpf, jianxf, hfsun, zhangmenghao, qiqi8266, zhuangzirui, + +wangjing, liaojx, wangjingyu}@bupt.edu.cn + +# Abstract + +Multi-view 3D human pose estimation (HPE) leverages complementary information across views to improve accuracy and robustness. Traditional methods rely on camera calibration to establish geometric correspondences, which is sensitive to calibration accuracy and lacks flexibility in dynamic settings. Calibration-free approaches address these limitations by learning adaptive view interactions, typically leveraging expressive and flexible continuous representations. However, as the multiview interaction relationship is learned entirely from data without constraint, they are vulnerable to noisy input, which can propagate, amplify and accumulate errors across all views, severely corrupting the final estimated pose. To mitigate this, we propose a novel framework that integrates a noise-resilient discrete prior into the continuous representation-based model. Specifically, we introduce the UniCodebook, a unified, compact, robust, and discrete representation complementary to continuous features, allowing the model to benefit from robustness to noise while preserving regression capability. Furthermore, we propose an attribute-preserving and complementarity-enhancing Discrete-Continuous Spatial Attention (DCSA) mechanism to facilitate interaction between discrete priors and continuous pose features. Extensive experiments on three representative datasets demonstrate that our approach outperforms both calibration-required and calibration-free methods, achieving state-of-the-art performance. + +# 1 Introduction + +3D human pose estimation aims to estimate the 3D locations of keypoints from images or videos. It is important because 3D human skeletons are widely used in scenarios such as action recognition [21, 25], human mesh recovery [8, 12], and robotics manipulation [7, 34]. Although monocular pose estimation offers greater convenience in usage, its performance is limited by depth ambiguity and occlusion issues, which hinder its broader application. Multiview systems [36, 13, 22, 31] offer a promising solution by leveraging complementary information from different views, enhancing accuracy and robustness in pose estimation. Existing multiview methods utilize the geometric constraints provided by camera extrinsics to establish correspondences between views, facilitating the fusion of complementary information to enhance 3D pose prediction. There are several drawbacks to using camera calibration-based methods. First, due to the complexity and computational intensity of camera + +![](images/60575749b015084c04df5503ec93b6d948bc6a5da64987b1be1c8791f7da966d.jpg) +Figure 1: (a) Continuous transformer-based lifting method, which directly processes 2D pose inputs to estimate 3D poses. (b) Proposed method, which integrates discrete features as a robust prior within a continuous transformer-based framework, enhancing robustness to noisy 2D inputs and improving pose estimation accuracy. + +calibration, these methods incur higher costs and exhibit limited flexibility. Second, their performance is sensitive to the precision of camera extrinsics, which can be unsatisfactory in complex or dynamic environments. Therefore, uncalibrated multi-view pose estimation has emerged as a significant trend, as it avoids the impact of unreliable camera extrinsics and is more flexible in deployment, leading to better generalization capability and broader applicability in real-world scenarios. + +Many uncalibrated methods leverage adaptive multiview interaction patterns, relying on semantic intra-view and inter-view relationships to eliminate reliance on rigid geometric constraints. In recent years, purely transformer-based methods [32, 1, 2] have attracted increasing attention in calibration-free pose estimation, as they provide a unified and scalable framework for modeling spatial, view, and temporal relationships using attention mechanisms. Notably, FusionFormer [1] and PoseIRM [2] have exhibited performance that surpasses even that of calibrated methods. This observation suggests that uncalibrated methods, rather than being constrained by predefined geometric relationships, can instead exploit data-driven adaptive semantic constraints. Such flexibility enables them to more effectively capture context-aware dependencies across views, thereby learning richer and more robust feature representations. For example, calibrated methods depend heavily on geometric information from external calibration, which occlusions can easily disrupt. In contrast, without calibration, uncalibrated methods are forced to leverage multi-view interactions to dynamically correct errors. + +The superiority of transformer-based calibration-free framework can be attributed to their expressive and flexible continuous representations, which enable fine-grained modeling of pose dependencies when equipped with attention mechanism. Their continuity aligns with the continuous nature of both input and output spaces in 2D-to-3D pose lifting, enabling smooth, consistent, and precise mappings that are free from quantization errors and easy to optimize. However, this flexibility comes at the cost of increased susceptibility to overfitting when trained on limited data [5], making them sensitive to noisy 2D poses caused by occlusions and other common real-world challenges. Such errors can propagate, amplify and accumulate across views, affecting the accuracy of predictions from other views. Human pose is fundamentally constrained by inherent anatomical priors. These biological constraints, such as skeletal structure, joint motion limitations, and other biomechanical properties, define a natural boundary for valid poses. By encoding such anatomical knowledge as biomechanical priors in pose estimation models, we can intrinsically restrict the solution space to exclude implausible poses (e.g., hyperextended elbows or inverted knees). Explicitly inject priors for guidance has been proven highly effective in other domains, such as image generation [44] and 3D reconstruction [40, 41]. This prior-based regularization complements data-driven approaches by injecting domain-specific knowledge, significantly improving robustness against noisy inputs, and is particularly valuable in uncalibrated scenarios where semantic constraints are entirely learned from the input data. + +Despite the promise of integrating biomechanical prior-based regularization, effectively incorporating them into pose estimation models remains a non-trivial challenge. First, a core difficulty lies in how to represent such priors in a way that is structurally robust in representation. Discrete representations offer a promising solution by clustering large amount of body configurations into a limited set of prototypical poses, which encourages the learning of high-quality dominant pose prototypes. This compression enforces structural regularity by restricting the model to select from a predefined pose vocabulary, thereby reducing overfitting to spurious or implausible patterns. Moreover, such many-to-one mappings, i.e., multiple inputs can be mapped to the same prototype, naturally introduces tolerance to + +noisy variations, as structurally similar but perturbed poses are treated equivalently. Although it is data-driven, such quantized space can serve as compact, interpretable, and noise-resilient priors-especially beneficial in ambiguous or weakly constrained estimation scenarios. Second, integrating discrete priors into continuous regression models introduces a representational mismatch. While discrete pose spaces are optimized for compactness and structural regularity, pose regressors demand fine-grained flexibility. Directly constraining outputs to lie in the discrete space may hinder expressiveness. + +As illustrated in Figure 1, to address the challenges of constructing and leveraging human pose priors, we propose a unified, compact, and noise-resilient discrete prior-enhanced pipeline for 2D-to-3D human pose estimation. Central to our framework is the UniCodebook, which encodes both 2D and 3D poses as compositions of discrete sub-structure tokens within a shared discrete space to server as an informative prior that captures essential pose patterns and promotes resilience to noise. While discrete priors provide strong structural regularization and robustness to noise, their quantized nature inherently mismatches the continuous solution space required for accurate pose regression. Rather than directly regularizing the regressed output, we propose a Discrete-Continuous Spatial Attention (DCSA) module to enable continuous pose features to selectively attend to relevant discrete prototypes, which preserves the continuity of the original regression pipeline while softly integrating structural guidance from the discrete prior. By avoiding hard projection into the discrete space, DCSA mitigates representational mismatch and allows the model to inherit noise robustness from the discrete prior without sacrificing fine-grained precision, thereby effectively reconciling the gap between discrete structure and continuous prediction. We demonstrate the effectiveness by achieving state-of-the-art results on three benchmark datasets covering multiple complex scenarios. + +The main contributions of the article are as follows: + +- VQ-VAE as a Robust Prior for Pose Estimation: We propose the use of VQ-VAE to serve as a robust prior for pose estimation. By unifying 2D and 3D pose representations within a shared codebook, VQ-VAE further enhances its robustness to noisy pose, ensuring more accurate and consistent predictions, especially in challenging scenarios such as occlusion or 2D detection errors. +- Discrete-Continuous Representation Interaction: We introduce an attribute-preserving and complementarity-enhancing mechanism for the interaction between discrete (codebook-based) and continuous (transformer-based) representations. This allows the discrete tokens to guide the continuous features, infusing noise-resilient properties into the backbone while preserving the regression capability of the continuous representation in continuous tasks (i.e., pose estimation). +- State-of-the-Art Performance: The proposed approach is capable of calibration-free human pose estimation even under significant noise, achieving SOTA performance on three large datasets. + +# 2 Related Work + +# 2.1 Multiview Calibration-Free 3D HPE + +Methods with unknown camera extrinsics typically rely on semantic information rather than geometric information to enable better multiview feature interaction. FLEX [11] exploits the view-invariance characteristics of skeleton representations, such as bone lengths and rotation angles, to reconstruct human poses. MTF-TransFormer [32] and FusionFormer [1] leverage transformers to elegantly and efficiently model multiview, temporal, and spatial information, with the latter notably surpassing the performance of calibrated methods for the first time. PoseIRM [2] treats the uncalibrated task as a domain generalization problem and employs the invariant risk minimization paradigm to enhance performance in unseen camera settings. $A^3$ -Net [3] leverages pre-defined alignment proxies, such as meshes and joints, to automatically discover inter-view interaction patterns. + +# 2.2 VQ-VAE in Pose-Related Tasks + +Recent advancements in pose-related tasks have leveraged VQ-VAE [37] to enhance representation learning and improve task performance. In PCT [10], they introduced a two-step framework for 2D pose estimation, where VQ-VAE is first used to learn a compact, discrete pose representation space, followed by a translator that maps image features to this space. This approach effectively prevents unrealistic poses and provides prior knowledge for occluded pose prediction. In TokenHMR [6], they applied a similar pipeline, focusing on learning pose parameters of the SMPL [23] body model using VQ-VAE. In MEGA [9], they utilized VQ-VAE to discretize 3D human meshes, achieving enhanced + +![](images/f632d62c55c77ce6731c5deef54ab6beac4ad5e1f1de964c022237da6b5e7111.jpg) + +![](images/f3ae7963c72f46a8dbf4d5b6e0b27a81a9ff862e7ad027a5002694e81fe6e906.jpg) + +![](images/cd82df236ae8d9f7b521b34cfc98b21c9285bed43525984cd653208acd6aee53.jpg) +Figure 2: Two stages of the proposed calibration-free multiview 3D human pose lifting pipeline (a, b) and the detailed structure of the Spatial Multi-Head Self-Attention (MHSA) with Discrete-Continuous Spatial Attention (DCSA) (c). In Stage I, we construct the UniCodebook, a unified discrete representation space, through a multi-strategy training scheme (2Dto2D, 2Dto3D, 3Dto2D, and 3Dto3D). In this space, both 2D and 3D poses are encoded as sets of discrete tokens in this shared space to bridge the representation gap between 2D and 3D data. In Stage II, a transformer-based continuous model is employed for pose lifting, where codebook tokens generated from the UniCodebook are injected into the hybrid spatial attention block. Here, the proposed DCSA mechanism is integrated with conventional MHSA to facilitate effective fusion between the noise-resilient discrete priors and expressive continuous pose features, which enhances the robustness to noisy 2D input. + +![](images/5740362cae4d1a656c31162c1a7223d56bcb864fc824f1ad53e114a759423671.jpg) + +mesh recovery from single RGB images through both deterministic and stochastic generation modes, significantly improving uncertainty estimation and multi-output predictions. In DVQVAE [48], they proposed a decomposed VQ-VAE approach for generating realistic human grasps, where hand components are separately encoded to enhance interaction with objects. $\mathrm{Di}^{2}\mathrm{Pose}$ [39] is a discrete diffusion model for occluded 3D pose estimation, which combines pose quantization with a discrete diffusion process to model 3D poses in latent space, leading to superior performance on occlusion handling and physical plausibility. These methods highlight the versatility of VQVAE, demonstrating its potential in improving robustness and generalization across a wide range of pose related problems. However, these methods either rely on hard mappings between continuous features and discrete representations [9], or constrain the entire prediction or generation process to discrete latent spaces [48, 39, 10, 6], where quantization can obscure fine-grained details. In contrast, continuous representations excel at capturing subtle spatial variations, which are critical for precise and smooth pose reconstruction. To fully exploit the complementary strengths of discrete structure and continuous precision, our method softly integrates discrete structural priors into the continuous regression stream, enabling noise-robust yet precise pose prediction. + +# 3 Methodology + +Figure 2 depicts the overall architecture of the proposed methods. In Section 3.1, we describe how to learn an UniCodebook which represents 2D and 3D data simultaneously. Section 3.2 explains how the pretrained the UniCodebook is used in the human pose lifting task. + +# 3.1 Stage I: Pretrain of the UniCodebook + +In this section, we first introduce the key components used in Stage I. We begin with the Pose Encoder, which processes the original pose into several tokens, followed by the proposed UniCodebook, which retrieves features from this unified compact feature space. Finally, we introduce the Pose Decoder and the loss function used to train the entire pipeline. + +Existing codebook-based pose representation methods suffer from modality isolation, i.e., they encode either 2D poses [10] or 3D poses [6] in separate models. This isolation creates two critical issues: (1) underutilization of heterogeneous pose data that inherently contains complementary 2D-3D correlations, and (2) failure to align the representation gap between 2D observation and 3D geometry. Since the lifting task involves both 2D and 3D features, this gap forces the backbone model to allocate additional capacity to transform unimodal features into a more suitable representation for lifting, rather than focusing entirely on learning robust 2D-to-3D mappings. + +To more effectively utilize 2D and 3D data and bridge the gap between them, we propose a unified cross-modal representation learning framework that establishes shared latent embeddings between 2D and 3D human poses. Specifically, while maintaining dedicated modality-specific encoders and decoders for 2D/3D data processing, we use a shared codebook, i.e., the UniCodebook, that jointly represents both 2D and 3D pose. We optimize the whole framework through four complementary objectives: 2Dto2D self-reconstruction, 3Dto3D self-reconstruction, cross-modal 2Dto3D projection, and inverse 3Dto2D back-projection. The first two auto-encoding tasks preserve modality-specific reconstruction fidelity and the latter two projection objectives enforce a smaller representation gap through bidirectional translation between modalities. + +Pose Encoder. Given a human pose $\mathbf{P} \in \mathbb{R}^{J \times D}$ where $D = 2$ for 2D pose $\mathbf{P}_{2d}$ and $D = 3$ for 3D pose $\mathbf{P}_{3d}$ , we adopt the compositional encoding strategy to capture human priors and structural relationships following [10]. Unlike joint-wise encoding that processes each joint independently, we decompose the pose into $N$ overlapping sub-structures $\mathbf{f}_i$ (e.g., limbs, torso combinations), where each sub-structure corresponds to a group of biomechanically correlated joints. It is noted that the compositional representation contains lots of redundancy due to the fact that different tokens may share overlapping joints. The redundancy, in turn, enhances the robustness of the representation against occlusions of individual parts [10]. + +We utilize two separate encoders, both identical in structure, to encode 2D and 3D poses, respectively. Following the approach in [10], we adopt the MLP-Mixer architecture [35] as our encoder $f_{e}$ , which is particularly adept at capturing both local joint interactions and global pose semantics. Given an input pose $\mathbf{P}$ , we first embed it into $\mathbf{P}_{\mathrm{emb}} \in \mathbb{R}^{J \times D_{\mathrm{feat}}}$ using a linear layer $f_{\mathrm{emb}}$ . Subsequently, the embedded features are passed through four MLP-Mixer blocks to effectively model the relationships between different joints. Finally, we employ another linear layer $f_{\mathrm{trans}}$ to map the features to $N$ tokens. The overall process is described by $\mathbf{F}_{\mathrm{en}} = [\mathbf{f}_1, \mathbf{f}_2, \dots, \mathbf{f}_N] = f_{\mathrm{trans}}(f_e(f_{\mathrm{emb}}(\mathbf{P}))) \in \mathbb{R}^{N \times d}$ where each $\mathbf{f}_i \in \mathbb{R}^{D_{feat}}$ . The number of tokens is set to $N = 63$ , which is larger than the 51 input dimensions (17 joints × 3) of a Human3.6M pose, to introduce representational redundancy. + +Quantization Process With the UniCodebook. We define a shared UniCodebook space $\mathbf{C} = [\mathbf{c}_1, \dots, \mathbf{c}_U]^\top \in \mathbb{R}^{U \times D_{\mathrm{feat}}}$ that jointly represents both 2D and 3D poses. Specifically, each codebook entry $\mathbf{c}_u$ encodes pose patterns applicable to both modalities. This shared representation of discrete tokens helps to minimize the disparity between heterogeneous pose representations. + +For each sub-structure token $\mathbf{f}_i$ , we perform quantization via nearest neighbor lookup in the codebook: + +$$ +q \left(\mathbf {f} _ {i} = u \mid \mathbf {P}\right) = \left\{ \begin{array}{l l} 1 & \text {i f} u = \arg \min _ {j} \| \mathbf {f} _ {i} - \mathbf {c} _ {j} \| _ {2} \\ 0 & \text {o t h e r w i s e} \end{array} \right. \tag {1} +$$ + +We abuse $q(\mathbf{f}_i)$ to denote the index of the closest codebook entry for token $\mathbf{f}_i$ . The quantized pose representation is given by $\mathbf{F}_{\mathrm{quant}} = [\mathbf{c}_{q(\mathbf{f}_1)},\mathbf{c}_{q(\mathbf{f}_2)},\dots,\mathbf{c}_{q(\mathbf{f}_N)}]\in \mathbb{R}^{N\times D_{\mathrm{feat}}}$ . + +Pose Decoder. The pose decoder is designed to recover pose $\hat{\mathbf{P}}$ from quantized feature $\mathbf{F}_{\mathrm{quant}}$ . It mirrors the architecture of the pose encoder but in a reverse manner. + +Loss. For each strategy, we optimize the entire framework using the following loss function: + +$$ +\mathcal {L} _ {\text {p r e t r a i n}} = \operatorname {s m o o t h} _ {\mathcal {L} _ {1}} (\hat {\mathbf {P}}, \mathbf {P}) + \beta \sum_ {i = 1} ^ {M} \| \mathbf {f} _ {i} - \mathrm {s g} [ \mathbf {c} _ {q \left(\mathbf {f} _ {i}\right)} ] \| _ {2} ^ {2} \tag {2} +$$ + +where $\mathrm{sg}$ denotes stopping gradient, and $\beta$ is a hyperparameter which we set to 10. + +# 3.2 Stage II: Human Pose Lifting + +Our framework consists of three main components at Stage II: (1) 2D pose discretization and initial continuous feature embedding, (2) dual-stream spatial-temporal feature interaction, and (3) cross-view and temporal feature refinement, and 3D pose regression. + +Given a 2D input skeleton sequence $\mathbf{P}_{2\mathrm{D}} \in \mathbb{R}^{V \times T \times J \times D_{2\mathrm{D}}}$ , we first feed it into the 2D Pose Encoder of the VQ-VAE trained in Stage I and quantize it into discrete codebook features $\mathbf{F}_{\mathrm{quant}} \in \mathbb{R}^{V \times T \times N \times D_{\mathrm{feat}}}$ . Subsequently, within the transformer backbone, we initially project the 2D pose $\mathbf{P}_{2\mathrm{D}}$ into a higher-dimensional feature space $\mathbf{F}^0 \in \mathbb{R}^{V \times T \times J \times D_{\mathrm{feat}}}$ via a fully-connected (FC) layer. We then employ a dual-stream transformer equipped with spatial and temporal Multi-Head Self-Attention (MHSA) mechanisms to derive the feature $\mathbf{F}_{\mathrm{pose}} \in \mathbb{R}^{V \times T \times J \times D_{\mathrm{feat}}}$ . Within the spatial MHSA, we implement Discrete-Continuous Spatial Attention (DCSA) to facilitate interaction between continuous features and the discrete features $\mathbf{F}_{\mathrm{quant}}$ along the spatial dimension. + +Next, we apply spatial pooling to obtain $\mathbf{F}_{\mathrm{pool}} = \mathrm{AveragePooling}(\mathbf{F}_{\mathrm{pose}}) \in \mathbb{R}^{V \times T \times D_{\mathrm{feat}}}$ . This is followed by the application of View MHSA and Temporal MHSA to yield the final continuous pose features $\mathbf{F}_{\mathrm{pose}}' \in \mathbb{R}^{V \times T \times D_{\mathrm{feat}}}$ . Finally, we regress the predicted 3D pose $\hat{\mathbf{P}}_{\mathrm{3D}} \in \mathbb{R}^{V \times T \times J \times D_{\mathrm{3D}}}$ through an FC layer. We only apply L1 loss between ground truth(GT) 3D pose $\mathbf{P}_{\mathrm{3D}}$ and $\hat{\mathbf{P}}_{\mathrm{3D}}$ . For simplicity, in the following descriptions, we omit layer notations unless cross-layer feature interaction is involved. + +# 3.2.1 Hybrid Spatial Attention Block + +The spatial block contains a Spatial Multihead Self-Attention (MHSA) and a Discrete-Continuous Spatial Attention (DCSA) module. For simplicity, we describe the computation for a single attention head. The multi-head version follows standard practice by computing heads in parallel and projecting the concatenated results. + +Spatial MHSA models relationships between joints within the same view and frame. Given a spatial feature $\mathbf{F}_S\in \mathbb{R}^{J\times D_{\mathrm{feat}}}$ from $\mathbf{F}_{\mathrm{pose}}$ , we first compute its query, key, and value vectors: + +$$ +\mathbf {Q} _ {S} = \mathbf {F} _ {S} \mathbf {W} _ {S} ^ {Q}, \quad \mathbf {K} _ {S} = \mathbf {F} _ {S} \mathbf {W} _ {S} ^ {K}, \quad \mathbf {V} _ {S} = \mathbf {F} _ {S} \mathbf {W} _ {S} ^ {V}, \tag {3} +$$ + +where $\mathbf{W}_S^Q, \mathbf{W}_S^K, \mathbf{W}_S^V \in \mathbb{R}^{D_{\mathrm{feat}} \times D_K}$ are learnable projection matrices. The self-attention output is then computed as: + +$$ +\operatorname {S} - \operatorname {M H S A} \left(\mathbf {F} _ {S}\right) = \operatorname {s o f t m a x} \left(\frac {\mathbf {Q} _ {S} \mathbf {K} _ {S} ^ {\top}}{\sqrt {D _ {K}}}\right) \mathbf {V} _ {S}, \tag {4} +$$ + +where $D_K$ is the dimension of the key vectors. The temporal MHSA follows the same computation but applies to temporal tokens. + +Discrete-Continuous Spatial Attention (DCSA) augments the continuous joint interactions with semantic guidance from discrete codebook tokens. We implement this module using a cross-attention mechanism. As detailed in our ablation study in Table 4b and Table 7 in the Supplementary Materials, this approach proved to be the most effective and straightforward compared to other alternatives. The mechanism derives queries from the continuous features $\mathbf{F}_S$ and keys/values from the discrete codebook tokens $\mathbf{F}_{\mathrm{quant}} \in \mathbb{R}^{N \times D_{\mathrm{feat}}}$ : + +$$ +\mathbf {Q} _ {D} = \mathbf {F} _ {S} \mathbf {W} _ {D} ^ {Q}, \quad \mathbf {K} _ {D} = \mathbf {F} _ {\text {q u a n t}} \mathbf {W} _ {D} ^ {K}, \quad \mathbf {V} _ {D} = \mathbf {F} _ {\text {q u a n t}} \mathbf {W} _ {D} ^ {V}. \tag {5} +$$ + +The discrete-to-continuous attention is then computed as: + +$$ +\operatorname {D C S A} \left(\mathbf {F} _ {S}, \mathbf {F} _ {\text {q u a n t}}\right) = \operatorname {s o f t m a x} \left(\frac {\mathbf {Q} _ {D} \mathbf {K} _ {D} ^ {\top}}{\sqrt {D _ {K}}}\right) \mathbf {V} _ {D}. \tag {6} +$$ + +The final spatial representation combines features from both modules through addition: + +$$ +\mathbf {F} _ {S} ^ {\text {o u t}} = \underbrace {\mathbf {S} - \operatorname {M H S A} \left(\mathbf {F} _ {S}\right)} _ {\text {C o n t i n u o u s - t o - C o n t i n u o u s}} + \underbrace {\operatorname {D C S A} \left(\mathbf {F} _ {S} , \mathbf {F} _ {\text {q u a n t}}\right)} _ {\text {D i s c r e t e - t o - C o n t i n u o u s}}. \tag {7} +$$ + +The output features undergo residual connections and layer normalization (LayerNorm), followed by an multilayer perceptron (MLP) block with another residual connection and LayerNorm. We denote the entire spatial block by $S$ . + +# 3.2.2 Dual-Stream Spatial-Temporal Transformer + +Following MotionBert [49], we construct a dual-stream spatial-temporal transformer by alternately stacking temporal and hybrid spatial blocks in different order, thereby creating two parallel branches. + +To enable the model to dynamically adjust the importance of different branches, we compute an adaptive weight for each branch. Adaptive fusion weights $\alpha_{ST}^{i},\alpha_{TS}^{i}\in \mathbb{R}^{L\times V\times T\times J}$ are predicted by linear projection, as $\alpha_{ST}^i,\alpha_{TS}^i = \mathrm{softmax}(\mathcal{W}([\mathcal{T}_1^i (\mathcal{S}_1^i (\mathbf{F}_{\mathrm{pose}}^{i - 1})),\mathcal{S}_2^i (\mathcal{T}_2^i (\mathbf{F}_{\mathrm{pose}}^{i - 1})))]$ ), where $\mathcal{W}$ is a learnable linear transformation, $[\cdot ,\cdot ]$ denotes concatenation, $i\in \{1,\dots ,L\}$ is the current layer number, and $L$ is the number of layers of the dual-stream module. + +The features from the two branches are fused additively via predicted weights as $\mathbf{F}_{\mathrm{pose}}^i = \alpha_{ST}^i\circ$ $\mathcal{T}_1^i (\mathcal{S}_1^i (\mathbf{F}_{\mathrm{pose}}^{i - 1})) + \alpha_{TS}^i\circ \mathcal{S}_2^i (\mathcal{T}_2^i (\mathbf{F}_{\mathrm{pose}}^{i - 1}))$ , where $\circ$ denotes element-wise multiplication. + +# 4 Experiments + +# 4.1 Datasets and Metrics + +Human3.6M [14] is a widely used 3D human pose dataset with 3.6 million frames captured by 4 synchronized cameras, covering 15 actions performed by 11 subjects. And the poses are represented by 17 human joints. Following common protocol, we use subjects S1, S5, S6, S7, and S8 for training, and S9 and S11 for testing. We evaluate under two settings: using ground-truth (GT) 2D poses and CPN-detected 2D poses. The CPN detector introduces significant 2D pose noise: the average 2D MPJPE between CPN-detected and ground-truth keypoints is 3.9 pixels on the training set and 6.5 pixels on the test set, with maximum errors reaching 55 and 124 pixels, respectively. + +MPI-INF-3DHP [27] is a challenging multiview dataset for 3D human pose estimation, consisting of 1.3 million frames performed by 8 subjects in diverse indoor and outdoor scenarios, which is widely used to evaluate the generalization performance in complex real-world scenarios. Following previous studies [20, 16], we train on subjects S1-S7 and test on subject S8. + +FreeMan [38] is a large-scale multiview 3D human pose dataset collected under real-world conditions, containing 11 million frames from 8,000 sequences captured by 8 synchronized smartphones. It covers 40 subjects across 10 diverse indoor and outdoor scenarios with varying lighting. To address the limited distribution gap between the training and testing sets in the original protocol, we re-split the dataset that introduces clearer separation in both scene and camera configurations: scenes 1-8 and cameras (1,3,5,7) are used for training, while scenes 10-12 and cameras (1,3,5,7) (2,4,6,8) are reserved for testing. The resulting training set consists of 566,484 image pairs, and the test set includes 646,608 pairs. This revised split enables a more realistic and challenging evaluation of model generalization. + +AMASS [26] is a large-scale motion capture dataset with over 40 hours of motion data from $300+$ subjects and $11,000+$ motions. Since it does not provide direct 2D-3D annotations, we render SMPL meshes and apply official Human3.6M and COCO regressors to extract 3D joints, which are then projected onto 2D planes from 8 virtual views to form 2D-3D pairs. We use the official validation and test splits for training and evaluating the VQ-VAE in Stage I only. + +Evaluation Metrics. We report Mean Per Joint Position Error (MPJPE), measured in millimeters, Percentage of Correct Keypoints (PCK), and Area Under Curve (AUC) with a 150mm threshold. + +# 4.2 Implementation Details + +All individual experiments were completed within 1 day using one server equipped with an Nvidia RTX 3090 GPU, 64GB RAM, and a 28-core CPU. We employed the AdamW [24] optimizer with a learning rate of 2e-4 for both the Stage I and Stage II. We used a cosine annealing learning scheduler with 100 warmup steps. The model was trained for 50 and 100 epochs with a batch size of 256 at Stage I and Stage II, respectively. No data augmentation techniques were applied during training and test. For VQ-VAE, we use $N = 63$ tokens to represent a pose, and the codebook is in shape $U \times D_{\mathrm{feat}} = 2048 \times 256$ . The original VQ-VAE suffers from codebook collapse, where a significant portion of codebook entries remain underutilized. Following [6], we employ exponential moving average (EMA) and code reset tricks to enhance codebook activation rates. + +Table 1: Results on Human3.6M are reported using MPJPE as the evaluation metric. CPN, HRNet and ResNet152 are different 2D pose detectors. GT means using ground truth 2D pose. * means this is an image-to-3d method. † indicates our reimplementation. T represents the number of frames. + +
MethodVenueInput SettingDir.Disc.Eat.GreetPhonePhotoPosePurch.Sit.SitD.SmokeWaitWalkD.WalkWalkT.Avg.
Monocular Methods
MHFormer [19]CVPR'2022(CPN, T = 351)39.243.140.140.944.951.240.641.353.560.343.741.143.829.830.643.0
MixSTE [43]CVPR'2022(CPN, T = 243)37.640.937.339.742.349.940.139.851.755.042.139.841.027.927.940.9
KTPFormer [29]CVPR'2024(CPN, T = 243)30.132.129.130.635.439.332.830.943.145.534.733.232.722.123.033.0
Multi-View Methods With Camera Parameter
Epiolar Transform [13]CVPR'2020(*, T = 1)25.727.723.724.826.931.424.926.528.831.728.226.423.628.323.526.9
Crossview Fusion [30]ICCV'2019(*, T = 1)24.026.723.224.324.822.824.128.632.126.931.025.625.028.024.426.2
Geometry-Biased Transformer [28]FG'2024(HRNet, T=27)26.0
MTF-Transformer+ [32]TPAMI'2022(CPN, T = 27)23.425.223.124.427.428.522.825.228.736.225.923.626.622.622.725.8
LearnTriangulation [15]ICCV'2019(*, T = 1)19.920.018.918.520.519.418.422.122.528.721.220.819.722.120.220.8
AdaFuse [47]JCV'2021(*, T = 1)17.819.517.620.719.316.818.920.225.720.119.220.517.220.517.319.5
MvP [42]NeuIPS'2021(*, T = 1)18.6
Multi-View Methods Without Camera Parameter
ProTriangulation [17]ICCV'2023(*, T = 1)24.025.426.630.432.120.120.536.540.129.527.427.620.824.122.027.8
FLEX [11]ECCV'2022(ResNet152, T = 27)23.128.826.828.131.637.125.731.436.539.635.029.535.626.826.430.9
FLEX [11]ECCV'2022(CPN, T = 27)31.7
SGraFormer [45]AAAI'2024(CPN, T = 27)26.528.323.025.927.231.025.427.228.633.828.625.630.127.126.527.6
FusionFormer [1] †AAAI'2024(CPN, T = 27)23.726.324.825.327.727.123.926.632.332.725.925.227.923.523.826.6
Ours(CPN, T = 27)23.025.224.824.427.526.423.425.631.432.325.724.027.322.922.926.0
MTF-Transformer [32]TPAMI'2022(GT, T = 27)15.517.113.715.514.016.215.816.515.816.114.514.516.914.313.715.3
SGraFormer [45]AAAI'2024(GT, T = 27)11.713.010.112.110.713.012.110.710.811.911.011.612.811.112.011.7
SVTFormer [46]AAAI'2025(GT, T = 27)11.612.311.412.210.612.112.511.710.310.710.712.110.810.911.411.4
FusionFormer [1]AAAI'2024(GT, T = 27)7.848.047.398.337.139.028.008.197.577.377.837.267.90
Ours(GT, T = 27)7.777.827.707.717.807.767.877.607.817.667.767.927.637.667.747.74
+ +Table 2: Comparison results on the MPI-INF-3DHP. + +
MethodExtra Data for FinetuneMPJPE↓PCK↑AUC↑
ShapeAware [20]syn data629563
PaFF [16]×48.498.667.3
SGraFormer [45]×16.998.790.2
MTF-Transformer [32]h36m14.6--
SGraFormer [45]h36m10.699.991.7
FusionFormer [1]h36m5.4--
Ours×3.3799.995.94
+ +Table 3: Comparison results on the FreeMan dataset. $\dagger$ indicates our reimplementation. + +
seen camera MPJPE ↓unseen camera MPJPE ↓mean MPJPE ↓
SGraFormer [45] †22.2028.6925.44
MTF [32] †10.8513.5112.18
Fusionformer [1] †9.8912.7211.30
Ours9.5912.7111.15
+ +# 4.3 Comparisons With SOTAs + +Human 3.6M. Table 1 compares our method with several state-of-the-art (SOTA) monocular and multi-view approaches on the Human 3.6M dataset for 3D human pose estimation (HPE). Our method outperforms all the calibrated methods due to that our method are not limited by predefined geometric relationships between views but instead utilizes data-driven adaptive semantic constraints, allowing for more effective multi-view feature fusion. When compared to calibration-free 3D HPE methods using CPN [4] or GT 2D poses, our approach achieves SOTA performance, with MPJPE values of $26.0\mathrm{mm}$ and $7.74\mathrm{mm}$ , respectively, demonstrating its effectiveness. Notably, our method does not rely on any additional tricks but simply adopts L1 Loss. + +MPI-INF-3DHP. Table 2 presents a detailed comparison with other SOTA calibration-free methods on the MPI-INF-3DHP dataset. We use GT 2D poses as input and keep the same settings as [20]. As shown in the table, our method consistently outperforms all other methods across various metrics. Specifically, we achieve a significant reduction in the MPJPE, outperforming the second-best method by at least $2.03\mathrm{mm}$ $(37.5\%)$ . Additionally, our method shows a notable increase in the AUC, improving it by at least $4.24\%$ . These indicate that our model not only achieves higher accuracy but also maintains robust performance across different thresholds. It also demonstrates that the UniCodebook not only enhances robustness but also improves accuracy without noise. + +FreeMan. Table 3 reports the evaluation results on the FreeMan dataset under seen and unseen camera settings using HRNet-w48 [33] 2D poses. Our method achieves the best overall performance with a mean MPJPE of $11.15\mathrm{mm}$ , outperforming recent approaches such as Fusionformer [1] (11.30mm) and MTF [32] (12.18mm). In particular, our method attains the lowest error under unseen camera settings (9.59mm), demonstrating strong generalization to novel viewpoints. These results confirm the robustness and adaptability of our approach in real-world scenarios with cross-camera configurations. + +# 4.4 Ablation Study + +Impact of Codebook Training Strategy. Table 4a shows how different codebook training strategies in Stage I affect the lifting performance at Stage II. The best performance is achieved when all strategies are used. Without the codebook, performance drops significantly, highlighting its importance as a robust prior for the continuous model. The MPJPE are around 26.8, 26.7, 26.4 and 26.3 when + +Table 4: Ablation studies on key components of the UniCodebook, including training strategies, feature interaction methods, and data sources. MPJPE is calculated at Stage II. "CPN" and "GT" denote 2D poses from CPN [4] and ground truth, respectively. + +(a) Ablation study on different training strategy combinations for the UniCodebook where $\mathrm{T} = 1$ . + +(b) Ablation experiments on different interaction methods between discrete codebook features and continuous features. $T = 27$ . + +
Number of StrategyStrategyMPJPE↓
2dto2d2dto3d3dto2d3dto3d
027.01
1✓26.74
✓26.86
2✓✓26.70
✓✓26.78
✓✓26.74
✓✓26.73
✓✓26.75
3✓✓✓26.40
✓✓✓26.47
✓✓✓26.53
✓✓✓26.45
4✓✓✓✓26.34
+ +
MethodMPJPE↓
Baseline26.7
Conv + Addition26.6
Q-Former [18]34.1
Concat + MHSA26.4
DCSA26.0
+ +(c) Ablation on training data of VQ-VAE. $T = 27$ . + +
Data SourceMPJPE↓
H36M CPN26.43
H36M GT26.35
AMASS26.02
+ +![](images/c3f2dbb28ba86b1decb653b1253f6e66c6016de72a960dcea54ff5570d87887c.jpg) +Figure 3: Comparison of MPJPE error across four models (i.e., baseline trained on H36M CPN, baseline with codebook trained on H36M CPN, baseline trained on H36M GT, and baseline with codebook trained on H36M GT) under varying noise intensities without retraining. For each instance (consisting of multi-view 2D poses of the same person at the same timestamp), we randomly select 1 to 4 views and add Gaussian noise with zero mean and a standard deviation of "Noise Intensity" pixels to each 2D joint. For models trained on H36M CPN, we evaluate them using H36M CPN test data with extra noise. Similarly, models trained on H36M GT are evaluated with H36M GT test data with extra noise. The results show that models with the codebook exhibit robustness across all noise levels, with greater robustness observed at higher noise intensities. + +![](images/789e99ef128ae75f15f9773dc1800cc2194459adc204a2117e5b52c5db66488d.jpg) + +![](images/bfcdbf9351a38fe821dbe492fb35bbb1762d6904e72fa64672202bbbc155dd37.jpg) + +![](images/a21e4052a4e0e0c909a5789a16da63ccc198a9cb2a9d8d1aa5db70ce5f77eb5d.jpg) + +applying one, two, three and four strategies, respectively. This decreasing trend demonstrates that as more strategies are used, the UniCodebook can better capture the relationships between 2D and 3D poses and data utilization rate, making it a robuster prior for lifting tasks. + +Impact of the Interaction Method of Discrete Codebook Features and Continuous Features. In Table 4b, we aim to investigate the impact of different interaction methods between discrete and continuous features on model performance. "Baseline" means no discrete features are used. "Conv + Addition" involves aligning the token count of the codebook features using a convolutional layer, followed by adding them to the continuous features. "Q-Former [18]" employs learned queries with the same shape as continuous features and maps discrete feature information onto the queries using a transformer layer. The queries and continuous features then interact via cross-attention. "Concat + MHSA" first concatenates discrete and continuous features along the token dimension and then applies self-attention. All methods are applied in multiple spatial blocks. The results demonstrate that our DCSA method achieves the best performance, improving MPJPE by $0.7\mathrm{mm}$ . + +Impact of Noise. To evaluate the robustness of our model to noisy inputs, we present in Figure 3 the MPJPE performance of four models under varying noise intensities. The results demonstrate that + +Table 5: Ablation on the number of pose tokens and codebook size in UniCodebook where the frame number is 1. The active rate represents the mean activation rate in Stage I, while MPJPE is evaluated in Stage II on Human3.6M [14]. + +
pose tokenscodebook sizeActive Rate(%)↑MPJPE↓
2161.826.82
63204883.526.34
10584.326.35
63102484.526.70
204883.526.34
409675.026.47
+ +our method—whether trained on H36M CPN or H36M GT—consistently outperforms the baseline in the presence of noise. Moreover, the performance gap widens as the noise intensity increases, indicating that the codebook-based model exhibits stronger resilience to noisy 2D observations than the continuous transformer-based baseline. This robustness stems from the discrete nature of the codebook, which provides a form of structural regularization by anchoring predictions to a set of stable pose prototypes. Such discrete priors may help correct noisy or ambiguous joint inputs by guiding the model toward plausible configurations. These findings highlight the effectiveness of our approach in real-world scenarios, where noisy 2D detections are common, and underscore the practical advantages of incorporating discrete structural knowledge into continuous pose estimation models. + +Impact of Codebook Training Data Quality. To evaluate the impact of data quality on model performance, we conducted experiments in Table 4c using three data sources: H36M CPN, H36M GT, and AMASS. The results show a consistent performance increase among them. As data quality improves, the model performance also increases, indicating that higher-quality data leads to better performance. It is worth noting that even when using only H36M CPN data, i.e., without any external data, our model still achieves near-SOTA performance on the Human3.6M benchmark. + +Impact of Codebook Configurations. We analyze two key hyperparameters: the codebook size, which defines the capacity of the discrete latent space, and the number of pose tokens, which reflects the granularity of the pose representation. (1) First, we fixed the codebook size to 2048 and varied the number of pose tokens. Increasing the tokens from 21 to 63 significantly boosted the active rate (from $61.8\%$ to $83.5\%$ ) and improved MPJPE (from 26.82 to 26.34). A further increase to 105 tokens yielded no improvement, suggesting that 63 tokens offer a favorable balance between expressiveness and efficiency. (2) Next, we fixed the number of pose tokens at 63 and varied the codebook size. A codebook of 2048 achieved the best MPJPE (26.34). A smaller size (1024) suffered from higher error (MPJPE: 26.70) due to limited capacity, while a larger one (4096) slightly degraded performance (MPJPE: 26.47). Overall, our selected configuration of 63 pose tokens and a codebook size of 2048 achieves the best trade-off between token utilization and pose estimation accuracy. + +# 5 Conclusion + +In this paper, we propose a novel approach for uncalibrated multi-view 3D human pose estimation by integrating a noise-resilient prior, i.e., the UniCodebook, into a transformer-based framework. By employing a multi-strategy training scheme, the UniCodebook effectively bridges the gap between 2D and 3D pose representations. Furthermore, we introduce Discrete-Continuous Spatial Attention (DCSA) to facilitate interaction between discrete codebook tokens and continuous pose features, ensuring the benefits of noise-resilient priors without disrupting the continuity of the backbone model. Extensive experiments on three benchmark datasets demonstrate that our approach outperforms both calibration-required and calibration-free methods, achieving state-of-the-art performance. These results highlight the effectiveness of integrating discrete priors into multi-view pose estimation, demonstrating their potential to enhance the robustness of continuous models. + +# Acknowledgement + +This work was supported in part by the National Natural Science Foundation of China under Grants (62406039, 62321001, 62471055, U23B2001, 62171057, 62201072, 62071067, 62406039, 62101064), the High-Quality Development Project of the MIIT (2440STCZB2584), the Ministry of Education and China Mobile Joint Fund (MCM20200202, MCM20180101), the Project funded by China Postdoctoral Science Foundation (2023TQ0039, 2024M750257, GZC20230320), the Fundamental Research Funds for the Central Universities (2024PTB-004), and the 2025 Education and Teaching Reform Project Funding at Beijing University of Posts and Telecommunications (2025YZ005). + +# References + +[1] Y. Cai, W. Zhang, Y. Wu, and C. Jin. Fusionformer: A concise unified feature fusion transformer for 3d pose estimation. In AAAI Conference on Artificial Intelligence (AAAI), volume 38, pages 900–908, 2024. +[2] Y. Cai, W. Zhang, Y. Wu, and C. Jin. Poseirm: Enhance 3d human pose estimation on unseen camera settings via invariant risk minimization. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 2124-2133, 2024. +[3] G. Chen, X. Jian, Y. Chen, P. Ren, J. Wang, H. Sun, Q. Qi, J. Wang, and J. Liao. A $^3$ -net: Calibration-free multi-view 3d hand reconstruction for enhanced musical instrument learning. In International Joint Conferences on Artificial Intelligence (IJCAI), 2025. +[4] Y. Chen, Z. Wang, Y. Peng, Z. Zhang, G. Yu, and J. Sun. Cascaded pyramid network for multi-person pose estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7103-7112, 2018. +[5] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, and N. Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021. +[6] S. K. Dwivedi, Y. Sun, P. Patel, Y. Feng, and M. J. Black. Tokenhmr: Advancing human mesh recovery with a tokenized pose representation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1323-1333, 2024. +[7] K. Ehlers and K. Brama. A human-robot interaction interface for mobile and stationary robots based on real-time 3d human body and hand-finger pose estimation. In International Conference on Emerging Technologies and Factory Automation (ETFA), pages 1–6. IEEE, 2016. +[8] H.-S. Fang, Y. Xu, W. Wang, X. Liu, and S.-C. Zhu. Learning pose grammar to encode human body configuration for 3d pose estimation. In AAAI Conference on Artificial Intelligence (AAAI), volume 32, 2018. +[9] G. Fiche, S. Leglaive, X. Alameda-Pineda, and F. Moreno-Noguer. Mega: Masked generative autoencoder for human mesh recovery. arXiv preprint arXiv:2405.18839, 2024. +[10] Z. Geng, C. Wang, Y. Wei, Z. Liu, H. Li, and H. Hu. Human pose as compositional tokens. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 660–671, 2023. +[11] B. Gordon, S. Raab, G. Azov, R. Giryes, and D. Cohen-Or. Flex: Extrinsic parameters-free multi-view 3d human motion reconstruction. In European Conference on Computer Vision (ECCV), pages 176–196. Springer, 2022. +[12] R. A. Guler and I. Kokkinos. Holopose: Holistic 3d human reconstruction in-the-wild. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 10884-10894, 2019. +[13] Y. He, R. Yan, K. Fragkiadaki, and S.-I. Yu. Epipolar transformers. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 7779-7788, 2020. +[14] C. Ionescu, D. Papava, V. Olaru, and C. Sminchisescu. Human3. 6m: Large scale datasets and predictive methods for 3d human sensing in natural environments. IEEE Transactions on Pattern Analysis and Machine Intelligence (T-PAMI), 36(7):1325-1339, 2013. +[15] K. Iskakov, E. Burkov, V. Lempitsky, and Y. Malkov. Learnable triangulation of human pose. In IEEE International Conference on Computer Vision (ICCV), pages 7718-7727, 2019. +[16] K. Jia, H. Zhang, L. An, and Y. Liu. Delving deep into pixel alignment feature for accurate multiview human mesh recovery. In AAAI Conference on Artificial Intelligence (AAAI), volume 37, pages 989-997, 2023. + +[17] B. Jiang, L. Hu, and S. Xia. Probabilistic triangulation for uncalibrated multi-view 3d human pose estimation. In IEEE International Conference on Computer Vision (ICCV), pages 14850-14860, 2023. +[18] J. Li, D. Li, S. Savarese, and S. Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In ACM International Conference on Machine Learning (ICML), pages 19730–19742. PMLR, 2023. +[19] W. Li, H. Liu, H. Tang, P. Wang, and L. Van Gool. Mhformer: Multi-hypothesis transformer for 3d human pose estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 13147-13156, 2022. +[20] J. Liang and M. C. Lin. Shape-aware human pose and shape reconstruction using multi-view images. In IEEE International Conference on Computer Vision (ICCV), pages 4352-4362, 2019. +[21] J. Liu, A. Shahroudy, D. Xu, A. C. Kot, and G. Wang. Skeleton-based action recognition using spatio-temporal LSTM network with trust gates. IEEE Transactions on Pattern Analysis and Machine Intelligence (T-PAMI), 40(12):3007-3021, 2017. +[22] X. Liu, P. Ren, Y. Chen, C. Liu, J. Wang, H. Sun, Q. Qi, and J. Wang. Sa-fusion: multimodal fusion approach for web-based human-computer interaction in the wild. In ACM International World Wide Web Conference (WWW), pages 3883-3891, 2023. +[23] M. Loper, N. Mahmood, J. Romero, G. Pons-Moll, and M. J. Black. Smpl: a skinned multiperson linear model. ACM Transactions on Graphics (TOG), 34(6):1-16, 2015. +[24] I. Loshchilov and F. Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. +[25] D. C. Luvizon, D. Picard, and H. Tabia. Multi-task deep learning for real-time 3d human pose estimation and action recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence (T-PAMI), 43(8):2752-2764, 2020. +[26] N. Mahmood, N. Ghorbani, N. F. Troje, G. Pons-Moll, and M. J. Black. Amass: Archive of motion capture as surface shapes. In IEEE International Conference on Computer Vision (ICCV), pages 5442-5451, 2019. +[27] D. Mehta, H. Rhodin, D. Casas, P. Fua, O. Sotnychenko, W. Xu, and C. Theobalt. Monocular 3d human pose estimation in the wild using improved cnn supervision. In International Conference on 3D Vision (3DV), pages 506-516. IEEE, 2017. +[28] O. Moliner, S. Huang, and K. Åström. Geometry-biased transformer for robust multi-view 3d human pose reconstruction. In IEEE International Conference on Automatic Face and Gesture Recognition (FG), pages 1-8. IEEE, 2024. +[29] J. Peng, Y. Zhou, and P. Mok. Ktpformer: Kinematics and trajectory prior knowledge-enhanced transformer for 3d human pose estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1123-1132, 2024. +[30] H. Qiu, C. Wang, J. Wang, N. Wang, and W. Zeng. Cross view fusion for 3d human pose estimation. In IEEE International Conference on Computer Vision (ICCV), pages 4342-4351, 2019. +[31] P. Ren, H. Sun, J. Hao, J. Wang, Q. Qi, and J. Liao. Mining multi-view information: a strong self-supervised framework for depth-based 3d hand pose and mesh estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 20555-20565, 2022. +[32] H. Shuai, L. Wu, and Q. Liu. Adaptive multi-view and temporal fusing transformer for 3d human pose estimation. IEEE Transactions on Pattern Analysis and Machine Intelligence (T-PAMI), 45(4):4122-4135, 2022. +[33] K. Sun, B. Xiao, D. Liu, and J. Wang. Deep high-resolution representation learning for human pose estimation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5693-5703, 2019. +[34] T. Tao, X. Yang, J. Xu, W. Wang, S. Zhang, M. Li, and G. Xu. Trajectory planning of upper limb rehabilitation robot based on human pose estimation. In International Conference on Ubiquitous Robots (UR), pages 333-338. IEEE, 2020. +[35] I. O. Tolstikhin, N. Houlsby, A. Kolesnikov, L. Beyer, X. Zhai, T. Unterthiner, J. Yung, A. Steiner, D. Keysers, J. Uszkoreit, et al. Mlp-mixer: An all-mlp architecture for vision. Advances in Neural Information Processing Systems (NeurIPS), 34:24261-24272, 2021. +[36] H. Tu, C. Wang, and W. Zeng. Voxelpose: Towards multi-camera 3d human pose estimation in wild environment. In European Conference on Computer Vision (ECCV), pages 197-212. Springer, 2020. + +[37] A. Van Den Oord, O. Vinyals, et al. Neural discrete representation learning. Advances in Neural Information Processing Systems (NeurIPS), 30, 2017. +[38] J. Wang, F. Yang, B. Li, W. Gou, D. Yan, A. Zeng, Y. Gao, J. Wang, Y. Jing, and R. Zhang. Freeman: Towards benchmarking 3d human pose estimation under real-world conditions. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 21978-21988, 2024. +[39] W. Wang, J. Xiao, C. Wang, W. Liu, Z. Wang, and L. Chen. $\mathrm{Di}^2$ Pose:discrete diffusion model for occluded 3d human pose estimation. In Advances in Neural Information Processing Systems (NeurIPS), 2024. +[40] Z. Yuan, C. Liu, F. Shen, Z. Li, J. Luo, T. Mao, and Z. Wang. MSP-MVS: Multi-granularity segmentation prior guided multi-view stereo. In AAAI Conference on Artificial Intelligence (AAAI), volume 39, pages 9753-9762, 2025. +[41] Z. Yuan, J. Luo, F. Shen, Z. Li, C. Liu, T. Mao, and Z. Wang. DVP-MVS: Synergize depth-edge and visibility prior for multi-view stereo. In AAAI Conference on Artificial Intelligence (AAAI), volume 39, pages 9743–9752, 2025. +[42] J. Zhang, Y. Cai, S. Yan, J. Feng, et al. Direct multi-view multi-person 3d pose estimation. Advances in Neural Information Processing Systems (NeurIPS), 34:13153-13164, 2021. +[43] J. Zhang, Z. Tu, J. Yang, Y. Chen, and J. Yuan. Mixste: Seq2seq mixed spatio-temporal encoder for 3d human pose estimation in video. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 13232-13242, 2022. +[44] L. Zhang, A. Rao, and M. Agrawala. Adding conditional control to text-to-image diffusion models. In IEEE International Conference on Computer Vision (ICCV), pages 3836-3847, 2023. +[45] L. Zhang, K. Zhou, F. Lu, X.-D. Zhou, and Y. Shi. Deep semantic graph transformer for multi-view 3d human pose estimation. In AAAI Conference on Artificial Intelligence (AAAI), volume 38, pages 7205-7214, 2024. +[46] W. Zhang, M. Liu, H. Liu, and W. Li. Svftformer: Spatial-view-temporal transformer for multi-view 3d human pose estimation. In AAAI Conference on Artificial Intelligence (AAAI), volume 39, pages 10148-10156, 2025. +[47] Z. Zhang, C. Wang, W. Qiu, W. Qin, and W. Zeng. Adafuse: Adaptive multiview fusion for accurate human pose estimation in the wild. International Journal of Computer Vision (IJCV), 129:703-718, 2021. +[48] Z. Zhao, M. Qi, and H. Ma. Decomposed vector-quantized variational autoencoder for human grasp generation. In European Conference on Computer Vision (ECCV), pages 447–463. Springer, 2025. +[49] W. Zhu, X. Ma, Z. Liu, L. Liu, W. Wu, and Y. Wang. Motionbert: A unified perspective on learning human motion representations. In IEEE International Conference on Computer Vision (ICCV), pages 15085-15099, 2023. + +# 6 NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The abstract and introduction clearly state three contributions: (1) a VQ-VAE-based UniCodebook unifying 2D/3D pose representations to improve robustness, (2) a DCSA mechanism enabling discrete-continuous interaction, and (3) SOTA results on three representative datasets. These claims are directly validated in the methodology and experiments. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. + +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We discuss limitations in the supplemental material. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: The paper does not include theoretical results. + +Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: The methodological workflow is thoroughly detailed in Section 3, while Section 4.1 specifies the dataset's train-test splitting way and preprocessing procedures. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [No] + +Justification: The paper uses publicly available datasets and provides detailed, reproducible processing methods in Section 4.1. The code will be released upon acceptance of the paper, and comprehensive model hyperparameters and training details are provided in Section 4.2. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). + +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: The paper provides comprehensive details on data processing and splits in Section 4.1, along with hyperparameters, optimizer selection, and model configurations in Section 4.2, ensuring full reproducibility and clear understanding of the experimental results. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [No] + +Justification: We do not report error bars or other appropriate information about the statistical significance. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). + +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We report the compute resources in Section 4.2. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: The research fully complies with NeurIPS ethical guidelines. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: We discuss potential societal impacts in the supplemental material. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. + +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: We propose a human pose estimation method and it poses no such risks. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: All datasets and models used in this work are properly licensed and accompanied by accurate citations to their original publications. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: This paper does not release new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. + +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: We only use the LLM to improve writing. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/images.zip b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..d57fe19bd3dcb05c79278b21a57a0e049c5c5db5 --- /dev/null +++ b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c4203d9221c754596e97c6498368fe99b146da241b0926abb64d3131bebfdb8 +size 489170 diff --git a/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/layout.json b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..a49771a4d4a35772a759345971ed6be4abdce930 --- /dev/null +++ b/NeurIPS/2025/Unified 2D-3D Discrete Priors for Noise-Robust and Calibration-Free Multiview 3D Human Pose Estimation/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5614cb5e65858ef3b0a635479131f680b3b1dff73a6dcf30e95718efc01000e1 +size 610235 diff --git a/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/76efbeb3-1671-4639-a8b3-22bde9ae53b9_content_list.json b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/76efbeb3-1671-4639-a8b3-22bde9ae53b9_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..e41bbed8e325f4b5ee3b58494a2b4d0b6eee22d9 --- /dev/null +++ b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/76efbeb3-1671-4639-a8b3-22bde9ae53b9_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d312bfef231b7d34b83650f1315e9ca7db7c0f1d3cdf57df59c8016dfd0797a +size 191852 diff --git a/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/76efbeb3-1671-4639-a8b3-22bde9ae53b9_model.json b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/76efbeb3-1671-4639-a8b3-22bde9ae53b9_model.json new file mode 100644 index 0000000000000000000000000000000000000000..2ff2b221469d7340c99dbc850fef5e3fbbe258b2 --- /dev/null +++ b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/76efbeb3-1671-4639-a8b3-22bde9ae53b9_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d76af11f58dc3a044274675962c50f8c9ea6df55861b9f25aed6b8178e003db +size 240784 diff --git a/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/76efbeb3-1671-4639-a8b3-22bde9ae53b9_origin.pdf b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/76efbeb3-1671-4639-a8b3-22bde9ae53b9_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d3e9f61c9126d409edb08db73a9cf7ca3fc5cae3 --- /dev/null +++ b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/76efbeb3-1671-4639-a8b3-22bde9ae53b9_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e80365460a39feef3e5a894f21898ce2a520ac8e3963935b06b338839f0c1c1 +size 3945080 diff --git a/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/full.md b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/full.md new file mode 100644 index 0000000000000000000000000000000000000000..9a137288803185ac2308701944781d7e48b84387 --- /dev/null +++ b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/full.md @@ -0,0 +1,974 @@ +# Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning + +Yibin Wang $^{1,2,4\dagger}$ , Zhimin Li $^{4*}$ , Yuhang Zang $^{3*}$ , Chunyu Wang $^{4}$ , Qinglin Lu $^{4\dagger}$ , Cheng Jin $^{1,2\dagger}$ , Jiaqi Wang $^{2,3\dagger}$ + +1College of Computer Science and Artificial Intelligence, Fudan University, + +$^{2}$ Shanghai Innovation Institute $^{3}$ Shanghai AI Lab, $^{4}$ Hunyuan, Tencent + +https://codegoat24.github.io/UnifiedReward/think + +![](images/fe938932eac07193e6ca2a42f81b266f64b29db5ecf841a6c91c3c3df2e311c1.jpg) +(a) Qualitative Case Study (Image Generation) +Figure 1: Overview of Comparison Results. (a) Our method enables multi-dimensional long CoT reasoning to improve reward signal accuracy. (b) Extensive quantitative results demonstrate our superiority in both vision understanding and generation reward tasks. + +# Abstract + +Recent advances in multimodal Reward Models (RMs) have shown significant promise in delivering reward signals to align vision models with human preferences. However, current RMs are generally restricted to providing direct responses or engaging in shallow reasoning processes with limited depth, often leading to inaccurate reward signals. We posit that incorporating explicit long chains of thought (CoT) into the reward reasoning process can significantly strengthen their reliability and robustness. Furthermore, we believe that once RMs internalize CoT reasoning, their direct response accuracy can also be improved through implicit reasoning capabilities. To this end, this paper proposes UNIFIED REWARD-THINK, the first unified multimodal CoT-based reward model, capable of multi-dimensional, step-by-step long-chain reasoning for both visual understanding and generation reward tasks. Specifically, we adopt an exploration-driven reinforcement finetuning approach to elicit and incentivize the model's latent complex reasoning + +ability: (1) We first use a small amount of image generation preference data to distill the reasoning process of GPT-4o, which is then used for the model's cold start to learn the format and structure of CoT reasoning. (2) Subsequently, by leveraging the model's prior knowledge and generalization capabilities, we prepare large-scale unified multimodal preference data to elicit the model's reasoning process across various vision tasks. During this phase, correct reasoning outputs are retained for rejection sampling to refine the model (3) while incorrect predicted samples are finally used for Group Relative Policy Optimization (GRPO) based reinforcement fine-tuning, enabling the model to explore diverse reasoning paths and optimize for correct and robust solutions. Extensive experiments confirm that incorporating long CoT reasoning significantly enhances the accuracy of reward signals. Notably, after mastering CoT reasoning, the model exhibits implicit reasoning capabilities, allowing it to surpass existing baselines even without explicit reasoning traces. + +# 1 Introduction + +In recent years, multimodal reward models (RMs) [Wang et al., 2024, 2025d, Zang et al., 2025, Xiong et al., 2024, He et al., 2024, Xu et al., 2024, Liu et al., 2025a, Li et al., 2025, Wang et al., 2025c] have excelled at aligning vision model outputs with human preferences, providing crucial reward signals to guide model training [Wang et al., 2024, 2025d, Liu et al., 2025a, Ouyang et al., 2022, Rafailov et al., 2023, Schulman et al., 2017] and inference [Gulcehre et al., 2023, Snell et al., 2024]. Traditional reward models are typically trained on large-scale human-annotated preference data through supervised fine-tuning (SFT). At test time, most methods [He et al., 2024, Liu et al., 2025a, Xu et al., 2024] directly assign scores or provide pairwise ranking for vision model outputs, relying on the knowledge and intuitions acquired from the training data. While effective, these methods tend to lack interpretability, which makes it difficult for users to understand the underlying reasoning process behind the assigned scores or rankings. To this end, recent studies [Wang et al., 2025d, Xiong et al., 2024, Wang et al., 2024, Li et al., 2025] leverage the generative capabilities of Visual-Language Models (VLMs), enabling RMs to provide concise justifications alongside the assigned reward signals. Despite their success, their reasoning processes often lack rigorous logical structure and the capacity for multi-dimensional, deep analysis, which may result in inaccurate reward signals in complex scenarios or misguided conclusions arising from flawed reasoning processes. + +In light of these issues, we posit two key hypotheses: (1) Incorporating explicit long Chains-of-Thought (CoT) into the reward reasoning process is essential for significantly enhancing RM's reliability and robustness; (2) Once the model internalizes this ability, the accuracy of its directly provided reward signals, even without CoT reasoning traces, can also be improved by leveraging its implicit logical thinking capabilities. However, equipping RMs with CoT reasoning using traditional training schemes like SFT poses a highly challenge due to the scarcity of large-scale CoT reward data, as manual annotation requires substantial human resources and time. + +In this work, we argue that this challenge can be effectively addressed, as VLMs inherently possess prior knowledge of complex reasoning; what is needed is an effective strategy to elicit and incentivize this capability [Guo et al., 2025]. Therefore, this paper proposes UNIFIED REWARD-THINK, the first unified multimodal CoT-based reward model, capable of performing multi-dimensional, step-by-step long-chain reasoning across both visual understanding and generation reward tasks. The core idea is to activate the model's latent long-chain reasoning capabilities through limited CoT reward data and to progressively reinforce and refine this capability through exploration-driven reinforcement fine-tuning that optimizes for accurate and robust reasoning patterns. Specifically, our training pipeline, as shown in Fig. 2, consists of three stages: (1) Cold Start. We first use a small amount of labeled image generation preference data to distill the reasoning process from GPT-4o [Hurst et al., 2024], filtering for reasoning traces whose final answers align with the ground-truth (GT) labels. These samples serve to cold-start the model training, enabling it to learn the structure and format of long CoT reasoning. (2) Rejection Sampling. Next, we prepare large-scale unified multimodal labeled preference data to incentivize the model's CoT reasoning outputs across various visual reward tasks. Reasoning trajectories whose final answers match the GT label are retained for rejection sampling, reinforcing the distribution of correct reasoning patterns. (3) Group Relative Policy Optimization (GRPO). Finally, incorrectly reasoned samples are leveraged for GRPO-based reinforcement fine-tuning, enabling the model to explore diverse reasoning paths and optimize toward desirable outcomes defined by our + +verified rewards (i.e., format and accuracy rewards). Unlike SFT, which merely imitates predefined answers, GRPO promotes trial-and-error learning by evaluating and refining the model's reasoning outputs based on verified rewards, thus encouraging deeper reasoning discovery rather than passive memorization. Notably, we also propose a multidimensional CoT reward scoring strategy to address a widely observed issue, i.e., inconsistency between reasoning and final decisions, where reasoning may appear implausible despite a correct prediction. Specifically, as shown in Fig. 1, by scoring each candidate across various task-relevant dimensions and aggregating the scores from each dimension into a final decision, our approach enforces alignment between reasoning and outcomes, enhancing both the accuracy and reliability of the reward signal. This design allows us to rely solely on the final answer when filtering data during cold-start and rejection sampling, and applying reward supervision in GRPO, while implicitly ensuring the correctness of the reasoning process. + +Extensive experiments demonstrate that incorporating long CoT reasoning significantly improves the accuracy and reliability of reward signals. Remarkably, experimental results also prove that once the model internalizes the CoT reasoning ability, it also exhibits strong implicit reasoning capabilities: even when providing direct reward outputs without explicit reasoning traces, it consistently outperforms existing baselines across all vision reward tasks. + +Contributions: (1) We propose the first unified multimodal CoT reward model, UNIFIEDREWARD-THINK, capable of multi-dimensional, step-by-step long-chain reasoning across both visual understanding and generation tasks; (2) We demonstrate that explicit long CoT reasoning substantially enhances reward model reliability, and once mastered, also strengthens implicit reasoning, enabling more accurate reward signals even without explicit reasoning traces; (3) Extensive experiments validate the superiority of our method compared with existing baselines across all vision reward tasks. We hope our work can unlock reward models' reasoning potential to enhance interpretability, generalization, and alignment, enabling more trustworthy and human-aligned reward signals for multimodal generation and understanding. + +# 2 Related work + +# 2.1 Multimodal reward models + +Multimodal reward models have become increasingly important for aligning vision understanding and generation models with human preferences. A dominant approach is to fine-tune visual-language models (VLMs) [Li et al., 2024a, Bai et al., 2025b], exploiting their powerful multimodal alignment capabilities to learn human judgment-based reward functions. Earlier studies have explored reward models on visual generation [Wang et al., 2024, Liu et al., 2025a, He et al., 2024] and understanding [Zang et al., 2025, Xiong et al., 2024] tasks. For instance, [Wang et al., 2024] collects human feedback and constructs human-rated video datasets to train the reward model, LiFT-Critic, which measures how well the generated videos align with human expectations. [Zang et al., 2025] develops an effective pipeline for constructing multimodal preference datasets and leverages existing high-quality data to train the reward model, IXC-2.5-Reward, enabling accurate evaluation of visual understanding outputs. However, these reward models are task-specific, limiting their adaptability across diverse visual understanding and generation tasks. Therefore, [Wang et al., 2025d] introduces UnifiedReward, a unified reward model capable of assessing both image and video generation and understanding tasks, demonstrating that joint learning across diverse visual tasks can yield substantial mutual benefits. + +Despite their effectiveness, these reward models are largely limited to providing direct responses [Liu et al., 2025a, Xu et al., 2024, He et al., 2024, Xu et al., 2023] or engaging in shallow reasoning with limited depth [Wang et al., 2024, 2025d, Xiong et al., 2024], often resulting in inaccurate or unreliable reward signals in complex scenarios or misguided conclusions arising from flawed reasoning processes. To this end, we propose UNIFIED REWARD-THINK, the first unified multimodal long CoT-based reward model, enabling multi-dimensional long-chain reasoning for both visual understanding and generation tasks. The core idea is to use reinforcement learning to activate and enhance VLMs' latent reasoning capabilities, which will be discussed in the following section. + +# 2.2 Reinforcement learning + +Recently, reinforcement learning (RL) techniques have been extensively used to enhance the reasoning capabilities of Large-Language Models (LLMs), enabling them to effectively solve complex problems + +![](images/96f8792b80010500d276a34b491daf710d5ed9b255f92d9c824b4751e262ba65.jpg) +Stage 1. Cold Start: Learning CoT Reward Format + +![](images/42451526cfa40eb4aa279b2d951fe75822d4f66e5162bc3db4648796b9155c8e.jpg) +Stage 2. Rejection Sampling: Unified CoT Reward Generalization Fine-tuning + +![](images/dae1c6ec4142147e5afe9183b895980abe4336d5742665db286fadeafe09e9b2.jpg) +Stage 3. GRPO: Unified CoT Reward Reinforcement Fine-tuning +Figure 2: Method Overview. (1) Cold Start: We first distill GPT-4o's reasoning process on a small amount of labeled image generation preference data to initialize the model's CoT reasoning format; (2) Rejection Sampling: Then, we leverage the model's generalization capabilities on large-scale unified multimodal preference data to elicit its CoT reasoning process across various vision tasks. Correctly predicted samples whose final answers match the ground-truth are retained for rejection sampling to further refine the model. (3) GRPO: Finally, incorrectly predicted samples are utilized for GRPO-based reinforcement fine-tuning to further enhance step-by-step reasoning capabilities. + +[Jaech et al., 2024, Luong et al., 2024, Shao et al., 2024, Yang et al., 2024, Ying et al., 2024, Hui et al., 2024, Jiao et al., 2024, Zhang et al., 2024a,c, Wang et al., 2025a,b]. A significant advancement in this field is Deepseek-R1-Zero [Guo et al., 2025], which introduced a novel approach for developing robust reasoning capabilities using Group Relative Policy Optimization (GRPO). By leveraging rule-based rewards, it enhances reasoning without the need for supervised fine-tuning (SFT). For VLMs, RL has mainly been applied to tasks such as mitigating hallucinations [Sun et al., 2023, Yu et al., 2024a], aligning models with human preferences [Yu et al., 2024b, Zhou et al., 2024], improving visual perception [Liu et al., 2025b], and quality assessment [Li et al., 2025]. + +However, the application of RL in multimodal reward models is still under exploration. To address this gap, our work introduces a reinforcement fine-tuning strategy that leverages verifiable rewards with GRPO-based RL to integrate long CoT reasoning, enhancing the accuracy of reward signals by enabling multi-dimensional and step-by-step reasoning processes. + +# 3 Method + +# 3.1 Overview + +This work aims to incorporate long Chain-of-Thought (CoT) reasoning into the reward model's decision-making process to enhance the reliability and robustness of reward signals. However, achieving this with traditional training methods like Supervised Fine-Tuning (SFT) remains highly challenging due to the scarcity of large-scale CoT-based reward data. This work posits that Visual- + +![](images/3c729576ae8dfa20e2324484d88096405abea21a6c78398a898a921ca672ff1b.jpg) +Figure 3: Qualitative Results of Video Generation CoT Reward Reasoning. Given a pair of videos and the corresponding caption, our model performs quality assessment across semantic consistency, temporal coherence, and authenticity through CoT reasoning. + +![](images/13c21e6f145ed8815fa84fc295b329fc0020bbc27ea05854006cc55d1175b42b.jpg) + +Language Models (VLMs) inherently possess prior knowledge of complex reasoning; the key challenge lies in devising an effective strategy to elicit and incentivize this capability. Therefore, we take the first step to propose the unified multimodal CoT-based reward model, UNIFIEDREWARD-THINK, adopting exploration-driven reinforcement fine-tuning to activate and refine the VLM's multi-dimensional and step-by-step long chain reasoning across various vision reward tasks. + +Specifically, as shown in Fig. 2, our pipeline includes three key stages: (1) Cold Start: use a small amount of distilled CoT reward data to initialize the reward model with the format and structure of multi-step reasoning (Sec. 3.2); (2) Rejection Sampling: utilize large-scale unified preference data to elicit the model's generalizable CoT reasoning across diverse vision tasks; correctly reasoned samples are retained for rejection sampling to reinforce accurate reasoning patterns (Sec. 3.3); (3) Group Relative Policy Optimization (GRPO): leverage incorrectly reasoned samples for GRPO-based reinforcement fine-tuning to further improve the model's CoT reasoning capabilities (Sec. 3.4). To further ensure consistency between the reasoning process and final decisions, we design an effective multidimensional CoT reward score strategy (Sec. 3.5). + +# 3.2 Cold start: learning CoT reward format + +In this work, we hypothesize that VLMs inherently possess the potential for complex, long-chain reasoning. However, due to the absence of exposure to reward modeling during pre-training, they often lack a suitable format to articulate such reasoning in this context, which leads to inconsistent or shallow outputs. To address this, we initiate the training with a cold start phase, where a small amount of high-quality CoT reward data distilled from GPT-4o [Hurst et al., 2024] is used to explicitly teach the model the desired reasoning format and structure. Specifically, we begin by preparing a small set of image generation preference data, each consisting of an image pair, a prompt (i.e., instruction and image caption), and the ground-truth (GT) label. These samples are then fed into GPT-4o to generate the detailed long-chain reasoning process and the corresponding final answer. Among the generated samples, we retain only those reasoning trajectories whose final answers align with the GT label, denoted as $(x,y)$ where $x$ is the original input, and $y = \{y_1,y_2,\dots ,y_T\}$ is the distilled output, which are subsequently used to cold-start the training. The objective function is defined as: + +$$ +\mathcal {L} _ {\text {c o l d \_ s t a r t}} (\theta) = - \sum_ {i = 1} ^ {T} \log p \left(\boldsymbol {y} _ {i} \mid \boldsymbol {x}, \boldsymbol {y} _ {< i}; \theta\right), \tag {1} +$$ + +where $\theta$ represents the parameters of the reward model. This stage serves to initialize the model's ability to follow a structured CoT reasoning format. + +# 3.3 Rejection sampling: unified CoT reward generalization fine-tuning + +After learning the CoT reasoning format through cold-start training, we further elicit and expand the model's reasoning capabilities to vision understanding and generation tasks. This is inspired by a + +prior study [Wang et al., 2025d], which highlights the benefits of multi-task joint training: reward reasoning abilities learned in one task can generalize well and effectively enhance performance in other vision tasks. Therefore, we apply rejection sampling to reinforce the learning of correct reasoning patterns to improve both reliability and accuracy in vision understanding and generation tasks. Specifically, we first prompt the model to perform generalization CoT reasoning on large-scale unified preference datasets, leveraging its prior knowledge across various tasks (e.g., evaluating video temporal consistency and vision-question-answer accuracy). In vision generation tasks, each input sample consists of a textual prompt (instruction and caption) and a corresponding image/video pair, whereas in vision understanding tasks, it comprises a textual prompt (instruction and query) along with an image/video. Then, we retain only the reasoning samples whose trajectories lead to a final answer consistent with the ground-truth label, while discarding incorrect reasoning. The training objective for this stage is similar to Eqn. 1, but it utilizes the filtered reasoning data of diverse vision tasks $(x', y')$ obtained through rejection sampling. + +This process concentrates the training distribution around accurate reasoning patterns and enhances the model's generalization ability across diverse visual domains. + +# 3.4 GRPO: unified CoT reward reinforcement fine-tuning + +In the rejection sampling stage, a subset of challenging data featuring intricate reasoning patterns is filtered, which the model has yet to fully comprehend and master. To ensure the model fully learns the underlying knowledge in the training dataset and further enhances its reasoning ability, we introduce GRPO-based reinforcement fine-tuning [Guo et al., 2025]. Specifically, in GRPO, the policy model $\pi_{\theta}$ generates multiple candidate responses for a given input, which are evaluated using predefined verifiable reward functions, providing corresponding reward signals. These signals guide policy updates, encouraging alignment with high-quality reasoning while constraining deviations from the reference model $\pi_{\mathrm{ref}}$ . This approach enables the model to explore diverse reasoning processes, guiding it toward the correct reasoning trajectory and improving its ability to handle complex scenarios. In the following, we will first introduce the design of verifiable rewards in our work, followed by a detailed description of the GRPO training process. + +# 3.4.1 Verifiable reward + +In GRPO, verifiable rewards are essential for guiding the model's learning by offering rule-based feedback. In this work, we employ two types of verifiable rewards i.e., format reward and accuracy reward, to ensure both the quality and accuracy of the model's responses: + +Format reward ensures that the generated response follows a specific reasoning structure, which is critical for maintaining clarity and consistency in the reasoning process. In this case, the response is expected to contain two key tags: $\langle$ think $\rangle$ and $\langle$ answer $\rangle$ . These tags are used to delineate the model's reasoning process and the final answer, respectively. If both tags are present and properly formatted in the response, the reward $R_{fmt}$ is set to 1. Otherwise, the reward $R_{fmt}$ is 0. This mechanism helps reinforce the importance of structuring the response. Although most VLMs already exhibit strong instruction-following capabilities, the format reward can still serve as a safety check to filter out occasional formatting errors, which, though minor, may negatively affect model performance. + +Accuracy reward evaluates whether the final answer output $o$ (i.e., Image/Video/Answer $X$ is better), enclosed within the tag, exactly matches the ground truth. This reward serves as a reliable signal to ensure that the model produces correct answers. If $o$ matches the ground truth precisely, the reward is set to 1; otherwise, it is 0. Formally, the accuracy reward is defined as: + +$$ +R _ {a c c} = \left\{ \begin{array}{l l} 1 & \text {i f o = g r o u n d t r u t h} \\ 0 & \text {o t h e r w i s e .} \end{array} \right. +$$ + +This is crucial for reinforcing accurate reasoning and encouraging the model to generate correct responses. Finally, the overall verifiable reward $R$ is formulated as: + +$$ +R = R _ {f m t} + R _ {a c c}. +$$ + +By incorporating both the format and accuracy rewards into the GRPO training, we provide the model with explicit feedback that encourages it to generate responses that are both well-structured and factually accurate. + +![](images/330194cec3676960b957e360a524c0994f3900758f6b62e48c0ec99e3aa9ad94.jpg) + +Can you elaborate on the details of the image? + +![](images/849d7d1c4347e914cd088f17107ba1ff0f93a4af88010d40fcfa36b0345518bb.jpg) + +![](images/ba46e2d3909b31701ee9dc890d9679d822f8a0598ab11dfe278d95af57392d52.jpg) + +# Image Understanding + +Answer 1: The image shows a male tennis player in mid-action, executing a serve. He is dressed in a teal athletic shirt with short sleeves, suitable for a sports activity. The player has dark curly hair and is looking upwards, concentrating on the tennis ball he is tossing into the air with his left hand. His right arm is drawn back, holding the racket in preparation to swing at the ball. The background features a green barrier with the word \`MASTERS\` written across in white lettering, suggesting this is a professional level tennis tournament. + +Answer 2: The image captures a young man playing tennis on a court. He is wearing a blue shirt and black shorts, and is in the process of serving a tennis ball. The ball is in mid-air, and the man is fully engaged in the game. There are several tennis rackets scattered around the court, indicating that the game is in progress. Additionally, there are several chairs placed around the court, suggesting that spectators are watching the game. + +![](images/fd7a97c6ce70725b24901389575fbe3ba95eb49a1a6ddd9768f416a20fc2df26.jpg) + + + +# 1. Semantic accuracy: + +- Answer 1 (9/10): Accurately describes the player's attire, action, and background details such as the "MASTERS" sign. The description of the player's focus and posture is precise. + +- Answer 2 (6/10): Incorrectly mentions several tennis jackets and chairs around the court, which are not visible in the image. Hirt color is described inaccurately as blue instead of teal. + +# 2. Correctness: + +- Answer 1 (9/10): Logically consistent with the image content, correctly identifying the player's action and attire. + +- Answer 2 (5/10): Contains factual inaccuracies regarding the presence of multiple rackets and chairs, which are not depicted in the image. + +# 3. Clarity: + +- Answer 1 (8/10): Clearly and fluently expressed, providing a vivid depiction of the scene. + +- Answer 2 (7/10): Generally clear but includes incorrect details that could confuse the reader. + +Total score: Answer 1: $9 + 9 + 8 = 26$ \\nAnswer 2: $6 + 5 + 7 = 18$ + +Answer 1 is better + +![](images/177812fc352b399bf6b12cc4282744be246f615732f82ca371c379e69cd5ef07.jpg) +Figure 4: Qualitative Cases of Image and Video Understanding CoT Reward Reasoning. Given an image or video, a query, and a pair of candidate answers, our model performs quality assessment across semantic accuracy, factual correctness, and clarity through CoT reasoning. + +What emotions are conveyed to the video, and how do visual details support your concept? + +![](images/760575a5c5115d932ae7c96f295db6b416d50b54872054c14d6296c800169cca.jpg) + +![](images/77a8ad8898b055fe7be052877bebc967db98391315e69ea363253b8480c3d254.jpg) + +# Video Understanding + +Answer 1: The video conveys a sense of happiness and freedom. The boy's big smile and relaxed posture show he is enjoying himself. The bright sunlight and the clean, quiet neighborhood make the scene feel peaceful and safe, highlighting the carefree nature of childhood. + +Answer 2: The video captures a strong theme of youthful freedom and innocence. The boy's genuine smile, casual clothing, and confident grip on the handlebars suggest both comfort and excitement. The warm sunlight enhances the feeling of joy and security, while the neatly maintained suburban setting—with white fences and wide sidewalks—emphasizes a safe environment that nurtures exploration and independence. These visual elements collectively celebrate the simple, unburdened pleasures of childhood. + +![](images/925447ad9a5b01f3e2f663594aa704a2f39425577ddc2235cba72f1cc0311dee.jpg) + + + +# 1. Semantic accuracy: + +- Answer 1 (8/10) - The answer captures the emotions of happiness and freedom well, supported by the boy's smile and the peaceful suburban setting. However, it could delve deeper into the visual details. + +- Answer 2 (9/10) - This answer effectively conveys the themes of youthful freedom and innocence, supported by the boy's expression and the suburban environment. It provides a more comprehensive interpretation. + +# 2. Correctness: + +- Answer 1 (7/10) - The interpretation is correct but somewhat simplistic. It focuses mainly on the boy's emotions without much depth. +- Answer 2 (9/10) - The answer is factually correct and provides a nuanced understanding of the scene, including the setting and the boy's demeanor. + +# 3. Clarity: + +- Answer 1 (8/10) - The answer is clear and easy to understand, with a straightforward explanation of the emotions and setting. + +- Answer 2 (9/10) - The answer is very clear and well-articulated, with detailed observations that enhance the interpretation. + +Total score: Answer 1: $8 + 7 + 8 = 23$ nAnswer 2: $9 + 9 + 9 = 27$ + +Answer 2 is better + +# 3.4.2 Reinforcement fine-tuning + +Given an input $x$ , GRPO first samples $N$ distinct responses $\{o^{(1)}, o^{(2)}, \ldots, o^{(N)}\}$ from the previous policy model $\pi_{\theta_{\mathrm{old}}}$ . Each response is evaluated using our verifiable rewards, i.e., format and accuracy rewards, resulting in corresponding reward scores $\{R^{(1)}, R^{(2)}, \ldots, R^{(N)}\}$ . Then, GRPO normalizes these scores and quantifies the relative quality of each response by computing the advantage of each response using the standardized reward: + +$$ +\hat {A} ^ {(i)} = \frac {R ^ {(i)} - \operatorname {m e a n} (\{R ^ {(1)} , \ldots , R ^ {(N)} \})}{\operatorname {s t d} (\{R ^ {(1)} , \ldots , R ^ {(N)} \})}, +$$ + +where $\hat{A}^{(i)}$ quantifies the relative quality of the $i$ -th response in comparison to other candidates within the same sampled group. + +Then, GRPO estimates magnitude of the policy update by computing the likelihood ratio of each response under the new policy $\pi_{\theta_{\mathrm{new}}}$ relative to the old policy $\pi_{\theta_{\mathrm{old}}}$ , defined as: + +$$ +r ^ {(i)} = \frac {\pi_ {\theta_ {\text {n e w}}} \left(o ^ {(i)} \mid \boldsymbol {x}\right)}{\pi_ {\theta_ {\text {o l d}}} \left(o ^ {(i)} \mid \boldsymbol {x}\right)}. +$$ + +To stabilize training and avoid overly aggressive updates, the ratio is clipped to a bounded interval $[1 - \delta, 1 + \delta]$ . Moreover, to ensure that the updated policy does not diverge significantly from a fixed reference model $\pi_{\mathrm{ref}}$ , a KL divergence penalty term is introduced with a weighting factor $\beta$ . The final optimization objective is defined as: + +$$ +L _ {g r p o} (\theta) = \mathbb {E} _ {\mathbf {x} \sim \mathcal {X}, o ^ {(i)} \sim \pi_ {\theta_ {\text {o l d}}}} \left[ \min \left(r ^ {(i)} \hat {A} ^ {(i)}, \operatorname {c l i p} (r ^ {(i)}, 1 - \delta , 1 + \delta) \hat {A} ^ {(i)}\right) - \beta \cdot D _ {\mathrm {K L}} \left(\pi_ {\theta_ {\text {n e w}}} \| \pi_ {\text {r e f}}\right) \right], +$$ + +where $\mathcal{X}$ denotes the set of training sample input and $D_{\mathrm{KL}}(\cdot \| \cdot)$ denotes the KL divergence. + +By integrating normalized reward advantages, clipped importance sampling, and reference-model regularization, GRPO enables stable and effective policy optimization, driving our model toward generating higher-quality, verifiably correct CoT reasoning paths. + +# 3.5 Multidimensional CoT reward scoring strategy + +In the cold-start and rejection sampling stages, we filter data by retaining only those samples whose final answers align with the ground truth, and in the GRPO stage, supervision is likewise applied solely to the final answers. However, both GPT-4o and existing reward models often suffer from inconsistencies between reasoning traces and final decisions, where reasoning may appear implausible even if the prediction is correct, leading to unreliable supervision. To address this issue, we propose a multidimensional CoT reward scoring strategy that tightly couples the reasoning process with the final score. Specifically, the model evaluates each candidate (image, video, or textual response) along multiple task-relevant dimensions, aggregates the dimension-wise scores into a final decision, and thereby enforces consistency between reasoning and outcomes (Figs. 1, 3, 4). By grounding the final prediction in multidimensional and interpretable reasoning processes, our design implicitly ensures reasoning correctness even when data filtering or supervision relies solely on the final answer, as in all training stages, thereby enhancing both the accuracy and reliability of our reward model. + +# 4 Experiments + +# 4.1 Experimental setup + +Datasets. For Image Generation, we utilize HPD (25.6K) [Christodoulou and Kuhlmann-Jorgensen, 2024], OIP $(7.4\mathrm{K})^{1}$ , EvalMuse (3K) [Han et al., 2024], all preprocessed by [Wang et al., 2025d], as well as OpenAI-4o_t2i_human Preference (6.7K) collected by Rapidata². For Video Generation, we employ VideoDPO (10K) [Liu et al., 2024] and Text2Video-Human Preferences (5.7K), also collected by Rapidata. For Image Understanding, we sample 30K data from LLaVA-Critic-113K [Xiong et al., 2024]. For Video Understanding, we adopt ShareGPTVideo-DPO (17K) [Zhang et al., 2024b]. In the cold-start stage, we distill image generation CoT reward reasoning samples from GPT-4o, constructing our ImageGen-CoT-Reward-5K. The input data are randomly sampled from the image generation datasets, with the remaining data reserved for the subsequent training stages. + +Reward model. We adopt UnifiedReward [Wang et al., 2025d] as our base model, which is capable of assessing both image/video generation and understanding. We leverage its strong performance and extensive prior knowledge in visual perception and generation, and further activate its latent capacity for long-chain CoT reasoning. + +Training details. For both the cold-start and rejection sampling stages, training is performed with a batch size of 1, 16 gradient accumulation steps, a learning rate of $2.5 \times 10^{-6}$ , and a warm-up ratio of 0.3, using 8 NVIDIA H100 (80GB) GPUs. For GRPO, training is conducted with a batch size of 1, a single gradient accumulation step, a learning rate of $1 \times 10^{-6}$ , and a KL penalty coefficient of $\beta = 0.04$ . The number of generated responses $N$ is set to 8, using 64 NVIDIA H20 (97GB) GPUs. + +**Evaluations.** We evaluate image and video understanding reward assessment on VLRewardBench [Li et al., 2024b] and ShareGPTVideo [Zhang et al., 2024b], using 5K test samples, respectively. For generation evaluation, we adopt GenAI-Bench [Jiang et al., 2024], which covers both image and video reward benchmarks. Additionally, we utilize VideoGen-RewardBench [Liu et al., 2025a] to further assess video generation. + +Table 1: Image Understanding Assessment Comparison. We evaluate baselines across different understanding aspects on VLRewardBench. + +
ModelsGeneralHallu.Reason.Overall AccuracyMacro Accuracy
Gemini-1.5-Pro50.872.564.267.262.5
GPT-4o49.167.670.565.862.4
LLaVA-Critic47.438.553.846.946.6
UnifiedReward76.558.165.167.566.6
Ours (w/o CoT)77.970.565.473.171.3
Ours78.172.766.073.872.3
+ +Table 2: Image and Video Generation Assessment Comparison. "tau" indicates that accuracy is calculated with ties, and "diff" excludes tied pairs when calculating accuracy. + +
MethodImage GenerationMethodVideo Generation
GenAI-BenchGenAI-BenchVideoGen-Reward
taudifftaudifftaudiff
PickScore53.267.2VideoScore46.270.642.149.9
HPSv251.668.4LiFT41.260.140.658.3
ImageReward47.865.0VisionReward52.173.157.468.2
VisionReward46.866.4VideoReward50.273.360.173.9
UnifiedReward54.870.9UnifiedReward60.777.266.679.3
Ours (w/o CoT)54.171.9Ours (w/o CoT)57.881.664.979.9
Ours-72.5Ours-82.3-80.5
+ +# 4.2 Comparison results + +The quantitative results, presented in Tabs. 1, 2, and Fig. 1, demonstrate the superiority of our model across visual generation and understanding tasks. In image and video generation tasks, our model does not account for tie scenarios during evaluation, since such cases were not included in the training data. Nevertheless, it consistently outperforms existing methods across all other evaluations. Notably, compared to the base model UnifiedReward, incorporating multi-dimensional and multi-step reasoning yields substantial performance gains across all tasks. In particular, our model achieves significant improvements in image understanding reward tasks. This is intuitive, as CoT reasoning in vision tasks fundamentally centers on a deeper understanding of the visual content. Additionally, we explore whether our model, after learning long CoT reasoning, can improve the accuracy of direct reward signals, i.e., without explicit CoT reasoning. Experimental results show that the model still outperforms existing methods by leveraging implicit logical reasoning, with only a slight drop in performance compared to explicit CoT reasoning. These results strongly validate the effectiveness and superiority of our approach. Our qualitative results are provided in Figs. 1, 3, and 4. + +# 4.3 Ablation studies + +Ablation of each training stage. We conduct ablation studies to assess the effectiveness of each training stage. As shown in Tabs. 3 and 4, after the cold start phase, though the model learns the CoT reasoning format, it still struggles with accurate reward prediction. Notably, introducing rejection sampling leads to clear improvements by retaining correctly reasoned samples for supervised fine-tuning, thereby reinforcing desirable reasoning patterns. Further, the GRPO stage yields the most substantial gains, as it focuses on previously mispredicted cases, allowing the model to explore multiple reasoning paths and converge on more accurate solutions. These results highlight the complementary roles of each stage and demonstrate how our staged training strategy progressively enhances CoT-based reward modeling. + +Ablation of GRPO without CoT reasoning. To further validate the necessity of learning the CoT reasoning process, we evaluate a GRPO variant that removes CoT and directly optimizes reward predictions based on final answers. As shown in Tabs. 3 and 4, although this approach yields slight improvements over the baseline, the gains are significantly limited. This suggests that learning + +Table 3: Ablation Results of Image Understanding Assessment. We conduct ablation experiments under different settings and evaluate them across multiple aspects on VLRewardBench. + +
ModelsGeneralHallu.Reason.Overall AccuracyMacro Accuracy
UnifiedReward76.558.165.167.566.6
+GRPO (w/o CoT)77.859.165.569.067.4
UnifiedReward76.558.165.167.566.6
+cold start76.056.765.266.966.0
+rejection sampling77.664.965.472.169.3
+GRPO(Ours)78.172.766.073.872.3
+ +Table 4: Ablation Results of Image and Video Generation Assessment. "tau" indicates that accuracy is calculated with ties, and "diff" excludes tied pairs when calculating accuracy. + +
MethodImage GenerationMethodVideo Generation
GenAI-BenchGenAI-BenchVideoGen-Reward
taudifftaudifftaudiff
UnifiedReward54.870.9UnifiedReward60.777.266.679.3
+GRPO (w/o CoT)54.171.3+GRPO (w/o CoT)56.778.464.879.5
UnifiedReward54.870.9UnifiedReward60.777.266.679.3
+cold start-68.6+cold start-75.3-76.8
+rejection sampling-72.0+rejection sampling-78.9-79.7
+GRPO(Ours)-72.5+GRPO(Ours)-82.3-80.5
+ +from final answers alone fails to teach the model the underlying reasoning process. In contrast, our CoT-based GRPO guides the model to explore multiple reasoning trajectories and gradually converge toward the correct path, leading to deeper understanding and more robust generalization. These results show that the effectiveness of our GRPO-based reinforcement fine-tuning stems from explicitly modeling the reasoning process, rather than simply reinforcing the final answer. + +# 5 Limitations and future works + +While our method introduces long-form CoT reasoning to improve reward modeling, this inevitably increases inference time during reasoning. However, we show that once the model has mastered CoT reasoning, it can leverage implicit reasoning to enhance answer accuracy even without explicitly generating CoT traces. This suggests strong internalization of the reasoning process. Besides, although our reinforcement fine-tuning strategy successfully activates the model's latent long CoT reasoning ability using only a small amount of high-quality data, the prior study [Yue et al., 2025] has shown that reinforcement learning cannot fundamentally extend a model's capability: it can only amplify the potential already acquired during supervised fine-tuning (SFT). Therefore, to further push the boundaries of CoT-based reward reasoning, scaling up high-quality CoT supervision still remains a promising direction. + +# 6 Conclusion + +We propose UNIFIED REWARD-THINK, the first unified multimodal CoT reward model capable of multi-dimensional, step-by-step reliable reward reasoning for both visual understanding and generation tasks. Specifically, we adopt an exploration-driven reinforcement fine-tuning approach to elicit and incentivize the model's latent complex reasoning ability, including three key stages: cold start, rejection sampling, and GRPO-based reinforcement fine-tuning. Our experiments demonstrate that CoT reasoning not only improves the accuracy and robustness of reward signals but also equips the model with strong implicit reasoning capabilities, enabling superior performance even without explicit CoT outputs. We hope our work can unlock reward models' reasoning potential to enhance interpretability and generalization, enabling more trustworthy and human-aligned reward signals for multimodal understanding and generation. + +# 7 Acknowledgments + +This work was supported by the National Natural Science Foundation of China (Grant No. 62176064), AI for Science Foundation of Fudan University (FudanX24AI028), and Shanghai Innovation Institute. + +# References + +S. Bai, K. Chen, X. Liu, J. Wang, W. Ge, S. Song, K. Dang, P. Wang, S. Wang, J. Tang, et al. Qwen2. 5-vl technical report. arXiv preprint arXiv:2502.13923, 2025a. +S. Bai, K. Chen, X. Liu, J. Wang, W. Ge, S. Song, K. Dang, P. Wang, S. Wang, J. Tang, et al. Qwen2.5-vl technical report. arXiv preprint arXiv:2502.13923, 2025b. +D. Christodoulou and M. Kuhlmann-Jorgensen. Finding the subjective truth: Collecting 2 million votes for comprehensive gen-ai model evaluation. arXiv preprint arXiv:2409.11904, 2024. +C. Gulcehre, T. L. Paine, S. Srinivasan, K. Konyushkova, L. Weerts, A. Sharma, A. Siddhant, A. Ahern, M. Wang, C. Gu, et al. Reinforced self-training (rest) for language modeling. arXiv preprint arXiv:2308.08998, 2023. +D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, et al. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025. +S. Han, H. Fan, J. Fu, L. Li, T. Li, J. Cui, Y. Wang, Y. Tai, J. Sun, C. Guo, et al. Evalmuse-40k: A reliable and fine-grained benchmark with comprehensive human annotations for text-to-image generation model evaluation. arXiv preprint arXiv:2412.18150, 2024. +X. He, D. Jiang, G. Zhang, M. Ku, A. Soni, S. Siu, H. Chen, A. Chandra, Z. Jiang, A. Arulraj, K. Wang, Q. D. Do, Y. Ni, B. Lyu, Y. Narsupalli, R. Fan, Z. Lyu, Y. Lin, and W. Chen. Videoscore: Building automatic metrics to simulate fine-grained human feedback for video generation. arXiv preprint arXiv:2406.15252, 2024. +B. Hui, J. Yang, Z. Cui, J. Yang, D. Liu, L. Zhang, T. Liu, J. Zhang, B. Yu, K. Lu, et al. Qwen2. 5-coder technical report. arXiv preprint arXiv:2409.12186, 2024. +A. Hurst, A. Lerer, A. P. Goucher, A. Perelman, A. Ramesh, A. Clark, A. Ostrow, A. Welihinda, A. Hayes, A. Radford, et al. Gpt-4o system card. arXiv preprint arXiv:2410.21276, 2024. +A. Jaech, A. Kalai, A. Lerer, A. Richardson, A. El-Kishky, A. Low, A. Helyar, A. Madry, A. Beutel, A. Carney, et al. Openai o1 system card. arXiv preprint arXiv:2412.16720, 2024. +D. Jiang, M. Ku, T. Li, Y. Ni, S. Sun, R. Fan, and W. Chen. Genai arena: An open evaluation platform for generative models. arXiv preprint arXiv:2406.04485, 2024. +F. Jiao, G. Guo, X. Zhang, N. F. Chen, S. Joty, and F. Wei. Preference optimization for reasoning with pseudo feedback. arXiv preprint arXiv:2411.16345, 2024. +Y. Kirstain, A. Polyak, U. Singer, S. Matiana, J. Penna, and O. Levy. Pick-a-pic: An open dataset of user preferences for text-to-image generation. NeurIPS, 36:36652-36663, 2023. +B. Li, Y. Zhang, D. Guo, R. Zhang, F. Li, H. Zhang, K. Zhang, Y. Li, Z. Liu, and C. Li. Llava-onevision: Easy visual task transfer. arXiv preprint arXiv:2408.03326, 2024a. +L. Li, Y. Wei, Z. Xie, X. Yang, Y. Song, P. Wang, C. An, T. Liu, S. Li, B. Y. Lin, et al. Vlreward-bench: A challenging benchmark for vision-language generative reward models. arXiv preprint arXiv:2411.17451, 2024b. +W. Li, X. Zhang, S. Zhao, Y. Zhang, J. Li, L. Zhang, and J. Zhang. Q-insight: Understanding image quality via visual reinforcement learning. arXiv preprint arXiv:2503.22679, 2025. +J. Liu, G. Liu, J. Liang, Z. Yuan, X. Liu, M. Zheng, X. Wu, Q. Wang, W. Qin, M. Xia, X. Wang, X. Liu, F. Yang, P. Wan, D. Zhang, K. Gai, Y. Yang, and W. Ouyang. Improving video generation with human feedback. arXiv preprint arXiv:2501.13918, 2025a. + +R. Liu, H. Wu, Z. Ziqiang, C. Wei, Y. He, R. Pi, and Q. Chen. Videodpo: Omni-preference alignment for video diffusion generation. arXiv preprint arXiv:2412.14167, 2024. +Z. Liu, Z. Sun, Y. Zang, X. Dong, Y. Cao, H. Duan, D. Lin, and J. Wang. Visual-rft: Visual reinforcement fine-tuning. arXiv preprint arXiv:2503.01785, 2025b. +T. Q. Luong, X. Zhang, Z. Jie, P. Sun, X. Jin, and H. Li. Reft: Reasoning with reinforced fine-tuning. arXiv preprint arXiv:2401.08967, 3, 2024. +L. Ouyang, J. Wu, X. Jiang, D. Almeida, C. Wainwright, P. Mishkin, C. Zhang, S. Agarwal, K. Slama, A. Ray, et al. Training language models to follow instructions with human feedback. NeurIPS, 35: 27730-27744, 2022. +R. Rafailov, A. Sharma, E. Mitchell, C. D. Manning, S. Ermon, and C. Finn. Direct preference optimization: Your language model is secretly a reward model. NeurIPS, 36:53728-53741, 2023. +J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017. +Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. Li, Y. Wu, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024. +C. Snell, J. Lee, K. Xu, and A. Kumar. Scaling llm test-time compute optimally can be more effective than scaling model parameters. arXiv preprint arXiv:2408.03314, 2024. +Z. Sun, S. Shen, S. Cao, H. Liu, C. Li, Y. Shen, C. Gan, L.-Y. Gui, Y.-X. Wang, Y. Yang, et al. Aligning large multimodal models with factually augmented rlhf. arXiv preprint arXiv:2309.14525, 2023. +S. Wang, Z. Guo, C. Lu, and J. Yan. Fractional Langevin dynamics for combinatorial optimization via polynomial-time escape. In Advances in Neural Information Processing Systems, 2025a. +S. Wang, H. Xu, Y. Zhang, J. Lin, C. Lu, X. Wang, and W. Li. Where paths collide: A comprehensive survey of classic and learning-based multi-agent pathfinding. arXiv preprint arXiv:2505.19219, 2025b. +Y. Wang, Z. Tan, J. Wang, X. Yang, C. Jin, and H. Li. Lift: Leveraging human feedback for text-to-video model alignment. arXiv preprint arXiv:2412.04814, 2024. +Y. Wang, Z. Li, Y. Zang, Y. Zhou, J. Bu, C. Wang, Q. Lu, C. Jin, and J. Wang. Pref-grpo: Pairwise preference reward-based grpo for stable text-to-image reinforcement learning. arXiv preprint arXiv:2508.20751, 2025c. +Y. Wang, Y. Zang, H. Li, C. Jin, and W. Jiaqi. Unified reward model for multimodal understanding and generation. arXiv preprint arXiv:2503.05236, 2025d. +T. Xiong, X. Wang, D. Guo, Q. Ye, H. Fan, Q. Gu, H. Huang, and C. Li. Llava-critic: Learning to evaluate multimodal models. arXiv preprint arXiv:2410.02712, 2024. +J. Xu, X. Liu, Y. Wu, Y. Tong, Q. Li, M. Ding, J. Tang, and Y. Dong. Imagereward: Learning and evaluating human preferences for text-to-image generation. NeurIPS, 36:15903-15935, 2023. +J. Xu, Y. Huang, J. Cheng, Y. Yang, J. Xu, Y. Wang, W. Duan, S. Yang, Q. Jin, S. Li, J. Teng, Z. Yang, W. Zheng, X. Liu, M. Ding, X. Zhang, X. Gu, S. Huang, M. Huang, J. Tang, and Y. Dong. Visionreward: Fine-grained multi-dimensional human preference learning for image and video generation. arXiv preprint arXiv:2412.21059, 2024. +A. Yang, B. Zhang, B. Hui, B. Gao, B. Yu, C. Li, D. Liu, J. Tu, J. Zhou, J. Lin, et al. Qwen2. 5-math technical report: Toward mathematical expert model via self-improvement. arXiv preprint arXiv:2409.12122, 2024. +H. Ying, S. Zhang, L. Li, Z. Zhou, Y. Shao, Z. Fei, Y. Ma, J. Hong, K. Liu, Z. Wang, et al. Internl m- math: Open math large language models toward verifiable reasoning. arXiv preprint arXiv:2402.06332, 2024. + +T. Yu, Y. Yao, H. Zhang, T. He, Y. Han, G. Cui, J. Hu, Z. Liu, H.-T. Zheng, M. Sun, et al. Rlhf-v: Towards trustworthy mllms via behavior alignment from fine-grained correctional human feedback. In CVPR, pages 13807-13816, 2024a. +T. Yu, H. Zhang, Y. Yao, Y. Dang, D. Chen, X. Lu, G. Cui, T. He, Z. Liu, T.-S. Chua, et al. Rlaif-v: Aligning mllms through open-source ai feedback for super gpt-4v trustworthiness. arXiv preprint arXiv:2405.17220, 2024b. +Y. Yue, Z. Chen, R. Lu, A. Zhao, Z. Wang, S. Song, and G. Huang. Does reinforcement learning really incentivize reasoning capacity in llms beyond the base model? arXiv preprint arXiv:2504.13837, 2025. +Y. Zang, X. Dong, P. Zhang, Y. Cao, Z. Liu, S. Ding, S. Wu, Y. Ma, H. Duan, W. Zhang, K. Chen, D. Lin, and J. Wang. Internl m-xcomposer2.5-reward: A simple yet effective multi-modal reward model. arXiv preprint arXiv:2501.12368, 2025. +K. Zhang, G. Li, Y. Dong, J. Xu, J. Zhang, J. Su, Y. Liu, and Z. Jin. Codedpo: Aligning code models with self generated and verified source code. arXiv preprint arXiv:2410.05605, 2024a. +R. Zhang, L. Gui, Z. Sun, Y. Feng, K. Xu, Y. Zhang, D. Fu, C. Li, A. Hauptmann, Y. Bisk, et al. Direct preference optimization of video large multimodal models from language model reward. arXiv preprint arXiv:2404.01258, 2024b. +Y. Zhang, S. Wu, Y. Yang, J. Shu, J. Xiao, C. Kong, and J. Sang. o1-coder: an o1 replication for coding. arXiv preprint arXiv:2412.00154, 2024c. +Y. Zhou, C. Cui, R. Rafailov, C. Finn, and H. Yao. Aligning modalities in vision large language models via preference fine-tuning. arXiv preprint arXiv:2402.11411, 2024. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The abstract and introduction have clearly stated the paper's contribution and scope. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: The limitations of the work are discussed in the Supplementary Materials. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: This paper does not include theoretical results + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: This paper fully disclose all the information needed to reproduce the main experimental results of the paper. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [Yes] + +Justification: We have released all the code in the supplementary and prepared a detailed file "README.md" for reproducibility. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: This paper specifies all the training and test details in Experiments section. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [No] + +Justification: Error bars are not reported because it would be too computationally expensive. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). + +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: This paper provides sufficient information on the computer resources in Experiments section. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: The research conducted in the paper conforms, in every respect, with the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: This paper has discussed both potential positive societal impacts and negative societal impacts of the work performed in the Supplementary Materials. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: This paper poses no such risks. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: The creators or original owners of assets are properly credited and the license and terms of use are explicitly mentioned and properly respected. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. + +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: This paper does not release new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [NA] + +Justification: The core method development in this research does not involve LLMs as any important, original, or non-standard components. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +Table 5: Ablation of Rejection Sampling Training Stage. We conduct an ablation study to assess the effect of the rejection sampling stage on different benchmarks. + +
MethodVLRewardGenAI-ImageGenAI-VideoVideoGen
Baseline67.570.977.279.3
UnifiedReward-Think73.872.582.380.5
w/o Rejection Sampling70.471.679.279.8
+ +# A Further methodological insights + +Cold start only with image generation preference data: why it works. Our experiments demonstrate that using a small amount of high-quality image generation CoT reward reasoning data, instead of distilling data for every task, is sufficient for the model to learn the CoT reasoning format and structure across all visual reward tasks. The underlying reason lies in the fact that video tasks can be seen as multi-image understanding problems. Video frames, like images, also require recognizing objects, spatial relationships, and context. Once the model masters CoT reasoning for images, it can naturally extend this reasoning to videos by leveraging its inherent prior knowledge of temporal dynamics and sequential visual understanding. Therefore, by learning CoT reasoning from images, the model can seamlessly generalize to both static and dynamic visual tasks, eliminating the need for separate distillation for each task. + +Rejection sampling for unified reward generalization fine-tuning: why we need it. After the cold start, the model has already internalized the format and structure of CoT reasoning. With prior knowledge across tasks, it can generate accurate CoT-based reward analyses for many simple scenarios. However, directly applying GRPO to the entire training set would be inefficient and computationally costly. Besides, GRPO offers limited gains on samples that the model has already mastered. Therefore, we first apply rejection sampling to filter out cases that the model already performs well on. This not only reduces training cost but also reinforces the distribution of correct reasoning patterns by prioritizing high-confidence outputs. More challenging or ambiguous samples are passed to the GRPO stage, where the model explores diverse reasoning trajectories and gradually learns to prefer more accurate solutions. Ablation results of this training stage are provided in Tab. 5. + +Why we trust the CoT reasoning when the final answer is correct during GRPO. In MLLMs, a common failure mode during CoT reasoning is the disconnect between the reasoning steps and the final answer: models may produce plausible reasoning chains but ultimately rely on shortcuts or intuition to generate the conclusion. To mitigate this, we explicitly structure the CoT process by having the model score each image across multiple dimensions and then aggregate these scores to derive the final decision. This enforces a step-by-step alignment between intermediate reasoning and outcome, ensuring that a correct final answer emerges from a coherent and interpretable reasoning process. As a result, in GRPO, verifying the correctness of the final answer implicitly validates the reasoning trajectory, offering a principled yet efficient way to supervise complex CoT generation. + +Why learning can be generalized to different tasks. In this work, our unified multimodal CoT reward model is designed to support both vision generation and understanding tasks across both images and videos. Although the downstream tasks may differ, the input-output structure to the reward model is unified: in all cases, the model receives a combination of visual content (image or video) and caption or textual response, and outputs a reward judgment signal indicating the relative quality or preference between candidate outputs. Because of this consistent structure, the reward model learns to evaluate visual-text pairs in a task-agnostic manner, allowing it to generalize across different modalities and task types. This design enables us to train the reward model jointly on diverse datasets and apply it effectively across vision reward tasks. + +# B Robustness on different baselines + +To further demonstrate the robustness of our method across different base models, we additionally train UNIFIEDREWARD-THINK on Qwen2.5-VL-7b [Bai et al., 2025a]. As shown in Tab. 6, leveraging the stronger capability of the base model, the Qwen2.5-VL-based model achieves consistent improvements. + +Table 6: Performance Comparison on Different Backbones. We compare the performance of UNIFIEDREWARD-THINK trained on LLaVA-OneVision and Qwen2.5-VL. + +
UnifiedReward-ThinkGenAI-BenchVLRewardBench
ImageVideoGeneralHallu.Reason.Overall AccuracyMacro Accuracy
LLaVA-OneVision-7B72.582.378.172.766.073.872.3
Qwen2.5-VL-7B76.684.078.375.474.275.974.6
+ +Table 7: Exploring CoT Distillation from Different Models. We compare the impact of distilling CoT samples from GPT-4o versus Qwen2.5-VL. + +
MethodVLRewardGenAI-ImageGenAI-VideoVideoGen
Baseline67.570.977.279.3
Ours (distilling GPT-4o)73.872.582.380.5
Ours (distilling Qwen2.5-VL-72b)73.273.681.780.2
+ +# C Role of distilled CoT samples on cold-start stage + +In our pipeline, the cold-start CoT data serves primarily to teach the model the structure and format of CoT-style reasoning, rather than to enhance reward decision quality. The generalization and strengthening of the model's reward discrimination capability are achieved through the subsequent stages of rejection sampling and GRPO, which operate on large-scale unified multimodal vision preference data and iteratively reinforce correct reasoning trajectories. Our experimental results in Tab. 7 also show that even when using distilled CoT data from weaker models (Qwen2.5VL-72b) instead of GPT-4o for cold-start, the model can still achieve comparable performance after subsequent reinforcement through rejection sampling and GRPO. + +# D Details of our cold-start dataset: ImageGen-CoT-Reward-5K + +In this work, we distill a small set of CoT reward reasoning samples for image generation from GPT-4o [Hurst et al., 2024], which are used to cold-start our model and teach it the format and structure of CoT reasoning. Specifically, we randomly select 10K samples from HPD, EvalMuse, and OIP datasets and input them into GPT-4o for distillation. To ensure consistency between the long-chain reasoning process and final decision, we carefully designed the CoT reasoning format: the model is prompted to independently score each image along multiple evaluation dimensions, and the final judgment is made based on the aggregated scores across all dimensions. This structured approach mitigates inconsistencies between intermediate reasoning and final conclusions. An example prompt template is shown in Fig. 5. We retain only those CoT outputs whose final conclusion matches the ground truth preference label. After filtering, we obtain a total of 5K high-quality CoT reward reasoning samples for image generation, constructing our cold-start dataset: ImageGen-CoT-Reward-5K. + +# E More experimental details + +# E.1 Base model. + +This work adopts UnifiedReward [Wang et al., 2025d] as our base architecture, which unifies image/video generation and understanding reward tasks, demonstrating the mutual benefits of multi-task learning and achieving strong performance across various vision reward benchmarks. However, its reasoning is limited to direct responses or shallow thinking, lacking the capability for long and structured CoT reasoning, which may lead to lower accuracy and weaker interpretability in complex scenarios. Inspired by this work, we build upon UnifiedReward and further activate its latent long CoT reasoning capabilities across different vision reward tasks, aiming to enhance the accuracy and robustness of the reward signals. + +# E.2 Reward model baselines. + +We compare our method against a series of strong reward model baselines across both image and video domains, covering generation and understanding tasks. + +PickScore [Kirstain et al., 2023] is a text-to-image preference model that integrates CLIP-based vision-language features with a reward modeling strategy inspired by InstructGPT. It is trained on the Pick-a-Pic dataset to align image generation outputs with human preferences. + +HPSv2 [Christodoulou and Kuhlmann-Jorgensen, 2024] builds upon CLIP and is fine-tuned using the HPD_v2 [Christodoulou and Kuhlmann-Jorgensen, 2024] to predict human preferences over generated images. It demonstrates strong performance in pairwise ranking tasks and serves as a representative image generation reward baseline. + +ImageReward [Xu et al., 2023] is trained on a large-scale preference dataset containing 137k human expert comparisons through both rating and ranking. It is specifically designed to capture subtle aspects of human preferences in text-to-image generation quality. + +LLaVA-Critic [Xiong et al., 2024] extends large language models for evaluating image understanding through a critic-style framework. It is trained on high-quality instruction-following data covering diverse criteria such as accuracy, relevance, and hallucination, supporting both pointwise and pairwise evaluation. + +VisionReward [Xu et al., 2024] introduces a fine-grained, multi-dimensional evaluation framework for both image and video domains. It trains separate reward models tailored to human preferences collected through carefully curated datasets, offering strong baselines for visual content assessment. + +VideoScore [He et al., 2024] focuses on assessing video generation quality. It is trained on the VideoFeedback dataset comprising human-annotated scores over 37.6K videos, each evaluated across multiple aspects including fidelity, consistency, and alignment. + +LiFT-Critic [Wang et al., 2024] is a reward model developed under the LiFT framework, which aligns text-to-video models using human feedback. Trained on LiFT-HRA—a dataset containing over 10K human-labeled samples with both scores and rationales—it captures detailed human evaluation signals across multiple dimensions. + +VideoReward [Liu et al., 2025a] offers a multi-dimensional assessment for video generation tasks. It is trained on a large-scale 182K dataset of human-labeled comparisons collected from outputs of 12 video generation models, providing strong performance on complex video benchmarks. + +UnifiedReward Wang et al. [2025d] serves as our base architecture. It leverages multi-task learning across diverse image and video generation and understanding datasets. By unifying multimodal reward tasks into a single framework, UnifiedReward demonstrates mutual enhancement effects and establishes a solid baseline for holistic visual reward modeling. + +Our Unified Reward-Think extends UnifiedReward by integrating explicit long CoT reasoning across both visual understanding and generation tasks. Through a three-stage training pipeline—including cold start to learning CoT reward format, rejection sampling for unified CoT reward generalization fine-tuning, and GRPO for unified CoT reward reinforcement fine-tuning, the model achieves stronger accuracy and interpretability in reward assessment. It also generalizes well without explicit reasoning, leveraging implicit CoT capabilities for robust performance. + +# E.3 Evaluation benchmarks + +VLRewardBench [Li et al., 2024b] serves as a diverse benchmark for evaluating image understanding capabilities, featuring 1,250 carefully curated samples across general vision-language queries, hallucination detection, and complex reasoning. To ensure robust evaluation, response orders are randomly shuffled during testing. + +ShareGPTVideo [Zhang et al., 2024b] provides large-scale video-caption pairs and human preference data, covering various aspects of video understanding such as temporal reasoning, spatial relations, and factual grounding. We 3K for evaluation in our reward modeling experiments. + +GenAI-Bench [Jiang et al., 2024] is a multimodal generation benchmark designed to assess how well models align with human preferences across image and video generation tasks. We adopt its image and video generation subsets for evaluating generative reward performance. + +VideoGen-RewardBench [Liu et al., 2025a] offers a large-scale benchmark tailored for evaluating video reward models, consisting of $26.5\mathrm{k}$ video pairs labeled by humans. Each pair is ranked according to multiple criteria, and we use the Overall Quality scores to benchmark the performance of the model. + +# F Regarding performance on "Tau" metric + +In both GenAI-Bench and VideoGen benchmarks shown in Tab. 2, the "Tau" metric is specifically designed to evaluate model behavior in tie cases, where two images or videos are equally preferred. In this work, our approach is explicitly focused on enhancing the model's discriminative ability, that is, its capacity to distinguish between better and worse samples. While existing reward models are generally effective at identifying outputs with large quality differences, they often struggle to make fine-grained distinctions between two high-quality candidates. To address this gap, we introduce a multidimensional CoT reasoning process, aimed at improving the model's sensitivity to subtle differences in quality. As a result, we intentionally exclude tie cases from our training data, and our method is not optimized for these scenarios. This design choice is deliberate and aligns with practical objectives in vision-based reinforcement learning, where reward models are expected to make clear and decisive judgments between competing outputs in order to effectively guide policy optimization. In contrast, baseline models were specially trained on datasets that include such tie scenarios, enabling them to perform well in such situations. Although baseline models may achieve higher "Tau" scores, our method, both with and without CoT reasoning, consistently demonstrates superior performance in "Diff." metrics where a quality difference exists between the two candidates. We believe these results convincingly demonstrate the effectiveness of our proposed training approach. + +# G Prompting templates and more qualitative cases + +We provide more qualitative cases across diverse vision tasks with prompting templates in Figs. 5, 6, 7 and 8. + +# H Societal impacts + +Our work introduces a unified multimodal CoT reward model capable of high-quality, interpretable assessment across diverse multimodal tasks. This advancement can significantly enhance the alignment of generative models with human preferences in real-world applications such as AI-assisted content creation, and education. By improving both the accuracy and interpretability of reward signals, our method contributes more transparent and controllable AI behaviors, potentially increasing public trust in generative technologies. However, as reward models become more capable and general, they may also be misused to reinforce harmful biases in generation models, especially if the training data or preference annotations reflect subjective or skewed human values. We encourage future work to further examine the ethical implications of large-scale reward modeling and to include fairness-aware training strategies. + +# I Ethical statement + +In this work, we affirm our commitment to ethical research practices and responsible innovation. To the best of our knowledge, this study does not involve any data, methodologies, or applications that raise ethical concerns. All experiments and analyses were conducted in compliance with established ethical guidelines, ensuring the integrity and transparency of our research process. + +# Image Generation + +a photo of a boy eating ramen in a restaurant + +![](images/100758316228bae96ea4d769d1f434924fdaf4ae1a82686c6d7f9bbf077afd74.jpg) + +![](images/1e7d328cd148bc9676c6cf1aaf22c77c076d2793b3c3b3eef5e3d222f4211622.jpg) +Figure 5: More Qualitative Results of Image Generation CoT Reward Reasoning. Given a pair of images and the corresponding caption, our model performs quality assessment across semantic consistency, aesthetics, and authenticity through CoT reasoning. + +![](images/10a0322bfbac6a35766b5244f91d2ce7e8081ebc58353f83ffa18d97b260b049.jpg) + +![](images/2611aa9eb0ccef1f003836fa1422e17fe9c13169aaf1d30b2cb7b042fd9cdd41.jpg) + +Given a caption and two images generated based on this caption, please analyze in detail the two provided images. Evaluate them on various dimensions such as semantic consistency (how closely the image content aligns with the caption), aesthetics (composition, color usage, artistic expression), authenticity (realism and attention to detail), and any other factors you deem relevant. For each evaluation dimension, provide a score between 1-10 for both images (e.g., Image 1: 8/10, Image 2: 6/10) and provide a concise rationale for the score. Calculate the total score for each image by summing all dimension scores. Use a chain-of-thought process to detail your reasoning steps, and enclose all your detailed reasoning within and tags. Then, in the tag, output exactly one of the following strings: $\backslash$ Image 1 is better' or $\backslash$ Image 2 is better' based on the total scores. No additional text is allowed in the section. + +Example output format: + + 1. Semantic consistency: Image 1 (9/10) - ...; Image 2 (7/10) - ... + +2. Aesthetics: Image 2 (8/10) - ...; Image 1 (8/10) - ... + +3. Authenticity: Image 1 (8/10) - ...; Image 2 (5/10) - ... +[Additional dimensions if any]: Image 2 (8/10) - ...; Image 1 (6/10) - ... + +Total score: + +Image 1: $9 + 8 + 8 + 6 = 31$ + +Image 2: $7 + 8 + 5 + 8 = 28$ + + + +Image 1 is better + +Note: In the example above, scores and the final answer are placeholders meant only to demonstrate the format. Your actual evaluation should be based on the quality of two given images. + +Your task is provided as follows: + +Text Caption: {{prompt}} + +# 1. Semantic consistency: + +- Image 1 (9/10): The image shows a boy eating ramen in a restaurant setting, which aligns well with the caption. The presence of a bowl of ramen and the restaurant environment are clear. +- Image 2 (8/10): This image also depicts a boy eating ramen in a restaurant. However, the focus on the boy's face is more intense, slightly reducing the emphasis on the restaurant setting. + +# 2. Aesthetics: + +- Image 1 (8/10): The composition is balanced, with warm lighting that enhances the dining atmosphere. The focus on the boy and the ramen is clear and visually appealing. +- Image 2 (7/10): The image has a good composition, but the focus on the boy's face might distract from the overall aesthetic. The lighting is slightly harsher, affecting the ambiance. + +# 3. Authenticity: + +- Image 1 (9/10): The details in the image, such as the texture of the ramen and the restaurant background, are realistic and convincing. +- Image 2 (7/10): While the image is realistic, the focus on the boy's face and the lighting make it slightly less authentic in terms of capturing a typical restaurant dining experience. + +# Total score: + +Image 1: $9 + 8 + 9 = 26$ + +Image 2: $8 + 7 + 7 = 22$ + +
+ +Image 1 is better + +# Video Generation + +The camera remains still, a woman with long blonde hair and wearing a green blouse turns on the faucet with her hands, and water flows out from the faucet, the background is a modern kitchen, bright natural lighting. + +![](images/6af2488a85e3100db4e2f22a36483f3a03f01f1fed211c972f1a4795e5a831a5.jpg) +Figure 6: More Qualitative Results of Video Generation CoT Reward Reasoning. Given a pair of videos and the corresponding caption, our model performs quality assessment across semantic consistency, temporal coherence, and authenticity through CoT reasoning. + +![](images/7f824ef20c8bce250863b3a8bbee34c51f941e1885f0233706a5d58588fd3ff2.jpg) + +![](images/c922f1f171f7487977a5d90dd56790e3505de79c2529afed6ed3940e8cc7f7bb.jpg) + +![](images/34a8874ae675a06d9bdbb17541fed7ed911cf73739ca3485118bac1298ecc55f.jpg) + +Given a caption and two videos generated based on this caption, please analyze in detail the two provided videos. Evaluate them on various dimensions such as semantic consistency (how closely the video content aligns with the caption), temporal coherence (smoothness and logical flow of motion across frames), authenticity (realism and attention to detail), and any other factors you deem relevant. For each evaluation dimension, provide a score between 1-10 for both videos (e.g., Video 1: 8/10, Video 2: 6/10) and provide a concise rationale for the score. Calculate the total score for each video by summing all dimension scores. Use a chain-of-thought process to detail your reasoning steps, and enclose all your detailed reasoning within and tags. Then, in the tag, output exactly one of the following strings: 'Video 1 is better' or 'Video 2 is better' based on the total scores. No additional text is allowed in the section. + +Example output format: + +1. Semantic consistency: Video 1 (9/10) - ...; Video 2 (7/10) - ... + +2. Temporal coherence: Video 1 (8/10) - ...; Video 2 (6/10) - ... + +3. Authenticity: Video 1 (7/10) - ...; Video 2 (5/10) - + +[Additional dimensions if any]: Video 2 (8/10) - ...; Video 1 (6/10) - ... + +Total score: + +Video 1: $9 + 8 + 7 + 6 = 30$ + +Video 2: $7 + 6 + 5 + 8 = 26$ + +Video 1 is better + +Note: In the example above, scores and the final answer are placeholders meant only to demonstrate the format. Your actual evaluation should be based on the quality of two given videos. + +Your task is provided as follows: + +Text Caption: {{prompt}} + +# 1. Semantic consistency: + +Video 1 (5/10): The video shows a woman in a green blouse, but her hair is dark, not blonde. The faucet is turned on, but the water flow is not visible. The setting is a modern kitchen, aligning with the caption. + +- Video 2 (9/10): The video features a woman with long blonde hair and a green blouse, matching the caption. The faucet is turned on, and water flows out, consistent with the description. + +# 2. Temporal coherence: + +- Video 1 (4/10): The woman's actions are not smooth, and the faucet turning on is not clearly depicted. The scene lacks a coherent flow. + +- Video 2 (9/10): The video shows a clear, smooth action of turning on the faucet with water flowing, maintaining a logical sequence. + +# 3. Authenticity: + +- Video 1 (6/10): The setting and attire are realistic, but the lack of visible water flow reduces authenticity. +- Video 2 (9/10): The video is realistic, with natural lighting and a believable scene of water flowing from the faucet. + +# Total score: + +Video 1: $5 + 4 + 6 = 15$ + +Video 2: $9 + 9 + 9 = 27$ + +
+ +Video 2 is better + +![](images/e1b0bdef63a66343c41b021b66b9ab9298504eb9bbf700b36f5b35c36b448aa4.jpg) +Describe this image in detail. + +![](images/0523066fa2b5c688bde83ceb8fbd290db8e2069b53ec253e155d236e4b294f39.jpg) +Figure 7: More Qualitative Cases of Image Understanding CoT Reward Reasoning. Given an image, a query, and a pair of candidate answers, our model performs quality assessment across semantic accuracy, factual correctness, and clarity through CoT reasoning. + +![](images/fe6a3002275614c40551a4d0ca302e19a1305c573fa45ba2c650b52df6a3bb61.jpg) + +# Image Understanding + +Answer 1: The image features a table filled with several cakes, including a birthday cake and numerous cupcakes. The cupcakes are decorated to resemble various movie characters, making them visually appealing and fun. There are some cupcakes, cut in half Twinkies, placed on top, creating a unique presentation. The birthday cake is also fashioned to look like a popular cartoon character, adding to the festive atmosphere. In The dining table is in the center of the room, with a refrigerator visible in the background. Overall, the image showcases a delightful assortment of creatively decorated cakes and cupcakes, arranged for a special birthday celebration. + +Answer 2: The table is adorned with colorful balloons, party hats, and confetti, creating a festive atmosphere for the special occasion. Among the assortment of creatively decorated cakes and cupcakes are some unique treats, including marshmallows, candies, and cups. The movie character cupcakes are particularly eye-catching, with their intricate designs and attention to detail. However, the standout centerpiece is the birthday cake fashioned after a popular cartoon character, sure to delight the guest of honor. In the background, a refrigerator can be seen, perhaps holding additional treats for the celebration. + +![](images/bbad9a7b136c8814390f144258530060158e6a40816a2201d2592067f90abd6b.jpg) + +Given a question and a reference image, please analyze in detail the two provided answers (Answer 1 and Answer 2). + +Evaluate them based on the following three core dimensions: + +1. Semantic accuracy: How well the answer reflects the visual content of the image + +2. Correctness: Whether the answer is logically and factually correct + +3. Clarity: Whether the answer is clearly and fluently expressed + +You may also consider additional dimensions if you find them relevant (e.g., reasoning ability, attention to detail, multimodal grounding, etc.). + +For each dimension, provide a score from 1 to 10 for both answers, and briefly explain your reasoning. Then, compute the total score for each answer by explicitly adding the scores for all dimensions and showing the full calculation. Enclose your full reasoning within and tags. Then, in the tag, output exactly one of the following: 'Answer 1 is better' or 'Answer 2 is better'. No other text is allowed in the section. + +Example format + +# + +1. Semantic accuracy: Answer 1 (9/10) - ...; Answer 2 (7/10) - ... + +2. Correctness: Answer 1 (8/10) - ...; Answer 2 (7/10) - ... + +3. Clarity: Answer 1 (9/10) - ...; Answer 2 (8/10) - + +[Additional dimensions if any]: Answer 1 (6/10) - ...; Answer 2 (7/10) - ... + +Total score:\nAnswer 1: $9 + 8 + 9 + 6 = 32$ nAnswer 2: $7 + 7 + 8 + 7 = 29$ + +# + +Answer 1 is better + +Note: In the example above, scores and the final answer are placeholders meant only to demonstrate the format. Your actual evaluation should be based on the quality of two given answers. + +Your task is provided as follows: + +Question: {{Query}}\nAnswer 1: {{R1}}\nAnswer 2: {{R2}"} + +![](images/a2b452d7aa07d7ea5ae5a49fc3b984a429bcc159a41be0c745d1344857992639.jpg) + +# + +# 1. Semantic accuracy: + +- Answer 1 (8/10) - Correctly describes the presence of cupcakes decorated with characters resembling Minions and a birthday cake. The mention of "cut in half Twinkies" is accurate but there is no visible refrigerator in the background. + +- Answer 2 (6/10) - Describes a festive scene with balloons, party hats, and confetti, none of which are visible in the image. Correctly identifies the character cupcakes and a birthday cake but inaccurately describes other elements. + +# 2. Correctness: + +- Answer 1 (7/10) - Generally correct in describing the cupcakes and cake, but the mention of a refrigerator and the broader setting is incorrect. + +- Answer 2 (5/10) - Incorrectly adds elements like balloons and party hats that are not present, affecting overall correctness. + +# 3. Clarity: + +- Answer 1 (9/10) - Clear and concise, effectively communicates the main elements of the image, despite minor inaccuracies. +- Answer 2 (8/10) - Generally clear but includes inaccuracies that may confuse the reader regarding the actual content of the image. + +# Total score: + +Answer 1: $8 + 7 + 9 = 24$ + +Answer 2: $6 + 5 + 8 = 19$ + + + +Answer 1 is better + +![](images/34085c0cbf192ac683bf6b4a76dde57fe7bbe8d69ff332ff84a450eb06507821.jpg) +Figure 8: More Qualitative Cases of Video Understanding CoT Reward Reasoning. Given a video, a query, and a pair of candidate answers, our model performs quality assessment across semantic accuracy, factual correctness, and clarity through CoT reasoning. + +![](images/2f6d9993be9c5a07661c4d51ace5fcff94a05fc339395cfdd8f8be8bdfc21498.jpg) + +# Video Understanding + +Answer 1: Fireworks add a spectacular visual element to the lion dance performance. They enhance the festive atmosphere, making the event more exciting and eye - catching for the large crowd gathered. The bright bursts of fireworks also symbolize good luck and prosperity, which aligns with the cultural significance of lion dances in many celebrations. + +Answer 2: Fireworks play a multi - faceted role in the lion dance performance. Visually, they create a dazzling backdrop that heightens the drama and grandeur of the lion's movements, captivating the audience's attention. Culturally, fireworks are deeply rooted in traditions of warding off evil spirits and welcoming good fortune, just as the lion dance itself is believed to bring luck and drive away bad omens. Their combination intensifies the symbolic power of the performance, making it a more profound and memorable cultural experience for all present. This answer is more in - depth, covering both the visual and cultural aspects in greater detail and showing a better understanding of the cultural significance and the synergy between the two elements. + +![](images/ced9429fca5f3d4d8c34a3123dbe585bc5ce3cf0b69b9d71a92db6890f4f8c67.jpg) + +Given a question and a reference video, please evaluate the two provided answers (Answer 1 and Answer 2). Judge them based on the following key dimensions: + +1. Semantic accuracy: Does the answer align with the visual and temporal content in the video? +2. Correctness: Is the answer factually and logically correct? +3. Clarity: Is the answer expressed fluently, clearly, and coherently? +You are encouraged to consider any additional dimensions if relevant (e.g., temporal reasoning, causal understanding, visual detail, emotional perception, etc.). + +For each dimension, assign a score from 1 to 10 for both answers and explain briefly. Then, compute and explicitly show the total score as an addition of all dimension scores. Wrap your full reasoning in tags. In the tag, output exactly one of the following: 'Answer 1 is better' or 'Answer 2 is better'. No additional commentary is allowed in the section. + +Example format: + +< + +1. Semantic accuracy: Answer 1 (8/10) - ...; Answer 2 (9/10) - ... + +2. Correctness: Answer 1 (7/10) - ...; Answer 2 (6/10) - ... + +3. Clarity: Answer 1 (9/10) - ...; Answer 2 (8/10) - ... + +[Additional dimensions if any]: Answer 1 (7/10) - ...; Answer 2 (6/10) - ... + +Total score: \Answer 1: $8 + 7 + 9 + 7 = 31$ \Answer 2: $9 + 6 + 8 + 6 = 29$ + + + +Answer 1 is better + +Your task is provided as follows: + +Question: $\{\text{Query}\} \backslash \text{nAnswer 1: \{R1\} \backslash nAnswer 2: \{R2\} \backslash n}$ + +![](images/a728dafed09f732345c44d499763761aa127724bf5f4149a30d85b1e8cf10058.jpg) + +# Answer 2 is better \ No newline at end of file diff --git a/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/images.zip b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..dd2c09032dfffee0edd064a050a4bf59142f77ea --- /dev/null +++ b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4aad90c974fe562c309cf28af477b72347f8a488f6fcf4d0a25926224bacc295 +size 706219 diff --git a/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/layout.json b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..0686a3ec1e6849c32636793cfe7b3d542bc4d27a --- /dev/null +++ b/NeurIPS/2025/Unified Multimodal Chain-of-Thought Reward Model through Reinforcement Fine-Tuning/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02e5cbe34077a9509efd8233776198c329ce9a0340c4b66d15ece7e8b80fff80 +size 896343 diff --git a/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/a3530db0-03c8-414e-90b6-1e01d4f51e06_content_list.json b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/a3530db0-03c8-414e-90b6-1e01d4f51e06_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..41f75b96ba82a3d977ddefd26ab2c24d99fa55dc --- /dev/null +++ b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/a3530db0-03c8-414e-90b6-1e01d4f51e06_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4cd85dd6821f2343f8977f27758cf53f066b6716bb1d82a39e41e31fcac9323 +size 170613 diff --git a/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/a3530db0-03c8-414e-90b6-1e01d4f51e06_model.json b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/a3530db0-03c8-414e-90b6-1e01d4f51e06_model.json new file mode 100644 index 0000000000000000000000000000000000000000..d135d12f11b6b2b4b9a6775a992676260fc269c2 --- /dev/null +++ b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/a3530db0-03c8-414e-90b6-1e01d4f51e06_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37eb448294c096dec1edc3a4f0bcecad493fa6665b6145714dc5ab8e690703b1 +size 226838 diff --git a/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/a3530db0-03c8-414e-90b6-1e01d4f51e06_origin.pdf b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/a3530db0-03c8-414e-90b6-1e01d4f51e06_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..90c3348de4fb4a3727e89765242c4116393ee958 --- /dev/null +++ b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/a3530db0-03c8-414e-90b6-1e01d4f51e06_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cf51ea4161f57cf93205fe900bb1bbdd494d30450cb86d006d157c06c5a9c0b +size 1167769 diff --git a/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/full.md b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/full.md new file mode 100644 index 0000000000000000000000000000000000000000..5071d99e1d6e8d1010587267d713e3992f40713f --- /dev/null +++ b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/full.md @@ -0,0 +1,683 @@ +# Unified Reinforcement and Imitation Learning for Vision-Language Models + +Byung-Kwan Lee† +NVIDIA, KAIST + +byungkwanl@nvidia.com + +Ryo Hachiuma +NVIDIA + +rhachiuma@nvidia.com + +Yong Man Ro KAIST + +ymro@kaist.ac.kr + +Yu-Chiang Frank Wang + +NVIDIA, National Taiwan University + +frankwang@nvidia.com + +Yueh-Hua Wu + +NVIDIA + +krisw@nvidia.com + +# Abstract + +Vision-Language Models (VLMs) have achieved remarkable progress, yet their large scale often renders them impractical for resource-constrained environments. This paper introduces Unified Reinforcement and Imitation Learning (RIL), a novel and efficient training algorithm designed to create powerful, lightweight VLMs. RIL distinctively combines the strengths of reinforcement learning with adversarial imitation learning. This enables smaller student VLMs not only to mimic the sophisticated text generation of large teacher models but also to systematically improve their generative capabilities through reinforcement signals. Key to our imitation framework is an LLM-based discriminator that adeptly distinguishes between student and teacher outputs, complemented by guidance from multiple large teacher VLMs to ensure diverse learning. This unified learning strategy, leveraging both reinforcement and imitation, empowers student models to achieve significant performance gains, making them competitive with leading closed-source VLMs. Extensive experiments on diverse vision-language benchmarks demonstrate that RIL significantly narrows the performance gap with state-of-the-art open- and closed-source VLMs and, in several instances, surpasses them. + +![](images/d35fa69a876e598fb61eedeeba83c06ba11eba07eb013a35fe3ed3073860bfdc.jpg) +Performance Improvements $(\%)$ across Evaluation Benchmarks +Figure 1: Showing the performance improvements $(\%)$ of Qwen2.5-VL-7B [1] across vision-language evaluation benchmarks for AI2D [2], MathVista [3], MM-Vet [4], MMMU [5], BLINK [6], and the average scores for 14 evaluation benchmarks used in Table 1. Note that, we conduct RL on GRPO [7] and advanced GRPO, Dr.GRPO [8], with only answer rewards from LLM-as-a-Judge [9] (see Algorithm 1), and we present RIL based on similarity rewards from single or multi large teacher VLMs and simultaneously answer rewards (see Algorithm 2). + +![](images/7297799c593f6450fc1d8055a89fb19845f0cad44a4761bc301442d6ac0933d3.jpg) +Figure 2: Comparing RIL-applied VLMs based on multi large VLMs with diverse open- and closed-source VLMs, under average performance of numerous vision-language evaluation benchmarks: AI2D [2], ChartQA [19], MathVista [3], MMB [20], MM-Vet [4], MMMU [5], MMMU-Pro [21], MMStar [22], BLINK [6], SEED [23], SEED2+ [24], and RealWorldQA (RWQA). + +# 1 Introduction + +The pursuit of artificial general intelligence (AGI) has gained momentum, with much of the initial progress driven by instruction-tuned large language models (LLMs) [10-15]. Vision-Language Models (VLMs) [16, 1, 17, 18] represent a significant step forward, extending the LLM framework to integrate visual data and thereby achieve multimodal understanding. Their ability to generate insightful, visually-grounded textual responses that increasingly emulate human-like comprehension has made VLMs a focal point of considerable attention. Recognizing their transformative potential, numerous organizations are heavily investing to push the boundaries of what VLMs can achieve. + +Historically, the enhancements in vision-language performance have primarily relied on traditional strategies such as scaling up model sizes [15, 25, 26] and expanding visual instruction tuning datasets [27-30, 18]. More recent advancements have explored architectural modifications—for instance, directly altering model structures [31, 32] or integrating auxiliary vision [33, 27, 34] and reasoning modules [35]. Alongside these efforts, the 'think-answer' paradigm [36-42] has gained prominence following DeepSeek-R1's [7] application of reinforcement learning (RL) via GRPO [43]. However, such architectural changes and the verbose 'think' responses preceding answers can significantly increase inference latency and computational memory requirements. These challenges render many powerful VLMs impractical for resource-limited settings like smartphones and augmented reality (AR) devices. As a result, there is a growing imperative within the research community to develop VLM designs that achieve a compelling balance between strong vision-language capabilities, low inference latency, and a lightweight model footprint. + +To overcome these challenges, we introduce an approach for developing high-performing, efficient VLMs that avoids architectural modifications and the need for lengthy 'think' responses. Our method, termed Unified Reinforcement and Imitation Learning (RIL), is an efficient training algorithm integrating principles from both GRPO [43] and the GAIL framework [44]. The central objective of RIL is to enable smaller VLMs (e.g., 7B models) to effectively mimic the text generation style of significantly larger VLMs (e.g., 72B models). Prior works [45, 46] have argued that natural language response-based distillation is more effective than high-dimensional feature distillation, emphasizing the importance of utilizing the language head—referred to as the verbalization effect. Motivated by this insight, we began by leveraging the similarity in natural language responses between teacher and student models. Drawing inspiration from how models articulate responses differently, RIL employs an LLM-based discriminator trained to distinguish between the text responses generated by the student (small VLMs) and the teacher (large VLMs). This discriminator's output provides a similarity reward signal, guiding the student VLMs, which act as a generator, to produce responses increasingly akin to those of the teacher. To maintain training stability and prevent the generator or discriminator from overpowering the other, a common issue known as the balance problem [47, 48], the discriminator's architecture initially mirrors that of the generator. + +However, the practical implementation of RIL for VLMs entails several specific challenges. Firstly, relying on continuous discriminator scores (ranging from zero to one) to assess similarity to large VLM outputs can introduce ambiguity into the learning signal. To ensure a clearer and more decisive reward, and drawing inspiration from prior works that binarize answer rewards [7, 43], we convert the discriminator's similarity score into a binary value. Secondly, the discriminator, by design, focuses on stylistic similarity and does not inherently verify factual correctness against ground truth + +SYSTEM: You are a discriminator assistant. + +You are provided with Response in tag. + +Your task is to determine whether the Response was generated by teacher or student model. + +Return 0 if the Response was generated by the teacher model. + +Return 1 if the Response was generated by the student model. + +USER: {response} + +Determine the source of the Response. + +Provide your answer as one of the following: 0 (Teacher model) 1 (Student model) + +Figure 3: Input prompt for Discriminator + +answers, which could otherwise lead to performance degradation. We mitigate this by incorporating an LLM-as-a-Judge [9] to provide a separate binary reward signal based on the accuracy of the generated response. A third challenge arises during the GRPO [43] phase: if the student VLMs, due to their more limited knowledge, fail to generate any correct responses for a given task, they struggle to identify effective learning pathways. To provide clearer guidance, especially when the student VLM lacks sufficient domain-specific knowledge compared to larger models, we incorporate text responses from both student and teacher VLMs during this GRPO training step. This strategy not only stabilizes RIL training but also creates opportunities for the student VLM to potentially surpass the performance of larger teachers. + +Several key aspects of RIL contribute to its effectiveness. Notably, we observe that sourcing text responses from multiple large teacher VLMs significantly boosts student performance beyond what a single teacher can achieve, owing to the richer diversity of responses and the consequently more robust discriminator. This enriched learning environment is further enhanced during GRPO [43] step: by incorporating text responses from both student and teacher VLMs, we provide the student with clearer exemplars for reaching correct answers. RIL also demonstrates particular synergy with distillation-based VLMs; these models show marked performance improvements because their inherent feature alignment through distillation complements RIL's objectives. Beyond these learning dynamics, a crucial practical advantage of RIL is its inference efficiency: trained models do not require an explicit 'think' phase before generating answers, thereby maintaining the same inference speed as the original student VLM. + +Furthermore, RIL's reliance on LLM-as-a-Judge [9] for accuracy evaluation offers substantial advantages in applicability. Unlike methods such as DeepSeek-R1 [7] and its variants [39, 49, 41, 37], which often use conventional answer parsing for reward computation and are thus limited to domains with predefined metrics (e.g., math or image grounding), RIL transcends these limitations. For example, conventional parsing struggles with open-ended general visual questions, such as "How to cook this dish?" based on a food image, or "Summarize this movie" from its poster. In addition, the parsing poses a challenge to flexibly compare different types of answers, if a response is "The answer is twenty percent" but its ground truth is "20". The versatile evaluation power of LLM-as-a-Judge [9] enables RIL's successful application to a broad spectrum of visual question answering tasks, fostering strong performance in areas like recognition, OCR, common-sense reasoning, mathematical problem-solving, and chart/document understanding. Finally, because RIL operates purely on generated text responses, it is agnostic to the specific image embedding strategies or language tokenizers used by the student or teacher VLMs, ensuring broad compatibility. + +To validate our approach, we conduct extensive experiments across diverse vision-language benchmarks. The results compellingly demonstrate that RIL not only significantly narrows the performance gap to state-of-the-art open- and closed-source VLMs but, in several instances, surpasses them. The primary contributions of this work are: + +- Unified Reinforcement and Imitation Learning (RIL): We introduce RIL, an efficient and novel training framework for VLMs. It empowers smaller models to emulate the text generation patterns of significantly larger VLMs, leading to substantial enhancements in their overall performance. +- Broad Applicability and Flexibility: RIL exhibits wide applicability, functioning effectively with diverse VLMs irrespective of their underlying image embedding strategies or language tokenizers. Furthermore, it preserves the original inference speed by avoiding lengthy intermediate reasoning steps and capably addresses general visual question answering tasks through its integration with LLM-as-a-Judge. + +![](images/a6e7764a0d2c529bb6bd709a43a0827438ef42a9eaf175054c3809e6948de49d.jpg) +Figure 4: Input prompt for LLM-as-a-Judge [9] + +- Extensive Validation and Significant Performance Gains: Our comprehensive experimental results consistently show that RIL delivers substantial performance improvements across a variety of vision-language benchmarks. These gains position RIL-trained models as highly competitive with, and sometimes superior to, existing state-of-the-art VLMs. + +# 2 Related Works + +Evolution of Vision-Language Models (VLMs). Conventional remedies for advancing VLMs have largely centered on scaling up model sizes and expanding datasets to push performance boundaries. Consequently, promising VLMs have emerged, for example, closed-source VLMs: GPT-4o [50], Gemini [51], and Claude-3.5 Sonnet [52], and open-source VLMs: Molmo-72B [53], LLaVA-OneVision-72B [28], NVLM-72B [54], Qwen2.5-VL-72B [1], and InternVL3-78B [18] have followed this paradigm, incorporating large-scale language models such as Qwen2/Qwen2.5-72B [13]. However, the sheer size and computational demands of these models present significant barriers to deployment in resource-constrained environments such as mobile and embedded devices. To address these challenges, CoLLaVO [33] and MoAI [34] utilize computer vision models directly for visual capability, and Mini-Gemini [27], MoVA [55], and Eagle [56] employ multiple vision encoders such as CLIP [57], ConvNeXt [58], DINO-v2 [59], and SAM [60]. In parallel, Meteor [35] explores the efficient way of learning complex reasoning abilities, and TroL [31] and Phantom [32] investigate propagation modification for how we can embed vision-language knowledge as much as possible despite using the same architectures. More recently, since DeepSeek-R1 [7] introduces think-answer process and shows its dramatic performance improvements by using reinforcement learning (RL) such as GRPO [43], many variant models for VLMs has presented LMM-R1 [61], Vision-R1 [37], R1-V [42], OpenVLThinker [62], R1-OneVision [63], R1-Zero [64], and MM-Eureka [65]. They employ think-answer process to VLMs in specific areas such as math problems and object counting tasks. In addition, NoisyRollout [40] injects noise into clean images for distortion and train VLMs to strongly improve visual robustness, thereby understanding visual properties more than before. + +Imitation Learning (IL). It originates from the concept of learning expert behavior in robotics. Generative adversarial imitation learning (GAIL) [44] is a foundational framework in this domain. It employs a generator and a discriminator where the generator (e.g., small student VLMs) attempts to replicate expert behavior (e.g., large teacher VLMs) by producing outputs such as actions or trajectories (e.g., text responses) that are indistinguishable from those generated by experts. Meanwhile, the discriminator aims to distinguish between the generator and the expert. By framing imitation learning (IL) as a minimax game, GAIL [44] leverages adversarial training to align the behavior of the generator with that of the expert without explicitly defining a reward function. Instead, GAIL [44] only relies on discriminator scores to evaluate how the generator similarly produces outputs of an expert. This approach has demonstrated strong performance in complex, high-dimensional tasks by directly learning from expert data, making it a widely adopted strategy in IL [66]. Based on its effectiveness, we integrate reinforcement and imitation learning (RIL) for VLMs with four key modifications: (1) combining GRPO [43] and GAIL [44] framework with explicitly reward design, (2) making the output scores of the discriminator binary to stabilize training, (3) incorporating LLM-as-a-Judge [9] to evaluate answer rewards that assess whether the generated text responses from + +Table 1: Comparing the performances by using answer rewards from LLM-as-a-Judge [9] with purely RL on GRPO [7] and advanced GRPO [8], and by using similarity and answer rewards from RIL on GAIL [44], under numerous evaluation benchmarks: AI2D [2], ChartQA [19], MathVista [3], MMB/MMBCN [20], MM-Vet [4], MM-Vet-v2 [67], MMMU [5], MMMU-Pro [21], MMStar [22], BLINK [6], SEED [23], SEED2+ [24], and RealWorldQA (RWQA). Note that, for RIL, we set large VLMs as the largest version of same small VLMs, such as Qwen2.5-VL-7B $\leftarrow$ Qwen2.5-VL-72B and InternVL3-8B $\leftarrow$ InternVL3-78B. + +
VLMsAI2D ChartQAMathVistaMMB\(MMBC^{CN}\)MM-Vet MM-Vet-v2MMMUMMMU-ProMMStar BLINKSEED SEED2+RWQA
Qwen2.5-VL-7B83.987.367.883.583.471.863.755.038.363.956.477.070.468.5
w. RL (GRPO)84.188.869.083.883.972.863.956.240.365.258.977.470.669.4
w. RL (Dr.GRPO)84.590.069.584.384.473.564.257.241.866.360.778.070.970.3
w. RIL (Dr.GRPO + GAIL)86.795.474.586.887.277.366.161.848.271.168.580.773.074.2
Qwen2.5-VL-3B81.684.061.279.178.161.857.651.231.655.947.674.067.665.4
w. RL (GRPO)81.987.861.880.379.762.855.452.033.757.752.675.768.666.4
w. RL (Dr.GRPO)82.489.762.581.881.263.855.952.534.359.153.776.569.267.0
w. RIL (Dr.GRPO + GAIL)83.095.465.284.884.267.457.653.736.861.255.578.770.367.7
InternVL3-8B85.286.671.683.482.278.566.362.741.368.255.577.169.770.8
w. RL (GRPO)85.989.672.384.684.278.766.463.842.570.057.177.970.671.3
w. RL (Dr.GRPO)86.391.272.985.285.379.066.564.942.870.757.578.171.172.0
w. RIL (Dr.GRPO + GAIL)87.495.574.188.789.378.466.566.844.875.460.180.673.073.3
InternVL3-2B78.780.257.081.178.462.253.948.624.960.747.075.064.664.3
w. RL (GRPO)79.186.957.882.480.061.853.649.625.761.547.375.864.964.6
w. RL (Dr.GRPO)79.890.358.583.281.362.153.850.526.462.447.976.565.465.2
w. RIL (Dr.GRPO + GAIL)81.193.663.085.683.261.554.252.927.563.248.378.266.766.8
InternVL3-1B69.475.345.872.667.958.747.543.417.551.542.971.258.258.2
w. RL (GRPO)69.683.046.773.869.457.747.042.817.252.542.771.558.558.5
w. RL (Dr.GRPO)69.986.747.674.970.557.547.042.817.353.442.971.959.459.4
w. RIL (Dr.GRPO + GAIL)72.093.651.679.675.756.947.443.118.357.444.174.261.461.4
+ +student VLMs are correct, and (4) utilizing the generated text responses from teacher VLMs when GRPO [43] updates student VLMs, serving as a direct guidance to reach the correct text responses. These approach not only stabilizes RIL training but also provides a mechanism for student VLMs to potentially exceed the performance of teacher VLMs. Moreover, RIL do not require an explicit think-answer process, thereby maintaining the same inference, and it is independent of any particular image embedding methods or language tokenizers used in the student or the teacher VLMs. + +# 3 Unified Reinforcement and Imitation Learning for VLMs + +# 3.1 Core Model Components for RIL + +Our RIL framework utilizes several key model components. For the student models—which are the VLMs we aim to enhance—we employ recently released architectures such as Qwen2.5-VL (3B and 7B variants) [1] and InternVL3 (1B, 2B, and 8B variants) [18]. Starting from these pre-trained checkpoints, RIL directly updates their parameters with the goal of developing efficient, high-performing VLMs capable of rivaling leading closed-source systems like GPT-4o [50], Gemini [51], and Claude-3.5 Sonnet [52]. For the teacher models, which provide the target behavior, we select powerful large teacher VLMs recognized for their strong performance on benchmarks like VLM Leaderboard [68], specifically Qwen2.5-VL-72B [1] and InternVL3-78B [18]. The student VLMs are trained to mimic the text generation patterns and response styles of these teacher models. Central to the imitation learning aspect is a discriminator, designed to assess the similarity between student-generated responses and those from the teacher VLMs. To promote training stability and mitigate the balance problem common in adversarial setups [47, 48]—where one component might overpower the other—the discriminator's architecture and initial parameters deliberately mirror those of the student VLMs. Lastly, to evaluate the factual correctness of the generated text, we utilize an LLM-as-a-Judge [9], specifically Qwen2.5-32B [13], following the methodology of Zheng et al. [9]. This model is not trained but is used solely to determine whether the predicted response accurately reflects the meaning of the ground truth. + +The subsequent sections will first elaborate on the discriminator's architecture and pre-training (Section 3.2), followed by a detailed exposition of the RIL algorithm and its reward design (Section 3.3). + +# 3.2 Discriminator Architecture and Pre-training + +With the student (small) VLMs serving as the generator in our framework, the effective pre-training of the discriminator is crucial. This initial training phase equips the discriminator $(D_{\phi})$ with the ability to reliably differentiate between text responses originating from student VLMs versus teacher + +Table 2: Showing the effectiveness of employing multiple large VLMs more than a single VLM, under the numerous evaluation benchmarks equally used in Table 1. + +
VLMsAI2D ChartQAMathVistaMMBMMBCNMM-VetMM-Met-v2MMUMMU-ProMMStarBLINKSEEDSEED2+RWQA
Qwen2.5-VL-7B83.987.367.883.583.471.863.755.038.363.956.477.070.468.570.470.470.470.470.470.468.568.568.568.568.5
w. RIL (Qwen2.5-VL-72B)86.795.474.586.887.277.366.161.848.271.168.580.874.270.470.470.470.470.470.470.468.568.568.568.568.5
w. RIL (InternVL3-78B)86.895.574.686.787.175.866.060.947.171.168.180.872.770.470.470.470.470.470.470.468.568.568.568.568.5
w. RIL (Both)86.195.679.786.386.580.471.165.748.571.170.080.572.870.470.470.470.470.470.470.468.568.568.568.568.5
Qwen2.5-VL-3B81.684.061.279.178.161.857.651.231.655.947.674.067.666.561.255.578.770.367.665.461.268.568.568.565.4
w. RIL (Qwen2.5-VL-72B)83.095.465.284.884.267.457.653.736.861.255.578.770.367.665.255.578.770.367.665.461.268.568.565.4
w. RIL (InternVL3-78B)83.395.465.185.084.766.656.354.937.761.155.378.870.268.261.255.378.870.268.262.760.878.771.473.2
w. RIL (Both)83.995.771.785.284.574.762.860.743.765.260.878.771.468.560.878.771.468.573.273.268.568.568.573.2
InternVL3-8B85.286.671.683.482.278.566.362.741.368.255.577.169.770.468.571.469.770.870.468.568.568.568.570.8
w. RIL (Qwen2.5-VL-72B)87.595.274.388.889.877.665.967.345.775.259.180.472.970.468.571.469.770.870.468.568.568.568.572.5
w. RIL (InternVL3-78B)87.495.574.188.789.378.466.566.844.875.460.180.673.070.468.560.180.673.073.368.568.568.568.573.3
w. RIL (Both)87.395.377.888.189.680.167.668.647.874.862.780.573.870.468.560.180.673.873.768.568.568.568.573.7
InternVL3-2B78.780.257.081.178.462.253.948.624.960.747.075.064.664.360.747.075.064.664.364.364.364.364.364.3
w. RIL (Qwen2.5-VL-72B)81.193.661.985.383.062.652.852.626.663.648.878.067.166.361.248.378.067.166.361.266.361.266.366.3
w. RIL (InternVL3-78B)81.193.663.085.683.261.554.252.927.563.248.378.266.766.861.248.378.266.766.866.866.866.866.866.8
w. RIL (Both)80.794.067.484.782.270.758.456.632.363.951.577.866.869.361.257.876.866.869.369.369.369.369.369.3
InternVL3-1B69.475.345.872.667.958.747.543.417.551.542.971.258.258.252.942.971.258.258.258.258.258.258.258.2
w. RIL (Qwen2.5-VL-72B)72.293.650.979.975.856.147.343.618.058.043.674.660.761.050.944.174.261.461.461.461.461.461.461.4
w. RIL (InternVL3-78B)72.093.651.679.675.756.947.443.118.357.444.174.261.461.450.944.174.261.461.461.461.461.461.461.4
w. RIL (Both)73.094.155.579.175.962.950.749.719.060.546.974.761.963.760.546.974.761.961.961.961.961.961.961.9
+ +(large) VLMs. Without adequate pre-training, $D_{\phi}$ would yield unreliable scores, undermining its utility and potentially degrading overall model performance. To prepare for pre-training, we first collect a dataset of responses. For each given question $q$ , $N$ text responses are generated from both the student VLMs, denoted as $\{\mathbf{o}_i^{(\mathbf{s})}\}_{i=1}^N$ , and the teacher VLMs, denoted as $\{\mathbf{o}_i^{(\mathbf{t})}\}_{i=1}^N$ . Using this collection, the discriminator $D_{\phi}$ , parameterized by $\phi$ , is trained to maximize the following objective: + +$$ +\max _ {\phi} \mathcal {L} (\phi) = \frac {1}{N} \sum_ {i = 1} ^ {N} \left\{\log D _ {\phi} \left(q, o _ {i} ^ {(s)}\right) + \log \left(1 - D _ {\phi} \left(q, o _ {i} ^ {(t)}\right)\right) \right\}. \tag {1} +$$ + +According to this objective, $D_{\phi}$ learns to output a score approaching 'one value' for responses from student VLMs and 'zero value' for those from teacher VLMs. For practical implementation, given that the discriminator's backbone is language-based (mirroring the student VLMs), the generated responses $o$ are formatted using a specific prompt (detailed in Fig. 3) to ensure proper textual understanding. To elicit the scalar discrimination score, the standard language head of the VLM (typically mapping to vocabulary logits, $(\mathbb{R}^{d\times v})$ is replaced with a linear discriminator head $(\mathbb{R}^{d\times 1})$ . The input to this head is the representation of the final sequence token from the last layer of the backbone model, from which the score is directly computed with the sigmoid function. + +# 3.3 Mimicking Large Teacher VLMs with Similarity and Answer Rewards + +The RIL process commences after an initial supervised finetuning (SFT) phase for the student (small) VLMs $\pi_{\theta}$ using a comprehensive visual instruction tuning dataset (see Appendix C). This SFT stage acts as a crucial warm-up, acclimating $\pi_{\theta}$ to the target data distribution. Once the student VLMs and the pre-trained discriminator $D_{\phi}$ (from Section 3.2) are prepared, the RIL loop begins. For each question $q$ in a training batch, we generate $G$ text responses from the current student VLMs, $\{o_i^{(s)}\}_{i = 1}^G$ , and retrieve $G$ responses corresponding the question $q$ from the teacher (large) VLMs, $\{o_i^{(t)}\}_{i = 1}^G$ . We note that pre-generating and caching the responses from teacher VLMs (e.g., during the discriminator's pre-training) can significantly reduce RIL training time. In the end, this yields a combined set of $2G$ responses, $\{o_i\}_{i = 1}^{2G}$ , for each question. Within each RIL iteration, we first update the discriminator $D_{\phi}$ using Eq. (1) on these $2G$ responses. This step ensures that $D_{\phi}$ maintains its ability to distinguish between student and teacher outputs as the student VLMs evolve. Next, the student VLMs $\pi_{\phi}$ are updated using an objective derived from Dr.GRPO [8], an advanced variant of GRPO that provides unbiased advantage estimates $\{\hat{A}_i\}_{i = 1}^{2G}$ . The objective function is: + +$$ +\begin{array}{l} \max _ {\theta} \mathcal {L} (\theta) = \frac {1}{2 G} \sum_ {i = 1} ^ {2 G} \left\{\min \left[ r _ {i} (\theta) \hat {A} _ {i}, \operatorname {c l i p} (r _ {i} (\theta), 1 - \epsilon , 1 + \epsilon) \hat {A} _ {i} \right] - \beta \mathcal {D} _ {\mathrm {K L}} (\pi_ {\theta} | \pi_ {\mathrm {r e f}}) \right\}, \\ \text {w h e r e} \quad r _ {i} (\theta) = \frac {\pi_ {\theta} (o _ {i} \mid q)}{\pi_ {\theta_ {\mathrm {o l d}}} (o _ {i} \mid q)}, \quad \hat {A} _ {i} = R (q, o _ {i}) - \frac {1}{2 G} \sum_ {j = 1} ^ {2 G} R (q, o _ {j}). \\ \end{array} +$$ + +Here, $r_i(\theta)$ is the probability ratio between the current policy $\pi_{\theta}$ and the policy before the update $\pi_{\mathrm{old}}$ , $\pi_{\mathrm{ref}}$ is typically the initial SFT model, $\epsilon$ is a clipping hyperparameter, and $\beta$ controls the KL- + +Table 3: Comparing RIL-applied VLMs with standard or smaller model size open-source VLMs. + +
VLMsAI2DChartQAMathVistaMMB\( {\mathbf{{MMB}}}^{\mathbf{{CN}}} \)MM-VetMMMUMMMU-ProMMStarBLINKSEEDSEED2+RWQA
LLaVA-OneVision-7B [28]81.480.063.280.8-57.548.824.161.953.076.765.469.9
InternVL2-8B [69]83.883.358.381.781.254.249.329.061.550.975.467.364.2
MiniCPM-V2.5-8B [70]78.4-54.377.274.252.845.8-51.8-72.361.463.5
MiniCPM-V2.6-8B [70]82.1-60.6--60.049.827.257.555.274.065.765.0
MiniCPM-o2.6-8B [70]86.186.973.3--67.250.9-63.353.975.567.968.0
Ovis2-8B [71]86.6-71.8--65.157.4-64.654.377.270.472.5
Ovis2-16B [71]86.3-73.7--68.460.7-67.259.077.772.174.1
Qwen2-VL-7B [16]77.583.058.283.080.562.054.130.560.753.876.068.668.5
InternVL2.5-8B [17]84.884.864.484.682.662.856.034.363.254.876.869.770.1
Qwen2.5-VL-7B [1]83.987.367.883.583.471.855.038.363.956.477.070.468.5
InternVL3-8B [18]85.286.671.683.482.278.562.741.368.255.577.169.770.8
Qwen2.5-VL-RL-7B (Both)86.195.679.786.386.580.465.748.571.170.080.572.872.8
InternVL3-RL-8B (Both)87.395.377.888.189.680.168.647.874.862.780.573.873.7
Phi-3.5-Vision-4B [72]77.881.843.976.066.143.243.019.747.558.369.762.253.6
Phi-4-Multimodal-5.6B [73]83.081.465.886.7-51.956.038.558.942.173.268.564.1
Ovis2-4B [71]85.7-69.6--65.549.0-61.953.076.269.371.1
InternVL2-4B [69]78.981.558.678.673.951.034.332.753.946.173.263.960.7
InternVL2.5-4B [69]81.484.060.581.179.360.652.332.758.750.874.866.964.3
Qwen2.5-VL-3B [1]81.684.061.279.178.161.851.231.655.947.674.067.665.4
Qwen2.5-VL-RL-3B (Both)83.995.771.785.284.574.760.743.765.260.878.771.473.2
InternVL2-2B [69]74.176.246.373.270.939.534.318.249.843.870.960.057.3
Qwen2-VL-2B [16]60.273.543.074.973.549.541.121.247.545.272.461.262.6
Aquila-VL-2B [17]75.076.559.0--43.847.4-54.934.173.963.065.0
Ovis2-2B [71]82.7-64.1--58.345.6-56.747.974.467.466.0
InternVL2.5-2B [17]74.979.251.374.771.960.843.623.754.344.073.260.060.1
InternVL3-2B [18]78.780.257.081.178.462.248.624.960.747.075.064.664.3
InternVL3-RL-2B (Both)80.794.067.484.782.270.756.632.363.951.577.866.869.3
LLaVA-OneVision-0.5B [28]57.161.434.861.655.532.231.4-37.752.166.645.755.6
Ovis2-1B [71]76.4-59.4--50.036.1-52.144.071.761.463.9
InternVL2-1B [69]64.172.937.765.460.732.736.714.845.638.665.254.350.3
InternVL2.5-1B [17]69.375.943.270.766.348.840.918.851.342.070.459.057.5
InternVL3-1B [18]69.475.345.872.667.958.743.417.551.542.971.258.258.2
InternVL3-RL-1B (Both)73.094.155.579.175.962.949.719.060.546.974.761.963.7
+ +divergence penalty. The total reward $R(q, o_i)$ for each response $o_i$ is a crucial composite signal, comprising two binary components: + +1. Similarity Reward: This indicates if the response $o_i$ resembles those from teacher VLMs, denoted by $\mathbb{1}(D_{\phi}(q,o_i) < 0.5)$ . A discriminator score below 0.5 suggests higher similarity to teacher responses, consistent with $D_{\phi}$ being trained to output 'zero value' for teacher samples (Eq. 1). +2. Answer Reward: It assesses the factual correctness of $o_i$ against a ground truth answer $a_i$ , determined by LLM-as-a-Judge $(q, a, o_i)$ . This evaluation uses the prompt detailed in Fig. 4. + +These two rewards are summed to form the overall reward $R(q, o_i)$ . The inclusion of the answer reward is essential, as the discriminator alone primarily captures stylistic similarity and does not guarantee factual accuracy, the absence of which could lead to significant performance issues. This dual-reward strategy ensures that mimicking large teacher VLMs involves not just replicating surface-level text patterns but also encompasses the deeper 'verbalization effect' [45], which characterizes how proficient VLMs articulate correct and contextually appropriate answers. The comprehensive RIL procedure is detailed in Algorithm 2. + +# 4 Experiments + +# 4.1 Dissecting RIL + +To understand the distinct contributions of its components, we first analyze RIL by comparing it against reinforcement learning (RL) baselines that utilize only answer rewards. Specifically, we evaluate RL agents trained solely with GRPO [43] or its advanced variant, Dr.GRPO [8], without the discriminator or the associated similarity rewards. As shown in Table 1, RIL, which integrates reinforcement and imitation learning elements based on Dr.GRPO and GAIL [44], demonstrably outperforms these RL-only approaches, confirming the efficacy of our unified training algorithm. + +A key finding is the substantial benefit of employing multiple large teacher VLMs. As detailed in Table 2, using responses from a combination of large models (specifically Qwen2.5-VL-72B [1] and InternVL3-78B [18]) yields significantly better vision-language performance than relying on any single teacher. This advantage arises from the richer diversity of textual responses, which strengthens the discriminator's training. Furthermore, incorporating this diverse set of high-quality responses from teacher VLMs directly into the GRPO optimization step provides student VLMs with clearer and + +Table 4: Comparing RIL-applied VLMs with large size open-source and closed-source VLMs. + +
VLMsAI2D ChartQAMathVistaMMBMM-VetMM-Vet-v2MMMUMMMU-ProMMStarBLINKSEEDSEED2+RWQA
NVLM-72B [54]85.286.066.6-58.9-59.7-63.748.075.568.469.9
LLaVA-OV-72B [28]85.683.767.585.860.6-56.831.065.855.477.5-71.9
Molmo-72B [53]83.487.358.6-61.1-54.1-63.349.774.667.673.7
Qwen2-VL-72B [16]88.188.370.586.574.068.764.546.268.360.577.972.377.8
Qwen2.5-VL-72B [1]88.789.574.288.676.976.268.246.270.864.479.573.075.7
InternVL2-76B [69]87.688.465.586.565.768.462.740.067.456.877.669.772.2
InternVL2.5-78B [28]89.188.372.388.372.365.570.148.669.563.877.071.378.7
InternVL3-78B [18]89.789.779.089.081.370.072.247.372.566.378.771.978.0
Claude-3.5-Sonnet [52]81.290.867.782.670.171.868.351.565.160.161.771.765.8
Claude-3.7-Sonnet [52]82.5-66.8-70.0-71.0-65.156.674.367.655.4
Gemini-1.5-Pro [51]79.187.263.973.964.066.962.246.959.159.176.070.867.5
Gemini-2.0-Flash [51]83.1-70.490.073.6-69.954.469.464.0--72.3
GPT-4o (24.05.13) [74]84.685.763.883.469.171.069.151.964.768.077.172.075.4
GPT-4.1 (25.04.14) [74]85.9-70.4-78.8-74.0-69.868.578.073.178.7
Qwen2.5-VL-RIL-7B (Both)86.195.679.786.380.471.165.748.571.170.080.572.872.8
InternVL3-RIL-8B (Both)87.395.377.888.180.167.668.647.874.862.780.573.873.7
+ +![](images/b5a4d06e174faf9a3dad41b2c07e3ea9a88e161cdfb0dee7f2759bb755cdd232.jpg) +Figure 5: Illustrating training dynamics of small VLMs during RIL, where (Left) showing the evolution of similarity rewards over training iterations and (Mid) accuracy rewards obtained using LLM-as-a-Judge [9], ensuring that generated responses are both contextually appropriate and factually correct. (Right) displaying the overall average performance of evaluation benchmarks used in Table 1. + +![](images/1b73832260f89ffb723dc1d45f797fdf30045cf4c2a84834a2a79a9b7d521cd2.jpg) + +![](images/092eb7935e1f9ad00d8a578d5e8d3389ff2de785144bc8c959be18594c917f3a.jpg) + +more varied exemplars of correct answer generation. To be simplified in the manner of an algorithm, given a response 'T1' from one teacher VLM and 'T2' from another teacher VLM, and a response 'S' from the student VLM, then the discriminator is trained to output zero when 'S' is provided and one when either 'T1' or 'T2' is provided. Additionally, the rewards and their advantages for 'S', 'T1', and 'T2' are computed based on similarity and answer quality in order to train the student VLM by using RIL's objective loss. + +Beyond these component analyses, our RIL-trained student VLMs exhibit highly competitive performance against a range of recent open-source and closed-source models. Comparisons across various model sizes (detailed in Table 3 for smaller models and Table 4 for larger ones) and diverse vision-language benchmarks (illustrated in Figures 1 and 2) show that RIL not only substantially narrows the performance gap to state-of-the-art VLMs but, in several instances, surpasses them. + +Finally, the training dynamics of RIL, depicted in Figure 5, offer further insight. Over the course of training, RIL consistently increases both the similarity rewards (from the discriminator) and the answer rewards (from LLM-as-a-Judge [9]). It indicates that the student VLMs are progressively generating responses that are both more stylistically aligned with teacher models and factually correct, with these improving reward signals directly translating into significant overall performance gains. + +For a comprehensive account of the specific training procedures, hyperparameter settings, evaluation setups, and dataset details that ensure the reproducibility of these, please refer to Appendix C. Using 256 NVIDIA A100 GPUs, pre-training the discriminator on 1.2M samples (40K [number of samples] $\times$ 16 [generated responses] $\times$ 2 [for both teacher and student]) takes approximately 1 to 3 days. The SFT step on the 4M-sample SFT dataset takes around 3 to 5 days. Conducting the RIL loop for the sampled 40K data requires an additional 3 to 5 days using 8 NVIDIA A100 GPUs. + +# 4.2 Impacts of Hyperparameters, Techniques, and Distillation + +We systematically investigate the sources of RIL's effectiveness by analyzing key training hyperparameters, component design choices, and its interplay with other learning techniques. Note that, for the optimization objective of student VLMs in Eq. (2), the clipping hyperparameter $\epsilon$ is consistently set to 0.2. Our first analyses focus on core optimization settings. We examine the number of update iterations, $\mu$ , for the discriminator and student VLMs within each RIL cycle (related to Algorithm 2). + +Table 5: Analyzing the impacts of training hyperparameters, techniques for stabilization, and the effect of distillation. Note that, these tables (a)-(c) set a backbone model as Qwen2.5-VL-7B [1] and apply RIL to this model in order to validate it by controlling multiple factors. + +(a) Discriminator & small VLMs Iteration $(\mu)$ + +
μAI2DMathVistaMMBMM-VetMMMUBLINK
186.179.786.380.465.770.0
286.179.086.380.465.369.2
485.578.885.579.565.068.4
685.177.585.278.063.868.0
884.576.284.777.462.566.7
1084.375.084.577.261.965.5
1284.073.884.476.961.064.2
+ +(b) KL-divergence Penalty Coefficient $(\beta)$ + +
\( \beta \)AI2DMathVistaMMBMM-VetMMMUBLINK
0.0077.159.973.260.242.945.0
0.0186.179.786.380.465.770.0
0.0585.777.385.778.563.568.3
0.1085.274.985.276.663.065.8
0.2084.874.484.575.862.564.2
0.5084.374.084.875.961.362.0
1.0084.273.984.374.860.461.7
+ +(c) Importance of VLM Modules + +
ModuleMathVistaMMBMM-VetMMMU
Full Training79.786.380.465.7
w.o. Word-Embed75.485.575.162.2
w.o. Self-Attn73.784.375.261.3
w.o. FFN-Gate76.586.078.863.5
w.o. FFN-Up77.386.079.064.1
w.o. FFN-Down78.486.179.664.8
w.o. Layer-Norm79.786.380.465.7
w.o. Lang-Head74.985.273.962.0
+ +(d) Importance of discriminator $D_{\phi}$ + +
VLMsDφMathVistaMMBMM-VetMMMU
Qwen2.5-VL-7BX69.584.373.557.2
△75.385.575.161.2
✓79.786.380.465.7
InternVL3-8BX72.985.279.064.9
△75.386.679.566.5
✓77.888.180.168.6
+ +(e) Effect of Answer Rewards (AR) and SFT + +
VLMsARMathVistaMMBMM-VetMMMU
Qwen2.5-VL-7B✘65.282.169.953.6
\( \bigtriangleup \)65.382.570.353.8
✓79.786.380.465.7
✓w.o. SFT73.584.176.460.7
InternVL3-8B✘69.381.475.459.3
\( \bigtriangleup \)70.082.176.260.2
✓77.888.180.168.6
✓w.o. SFT75.285.379.464.9
+ +(f) Effect of Distillation + +
VLMsRILMathVistaMMBMM-VetMMMU
MiniLLM-7BX61.384.465.157.4
✓70.885.373.366.1
DistilLLM-7BX61.584.865.357.9
✓71.085.473.967.2
LLaVA-KD-7BX61.885.065.958.2
✓71.985.874.068.7
VLs1-7BX74.785.875.269.3
✓76.886.281.273.4
+ +As shown in Table 5(a), a single update iteration $(\mu = 1)$ for both is sufficient for strong performance; more iterations, especially for student VLM updates, can risk overfitting. Subsequently, we explore the impact of the KL-divergence penalty coefficient $\beta$ (Eq. 2) in Table 5(b). These results confirm that while constraining policy updates is crucial for stability, an overly restrictive penalty (large $\beta$ ) can hinder performance. + +Next, we assess decisions related to model component updates. Table 5(c) details the importance of updating different parameter groups within the student VLMs, revealing that training the self-attention layers, word embeddings, and the language head yields more significant gains than updating feed-forward networks (FFN) or layer normalization parameters. We also investigate the necessity of continuously updating the discriminator during RIL training (Table 5(d)). Interestingly, Table 5(d) shows that using a fixed (not updated: $\triangle$ ), pre-trained discriminator can outperform RL-only baselines (denoted by $X$ ), but overall RIL efficacy still critically depends on leveraging a continuously trained discriminator (denoted by $\checkmark$ ) during training RIL. + +In addition, we evaluate RIL's interaction with evaluation methodologies of the predicted answer and its synergy with other training paradigms. Table 5(e) underscores the importance of LLM-as-a-Judge [9] for answer rewards; replacing it with conventional answer parsing (denoted $\triangle$ ) significantly degrades performance, particularly on general visual questions (e.g., "How to cook this dish?" from an image) where fixed parsing rules are inadequate. This highlights the need for flexible, LLM-based evaluation. The same table also affirms that while initial SFT is beneficial for capturing the training data distribution, RIL subsequently delivers substantially larger improvements. + +On Table 5(f), we examine RIL's effectiveness on student VLMs that are already trained on distillation methods like MiniLLM [75], DistillLLM [76], LLaVA-KD [77], and VLsI [45] (on same backbones like Qwen2-VL [16] and training datasets C). As shown in Table 5(f), RIL proves particularly potent for these models compared to non-distillation counterparts, likely because prior feature alignment through distillation primes them for RIL's alignment mechanisms. + +Lastly, we demonstrate that the binary similarity reward introduced in Sec. 3.3 enables more efficient and stable training of RIL. As shown in Fig. 6, the binary reward consistently outperforms continuous and multi-level discretizations, suggesting that binary feedback provides clearer and more reliable learning signals. This improvement arises because models often struggle to interpret subtle differences in continuous rewards (e.g., why a score of 0.21 should be preferred over 0.20). + +# 4.3 Discussion and Limitation + +RIL leverages the diversity of responses generated by large VLMs, which tend to produce more varied and higher-quality answers beyond the ground truth answers used in SFT training datasets. As illustrated in Fig. 7, increasing the number of teacher-generated responses consistently improves the student model's performance, demonstrating that richer supervision from diverse teacher outputs enhances the student VLM's overall generalization ability. In summary, RIL exploits these diverse, high-quality teacher responses to guide smaller VLMs toward learning more flexible responses beyond fixed ground truth answers. + +Furthermore, RIL offers distinct advantages over traditional knowledge distillation techniques [78]. Unlike conventional distillation, which typically requires student VLMs to replicate the high- + +![](images/267815d77bf0beee47d3fe54a396f238182a1c3e89698adc861caeeff0d42ee3.jpg) +Figure 6: Comparison of RIL performance using different discretization levels of the similarity reward on four benchmarks: MathVista [3], MMB [20], MM-Vet [4], and MMMU [5]) with Qwen2.5- VL-7B [1] and InternVL3-8B [18]. + +![](images/73a965d0db0faffed0a14d34200b5ce7df0a92fc0d73f7ebec7f8b0fb07e542f.jpg) +Figure 7: Performance of RIL with varying numbers of generated responses from a teacher VLM across four benchmarks and their average. They are evaluated on Qwen2.5-VL-7B [1]. + +![](images/0e2dd88f74a6c0d34c2e5e1b1ff4540a84d3ae5a9d236c87fae0de1ffb75458e.jpg) + +![](images/951112592ad5d8819efda166d743f46bd4620a8b5de6a75efb07ec55e5c4b909.jpg) + +![](images/3ddebd27a96b1830b644d0d35d3f0aab62fc92ead8eda543b7c706b664f1d12d.jpg) + +![](images/69c6f016318f9dc3dafcc94ea0f9b204723ddc19b1dce3df62307c30b76bb3da.jpg) + +dimensional logit features of teacher models, RIL operates exclusively on generated text responses in natural language. This fundamental difference liberates RIL from restrictive feature-level constraints, such as the need for identical image embedding strategies or perfectly aligned language tokenizers (including vocabulary, index order, and sequence length) between student and teacher VLMs. Common distillation methods [75-77, 45] often rely on KL divergence—a static, non-trainable metric devoid of contextual understanding—to measure feature similarity, but RIL employs a trainable discriminator which assesses natural language responses directly, learning to discern nuanced similarities and stylistic differences between student and teacher outputs. The adaptability of the trainable discriminator in capturing contextual relationships makes RIL a particularly flexible and powerful approach for lightweight VLM and enhancement. + +While RIL demonstrates these significant strengths, its current implementation has been focused primarily on the post-instruction tuning alignment phase. A promising avenue for future research, therefore, involves extending the utility of our discriminator to the initial visual instruction tuning stage itself. We hypothesize that the discriminator's ability to learn from natural language signals and overcome conventional architectural constraints could also offer significant benefits in this earlier phase of VLM training, potentially leading to more efficient instruction following from the outset. + +# 5 Conclusion + +In this work, we have introduced Unified Reinforcement and Imitation Learning (RIL), a novel framework enabling smaller VLMs to emulate the sophisticated text-generation capabilities of substantially larger counterparts, often matching or even exceeding their performance. RIL directly addresses the pressing need for high-performing, lightweight VLMs deployable in resource-constrained settings. By leveraging a dual reward system—combining similarity scores from a discriminator with answer accuracy assessments from an LLM-as-a-Judge—RIL effectively guides student VLMs towards superior alignment and overall efficacy. Key findings from our research include the significant performance boost achieved by using multiple large teacher VLMs, which provides a richer diversity of training signals, and the notable success of RIL in enhancing distillation-based VLMs. Comprehensive experiments across a wide array of vision-language benchmarks confirm that RIL substantially narrows, and in several cases surpasses, the performance gap to state-of-the-art open-and closed-source VLMs. + +# References + +[1] S. Bai, K. Chen, X. Liu, J. Wang, W. Ge, S. Song, K. Dang, P. Wang, S. Wang, J. Tang, et al., "Qwen2. 5-vl technical report," arXiv preprint arXiv:2502.13923, 2025. +[2] A. Kembhavi, M. Salvato, E. Kolve, M. Seo, H. Hajishirzi, and A. Farhadi, "A diagram is worth a dozen images," in Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part IV 14, pp. 235-251, Springer, 2016. +[3] P. Lu, H. Bansal, T. Xia, J. Liu, C. Li, H. Hajishirzi, H. Cheng, K.-W. Chang, M. Galley, and J. Gao, "Mathvista: Evaluating mathematical reasoning of foundation models in visual contexts," arXiv preprint arXiv:2310.02255, 2023. +[4] W. Yu, Z. Yang, L. Li, J. Wang, K. Lin, Z. Liu, X. Wang, and L. Wang, "Mm-vet: Evaluating large multimodal models for integrated capabilities," arXiv preprint arXiv:2308.02490, 2023. +[5] X. Yue, Y. Ni, K. Zhang, T. Zheng, R. Liu, G. Zhang, S. Stevens, D. Jiang, W. Ren, Y. Sun, et al., "Mmmu: A massive multi-discipline multimodal understanding and reasoning benchmark for expert agi," arXiv preprint arXiv:2311.16502, 2023. +[6] X. Fu, Y. Hu, B. Li, Y. Feng, H. Wang, X. Lin, D. Roth, N. A. Smith, W.-C. Ma, and R. Krishna, "Blink: Multimodal large language models can see but not perceive," arXiv preprint arXiv:2404.12390, 2024. +[7] D. Guo, D. Yang, H. Zhang, J. Song, R. Zhang, R. Xu, Q. Zhu, S. Ma, P. Wang, X. Bi, et al., "Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning," arXiv preprint arXiv:2501.12948, 2025. +[8] Z. Liu, C. Chen, W. Li, P. Qi, T. Pang, C. Du, W. S. Lee, and M. Lin, "Understanding r1-zero-like training: A critical perspective," arXiv preprint arXiv:2503.20783, 2025. +[9] L. Zheng, W.-L. Chiang, Y. Sheng, S. Zhuang, Z. Wu, Y. Zhuang, Z. Lin, Z. Li, D. Li, E. Xing, et al., “Judging llm-as-a-judge with mt-bench and chatbot arena,” Advances in Neural Information Processing Systems, vol. 36, pp. 46595–46623, 2023. +[10] H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar, et al., "Llama: Open and efficient foundation language models," arXiv preprint arXiv:2302.13971, 2023. +[11] A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle, A. Letman, A. Mathur, A. Schelten, A. Yang, A. Fan, et al., "The llama 3 herd of models," arXiv preprint arXiv:2407.21783, 2024. +[12] A. Yang, B. Yang, B. Hui, B. Zheng, B. Yu, C. Zhou, C. Li, C. Li, D. Liu, F. Huang, G. Dong, H. Wei, H. Lin, J. Tang, J. Wang, J. Yang, J. Tu, J. Zhang, J. Ma, J. Yang, J. Xu, J. Zhou, J. Bai, J. He, J. Lin, K. Dang, K. Lu, K. Chen, K. Yang, M. Li, M. Xue, N. Ni, P. Zhang, P. Wang, R. Peng, R. Men, R. Gao, R. Lin, S. Wang, S. Bai, S. Tan, T. Zhu, T. Li, T. Liu, W. Ge, X. Deng, X. Zhou, X. Ren, X. Zhang, X. Wei, X. Ren, X. Liu, Y. Fan, Y. Yao, Y. Zhang, Y. Wan, Y. Chu, Y. Liu, Z. Cui, Z. Zhang, Z. Guo, and Z. Fan, “Qwen2 technical report,” 2024. +[13] A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, et al., “Qwen2.5 technical report,” arXiv preprint arXiv:2412.15115, 2024. +[14] J. Wei, M. Bosma, V. Zhao, K. Guu, A. W. Yu, B. Lester, N. Du, A. M. Dai, and Q. V. Le, "Finetuned language models are zero-shot learners," in International Conference on Learning Representations, 2022. +[15] H. W. Chung, L. Hou, S. Longpre, B. Zoph, Y. Tay, W. Fedus, Y. Li, X. Wang, M. Dehghani, S. Brahma, et al., "Scaling instruction-finetuned language models," arXiv preprint arXiv:2210.11416, 2022. +[16] P. Wang, S. Bai, S. Tan, S. Wang, Z. Fan, J. Bai, K. Chen, X. Liu, J. Wang, W. Ge, Y. Fan, K. Dang, M. Du, X. Ren, R. Men, D. Liu, C. Zhou, J. Zhou, and J. Lin, “Qwen2-v1: Enhancing vision-language model's perception of the world at any resolution,” 2024. + +[17] Z. Chen, W. Wang, Y. Cao, Y. Liu, Z. Gao, E. Cui, J. Zhu, S. Ye, H. Tian, Z. Liu, et al., "Expanding performance boundaries of open-source multimodal models with model, data, and test-time scaling," arXiv preprint arXiv:2412.05271, 2024. +[18] J. Zhu, W. Wang, Z. Chen, Z. Liu, S. Ye, L. Gu, Y. Duan, H. Tian, W. Su, J. Shao, et al., "Internv13: Exploring advanced training and test-time recipes for open-source multimodal models," arXiv preprint arXiv:2504.10479, 2025. +[19] A. Masry, D. X. Long, J. Q. Tan, S. Joty, and E. Hoque, “Chartqa: A benchmark for question answering about charts with visual and logical reasoning,” arXiv preprint arXiv:2203.10244, 2022. +[20] Y. Liu, H. Duan, Y. Zhang, B. Li, S. Zhang, W. Zhao, Y. Yuan, J. Wang, C. He, Z. Liu, et al., "Mmbench: Is your multi-modal model an all-around player?", arXiv preprint arXiv:2307.06281, 2023. +[21] X. Yue, T. Zheng, Y. Ni, Y. Wang, K. Zhang, S. Tong, Y. Sun, B. Yu, G. Zhang, H. Sun, et al., "Mmmu-pro: A more robust multi-discipline multimodal understanding benchmark," arXiv preprint arXiv:2409.02813, 2024. +[22] L. Chen, J. Li, X. Dong, P. Zhang, Y. Zang, Z. Chen, H. Duan, J. Wang, Y. Qiao, D. Lin, et al., “Are we on the right way for evaluating large vision-language models?” arXiv preprint arXiv:2403.20330, 2024. +[23] B. Li, R. Wang, G. Wang, Y. Ge, Y. Ge, and Y. Shan, "Seed-bench: Benchmarking multimodal llms with generative comprehension," arXiv preprint arXiv:2307.16125, 2023. +[24] B. Li, Y. Ge, Y. Chen, Y. Ge, R. Zhang, and Y. Shan, "Seed-bench-2-plus: Benchmarking multimodal large language models with text-rich visual comprehension," arXiv preprint arXiv:2404.16790, 2024. +[25] J. Kaplan, S. McCandlish, T. Henighan, T. B. Brown, B. Chess, R. Child, S. Gray, A. Radford, J. Wu, and D. Amodei, "Scaling laws for neural language models," arXiv preprint arXiv:2001.08361, 2020. +[26] A. Chowdhery, S. Narang, J. Devlin, M. Bosma, G. Mishra, A. Roberts, P. Barham, H. W. Chung, C. Sutton, S. Gehrmann, et al., “Palm: Scaling language modeling with pathways,” Journal of Machine Learning Research, vol. 24, no. 240, pp. 1–113, 2023. +[27] Y. Li, Y. Zhang, C. Wang, Z. Zhong, Y. Chen, R. Chu, S. Liu, and J. Jia, "Mini-gemini: Mining the potential of multi-modality vision language models," arXiv preprint arXiv:2403.18814, 2024. +[28] B. Li, Y. Zhang, D. Guo, R. Zhang, F. Li, H. Zhang, K. Zhang, Y. Li, Z. Liu, and C. Li, "Llava-onevision: Easy visual task transfer," arXiv preprint arXiv:2408.03326, 2024. +[29] X. Yue, T. Zheng, G. Zhang, and W. Chen, “Mammoth2: Scaling instructions from the web,” 2024. +[30] S. Gu, J. Zhang, S. Zhou, K. Yu, Z. Xing, L. Wang, Z. Cao, J. Jia, Z. Zhang, Y. Wang, et al., "Infinity-mm: Scaling multimodal performance with large-scale and high-quality instruction data," arXiv preprint arXiv:2410.18558, 2024. +[31] B.-K. Lee, S. Chung, C. W. Kim, B. Park, and Y. M. Ro, "Trol: Traversal of layers for large language and vision models," arXiv preprint arXiv:2406.12246, 2024. +[32] B.-K. Lee, S. Chung, C. W. Kim, B. Park, and Y. M. Ro, "Phantom of latent for large language and vision models," arXiv preprint arXiv:2409.14713, 2024. +[33] B.-K. Lee, B. Park, C. W. Kim, and Y. M. Ro, "Collavo: Crayon large language and vision model," arXiv preprint arXiv:2402.11248, 2024. +[34] B.-K. Lee, B. Park, C. W. Kim, and Y. M. Ro, "Moai: Mixture of all intelligence for large language and vision models," arXiv preprint arXiv:2403.07508, 2024. + +[35] B.-K. Lee, C. W. Kim, B. Park, and Y. M. Ro, “Meteor: Mamba-based traversal of rationale for large language and vision models,” arXiv preprint arXiv:2405.15574, 2024. +[36] Q. Yu, Z. Zhang, R. Zhu, Y. Yuan, X. Zuo, Y. Yue, T. Fan, G. Liu, L. Liu, X. Liu, et al., "Dapo: An open-source llm reinforcement learning system at scale," arXiv preprint arXiv:2503.14476, 2025. +[37] W. Huang, B. Jia, Z. Zhai, S. Cao, Z. Ye, F. Zhao, Z. Xu, Y. Hu, and S. Lin, “Vision-r1: Incentivizing reasoning capability in multimodal large language models,” arXiv preprint arXiv:2503.06749, 2025. +[38] Z. Lu, Y. Chai, Y. Guo, X. Yin, L. Liu, H. Wang, G. Xiong, and H. Li, "Ui-r1: Enhancing action prediction of gui agents by reinforcement learning," arXiv preprint arXiv:2503.21620, 2025. +[39] E. Yu, K. Lin, L. Zhao, J. Yin, Y. Wei, Y. Peng, H. Wei, J. Sun, C. Han, Z. Ge, et al., "Perception-r1: Pioneering perception policy with reinforcement learning," arXiv preprint arXiv:2504.07954, 2025. +[40] X. Liu, J. Ni, Z. Wu, C. Du, L. Dou, H. Wang, T. Pang, and M. Q. Shieh, "Noisyrollout: Reinforcing visual reasoning with data augmentation," arXiv preprint arXiv:2504.13055, 2025. +[41] H. Shen, P. Liu, J. Li, C. Fang, Y. Ma, J. Liao, Q. Shen, Z. Zhang, K. Zhao, Q. Zhang, et al., "Vlm-r1: A stable and generalizable r1-style large vision-language model," arXiv preprint arXiv:2504.07615, 2025. +[42] L. Chen, L. Li, H. Zhao, Y. Song, and Vinci, “R1-v: Reinforcing super generalization ability in vision-language models with less than $3.” https://github.com/Deep-Agent/R1-V, 2025. Accessed: 2025-02-02. +[43] Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. Li, Y. Wu, et al., "Deepseekmath: Pushing the limits of mathematical reasoning in open language models," arXiv preprint arXiv:2402.03300, 2024. +[44] J. Ho and S. Ermon, "Generative adversarial imitation learning," Advances in neural information processing systems, vol. 29, 2016. +[45] B.-K. Lee, R. Hachiuma, Y.-C. F. Wang, Y. M. Ro, and Y.-H. Wu, "Vlsi: Verbalized layers-to-interactions from large to small vision language models," arXiv preprint arXiv:2412.01822, 2024. +[46] Y. Li, F. Wei, C. Zhang, and H. Zhang, "Eagle: Speculative sampling requires rethinking feature uncertainty," arXiv preprint arXiv:2401.15077, 2024. +[47] T. Salimans, I. Goodfellow, W. Zaremba, V. Cheung, A. Radford, and X. Chen, "Improved techniques for training gans," Advances in neural information processing systems, vol. 29, 2016. +[48] M. Heusel, H. Ramsauer, T. Unterthiner, B. Nessler, and S. Hochreiter, "Gans trained by a two time-scale update rule converge to a local nash equilibrium," Advances in neural information processing systems, vol. 30, 2017. +[49] Z. Liu, Z. Sun, Y. Zang, X. Dong, Y. Cao, H. Duan, D. Lin, and J. Wang, “Visual-rft: Visual reinforcement fine-tuning,” arXiv preprint arXiv:2503.01785, 2025. +[50] A. Hurst, A. Lerer, A. P. Goucher, A. Perelman, A. Ramesh, A. Clark, A. Ostrow, A. Welihinda, A. Hayes, A. Radford, et al., “Gpt-4o system card,” arXiv preprint arXiv:2410.21276, 2024. +[51] G. Team, R. Anil, S. Borgeaud, Y. Wu, J.-B. Alayrac, J. Yu, R. Soricut, J. Schalkwyk, A. M. Dai, A. Hauth, et al., "Gemini: a family of highly capable multimodal models," arXiv preprint arXiv:2312.11805, 2023. +[52] Anthropic, "The claude 3 model family: Opus, sonnet, haiku." https://www.anthropic.com, 2024. + +[53] M. Deitke, C. Clark, S. Lee, R. Tripathi, Y. Yang, J. S. Park, M. Salehi, N. Muennighoff, K. Lo, L. Soldaini, et al., “Molmo and pixmo: Open weights and open data for state-of-the-art multimodal models,” arXiv preprint arXiv:2409.17146, 2024. +[54] W. Dai, N. Lee, B. Wang, Z. Yang, Z. Liu, J. Barker, T. Rintamaki, M. Shoeybi, B. Catanzaro, and W. Ping, "Nvlm: Open frontier-class multimodal llms," arXiv preprint, 2024. +[55] Z. Zong, B. Ma, D. Shen, G. Song, H. Shao, D. Jiang, H. Li, and Y. Liu, "Mova: Adapting mixture of vision experts to multimodal context," arXiv preprint arXiv:2404.13046, 2024. +[56] M. Shi, F. Liu, S. Wang, S. Liao, S. Radhakrishnan, D.-A. Huang, H. Yin, K. Sapra, Y. Yacoob, H. Shi, et al., “Eagle: Exploring the design space for multimodal llms with mixture of encoders,” arXiv preprint arXiv:2408.15998, 2024. +[57] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, G. Krueger, and I. Sutskever, “Learning transferable visual models from natural language supervision,” in Proceedings of the 38th International Conference on Machine Learning (M. Meila and T. Zhang, eds.), vol. 139 of Proceedings of Machine Learning Research, pp. 8748–8763, PMLR, 18–24 Jul 2021. +[58] S. Woo, S. Debnath, R. Hu, X. Chen, Z. Liu, I. S. Kweon, and S. Xie, “Convnext v2: Codeigning and scaling convnets with masked autoencoders,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16133–16142, 2023. +[59] M. Oquab, T. Darcet, T. Moutakanni, H. Vo, M. Szafraniec, V. Khalidov, P. Fernandez, D. Haziza, F. Massa, A. El-Nouby, et al., "Dinov2: Learning robust visual features without supervision," arXiv preprint arXiv:2304.07193, 2023. +[60] A. Kirillov, E. Mintun, N. Ravi, H. Mao, C. Rolland, L. Gustafson, T. Xiao, S. Whitehead, A. C. Berg, W.-Y. Lo, et al., "Segment anything," in Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4015-4026, 2023. +[61] Y. Peng, G. Zhang, M. Zhang, Z. You, J. Liu, Q. Zhu, K. Yang, X. Xu, X. Geng, and X. Yang, "Lmm-r1: Empowering 3b lms with strong reasoning abilities through two-stage rule-based rl," arXiv preprint arXiv:2503.07536, 2025. +[62] Y. Deng, H. Bansal, F. Yin, N. Peng, W. Wang, and K.-W. Chang, "Openvthinker: An early exploration to complex vision-language reasoning via iterative self-improvement," arXiv preprint arXiv:2503.17352, 2025. +[63] Y. Yang, X. He, H. Pan, X. Jiang, Y. Deng, X. Yang, H. Lu, D. Yin, F. Rao, M. Zhu, et al., “R1-onevision: Advancing generalized multimodal reasoning through cross-modal formalization,” arXiv preprint arXiv:2503.10615, 2025. +[64] H. Zhou, X. Li, R. Wang, M. Cheng, T. Zhou, and C.-J. Hsieh, "R1-zero's" aha moment" in visual reasoning on a 2b non-sft model," arXiv preprint arXiv:2503.05132, 2025. +[65] F. Meng, L. Du, Z. Liu, Z. Zhou, Q. Lu, D. Fu, T. Han, B. Shi, W. Wang, J. He, et al., "Mm-eureka: Exploring the frontiers of multimodal reasoning with rule-based reinforcement learning," arXiv preprint arXiv:2503.07365, 2025. +[66] A. Hussein, M. M. Gaber, E. Elyan, and C. Jayne, "Imitation learning: A survey of learning methods," ACM Computing Surveys (CSUR), vol. 50, no. 2, pp. 1-35, 2017. +[67] W. Yu, Z. Yang, L. Ren, L. Li, J. Wang, K. Lin, C.-C. Lin, Z. Liu, L. Wang, and X. Wang, "Mm-vet v2: A challenging benchmark to evaluate large multimodal models for integrated capabilities," arXiv preprint arXiv:2408.00765, 2024. +[68] O. Contributors, "Opencompass: A universal evaluation platform for foundation models." https://github.com/open-compass/opencompass, 2023. +[69] Z. Chen, J. Wu, W. Wang, W. Su, G. Chen, S. Xing, Z. Muyan, Q. Zhang, X. Zhu, L. Lu, et al., "Internvl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks," arXiv preprint arXiv:2312.14238, 2023. + +[70] Y. Yao, T. Yu, A. Zhang, C. Wang, J. Cui, H. Zhu, T. Cai, H. Li, W. Zhao, Z. He, et al., "Minicpm-v: A gpt-4v level mllm on your phone," arXiv preprint arXiv:2408.01800, 2024. +[71] S. Lu, Y. Li, Q.-G. Chen, Z. Xu, W. Luo, K. Zhang, and H.-J. Ye, “Ovis: Structural embedding alignment for multimodal large language model,” arXiv:2405.20797, 2024. +[72] M. Abdin, S. A. Jacobs, A. A. Awan, J. Aneja, A. Awadallah, H. Awadalla, N. Bach, A. Bahree, A. Bakhtiari, H. Behl, et al., "Phi-3 technical report: A highly capable language model locally on your phone," arXiv preprint arXiv:2404.14219, 2024. +[73] A. Abouelenin, A. Ashfaq, A. Atkinson, H. Awadalla, N. Bach, J. Bao, A. Benhaim, M. Cai, V. Chaudhary, C. Chen, et al., "Phi-4-mini technical report: Compact yet powerful multimodal language models via mixture-of-loras," arXiv preprint arXiv:2503.01743, 2025. +[74] OpenAI, “Gpt-4v(ision) system card,” 2023. https://openai.com/research/gpt-4v-system-card, Last accessed on 2024-02-13. +[75] Y. Gu, L. Dong, F. Wei, and M. Huang, "Minillm: Knowledge distillation of large language models," in The Twelfth International Conference on Learning Representations, 2024. +[76] J. Ko, S. Kim, T. Chen, and S.-Y. Yun, "Distillm: Towards streamlined distillation for large language models," arXiv preprint arXiv:2402.03898, 2024. +[77] Y. Cai, J. Zhang, H. He, X. He, A. Tong, Z. Gan, C. Wang, and X. Bai, "Llava-kd: A framework of distilling multimodal large language models," arXiv preprint arXiv:2410.16236, 2024. +[78] G. Hinton, O. Vinyals, and J. Dean, "Distilling the knowledge in a neural network," arXiv preprint arXiv:1503.02531, 2015. +[79] W. Kwon, Z. Li, S. Zhuang, Y. Sheng, L. Zheng, C. H. Yu, J. Gonzalez, H. Zhang, and I. Stoica, "Efficient memory management for large language model serving with pagedattention," in Proceedings of the 29th Symposium on Operating Systems Principles, pp. 611-626, 2023. +[80] S. Rajbhandari, J. Rasley, O. Ruwase, and Y. He, “Zero: Memory optimizations toward training trillion parameter models,” in SC20: International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1–16, IEEE, 2020. +[81] I. Loshchilov and F. Hutter, "Decoupled weight decay regularization," in International Conference on Learning Representations, 2019. +[82] Z. Liu, L. Zhu, B. Shi, Z. Zhang, Y. Lou, S. Yang, H. Xi, S. Cao, Y. Gu, D. Li, et al., "Nvila: Efficient frontier visual language models," arXiv preprint arXiv:2412.04468, 2024. +[83] S. Singh, A. Yadav, J. Jain, H. Shi, J. Johnson, and K. Desai, “Benchmarking object detectors with coco: A new path forward,” in European Conference on Computer Vision, pp. 279–295, Springer, 2024. +[84] G. Van Horn, O. Mac Aodha, Y. Song, Y. Cui, C. Sun, A. Shepard, H. Adam, P. Perona, and S. Belongie, “The inaturalist species classification and detection dataset,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8769–8778, 2018. +[85] Y. Goyal, T. Khot, D. Summers-Stay, D. Batra, and D. Parikh, "Making the V in VQA matter: Elevating the role of image understanding in Visual Question Answering," in Conference on Computer Vision and Pattern Recognition (CVPR), 2017. +[86] Z. Li, X. Wang, E. Stengel-Eskin, A. Kortylewski, W. Ma, B. Van Durme, and A. L. Yuille, "Super-clevr: A virtual benchmark to diagnose domain robustness in visual reasoning," in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 14963-14973, 2023. +[87] R. Zhang, X. Wei, D. Jiang, Y. Zhang, Z. Guo, C. Tong, J. Liu, A. Zhou, B. Wei, S. Zhang, et al., “Mavis: Mathematical visual instruction tuning,” arXiv e-prints, pp. arXiv-2407, 2024. + +[88] P. Lu, R. Gong, S. Jiang, L. Qiu, S. Huang, X. Liang, and S.-C. Zhu, "Inter-gps: Interpretable geometry problem solving with formal language and symbolic reasoning," in The 59th Annual Meeting of the Association for Computational Linguistics (ACL), 2021. +[89] P. Lu, S. Mishra, T. Xia, L. Qiu, K.-W. Chang, S.-C. Zhu, O. Tafjord, P. Clark, and A. Kalyan, “Learn to explain: Multimodal reasoning via thought chains for science question answering,” Advances in Neural Information Processing Systems, vol. 35, pp. 2507–2521, 2022. +[90] Y. Zhang, R. Zhang, J. Gu, Y. Zhou, N. Lipka, D. Yang, and T. Sun, “Llavar: Enhanced visual instruction tuning for text-rich image understanding,” arXiv preprint arXiv:2306.17107, 2023. +[91] F. Liu, G. Emerson, and N. Collier, “Visual spatial reasoning,” Transactions of the Association for Computational Linguistics, vol. 11, pp. 635–651, 2023. +[92] M. Acharya, K. Kafle, and C. Kanan, “Tallyqa: Answering complex counting questions,” in Proceedings of the AAAI conference on artificial intelligence, vol. 33, pp. 8076–8084, 2019. +[93] P. Lu, L. Qiu, K.-W. Chang, Y. N. Wu, S.-C. Zhu, T. Rajpurohit, P. Clark, and A. Kalyan, "Dynamic prompt learning via policy gradient for semi-structured mathematical reasoning," arXiv preprint arXiv:2209.14610, 2022. +[94] V. Hosu, H. Lin, T. Sziranyi, and D. Saupe, “Koniq-10k: An ecologically valid database for deep learning of blind image quality assessment,” IEEE Transactions on Image Processing, vol. 29, pp. 4041–4056, 2020. +[95] W. Wang, Z. Chen, W. Wang, Y. Cao, Y. Liu, Z. Gao, J. Zhu, X. Zhu, L. Lu, Y. Qiao, et al., “Enhancing the reasoning ability of multimodal large language models via mixed preference optimization,” arXiv preprint arXiv:2411.10442, 2024. +[96] T. Yu, H. Zhang, Y. Yao, Y. Dang, D. Chen, X. Lu, G. Cui, T. He, Z. Liu, T.-S. Chua, et al., "Rlaif-v: Aligning mllms through open-source ai feedback for super gpt-4v trustworthiness," arXiv preprint arXiv:2405.17220, 2024. +[97] A. D. Lindström and S. S. Abraham, “Clevr-math: A dataset for compositional language, visual and mathematical reasoning,” arXiv preprint arXiv:2208.05358, 2022. +[98] Z. Huang, K. Chen, J. He, X. Bai, D. Karatzas, S. Lu, and C. Jawahar, "Icdar2019 competition on scanned receiptOCR and information extraction," in 2019 International Conference on Document Analysis and Recognition (ICDAR), pp. 1516-1520, IEEE, 2019. +[99] M. Mathew, D. Karatzas, and C. Jawahar, "Docvqa: A dataset for vqa on document images," in Proceedings of the IEEE/CVF winter conference on applications of computer vision, pp. 2200-2209, 2021. +[100] S. E. Kahou, V. Michalski, A. Atkinson, Á. Kádár, A. Trischler, and Y. Bengio, “Figureqa: An annotated figure dataset for visual reasoning,” arXiv preprint arXiv:1710.07300, 2017. +[101] D. A. Hudson and C. D. Manning, “Gqa: A new dataset for real-world visual reasoning and compositional question answering,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 6700–6709, 2019. +[102] M. Mathew, V. Bagal, R. Tito, D. Karatzas, E. Valveny, and C. Jawahar, “Infographicvqa,” in Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 1697–1706, 2022. +[103] Q. Chen, L. Qin, J. Zhang, Z. Chen, X. Xu, and W. Che, “ $\mathbf{M}^3$ cot: A novel benchmark for multi-domain multi-step multi-modal chain-of-thought,” in Proc. of ACL, 2024. +[104] S. Chang, D. Palzer, J. Li, E. Fosler-Lussier, and N. Xiao, "Mapqa: A dataset for question answering on choropleth maps," arXiv preprint arXiv:2211.08545, 2022. +[105] K. Marino, M. Rastegari, A. Farhadi, and R. Mottaghi, “Ok-vqa: A visual question answering benchmark requiring external knowledge,” in Proceedings of the IEEE/cvf conference on computer vision and pattern recognition, pp. 3195–3204, 2019. + +[106] A. Singh, V. Natarajan, M. Shah, Y. Jiang, X. Chen, D. Batra, D. Parikh, and M. Rohrbach, "Towards vqa models that can read," in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 8317-8326, 2019. +[107] Y. Lu, D. Jiang, W. Chen, W. Y. Wang, Y. Choi, and B. Y. Lin, "Wildvision: Evaluating vision-language models in the wild with human preferences," arXiv preprint arXiv:2406.11069, 2024. +[108] K. Kafle, B. Price, S. Cohen, and C. Kanan, “Dvqa: Understanding data visualizations via question answering,” in Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 5648–5656, 2018. +[109] J. Cao and J. Xiao, "An augmented benchmark dataset for geometric question answering through dual parallel text encoding," in Proceedings of the 29th international conference on computational linguistics, pp. 1511-1520, 2022. +[110] M. Seo, H. Hajishirzi, A. Farhadi, O. Etzioni, and C. Malcolm, "Solving geometry problems: Combining text and diagram interpretation," in Proceedings of the 2015 conference on empirical methods in natural language processing, pp. 1466-1476, 2015. +[111] P. Lu, L. Qiu, J. Chen, T. Xia, Y. Zhao, W. Zhang, Z. Yu, X. Liang, and S.-C. Zhu, “Iconqa: A new benchmark for abstract diagram understanding and visual language reasoning,” arXiv preprint arXiv:2110.13214, 2021. +[112] J. Chen, T. Li, J. Qin, P. Lu, L. Lin, C. Chen, and X. Liang, “Unigeo: Unifying geometry logical reasoning via reformulating mathematical expression,” arXiv preprint arXiv:2212.02746, 2022. +[113] M. Kazemi, H. Alvari, A. Anand, J. Wu, X. Chen, and R. Soricut, "Geomverse: A systematic evaluation of large models for geometric reasoning," arXiv preprint arXiv:2312.12241, 2023. +[114] J. Gao, R. Pi, J. Zhang, J. Ye, W. Zhong, Y. Wang, L. Hong, J. Han, H. Xu, Z. Li, et al., "G-llava: Solving geometric problem with multi-modal large language model," arXiv preprint arXiv:2312.11370, 2023. +[115] W. Shi, Z. Hu, Y. Bin, J. Liu, Y. Yang, S.-K. Ng, L. Bing, and R. K.-W. Lee, “Math-llava: Bootstrapping mathematical reasoning for multimodal large language models,” arXiv preprint arXiv:2406.17294, 2024. +[116] e. a. Yunxin Li, "Cognitive visual-language mapper: Advancing multimodal comprehension with enhanced visual knowledge alignment," Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics, 2024. +[117] Y. Chen, H. Hu, Y. Luan, H. Sun, S. Changpinyo, A. Ritter, and M.-W. Chang, "Can pre-trained vision and language models answer visual information-seeking questions?", arXiv preprint arXiv:2302.11713, 2023. +[118] X. Huang, Y.-J. Huang, Y. Zhang, W. Tian, R. Feng, Y. Zhang, Y. Xie, Y. Li, and L. Zhang, "Open-set image tagging with multi-grained text supervision," arXiv preprint arXiv:2310.15200, 2023. +[119] B.-K. Lee, J. Kim, and Y. M. Ro, “Masking adversarial damage: Finding adversarial saliency for robust and sparse network,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15126–15136, 2022. +[120] J. Kim, B.-K. Lee, and Y. M. Ro, "Distilling robust and non-robust features in adversarial examples by information bottleneck," Advances in Neural Information Processing Systems, vol. 34, pp. 17148-17159, 2021. +[121] J. Kim, B.-K. Lee, and Y. M. Ro, "Demystifying causal features on adversarial examples and causal inoculation for robust network by adversarial instrumental variable regression," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12302-12312, 2023. + +[122] B.-K. Lee, Y. Yu, and Y. M. Ro, "Towards adversarial robustness of bayesian neural network through hierarchical variational inference," 2021. +[123] B.-K. Lee, R. Hachiuma, Y. M. Ro, Y.-C. F. Wang, and Y.-H. Wu, "Genrecal: Generation after recalibration from large to small vision-language models," arXiv preprint arXiv:2506.15681, 2025. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: Abstract and Introduction section, and Figure 1-2 + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: Discussion and Limitation section + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: There are no theoretical formulations that need to be proved. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: Experiment section and Appendix C + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [NA] + +Justification: Dataset is all open-source, but the code and the model checkpoints will be open once it is accepted. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: Experiment section and Appendix C + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [NA] + +Justification: N/A + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). + +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: Experiment section and Appendix C + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We have read all materials regarding the NeurIPS code of ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: Appendix D + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: N/A + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: Method, Experiment section, Appendix C + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. + +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +Justification: Experiment Section and Appendix C + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: N/A + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: N/A + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: N/A + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# A Algorithm of RL only with Answer Rewards from LLM-as-a-Judge + +Algorithm 1 RL purely with GRPO or Dr.GRPO based on accuracy rewards from LLM-as-a-Judge + +Require: Pre-trained VLMs $\pi_{\theta_{\mathrm{init}}}$ +1: Set reference model $\pi_{\mathrm{ref}}\gets \pi_{\theta_{\mathrm{init}}}$ +2: Set the training model $\pi_{\theta}\leftarrow \pi_{\theta_{\mathrm{init}}}$ +3: for sample a batch $\mathcal{B}$ in Dataset do +4: Copy and freeze model $\pi_{\theta_{\mathrm{old}}}\gets \pi_{\theta}$ +5: Sample $G$ outputs $\{o_i\}_{i = 1}^G\sim \pi_{\theta_{\mathrm{old}}}(\cdot |q)$ for each question $q\in \mathcal{B}$ +6: Compute Rewards and Advantages for all $G$ outputs by LLM-as-a-Judge +7: for VLMs Updating iteration $= 1,2,\dots ,\mu$ do +8: Update $\pi_{\theta}$ by using the objective of GRPO [43] or Dr.GRPO [8] +9: end for +10: end for + +# B Algorithm of RIL for VLMs + +Algorithm 2 RIL for VLMs +Require: Pre-trained discriminator $D_{\phi}$ and Pre-trained student VLMs $\pi_{\theta_{\mathrm{init}}}$ +Require: Saved collection for the generated text responses $\{o^{(1)}\}$ from teacher VLMs +1: Set reference model $\pi_{\mathrm{ref}}\gets \pi_{\theta_{\mathrm{init}}}$ +2: Set the training model $\pi_{\theta}\gets \pi_{\theta_{\mathrm{init}}}$ +3: for sample a batch $\mathcal{B}$ in Dataset do +4: Copy and freeze model $\pi_{\theta_{\mathrm{old}}}\gets \pi_{\theta}$ +5: Sample $G$ outputs $\{o_i^{(s)}\}_{i = 1}^G\sim \pi_{\theta_{\mathrm{old}}}(\cdot |q)$ for each question $q\in \mathcal{B}$ +6: Extract $G$ outputs $\{o_i^{(t)}\}_{i = 1}^G$ in the saved collection for each question $q\in \mathcal{B}$ +7: for Discriminator Updating iteration $= 1,2,\dots ,\mu$ do +8: Update $D_{\phi}$ by using Equation 1 +9: end for +10: Compute Rewards and Advantages for all $2G$ outputs by Discriminator and LLM-as-a-Judge +11: for Student VLMs Updating iteration $= 1,2,\dots ,\mu$ do +12: Update $\pi_{\theta}$ by using Equation 2 +13: end for +14: end for + +# C Implementation Detail + +Details of Training and Evaluation. We train and evaluate RIL, mainly on NVIDIA A100 80GB GPUs. Because it is practically critical point to get fast text generation during training, we utilize vLLM [79] built on PagedAttention. For the pre-training step of discriminator, we assign vLLM [79] to 8 GPUs for fast text generation, and we generate $N = 16$ text responses for each question at student and teacher VLMs, respectively. Once it is finished, we use DeepSpeed engine with ZeRO-3 [80] for 8 GPUs, and we use AdamW optimizer [81] and apply a linearly decayed learning rate from 1e-5 to 1e-6 to pre-training discriminator and SFT of student VLMs. In subsequent step, when training both discriminator and student VLMs, one of 8 GPUs is assigned to conduct online generation of student VLMs by vLLM [79]. In addition, another GPU is assigned to conduct LLM-as-a-Judge [9] by vLLM [79]. The other 6 GPUs are assigned to use DeepSpeed engine with ZeRO-3 [80]. Mimicking step requires static learning rate 1e-6 and $\mu = 1$ iteration to train both student VLMs and the discriminator. Note that, when we generate text responses, we generate $G = 4$ responses for each question, by setting temperature to 1.0, top-p to 0.95, top-k to 50, and repetition penalty to 1.05, in order to get diverse text responses. For stable training, we handle large batch sizes by using gradient accumulation with 6 steps. At every step, we use 4 batches per one GPU, leading to total 144 batches. For evaluation, we use distributed data parallel to load student VLMs for all 8 GPUs and + +score the correctness or generation quality of their text responses by using their default generation hyperparameter. + +Computational Cost. Compared to GRPO [43], RIL requires increased computational costs during training due to teacher, student, discriminator, and LLM-as-a-Judge [9]. However, we would like to emphasize that discriminator and student costs can be at least mitigated. While pretraining the discriminator is a necessary step and cannot be avoided from a computational standpoint, we can reduce training costs of discriminator and student during the RIL loop (Algorithm 2) by managing model weights efficiently between CPU and GPU. Specifically, we offload the weights of the discriminator and student to the CPU when they are not in use. When needed, we load the appropriate weights from the CPU to the GPU using DeepSpeed API [80]. This allows us to load or unload model weights without uploading both architecture to GPU, thereby minimizing computational overhead. This approach is feasible because we use the same model architecture for both the discriminator and student, enabling seamless weight replacement and resource-efficient training. + +Visual Instruction Tuning Dataset. We assemble a 4M-sample visual instruction tuning dataset that encompasses a diverse array of vision-language tasks, including general visual question answering, dense image captioning, chart, diagram, and document understanding, common-sense knowledge, scientific and mathematical problem-solving, and multidimensional reasoning. For SFT, we utilize the entire 4M-sample dataset, and then we curate a 40K-sample dataset for RIL of VLMs based on log-probability sampling [82] and overlong filtering [36]. Our dataset integrates both real-world and synthetic sources: COCO-ReM [83], iNaturalist2018 [84], VQA-v2 [85], Super-CLEVR [86], MAVIS [87], Geometry3K [88], SQA [89], AI2D [2], SA-1B [60], LLaVAR [90], VSR [91], TallyQA [92], TabMWP [93], KonIQ [94], InternVL [95]-filtered synthetic knowledge dataset covering politics, math, physics, chemistry, RLAI-F [96], CLEVR-Math [97], SROIE [98], ChartQA [19], DocVQA [99], FigureQA [100], GQA [101], InfoVQA [102], M3CoT [103], MapQA [104], OK-VQA [105], TextVQA [106], WildVision [107], DVQA [108], GeoQA+ [109], GeOS [110], IconQA [111], UniGEO [112], GeomVerse [113], Geo170K [114], MathV360K [115], multimodal wikipedia knowledge [116], InfoSeek [117], and RAM++ [118]-filtered synthetic data of Infinity-MM [30] covering coarse and fine-grained perception, relation, attribute, and logic reasoning. + +# D Broader Impacts + +Our reinforcement and imitation learning (RIL) approach democratises access to advanced vision-language capabilities by enabling lightweight, efficient models to run on edge devices and in low-resource settings—thereby lowering both deployment costs and environmental impact. RIL fosters seamless interoperability across diverse model architectures and tokenization schemes. The use of multiple large teacher VLMs to generate varied training samples further accelerates performance gains, underscoring the value of collaborative model development. We believe RIL will inspire future research into efficient multimodal learning techniques and support the widespread, sustainable adoption of lightweight [119] and robust [120-122] AI solutions across a broad range of applications even with different tokenizers [123]. We hope that by bridging efficiency and performance, RIL become a landscape of building sophisticated multimodal AI technologies and accelerating innovation across industries and academia. \ No newline at end of file diff --git a/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/images.zip b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..40c541a255de8173dc1f34ad5a97c3dd7aa46257 --- /dev/null +++ b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5174587396f21aea79ef16aae98ba76fb71d70b9907da80ef3aa146ff32e192 +size 844435 diff --git a/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/layout.json b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..8c00de99fc46b6cf385ee7b1c387d411326fb6e1 --- /dev/null +++ b/NeurIPS/2025/Unified Reinforcement and Imitation Learning for Vision-Language Models/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5840603d2db5020f41b12de158bca4831a482b98ae42d75c17a69082f3ba34d6 +size 808657 diff --git a/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/9a28c02b-f1aa-43e6-a506-1cf7f00a4a01_content_list.json b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/9a28c02b-f1aa-43e6-a506-1cf7f00a4a01_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..6f798d92cfb88ca2fd80a039a21aeaacd3094b2c --- /dev/null +++ b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/9a28c02b-f1aa-43e6-a506-1cf7f00a4a01_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11fa410ff875ba9c01c61e4d01ffd746e2fd8efd22cfcd80c3ca9b3cdf89cddd +size 173415 diff --git a/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/9a28c02b-f1aa-43e6-a506-1cf7f00a4a01_model.json b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/9a28c02b-f1aa-43e6-a506-1cf7f00a4a01_model.json new file mode 100644 index 0000000000000000000000000000000000000000..77e13848b0177dc9b4f9a96b7d647d74f8d0fc70 --- /dev/null +++ b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/9a28c02b-f1aa-43e6-a506-1cf7f00a4a01_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd2206a92897299beaf79a93c92118f700cad26ec69d0c9ae38f712de01af90f +size 206242 diff --git a/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/9a28c02b-f1aa-43e6-a506-1cf7f00a4a01_origin.pdf b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/9a28c02b-f1aa-43e6-a506-1cf7f00a4a01_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a8f041a5d319832ed692d9de645924653bae4655 --- /dev/null +++ b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/9a28c02b-f1aa-43e6-a506-1cf7f00a4a01_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ceff50966bff31250743ad8108ab7e0fc0feecf9e4eee075838bead4b6bffa6 +size 967046 diff --git a/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/full.md b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/full.md new file mode 100644 index 0000000000000000000000000000000000000000..20a1fc5fd446291e2d3d41424a8e3ec6e986a9b0 --- /dev/null +++ b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/full.md @@ -0,0 +1,839 @@ +# Unified Scaling Laws for Compressed Representations + +
Andrei Panferov*Alexandra Volkova*Ionut-Vlad ModoranuVage Egiazarian
ISTAISTAISTAISTA
Mher SafaryanDan Alistarh†
ISTAISTA & Red Hat AI
+ +# Abstract + +Scaling laws have shaped recent advances in machine learning by enabling predictable scaling of model performance based on model size, computation, and data volume. Concurrently, the rise in computational cost for AI has motivated model compression techniques, notably quantization and sparsification, which have emerged to mitigate the steep computational demands associated with large-scale training and inference. This paper investigates the interplay between scaling laws and compression formats, exploring whether a unified scaling framework can accurately predict model performance when training occurs over various compressed representations, such as sparse, scalar-quantized, sparse-quantized or even vector-quantized formats. Our key contributions include validating a general scaling law formulation and showing that it is applicable both individually but also compositably across compression types. Based on this, our main finding is demonstrating both theoretically and empirically that there exists a simple "capacity" metric—based on the representation's ability to fit random Gaussian data—which can robustly predict parameter efficiency across multiple compressed representations. On the practical side, we extend our formulation to directly compare the accuracy potential of different compressed formats, and to derive better algorithms for training over sparse-quantized formats. Our source code is available at: IST-DASLab/unified-sc-laws + +# 1 Introduction + +A key recent advance in machine learning has been the idea of predictable scaling of learning performance with respect to model, computation and data sizes. This approach is encompassed by the scaling laws Kaplan et al. [17], which allow researchers to predict the values of these three parameters required to reach a certain model performance. This powerful idea has been expanded upon in several directions, e.g. [15; 5; 22], and is a key ingredient behind the massive expansion of computational power for AI [12]. + +A parallel research direction, motivated by this massive increase in computational cost, has been model compression, which proposes a series of techniques to reduce the computational and memory footprint of model inference and training, via techniques such as sparsification [14] and quantization [11]. In this paper, we focus on the interplay between scaling laws and the degree of compression of the representation over which learning occurs. While there is significant emerging work in this direction, e.g. [9; 19; 33; 31], current scaling laws are specialized to single representations (e.g., quantization or sparsity) and/or formats (e.g., integer quantization), and cannot yet address the question of predicting model scaling behavior when training over general compressed representations. + +Contributions. This paper is structured two main questions, and their practical ramifications: + +Q1: Is there a unified compression scaling law? First, we wish to find a single general law that not only applies to sparse [9] or quantized [19] representations in isolation, but that also provides a good fit for hybrid formats, such as sparse-and-quantized weights, or compound compression, i.e. sparse weights and activations. Through extensive experimentation, we identify this law to be of the form + +$$ +L o s s (N, D) \sim A \cdot (N \cdot \rho (R)) ^ {- \alpha} + B \cdot D ^ {- \beta} + E, \tag {1} +$$ + +where $N$ is the number of model parameters, $D$ is the dataset size, $E$ is the irreducible error, $A$ , $B$ , $\alpha$ and $\beta$ are constants, and $\rho$ is a parametric function of the representation $R$ . Crucially, we find that, even for very complex representations—e.g. 3-bit quantization with group size 32 and $1\%$ outliers in full-precision—the parametric function $\rho$ can still predict the scaling of model performance w.r.t. the parameter count $N$ . We call $\rho(R)$ the representation capacity of $R$ . Consequently, there is always a "dense equivalent" parameter count $N' = N \cdot \rho(R)$ which would yield the same loss during training. The capacity $\rho(R)$ lies naturally in the interval $(0, 1]$ , and the key goal of compression is to maximize the trade-off between model accuracy and the size and computational cost of the representation. + +Q2: Is capacity an "intrinsic" property of the representation? While related forms of the above law have been proposed in prior work [10; 19], we are the first show that capacity is an intrinsic property of the representation, independent of the model and task for which the scaling law is obtained, but relatable to standard information-theoretic measures. Moreover, we establish the applicability of the law across hybrid (e.g. sparse-quantized weights) or composite (e.g. quantized weights-and-activations) representations. + +More precisely, our main finding is that capacity is tightly-correlated with the representation's ability to fit random Gaussian data, measured in terms of minimal mean-squared error (MSE). Concretely, $\rho(R)$ is a simple parametric function of the MSE of the representation $R$ when fitting random Gaussian data, i.e. $\rho(R) = \tilde{\rho}(MSE(R))$ , where instances of the same representation $R$ , e.g. 3 and 4-bit integer quantization, share the same parametric form $\tilde{\rho}$ . This finding, which we validate across quantized, sparse, quantized-sparse, and even vector-quantized representations, provides a simple metric to "rank" different formats implementing the same representation. In addition, this also allows us to determine the "optimal" capacity at a certain bit-width, which is given by theoretical bounds on Gaussian fitting for a given support, which can be easily estimated via Monte Carlo algorithms. In addition, we also provide a non-trivial theoretical justification for this relationship in Theorem 1, for Adam-optimized compressed models: we relate the convergence of Adam over compressed representations with the product between the number of parameters $N$ and the average root mean-squared error of compression across optimization, which connects to our notion of capacity. + +Our second finding is that, except for pathological cases, capacity factorizes across composite representations: concretely, the capacity of a 4-bit and 2:4 sparse model is the product between the capacity of the 4-bit dense model, and that of a 2:4-sparse but unquantized model. Factorization allows us to evaluate the capacity of complex representations based on simple ones, and also holds when compressing different model representations, e.g. both weights and activations. + +Practical Implications. The analytical metrics suggested by representation capacity also have non-trivial practical applications. First, the fact that we are able to relate the predictive parameter $\rho$ to intrinsic properties of the underlying representation gives us the ability to analytically predict the representational power of different compressed numerical formats. This way, we can accurately compare and predict the efficacy of various formats such as Floating-Point, Integer (INT with and without grouping), or sparse-quantized formats $(2:4 + \mathrm{INT})$ at different compression budgets. Second, this framework inspires an improved approach for sparse training, which we show provides significant improvements (above $20\%$ in some sparsity regimes) in capacity at the same number of parameters. + +Overall, our results provide a new lens to view the scaling properties of compressed models, with respect to intrinsic properties of the representation over which training is performed. Thus, we believe that capacity-aware scaling has the potential to become a practical design principle for the next generation of efficient foundation models. + +# 2 Preliminaries + +Scaling Laws. We start from the "Chinchilla" scaling law formulation [15] that proposed to model loss scaling as a function of the number of parameters in the model $N$ and the number of data points + +Table 1: Representation scaling laws (rows) versus the quantities of interest (columns). For all laws, $N$ represents the number of parameters, $D$ is the data, and $E$ is the irreducible error. For the sparsity scaling law of Frantar et al. [8], $S$ is the sparsity and the lowercase parameters are learnable constants. For the precision scaling law of Kumar et al. [19], $P_w$ is the weight precision, and $\gamma_P$ is a learnable weight sensitivity parameter. For the law of Frantar et al. [10], $\mathrm{eff}_C$ is the "effective parameter multiplier," that is explicitly fitted for every instance of compression $C$ . By contrast, our formulation postulates that the parameter efficiency is a simple parametric function of the representation's capacity to fit random Gaussian data $(GMSE(R))$ . + +
ParametrizationFormulation for Loss(N,D)Sparsity fit +(Error)Quantization fit +(Error)
Sparsity S +Frantar et al. [9]aS(1-S)bS+cS/NbN + (aD/D)bD+E5.7·10-4N/A
Quantization to Pw +Kumar et al. [19]A[N(1-e-Pw/γw)]-α+BD-β+EN/A4.5·10-3
Compression C +Frantar et al. [10]A/(N·effC)α+B/Dβ+E4.2·10-41.9·10-3
Representation R +(OURS)A/(N·ρ(GMSE(R)))α+B/Dβ+E4.7·10-42.1·10-3
+ +$D$ the model was trained on, in the form the parametric function: + +$$ +\operatorname {L o s s} (N, D) = A N ^ {- \alpha} + B D ^ {- \beta} + E, \tag {2} +$$ + +where $A, B, E, \alpha$ , and $\beta$ are the scaling law parameters that can be fit empirically. It is important to note that such scaling laws assume an ideal, well-tuned training setup, and that the parameter may vary slightly depending on architecture, optimizer, and hyper-parameters. + +Compressed Representations. For sparsity, we assume that a specific fraction, within each parameter group of a certain size $G$ , is set to zero. Sparsity is unstructured if the group is the whole tensor, whereas it is semi-structured (N:M) if $N$ parameters out of every $M$ are set to zero. For quantization, unless otherwise stated, we assume that parameters are mapped onto a scalar, symmetric grid corresponding to the number of bits available for quantization, as is standard [11]. (We will also consider vector quantization in Section 4.1.) For sparse-quantized representations, we follow [13] by first applying sparsification, and then quantization, to map continuous parameters onto this format. + +Prior Scaling Laws. The relationship between the learning representation and the scaling law formulation was considered by Frantar et al. [9] for sparsity, and by Kumar et al. [19] for quantization. The scaling laws they propose are described in Table 1, together with their parametrization, for the special case of weight-only compression. While both these laws can predict loss with respect to training over their target representations, their formulation is not designed to generalize to other representations, or to hybrid ones (e.g. sparse-quantized). + +The unified law we consider extends preliminary work by Frantar et al. [10], who, assuming that training happens over weights compressed in representation $C$ , proposed a simple parametric law similar to Equation 1, but which is fitted independently for each instance of compressed training, yielding a value of the corresponding parameter efficiency factor, called $\mathrm{eff}_C$ . Frantar et al. [10] focuses on quantization; they fit sparsity in limited experiments, and do not consider hybrid formats. + +Our Approach. By contrast, our focus is on relating parameter efficiency to intrinsic properties of the representation $R$ : in their parlance, we show that, across all instances of a given compressed representation $R$ , e.g. uniform integer (INT) quantization, the parameter efficiency has the same parametric form $\rho(R)$ , and, in fact, this parametric form is simply a function of the MSE for the representation $R$ w.r.t. random Gaussian data, i.e. $\rho(R) = \tilde{\rho}(GMSE(R))$ . Importantly, $GMSE(R)$ is an intrinsic property of $R$ , and only depends on its own parametrization: for INT, this would be the number of bits we employ per parameter. + +The fact that this parametric form is shared across instances of the same representation (Section 4.1), is powerful since it allows us to compare and transfer parameters between instances of the same representation $R$ . Clearly, if $GMSE \simeq 0$ , then $\rho(P) \simeq 1$ , and we recover the original "dense" + +scaling law [15]. Interestingly, Table 1 shows that our unified law can provide a better fit than the representation-specific formulations of Frantar et al. [9] and Kumar et al. [19], and (almost) matches the formulation of [10], which is fitted for each compression instantiation $C$ . + +Setting for Experimental Validation. For our scaling law investigations, we pretrained decoder-only Transformers following the Llama architecture [34] for 30M, 50M, 100M and 200M non-embedding parameters. The models were trained on the C4 dataset [28], using the Llama-2 tokenizer [34]. To ensure we operate in a data-rich regime, we use 50, 100, and 200 training tokens per model parameter for each training configuration, and train on fixed-length context windows of 512 tokens. We used AdamW [18; 23] with a 0.1 ratio of warm-up epochs with cosine scheduler. Our experimental setup is very similar to that of [9; 19; 10]. More details are provided in Appendix A. + +We follow standard quantization-aware training (QAT) methods, combined with various levels of unstructured weight sparsity. For quantization we employ the gradient estimator of [27], a per-layer uniform quantizer with static scaling factors and gradient masking. Quantization levels range from 1-bit to 8-bit precision. We consider configurations with quantized weights only, activations only, and both simultaneously. For sparsity, we apply unstructured magnitude pruning via top-k thresholding on a per-layer basis. The sparsity mask is recomputed dynamically at each optimization step. For Vector Quantization (VQ), we follow QuEST scalar quantization and apply it to 2- and 4-dimensional HIGGS grids [24]. To restrain outliers we use the trust estimation method [27] that zeros out gradients for any point lying outside a hypersphere of a certain radius. + +# 3 Theoretical Analysis + +One key focus of our work is whether, given a compressed representation $R$ over which learning is performed, we can identify a predictive metric that correlates with the representation's efficiency $\rho(R)$ . To identify this metric, we first model the standard weight-compressed LLM optimization process, which combines the Adam algorithm [18] with the straight-through estimator (STE) [2]. We have: + +$$ +\text {S T E G r a d i e n t :} \quad g _ {t} = \widetilde {\nabla} f (\widehat {\theta} _ {t}), \qquad \text {w h e r e} \widehat {\theta} _ {t} = \mathcal {C} (\theta_ {t}), +$$ + +$$ +\text {O p t i m i z e r s t a t e s :} \quad m _ {t} = \beta_ {1} m _ {t - 1} + (1 - \beta_ {1}) g _ {t} +$$ + +$$ +v _ {t} = \beta_ {2} v _ {t - 1} + (1 - \beta_ {2}) g _ {t} ^ {2}, \quad \widetilde {v} _ {t} = \max (v _ {t}, \widetilde {v} _ {t - 1}) +$$ + +$$ +\text {M o d e l} \theta_ {t + 1} = \theta_ {t} - \eta \frac {m _ {t}}{\sqrt {\tilde {v} _ {t} + \epsilon}}, +$$ + +where $\widetilde{\nabla}$ represents stochastic mini-batch gradient operator, $\mathcal{C} \colon \mathbb{R}^N \to \mathbb{R}^N$ is the compression scheme, $\beta_1, \beta_2 \in (0, 1)$ are momentum parameters, $\epsilon > 0$ is a small constant for numerical stability and $\eta > 0$ is the learning rate or the step-size. All vector operations are element-wise, including the max operation. Our analysis relies on the following assumptions, which are standard in adaptive optimization [36; 29; 4; 20; 6; 25; 30]: + +Assumption 1 (Lower bound and smoothness). The loss function $f\colon \mathbb{R}^N\to \mathbb{R}$ is lower bounded by some $f^{*}\in \mathbb{R}$ and is $L$ -smooth, namely, $\| \nabla f(\theta) - \nabla f(\theta^{\prime})\|_{2}\leq L\| \theta -\theta^{\prime}\|_{2}$ , for any $\theta ,\theta^{\prime}\in \mathbb{R}^{N}$ . + +Assumption 2 (Unbiased and bounded stochastic gradient). For all iterates $t \geq 1$ , the stochastic gradient $g_t$ at $\widehat{\theta}_t$ is unbiased, $\mathbb{E}[g_t] = \nabla f(\widehat{\theta}_t)$ , and uniformly bounded, $\| g_t \|_{\infty} \leq G_{\infty}$ , by some constant $G_{\infty} \geq 0$ . + +Assumption 3 (Bounded variance). For all iterates $t \geq 1$ , the variance of the stochastic gradient $g_{t}$ at $\widehat{\theta}_{t}$ is uniformly bounded by some constant $\sigma^2 \geq 0$ , namely $\mathbb{E}[\| g_t - \nabla f(\widehat{\theta}_t)\| _2^2 ] \leq \sigma^2$ . + +In this context, our main claim is the following: + +Theorem 1 (Non-convex convergence analysis). Let Assumptions 1, 2 and 3 hold. Then, choosing step-size $\eta = \min (\eta_0,\frac{1}{\sqrt{T}})$ with $\eta_0 = \frac{\epsilon(1 - \beta_1)}{2LC\sqrt{N}}$ and $C = 2\sqrt{G_{\infty}^2 + \epsilon / N}$ , a randomly chosen compressed iterate $\widehat{\theta}$ from $\{\widehat{\theta}_1,\dots ,\widehat{\theta}_T\}$ satisfies + +$$ +\mathbb {E} [ \| \nabla f (\widehat {\theta}) \| ^ {2} ] \leq \frac {C L G _ {\infty}}{\sqrt {\epsilon}} \cdot \mathbb {E} \left[ \frac {1}{T} \sum_ {t = 1} ^ {T} \| \widehat {\theta} _ {t} - \theta_ {t} \| _ {2} \right] \cdot N + \frac {C \sqrt {N}}{\sqrt {T}} \left(f (\theta_ {1}) - f ^ {*} + \frac {L \sigma^ {2}}{\epsilon}\right) + \mathcal {O} \left(\frac {N ^ {3 / 2}}{T}\right). +$$ + +Discussion. Similar convergence analysis for Adam under compressed iterates $\widehat{\theta}_t$ was performed in the setup of convex online learning with bounded domain condition [16], and in nonconvex + +![](images/3e986721ab7b6cc17c724b8a4075387711daa80a6ba6922f90a613ef46dfa107.jpg) +Figure 1: Comparison of $\rho$ fits for scaling law forms from Table 1: (a, left) shows quantizations scaling laws, (b, middle) and (c, right) demonstrate the match between noise injection and QuEST quantization for weight-only and weights+activations quantization. + +![](images/c9a93615f30ca05ba6d7ec1bae95d9fd037a964c8f8b1dbfdc2a6d3febbceefe.jpg) + +![](images/214de42f64532d779adecd6c1129d5250f9c648827a6441e171ddbbdc9353b10.jpg) + +optimization with restricted hyperparameter choices and slower rate in terms of constants and extra log-terms [3]. We now interpret this bound, whose complete proof can be found in the Supplementary. Specifically, the bound shows the ergodic convergence of the gradients taken at compressed iterates, which is the strongest property shown even in the uncompressed case [36]. In turn, this term is bounded by 3 terms on the RHS. The second and third bounding terms are standard in the analysis of uncompressed Adam [36], showing that our analysis is fairly tight. We focus our attention on the first term, whose key part is highlighted in blue: this term consists of absolute constants, multiplying the critical term $N \cdot \mathbb{E} \left[ \frac{1}{T} \sum_{t=1}^{T} \| \widehat{\theta}_t - \theta_t \|_2 \right]$ . Specifically, this term consists of the number of parameters $N$ times the average $\ell_2$ compression error over the model parameters throughout the execution. Thus, this analysis suggests that the parameter efficiency of such models may depend multiplicatively on both the number of parameters, and the compression root-mean-square-error (RMSE) throughout the execution. Importantly, this bound is independent of the compression type. + +# 4 Findings + +# 4.1 Finding 1: Gaussian RMSE Predicts Representation Capacity + +Table 1 presents a number of scaling laws that model the same functions via different parametrizations. One can notice, that both the Sparsity form of Frantar et al. [9] and the Quantization form of Kumar et al. [19] can be reduced to the Decoupled form of Frantar et al. [10] in the third row, by imposing additional constraints (e.g. $\mathrm{eff}_P = 1 - e^{-P_w / \gamma_w}$ for quantization). Naturally, the Decoupled form can achieve lower fit error, but it does not provide any information about the interpretation of the capacity term, which we call $\rho(R)$ , across different representations $R$ . The Sparsity form and the Quantization form, on the other hand, feature intertwining and interpretable parameters. For simplicity, we first focus on the Quantization form for now. + +The Functional Form. Kumar et al. [19] choose the functional form $\rho(P_w) = 1 - e^{-P_w / \gamma_w}$ to model quantization efficiency. By contrast, we propose a different form to model $\rho(R)$ : + +$$ +\widetilde {\rho} (G M S E (R)) = L \cdot \tanh (F \cdot \log_ {1 / 4} (G M S E (R))) ^ {C}, \tag {3} +$$ + +which depends only on the representation $R$ 's Gaussian-MSE fit, denoted by $GMSE(R)$ , and on the scalars $L$ , $F$ , and $C$ , detailed below. The $GMSE(R)$ is easily computable for any representation, and allows us to bypass the dependency on representation-specific parametrization, such as bit-width or sparsity. Specifically, we fit the scalar parameters for each compression type, e.g. scalar quantization, and then re-use these parameters while varying $GMSE(R)$ w.r.t. compression parameters, e.g. bit-width. The scalar parameters $L$ , $F$ , and $C$ allow us to accurately model observed effects such as: + +- Imperfect convergence in high-precision: While modern QAT algorithms such as QuEST reach efficiency $\rho = 1$ for low quantization error, older algorithms such as LSQ (Figure 1 (a)), have an efficiency limit strictly below 1, since for instance its gradient estimator introduces consistent bias. The factor $L$ , defaulting to 1 for saturating representations, allows us to model this imperfection. +- Various low-precision curvature: As seen in Figures 1 (b) and (c), different representations behave differently around $GMSE = 1$ , with some have noticeably higher curvature ("breakdown"). + +From Figure 1 (a), one can see how that region disproportionally affects the law of Kumar et al. [19], leading to a very poor fit at higher bitwidths. The factor $C$ , closer to 1 for representations "more linear" around $GMSE = 1$ , allows us to more accurately model $\rho(R)$ . + +Quality of Fit. Table 1 shows that our approach leads similar or better quality-of-fit relative to prior laws, covering both scalar quantization and sparsity, while Figure 1 shows $\rho(R)$ alignment between scaling law forms, compared to Kumar et al. [19], for the QuEST and LSQ quantizers. Again, our approach provides significantly better fit. In Figure 2(a), we show that our method can also provide a good fit for models trained with vector-quantized (VQ) weights, using the projection method of [24], for lattice dimensions 2 and 4. This shows both the versatility of our approach, and the necessity of the $L$ term, since higher-dimensional VQ appears to have clear sub-unit saturation due to higher bias. We provide further examples in Section 4.3. + +# 4.2 Finding 2: Noise Injection as a Scaling Law Predictor + +Next, we turn our scaling law on its head, and ask: what if we plug the optimal achievable GMSE for a certain bit-width into the scaling law? In that case, the scaling law should allow us to compute a lower bound on the achievable parameter efficiency given a certain type of representation. In turn, we can find out how close existing quantization- or sparsity-aware training techniques, or numerical formats, are to the information-theoretic lower bound for that specific representation. + +Figure 1 (b) illustrates the "optimality gap" for the QuEST algorithm for scalar weight-only quantization across bit-widths, suggesting that this approach is fairly close to optimal. In Figure 1 (c), we compare the fit between actual runs of this QAT algorithm across bit-widths, and the predicted values via noise injection [1] (plugging in the equivalent $GMSE$ ) into the scaling law, showing a near-perfect fit. + +# 4.3 Finding 3: Representation Capacity Is Multiplicative Across Compression Types + +In prior work, [19] have claimed that, for their formulation of the law, the representation capacity factorizes independently for quantization of weights and activations. Our experimental findings extend this result, showing that representation capacity, $\rho(R)$ , also factorizes naturally across a wide range of compression approaches, whether for the same tensor (sparse-and-quantized weights) or for different state tensors (sparse weights and sparse activations). We follow the experimental setup from Section 2, training models with sparse weights and activations, or sparse-quantized weights, or both. We fit a scaling law in the 100 toks/param regime. We show that representation capacity factorizes for the following scenarios: + +1. Sparse weights and activations: For sparsity, independently applied to weight and activations, + +$$ +\rho \left(R _ {s _ {w}, s _ {a}}\right) = \rho \left(R _ {s _ {w}}\right) \cdot \rho \left(R _ {s _ {a}}\right). \tag {4} +$$ + +We summarize the fitted values of $\rho(R)$ levels in a matrix $M$ (Figure 2(b)), where each entry corresponds to the fitted efficiency for a model trained with a specific sparsity configuration. Remarkably, the matrix can be accurately approximated by a rank-1 outer product of the first column $M_{0,:}$ (weight-only) and the top row $M:,0$ (activations-only) elements, i.e. $M\approx M_{0,:}\otimes M_{0,:}$ . The resulting parameter efficiencies closely match the product of efficiencies obtained for runs with weight-only and activations-only configurations. + +2. Sparse and quantized weights: Given a weight sparsity level $s$ combined with $q$ -bit quantization, we claim that the representation capacity can be represented as the product: $\rho(R_{q,s}) = \rho(R_q) \cdot \rho(R_s)$ . We report the results for different sparsity levels and bit width in Figure 9. Similarly, the matrix $\rho(R)$ factorizes into the outer product of marginal vectors for quantization-only and sparsity-only representation. Apart from extreme quantization to 2-bit precision, the approximation maintains the error of order of $10^{-2}$ . +3. Sparse and quantized weights, and quantized activations: Finally, we observe that factorization extends to quantization of activations as well. In supplementary experiments, we apply quantization to activation tensors alongside with weight sparsity and quantization. Our results indicate that the representation capacity with weight sparsity $s_w$ and quantization bitwidth $q_w$ , and activation sparsity $q_a$ follows $\rho(R_{q_w, s_w, q_a}) = \rho(R_{q_w}) \cdot \rho(R_{s_w}) \cdot \rho(R_{q_a})$ . + +This result allows for low-cost comparison across compression comparison. Moreover, it facilitates compression hyperparameter tuning and thus predictable model training in a compressed regime. + +![](images/ded99225a4fb9074dab3b22ae6ca2cac6455d80b2e1b2a1b219c5227d0b02305.jpg) +(a) + +![](images/3f7e63b21eba86fe0830b1356d5f4bc1011b605a2660b3a19dcc6004051df4a9.jpg) +Figure 2: (a) Scaling law for 2- and 4-dimensional vector quantization. (b) Representation capacity across weight and activation sparsity levels: baseline, factorized prediction, and relative errors. Note the low errors for the factorized predictions, with slight increases at the larger sparsity levels. + +![](images/2ae2f1397440737740961b67219500ce4cbad4104e4baef79e58cec6ae3cfbe7.jpg) +(b) + +![](images/8fe8d0a010ceb403472f8e8e357a876e1233685d79a924f6fba7cb7a5c9e0684.jpg) + +![](images/5f38895a2df75a6702208adcaf348e85bd54d88ac6cba06a7b9fe2ef6c9b1e8a.jpg) +Figure 3: Comparison of floating point and integer data-types in terms of GMSE, and C4 Validation Loss when trained using the corresponding formats via QuEST, and the resulting capacity $\rho(R)$ . Observe the high correlation between ranking in terms of GMSE (top), and Val. Loss (bottom). + +![](images/2d12e84fd82829ce345616a72d413ad1e51ec12a953ea2cf59922eecb758e1e4.jpg) + +# 5 Applications + +# 5.1 Application 1: Comparing Compressed Numerical Formats + +Practical Formats. The scaling law for compressed representations enables systematic comparison of numerical formats used in quantization, such as INT8, INT4, FP4, or custom low-precision representations, based just on their GMSE, which can be determined via fast Monte Carlo algorithms. Thus, it provides a clear guidance on which low-precision format delivers the best performance for given resource constraints. Figure 3 illustrates this for a number of floating-point and integer + +![](images/d290bf0376e9b5b649741710b0b064db338038a1de67e8cc7e68334ac8cbb3eb.jpg) +Figure 4: Representation capacity $\rho(R)$ versus MSE for (a) group-wise quantization, with markers indicate group counts (color encodes quantization bitwidth), and (b) outlier-aware quantization. + +![](images/4a5b3fde886adb9dfc35e39b11c52ec34f041a32e88d4bed813706c7df2d49c5.jpg) + +![](images/99d517052ee05e4ed438677febab632444b2bd347d61875a63ba43c457b11cd8.jpg) +(a) + +![](images/5bb3229d8311febcb2774246033caec9b452b917541ca56b1b964b43e6ffdc72.jpg) +(b) +Figure 5: Backward heuristics: (a) forward mask $M_{FW}$ determined by the $T_{k}$ threshold, (b) backward mask determined by threshold $T_{p}$ , (c) banded backward mask determined by both $T_{k}$ and $T_{p}$ , (d) capacity plot compared to the Magnitude Pruning baseline with $M_{BW} = M_{FW}$ . + +![](images/d934186037973d5f17f8d12e136386d46b850623bdc68c2de3a85d8a282c1dcc.jpg) +(c) + +![](images/5225687fe4268f280455be0d9d8149afd9430aeac755375e9e613f1ba3320467.jpg) +(d) + +data-types. Specifically, we observe a direct correlation between the ranking of GMSE values (top) and the actual C4 validation loss obtained in actual experiments (bottom). This suggests that our GMSE metric is an accurate predictor of compressed pre-training performance. For instance, it suggests that switching to FP4 (E2M1) will not bring gains relative to INT4 training, and that both formats are close to the theoretical lower bound at 4 bits. + +The Impact of Parameter Grouping and Outlier Preservation. A related question regarding formats is whether more complex approaches, such as group-wise quantization, or outlier preservation in higher precision, can disrupt the scaling law. We examine this in Figure 4, which it shows that preserving no outliers (0%) lies on the Pareto-optimal boundary: higher outlier ratios achieve a worse trade-off between the MSE and the representation capacity $\rho(R)$ . This suggests that, for pre-training it is more effective to allocate bits to encoding the values distribution rather than outlier preservation or careful grouping. This further demonstrates that the proposed RMSE dependency is a general property and remains valid even under diverse structured compression techniques. + +Compositionality. An immediate practical application of the multiplicative behavior of the law (Section 4.3) is the ability to estimate the model's performance in advance for arbitrary compression configuration. Given the individual efficiencies of different compression methods, such as quantization or sparsity, applied to weights or activations, one can predict the combined effect without spending additional compute for training. + +# 5.2 Application 2: Increasing the Capacity of Sparse Training + +The Sparse Training Problem. For our second application, we investigate implications of the RMSE law to maximize the capacity of a sparse representation during training. Specifically, standard sparse training methods such as gradual magnitude pruning (GMP) [37; 9] compute a forward sparsity mask, which we denote by $M_{FW}$ during the forward pass based on the absolute-magnitude Top-K operation applied to the model parameters $\theta$ with respect to a target sparsity. Then, a gradient $\nabla L(TopK(\theta))$ is taken w.r.t. the sparsified weights. Standard baselines, such as the ones we use for sparse training, re-use the forward sparsity mask for the backward, preventing the pruned weights from receiving any gradient. We are interested in heuristics to improve the parameter efficiency of this standard approach, increasing capacity at the same sparsity level. + +RMSE-Banded Gradient Masking. For this, we follow the RMSE law and align the parameters $\theta \in \mathbb{R}^N$ with the standard normal distribution by dividing $\theta$ by its root mean square $RMS(\theta) = \sqrt{\frac{1}{N}\sum_{i=1}^{N}\theta_i^2}$ , which results in $||\theta / RMS(\theta)||_2^2 = N$ . We allow the user to provide a median deviation parameter $p \in (0, 0.5)$ , which determines the threshold for the backward mask $T_p = RMS(\theta) \cdot ppf(0.5 + p)$ , where $ppf$ is the inverse cumulative distribution function of the standard Normal distribution. The multiplication by $RMS(x)$ "converts" the threshold for the standard Normal distribution to the threshold for the vector $\theta$ . As a result, $M_{BW} = |\theta| > T_p$ . + +Effectively, our approach, which we call RMSE-Banded Backward Masking (RBBM), sets a backward mask $M_{BW}$ that may be different than the TopK mask for the forward, whose sparsity is controllable via the parameter $p$ . To address the fact that it may not allow gradient flow for small parameter values, we allow gradients to flow for the smallest and largest parameters, and create a band between $T_{p}$ and the TopK threshold $T_{k}$ , where we do not allow gradient flow. Let $m = \min(T_{p}, T_{k})$ and $M = \max(T_{p}, T_{k})$ and define $M_{BW} = (|\theta| < m) \vee (|\theta| > M)$ . Since we do not control the + +relationship between $T_{p}$ and $T_{k}$ , we need to ensure that the band is defined correctly. Concretely, the values $\theta_{i} < m$ and values $\theta_{i} > M$ will receive gradients, while the values $\theta_{i} \in [m, M]$ will not. + +To illustrate, in Figure 5a we show the structure of forward mask $M_{FW}$ , were the red region corresponds to values $|\theta_i| < T_k$ that will not receive any gradient, while the green region corresponds to the values $|\theta_i| \geq T_k$ which will receive gradient. The top-k threshold $T_k$ is fixed. In Figure 5b, we have a similar behavior for the backward mask $M_{BW}$ determined by the threshold $T_p$ , which is now user-controlled via the median deviation parameter $p$ . In Figure 5c we show an example for $T_p < T_k$ where we obtain a banded-mask: the values $|\theta_i| \in [T_p, T_k]$ will not receive any gradient (red region), while the other values will receive gradient (green region). The band width can be controlled via the parameter $p \in (0, 0.5)$ . When $p$ is close to zero, the $T_p$ value will decrease, having the effect of increasing the width of the red band, where the corresponding weights do not get gradient. When $p = 0$ , the value of $T_p$ will be equal to the median and this will be equivalent to the baseline (e.g. $M_{BW} = M_{FW}$ ) illustrated in Figure 5a. + +Results. We apply RBBM for sparse training in our pretraining scenario, for the 30M parameter Llama model, using our training setup from Sec. 2, and for unstructured sparsities between $10\%$ and $90\%$ . We compute the capacity of the sparse representation. The results for our RMSE-based heuristic and the standard sparse training baseline (Magnitude Pruning) are provided in Figure 5d. The results show that our RMSE-based approach enables consistently higher capacity than the baseline. + +# 6 Related Work + +We focus on studies that extended classical scaling laws [17; 15] to model compression. Frantar et al. [9] presented the first scaling law for weight-sparse Transformers, across vision and language and unstructured and semi-structured sparsity. Earlier work by Clark et al. [5] studied mixture-of-experts sparsity, deriving scaling laws in terms of total parameters and compute per token, reinforcing the idea that only effective parameters govern scaling. + +A recent breakthrough by Kumar et al. [19] introduced scaling laws that incorporate numerical quantization during training and inference, showing that, as for sparsity, a model trained in low precision behaves like a smaller high-precision model. They also apply their approach to post-training quantization (PTQ), showing that PTQ quality worsens as training data increases. For training-time quantization, their laws suggest that using lower precision allows training larger models on the same compute budget. Relative to their pioneering work, we bring the following improvements. First, we investigate a different and arguably simpler scaling law, showing that it yields a considerably better fit for quantization itself (see Table 1). Second, our key focus is different, we provide a first interpretation of the notion of representation "capacity", together with a theoretical justification, and ample experimental validation. Finally, we validate the factorization property posited by Kumar et al. [19], as well as extensions to hybrid formats. Follow-up work by Sun et al. [33] examines scaling laws for floating-point (FP) formats, finding that the law of Kumar et al. [19] does not provide a good fit in this case, and investigates an extension of the law via additional parametrization. + +Preliminary work by Frantar et al. [10] proposed the single-parameter scaling law on which we build, and showed that it can be applied to instances of weight quantization and sparsity, by directly fitting the efficiency parameter. By contrast, we identify a general law, in the sense that the same parametric form can transfer between compression types, to hybrid sparse-quantized formats, as well as to instances where both weights and activations are compressed. More interestingly, we equate the representation capacity factor in the law with a natural notion of representation capacity, show that the law factorizes across representations. In concurrent work, ParetoQ [22] aimed to unify the fragmented landscape of LLM quantization by systematically evaluating the interplay between training strategy, quantization function design, and bit selection. Our results complement their findings: for instance, we obtain that, for the architectures we consider, 2-bit weight-only quantization is Pareto optimal. + +# 7 Discussion and Limitations + +Our study introduces representation capacity—roughly defined as a simple monotone transform of the Gaussian MSE—as a unified metric when training compressed models across various representations. Capacity enables format comparisons without retraining or exhaustive grid searches, so that future hardware designers can expose any format whose capacity $\rho$ dominates the Pareto frontier, confident + +that software will exploit it optimally. Moreover, our law factorizes, further simplifying the search for the "optimal" training format. + +A few caveats remain. First, in line with prior work in this area, our experiments are limited to decoder-only Llama-style architectures trained on C4 in the data-rich regime (100 toks/param); we plan to extend this at larger scale. Second, the law may need specific fits for ultra-low precision (e.g. 2-bit or ternary formats) and for vector-quantization codebooks below 8 entries, suggesting second-order effects may need to be taken into account. Third, while our theoretical evidence uses standard assumptions, it could be extended to more complex representation types. + +# Acknowledgments + +We would like to thank Lambda Cloud for their generous computational grant. We thank the NVIDIA and Google corporation for their grants, which supported part of this research. Alexandra Volkova and Andrei Panferov were supported in part by the BILAI Cluster of Excellence program. + +# References + +[1] Baskin, C., Liss, N., Schwartz, E., Zheltonozhskii, E., Giryes, R., Bronstein, A. M., and Mendelson, A. (2021). Uniq: Uniform noise injection for non-uniform quantization of neural networks. ACM Transactions on Computer Systems (TOCS), 37(1-4), 1-15. +[2] Bengio, Y., Léonard, N., and Courville, A. (2013). Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432. +[3] Chen, C., Shen, L., Huang, H., and Liu, W. (2021). Quantized Adam with Error Feedback. arXiv preprint arXiv:2004.14180. +[4] Chen, X., Liu, S., Sun, R., and Hong, M. (2019). On the Convergence of A Class of Adam-Type Algorithms for Non-Convex Optimization. International Conference on Learning Representations. +[5] Clark, A., de Las Casas, D., Guy, A., Mensch, A., Paganini, M., Hoffmann, J., Damoc, B., Hechtman, B., Cai, T., Borgeaud, S., et al. (2022). Unified scaling laws for routed language models. International Conference on Machine Learning, pages 4057-4086. +[6] Défossez, A., Bottou, L., Bach, F., and Usunier, N. (2022). A simple convergence proof of adam and adagrad. Transactions on Machine Learning Research. +[7] Diao, S., Yang, Y., Fu, Y., Dong, X., Su, D., Kliegl, M., Chen, Z., Belcak, P., Suhara, Y., Yin, H., et al. (2025). Climb: Clustering-based iterative data mixture bootstrapping for language model pre-training. arXiv preprint arXiv:2504.13161. +[8] Frantar, E., Ashkboos, S., Hoefler, T., and Alistarh, D. (2022). Gptq: Accurate post-training quantization for generative pre-trained transformers. arXiv preprint arXiv:2210.17323. +[9] Frantar, E., Ruiz, C. R., Houlsby, N., Alistarh, D., and Evci, U. (2024). Scaling laws for sparsely-connected foundation models. In International Conference on Learning Representations. +[10] Frantar, E., Evci, U., Park, W., Houlsby, N., and Alistarh, D. (2025). Compression scaling laws: unifying sparsity and quantization. +[11] Gholami, A., Kim, S., Dong, Z., Yao, Z., Mahoney, M. W., and Keutzer, K. (2022). A survey of quantization methods for efficient neural network inference. In Low-power computer vision, pages 291-326. Chapman and Hall/CRC. +[12] Gibney, E. et al. (2022). How to shrink ais ballooning carbon footprint. Nature, 607(7920), 648-648. +[13] Harma, S. B., Chakraborty, A., Kostenok, E., Mishin, D., Ha, D., Falsafi, B., Jaggi, M., Liu, M., Oh, Y., Subramanian, S., and Yazdanbakhsh, A. (2025). Effective interplay between sparsity and quantization: From theory to practice. In International Conference on Learning Representations. arXiv:2405.20935. + +[14] Hoefler, T., Alistarh, D., Ben-Nun, T., Dryden, N., and Peste, A. (2021). Sparsity in deep learning: Pruning and growth for efficient inference and training in neural networks. Journal of Machine Learning Research, 22(241), 1-124. +[15] Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., Cai, T., Rutherford, E., de Las Casas, D., Hendricks, L. A., Welbl, J., Clark, A., Hennigan, T., Noland, E., Millican, K., van den Driessche, G., Damoc, B., Guy, A., Osindero, S., Simonyan, K., Elsen, E., Vinyals, O., Rae, J. W., and Sifre, L. (2024). Training compute-optimal large language models. In Advances in Neural Information Processing Systems. +[16] Hou, L., Zhang, R., and Kwok, J. T. (2019). Analysis of quantized models. In International Conference on Learning Representations. +[17] Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., and Amodei, D. (2020). Scaling laws for neural language models. arXiv preprint arXiv:2001.08361. +[18] Kingma, D. P. and Ba, J. (2015). Adam: A method for stochastic optimization. International Conference on Learning Representations (ICLR). arXiv:1412.6980. +[19] Kumar, T., Ankner, Z., Spector, B. F., Bordelon, B., Muennighoff, N., Paul, M., Pehlevan, C., Ré, C., and Raghunathan, A. (2024). Scaling laws for precision. arXiv preprint arXiv:2411.04330. +[20] Li, X. and Li, P. (2022). Analysis of Error Feedback in Federated Non-Convex Optimization with Biased Compression. arXiv preprint arXiv:2211.14292. +[21] Liu, Z., Hu, H., Lin, Y., Yao, Z., Xie, Z., Wei, Y., Ning, J., Cao, Y., Zhang, Z., Dong, L., et al. (2022). Swin transformer v2: Scaling up capacity and resolution. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 12009-12019. +[22] Liu, Z., Zhao, C., Huang, H., Chen, S., Zhang, J., Zhao, J., Roy, S., Jin, L., Xiong, Y., Shi, Y., Xiao, L., Tian, Y., Soran, B., Krishnamoorthi, R., Blankevoort, T., and Chandra, V. (2025). Paretoq: Scaling laws in extremely low-bit lmm quantization. arXiv preprint arXiv:2502.02631. +[23] Loshchilov, I. and Hutter, F. (2019). Decoupled weight decay regularization. In International Conference on Learning Representations. +[24] Malinovskii, V., Panferov, A., Ilin, I., Guo, H., Richtárik, P., and Alistarh, D. (2025). HIGGS: Pushing the limits of large language model quantization via the linearity theorem. In L. Chiruzzo, A. Ritter, and L. Wang, editors, Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 10857-10886, Albuquerque, New Mexico. Association for Computational Linguistics. +[25] Modoranu, I.-V., Safaryan, M., Malinovsky, G., Kurtic, E., Robert, T., Richtarik, P., and Alistarh, D. (2024). Microadam: Accurate adaptive optimization with low space overhead and provable convergence. +[26] OLMo, T., Walsh, P., Soldaini, L., Groeneveld, D., Lo, K., Arora, S., Bhagia, A., Gu, Y., Huang, S., Jordan, M., et al. (2024). 2 olmo 2 furious. arXiv preprint arXiv:2501.00656. +[27] Panferov, A., Chen, J., Tabesh, S., Castro, R. L., Nikdan, M., and Alistarh, D. (2025). Quest: Stable training of llms with 1-bit weights and activations. arXiv preprint arXiv:2502.05003. +[28] Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., and Liu, P. J. (2020). Exploring the limits of transfer learning with a unified text-to-text transformer. In Proceedings of the 37th International Conference on Machine Learning (ICML), pages 13934-13944. PMLR. T5 and C4 Dataset. +[29] Reddi, S. J., Kale, S., and Kumar, S. (2019). On the convergence of Adam and beyond. arXiv preprint arXiv:1904.09237. +[30] Robert, T., Safaryan, M., Modoranu, I.-V., and Alistarh, D. (2024). LDAdam: Adaptive Optimization from Low-Dimensional Gradient Statistics. arXiv preprint arXiv:2410.16103. + +[31] Sardana, N., Portes, J., Doubov, S., and Frankle, J. (2024). Beyond chinchilla-optimal: Accounting for inference in language model scaling laws. In International Conference on Machine Learning. +[32] Su, J., Ahmed, M., Lu, Y., Pan, S., Bo, W., and Liu, Y. (2024). Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568, 127063. +[33] Sun, X., Li, S., Xie, R., Han, W., Wu, K., Yang, Z., Li, Y., Wang, A., Li, S., Xue, J., Cheng, Y., Tao, Y., Kang, Z., Xu, C., Wang, D., and Jiang, J. (2025). Scaling laws for floating-point quantization training. arXiv preprint arXiv:2501.02423. +[34] Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., Bikel, D., Blecher, L., Ferrer, C. C., Chen, M., Cucurull, G., Esiobu, D., Fernandes, J., Fu, J., Fu, W., Fuller, B., Gao, C., Goswami, V., Goyal, N., Hartshorn, A., Hosseini, S., Hou, R., Inan, H., Kardas, M., Kerkez, V., Khabsa, M., Kloumann, I., Korenev, A., Koura, P. S., Lachaux, M.-A., Lavril, T., Lee, J., Liskovich, D., Lu, Y., Mao, Y., Martinet, X., Mihaylov, T., Mishra, P., Molybog, I., Nie, Y., Poulton, A., Reizenstein, J., Rungta, R., Saladi, K., Schelten, A., Silva, R., Smith, E. M., Subramanian, R., Tan, X. E., Tang, B., Taylor, R., Williams, A., Kuan, J. X., Xu, P., Yan, Z., Zarov, I., Zhang, Y., Fan, A., Kambadur, M., Narang, S., Rodriguez, A., Stojnic, R., Edunov, S., and Scialom, T. (2023). Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288. +[35] Zhang, B. and Sennrich, R. (2019). Root mean square layer normalization. Advances in Neural Information Processing Systems, 32. +[36] Zhou, D., Chen, J., Cao, Y., Yang, Z., and Gu, Q. (2018). On the Convergence of Adaptive Gradient Methods for Nonconvex Optimization. arXiv preprint arXiv:1808.05671. +[37] Zhu, M. and Gupta, S. (2017). To prune, or not to prune: exploring the efficacy of pruning for model compression. arXiv preprint arXiv:1710.01878. + +# Appendix Roadmap + +This appendix provides supporting material organized as follows: + +- Experimental Setup (Appendix A): Model architectures, hyperparameters, and training configurations. +- Factorization of Representation Capacity (Appendix B): Detailed analysis showing how representation capacity matrices can be factorized for various compression techniques including quantization, sparsity, and their combinations. +- Ablation Studies on Law Formulation (Appendix C): Investigation of different noise distributions (Gaussian, Logistic, Student's t, Laplace) and functional forms (tanh, logistic) for the scaling law formulation. +- Scaling Laws for Vector Quantization (Appendix D): Implementation details and algorithms for vector quantization approaches, including forward and backward pass descriptions for HIGGS-based training. +- Theoretical Support (Appendix E): Convergence analysis for Adam optimizer with Straight Through Estimation (STE), including complete proofs and supporting lemmas. +- Improved Sparse Training via RBBM (Appendix F): Comparison of our backward mask heuristics against RigL and Gradual Magnitude Pruning, with detailed descriptions of different masking strategies. + +# A Experimental setup + +Hyperparameters. Table 2 summarizes the architectural and optimization hyperparameters used in this study. + +
Model size# Layers# Heads# EmbeddingsLearning rate
30 M656401.2 · 10-3
50 M767681.2 · 10-3
100 M8810246 · 10-4
200 M101012803 · 10-4
+ +Table 2: Key architectural and training hyperparameters for Llama family models. + +Generalization Across Model Families and Datasets. To validate that our findings are independent of the model family and dataset, we conducted comparable experiments on the OLMo2 [26] family models trained on the ClimbMix dataset [7]. OLMo2 models use no biases, employ rotary positional embeddings [32], RMSNorm [35], and reordered pre-normalization [21; 26]. We also used $\mathrm{ReLU}^2$ activation function for linear layers. + +We matched the model size range, data-model size ratios, and optimizer hyperparameters to those used in our original setup. Scaling laws of the same functional form as in Table 1, where $\rho (\mathrm{GMSE})$ takes the form of Eq. 3, were refitted from scratch. We report the corresponding estimates for parameters $(\alpha ,\beta ,E,L,F,C)$ in Table 3. Confidence intervals of one standard deviation were obtained by the bootstrapping procedure. The results match closely with those from the Llama / C4 setup, with overlapping confidence intervals. + +We use 8x80GB H100 machines for efficient training, and training one model takes on average 1 hour. To produce the full set of results we ran in total approximately 250 such training runs for various compression configurations. + +# B Factorization of Representation Capacity + +Figures 6-9 show factorization of the representation capacity matrix for various in-training compression techniques: + +1. Quantized weights and activations (Fig. 6). + +
Llama family / C4OLMo2 family / ClimbMix
α0.13 ± 0.050.18 ± 0.03
β0.33 ± 0.060.26 ± 0.02
E1.3 ± 0.51.4 ± 0.3
L1.0 ± 0.70.84 ± 0.10
F0.41 ± 0.020.37 ± 0.04
C1.39 ± 0.081.24 ± 0.13
+ +Table 3: Scaling Law hyperparameters for Llama and OMLo2 model families. + +2. Sparsity + QuEST quantizer (Fig. 7). +3. Joint sparse & quantized weights + activations (Fig. 8), for all combinations $(s_a, q_a, q_b)$ for sparsity $s_a \in [0.25, 0.5, 0.75]$ and bit widths $q_a, q_b \in [2, 4, 6]$ . +4. Sparsity + uniform quantizer with maximum absolute value as a scale (Fig. 9). + +From the factorized representation-capacity matrices we observe the following: + +1. The element-wise error of the fitted coefficients $\rho$ (from our scaling law) is of order $10^{-3}10^{-2}$ . +2. A rank-1 row-column outer product accurately approximates the matrix, confirming the multiplicative property of representation capacity $\rho$ in various scenarios. +3. Approximation error remains of the order $10^{-2}$ , except for the cases of extreme 2-bit quantization, where $\rho \lesssim 0.1$ . We explain this gap due to the poorer performance of the optimizer in these extreme compression regimes, which is not taken into account currently by our model (as it uses the same coefficients for both 16 and 2 bits). + +![](images/e428c7aca6028af348400fd9901b0e1c678ddc8201cd03a9c64fb2f11c647a0f.jpg) +Figure 6: Representation capacity coefficients for independent quantization of weights and activations. Element-wise $\rho$ fitting error is not greater than $5 \cdot 10^{-3}$ . + +![](images/64cbcb963d27ac0f792ae3f3b3125e94c0dfa744161d8685edd6d3725110ab42.jpg) + +![](images/c3eea744e082739dd4e195f842ce6d1677842a783dae4c5679b2abf71ba04642.jpg) + +# C Ablation studies on Law Formulation + +# C.1 Evaluating RMSE across Different Distributions + +We investigate how the choice of noise distribution used in our law formulation from Sec. 4.1 affects the predicted representation capacity. In Figure 10a we plot the mapping $\rho (MSE)$ for different bit widths using Logistic, Student's t, and Laplace noise distributions. Each distribution is rescaled to have zero mean and unit variance. + +We observe that, no matter which noise distribution we choose, the mapping $\rho (MSE)$ always remains strictly monotonically decreasing. In principle, one could use heavilytailed distributions (for example, Student-t or Laplace) to give more weight to extreme outlier errors. However, this leads to a smaller range of MSE values. By contrast, assuming Gaussian noise—which we propose—produces the widest spread of MSE, which in turn allows for a better fit for the scaling law. In short, although + +![](images/d473c6ef6342b1f1ae137e6c2eb3e1ab8a0cbb05775fff6b11412c71f81222e5.jpg) +Figure 7: Representation capacity coefficients with fit errors in case of sparsity combined with the QuEST quantization. + +![](images/62fe00bf37c3eb9861b7d900989d2f22ecfe832d8a6bce17da39abdf3b2bfaf8.jpg) + +![](images/d902333752ab783928663f0640c28af8c875fa605d2483a03e2f00dbc415b1cf.jpg) + +![](images/67e163bc1d541f29cf98ffc4ec1a47fe8c987f7f2e70469fdbce5edfcd646e37.jpg) +Figure 8: Representation capacity fit errors for sparse+quantized weights and quantized activations. Error bars denote $\pm 1$ standard deviation from the mean. + +![](images/2c4186f792dadcb2b0e1e43daaea0c9c2b5926a85f4f9192f32cc48585e0111f.jpg) +Figure 9: Representation capacity coefficients matrix for sparsity applied with uniform quantization. Element-wise $\rho$ fitting error is not greater than $2 \cdot 10^{-3}$ . + +![](images/ef31678d2d2809f8a462fcebb1a23ab4b3c51452cb1ea7acbd56dea02eca6ca4.jpg) + +![](images/4e9803c42811673ac8c7db2bda62608c0ce3bef988b2350a1ee544b8582e0c24.jpg) + +monotonicity is preserved under various distributions, the Gaussian MSE delivers the best overall representation capacity prediction, so we adopt it as our default formulation. + +Throughout this work, unless specified otherwise, MSE is computed over standard Gaussian input. + +# C.2 Functional form of the Law + +The behavior of $\rho (GMSE)$ observed in our experiments can be captured by fitting multiple smooth, monotonically decreasing functions, with no more than 3 additional parameters. In principle, a wide range of such functions can be used to model this relationship, depending on the desired fit properties. + +For lower overall fitting error, we found it beneficial to constrain the function to satisfy boundary conditions $f(0) = 1$ and $f(1) = 0$ . This way the correct behavior in the high-error region $MSE \lesssim 1$ is enforced, which is critical for stable predictions in the extreme compression cases. The corresponding fits are summarized in Table 4, the fitting error is calculated for the combined scaling law $L(MSE) = L(\rho (MSE))$ . + +![](images/ba1b9e8159e35352f508e7e3e67c04116fd8079bba81aacd304ff9392c6840de.jpg) +(a) Effect of input noise distribution on the mapping $\rho (MSE)$ + +![](images/418ff15f672ff6d5f53184e4ba7604b79a47f52d80341bc47dd46cb3960c6a1b.jpg) +(b) Different functions used to fit $\rho (MSE)$ + +
Functional formFitting error (RMSE)
DecoupledIndependently fitted ρ4.2 · 10-4
Tanhρ = tanh(F · log1/4 MSE)C4.7 · 10-4
Logisticρ = (1 + B · MSEA)-14.9 · 10-4
Logistic (1, 0)ρ = 1 - MSEA/1 + B · MSEA1.1 · 10-3
+ +Table 4: Functional form choices and associated fitting error. + +Throughout this work, we adopt the functional form of hyperbolic tangent as it provides the smallest fitting error. + +# D Scaling Laws for Vector Quantization + +In this section, we provide detailed information about the Vector Quantization approach used to produce the results in Figure 2(a). Algorithms 1 and 2 describe the forward and backward passes over a linear layer actively quantized with HIGGS for row-major weights. As was described earlier, our method is combines ideas from Panferov et al. [27] for the gradient estimator, and Malinovskii et al. [24] for the lattice representation. We use the trust estimation method that zeros out gradients for any point lying outside a hypersphere of radius $R$ : $\| x\| _2^2 >R^2$ . Our experiments were conducted on 30M and 50M models using the same set of hyperparameters as in Sec. 2. + +# Algorithm 1 VQ Training Forward + +1: Input: Input activations $\mathbf{x}$ , row-major weight $\mathbf{w}$ +2: $\mathbf{w}_h = \mathrm{HT}(\mathbf{w})$ +3: $\hat{\mathbf{w}}_h = \mathrm{proj}_{grid}\mathbf{w}_h$ +4: $\mathbf{y} = \mathbf{x}\hat{\mathbf{w}}_h^T$ +5: Return: $\mathbf{y}, \mathbf{x}, \hat{\mathbf{w}}_h, M_{grid}(\mathbf{w}_h; \hat{\mathbf{w}}_h)$ + +# E Theoretical Support + +Here we provide the full proof of Theorem 1 giving a convergence analysis of the Adam optimizer when used with STE. For completeness, the description of the algorithm is presented in the Algorithm 3. + +Algorithm 2 VQ Training Backward + +1: Input: $\frac{\partial L}{\partial \mathbf{y}}$ , $\mathbf{x}$ , $\hat{\mathbf{w}}_h$ , $M_{grid}(\mathbf{w}_h; \hat{\mathbf{w}}_h)$ +2: $\frac{\partial L}{\partial \mathbf{x}} = \frac{\partial L}{\partial \mathbf{y}} \hat{\mathbf{w}}_h$ +3: $\frac{\partial L}{\partial \hat{\mathbf{w}}_h} = \mathbf{x}^T \frac{\partial L}{\partial \mathbf{y}}$ +4: $\frac{\partial L}{\partial \mathbf{w}} = \mathrm{IHT}\left(M_{grid}(\mathbf{w}_h; \hat{\mathbf{w}}_h) \odot \frac{\partial L}{\partial \hat{\mathbf{w}}_h}\right)$ +5: Return: $\frac{\partial L}{\partial \mathbf{x}}, \frac{\partial L}{\partial \mathbf{w}}$ + +Algorithm 3 Adam with Straight Through Estimation (STE) and AMSGrad normalization + +1: Input: parameters $\beta_{1}$ , $\beta_{2} \in (0, 1)$ , $\epsilon > 0$ , step-size $\eta > 0$ , $\theta_{1} \in \mathbb{R}^{d}$ , $m_{0} = v_{0} = \widetilde{v}_{0} = 0_{N}$ +2: for $t = \{1, 2, \dots, T\}$ do +3: $\widehat{\theta}_t = \mathcal{C}(\theta_t)$ Compress the model via quantization and/or sparsification +4: $g_{t} = \widetilde{\nabla}_{\theta}f(\widehat{\theta}_{t})$ Compute STE for compressed model +5: $m_{t} = \beta_{1}m_{t - 1} + (1 - \beta_{1})g_{t}$ Update first-order gradient momentum +6: $v_{t} = \beta_{2}v_{t - 1} + (1 - \beta_{2})g_{t}^{2}$ Update second-order gradient momentum +7: $\tilde{v}_t = \max (v_t,\tilde{v}_{t - 1})$ Apply AMSGrad normalization +8: $\theta_{t + 1} = \theta_t - \eta \frac{m_t}{\sqrt{\tilde{\nu}_t + \epsilon}}$ Update the uncompressed model parameters +9: end for + +Proof. Let $G$ be the gradient bound with respect to $\ell_2$ norm, that is, $\| g_t\| _2\leq G$ . Using the relationship between $\ell_2$ and $\ell_{\infty}$ norms, we conclude $G\leq \sqrt{d} G_{\infty}$ . Let $\Gamma_t = \mathrm{Diag}^{-1 / 2}(\tilde{v}_t + \epsilon)$ be the preconditioning (diagonal) matrix and rewrite the main update rule as + +$$ +\theta_ {t + 1} = \theta_ {t} - \eta \Gamma_ {t} m _ {t}. +$$ + +Letting $\theta_0 = \theta_1$ , define virtual iterates $x_{t}$ as follows: + +$$ +x _ {t} = \frac {1}{1 - \beta_ {1}} \theta_ {t} - \frac {\beta_ {1}}{1 - \beta_ {1}} \theta_ {t - 1}. +$$ + +In particular, $x_{1} = \theta_{1}$ . Then, the update rule for the virtual iterates becomes + +$$ +\begin{array}{l} x _ {t + 1} - x _ {t} = \frac {1}{1 - \beta_ {1}} (\theta_ {t + 1} - \theta_ {t}) - \frac {\beta_ {1}}{1 - \beta_ {1}} (\theta_ {t} - \theta_ {t - 1}) \\ { = } { - \frac { \eta } { 1 - \beta _ { 1 } } \Gamma _ { t } m _ { t } + \frac { \eta \beta _ { 1 } } { 1 - \beta _ { 1 } } \Gamma _ { t - 1 } m _ { t - 1 } } \\ = - \frac {\eta}{1 - \beta_ {1}} \Gamma_ {t} m _ {t} + \frac {\eta \beta_ {1}}{1 - \beta_ {1}} \Gamma_ {t - 1} m _ {t - 1} \pm \frac {\eta \beta_ {1}}{1 - \beta_ {1}} \Gamma_ {t} m _ {t - 1} \\ = - \frac {\eta}{1 - \beta_ {1}} \Gamma_ {t} (m _ {t} - \beta m _ {t - 1}) + \frac {\eta \beta_ {1}}{1 - \beta_ {1}} \underbrace {(\Gamma_ {t - 1} - \Gamma_ {t})} _ {\stackrel {\mathrm {d e f}} {=}} m _ {t - 1} \\ = - \eta \Gamma_ {t} g _ {t} + \frac {\eta \beta_ {1}}{1 - \beta_ {1}} \Delta \Gamma_ {t} m _ {t - 1}. \\ \end{array} +$$ + +Next we apply smoothness (Assumption 1) of the loss function $f$ over the iterates $x_{t}$ : + +$$ +f (x _ {t + 1}) \leq f (x _ {t}) + \langle \nabla f (x _ {t}), x _ {t + 1} - x _ {t} \rangle + \frac {L}{2} \| x _ {t + 1} - x _ {t} \| ^ {2}. +$$ + +Taking expectation and splitting the inner product into two parts, we obtain + +$$ +\begin{array}{l} \mathbb {E} [ f (x _ {t + 1}) ] - \mathbb {E} [ f (x _ {t}) ] \\ \leq - \eta \mathbb {E} \left[ \left\langle \nabla f (x _ {t}), \Gamma_ {t} g _ {t} \right\rangle \right] + \eta \mathbb {E} \left[ \left\langle \nabla f (x _ {t}), \frac {\beta_ {1}}{1 - \beta_ {1}} \Delta \Gamma_ {t} m _ {t - 1} \right\rangle \right] \\ + \frac {\eta^ {2} L}{2} \mathbb {E} \left[ \left\| \Gamma_ {t} g _ {t} - \frac {\beta_ {1}}{1 - \beta_ {1}} \Delta \Gamma_ {t} m _ {t - 1} \right\| ^ {2} \right] \\ = \underbrace {- \eta \mathbb {E} \left[ \left\langle \nabla f \left(\theta_ {t}\right) , \Gamma_ {t} g _ {t} \right\rangle \right]} _ {I} + \underbrace {\eta \mathbb {E} \left[ \left\langle \nabla f (x _ {t}) , \frac {\beta_ {1}}{1 - \beta_ {1}} \Delta \Gamma_ {t} m _ {t - 1} \right\rangle \right]} _ {I I} \\ + \underbrace {\frac {\eta^ {2} L}{2} \mathbb {E} \left[ \left\| \Gamma_ {t} g _ {t} - \frac {\beta_ {1}}{1 - \beta_ {1}} \Delta \Gamma_ {t} m _ {t - 1} \right\| ^ {2} \right]} _ {I I I} + \underbrace {\eta \mathbb {E} \left[ \langle \nabla f (\theta_ {t}) - \nabla f (x _ {t}) , \Gamma_ {t} g _ {t} \rangle \right]} _ {I V}. \tag {5} \\ \end{array} +$$ + +In the following, we bound all the four terms mentioned above. + +Bounding term I. Let $\|\Delta \Gamma_t\|$ be the operator norm (with respect to $\ell_2$ norm) of the matrix $\Delta \Gamma_t$ . Since $\Delta \Gamma_t$ is diagonal, the spectral norm coincides with the largest diagonal value in magnitude. Using unbiasedness of the stochastic gradients, we have + +$$ +\begin{array}{l} I = - \eta \mathbb {E} \left[ \left\langle \nabla f \left(\theta_ {t}\right), \Gamma_ {t - 1} g _ {t} \right\rangle \right] - \eta \mathbb {E} \left[ \left\langle \nabla f \left(\theta_ {t}\right), \Delta \Gamma_ {t} g _ {t} \right\rangle \right] \\ \leq - \eta \mathbb {E} \left[ \left\langle \nabla f (\theta_ {t}), \Gamma_ {t - 1} \nabla f (\widehat {\theta} _ {t}) \right\rangle \right] + \eta G ^ {2} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ]. \\ = - \eta \mathbb {E} \left[ \left\langle \nabla f (\widehat {\theta} _ {t}), \Gamma_ {t - 1} \nabla f (\widehat {\theta} _ {t}) \right\rangle \right] + \eta \mathbb {E} \left[ \left\langle \nabla f (\widehat {\theta} _ {t}) - \nabla f (\theta_ {t}), \Gamma_ {t - 1} \nabla f (\widehat {\theta} _ {t}) \right\rangle \right] + \eta G ^ {2} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ]. \\ \leq - \eta \lambda_ {\min } (\Gamma_ {t - 1}) \mathbb {E} [ \| \nabla f (\widehat {\theta_ {t}}) \| ^ {2} ] + \eta L G \mathbb {E} [ \| \Gamma_ {t - 1} \| \| \widehat {\theta_ {t}} - \theta_ {t} \| ] + \eta G ^ {2} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ] \\ \leq - \frac {\eta}{C _ {0}} \mathbb {E} [ \| \nabla f (\widehat {\theta_ {t}}) \| ^ {2} ] + \eta L G \mathbb {E} [ \| \widehat {\theta_ {t}} - \theta_ {t} \| \cdot \| \Gamma_ {t - 1} \| ] + \eta G ^ {2} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ], \tag {6} \\ \end{array} +$$ + +where we used Assumption 2 and Lemma 3 to bound + +$$ +\lambda_ {\min } \left(\Gamma_ {t - 1}\right) \geq \left(\| \tilde {v} _ {t - 1} \| _ {\max } + \epsilon\right) ^ {- 1 / 2} \geq \left(G ^ {2} + \epsilon\right) ^ {- 1 / 2} \stackrel {\text {d e f}} {=} \frac {1}{C _ {0}}. +$$ + +Bounding term II. Splitting the inner product again and bounded each term, we get + +$$ +\begin{array}{l} I I = \eta \mathbb {E} \left[ \left\langle \nabla f (\theta_ {t}), \frac {\beta_ {1}}{1 - \beta_ {1}} \Delta \Gamma_ {t} m _ {t - 1} \right\rangle \right] + \eta \mathbb {E} \left[ \left\langle \nabla f (x _ {t}) - \nabla f (\theta_ {t}), \frac {\beta_ {1}}{1 - \beta_ {1}} \Delta \Gamma_ {t} m _ {t - 1} \right\rangle \right] \\ \leq \frac {\eta \beta_ {1}}{1 - \beta_ {1}} \mathbb {E} \left[ \| \nabla f (\theta_ {t}) \| \| \Delta \Gamma_ {t} m _ {t - 1} \| \right] + \frac {\eta^ {2} L \beta_ {1} ^ {2}}{(1 - \beta_ {1}) ^ {2}} \mathbb {E} \left[ \| \Gamma_ {t - 1} m _ {t - 1} \| \cdot \| \Delta \Gamma_ {t} m _ {t - 1} \| \right] \\ \leq \frac {\eta \beta_ {1}}{1 - \beta_ {1}} G ^ {2} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ] + \frac {\eta^ {2} \beta_ {1} ^ {2} L G ^ {2}}{(1 - \beta_ {1}) ^ {2} \sqrt {\epsilon}} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ], \tag {7} \\ \end{array} +$$ + +where we used the fact that the largest eigenvalue $\lambda_{\mathrm{max}}(\Gamma_t) = \| \Gamma_t\| = (\| \tilde{v}_t\|_{\min} + \epsilon)^{-1 / 2}\leq \epsilon^{-1 / 2}$ . The second inequality is due to the smoothness of $f$ , and the last inequality is due to Lemma 1, Assumption 2 and the property of norms. + +Bounding term III. This term can be bounded as follows: + +$$ +\begin{array}{l} I I I \leq \eta^ {2} L \mathbb {E} \left[ \| \Gamma_ {t} g _ {t} \| ^ {2} \right] + \frac {\eta^ {2} L \beta_ {1} ^ {2}}{(1 - \beta_ {1}) ^ {2}} \mathbb {E} \left[ \| \Delta \Gamma_ {t} m _ {t - 1} \| ^ {2} \right] \\ \leq \frac {\eta^ {2} L}{\epsilon} \mathbb {E} \left[ \| g _ {t} - \nabla f (\widehat {\theta} _ {t}) + \nabla f (\widehat {\theta} _ {t}) \| ^ {2} \right] + \frac {\eta^ {2} L \beta_ {1} ^ {2}}{(1 - \beta_ {1}) ^ {2}} \mathbb {E} \left[ \| \Delta \Gamma_ {t} m _ {t - 1} \| ^ {2} \right] \\ \leq \frac {\eta^ {2} L}{\epsilon} \left(\mathbb {E} [ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} ] + \sigma^ {2}\right) + \frac {\eta^ {2} L \beta_ {1} ^ {2} G ^ {2}}{(1 - \beta_ {1}) ^ {2}} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ^ {2} ] \\ \leq \frac {\eta^ {2} L}{\epsilon} \mathbb {E} [ \| \nabla f (\widehat {\theta_ {t}}) \| ^ {2} ] + \frac {\eta^ {2} L \sigma^ {2}}{\epsilon} + \frac {\eta^ {2} L \beta_ {1} ^ {2} G ^ {2}}{(1 - \beta_ {1}) ^ {2}} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ^ {2} ], \tag {8} \\ \end{array} +$$ + +where we used Assumption 3 that $g_{t}$ is unbiased with bounded variance $\sigma^2$ . + +Bounding term IV. Finally, for the fourth term, we have + +$$ +\begin{array}{l} I V = \eta \mathbb {E} \left[ \langle \nabla f (\theta_ {t}) - \nabla f (x _ {t}), \Gamma_ {t - 1} g _ {t} \rangle \right] + \eta \mathbb {E} \left[ \langle \nabla f (\theta_ {t}) - \nabla f (x _ {t}), \Delta \Gamma_ {t} g _ {t} \rangle \right] \\ \leq \eta \mathbb {E} \left[ \left\langle \nabla f (\theta_ {t}) - \nabla f (x _ {t}), \Gamma_ {t - 1} \nabla f (\widehat {\theta} _ {t}) \right\rangle \right] + \frac {\eta^ {2} L \beta_ {1}}{1 - \beta_ {1}} \mathbb {E} \left[ \| \Gamma_ {t} m _ {t - 1} \| \| \Delta \Gamma_ {t} g _ {t} \| \right] \\ \stackrel {(a)} {\leq} \frac {\eta \rho}{2 \epsilon} \mathbb {E} [ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} ] + \frac {\eta}{2 \rho} \mathbb {E} [ \| \nabla f (\theta_ {t}) - \nabla f (x _ {t}) \| ^ {2} ] + \frac {\eta^ {2} \beta_ {1} L G ^ {2}}{(1 - \beta_ {1}) \sqrt {\epsilon}} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ] \\ \stackrel {(b)} {\leq} \frac {\eta \rho}{2 \epsilon} \mathbb {E} [ \| \nabla f (\widehat {\theta_ {t}}) \| ^ {2} ] + \frac {\eta^ {3} \beta_ {1} ^ {2} L ^ {2}}{2 (1 - \beta_ {1}) ^ {2} \rho} \mathbb {E} \left[ \| \Gamma_ {t} m _ {t - 1} \| ^ {2} \right] + \frac {\eta^ {2} \beta_ {1} L G ^ {2}}{(1 - \beta_ {1}) \sqrt {\epsilon}} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ] \\ \leq \frac {\eta \rho}{2 \epsilon} \mathbb {E} [ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} ] + \frac {\eta^ {3} \beta_ {1} ^ {2} L ^ {2}}{2 (1 - \beta_ {1}) ^ {2} \rho \epsilon} \mathbb {E} \left[ \| m _ {t - 1} \| ^ {2} \right] + \frac {\eta^ {2} L \beta_ {1} G ^ {2}}{(1 - \beta_ {1}) \sqrt {\epsilon}} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ], \tag {9} \\ \end{array} +$$ + +where (a) is due to Young's inequality and (b) is based on Assumption 1. Now integrating (6), (7), (8), (9) into (5), + +$$ +{ I } { \leq } { - \frac { \eta } { C _ { 0 } } \mathbb { E } [ \| \nabla f ( \widehat { \theta } _ { t } ) \| ^ { 2 } ] + \eta L G \mathbb { E } [ \| \widehat { \theta } _ { t } - \theta _ { t } \| \cdot \| \Gamma _ { t - 1 } \| ] + \eta G ^ { 2 } \mathbb { E } [ \| \Delta \Gamma _ { t } \| ] } +$$ + +$$ +{ I I } { \leq } { \frac { \eta \beta _ { 1 } } { 1 - \beta _ { 1 } } G ^ { 2 } \mathbb { E } [ \| \Delta \Gamma _ { t } \| ] + \frac { \eta ^ { 2 } \beta _ { 1 } ^ { 2 } L G ^ { 2 } } { ( 1 - \beta _ { 1 } ) ^ { 2 } \sqrt { \epsilon } } \mathbb { E } [ \| \Delta \Gamma _ { t } \| ] } +$$ + +$$ +I I I \leq \frac {\eta^ {2} L}{\epsilon} \mathbb {E} [ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} ] + \frac {\eta^ {2} L \sigma^ {2}}{\epsilon} + \frac {\eta^ {2} \beta_ {1} ^ {2} L G ^ {2}}{(1 - \beta_ {1}) ^ {2}} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ^ {2} ] +$$ + +$$ +{ I V } { \leq } { \frac { \eta \rho } { 2 \epsilon } \mathbb { E } [ \| \nabla f ( \widehat { \theta _ { t } } ) \| ^ { 2 } ] + \frac { \eta ^ { 3 } \beta _ { 1 } ^ { 2 } L ^ { 2 } } { 2 ( 1 - \beta _ { 1 } ) ^ { 2 } \rho \epsilon } \mathbb { E } \left[ \| m _ { t - 1 } \| ^ { 2 } \right] + \frac { \eta ^ { 2 } L \beta _ { 1 } G ^ { 2 } } { ( 1 - \beta _ { 1 } ) \sqrt { \epsilon } } \mathbb { E } [ \| \Delta \Gamma _ { t } \| ] , } +$$ + +and taking the telescoping summation over $t = 1,\ldots ,T$ , we obtain + +$$ +\begin{array}{l} \mathbb {E} [ f (x _ {T + 1}) ] - \mathbb {E} [ f (x _ {1}) ] \\ \leq \left(- \frac {\eta}{C _ {0}} + \frac {\eta^ {2} L}{\epsilon} + \frac {\eta \rho}{2 \epsilon}\right) \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} ] + \frac {T \eta^ {2} L \sigma^ {2}}{\epsilon} + \frac {\eta^ {3} \beta_ {1} ^ {2} L ^ {2}}{2 (1 - \beta_ {1}) ^ {2} \rho \epsilon} \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \| m _ {t - 1} \| ^ {2} \right] \\ + \left(\frac {\eta G ^ {2}}{1 - \beta_ {1}} + \frac {\eta^ {2} \beta_ {1} L G ^ {2}}{(1 - \beta_ {1}) ^ {2} \sqrt {\epsilon}}\right) \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ] + \frac {\eta^ {2} \beta_ {1} ^ {2} L G ^ {2}}{(1 - \beta_ {1}) ^ {2}} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ^ {2} ] + \frac {\eta L G}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \widehat {\theta} _ {t} - \theta_ {t} \| \cdot \| \Gamma_ {t - 1} \| ] \\ \leq \left(- \frac {\eta}{C _ {0}} + \frac {\eta^ {2} L}{\epsilon} + \frac {\eta \rho}{2 \epsilon} + \frac {\eta^ {3} \beta_ {2} ^ {2} L ^ {2}}{2 (1 - \beta_ {1}) ^ {2} \rho \epsilon}\right) \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\widehat {\theta_ {t}}) \| ^ {2} ] + \frac {T \eta^ {2} L \sigma^ {2}}{\epsilon} + \frac {T \eta^ {3} L ^ {2} \beta_ {1} ^ {2} \sigma^ {2}}{2 (1 - \beta_ {1}) ^ {2} \rho \epsilon} \\ + \left(\frac {\eta G ^ {2}}{1 - \beta_ {1}} + \frac {\eta^ {2} \beta_ {1} L G ^ {2}}{(1 - \beta_ {1}) ^ {2} \sqrt {\epsilon}}\right) \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ] + \frac {\eta^ {2} \beta_ {1} ^ {2} L G ^ {2}}{(1 - \beta_ {1}) ^ {2}} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \Delta \Gamma_ {t} \| ^ {2} ] + \frac {\eta L G}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \widehat {\theta_ {t}} - \theta_ {t} \| \cdot \| \Gamma_ {t - 1} \| ], \\ \end{array} +$$ + +where we used Lemma 1. Choosing $\rho = \frac{\epsilon}{2C_0}$ and $\eta \leq \eta_0 \stackrel{\mathrm{def}}{=} \frac{\epsilon(1 - \beta_1)}{4LC_0}$ and using Lemma 2, we get + +$$ +\begin{array}{l} \mathbb {E} [ f (x _ {T + 1}) - f (x _ {1}) ] \leq - \frac {\eta}{2 C _ {0}} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\widehat {\theta_ {t}}) \| ^ {2} ] + \frac {T \eta^ {2} L \sigma^ {2}}{\epsilon} + \frac {T \eta^ {3} L ^ {2} C _ {0} \beta_ {1} ^ {2} \sigma^ {2}}{(1 - \beta_ {1}) ^ {2} \epsilon^ {2}} \\ + \frac {2 \eta G ^ {2}}{(1 - \beta_ {1}) \sqrt {\epsilon}} + \frac {4 \eta^ {2} \beta_ {1} L G ^ {2}}{(1 - \beta_ {1}) ^ {2} \epsilon} + \frac {\eta L G}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \widehat {\theta} _ {t} - \theta_ {t} \| \cdot \| \Gamma_ {t - 1} \| ]. \\ \end{array} +$$ + +Re-arranging terms, we get + +$$ +\begin{array}{l} \frac {1}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} ] \leq 2 C _ {0} \left(\frac {f (\theta_ {1}) - f ^ {*}}{T \eta} + \frac {\eta L \sigma^ {2}}{\epsilon} + \frac {\eta^ {2} L ^ {2} C _ {0} \beta_ {1} ^ {2} \sigma^ {2}}{(1 - \beta_ {1}) ^ {2} \epsilon^ {2}}\right) \\ + 4 C _ {0} \left(\frac {G ^ {2}}{T (1 - \beta_ {1}) \sqrt {\epsilon}} + \frac {\eta \beta_ {1} L G ^ {2}}{T (1 - \beta_ {1}) ^ {2} \epsilon}\right) + \frac {2 C _ {0} L G}{T} \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \frac {\| \widehat {\theta} _ {t} - \theta_ {t} \| _ {2}}{\sqrt {\epsilon + \| \widetilde {v} _ {t - 1} \| _ {\min}}} \right], \\ \end{array} +$$ + +where in the last inequality we used $x_{1} = \theta_{1}$ and the lower bound $f^{*}\leq f(\theta)$ for all $\theta \in \mathbb{R}^d$ . Finally, choosing $\eta = \min (\eta_0,\frac{1}{\sqrt{T}})$ and considering the two cases, we continue + +$$ +\begin{array}{l} \frac {1}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} ] \leq 2 C _ {0} \left(\max \left(1, \frac {1}{\eta_ {0} \sqrt {T}}\right) \frac {f (\theta_ {1}) - f ^ {*}}{\sqrt {T}} + \frac {L \sigma^ {2}}{\epsilon \sqrt {T}} + \frac {L ^ {2} C _ {0} \beta_ {1} ^ {2} \sigma^ {2}}{(1 - \beta_ {1}) ^ {2} \epsilon^ {2} T}\right) \\ + 4 C _ {0} \left(\frac {G ^ {2}}{T (1 - \beta_ {1}) \sqrt {\epsilon}} + \frac {\beta_ {1} L G ^ {2}}{T ^ {3 / 2} (1 - \beta_ {1}) ^ {2} \epsilon}\right) + \frac {2 C _ {0} L G}{T} \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \frac {\| \widehat {\theta} _ {t} - \theta_ {t} \| _ {2}}{\sqrt {\epsilon + \| \tilde {v} _ {t - 1} \| _ {\min}}} \right] \\ \leq 2 C _ {0} \left(\frac {f \left(\theta_ {1}\right) - f ^ {*}}{\sqrt {T}} + \frac {L \sigma^ {2}}{\epsilon \sqrt {T}} + \frac {L ^ {2} C _ {0} \beta_ {1} ^ {2} \sigma^ {2}}{\left(1 - \beta_ {1}\right) ^ {2} \epsilon^ {2} T}\right) \\ + 4 C _ {0} \left(\frac {f \left(\theta_ {1}\right) - f ^ {*}}{2 \eta_ {0} T} + \frac {G ^ {2}}{T \left(1 - \beta_ {1}\right) \sqrt {\epsilon}} + \frac {\beta_ {1} L G ^ {2}}{T ^ {3 / 2} \left(1 - \beta_ {1}\right) ^ {2} \epsilon}\right) \\ + \frac {2 C _ {0} L G}{\sqrt {\epsilon}} \mathbb {E} \left[ \frac {1}{T} \sum_ {t = 1} ^ {T} \| \widehat {\theta_ {t}} - \theta_ {t} \| _ {2} \right], \\ \end{array} +$$ + +Using the bounds $G \leq \sqrt{N} G_{\infty}$ , $C_0 \leq \frac{\sqrt{N}}{2} C$ and surpassing higher order terms, we simplify the bound to + +$$ +\frac {1}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} ] \leq \frac {C L G _ {\infty}}{\sqrt {\epsilon}} \mathbb {E} \left[ \frac {1}{T} \sum_ {t = 1} ^ {T} \| \widehat {\theta} _ {t} - \theta_ {t} \| _ {2} \right] \cdot N + \frac {C \sqrt {N}}{\sqrt {T}} \left(f (\theta_ {1}) - f ^ {*} + \frac {L \sigma^ {2}}{\epsilon}\right) + \mathcal {O} \left(\frac {N ^ {3 / 2}}{T}\right), +$$ + +which completes the proof of the theorem. + +![](images/d6527139f08518c9c0f252a52b549a35bd32c8f3718abb4acf4684e981cc59d2.jpg) + +Lemma 1. For any $t \geq 1$ the following bounds hold: + +$$ +\left\| m _ {t} \right\| \leq G, \quad \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \left\| m _ {t} \right\| ^ {2} \right] \leq T \sigma^ {2} + \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \left\| \nabla f (\widehat {\theta} _ {t}) \right\| ^ {2} \right] \tag {10} +$$ + +Proof. Let us start with the proof of the first bound on $m_t$ . + +$$ +\begin{array}{l} \left\| m _ {t + 1} \right\| ^ {2} = \left\| \beta_ {1} m _ {t} + (1 - \beta_ {1}) g _ {t + 1} \right\| ^ {2} \\ \leq \beta_ {1} \| m _ {t} \| ^ {2} + (1 - \beta_ {1}) \| g _ {t + 1} \| ^ {2} \\ \leq \beta_ {1} ^ {t} \| m _ {1} \| + (1 - \beta_ {1}) \sum_ {\tau = 2} ^ {t + 1} \beta_ {1} ^ {t + 1 - \tau} \| g _ {\tau} \| ^ {2} = (1 - \beta_ {1}) \sum_ {\tau = 1} ^ {t + 1} \beta_ {1} ^ {t + 1 - \tau} \| g _ {\tau} \| ^ {2}. \\ \end{array} +$$ + +Using the bounded gradient assumption, we get + +$$ +\left\| m _ {t} \right\| ^ {2} \leq (1 - \beta_ {1}) G ^ {2} \sum_ {\tau = 1} ^ {t} \beta_ {1} ^ {t - \tau} \leq G ^ {2}. +$$ + +To derive the bound with expectation, we apply Cauchy-Schwartz inequality and the bounded variance assumption: + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \| m _ {t} \| ^ {2} \right] \leq (1 - \beta_ {1}) \sum_ {t = 1} ^ {T} \sum_ {\tau = 1} ^ {t} \beta_ {1} ^ {t - \tau} \mathbb {E} \left[ \| g _ {\tau} \| ^ {2} \right] \\ \leq \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \| g _ {t} \| ^ {2} \right] = \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \| g _ {t} - \nabla f (\widehat {\theta} _ {t}) + \nabla f (\widehat {\theta} _ {t}) \| ^ {2} \right] \\ \leq \sum_ {t = 1} ^ {T} \left(\sigma^ {2} + \mathbb {E} \left[ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} \right]\right) = T \sigma^ {2} + \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} \right]. \\ \end{array} +$$ + +![](images/a260dd6644c47a41ba0d0379a1f4caf1f4fe79216b22ea6404bb6050f76417ef.jpg) + +Lemma 2. For $\Delta \Gamma_t = \Gamma_{t-1} - \Gamma_t$ we have + +$$ +\sum_ {t = 1} ^ {T} \| \Delta \Gamma_ {t} \| \leq \frac {1}{\sqrt {\epsilon}}, \quad \sum_ {t = 1} ^ {T} \| \Delta \Gamma_ {t} \| ^ {2} \leq \frac {1}{\epsilon}. +$$ + +Proof. From the definitions of $\Gamma_t = \mathrm{Diag}^{-1/2}(\tilde{v}_t + \epsilon)$ and $\tilde{v}_t = \max(v_t, \tilde{v}_{t-1})$ imply that $\Delta \Gamma_t = \Gamma_{t-1} - \Gamma_t$ is positive semidefinite. Hence, $\|\Delta \Gamma_t\| = \lambda_{\max}(\Delta \Gamma_t) \geq 0$ . Using the convexity of $\lambda_{\max}$ over symmetric matrices, we get + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \| \Delta \Gamma_ {t} \| = \max _ {i} \sum_ {t = 1} ^ {T} \Delta \Gamma_ {t, i} \\ = \max _ {i} \sum_ {t = 1} ^ {T} \left(\frac {1}{\sqrt {\tilde {v} _ {t - 1 , i} + \epsilon}} - \frac {1}{\sqrt {\tilde {v} _ {t , i} + \epsilon}}\right) = \max _ {i} \left(\frac {1}{\sqrt {\tilde {v} _ {0 , i} + \epsilon}} - \frac {1}{\sqrt {\tilde {v} _ {T , i} + \epsilon}}\right) \leq \frac {1}{\sqrt {\epsilon}} \\ \end{array} +$$ + +For the second sum of squared norms, notice that for scalars $a \geq b \geq 0$ , it holds that + +$$ +(a - b) ^ {2} \leq (a - b) (a + b) = a ^ {2} - b ^ {2}. +$$ + +Therefore, the above derivation can be repeated without the square roots as follows: + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \| \Delta \Gamma_ {t} \| ^ {2} = \max _ {i} \sum_ {t = 1} ^ {T} \Delta \Gamma_ {t, i} ^ {2} \\ = \max _ {i} \sum_ {t = 1} ^ {T} \left(\frac {1}{\sqrt {\tilde {v} _ {t - 1 , i} + \epsilon}} - \frac {1}{\sqrt {\tilde {v} _ {t , i} + \epsilon}}\right) ^ {2} \\ = \max _ {i} \sum_ {t = 1} ^ {T} \left(\frac {1}{\tilde {v} _ {t - 1 , i} + \epsilon} - \frac {1}{\tilde {v} _ {t , i} + \epsilon}\right) = \max _ {i} \left(\frac {1}{\tilde {v} _ {0 , i} + \epsilon} - \frac {1}{\tilde {v} _ {T , i} + \epsilon}\right) \leq \frac {1}{\epsilon}, \\ \end{array} +$$ + +which completes the proof. + +Lemma 3. For all iterates $t \geq 1$ the following bound holds + +$$ +\| \tilde {v} _ {t} \| _ {\infty} \leq G ^ {2}. +$$ + +Proof. From the update rules we get the bound for $v_{t}$ using the initialization $v_{0} = 0$ : + +$$ +\begin{array}{l} \left\| v _ {t} \right\| _ {\infty} \leq \left\| v _ {t} \right\| _ {1} \leq \beta_ {2} \left\| v _ {t - 1} \right\| _ {1} + \left(1 - \beta_ {2}\right) \left\| g _ {t} \right\| ^ {2} \\ \leq \beta_ {2} \| v _ {t - 1} \| _ {1} + (1 - \beta_ {2}) G ^ {2} \\ \leq \beta_ {2} ^ {t} \| v _ {0} \| _ {1} + (1 - \beta_ {2}) G ^ {2} \sum_ {\tau = 0} ^ {t - 1} \beta_ {2} ^ {\tau} \leq G ^ {2}. \\ \end{array} +$$ + +Hence, using the update rule of $\tilde{v}_t$ and initialization $\tilde{v}_0 = 0$ , we conclude + +$$ +\left\| \tilde {v} _ {t} \right\| _ {\infty} \leq \max (\left\| v _ {t} \right\| _ {\infty}, \left\| \tilde {v} _ {t - 1} \right\| _ {\infty}) \leq G ^ {2}. +$$ + +Next, we simplify the optimization setup by considering SGD optimizer over (still generally nonconvex) quadratics. In this special case, we provide improved and generally optimal asymptotic convergence rate. Moreover, we do not use the bounded gradient condition (i.e., $\| g_t\|_{\infty}\leq G_{\infty}$ ) of Assumption 2 in this analysis. + +More formally, consider iterates $\theta_{t + 1} = \theta_t - \eta \widetilde{\nabla}_\theta f(\widehat{\theta}_t)$ , where $\widehat{\theta}_t = \mathcal{C}(\theta_t)$ is the compressed model. Suppose that the loss function is quadratic with Hessian matrix $\mathbf{H}\in \mathbb{R}^{N\times N}$ and our compression scheme $\mathcal{C}\colon \mathbb{R}^N\to \mathbb{R}^N$ is unbiased, namely $\mathbb{E}_{\mathcal{C}}[\widehat{\theta}_t] = \theta_t$ . Since the loss is quadratic, we have + +$$ +\nabla f (\widehat {\theta} _ {t}) = \nabla f \left(\theta_ {t} + \left(\widehat {\theta} _ {t} - \theta_ {t}\right)\right) = \nabla f \left(\theta_ {t}\right) + \mathbf {H} \left(\widehat {\theta} _ {t} - \theta_ {t}\right). +$$ + +Denote by $\mathbb{E}_t = \mathbb{E}[\cdot |\theta_t]$ the conditional expectation conditioned on iterate $\theta_{t}$ , and apply unbiasedness of the compression to get + +$$ +\mathbb {E} _ {t} \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} = \| \nabla f (\theta_ {t}) \| ^ {2} + \mathbb {E} _ {t} \| \mathbf {H} (\widehat {\theta} _ {t} - \theta_ {t}) \| ^ {2} \tag {11} +$$ + +Therefore, + +$$ +\begin{array}{l} \mathbb {E} _ {t} \left[ f \left(\theta_ {t + 1}\right) - f ^ {*} \right] \\ \leq \left(f (\theta_ {t}) - f ^ {*}\right) - \eta \mathbb {E} _ {t} [ \langle \nabla f (\theta_ {t}), \widetilde {\nabla} f (\widehat {\theta} _ {t}) \rangle ] + \frac {L \eta^ {2}}{2} \mathbb {E} _ {t} [ \| \widetilde {\nabla} f (\widehat {\theta} _ {t}) \| ^ {2} ] \\ \leq \left(f (\theta_ {t}) - f ^ {*}\right) - \eta \mathbb {E} _ {t} [ \langle \nabla f (\theta_ {t}), \nabla f (\widehat {\theta} _ {t}) \rangle ] + \frac {L \eta^ {2}}{2} \mathbb {E} _ {t} [ \| \nabla f (\widehat {\theta} _ {t}) \| ^ {2} ] + \frac {L \eta^ {2}}{2} \sigma^ {2} \\ = \left(f \left(\theta_ {t}\right) - f ^ {*}\right) - \eta \mathbb {E} _ {t} \left[ \| \nabla f \left(\theta_ {t}\right) \| ^ {2} \right] + \frac {L \eta^ {2}}{2} \mathbb {E} _ {t} \left[ \| \nabla f \left(\theta_ {t}\right) \| ^ {2} \right] + \frac {L \eta^ {2}}{2} \mathbb {E} _ {t} \left[ \| \mathbf {H} \left(\widehat {\theta} _ {t} - \theta_ {t}\right) \| ^ {2} \right] + \frac {L \eta^ {2}}{2} \sigma^ {2} \\ = \left(f \left(\theta_ {t}\right) - f ^ {*}\right) - \eta (1 - L \eta / 2) \mathbb {E} _ {t} \left[ \| \nabla f \left(\theta_ {t}\right) \| ^ {2} \right] + \frac {L \eta^ {2}}{2} \left(\mathbb {E} _ {t} \left[ \| \widehat {\theta} _ {t} - \theta_ {t} \| _ {\mathbf {H} ^ {2}} ^ {2} \right] + \sigma^ {2}\right) \\ \leq (f (\theta_ {t}) - f ^ {*}) - \frac {\eta}{2} \mathbb {E} _ {t} [ \| \nabla f (\theta_ {t}) \| ^ {2} ] + \frac {L \eta^ {2}}{2} (\mathbb {E} _ {t} [ \| \widehat {\theta} _ {t} - \theta_ {t} \| _ {\mathbf {H} ^ {2}} ^ {2} ] + \sigma^ {2}), \\ \end{array} +$$ + +where we used $\mathbb{E}_t[\nabla f(\widehat{\theta}_t)] = \nabla f(\theta_t)$ due to the unbiasedness of compression and enforced the bound $\eta \leq \frac{1}{L}$ in the last step. Hence, + +$$ +\frac {1}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\theta_ {t}) \| ^ {2} ] \leq \frac {2 (f (x _ {1}) - f ^ {*})}{\eta T} + \eta L \left(\mathbb {E} \left[ \frac {1}{T} \sum_ {t = 1} ^ {T} \| \widehat {\theta} _ {t} - \theta_ {t} \| _ {\mathbf {H} ^ {2}} ^ {2} \right] + \sigma^ {2}\right). +$$ + +Choosing the step size $\eta = \min \left(\frac{1}{L},\frac{1}{\sqrt{T}}\right)$ and applying $L$ -smoothness, we get $\mathcal{O}(1 / \sqrt{T})$ convergence rate for the uncompressed iterates $\theta_t$ : + +$$ +\frac {1}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\theta_ {t}) \| ^ {2} ] \leq \frac {1}{\sqrt {T}} \left(2 (f (x _ {1}) - f ^ {*}) + L \sigma^ {2} + L ^ {3} \mathbb {E} \left[ \frac {1}{T} \sum_ {t = 1} ^ {T} \| \widehat {\theta_ {t}} - \theta_ {t} \| _ {2} ^ {2} \right]\right) \max \left(1, \frac {L}{\sqrt {T}}\right). +$$ + +For the convergence bound with respect to the compressed iterates $\widehat{\theta}_t$ , we apply (11) to quantify the exact difference in average gradient norms with the following identity: + +$$ +\frac {1}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\widehat {\theta} _ {t}) \| _ {2} ^ {2} ] = \frac {1}{T} \sum_ {t = 1} ^ {T} \mathbb {E} [ \| \nabla f (\theta_ {t}) \| _ {2} ^ {2} ] + \mathbb {E} \left[ \frac {1}{T} \sum_ {t = 1} ^ {T} \| \mathbf {H} (\widehat {\theta} _ {t} - \theta_ {t}) \| _ {2} ^ {2} \right]. +$$ + +Thus, a randomly chosen compressed iterate $\widehat{\theta}$ from $\{\widehat{\theta}_1,\dots ,\widehat{\theta}_T\}$ satisfies + +$$ +\mathbb {E} [ \| \nabla f (\widehat {\theta}) \| ^ {2} ] \leq L ^ {2} \cdot \mathbb {E} \left[ \frac {1}{T} \sum_ {t = 1} ^ {T} \| \widehat {\theta} _ {t} - \theta_ {t} \| _ {2} ^ {2} \right] + \mathcal {O} \left(\frac {1}{\sqrt {T}}\right). +$$ + +# F Improved Sparse Training via RBBM + +# F.1 Comparison against RigL + +In this subsection we compare our backward mask heuristic in Figure5d with the RigL method of (Evci et al., 2020). We run two instances of RigL: 1) the default one that updates the mask once at + +100 steps (i.e. $\Delta = 100$ ) and updates the mask for the last time at $75\%$ of training and 2) a version of RigL that is closer to our RBBM setup, which changes the mask at each step (i.e. $\Delta = 1$ ) during the entire training. In Figure 11a we observe that both versions of RigL induce lower capacity than our naive baseline for a fixed sparsity. + +![](images/72de9613677a164319ad0102b18adaacf93ee3f6e2b75da8982080d8fe1d440a.jpg) +(a) Pre-training Llama-30M with different sparsities using our MP baseline, RBBM heuristic and RigL variations. +Figure 11: Comparison of sparse training methods for Llama-30M. + +![](images/6bdf3447b19bc3b57270b0ea156230ece20c55632ace6d4c7e5a9277818e6c84.jpg) +(b) Pre-training Llama-30M with different sparsities using our constant MP (CMP) baseline, GMP and RBBM heuristic with GMP schedule. + +# F.2 Comparison against Gradual Magnitude Pruning (GMP) + +In this section we show our results for applying the GMP sparsity schedule [37] for our setup in Figure 11b. Our first baseline is the constant Magnitude Pruning (CMP), where the backward mask is identical to the forward mask (determined by Top-K) and the sparsity is kept fixed during training. The second baseline is the original GMP where sparsity increases gradually and we compare against the gradual sparsity schedule applied to our b-rms heuristic. + +We observe our RBBM heuristic with GMP schedule has lower capacity than both CMP and GMP baselines when sparsity is $< 40\%$ . However, for sparsities $\geq 40\%$ there is no significant difference in capacity between CMP and GMP schedules. + +# F.3 Backward Mask Heuristics + +In this section we provide more details about our backward heuristics. + +Our purpose is to perform sparse training for both forward and backward passes. All models are trained with the same learning rates as in the Quest project. + +Notations. Let $\theta$ be the model parameters, $M_{FW}$ be the mask for the forward pass, and $M_{BW}$ be the mask for the backward pass. + +Forward Pass. The mask for the forward pass is computed using Top-K operator, where $K$ is chosen based on the target sparsity. Supposing Top-K returns the indices of largest entries by magnitude, the $i^{th}$ entry in the forward mask for a tensor $x$ is computed using the indicator function $\mathbb{I}$ as follows: + +$$ +M _ {F W} ^ {i} (x) = \mathbb {I} [ i \in \operatorname {T o p} K (| x |) ] \tag {12} +$$ + +Backward Pass. The mask for the backward pass is computed using a few heuristics described below. + +1. fw: the backward mask is simply set to the forward mask: $M_{BW} = M_{FW}$ . This heuristic allows gradients to flow only through the largest parameters by magnitude selected by Top-K, while the low-magnitude parameters will have zero gradient +2. rms: we align the tensor $x$ with the standard normal distribution by dividing $x$ by its root mean square $RMS(x) = \sqrt{\frac{1}{n}\sum_{i=1}^{n}x_i^2}$ , which results in $||x / RMS(x)||_2^2 = n$ . For this heuristic, the + +user sets a median deviation parameter $p \in (0, 0.5)$ , which is used to determine the threshold for the backward mask $T_{RMS}(x, p) = RMS(x) \cdot ppf(0.5 + p)$ , where $ppf$ is the inverse cumulative distribution function of the standard normal distribution (see the scipy.stats(norm.ppf function). The multiplication with $RMS(x)$ has the purpose of converting the threshold for the standard normal distribution to the threshold for the vector $x$ . As a result, $M_{BW} = |x| > T_{RMS}(x, p)$ . + +3. banded-rms (b-rms): the rms heuristic has the property that the absolute values of $x$ that are larger than the threshold $T_{RMS}(x,p)$ will have value 1 in the mask, while the smaller ones will have value 0. This banded heuristic determines the backward mask using the threshold $T_{RMS}(x,p)$ computed for the rms heuristic in conjunction with the Top-K threshold (which we denote by $T_{k}$ ). We want to allow gradients to flow for the small parameters and create a band between $T_{RMS}(x,p)$ and $T_{k}$ where we do not allow gradients. Concretely, the backward mask is set as follows: $M_{BW} = (|x| < \min(T_{RMS}(x,p), T_{k})) \vee (\max(T_{RMS}(x,p), T_{k}) < |x|)$ . Since the median deviation $p$ is a hyper-parameter, we do not have any control over the relationship between $T_{RMS}(x,p)$ and $T_{k}$ and we are using the min and max functions to make sure the band is valid, e.g. the parameters do not receive gradient if they lie in the interval $[\min(T_{k}, T_{RMS}(x,p)), \max(T_{k}, T_{RMS}(x,p))]$ . + +4. area-banded-rms (a-b-rms): in the b-rms heuristic we do not have any control over the relationship between the Top-K threshold $T_{k}$ and $T_{RMS}(x,p)$ . Let us discuss the two possible cases: + +(a) $T_{k} < T_{RMS}(x,p): M_{BW} = (|x| < T_{k}) \lor (T_{RMS}(x,p) < |x|)$ , which means that all values from $x$ with a lower magnitude than $T_{k}$ and larger magnitude than $T_{RMS}(x,p)$ will get gradient, while the values in the range $[T_{k}, T_{RMS}(x,p)]$ will not receive gradient, even though they were selected among the Top-K during the forward pass. +(b) $T_{RMS}(x,p) < T_k : M_{BW} = (|x| < T_{RMS}(x,p)) \vee (T_k < |x|)$ , which is the desired case we developed the b-rms heuristic for: the largest entries from $x$ according to the Top-K rule will receive gradient, as well as the entries smaller than $T_{RMS}(x,p)$ . The entries lying in the interval $[T_{RMS}(x,p), T_k]$ will not receive gradient. + +We want to make sure that case (a) above does not happen in practice and force the heuristic to behave as in the case (b). For this, we need to change the way we compute the threshold $T_{RMS}(x,p)$ . + +The area-b-rms heuristic uses the area hyper-parameter $a \in [0,1]$ (instead of median deviation $p$ ) and expresses the width of the band starting from the Top-K parameter $T_{k}$ towards zero to compute the threshold $T_{a}$ to make sure the condition $T_{a} < T_{k}$ always holds. As a result, $M_{BW} = (|x| < T_{a}) \vee (T_{k} < |x|)$ . For example, $a = 0$ yields $T_{k} = T_{a}$ and this heuristic turns into $\mathbf{f}\mathbf{w}$ , while $a = 1$ yields $T_{a} = 0$ and is equivalent to $M_{BW} = \mathbf{1}_{d}$ (all entries set to 1, meaning all parameters get gradients). When $a \in (0,1)$ , the parameters smaller than $T_{a}$ or larger than $T_{k}$ get gradients, while the parameters lying in the interval $[T_{a}, T_{k}]$ do not get gradients. + +How to compute the threshold $T_{a}$ ? Compared to the threshold computation for the previous heuristic, the definition for $T_{a}$ is slightly more complicated and it was computed graphically. Let $f$ be the cdf function and $f^{-1}$ be the ppf function (inverse cdf) for the standard normal distribution. + +$$ +T _ {a} = R M S (x) \cdot f ^ {- 1} \left(0. 5 + (1 - a) \cdot \left(f \left(\frac {T _ {k}}{R M S (x)}\right) - 0. 5\right)\right) \tag {13} +$$ + +Explanations for the formula above. Suppose the Top-K threshold $T_{k}$ has a corresponding cdf of 0.8 and we set $a = 0.5$ (which means $50\%$ ). We need to set the threshold $T_{a}$ such that $(f(T_{k}) - f(T_{a})) / (f(T_{k}) - 0.5) = a$ , where 0.5 is the cdf of the mean (which is identical to the median for a standard normal distribution). This ratio expresses the length of the band $[0.5, f(T_{k})]$ in the cdf space starting from $f(T_{k})$ towards the median. As a consequence, the threshold $T_{a} = ppf(0.65)$ because the quantile 0.65 is the center of the interval $[0.5, cdf(T_{k})] = [0.5, 0.8]$ . The explanations of each term follow: + +![](images/38aadc8776179ecd5dc181256fdd7c46aec58663e272cd75f36141f86d91a9bb.jpg) + +- A: $f = cdf$ computes the corresponding quantile of the Top-K threshold $T_{k}$ normalized by $RMS(x)$ +- B: subtract 0.5 from term $A$ to compute the length of the interval $[0.5, f(T_k^{RMS})]$ +- C: multiply by $1 - a$ because we take into consideration the band length that starts at $f(T_{k}^{RMS})$ towards 0 +- D: compute the cdf of $T_{a}$ by offsetting again by 0.5 (the quantile of the median) +- E: use $p p f = f^{-1}$ to obtain the value that corresponds to $c d f(T_{a})$ for the standard normal distribution +- F: multiply by $RMS(x)$ to obtain $T_{a}$ in the same space as $x$ + +Technical note. One could determine the threshold $T_{a}$ naively by employing the formula $T_{a}^{naive} = (1 - a)T_{k}$ . Despite simpler, this naive approach leads to a narrower band because the cdf space is non-linear. + +Conclusion. The mask computed using the a-b-rms heuristic is more straightforward to understand because the parameter $a$ describes the area of the red band (where parameters do not receive gradients) as a percentage of the area between 0 and the Top-K threshold $T_{k}$ . This heuristic can be used as a replacement for b-rms and the parameter $a$ should be tuned, similarly to parameter $p$ for b-rms, with the distinction that $a \in [0,1]$ (for a-b-rms) and $p \in (0,0.5)$ (for b-rms). + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: See final section. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: See Section 3. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: Code for reproducing the results is provided. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: Code is provided. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: This is standard and specified. Code is provided. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [Yes] + +Justification: We provide quality of fit for the scaling laws. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We provide this in the supplementary material. + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [NA] + +Justification: The paper is technical in nature, so there isn't anything significant to discuss on this point. + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [Yes] \ No newline at end of file diff --git a/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/images.zip b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..dbf3f4a899315ad8bfcac7fb0d92c8d7754c527a --- /dev/null +++ b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f1fd09ef324a81d7b8e4f9af82c7a1491dfdb75a300861c07b5a9608a15a366 +size 1335504 diff --git a/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/layout.json b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..32fa20d0413e39bd3580497db33cb3175855f073 --- /dev/null +++ b/NeurIPS/2025/Unified Scaling Laws for Compressed Representations/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb73c4f296b0c6fa6e7acd0bd160c35edf0400b840efa9a5a461c0df0af6d271 +size 1017128 diff --git a/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/bee8e5a4-8b63-4a8a-87ee-8383b9ed23f7_content_list.json b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/bee8e5a4-8b63-4a8a-87ee-8383b9ed23f7_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..849f07b7836486dbebeee4d578f8efbb6c21d639 --- /dev/null +++ b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/bee8e5a4-8b63-4a8a-87ee-8383b9ed23f7_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4e42aaea59b7c01042a1e0139417a12615974b08ab24447576edd06b8d702ba +size 103014 diff --git a/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/bee8e5a4-8b63-4a8a-87ee-8383b9ed23f7_model.json b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/bee8e5a4-8b63-4a8a-87ee-8383b9ed23f7_model.json new file mode 100644 index 0000000000000000000000000000000000000000..445ebacd5b36a21d64ce577730de7c496f1378dd --- /dev/null +++ b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/bee8e5a4-8b63-4a8a-87ee-8383b9ed23f7_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:659274fb331b98ebe4b4ea1c94abd5ad2736b5815035d4091ef1ca13ce25adb6 +size 123710 diff --git a/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/bee8e5a4-8b63-4a8a-87ee-8383b9ed23f7_origin.pdf b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/bee8e5a4-8b63-4a8a-87ee-8383b9ed23f7_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..fe7becfb4dbbdce4ab0aa16a7b60da32ed094f89 --- /dev/null +++ b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/bee8e5a4-8b63-4a8a-87ee-8383b9ed23f7_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f226a5fb537a5bcc7382e481de7130593f1f2249acab371b20afe334729753fd +size 518676 diff --git a/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/full.md b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/full.md new file mode 100644 index 0000000000000000000000000000000000000000..de53652e5092ff4b853e4ef9cab910e790abc3c8 --- /dev/null +++ b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/full.md @@ -0,0 +1,399 @@ +# Unified Transferability Metrics for Time Series Foundation Models + +Weiyang Zhang $^{1}$ Xinyang Chen $^{1}$ Xiucheng Li $^{1}$ Kehai Chen $^{1}$ Weili Guan $^{2}$ Liqiang Nie $^{1}$ \ + $^{1}$ School of Computer Science and Technology, Harbin Institute of Technology (Shenzhen)\ + $^{2}$ School of Information Science and Technology, Harbin Institute of Technology (Shenzhen)\ +{zhangweiyang12138, chenxinyang95, nieliqiang}@gmail.com\ +{lxiucheng, chenkehai, guanweili}@hit.edu.cn + +# Abstract + +With the increasing number of time series pre-trained models, designing transferability evaluation metrics for time series has become an urgent problem to address. While transferability evaluation has been extensively studied in computer vision, we aim to address a critical gap by developing tailored metrics for time series analysis. In this paper, we introduce TEMPLATE, a transferability estimation framework specifically tailored for versatile time series analysis, comprising three complementary metrics: (1) Dependency Learning Score quantifies a model's capacity to capture temporal dependencies. (2) Pattern Learning Score evaluates the representation quality in extracting discriminative temporal patterns. (3) Task Adaptation Score assesses cross-task generalization capability, enabling versatile time series analysis. TEMPLATE presents a versatile framework compatible with both classification and regression paradigms. Through comprehensive benchmarking across 5 distinct downstream tasks, our method demonstrates superior capability in identifying optimal pre-trained models from heterogeneous model pools for transfer learning. Compared to the state-of-the-art method ETran, our approach improves the weighted Kendall's $\tau_w$ across 5 downstream tasks by $35\%$ . The code is available at https://github.com/TEMPLATE. + +# 1 Introduction + +Recently, pre-trained models have drawn increasing attention in the time series domain due to their exceptional performance in computer vision and natural language processing [1]. These models have achieved significant success across various time series downstream tasks [2, 3] and are readily available on platforms like HuggingFace [4] and TensorFlow Hub [5]. However, no single model consistently outperforms others across all datasets. Therefore, selecting the most suitable pre-trained time series model for a given target task has become a pressing challenge. A time-consuming solution is to fine-tune all pre-trained models on the target dataset and then select the best-performing fine-tuned model. But compared to pre-trained models in computer vision such as ResNet [6] and MobileNet [7], time-series pre-trained models have much larger parameter scales [8, 9], making direct brute-force fine-tuning incur enormous time costs and high computational resource requirements [10], as shown in the left part of Figure 1. + +Recent studies propose fast transferability evaluation methods to efficiently rank models and select the optimal one. Existing methods can generally be categorized into static and dynamic approaches [11]. Static methods calculate scores directly based on the statistical information of the model, such as LEEP [12], NLEEP [13], H-score [14] and TMI [15]. In contrast, dynamic methods transform this statistical information using certain learning frameworks or representation space mapping algorithms before calculating scores, such as SFDA [16], LogME [17], and ETran [18]. These approaches are empirically validated as effective metrics for selecting computer vision models. + +![](images/4c441d475447ff9db47362994cec277267cecf9fb200e33ef1eeeca40bb6edd7.jpg) +Figure 1: Pre-trained models' fine-tune overhead (left) and transferability metric framework (right). + +![](images/9d3d35887870d43b395c487e4e0a5d4779f485e9388a667f2af8aada482a7dce.jpg) + +Nevertheless, existing research primarily focuses on image-based tasks. When applied to time series, several challenges emerge, as shown in the right part of Figure 1. First, mainstream time series tasks exhibit significant diversity, encompassing forecasting, classification, imputation, and anomaly detection, among others. While existing methods predominantly concentrate on classification-based tasks, achieving cross-task generalization capability remains the primary challenge. Second, downstream time series datasets frequently exhibit large-scale characteristics, resulting in high-dimensional computational infeasibility. This consequently imposes stringent requirements on evaluation metrics, demanding both computational efficiency and measurement accuracy. Last but not least, computer vision models consistently employ standardized data preprocessing protocols, consequently maintaining minimal variance in feature dimensionality. But in time series analysis, the architectural heterogeneity of models and their divergent approaches to processing inter-channel dependencies lead to substantial discrepancies in feature dimensionality. This consequently induces feature space mismatch, rendering evaluation metrics that rely on numerical magnitudes such as intra-class variance [15, 19] or singular value [17] ineffective. Table 1 summarizes the challenges in developing transferability metrics for time series. Prior to this paper, there is no ideal solution for pre-trained model selection specially designed to tackle these challenges. + +To address these fundamental challenges while accounting for the intrinsic characteristics of time series, we propose TEMPLATE (TEMPoraL representAtion Transferability Estimation), which quantitatively assesses the transferability of time series pre-trained models through three complementary evaluation metrics: Firstly, an effective time series pre-trained model must demonstrate robust capability in capturing and representing temporal dependencies. Moreover, we empirically demonstrate that the principal components constitute the most transferable elements within learned representations. Consequently, we propose the Dependency Learning Score as a quantitative metric to assess dependency learning capability through comparative analysis of principal components between original representations and their corresponding representations in trend. Secondly, to assess the core ability of time series pre-trained models in capturing key temporal patterns, we introduce the Pattern Learning Score as a quantitative evaluation metric. This score precisely measures the model's focus on key temporal patterns through the ratio of the principal component to the overall pattern complexity. Finally, to ensure adaptability across diverse downstream tasks and enable versatile time series analysis, we introduce the Task Adaptation Score as a task-specific evaluation metric for assessing representation quality. For high-level tasks, hierarchical representations are preferred. Thus we calculate the similarity between the features output by the first and last layers of the encoder. Through the integration of these three complementary evaluation metrics, we establish a comprehensive framework for assessing time series pre-trained models. Experimental results demonstrate strong correlation between our proposed metric and actual model transferability, consistently outperforming existing evaluation methods in benchmark tests across 5 downstream tasks. + +Our contributions are summarized as follows: + +- We evaluated the challenges in designing transferability metrics for time series and, from the model's dependency learning ability, pattern learning ability, and task adaptation ability, proposed the TEMPLATE pre-trained model transferability evaluation framework. + +Table 1: Time series design challenges and methods comparison. + +
ChallengesNCELEEPLogMESFDANLEEPPACTranTMIETranNCTIOurs
Cross-task generalization bottleneckXX✓XXXX✓X✓
High-dimensional infeasibilityXXXXXXX✓✓✓
Feature space mismatchXXXXXXXXX✓
+ +- Our proposed framework is highly flexible and generalizable, supporting both classification and regression tasks. Moreover, the metrics can be applied to 5 mainstream time series analysis tasks, demonstrating our broad applicability and task-specific adaptability. +- Experiments on 32 datasets across 5 mainstream time-series tasks demonstrate that our method achieves state-of-the-art (SOTA) performance in evaluating the transferability of time-series pretrained models, with an average improvement of $35\%$ compared to previous SOTA methods. + +# 2 Related Work + +# 2.1 Time Series Pre-trained Model + +In the image and vision domains, pre-training on large-scale sequence datasets has significantly advanced modality understanding [20, 21]. Building on this, pre-trained models have been widely developed in the time series domain [1]. LLM4TS [22] enhances forecasting accuracy by fine-tuning large language models, while Tempo [23] improves cross-modal alignment using multimodal prompts. Lag-Llama [24] conducts pre-training on multi-domain time series data and uses lag features as covariates for probabilistic univariate forecasting. Moment [25] conducts masked reconstruction pre-training on various time series datasets. Similarly, Timer [9] undergoes autoregressive pre-training on large-scale collected datasets. UniTS [26] integrates downstream tasks into a single framework through task tokenization. Time-MOE [27], which combines the mixture-of-experts method, is the first to scale time series pre-trained models to 2.4 billion parameters. Therefore, as the scale of time-series pre-trained models continues to grow, how to evaluate the transferability of these models has become an urgent issue that needs to be addressed. + +# 2.2 Model Transferability Estimation + +Model Transferability Estimation (MTE) aims to provide fast and efficient methods for quantifying a model's performance on downstream tasks without fine-tuning [11]. Recent MTE advancements focus on vision models. Early works, such as NCE [28] and LEEP [12], focused on probabilistic methods based on the expected empirical distribution of target labels. LogME [17] estimates the maximum marginalized likelihood of labels, while NLEEP [13] extends LEEP by replacing the output layer with a Gaussian Mixture Model. SFDA [16] projects features into Fisher space and enhances class separability using physics-inspired models. TMI [15] uses intra-class feature variance as a performance indicator, assuming that lower variance reflects tighter clustering of class features. NCTI [19], inspired by the neural collapse phenomenon, develops metrics to measure the distance between the current state of the pre-trained model and its hypothetical fine-tuned state. ETran [18] introduces energy scores to quantify whether the target dataset is in-distribution or out-of-distribution for a candidate model, assuming models with higher in-distribution levels for the target dataset exhibit greater transferability. Existing studies primarily focus on vision and have not fully considered the characteristics of time-series data and pre-trained models. Therefore, we propose TEMPLATE, a transferability evaluation framework specifically designed for time-series pre-trained models. + +# 3 Approach + +# 3.1 Problem Formulation + +Given $M$ pretrained models $\{\phi_m\}_{m=1}^M$ and a target dataset $\mathcal{D}$ with $N$ samples, where each model consists of a backbone $f$ that outputs encoded features, and the target dataset is associated with an evaluation metric (accuracy, MSE, F-score etc.), we initialize a predictor head on the backbone $f$ and fine-tune the entire model on the target dataset. The feature extracted by the $l$ -th layer of the pretrained model $\phi_m(\cdot)$ is denoted as $\mathbf{H}^l$ , where $\mathbf{H}^l = \phi_m(\mathbf{X}) \in \mathbb{R}^{N \times d}$ and $d$ is the feature dimension. In the + +following, we omit $l$ using $\mathbf{H}$ to denote the feature output of the last layer of the model's encoder. By performing brute-force fine-tuning on all models, we obtain the true performance $\{P_m\}_{m=1}^M$ for the model hub. A practical model selection method should generate a score for each pretrained model. Ideally, the score should correlate strongly with the actual fine-tuning performance $\{P_m\}_{m=1}^M$ , allowing the best-performing pretrained model to be selected based on the evaluation score alone. + +# 3.2 Transferability Assessment through Temporal Representation Transferability Estimation + +To effectively evaluate the transferability of time series pre-trained models, it is necessary to address the dimensional gap in feature matrices caused by the model's different handling of inter-channel relationships, as well as the varying requirements of various downstream tasks. Therefore, we avoid directly using statistical quantities of the feature matrix to measure the transferability of pretrained models. Specifically, we propose TEMPLATE, a hybrid transferability metric that includes Dependency Learning Score, Pattern Learning Score, and Task Adaptation Score, aiming to assess transferability of the learned representation in pre-trained models from the perspective of temporal dependency learning, temporal pattern learning and hierarchical features. + +To better understand how fine-tuning affects the representation learned by pre-trained models, we explore the changes in the components of feature matrices before and after fine-tuning. Specifically, we use Singular Value Decomposition (SVD) to analyze this process as it efficiently decomposes the feature matrix and analyzes its dominant patterns. We fine-tune MOMENT-small [25], Timer-small [9], and UniTS-small [26] on EthanolConcentration [29], Handwriting [29], and UWaveGestureLibrary [29] dataset, respectively, and compare the cosine similarity of the feature vectors corresponding to singular values before and after fine-tuning. The results are shown in Figure 2 and it is observed that the cosine similarity of feature vectors decreases as their corresponding singular values decrease. This indicates that larger singular values encapsulate more knowledge and are more transferable to downstream tasks. + +![](images/c09d740a9e3e177ade529d3d10db0c02b066615bbad271bf67935bfb528a87c4.jpg) +Figure 2: The cosine similarity of feature vectors, computed based on feature vectors before and after fine-tuning, on three datasets (sorted in descending order by singular values): EthanolConcentration (Left), Handwriting (Middle), and UWaveGestureLibrary (Right). + +![](images/eeb8d05796879c2a5cdc099d43ed0856f08983e4cb291791f88ccbb5d36bdf0d.jpg) + +![](images/03b0831cfbb9fb37b52b7e04c85c9233c95f81fa5968ea8245097d13ffdd2a96.jpg) + +Dependency Learning Score. The core of time series modeling is to capture temporal dependency. Time series pre-trained models should be able to capture long-term dependencies, which represent stable and persistent patterns crucial for effective modeling [30]. To assess this ability, we employ series decomposition [31] to extract the trend component, which inherently contains long-term dependencies. This component is fed into the model, yielding a feature matrix $\mathbf{T}$ that is focused on capturing long-term dependencies, as follows: + +$$ +\operatorname {t r e n d} (\mathbf {X}) = \operatorname {A v g P o o l} (\text {p a d d i n g} (\mathbf {X})) , \mathbf {T} = \phi_ {m} (\operatorname {t r e n d} (\mathbf {X})) , \tag {1} +$$ + +where we use padding to maintain the original series length, and then apply the AvgPool layer for moving average calculations. A model proficient in learning long-term dependencies should exhibit a high degree of consistency between the feature matrix $\mathbf{H}$ and the feature matrix $\mathbf{T}$ of the trend component. To this end, we propose the Dependency Learning Score $S_{dl}$ . Specifically, considering that the largest singular value and its corresponding feature vector demonstrate superior transferability, we prioritize the use of the feature vectors corresponding to the largest singular values of $\mathbf{H}$ and $\mathbf{T}$ . We perform SVD to decompose the features: + +$$ +\mathbf {H} = \mathbf {U} _ {h} \Sigma_ {h} \mathbf {V} _ {h} ^ {T}, \mathbf {T} = \mathbf {U} _ {t} \Sigma_ {t} \mathbf {V} _ {t} ^ {T}. \tag {2} +$$ + +We denote the largest singular values of $\mathbf{H}$ and $\mathbf{T}$ as $\sigma_h$ and $\sigma_t$ , and their corresponding feature vectors as $u_h$ and $u_t$ , respectively. With the feature vectors, $S_{dl}$ is formulated to quantify the pre-trained model's capability in capturing long-term temporal dependencies through computation of the Pearson correlation coefficient [32] between the $u_h$ and $u_t$ , as follows: + +$$ +S _ {d l} = \rho \left(u _ {h}, u _ {t}\right) = \frac {\operatorname {C o v} \left(u _ {h} , u _ {t}\right)}{\lambda_ {h} \lambda_ {t}}, \tag {3} +$$ + +where $\mathrm{Cov}(\cdot)$ represents the covariance between feature vectors, and $\lambda_h, \lambda_t$ represents their respective variances. Since $S_{dl}$ represents the pre-trained model's ability to learn long-term dependencies, a pre-trained model that effectively learns long-term dependencies should achieve a larger $S_{dl}$ . + +Pattern Learning Score. Effective temporal pattern learning is critical for time series pre-trained models to handle complex, multi-scale behaviors, which allows the model to learn the temporal dynamics in time series data, thereby achieving superior performance on downstream tasks. + +To this end, we propose the Pattern Learning Score $S_{pl}$ to measure the pre-trained model's ability to learn the primary temporal patterns. Within the framework of matrix decomposition, singular values quantitatively characterize the relative significance of distinct patterns embedded in the feature matrix. The largest singular value typically corresponds to the primary temporal pattern in time series, reflecting the most significant dynamic behavior captured by the model. + +While the dominant singular value provides an intuitive measure of a model's capacity to capture primary temporal patterns, the inherent feature space mismatch resulting from heterogeneous inter-channel relationship processing across pre-trained models may significantly compromise the reliability of transferability assessment. Therefore, we introduce the nuclear norm as a measure of the overall importance of the patterns, defined as the sum of all singular values of the matrix. Specifically, we use the ratio of the largest singular value to the nuclear norm to measure the pre-trained model's ability to learn primary temporal patterns. A higher ratio signifies enhanced capability of the pretrained model in capturing dominant temporal patterns, whereas a lower ratio potentially indicates insufficient representation of these critical temporal patterns. Moreover, compared to the raw data, the temporal patterns of the trend component are simpler, with the primary patterns being more prominent. Therefore, the ratio of the largest singular value to the nuclear norm using the trend component provides a more accurate evaluation of the pre-trained model's ability to learn primary temporal patterns. The formulation of $S_{pl}$ is as follows: + +$$ +S _ {p l} = \frac {\sigma_ {t}}{\| \mathbf {T} \| _ {*}}, \tag {4} +$$ + +where $\sigma_{t}$ denotes the largest singular value of the trend component feature matrix, and $\| \mathbf{T}\| _*$ represents its nuclear norm. Since $S_{pl}$ represents the pre-trained model's ability to learn primary temporal patterns, a pre-trained model that effectively learns these patterns should achieve a larger $S_{pl}$ . + +Task Adaptation Score. Time series downstream tasks exhibit substantial heterogeneity, with distinct tasks imposing markedly divergent requirements on feature representations [33]. Classification tasks require high-level semantics, and imputation tasks require the model to learn from missing data. Consequently, hierarchical representations become essential. In contrast, forecasting tasks and anomaly detection tasks place more emphasis on the precise extraction of low-level features from the raw data itself, focusing on local patterns and temporal dependencies [34, 33]. Consequently, an effectively designed pre-trained model should demonstrate the capability to learn task-adaptive representations that dynamically adjust to varying downstream task requirements. [35]. Moreover, due to the diverse designs of time-series pre-trained models and the significant differences in network architectures, it is necessary to consider the overall evolution of features. We measure the task adaptation ability of the pretrained model by calculating the similarity between the output features $\mathbf{H}^1$ from the first layer of the encoder and the output features $\mathbf{H}$ from the last layer. A simple approach is to directly compute the dot product-based similarity [36] between them: + +$$ +\langle \operatorname {v e c} \left(H ^ {1} \left(H ^ {1}\right) ^ {T}\right), \operatorname {v e c} \left(H H ^ {T}\right) \rangle = \operatorname {t r} \left(H ^ {1} \left(H ^ {1}\right) ^ {T} H H ^ {T}\right) = \| H ^ {T} H ^ {1} \| _ {F} ^ {2}, \tag {5} +$$ + +Due to the differences in how time series pre-trained models handle inter-channel relationships, there is a significant gap in feature matrix dimensions across different pre-trained models. Directly calculating squared dot product can lead to inaccurate estimates of model's transferability. Therefore, we use centered kernel alignment [37, 38, 36] to measure similarity, which further optimizes dot product-based similarity. Specifically, Equation 5 means that, for the centered $\mathbf{H}^1$ and $\mathbf{H}$ : + +$$ +\frac {1}{(n - 1) ^ {2}} \operatorname {t r} \left(H ^ {1} \left(H ^ {1}\right) ^ {T} H H ^ {T}\right) = \| \operatorname {c o v} \left(\left(H ^ {1}\right) ^ {T}, H ^ {T}\right) \| _ {F} ^ {2}, \tag {6} +$$ + +The Hilbert-Schmidt Independence Criterion [39] generalizes Equations 5 and 6 to inner products from reproducing kernel Hilbert spaces, where the squared Frobenius norm of the cross-covariance matrix + +becomes the squared Hilbert-Schmidt norm of the cross-covariance operator. Let $K_{ij} = k(\mathbf{x}_i,\mathbf{x}_j)$ and $L_{ij} = l(\mathbf{y}_i,\mathbf{y}_j)$ where $k$ and $l$ are two kernels. The empirical estimator of HSIC is: + +$$ +\operatorname {H S I C} (K, L) = \frac {1}{(n - 1) ^ {2}} \operatorname {t r} (K \mathbf {Q} L \mathbf {Q}), \tag {7} +$$ + +where $\mathbf{Q}$ is the centering matrix $\mathbf{Q}_n = I_n - \frac{1}{n}\mathbf{1}\mathbf{1}^{\mathrm{T}}$ . Finally, we normalize the HSIC to obtain our score function, $S_{ra}$ : + +$$ +S _ {t a} = \frac {\operatorname {H S I C} (K , L)}{\sqrt {\operatorname {H S I C} (K , K) \operatorname {H S I C} (L , L)}}, \tag {8} +$$ + +where we use the RBF kernel $k(\mathbf{x}_i, \mathbf{x}_j) = \exp(-||\mathbf{x}_i - \mathbf{x}_j||_2^2 / (2\gamma^2))$ for mapping, with several possible strategies for selecting the bandwidth. This strategy controls the extent to which similarity at small distances is emphasized over large distances. We set $\gamma$ to the median distance between samples. For classification and imputation task, it is essential for the model to learn hierarchical representations, making a lower $S_{ta}$ more desirable. In contrast, for forecasting and anomaly detection task, the model needs to focus on capturing fundamental features, making a higher $S_{ta}$ more appropriate. + +Overall Score Function. In this paper, we expect pre-trained models to learn valuable temporal dependencies and patterns from the time series data and output task adaptive ability tailored to different downstream tasks, enabling versatile time series analysis. To this end, we design three score functions: $S_{dl}$ , $S_{pl}$ , and $S_{ta}$ . $S_{dl}$ and $S_{pl}$ measure the dependency learning ability of the model and primary temporal pattern learning, respectively. $S_{ta}$ evaluates the task-adaptive ability of the pre-trained model to various downstream tasks. Since time series often involves large-scale datasets, directly applying SVD can result in high computational costs. To accelerate the computation, we use the power iteration method [40, 41] to approximate the largest singular value of the model and its corresponding eigenvector. For detailed information about the power iteration method, please refer to Appendix C.4. Secondly, we quickly calculate the nuclear norm using equation 9, as shown below: + +$$ +\left\| \mathbf {T} \right\| _ {*} = \operatorname {t r} \left(\sqrt {(\mathbf {T}) ^ {T} \mathbf {T}}\right). \tag {9} +$$ + +By employing these two methods, we avoid the high computational cost associated with SVD, enabling a fast evaluation of the transferability of pre-trained models. In addition, since the score functions have different scales, directly summing these scores may negatively impact the performance of transferability evaluation. Therefore, we normalize each score to a unit range (0 to 1) instead of manually defining hyperparameters to balance the contributions of each score, as follows: + +$$ +S _ {d l} \leftarrow \frac {S _ {d l} - \min \left(S _ {d l}\right)}{\max \left(S _ {d l}\right) - \min \left(S _ {d l}\right)}. \tag {10} +$$ + +Similarly, we can obtain the normalized scores $S_{pl}(\mathbf{T})$ and $S_{ta}(\mathbf{H}^1,\mathbf{H})$ . By combining these three scores, we derive the final transferability evaluation metric: + +$$ +S _ {t o t a l} = S _ {d l} (\mathbf {H}, \mathbf {T}) + S _ {p l} (\mathbf {T}) + \lambda S _ {t a} \left(\mathbf {H} ^ {1}, \mathbf {H}\right), \tag {11} +$$ + +where $\lambda$ is determined by the downstream task type. When evaluating on classification task and imputation task, $\lambda$ is set to -1. For forecasting task and anomaly detection task, $\lambda$ is set to 1. Note that the three scores are equally weighted, and $\lambda$ acts as a sign function determined by the task type, without requiring fine-tuning for specific downstream dataset. The pre-trained model with a higher overall score $S_{total}$ indicates better transferability within the model pool for the target dataset $\mathcal{D}$ . + +# 4 Experiments + +In this section, we examine the effectiveness of TEMPLATE in assessing the transfer learning performance of pretrained models across 5 mainstream downstream time series tasks, including classification, short- and long-term forecasting, imputation, and anomaly detection. + +Implementation Details. To quantify the correlation between estimated assessment scores and actual fine-tuning results, we employ the weighted Kendall's $\tau_w$ (see Appendix C.3), which measures ranking agreement with higher weights for higher ranks. More details about the dataset and experiment implementation can be found in Appendix C. + +Table 2: Comparison of SOTA Rate and Relative Improvement for Different Methods. + +
MethodGBC [42]CC-FV [43]NCTI [19]ETran [18]Ours
SOTA Rate in Original Paper37%36%40%45%46%
Improvement (vs Previous SOTA)20%9%21%18%35%
+ +Pre-trained Models. We select 10 pre-trained models from 4 model families to form the pre-trained model pool, including MOMENT-small [25], MOMENT-base [25], MOMENT-large [25], Timersmall [9], Timer-base [9], TimerXL-small [44], TimerXL-base [44], UniTS-small [26], UniTS-base [26], and UniTS-large [26]. We fine-tune all source models on the target dataset to obtain the actual ranking. More details about the pre-trained model pool can be found in the AppendixC.2. + +# 4.1 Main Results. + +As a transferability evaluation metric designed for pretrained models in time series, TEMPLATE achieves consistently state-of-the-art accuracy across 5 mainstream analytical tasks, as shown in Figure 3. Notably, no method has achieved SOTA on all dataset, and as illustrated in Table 2, our method attains a remarkably high SOTA rate. We show more experimental results in Appendix D to further demonstrate the effectiveness of the method. + +![](images/4f506fdab4e75541a99c3751d7fccc8cc240c2437ae6da38dafe8c3ab40e6761.jpg) +Figure 3: Performance comparison. + +# 4.2 Classification + +Setup. Time series classification can be applied to tasks such as recognition and medical diagnosis [45]. Specifically, We verify all methods on 9 multivariate datasets from the UEA classification archive [29], covering gesture, audio recognition, etc., across multiple task categories. We preprocess the datasets according to [46], where different subsets have varying sequence lengths. + +Table 3: Classification Benchmark: Performance (Weighted Kendall's $\tau_w$ ) of different methods. The best results are highlighted in bold while the second best are underlined. + +
DatasetsLogME (2021)NLEEP (2022)SFDA (2022)PACTran (2022)TMI (2023)NCTI (2023)ETran (2023)RetMMD (2024)TEMPLATE (Ours)
EthanolConcentration0.5670.4320.1200.488-0.430-0.320.6860.5120.724
FaceDetection-0.2030.0920.5980.306-0.6000.109-0.3590.3100.597
Handwriting-0.445-0.1040.3140.5960.7680.7000.4780.3650.822
JapaneseVowels0.2310.2130.0210.3060.3020.340-0.1960.6540.447
PEMS-SF-0.472-0.612-0.3120.306-0.3000.0530.0760.5200.470
SelfRegulationSCP10.3560.5290.4590.6190.3000.3100.6510.4500.484
SelfRegulationSCP20.2680.241-0.1980.4570.4550.4500.6670.3970.551
SpokenArabicDigits0.3420.321-0.3670.7440.647-0.2100.4790.2010.637
UWaveGestureLibrary0.5840.1270.4400.5920.5760.2450.6240.3620.719
Average0.1360.1380.1190.4900.1910.1860.3450.4190.608
+ +Performance Comparison. We compare our method with existing transferability evaluation metrics, including LogME [17], NLEEP [13], SFDA [16], PACTran [47], TMI [15], NCTI [19], ETran [18] and RetMMD [48]. Table 3 shows the results of our method compared to previous work on classification benchmarks. Our method outperforms all previous methods, achieving a state-of-the-art (SOTA) $\tau_w$ of 0.608, which is $24\%$ ahead of the second-best method. Due to the different ways models handle inter-channel relationships, feature-statistics-based methods, such as LogME [17], TMI [15], and NCTI [19], generally perform poorly on datasets with a large number of channels, like FaceDetection and PEMS-SF. In contrast, our method achieves outstanding results on these two datasets, with $\tau_w$ of 0.597 and 0.470, respectively. These results highlight the effectiveness of our approach in evaluating pre-trained time series models for transfer learning. + +# 4.3 Short- and Long-term Forecasting + +Setup. Time series forecasting plays a crucial role in areas such as weather forecasting, traffic management, and energy consumption. To thoroughly evaluate the generalizability of our approach in forecasting, we employ two types of benchmarks: long-term forecasting and short-term forecasting. For long-term forecasting, we use seven widely recognized long-term time series forecasting datasets [31], covering practical applications across various domains. For short-term forecasting, we adopt the M4 dataset [49], which includes univariate marketing data collected annually, quarterly, and monthly. + +Table 4: Long-term Forecasting Benchmark: All the results are averaged from 4 different prediction lengths. - means out of memory. See Table 12 in Appendix for the full results. + +
MethodsETTh1ETTh2ETTm1ETTm2WeatherElectricityTrafficAverage
LogME0.2150.1670.4000.5650.114-0.130-0.190
ETran0.1380.2120.1890.3510.4740.3020.1920.265
Ours0.240-0.0030.5180.5760.4120.3610.4320.362
+ +Performance Comparison. Tables 4 and 11 present the experimental results of our method in long-term and short-term forecasting scenarios. We compare our method with existing transferability evaluation metrics for regression tasks, including LogME [17] and ETran [18]. The core of long-term forecasting task lies in the model's ability to effectively capture complex temporal dependencies and long-term trend. By contrast, short-term forecasting task focuses more on the precise capture of fine-grained temporal patterns. Overall, our method demonstrates outstanding performance across both scenarios. Notably, LogME performs poorly on multi-channel datasets like Electricity and cannot evaluate the performance of pre-trained models on Traffic due to out of memory issues. In contrast, our method achieves excellent results on both datasets. These results further validate the effectiveness of our method in assessing time series pre-trained models for transfer learning. + +# 4.4 Imputation + +Setup. Real-time systems are continuously operating and monitored by automated observation devices. However, due to failures, the collected time series may be partially missing, makes downstream analysis challenging. Therefore, imputation has become widely used in practical applications. In this paper, we select datasets from electricity, weather, and traffic scenarios as benchmarks. + +Table 5: Imputation Benchmark: All results are averaged from 4 mask ratios. \* means out of memory. See Table 13 in Appendix for the full results. + +
MethodsETTh1ETTh2ETTm1ETTm2WeatherElectricityTrafficAverage
LogME0.3220.2380.6070.3880.312-0.061-0.258
ETran0.3240.4190.2540.3100.4410.4560.3980.372
Ours0.4060.3170.6640.6500.6450.4120.5290.518
+ +Performance Comparison. Effective time series imputation places high demands on the model's ability to capture temporal dependencies and understand contextual information. Specifically, when imputing missing values, the model needs to utilize the implicit temporal patterns within data, including modeling dynamic relationships between time points and accurately inferring both the overall trends and local features of time series. Table 5 presents the experimental results of our method in the time series imputation scenario. In the experiments, we evaluate the model's performance under different missing ratios. The results show that, whether in scenarios with a low or high proportion of missing data, our method demonstrates a high level of model transferability evaluation accuracy. + +# 4.5 Anomaly Detection + +Setup. Anomaly detection in sensor data is crucial for industrial maintenance, as anomalies are often hidden within large-scale datasets, making data labeling challenging. We compare 5 widely used anomaly detection benchmarks: SMD [50], MSL [51], SMAP [51], SWaT [52], and PSM [53], covering applications in service monitoring, spatial data, earth exploration, and water treatment. + +Table 6: Anomaly Detection Benchmark: Performance (Weighted Kendall's $\tau_w$ ) of different methods. The best results are highlighted in **bold** and ' -' means out of memory. + +
MethodsPSMMSLSMAPSMDSWaTAverage
LogME0.2300.4680.340--0.207
ETran0.433-0.0240.1210.1260.2770.187
Ours0.1420.5150.431-0.080.1730.236
+ +Performance Comparison. Effective time series anomaly detection requires the model to identify normal and abnormal patterns in the data and accurately distinguish between the two. Table 6 presents the results of our method in the time series anomaly detection scenario. The experimental results show that our method effectively evaluates the model's transferability in anomaly detection scenarios. + +![](images/30b5ada7a5cb5912c4de90652b5fac2e0e28da16a9a5e613c4086bf30f34b74e.jpg) +Figure 4: Effectiveness of component in TEM-PLATE on Classification and Imputation task. + +![](images/78a8707c8f2f8268e689a12530f2eac777baa3fe2af3ca76f767c555538c1aad.jpg) + +![](images/bf5358008b7c8d27db8ebe66ecc6187a2c9c858b5ffbd06bf8077e7228694fa5.jpg) +Figure 5: Time complexity analysis. + +# 4.6 Analysis + +Ablation Study. Our TEMPLATE consists of three sub-items designed to evaluate the performance of pre-trained models on downstream tasks. To explore the individual contribution of each sub-item to the final metric and analyze its impact on overall performance, we conduct an ablation study. Figure 4 presents the results of the ablation study on the classification and imputation task, with the complete results available in Appendix D.2. It can be observed that all three metrics achieve positive ranking correlations, and their combination yields the highest average ranking correlation, indicating that the three metrics complement each other and can comprehensively measure the performance of pre-trained models. + +Time Complexity. In the Figure 5, we present a comparison of the average runtime and $\tau_w$ on the classification task across 9 datasets using different model selection metrics. While NCTI [19] and TMI [15] are fast, they perform poorly in evaluating the transferability of time series pre-trained models due to their reliance on statistical metrics of feature matrices. LogME [17] is efficient, but it cannot be applied to large datasets like Traffic and SMD because it relies on the magnitude of singular values. In contrast, our method uses the power iteration method to avoid high computational costs and enabling its application to large datasets. Although ETran [18] efficiently obtains the $S_{en}$ score, the LDA-based score calculation incurs significant time costs, resulting in slower overall speed. + +# 5 Conclusion + +In this paper, we propose TEMPLATE, a pre-trained model evaluation framework specifically designed for time series. We are the first to design a transferability evaluation metric tailored for time series. TEMPLATE consists of three scores, aimed at measuring the transferability of pre-trained models from two perspectives: dependency and pattern learning, and task adaptation. Our approach has been successfully applied to 5 mainstream time series downstream tasks. Extensive experiments demonstrate that our method achieves state-of-the-art (SOTA) performance in evaluating time series pre-trained models for transfer learning. + +# Acknowledgements + +This work was supported by the National Natural Science Foundation of China (62306085, 62206074, 62476071, U23B2055, U24A20328), Shenzhen College Stability Support Plan (GXWD20231130151329002, GXWD20220811173233001), CCF-ALIMAMA TECH Kangaroo Fund (CCF-ALIMAMA OF 2025001), Guangdong Basic and Applied Basic Research Foundation (2025A1515012932, 2025A1515011732), Shenzhen Science and Technology Program (KQTD20240729102154066, ZDSYS20230626091203008). + +# References + +[1] Qianli Ma, Zhen Liu, Zhenjing Zheng, Ziyang Huang, Siying Zhu, Zhongzhong Yu, and James T Kwok. A survey on time-series pre-trained models. IEEE Transactions on Knowledge and Data Engineering, 2024. +[2] Luca Benfenati, Daniele Jahier Pagliari, Luca Zanatta, Yhorman Alexander Bedoya Vezz, Andrea Acquaviva, Massimo Poncino, Enrico Macii, Luca Benini, and Alessio Burrello. Foundation models for structural health monitoring. arXiv preprint arXiv:2404.02944, 2024. +[3] Weijie Xia, Gao Peng, Chenguang Wang, Peter Palensky, Eric Pauwels, and Pedro P Vergara. An efficient and explainable transformer-based few-shot learning for modeling electricity consumption profiles across thousands of domains. arXiv preprint arXiv:2408.08399, 2024. +[4] Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierrick Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, et al. Huggingface's transformers: State-of-the-art natural language processing. arXiv preprint arXiv:1910.03771, 2019. +[5] Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous systems, 2015. +[6] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. +[7] Andrew G Howard. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. +[8] Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pages 6105-6114. PMLR, 2019. +[9] Yong Liu, Haoran Zhang, Chenyu Li, Xiangdong Huang, Jianmin Wang, and Mingsheng Long. Timer: Generative pre-trained transformers are large time series models. In *Forty-first International Conference on Machine Learning*, 2024. +[10] Vijay Ekambaram, Arindam Jati, Pankaj Dayama, Sumanta Mukherjee, Nam Nguyen, Wesley M Gifford, Chandra Reddy, and Jayant Kalagnanam. Tiny time mixers (ttms): Fast pre-trained models for enhanced zero/few-shot forecasting of multivariate time series. Advances in Neural Information Processing Systems, 37:74147-74181, 2024. +[11] Yuhe Ding, Bo Jiang, Aijing Yu, Aihua Zheng, and Jian Liang. Which model to transfer? a survey on transferability estimation. arXiv preprint arXiv:2402.15231, 2024. +[12] Cuong Nguyen, Tal Hassner, Matthias Seeger, and Cedric Archambeau. Leep: A new measure to evaluate transferability of learned representations. In International Conference on Machine Learning, pages 7294-7305. PMLR, 2020. +[13] Yandong Li, Xuhui Jia, Ruoxin Sang, Yukun Zhu, Bradley Green, Liqiang Wang, and Boqing Gong. Ranking neural checkpoints. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2663-2673, 2021. +[14] Yajie Bao, Yang Li, Shao-Lun Huang, Lin Zhang, Lizhong Zheng, Amir Zamir, and Leonidas Guibas. An information-theoretic approach to transferability in task transfer learning. In 2019 IEEE international conference on image processing (ICIP), pages 2309-2313. IEEE, 2019. + +[15] Huiwen Xu and U Kang. Fast and accurate transferability measurement by evaluating intra-class feature variance. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11474-11482, 2023. +[16] Wenqi Shao, Xun Zhao, Yixiao Ge, Zhaoyang Zhang, Lei Yang, Xiaogang Wang, Ying Shan, and Ping Luo. Not all models are equal: Predicting model transferability in a self-challenging fisher space. In Computer Vision-ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XXXIV, pages 286-302. Springer, 2022. +[17] Kaichao You, Yong Liu, Jianmin Wang, and Mingsheng Long. Logme: Practical assessment of pre-trained models for transfer learning. In International Conference on Machine Learning, pages 12133-12143. PMLR, 2021. +[18] Mohsen Gholami, Mohammad Akbari, Xinglu Wang, Behnam Kamranian, and Yong Zhang. Etran: Energy-based transferability estimation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 18613-18622, 2023. +[19] Zijian Wang, Yadan Luo, Liang Zheng, Zi Huang, and Mahsa Baktashmotlagh. How far pretrained models are from neural collapse on the target dataset informs their transferability. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5549-5558, 2023. +[20] Li Dong, Nan Yang, Wenhui Wang, Furu Wei, Xiaodong Liu, Yu Wang, Jianfeng Gao, Ming Zhou, and Hsiao-Wuen Hon. Unified language model pre-training for natural language understanding and generation. Advances in neural information processing systems, 32, 2019. +[21] Javier Selva, Anders S Johansen, Sergio Escalera, Kamal Nasrollahi, Thomas B Moeslund, and Albert Clapés. Video transformers: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(11):12922-12943, 2023. +[22] Ching Chang, Wen-Chih Peng, and Tien-Fu Chen. Llm4ts: Two-stage fine-tuning for time-series forecasting with pre-trained llms. arXiv preprint arXiv:2308.08469, 2023. +[23] Defu Cao, Furong Jia, Sercan O Arik, Tomas Pfister, Yixiang Zheng, Wen Ye, and Yan Liu. Tempo: Prompt-based generative pre-trained transformer for time series forecasting. arXiv preprint arXiv:2310.04948, 2023. +[24] Kashif Rasul, Arjun Ashok, Andrew Robert Williams, Arian Khorasani, George Adamopoulos, Rishika Bhagwatkar, Marin Bilos, Hena Ghonia, Nadhir Hassen, Anderson Schneider, et al. Lag-llama: Towards foundation models for time series forecasting. In R0-FoMo: Robustness of Few-shot and Zero-shot Learning in Large Foundation Models, 2023. +[25] Mononito Goswami, Konrad Szafer, Arjun Choudhry, Yifu Cai, Shuo Li, and Artur Dubrawski. Moment: A family of open time-series foundation models. In *Forty-first International Conference on Machine Learning*, 2024. +[26] Shanghua Gao, Teddy Koker, Owen Queen, Thomas Hartvigsen, Theodoros Tsiligkaridis, and Marinka Zitnik. Units: A unified multi-task time series model. In *The Thirty-eighth Annual Conference on Neural Information Processing Systems*, 2024. +[27] Xiaoming Shi, Shiyu Wang, Yuqi Nie, Dianqi Li, Zhou Ye, Qingsong Wen, and Ming Jin. Time-moe: Billion-scale time series foundation models with mixture of experts. arXiv preprint arXiv:2409.16040, 2024. +[28] Anh T Tran, Cuong V Nguyen, and Tal Hassner. Transferability and hardness of supervised classification tasks. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1395-1405, 2019. +[29] Anthony J. Bagnall, Hoang Anh Dau, Jason Lines, Michael Flynn, James Large, Aaron George Bostrom, Paul Southam, and Eamonn J. Keogh. The uea multivariate time series classification archive, 2018. arXiv preprint arXiv:1811.00075, 2018. + +[30] Jiexi Liu and Songcan Chen. Timesurl: Self-supervised contrastive learning for universal time series representation learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 13918-13926, 2024. +[31] Haixu Wu, Jiehui Xu, Jianmin Wang, and Mingsheng Long. Autoformer: Decomposition transformers with Auto-Correlation for long-term series forecasting. In NeurIPS, 2021. +[32] Israel Cohen, Yiteng Huang, Jingdong Chen, Jacob Benesty, Jacob Benesty, Jingdong Chen, Yiteng Huang, and Israel Cohen. Pearson correlation coefficient. Noise reduction in speech processing, pages 1-4, 2009. +[33] Shiyu Wang, Jiawei Li, Xiaoming Shi, Zhou Ye, Baichuan Mo, Wenze Lin, Shengtong Ju, Zhixuan Chu, and Ming Jin. Timemixer++: A general time series pattern machine for universal predictive analysis. arXiv preprint arXiv:2410.16032, 2024. +[34] Haixu Wu, Tengge Hu, Yong Liu, Hang Zhou, Jianmin Wang, and Mingsheng Long. Times-net: Temporal 2d-variation modeling for general time series analysis. arXiv preprint arXiv:2210.02186, 2022. +[35] Jiaxiang Dong, Haixu Wu, Haoran Zhang, Li Zhang, Jianmin Wang, and Mingsheng Long. Simmtm: A simple pre-training framework for masked time-series modeling. Advances in Neural Information Processing Systems, 36, 2024. +[36] Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey Hinton. Similarity of neural network representations revisited. In International conference on machine learning, pages 3519-3529. PMLR, 2019. +[37] Corinna Cortes, Mehryar Mohri, and Afshin Rostamizadeh. Algorithms for learning kernels based on centered alignment. The Journal of Machine Learning Research, 13:795-828, 2012. +[38] Nello Cristianini, John Shawe-Taylor, Andre Elisseeff, and Jaz Kandola. On kernel-target alignment. Advances in neural information processing systems, 14, 2001. +[39] Arthur Gretton, Olivier Bousquet, Alex Smola, and Bernhard Schölkopf. Measuring statistical dependence with hilbert-schmidt norms. In International conference on algorithmic learning theory, pages 63-77. Springer, 2005. +[40] Gene H Golub and Charles F Van Loan. Matrix computations. JHU press, 2013. +[41] Gene H Golub and Henk A Van der Vorst. Eigenvalue computation in the 20th century. Journal of Computational and Applied Mathematics, 123(1-2):35-65, 2000. +[42] Michal Pandy, Andrea Agostinelli, Jasper Uijlings, Vittorio Ferrari, and Thomas Mensink. Transferability estimation using bhattacharyya class separability. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9172-9182, 2022. +[43] Yuncheng Yang, Meng Wei, Junjun He, Jie Yang, Jin Ye, and Yun Gu. Pick the best pre-trained model: Towards transferability estimation for medical image segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pages 674-683. Springer, 2023. +[44] Yong Liu, Guo Qin, Xiangdong Huang, Jianmin Wang, and Mingsheng Long. Timer-xl: Long-context transformers for unified time series forecasting. arXiv preprint arXiv:2410.04803, 2024. +[45] George B. Moody, Roger G. Mark, and Ary L. Goldberger. Physionet: Physiologic signals, time series and related open source software for basic, clinical, and applied research. EMBC, 2011. +[46] G. Zerveas, Srideepika Jayaraman, Dhaval Patel, Anuradha Bhamidipaty, and Carsten Eickhoff. A transformer-based framework for multivariate time series representation learning. KDD, 2021. + +[47] Nan Ding, Xi Chen, Tomer Levinboim, Soravit Changpinyo, and Radu Soricut. Pactran: Pac-bayesian metrics for estimating the transferability of pretrained models to classification tasks. In Computer Vision-ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XXXIV, pages 252-268. Springer, 2022. +[48] Mengyu Dai, Amir Hossein Raffiee, Aashish Jain, and Joshua Correa. Evaluating transferability in retrieval tasks: An approach using mmd and kernel methods. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22390-22400, 2024. +[49] Spyros Makridakis. M4 dataset, 2018. URL https://github.com/M4Competition/M4-methods/tree/master/Dataset. +[50] Ya Su, Y. Zhao, Chenhao Niu, Rong Liu, W. Sun, and Dan Pei. Robust anomaly detection for multivariate time series through stochastic recurrent neural network. KDD, 2019. +[51] Kyle Hundman, Valentino Constantinou, Christopher Laporte, Ian Colwell, and Tom Söderström. Detecting spacecraft anomalies using lstms and nonparametric dynamic thresholding. KDD, 2018. +[52] Aditya P. Mathur and Nils Ole Tippenhauer. Swat: a water treatment testbed for research and training on ICS security. In CySWATER, 2016. +[53] Ahmed Abdulaal, Zhuanghua Liu, and Tomer Lancewicki. Practical approach to asynchronous multivariate time series anomaly detection and localization. KDD, 2021. +[54] Hao Li, Pratik Chaudhari, Hao Yang, Michael Lam, Avinash Ravichandran, Rahul Bhotika, and Stefano Soatto. Rethinking the hyperparameters for fine-tuning. arXiv preprint arXiv:2002.11770, 2020. +[55] Maurice G Kendall. A new measure of rank correlation. Biometrika, 30(1/2):81-93, 1938. +[56] Grace S Shieh. A weighted kendall's tau statistic. Statistics & probability letters, 39(1):17-24, 1998. + +# A Limitations + +Our method may perform poorly on some datasets with severe distribution shifts or structural breaks, as the results on the training set cannot accurately reflect the model's performance on the test set. This remains a challenging problem, and no existing method has effectively addressed it yet. + +# B Broader impacts + +The work in this paper contributes to facilitating the evaluation of transfer capability for time series pre-trained models, thereby further saving time and training resources and enabling the rapid selection of suitable time series pre-trained models for downstream tasks. + +# C Experiment Details + +# C.1 Implement Details + +We provide detailed descriptions of the datasets in Tables 8. For all 5 downstream tasks, we follow the experimental setup of [34]. To compute the transfer performance values, we carefully fine-tuned the pre-trained models through hyperparameter grid search. As [54] highlighted, learning rate and weight decay are the two most critical parameters. Therefore, we performed grid search over learning rates and weight decay values (6 learning rates ranging from $10^{-3}$ to $10^{-5}$ , and 3 weight decay values from $10^{-3}$ to $10^{-5}$ ) to select the optimal hyperparameters. The fine-tuning experiments of the pre-trained models were conducted on an NVIDIA H20 GPU with 96GB of memory. It is important to note that we only fine-tuned the pre-trained models to validate the effectiveness of the proposed method; the method itself does not require fine-tuning of the pre-trained models. All the results of pre-trained model transferability evaluation metrics were obtained on an AMD EPYC 7513 32-Core CPU. + +# C.2 Model Pool Details + +We selected 10 pre-trained models from four model families to form the model pool, including MOMENT-small [25], MOMENT-base [25], MOMENT-large [25], Timer-small [9], Timer-base [9], TimerXL-small [44], TimerXL-base [44], UniTS-small [26], UniTS-base [26], and UniTS-large [26]. As shown in Table 7, the selected pre-trained models differ in structure, model parameters, and the scale of pre-training. The MOMENT models were reconstructed and trained on the large hybrid dataset Time-series Pile; Timer-small and TimerXL-small were pre-trained on the ERA5 dataset, while Timer-base and TimerXL-base were pre-trained on the large dataset UTSD; the UniTS series models were pre-trained on a multi-domain hybrid dataset for time series. This highlights the differences between the models and further demonstrates that the proposed method is sufficient to support general transferability. + +Table 7: The Architecture, Model size, and Scale of the pre-trained data of the model pool. + +
MethodTimerTimer-XLMOMENTUniTS
ArchitectureDecoderDecoderEncoderEncoder
Model size11M~67M14M~69M40M~380M3M~8.4M
Pre-training Scale0.5B, 28B0.5B, 28B1.13B0.5B
+ +# C.3 Evaluation Metric + +To evaluate the effectiveness of the proposed method, we refer to previous work [17, 18] and use Kendall's $\tau$ [55] to measure the correlation between the estimated evaluation scores and the ground-truth ranking scores. This metric assesses ranking consistency, where a larger $\tau$ value indicates greater effectiveness in ranking models. It is defined as the number of concordant pairs minus the + +number of discordant pairs, divided by the overall number of pairs $\binom{M}{2}$ , as follows: + +$$ +\tau = \frac {2}{M (M - 1)} \sum_ {1 \leq i < j \leq M} \operatorname {s g n} \left(G _ {i} - G _ {j}\right). \operatorname {s g n} \left(T _ {i} - T _ {j}\right). \tag {12} +$$ + +Furthermore, we adopt a weighted version of Kendall's $\tau$ [56], denoted as $\tau_w$ , to assign higher weights to models ranked higher, to quantify this correlation. + +# C.4 Power Iteration + +Due to the limited space in the main text, we show the detailed procedure of the power iteration method here, as shown in Algorithm 1: + +Algorithm 1 Power Iteration +Input: Matrix $\mathbf{H}$ , initial vector $v_{0}$ , number of iterations $k$ , here we set 10. +Output: Dominant eigenvalue $\lambda_{\mathrm{max}}$ , corresponding eigenvector $v_{k}$ +Initialize $v_{0}$ randomly +for $i = 1$ to $k$ do + $v_{i + 1} = \mathbf{H}v_{i}$ +Normalize $v_{i + 1}$ to unit length +end for +Estimate the dominant eigenvalue $\lambda_{\mathrm{max}} = \frac{v_k^T\mathbf{H}v_k}{v_k^T v_k}$ + +# D More Experimental Results + +# D.1 Statistical Significance Testing + +To validate the effectiveness of TEMPLATE over ETran, we conducted a statistical significance test. The results show that the mean of TEMPLATE (0.483) is significantly higher than that of ETran (0.359), with a mean difference of 0.124, which is statistically significant (T_statistic = 2.679, P_value = 0.012). Therefore, TEMPLATE demonstrates significantly better performance across all tasks compared to ETran, confirming its effectiveness improvement. + +# D.2 Ablation Study + +![](images/5336960a091384c7342d83a9e523de8ef6d654621c24fcf458f7546e78aac5f6.jpg) +(a) Classification. + +![](images/17788737730123cba4ae1197c7e2023de496632e9aa4de0440227e66237d5823.jpg) +(b) Imputation. + +![](images/f89b765e2d9acf1999ffdce9fc27f3a747c9ed4352d2c3ed6065df931f20e737.jpg) +(c) Forecasting. +Figure 6: Effectiveness of each individual component in TEMPLATE. We use the three terms individually or remove them one at a time from the full system. The results are averaged across all datasets. + +![](images/16676890c300ac1f373f16206ebaeb692b0fd8085689015330ef768f79cc676e.jpg) +(d) anomaly detection. + +Due to space limitations, we have included the complete ablation experiment results in Figure 6. The experimental results show that, compared to the three individual metrics, TEMPLATE achieves the best performance, demonstrating the effectiveness of TEMPLATE. Additionally, we have also validated the effectiveness of combining these metrics in pairs. The combination of $S_{dl}$ and $S_{pl}$ outperforms each metric individually, proving their complementary nature. This demonstrates that evaluating the pre-trained model's ability for time series semantic learning from the perspectives of + +Table 8: Dataset descriptions. The dataset size is organized in (Train, Validation, Test). + +
TasksDatasetDimSeries LengthDataset SizeInformation (Frequency)
Forecasting (Long-term)ETTm1, ETTm27{96, 192, 336, 720}(34465, 11521, 11521)Electricity (15 mins)
ETTh1, ETTh27{96, 192, 336, 720}(8545, 2881, 2881)Electricity (15 mins)
Electricity321{96, 192, 336, 720}(18317, 2633, 5261)Electricity (Hourly)
Traffic862{96, 192, 336, 720}(12185, 1757, 3509)Transportation (Hourly)
Weather21{96, 192, 336, 720}(36792, 5271, 10540)Weather (10 mins)
Forecasting (short-term)M4-Yearly16(23000, 0, 23000)Demographic
M4-Quarterly18(24000, 0, 24000)Finance
M4-Monthly118(48000, 0, 48000)Industry
M4-Weakly113(359, 0, 359)Macro
M4-Daily114(4227, 0, 4227)Micro
M4-Hourly148(414, 0, 414)Other
ImputationETTm1, ETTm2796(34465, 11521, 11521)Electricity (15 mins)
ETTh1, ETTh2796(8545, 2881, 2881)Electricity (15 mins)
Electricity32196(18317, 2633, 5261)Electricity (15 mins)
Traffic86296(12185, 1757, 3509)Transportation (Hourly)
Weather2196(36792, 5271, 10540)Weather (10 mins)
Classification (UEA)EthanolConcentration31751(261, 0, 263)Alcohol Industry
FaceDetection14462(5890, 0, 3524)Face (250Hz)
Handwriting3152(150, 0, 850)Handwriting
JapaneseVowels1229(270, 0, 370)Voice
PEMS-SF963144(267, 0, 173)Transportation (Daily)
SelfRegulationSCP16896(268, 0, 293)Health (256Hz)
SelfRegulationSCP271152(200, 0, 180)Health (256Hz)
SpokenArabicDigits1393(6599, 0, 2199)Voice (11025Hz)
UWaveGestureLibrary3315(120, 0, 320)Gesture
Anomaly DetectionSMD38100(566724, 141681, 708420)Server Machine
MSL55100(44653, 11664, 73729)Spacecraft
SMAP25100(108146, 27037, 427617)Spacecraft
SWaT51100(396000, 99000, 449919)Infrastructure
PSM25100(105984, 26497, 87841)Server Machine
+ +dependency learning and pattern learning is an effective and reasonable approach. Although $S_{ta}$ did not achieve the best correlation in the anomaly detection task, compared to W/O $S_{ta}$ , TEMPLATE showed an $8\%$ average improvement in $t_w$ across 5 downstream tasks, effectively proving the validity of $S_{ta}$ . + +Additionally, it is important to note that TEMPLATE is a very robust method. We conducted additional ablation experiments to explore the specific implementation methods for the scores. For $S_{dl}$ , the main idea is to measure the alignment of the eigenvector corresponding to the largest singular value between the trend component and the original sequence. In the table, we also implemented $S_{dl}$ based on Euclidean distance, and it can be seen that $S_{dl}$ based on Euclidean distance achieves a positive transferability evaluation. For $S_{ta}$ , the main idea is to measure the similarity between features + +Table 9: Ablation study on the specific implementation methods of ${S}_{dl}$ and ${S}_{ta}$ . + +
MethodEthanolConcentrationHandwritingPEMS - SFFaceDetection
Sdl(euclidean_distance)0.3320.5970.3700.361
Sdl(pearsonr)0.3490.6080.3810.366
Sta.dot product )0.4210.6540.2760.450
Sta(HSIC)0.4360.6980.3500.453
+ +to meet the requirements of different task types for features. In the following table, we implemented $S_{t}$ based on squared dot product, and it can be observed that $S_{ta}$ based on squared dot product also achieves positive transferability evaluation. HSIC maps the features to a higher-dimensional space and then computes the similarity. The method of measuring feature similarity has good properties [36]. Therefore, we use HSIC to measure similarity. The experimental results in the table further demonstrate the effectiveness and robustness of TEMPLATE. + +Table 10: Ablation Experiment on the Sensitivity of Hyperparameter $\lambda$ . + +
λEthanolConcentrationHandwritingPEMS - SFSelfRegulationSCP2
-0.60.7160.8220.4610.551
-0.80.7240.8220.4610.551
-10.7240.8220.4700.551
+ +Finally, we note that the three scores in the final score are equally important, and $\lambda$ is only related to the task type rather than the specific downstream task dataset. To demonstrate the robustness of our method, we add a parameter sensitivity experiment for $\lambda$ in Table 10. The experimental results show that on specific downstream datasets, there is no need to fine-tune $\lambda$ . + +Table 11: Short-Term Benchmark: Performance (Weighted Kendall's $\tau_w$ ) of different methods. The best results are highlighted in bold. + +
DatasetsYearlyQuarterlyMonthlyOthersAverage
LogME0.4920.3320.5620.4680.464
ETran0.2350.7630.6240.3180.485
Ours0.5340.6670.7120.4170.583
+ +# D.3 Full Result + +Due to space limitations in the main text, we have included the results of the short-term forecasting, long-term forecasting and imputation in Tables 11, Tables 12 and 13. The experimental results demonstrate that compared to LogME and ETran, TEMPLATE achieves the best average performance. + +Table 12: The full result for forecasting task. + +
DatasetsETTh1ETTh2ETTm1ETTm2weatherECLTraffic
Length961923367209619233672096192336720961923367209619233672096192336720
LogME0.1690.3750.1980.1210.1030.2340.1320.1990.5960.2320.3640.4110.5220.5160.7000.5220.3100.021-0.1100.2330.031-0.3320.060-0.280---
ETran-0.0070.2760.2820.0010.3210.0030.1800.3450.4730.1260.314-0.1540.2100.3930.3120.4890.5310.6420.3840.3410.4610.1840.2960.2680.1020.1680.3140.184
Ours0.2340.3090.2430.175-0.0120.0760.131-0.1990.7460.3170.6700.3400.4380.5980.6800.5890.4960.5230.3420.2910.1800.3460.4580.4580.6420.3340.3950.361
+ +Table 13: The full result for imputation task. + +
DatasetsETTh1ETTh2ETTm1ETTm2weatherECLTraffic
Mask Ratio12.5%25%37.5%50%12.5%25%37.5%50%12.5%25%37.5%50%12.5%25%37.5%50%12.5%25%37.5%50%12.5%25%37.5%50% +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
LogME0.1930.4410.2510.4050.2140.2420.1960.3010.3420.6130.6580.8150.4170.3650.4230.3480.4020.1950.2970.3510.0390-0.150-0.091-0.051- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\ No newline at end of file diff --git a/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/images.zip b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..bf298d7dd08a38edc82461beb32f3326988e90a7 --- /dev/null +++ b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6472d8011382b53f147c57d940567506860d75db351ea172bf281c7e73850f66 +size 878844 diff --git a/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/layout.json b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..e1bac08c327d9a9558db6bf8d4672bf70144d300 --- /dev/null +++ b/NeurIPS/2025/Unified Transferability Metrics for Time Series Foundation Models/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af7dc4d2737ec4eed4cd3b24e27bd02c6e209b08475d81e8724b308544bf6c2c +size 492822 diff --git a/NeurIPS/2025/Unified all-atom molecule generation with neural fields/ce83c54f-949c-44f1-851e-69e4767259e5_content_list.json b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/ce83c54f-949c-44f1-851e-69e4767259e5_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..566fff13e18e79728f6756827e52e806c8d492c8 --- /dev/null +++ b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/ce83c54f-949c-44f1-851e-69e4767259e5_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd8bcdca758e4344530af33bde36856ae69f105bff9a764c8c5c51411c764e30 +size 176363 diff --git a/NeurIPS/2025/Unified all-atom molecule generation with neural fields/ce83c54f-949c-44f1-851e-69e4767259e5_model.json b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/ce83c54f-949c-44f1-851e-69e4767259e5_model.json new file mode 100644 index 0000000000000000000000000000000000000000..72c1f241235d55aee3daef584b99d71878a66ce4 --- /dev/null +++ b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/ce83c54f-949c-44f1-851e-69e4767259e5_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efd34f04349a411c93fd62736acc5b19263a65da4de48f0c4d5b189daa9db9b2 +size 234064 diff --git a/NeurIPS/2025/Unified all-atom molecule generation with neural fields/ce83c54f-949c-44f1-851e-69e4767259e5_origin.pdf b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/ce83c54f-949c-44f1-851e-69e4767259e5_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c2aa971be5d9b9028cf7ee7c51a3407afb719a31 --- /dev/null +++ b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/ce83c54f-949c-44f1-851e-69e4767259e5_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10c6e3f51e05444c09565a27a3baabbd4b26a2ad7ddcb7ce12521cee68e74275 +size 14071117 diff --git a/NeurIPS/2025/Unified all-atom molecule generation with neural fields/full.md b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/full.md new file mode 100644 index 0000000000000000000000000000000000000000..9cc6bee966a9d2e4870aaa0deb1bbed90c129c8d --- /dev/null +++ b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/full.md @@ -0,0 +1,795 @@ +# Unified all-atom molecule generation with neural fields + +Matthieu Kirchmeyer $^{1,\dagger}$ Pedro O. Pinheiro $^{1,\dagger}$ Emma Willett $^{1}$ Karolis Martinkus $^{1,\ddagger}$ Joseph Kleinhenz $^{1}$ Emily K. Makowski $^{2}$ Andrew M. Watkins $^{1}$ Vladimir Gligorijevic $^{1}$ Richard Bonneau $^{1}$ Saeed Saremi $^{1}$ + +$^{1}$ Prescient Design, Genentech $^{2}$ Antibody Engineering, Genentech + +# Abstract + +Generative models for structure-based drug design are often limited to a specific modality, restricting their broader applicability. To address this challenge, we introduce FuncBind, a framework based on computer vision to generate target-conditioned, all-atom molecules across atomic systems. FuncBind uses neural fields to represent molecules as continuous atomic densities and employs score-based generative models with modern architectures adapted from the computer vision literature. This modality-agnostic representation allows a single unified model to be trained on diverse atomic systems, from small to large molecules, and handle variable atom/residue counts, including non-canonical amino acids. FuncBind achieves competitive in silico performance in generating small molecules, macrocyclic peptides, and antibody complementarity-determining region loops, conditioned on target structures. FuncBind also generated in vitro novel antibody binders via de novo redesign of the complementarity-determining region H3 loop of two chosen co-crystal structures. As a final contribution, we introduce a new dataset and benchmark for structure-conditioned macrocyclic peptide generation*. + +# 1 Introduction + +A central challenge in drug discovery is designing molecules that bind specifically to a target protein [1]. This task involves navigating a diverse landscape of molecular modalities, from small organic compounds to large biomolecules, each with unique chemical properties. Structure-based approaches are frequently employed to meet this challenge, utilizing the 3D structure of a target site (often an accessible protein region) to generate novel molecules with high affinity. Generative models are emerging as a powerful data-driven alternative to established traditional techniques such as virtual screening and physics-based simulations. These newer models can explore vast chemical spaces more effectively to identify molecules with desired binding properties [2]. + +Most structure-based generative models specialize on a single molecule modality to better account for specific physicochemical properties. Focusing on a single molecular modality also simplifies data gathering and augmentation, training, representation choice, and metrics used for validation. Generative models of small molecules typically represent molecules as point cloud of atoms [3, 4, 5] or discretized atomic densities [6, 7]. Most protein generative models leverage the fact that proteins are sequences of amino acids to represent them with point clouds of residues, where each residue contains multiple atoms [8], recovering their sequences with, e.g., co-generation [9] or inverse folding [10]. Many protein-centric models also rely on large sequence databases and self-supervised generative models for sequence that can help in scoring and generating/proposing mutations. + +Domain-specific representations limit generalization, as models are not transferable from one modality to another. This narrow focus also limits utility, as most key applications involve interfaces and catalysis across multiple modalities. We argue that modality-agnostic representations are better suited to a wide range of tasks and can learn physical properties across diverse atomic systems, thus leveraging more training data and more challenging metrics. These representations are more expressive [11] as evidenced by the successes of cross-modality models on structure prediction [12, 13], inverse folding [14] or molecular interaction prediction [15]. + +Here, we introduce FuncBind, a unified and scalable framework for generating all-atom molecular systems conditioned on target structures. Following Kirchmeyer et al. [16], we represent molecules with neural fields: functions that map 3D coordinates to atomic densities. Neural fields are a compact and scalable alternative to voxels, while sharing many common advantages over point cloud-based representations: they (i) are compatible with expressive neural network architectures (such as CNNs and transformers), (ii) account for variable number of atoms and residues implicitly, and (iii) can represent molecules across modalities with an all-atom formulation. Using this new representation, we build a latent conditional generative model compatible with any score-based approaches. We tested denoising diffusion [17] and walk-jump sampling (WJS) [18], a sampling approach that enjoys fast-mixing and training simplicity when compared to diffusion models, largely because it only relies on one or few noise levels. + +We train FuncBind on structures from three drug modalities: small molecules, macrocyclic peptides (MCPs), and antibody complementarity-determining region (CDR) loops in complex with a target protein. These modalities encompass a range of chemical matter with challenging constraints, such as cyclic backbones and non-canonical amino acids. FuncBind achieves competitive results on in silico benchmarks, matching or outperforming modality-specific baselines. On in vitro experiments, we show that FuncBind can produce novel antibody binders by redesigning the CDR H3 loop of two chosen co-crystal structures. We also create a new dataset†, containing $\sim 190,000$ synthetic MCP/protein complexes derived from 641 RCSB PDB structures [19], particularly relevant for this work, as cyclic peptides exhibit chemistry and function that span small and large molecule modalities. + +# 2 Related work + +Pocket-conditioned small molecule generation. Several approaches have framed structure-based drug design as a generative modeling problem [20]. These methods commonly represent molecules—including both ligands and targets—either as point clouds of atoms or as voxel grids. Point-cloud approaches represent atoms as points in 3D space, along with their atomic types, and typically use graph neural network architectures. Point-cloud approaches have been used to generate molecules using autoregressive models [21, 22, 3], iterative sampling approaches [23, 24, 25], normalizing flows [26], diffusion models [27, 4, 28], and Bayesian flow networks [5]. Voxel-based approaches map atomic densities to 3D discrete voxel grids and apply computer vision techniques for generation [29, 6, 30, 31]. VoxBind [7] demonstrates that voxel-based representations achieve state-of-the-art results using expressive vision-based networks and score-based generative models. However, raw voxel-based models do not currently scale to larger molecules due to high memory requirements. Neural fields serve as the continuous analogue to discrete voxels, a technique widely adopted in 3D computer vision [32]. When applied to molecular generation, these fields match existing performance levels while demonstrating superior memory and computational efficiency [16]. + +Antigen-conditioned CDR loop generation. Antibody design is an active research topic and antibody-based treatments represented $26\%$ of 2024 FDA approvals [33] (with related biologics approvals an even higher fraction). A key line of antibody engineering work re-designs the complementarity-determining regions (CDRs), a subset of the heavy and light chains that totals 48 to 82 residues [34] and represents most of the protein's affinity determining variability. A recent approach is to co-design the CDRs sequences and structures using residue cloud representations and equivariant graph neural networks [35, 36, 37, 38], combining these representations with diffusion models for generation [39, 40]. Other works leverage protein language models [41, 42], or revisit the problem by proposing new representations that incorporate domain knowledge and physics-based constraints [43]. As is the case for most models with demonstrated redesign capabilities, we tackle the task where the pose (docking) of the framework is provided. This assumption is relaxed in [44], + +![](images/0a7fc9a49647dac8b1bac23cd70dd941ba037808c599edd001c15c52f0493d60.jpg) +Figure 1: Neural field architectures. (a) Architecture used in [16] where a global embedding is used as input to the neural field decoder. (b) Our proposed neural field architecture, where embeddings are spatially arranged into a feature map grid. The latter allows us to better capture local signal information from input space and is compatible with expressive architectures for denoising. + +where the authors finetuned RFDiffusion [45] to generate the positions of backbone CDR atoms, followed by an inverse folding step [10]. Unlike other methods, FuncBind is the first approach based on neural fields that is also applicable to different data modalities simultaneously. + +Pocket-conditioned macrocyclic peptide generation. Occupying a unique chemical space between small and large molecules, cyclic peptides are a rapidly growing class of therapeutics that can access biological targets often challenging for both small molecules and antibodies [46]. De novo generation of target-specific cyclic peptides is therefore highly desirable, in part due to the power and utility of high throughput screens for cyclic and linear peptides and peptoid binders, yet only few works have investigated this. Rettie et al. [47] propose an approach based on RFDiffusion [45] that successfully designed cyclic peptides conditioned on a target protein structure. Yet this prior method is unable to handle non-canonical amino acids, an essential component for both compatibility with industry standard high-throughput screens and for enhancing the therapeutic properties of these peptides. The work by Tang et al. [48] is the only work we are aware of that can handle non-canonical amino acids; this model operates on tokenized smiles and performs target conditioning via classifier guidance with ML-based property predictors that are known to generalize poorly out-of-distribution [49]. + +# 3 Method + +FuncBind is a latent score-based generative model that consists of two training steps: we first learn a latent representation for each molecule that modulates the parameters of a neural field decoder (Section 3.1), then we train a conditional denoiser on these latents (Section 3.2.1). The denoiser is used to sample molecules, conditioned on a given target (Section 3.2.2). + +# 3.1 Neural field-based latent representation + +We consider a dataset of $N$ molecular complex tuples $\mathcal{D} = \{(v,v^{\mathrm{tar}},c)_i\}_{i = 1}^N$ , where $v$ and $v^{\mathrm{tar}}$ are the binder and target, respectively, and $c$ is the modality of the binder. In this work, we focus on three modalities: small molecules, macrocyclic peptides, and CDR loops, though the framework accommodates any atomic system. Atoms are represented as continuous Gaussian-like densities in 3D space and molecules as functions mapping coordinates $x$ to $n$ -dimensional atomic occupancy values, $v:\mathbb{R}^3\to [0,1]^n$ (where $n$ is the number of atom types) [50, 51, 52]. See Section B for details. + +Similar to [16], an encoder embeds a molecule into a latent $z$ , which is used to decode back an atomic density field. Decoding consists in modulating the parameters of a shared neural field decoder based on the latent representation. However, instead of representing the latent $z$ with a global embedding (Figure 1a) used in [16], we consider a spatially arranged feature map (Figure 1b). This approach has been successfully applied in other domains [53, 54, 55] and provides two key advantages: (i) each spatial feature captures local information helping to scale the model to larger molecules, (ii) it is compatible with expressive architectures (e.g. U-Nets [56]) for denoising. + +The encoder $E_{\psi} : \mathbb{R}^{n \times L^3} \to \mathbb{R}^d$ , $d = C \times L^3$ , is a 3D CNN parameterized by $\psi$ that maps a voxel grid $G_v$ , generated by discretizing $v$ at a fixed low resolution (for computational efficiency) set by the integer $L$ , into a latent space with $C$ channels. For decoding, we use nearest neighbor interpolation as in [54]: from the feature map $z$ , we extract position-dependent vectors $z_x \in \mathbb{R}^C$ . The embedding $z_x$ is constant over a 3D patch in coordinate space. The decoder $D_{\phi} : \mathbb{R}^C \times \mathbb{R}^3 \to \mathbb{R}^n$ , parameterized + +![](images/bd4b439d2a9e56db06c936d86924e4ebd7365e55aecc70c34de81013036cf133.jpg) +Figure 2: Conditional denoiser training overview. We voxelize separately the binder $v$ and the target $v_{\mathrm{tar}}$ of a given complex and encode them into $z, z^{\mathrm{tar}}$ using encoders $E_{\psi}, E_{\psi'}$ , respectively. We train a denoiser $\hat{z}_{\theta}(y \mid z^{\mathrm{tar}}, \sigma, c)$ to remove the noise from $y$ conditioned on $z_{\mathrm{tar}}$ , the noise level $\sigma$ and the one-hot modality class $c$ (e.g. a cyclic peptide). The denoised latent representation is fed into a neural field decoder $D_{\phi}$ ; this gives a reconstructed field $\hat{v}$ . $\hat{v}$ undergoes some additional postprocessing to recover the bonds and residue identities (if applicable); see Section 3.3. + +by $\phi$ , then computes the molecular density field at coordinates $x \in \mathbb{R}^3$ , given a local modulation embedding $z_x \in \mathbb{R}^C$ . We use a conditional neural field based on multiplicative filter networks [57, 58] with Gabor filters, a natural choice for modeling the sparse atomic density fields [16]. + +The neural field is trained across modalities with the objective proposed in [16]. A KL-regularization term [59] is added, following common practice in latent generation [60]: + +$$ +\mathcal {L} _ {\mathrm {A E}} (\psi , \phi) = \sum_ {v \in \mathcal {D}} \mathbb {E} _ {z \sim q _ {\psi} (z | v)} \left[ \int \| D _ {\phi} (x, z) - v (x) \| _ {2} ^ {2} \mathrm {d} x \right] + \beta \operatorname {K L} \left(q _ {\psi} (z \mid v) \mid \mathcal {N} (z; 0, I _ {d})\right), \tag {1} +$$ + +where $q_{\psi}(z \mid v) = \mathcal{N}(z; \mu(v), \mathrm{diag}(\sigma(v))^2 I_d)$ , $\mu(v)$ and $\sigma(v)$ are parameterized by $E_{\psi}$ and $\beta$ is a regularization weight. As [16], when optimizing for Equation (1), we upsample coordinates $x$ close to the center of each atom to focus training on non-empty spaces. Since our model does not have equivariance built in the architecture, we apply data augmentation (translation and rotation). + +# 3.2 Conditional latent score-based generation + +We train a conditional denoiser on the neural-field based representations (Section 3.2.1). The denoiser is used to sample molecules from the aggregate posterior of the VAE encoder [61], conditioned on a given target, with conditional diffusion and walk-jump sampling (Section 3.2.2). + +# 3.2.1 Conditioned denoiser + +Our denoiser takes as input a noisy latent representation and a set of conditioning information, and outputs the "clean" version of the latent representation. In this work, we condition the denoiser on three signals: (i) the target structure $v^{\mathrm{tar}}$ , (ii) the molecule modality $c$ and (iii) the noise level $\sigma$ . + +More formally, let $(v,v^{\mathrm{tar}},c)$ be a (binder, target, modality) tuple from the dataset, $(z,z^{\mathrm{tar}}):= (E_{\psi}(G_v),E_{\psi '}(G_v^{\mathrm{tar}}))$ their latent representations and $y = z + \sigma \varepsilon$ , $\varepsilon \sim \mathcal{N}(0,I_d)$ , a noisy version of $z$ . The target encoder $E_{\psi '}$ is a 3D CNN with similar architecture as $E_{\psi}$ but different parameters $\psi'$ . Following the preconditioning pre-processing proposed by [62], our denoiser $\hat{z}_{\theta}$ is defined as: + +$$ +\hat {z} _ {\theta} (y \mid z ^ {\mathrm {t a r}}, \sigma , c) = \frac {1}{\sigma^ {2} + 1} y + \frac {\sigma}{\sqrt {\sigma^ {2} + 1}} U _ {\theta} \left(\frac {1}{\sqrt {\sigma^ {2} + 1}} y, z ^ {\mathrm {t a r}}, \frac {1}{4} \log (\sigma), c\right), +$$ + +where $U_{\theta}$ is a neural network parameterized by $\theta$ and the embeddings $z$ and $z^{\mathrm{tar}}$ are normalized to unit variance and zero mean per channel, similar to [60]. Figure 2 shows an overview of the model architecture. The spatial structure of the latent space allows us to model $U_{\theta}$ with 3D U-Nets, a standard architecture for generative models in computer vision. In particular, we adapt the network of Karras et al. [62]—designed to generate 2D images—to our 3D generation setting. Crucially, similar to recent works [52, 7, 63], we do not use any type of SE(3) equivariance constraints. Instead, we replace these constraints with data augmentation (rotations and translations) during training. + +The conditional denoiser is trained by minimizing the following loss at a given noise level $\sigma$ : + +$$ +\mathcal {L} _ {\sigma} (\theta , \psi^ {\prime}) = \mathbb {E} _ {(v, v ^ {\operatorname {t a r}}, c) \sim \mathcal {D}, z \sim q _ {\psi} (z | v), \varepsilon \sim \mathfrak {N} (0, I _ {d})} \left[ \| \hat {z} _ {\theta} (z + \sigma \varepsilon \mid z ^ {\operatorname {t a r}}, \sigma , c) - z \| _ {2} ^ {2} \right], \tag {2} +$$ + +where $z^{\mathrm{tar}} = E_{\psi'}(G_v^{\mathrm{tar}})$ is the encoding of the low-resolution voxel of the target. We apply the reweighting scheme in [62] across noise levels, i.e.: + +$$ +\mathcal {L} _ {\mathrm {d e n o i s e r}} (\theta , \psi^ {\prime}) = \mathbb {E} _ {\sigma \sim p (\sigma)} \left[ \frac {\sigma^ {2} + 1}{\sigma^ {2}} \frac {1}{e ^ {u (\sigma)}} \mathcal {L} _ {\sigma} (\theta , \psi^ {\prime}) + u (\sigma) \right], +$$ + +where $\sigma$ is sampled along some pre-determined distribution $p(\sigma)$ (see Section 3.2.2) and $u(\sigma)$ is a one-layer MLP trained with the denoiser. This effectively reweights the loss based on the noise level. + +# 3.2.2 Sampling strategies + +We experimented with various score-based sampling strategies in the conditional setting, including the SDE formulation of denoising diffusion [64, 65], widely recognized for its state-of-the-art performance in image generation and walk-jump sampling (WJS), based on a probabilistic formulation of least-squares denoising [18]. Diffusion models operate over a continuous range of noise levels in contrast to WJS which considers only one noise level. + +These models rely on the Tweedie-Miyasawa formula (TMF) [66, 67], which relates the least-squares denoiser at a noise level $\sigma$ with the score function at the noise level. Given $y = z + \sigma \varepsilon$ , $\varepsilon \sim \mathcal{N}(0, I_d)$ , the conditional extension of TMF was derived in [7]. In our notation, it takes the form: + +$$ +\nabla_ {y} \log p (y \mid z ^ {\operatorname {t a r}}, \sigma , c) \approx s _ {\theta} (y \mid z ^ {\operatorname {t a r}}, \sigma , c) := \left(\hat {z} _ {\theta} (y \mid z ^ {\operatorname {t a r}}, \sigma , c) - y\right) / \sigma^ {2}, \tag {3} +$$ + +where $\hat{z}_{\theta}$ is the minimizer of Equation (2); $s_{\theta}(y \mid z^{\mathrm{tar}}, \sigma, c)$ is the learned conditional score function. + +For diffusion, we follow [65] and generate samples by numerically integrating the reverse-time SDE from noise level $\sigma_{\mathrm{max}}$ to $\sigma_{\mathrm{min}}$ , approximating the score function with the learned denoiser $\hat{z}_{\theta}(y \mid z^{\mathrm{tar}}, \sigma, c)$ and TMF. We adopt the variance exploding formulation and the stochastic SDE sampler from EDM [62]. For WJS, we proceed as in Section B.4.2 and report the results on CDR H3 redesign in Section C.1.2. + +# 3.3 Recovering molecules from generated atomic-density fields + +To recover the underlying molecular structures from sampled latent codes $z$ , we employ a post-processing pipeline inspired by [16]. The initial phase determines atom coordinates by identifying local optima in the neural field. This is achieved by first rendering the latent code $z$ into a 0.25Å resolution voxel, then performing peak detection with MaxPooling filters, and finally refining the coordinates through gradient ascent, which takes advantage of the neural field's differentiability. The second phase involves inferring bonds and, when applicable, amino acid identities from the generated point cloud (coordinates and atom types) using OpenBabel software [68]. This yields .sdf files for molecules and peptides and .pdb files for proteins. A specific approach for identifying non-canonical amino acids, which are not recognized by OpenBabel, is described in Section D. + +# 4 Experiments + +We test our model on the following in silico settings, covering the three modalities discussed above: (i) small molecule generation conditioned on a protein pocket (Section 4.1); (ii) antibody CDR loops redesign conditioned on an epitope (Section 4.2); and (iii) macrocyclic peptides generation conditioned on a protein pocket (Section 4.3). We also performed in vitro validation of antibody CDR loops redesign conditioned on an epitope. + +For these tasks, the neural field is jointly trained on all three modalities. We train a 5B parameter model across modalities. Samples are generated via conditioning on the target structure. Note that our network is significantly larger than alternative models; we have observed improved performance in the unified setting for larger networks. See Section B for additional model details and Figure 3 for qualitative samples. + +We compared our unified model against specialized models trained independently for each modality. Overall, performance parity was observed across most metrics, with the key exception being uniqueness, which was significantly higher in the unified model. See Section C.1.3 for a comparison on CDR H3 inpainting. Further research exploring transfer learning across a broader set of modalities represents an exciting avenue for future work. + +![](images/2e2b5047872ee62532bcf04246da8b37e5e45248e83a290e6fdd480001f94ca1.jpg) +Figure 3: Examples of generated molecules given a target structure for different modalities: (top) small molecules against $2\mathsf{r}\mathsf{ma}$ , (middle) macrocyclic peptides against 5ooC and (bottom) CDR H3 loop against $5\mathsf{t}1\mathsf{k}$ . The seed binders are shown on the right. + +# 4.1 Small molecule generation + +Data. We consider the standard CrossDocked2020 [69] benchmark, with the pre-processing and splitting strategy of [70]. Pockets are clustered at a sequence identity of $< 30\%$ using MMseqs2 and are split into 99,900 train ligand pockets pairs, 100 validation pairs and 100 test pairs. + +Baselines. We compare FuncBind to various pocket-conditioned ligand generative models: these include point cloud approaches based on autoregressive models (AR [21] and Pocket2Mol [3]), diffusion (DiffSBDD [27], TargetDiff [4], DecompDiff [28]), Bayesian Flow networks (MolCraft [5]) and a voxel-based approach based on walk-jump sampling (VoxBind [7]). FuncBind can be seen as a more scalable generalization of VoxBind and closely matches its performance. All methods but DecompDiff and MolCraft rely OpenBabel [68] to assign bonds from generated atom coordinates. + +Metrics. We evaluate performance using similar metrics as previous work [4]. For each method, we sample 100 ligands per pocket. We measure affinity with three metrics using AutoDock Vina [71]: VinaScore is the docking score of the generated molecule, VinaMin is the docking score after a local energy minimization, VinaDock fully re-docks the generated molecule, including both search and scoring steps. We also compute the drug-likeness, QED [72], and synthesizeability, SA [73], score of the generated molecules with RDKit [74]. Diversity is the average Tanimoto distance (in RDKit fingerprints) per pocket across pairs of generated ligands [75]. # atoms is the average number of (heavy) atoms per molecule. We also compute the PoseCheck metrics [76]: Steric clash computes the number of clashes between the generated ligands and their pockets, Strain energy (SE) measures the difference between the internal energy of the generated molecule's pose (without pocket) and a relaxed pose (computed using Universal Force Field [77] within RDKit); we report the median value. + +Results. The results are reported in Table 1. FuncBind is competitive with the current state of the art, slightly underperforming on docking-related metrics and strain energy compared to VoxBind and Molcraft and on number of clashes compared to VoxBind. This experiment demonstrates FuncBind's ability to generate highly-variable small molecules. Next, we demonstrate that it can also handle the more regular structures of amino acid-based molecules. + +# 4.2 Antibody CDR redesign + +Data. We consider the SabDab dataset [78], which comprises antibody-protein co-crystal structures and the data splits from DiffAb [39]. This non-i.i.d. split ensures that antibodies similar to those of the test set (i.e. more than $50\%$ CDR H3 identity) are removed from the training set. The test split includes 19 targets, for which we redesign each CDR loop individually. As our baselines, we consider the Chothia numbering scheme [79] for the CDR definition. + +Baselines. We compare FuncBind to representative baselines: RAbD [80], a Rosetta-based method and two ML-based models, DiffAb [39] and AbDiffuser [43]. We consider the variation of AbDiffuser + +Table 1: Results on CrossDocked2020 test set. $\uparrow / \downarrow$ denote that higher/ lower average (Avg.) or median (Med.) is better. For # atoms, numbers close to Reference are better. Baseline results are from [7, 28]. FuncBind's results are shown with mean/standard deviation obtained over 1,000 bootstraps. + +
VinaScore ↓VinaMin ↓VinaDock ↓QED ↑SA ↑Div. ↑S.E. ↓Clash ↓#atoms
Avg.Med.Avg.Med.Avg.Med.Avg.Avg.Avg.Med.Avg.Avg.
Reference-6.36-6.46-6.71-6.49-7.45-7.26.48.73-1034.722.8
AR-5.75-5.64-6.18-5.88-6.75-6.62.51.63.705954.217.6
Pocket2mol-5.14-4.70-6.42-5.82-7.15-6.79.56.74.692065.817.7
DiffSBDD-1.94-4.24-5.85-5.94-7.00-6.90.48.58.73119315.424.0
TargetDiff-5.47-6.30-6.64-6.83-7.80-7.91.48.58.72124310.824.2
DecompDiff-5.67-6.04-7.04-7.09-8.39-8.43.45.61.68N/A7.120.9
MolCraft-6.59-7.04-7.27-7.26-7.92-8.01.50.69.721957.122.7
VoxBind-6.94-7.11-7.54-7.55-8.30-8.41.57.70.731625.123.4
FuncBind-5.71 (±.03)-5.64 (±.03)-6.34 (±.03)-6.18 (±.03)-7.26 (±.03)-7.28 (±.03).50 (±.002).65 (±.001).70 (±.0)217 (±.12)7.4 (±.06)19.0 (±.09)
+ +with side chain generation to better match FuncBind's all-atom setting; AbDiffuser in contrast to other baselines, generates all 6 loops jointly. We also compare to AbX [81] and the reproduction of dyMEAN [38] from [81] for H3 design, where the DiffAb splits were considered. + +Metrics. We compute the following metrics, measuring the similarity of the generated designs to the seed: amino acid recovery (AAR), the sequence identity between the seed and the generated CDRs; RMSD, the $C_{\alpha}$ root-mean-square deviation between the seed and generated structure and IMP, the percentage of designs with lower binding energy $(\Delta G)$ than the seed, as calculated by InterfaceAnalyzer in Rosetta [80]. Baselines apply Rosetta-based relaxations prior to computing IMP to improve the energy scores: DiffAb refines the generated structure with OpenMM [82] and AbX uses fast-relax [80]. We report metrics for 100 generated samples per target. Note that our model, unlike most baselines, generates samples with diverse sequence lengths; to compute these metrics we consider samples with the same length as the original seed. We found that uniqueness impacts AAR and RMSD, particularly for non-H3 loop designs which exhibited low uniqueness. This presents a challenge for fair model comparison, as baselines do not report uniqueness. For completeness, we also report the metrics for the unique samples on Table 4 (Section C.1). + +Results. The results in Table 2 indicate that our model is state of the art both on amino acid recovery (AAR) and $C_{\alpha}$ RMSD values, outperforming other baselines by 1.5 to 3 times across all loops. This performance can be attributed to our all-atom formulation and neural-field representation, which enable the model to better capture the molecular conformation and conditioning context. AbDiffuser also leverages side-chain information but underperforms in RMSD, highlighting the distinct advantages of our approach. Finally, FuncBind's interface energy improvement (IMP) without backbone minimization is competitive to the IMP of approaches that apply minimization. This showcases the quality and fidelity of the generated structures, as energy is very sensitive to wrong atom placement. As the baselines [81, 39], when applying Rosetta's fast-relax backbone minimization on the generated loops, IMP greatly improves as expected, outperforming even the Rosetta RAbD protocol that directly optimizes the energy function. This refinement procedure slightly increases RMSD, as it changes the loop to minimize strain, while FuncBind is trained to mimic patterns in ground-truth crystal structures. + +Length distributions generated. The above evaluation restricted designs to the seed's length, a common prior in many generative models for this task. However, in many settings, we do not know what is a reasonable length. FuncBind is designed to sample designs across various lengths, a useful capability for de novo CDR generation. To demonstrate this flexibility, we analyzed histograms of sequence lengths and atom counts for CDR H3s designed for a de novo target, comparing them against the original seed's values (see Figure 4). For this specific target, while the generated designs exhibited a range of lengths, their distributions were centered on the seed's reference values. Further validation of designs with other lengths is left for future research. + +Table 2: CDR inpainting on SAbDab [78] with DiffAb splits [70]. RMSD is in Å and AAR, IMP are in %. † indicates additional relaxation / optimization with Rosetta. + +
MethodH1L1
AAR↑RMSD↓IMP↑AAR↑RMSD↓IMP↑
\( RAbD^{\dagger} \)22.92.2643.934.31.2046.8
\( DiffAb^{\dagger} \)65.81.1953.655.71.3945.6
AbDiffuser76.31.58-81.41.46-
FuncBind86.9\( 0.41 / 0.44^{\dagger} \)\( 35.0 / 77.2^{\dagger} \)86.4\( 0.68 / 0.73^{\dagger} \)\( 45.0 / 80.4^{\dagger} \)
H2L2
\( RAbD^{\dagger} \)25.51.6453.526.31.7756.9
\( DiffAb^{\dagger} \)49.31.0829.859.31.3750.0
AbDiffuser65.71.45-83.21.40-
FuncBind78.2\( 0.52 / 0.54^{\dagger} \)\( 31.7 / 61.4^{\dagger} \)86.2\( 0.83 / 0.84^{\dagger} \)\( 39.5 / 66.0^{\dagger} \)
H3L3
\( RAbD^{\dagger} \)22.12.9023.320.71.6255.6
\( DiffAb^{\dagger} \)26.83.6023.646.51.6347.3
\( dyMEAN^{\dagger} \)29.34.805.26---
\( AbX^{\dagger} \)30.33.4142.9---
AbDiffuser34.13.35-73.21.59-
FuncBind47.5\( 2.04 / 2.10^{\dagger} \)\( 19.4 / 49.9^{\dagger} \)80.8\( 0.68 / 0.73^{\dagger} \)\( 32.7 / 67.5^{\dagger} \)
+ +![](images/4e385a36ada18b2891fe9c0cccfe6f3e8abdea502735f743687ceda7b60040b1.jpg) +Figure 4: CDR H3 length (left) and atom count (right) histogram on the de-novo 4cni target. Red is the seed H3's reference numbers. + +![](images/9d4170e8231daa18a37915be6014e0536494697cec3ce53c4d9c19f0dfe22d53.jpg) + +In vitro evaluation. We performed wet-lab validation of H3 loop redesigns based on the co-crystal structure of an antibody bound to a rigid and a flexible epitope $^{\ddagger}$ . We selected the H3 loop for its important contribution to the antibody's functional properties. We consider a de novo setting, where interfaces similar to the two complexes, identified using Ab-Ligity [83], were excluded from training. + +From an initial pool of 10,000 unique generated H3 designs (all matching the original seed's length), 190 were selected for experimental testing. This selection involved two steps: 1) The top 500 designs were shortlisted based on model confidence, as indicated by their repeated generation counts. Our in silico validation showed that repeats is an useful proxy for high amino acid recovery of the seed. 2) These 500 designs were then clustered into 190 groups using weighted K-means based on sequence edit distance, where the weights were defined by the repeat generation count. The design with the highest repeat count (highest confidence) from each of these 190 clusters was chosen for synthesis and characterization. The selected antibody designs were expressed and purified in the wet lab. Binding affinity was then determined using surface plasmon resonance (SPR) measurements. Section C.2 presents some detailed analysis. FuncBind achieves a binding rate of $45\%$ on the rigid epitope and $2\%$ on the flexible epitope, which increases to $4\%$ with a relaxed binding threshold. + +Table 3: Results on our MCP benchmark. RMSD is in Å, Residues-TS≥0.5, Vina Dock are in %. + +
TS ↑Residues-TS≥0.5 ↑L-RMSD ↓I-RMSD ↓TM-Score ↑Vina dock ↑
RFPeptide0.3129123.30.338.8
AfCycDesign0.34297.63.70.3329
FuncBind0.33252.61.80.3641
+ +# 4.3 Macrocyclic peptide generation + +Data. Given the scarcity of established baselines, benchmarks, and available data for macrocyclic peptide (MCP)-protein complexes, we introduce a novel benchmark to facilitate the evaluation of generative models for MCPs. To address the data limitation, we have curated a dataset of 186,685 MCP-protein complexes using a "mutate then relax" strategy detailed in Section E. Taking as input an original set of 641 protein-MCP complexes sourced from RCSB PDB [19], this strategy consists in (i) randomly mutating the MCPs at 1 to 8 different sites, using a list of 213 distinct amino acids, (ii) relaxing them using fast-relax, which involves iterative cycles of side-chain packing and all-atom minimization [84] and (iii) selecting the lowest interface scores. The source dataset comprises lengths ranging from 4 to 25 amino acids with an average of 10 (Section E Figure 13a). $78\%$ of the MCPs contain one or more non-canonical amino acids, i.e. any amino acid that is neither L-canonical nor D-canonical. We split the dataset into train, test and validation subsets using a clustering approach detailed in Section E that aims at creating a non-i.i.d. test set consisting of 85 protein pockets. + +Baselines. MCPs pose significant challenges for generative models due to their non-canonical amino acids, cyclization, and scarce training data. To our knowledge, no other target-conditioned, structure-based MCP generative models handles non-canonical amino acids, precluding direct comparisons. For reference, we compare nonetheless FuncBind with AfCycDesign [85] and RFPeptide [47], two models generating MCPs exclusively with canonical amino acids and N-to-C cyclization. + +Metrics. As part of this new benchmark, we define and compute relevant metrics. Tanimoto similarity (TS) assesses the resemblance between the ground-truth seed and the sampled MCP structure. Ligand RMSD (L-RMSD) is the RMSD between sample MCP to seed MCP, and template modeling (TM) score, a length independent similarity metric, based on the Kabsch alignment of the backbone atoms $(N,C_{\alpha},C,O)$ . TM score was calculated by maximizing the scaling factor. The same backbone logic is applied to compute interface RMSD (I-RMSD), the RMSD in the pocket (which are for the most part slightly lower since the pockets are identical). The sample and the seed were not aligned for I-RMSD since this is based on where the MCPs are in the pocket. Binding affinity was calculated through Autodock Vina [71]. + +Results. We observe a correlation between the generated designs with the MCP seeds. Qualitatively, Section E.1 Figure 10 illustrates the close alignment of the backbone between the sampled structures and the seed. Most of the sampled molecules display consistent repeating peptide bonds, linking the $C_1$ carbon of one $\alpha$ -amino acid to the $N_2$ nitrogen of the next. Closure bonds (such as disulfide in Figure 10a,b and N to C cyclization in Figure 10c) are also often maintained in the sampled sets. + +Metrics are reported in Table 3. The mid-range TS and TM scores reflects a strong similarity to the peptide backbone, with variability occurring at the functional groups of the residues. An example of per-residue TS for molecules sampled with the seed mutant (Section E.1 Table 10a) and the crystal MCP (Section E.1 Table 10b) shows that the highest TS occurs at the disulfide closure bond. This elevated per-residue similarity results from the preservation of closure bond residues throughout the curated dataset. Furthermore, the per-residue TS is higher across the crystal MCP residues than at the mutated residues of the seed mutant (PRO3A20 and GLU4B60). Because all mutants originate from the crystal MCP, the dataset is closely tied to the crystal sequence, and the sampled structures similarly reflect this connection. Low RMSD results show generally good alignment with the seed MCP, with many samples exhibiting RMSDs below $1\AA$ , particularly for I-RMSD. These results are consistent with the TM scores, where $\sim 20\%$ of the samples exhibit TM scores greater than 0.5. Finally, Autodock Vina binding affinity reveals that nearly half of the generated samples, both before and after minimization, have better binding affinity in the pocket compared to the seed. + +![](images/881b9e6e9d262bcaee3277524da4f059013bbd885b5f7701d4f6fa37220c3386.jpg) +Figure 5: Per-residue energy scores at the same position were calculated using Rosetta's residue energy breakdown for a seed and two samples. We analyzed: (a) the seed's serine, (b) 3-hydroxycyclopentylalanine (C1O) from sample 11 (Section E.1 Figure 12), (c) tyrosine from sample 35. + +![](images/1f1bb3103549d21f48ce1b947fff508de7b656f557e6cffe570edc1cb5890f5f.jpg) + +![](images/3a4586493923c8689e1b99c486ebf2f4cf3ecb67232906f3cc285fd60c3dda55.jpg) + +Compared to the baselines, FuncBind achieves superior or similar metrics, notably lower L/I-RMSDs. FuncBind also yields the highest proportion of designs with better docking scores. The only underperformance was in Tanimoto similarity (Residues-TS $\geq 0.5$ in particular), expected as FuncBind accesses a larger set of non-canonical amino acids and sequence lengths as opposed to these baselines. We encourage future comparisons on this new benchmark, especially for models handling non-canonical amino acids. + +Analysis of generated non-canonicals. In Figure 11 (Section E.1), amino acids are categorized into known canonical and non-canonical amino acids (seen in the training set), and unknown non-canonical amino acids, which represent newly generated amino acids not previously seen. Fewer than $1\%$ of all categorized amino acids were labeled as "unreasonable", a designation applied when a bond was shorter than $0.8\AA$ or when invalid oxygen-oxygen or nitrogen-nitrogen bonds were present. Some reasonable and novel generated amino acids are presented in Figure 12 (Section E.1). Generating novel, chemically plausible amino acids without restrictions from a predefined library or initial cyclic backbone allows broader exploration of the binding pocket. This is demonstrated in Figure 5b, where an amino acid absent from our library interacts with pocket residues that neither the seed (Figure 5a) nor a chemically similar amino acid at the same position (Figure 5c) engage. The absence of constraints in MCP generation promotes greater sequence diversity and deeper investigation of the binding pocket. + +# 5 Conclusion + +We presented FuncBind, a new framework for all-atom, structure-conditioned de novo molecular design. FuncBind is based on a new modality-agnostic representation, that enables a single model to be trained across diverse drug modalities; we focused on small molecules, macrocyclic peptides and antibody CDRs. FuncBind handles variable atom and residue counts and is based on recent advancements in computer vision, replacing equivariance constraints with data augmentation. FuncBind demonstrates competitive in silico performance, matching or outperforming specialized baselines. In vitro, we demonstrate that FuncBind generates binders against de novo targets. It generates novel and chemically plausible molecules, including new non canonical amino acids. Future directions include extending FuncBind to larger biomolecular systems and to more data modalities. Furthermore, the scaling behaviour of this model remains an interesting direction for future study, particularly given the absence of overfitting as the denoiser increased in size (we tested up to 5B parameters). + +It is important to note that, like other structure-based methods, FuncBind relies on the availability of an accurate model of the molecular interface to be designed. This can be a limitation, as these models are costly to obtain and their availability is often restricted in the drug discovery process, particularly for large molecules. Finally, real-world application of generative models in drug design requires addressing a range of properties beyond binding, e.g. synthesizeability for small molecules and developability for antibodies, considerations not handled in this work. + +Acknowledgements We thank President Design and the following colleagues: Jan Ludwiczak for processing the SabDab dataset. Tamica D'Souza for performing the antibody wetlab validation. + +Max Shen, Namuk Park, Nathan Frey, Sidney Lisanza, Rob Alberstein, Ewa Nowara, Natasa Tagasovska, Chen Cheng, Pan Kessel, Sarah Robinson, Joshua Yao-Yu Lin for insightful discussions and Genentech's legal team. + +# References + +[1] Amy C Anderson. The process of structure-based drug design. Chemistry & biology, 2003. (cit. on p. 1) +[2] Morgan Thomas, Andreas Bender, and Chris de Graaf. Integrating structure-based approaches in generative molecular design. Current Opinion in Structural Biology, 2023. (cit. on p. 1) +[3] Xingang Peng, Shitong Luo, Jiaqi Guan, Qi Xie, Jian Peng, and Jianzhu Ma. Pocket2mol: Efficient molecular sampling based on 3D protein pockets. In ICML, 2022. (cit. on pp. 1, 2, and 6) +[4] Jiaqi Guan, Wesley Wei Qian, Xingang Peng, Yufeng Su, Jian Peng, and Jianzhu Ma. 3D equivariant diffusion for target-aware molecule generation and affinity prediction. *ICLR*, 2023. (cit. on pp. 1, 2, and 6) +[5] Yanru Qu, Keyue Qiu, Yuxuan Song, Jingjing Gong, Jiawei Han, Mingyue Zheng, Hao Zhou, and Wei-Ying Ma. Molcraft: Structure-based drug design in continuous parameter space. ICML, 2024. (cit. on pp. 1, 2, and 6) +[6] Matthew Ragoza, Tomohide Masuda, and David Ryan Koes. Generating 3D molecules conditional on receptor binding sites with deep generative models. Chemical science, 2022. (cit. on pp. 1 and 2) +[7] Pedro O Pinheiro, Arian Jamasb, Omar Mahmood, Vishnu Sresht, and Saeed Saremi. Structure-based drug design by denoising voxel grids. In ICML, 2024. (cit. on pp. 1, 2, 4, 5, 6, 7, and 25) +[8] Joseph L. Watson, David Juergens, Nathaniel R. Bennett, Brian L. Trippe, Jason Yim, Helen E. Eisenach, Woody Ahern, Andrew J. Borst, Robert J. Ragotte, Lukas F. Milles, Basile I. M. Wicky, Nikita Hanikel, Samuel J. Pellock, Alexis Courbet, William Sheffler, Joe Wang, Preetham Venkatesh, Isaac Sappington, Susana Vázquez Torres, Anna Lauko, Valentin De Bortoli, Emile Mathieu, Sergey Ovchinnikov, Regina Barzilay, Tommi S. Jaakkola, Frank DiMaio, Minkyung Baek, and David Baker. De novo design of protein structure and function with RFdiffusion. Nature, 2023. (cit. on pp. 1 and 24) +[9] Ivan Anishchenko, Samuel J. Pellock, Tamuka M. Chidyausiku, Theresa A. Ramelot, Sergey Ovchinnikov, Jingzhou Hao, Khushboo Bafna, Christoffer Norn, Alex Kang, Asim K. Bera, Frank DiMaio, Lauren Carter, Cameron M. Chow, Gaetano T. Montelione, and David Baker. De novo protein design by deep network hallucination. Nature, 2021. (cit. on p. 1) +[10] J. Dauparas, I. Anishchenko, N. Bennett, H. Bai, R. J. Ragotte, L. F. Milles, B. I. M. Wicky, A. Courbet, R. J. de Haas, N. Bethel, P. J. Y. Leung, T. F. Huddy, S. Pellock, D. Tischer, F. Chan, B. Koepnick, H. Nguyen, A. Kang, B. Sankaran, A. K. Bera, N. P. King, and D. Baker. Robust deep learning-based protein sequence design using proteinMPNN. Science, 2022. (cit. on pp. 1 and 3) +[11] Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. PAMI, 2013. (cit. on p. 2) +[12] Josh Abramson, Jonas Adler, Jack Dunger, Richard Evans, Tim Green, Alexander Pritzel, Olaf Ronneberger, Lindsay Willmore, Andrew J Ballard, Joshua Bambrick, et al. Accurate structure prediction of biomolecular interactions with alphafold 3. Nature, 2024. (cit. on p. 2) +[13] Rohith Krishna, Jue Wang, Woody Ahern, Pascal Sturmfels, Preetham Venkatesh, Indrek Kalvet, Gyu Rie Lee, Felix S Morey-Burrows, Ivan Anishchenko, Ian R Humphreys, et al. Generalized biomolecular modeling and design with rosettafold all-atom. Science, 2024. (cit. on p. 2) +[14] Zhangyang Gao, Jue Wang, Cheng Tan, Lirong Wu, Yufei Huang, Siyuan Li, Zhirui Ye, and Stan Z Li. Uniif: Unified molecule inverse folding. NeurIPS, 2024. (cit. on p. 2) +[15] Xiangzhe Kong, Wenbing Huang, and Yang Liu. Generalist equivariant transformer towards 3d molecular interaction learning. ICML, 2024. (cit. on p. 2) +[16] Matthieu Kirchmeyer, Pedro O Pinheiro, and Saeed Saremi. Score-based 3d molecule generation with neural fields. In NeurIPS, 2024. (cit. on pp. 2, 3, 4, and 5) +[17] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In ICML, 2015. (cit. on p. 2) +[18] Saeed Saremi and Aapo Hyvarinen. Neural empirical Bayes. JMLR, 2019. (cit. on pp. 2, 5, 24, and 25) + +[19] S. K. Burley, D. W. Piehl, B. Vallat, and C. Zardecki. RCSB protein data bank: supporting research and education worldwide through explorations of experimentally determined and computationally predicted atomic level 3d biostructures. IUCrJ, 2024. (cit. on pp. 2 and 9) +[20] Yuanqi Du, Arian R Jamasb, Jeff Guo, Tianfan Fu, Charles Harris, Yingheng Wang, Chenru Duan, Pietro Lio, Philippe Schwaller, and Tom L Blundell. Machine learning-aided generative molecular design. Nature Machine Intelligence, 2024. (cit. on p. 2) +[21] Youzhi Luo and Shuiwang Ji. An autoregressive flow model for 3D molecular geometry generation from scratch. In ICLR, 2022. (cit. on pp. 2 and 6) +[22] Meng Liu, Youzhi Luo, Kanji Uchino, Koji Maruhashi, and Shuiwang Ji. Generating 3D molecules for target protein binding. arXiv, 2022. (cit. on p. 2) +[23] Keir Adams and Connor W Coley. Equivariant shape-conditioned generation of 3D molecules for ligand-based drug design. arXiv:2210.04893, 2022. (cit. on p. 2) +[24] Zaixi Zhang, Yaosen Min, Shuxin Zheng, and Qi Liu. Molecule generation for target protein binding with structural motifs. In ICLR, 2023. (cit. on p. 2) +[25] Alexander S Powers, Helen H Yu, Patricia Suriana, Rohan V Koodli, Tianyu Lu, Joseph M Paggi, and Ron O Dror. Geometric deep learning for structure-based ligand design. ACS Central Science, 2023. (cit. on p. 2) +[26] Eyal Rozenberg, Ehud Rivlin, and Daniel Freedman. Structure-based drug design via semi-equivariant conditional normalizing flows. In ICLR, Machine Learning for Drug Discovery workshop, 2023. (cit. on p. 2) +[27] Arne Schneuing, Charles Harris, Yuanqi Du, Kieran Didi, Arian Jamasb, Ilia Igashov, Weitao Du, Carla Gomes, Tom L Blundell, Pietro Lio, et al. Structure-based drug design with equivariant diffusion models. Nature Computational Science, 2024. (cit. on pp. 2 and 6) +[28] Jiaqi Guan, Xiangxin Zhou, Yuwei Yang, Yu Bao, Jian Peng, Jianzhu Ma, Qiang Liu, Liang Wang, and Quanquan Gu. DecompDiff: Diffusion models with decomposed priors for structure-based drug design. In ICML, 2023. (cit. on pp. 2, 6, and 7) +[29] Miha Skalic, José Jiménez, Davide Sabbadin, and Gianni De Fabritiis. Shape-based generative modeling for de novo drug design. Journal of chemical information and modeling, 2019. (cit. on p. 2) +[30] Lvwei Wang, Rong Bai, Xiaoxuan Shi, Wei Zhang, Yinuo Cui, Xiaoman Wang, Cheng Wang, Haoyu Chang, Yingsheng Zhang, Jielong Zhou, et al. A pocket-based 3D molecule generative model fueled by experimental electron density. Scientific reports, 2022. (cit. on p. 2) +[31] Siyu Long, Yi Zhou, Xinyu Dai, and Hao Zhou. Zero-shot 3D drug design by sketching and generating. NeurIPS, 2022. (cit. on p. 2) +[32] Yiheng Xie, Towaki Takikawa, Shunsuke Saito, Or Litany, Shiqin Yan, Numair Khan, Federico Tombari, James Tompkin, Vincent sitzmann, and Srinath Sridhar. Neural fields in visual computing and beyond. Computer Graphics Forum, 2022. (cit. on p. 2) +[33] Asher Mullard. 2024 FDA approvals. Nature Reviews Drug Discovery, 2025. (cit. on p. 2) +[34] Abigail VJ Collis, Adam P Brouwer, and Andrew CR Martin. Analysis of the antigen combining site: correlations between length and sequence composition of the hypervariable loops and the nature of the antigen. Journal of molecular biology, 2003. (cit. on p. 2) +[35] Wengong Jin, Jeremy Wohlwend, Regina Barzilay, and Tommi Jaakkola. Iterative refinement graph neural network for antibody sequence-structure co-design. arXiv preprint arXiv:2110.04624, 2021. (cit. on p. 2) +[36] Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Antibody-antigen docking and design via hierarchical structure refinement. In ICML, 2022. (cit. on p. 2) +[37] Xiangzhe Kong, Wenbing Huang, and Yang Liu. Conditional antibody design as 3d equivariant graph translation. arXiv preprint arXiv:2208.06073, 2022. (cit. on p. 2) +[38] Xiangzhe Kong, Wenbing Huang, and Yang Liu. End-to-end full-atom antibody design. arXiv preprint arXiv:2302.00203, 2023. (cit. on pp. 2 and 7) + +[39] Shitong Luo, Yufeng Su, Xingang Peng, Sheng Wang, Jian Peng, and Jianzhu Ma. Antigen-specific antibody design and optimization with diffusion-based generative models for protein structures. In NeurIPS, 2022. (cit. on pp. 2, 6, and 7) +[40] Xiangxin Zhou, Dongyu Xue, Ruizhe Chen, Zaixiang Zheng, Liang Wang, and Quanquan Gu. Antigen-specific antibody design via direct energy-based preference optimization. NeurIPS, 2024. (cit. on p. 2) +[41] Zaixiang Zheng, Yifan Deng, Dongyu Xue, Yi Zhou, Fei Ye, and Quanquan Gu. Structure-informed language models are protein designers. In ICML, 2023. (cit. on p. 2) +[42] Fang Wu and Stan Z Li. A hierarchical training paradigm for antibody structure-sequence co-design. NeurIPS, 2023. (cit. on p. 2) +[43] Karolis Martinkus, Jan Ludwiczak, WEI-CHING LIANG, Julien LaFrance-Vanasse, Isidro Hotzel, Arvind Rajpal, Yan Wu, Kyunghyun Cho, Richard Bonneau, Vladimir Gligorijevic, and Andreas Loukas. Abdifuser: full-atom generation of in-vitro functioning antibodies. In NeurIPS, 2023. (cit. on pp. 2 and 6) +[44] Nathaniel R. Bennett, Joseph L. Watson, Robert J. Ragotte, Andrew J. Borst, DéJenaé L. See, Connor Weidle, Riti Biswas, Yutong Yu, Ellen L. Shrock, Russell Ault, Philip J. Y. Leung, Buwei Huang, Inna Goreshnik, John Tam, Kenneth D. Carr, Benedikt Singer, Cameron Criswell, Basile I. M. Wicky, Dionne Vafeados, Mariana Garcia Sanchez, Ho Min Kim, Susana Vázquez Torres, Sidney Chan, Shirley M. Sun, Timothy Spear, Yi Sun, Keelan O'Reilly, John M. Maris, Nikolaos G. Sgourakis, Roman A. Melnyk, Chang C. Liu, and David Baker. Atomically accurate de novo design of antibodies with rdfusion. bioRxiv, 2025. (cit. on p. 2) +[45] Joseph L Watson, David Juergens, Nathaniel R Bennett, Brian L Trippe, Jason Yim, Helen E Eisenach, Woody Ahern, Andrew J Borst, Robert J Ragotte, Lukas F Milles, et al. De novo design of protein structure and function with rfdiffusion. Nature, 2023. (cit. on p. 3) +[46] Edward M. Driggers, Stephen P. Hale, Jinbo Lee, and Nicholas K. Terrett. The exploration of macrocycles for drug discovery — an underexploited structural class. Nature Reviews Drug Discovery, 2008. (cit. on p. 3) +[47] Stephen A. Rettie, David Juergens, Victor Adebomi, Yensi Flores Bueso, Qinqin Zhao, Alexandria N. Leveille, Andi Liu, Asim K. Bera, Joana A. Wilms, Alina Üffing, Alex Kang, Evans Brackenbrough, Mila Lamb, Stacey R. Gerben, Analisa Murray, Paul M. Levine, Maika Schneider, Vibha Vasireddy, Sergey Ovchinnikov, Oliver H. Weiergräber, Dieter Willbold, Joshua A. Kritzer, Joseph D. Mougous, David Baker, Frank DiMaio, and Gaurav Bhardwaj. Accurate de novo design of high-affinity protein binding macrocycles using deep learning. bioRxiv, 2024. (cit. on pp. 3 and 9) +[48] Sophia Tang, Yinuo Zhang, and Pranam Chatterjee. Peptune: De novo generation of therapeutic peptides with multi-objective-guided discrete diffusion, 2025. (cit. on p. 3) +[49] Nataša Tagasovska, Ji Won Park, Matthieu Kirchmeyer, Nathan C. Frey, Andrew Martin Watkins, Aya Abdelsalam Ismail, Arian Rokkum Jamasb, Edith Lee, Tyler Bryson, Stephen Ra, and Kyunghyun Cho. Antibody domainbed: Out-of-distribution generalization in therapeutic protein design, 2024. (cit. on p. 3) +[50] Lin Li, Chuan Li, and Emil Alexov. On the modeling of polar component of solvation energy using smooth gaussian-based dielectric function. Journal of Theoretical and Computational Chemistry, 2014. (cit. on pp. 3 and 23) +[51] Gabriele Orlando, Daniele Raimondi, Ramon Duran-Romana, Yves Moreau, Joost Schymkowitz, and Frederic Rousseau. Pyuul provides an interface between biological structures and deep learning algorithms. Nature communications, 2022. (cit. on pp. 3 and 23) +[52] Pedro O O Pinheiro, Joshua Rackers, Joseph Kleinhenz, Michael Maser, Omar Mahmood, Andrew Watkins, Stephen Ra, Vishnu Sresht, and Saeed Saremi. 3d molecule generation by denoising voxel grids. NeurIPS, 2023. (cit. on pp. 3 and 4) +[53] Songyou Peng, Michael Niemeyer, Lars Mescheder, Marc Pollefeys, and Andreas Geiger. Convolutional occupancy networks. In ECCV, 2020. (cit. on p. 3) +[54] Matthias Bauer, Emilien Dupont, Andy Brock, Dan Rosenbaum, Jonathan Richard Schwarz, and Hyunjik Kim. Spatial functa: Scaling functa to imagenet classification and generation. arXiv, 2023. (cit. on p. 3) +[55] Anpei Chen, Zexiang Xu, Andreas Geiger, Jingyi Yu, and Hao Su. Tensorf: Tensorial radiance fields. In ECCV, 2022. (cit. on p. 3) + +[56] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In MICCAI, 2015. (cit. on p. 3) +[57] Rizal Fathony, Anit Kumar Sahu, Devin Willmott, and J. Zico Kolter. Multiplicative filter networks. In ICLR, 2021. (cit. on pp. 4 and 24) +[58] Yuan Yin, Matthieu Kirchmeyer, Jean-Yves Franceschi, Alain Rakotomamonjy, and patrick gallinari. Continuous PDE dynamics forecasting with implicit neural representations. In ICLR, 2023. (cit. on pp. 4 and 24) +[59] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014. (cit. on p. 4) +[60] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In CVPR, 2021. (cit. on p. 4) +[61] Jakub Tomczak and Max Welling. VAE with a VampPrior. In AISTATS, 2018. (cit. on p. 4) +[62] Tero Karras, Janne Hellsten, Miika Aittala, Timo Aila, Jaakko Lehtinen, and Samuli Laine. Analyzing and improving the training dynamics of diffusion models. CVPR, 2024. (cit. on pp. 4, 5, and 24) +[63] Tomas Geffner, Kieran Didi, Zuobai Zhang, Danny Reidenbach, Zhonglin Cao, Jason Yim, Mario Geiger, Christian Dallago, Emine Kucukbenli, Arash Vahdat, and Karsten Kreis. Proteina: Scaling flow-based protein structure generative models. In ICLR, 2025. (cit. on pp. 4 and 24) +[64] Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In ICLR, 2021. (cit. on p. 5) +[65] Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho, editors, Advances in Neural Information Processing Systems, 2022. (cit. on pp. 5 and 24) +[66] Herbert Robbins. An empirical Bayes approach to statistics. In Proc. Third Berkeley Symp., volume 1, pages 157-163, 1956. (cit. on pp. 5 and 24) +[67] Koichi Miyasawa. An empirical Bayes estimator of the mean of a normal population. Bulletin of the International Statistical Institute, 1961. (cit. on pp. 5 and 24) +[68] Noel M O'Boyle, Michael Banck, Craig A James, Chris Morley, Tim Vandermeersch, and Geoffrey R Hutchison. Open babel: An open chemical toolbox. Journal of cheminformatics, 2011. (cit. on pp. 5 and 6) +[69] Paul G Francoeur, Tomohide Masuda, Jocelyn Sunseri, Andrew Jia, Richard B Iovanisci, Ian Snyder, and David R Koes. Three-dimensional convolutional neural networks and a cross-docked data set for structure-based drug design. Journal of chemical information and modeling, 2020. (cit. on p. 6) +[70] Shitong Luo, Jiaqi Guan, Jianzhu Ma, and Jian Peng. A 3D generative model for structure-based drug design. NeurIPS, 2021. (cit. on pp. 6 and 8) +[71] Jerome Eberhardt, Diogo Santos-Martins, Andreas F Tillack, and Stefano Forli. Autodock vina 1.2.0: New docking methods, expanded force field, and python bindings. JCIM, 2021. (cit. on pp. 6 and 9) +[72] G Richard Bickerton, Gaia V Paolini, Jérémy Besnard, Sorel Muresan, and Andrew L Hopkins. Quantifying the chemical beauty of drugs. Nature chemistry, 2012. (cit. on p. 6) +[73] Peter Ertl and Ansgar Schuffenhauer. Estimation of synthetic accessibility score of drug-like molecules based on molecular complexity and fragment contributions. Journal of cheminformatics, 2009. (cit. on p. 6) +[74] Greg Landrum. RDKit: Open-source cheminformatics software, 2016. (cit. on p. 6) +[75] David Bajusz, Anita Racz, and Károly Heberger. Why is tanimoto index an appropriate choice for fingerprint-based similarity calculations? Journal of cheminformatics, 2015. (cit. on p. 6) +[76] Charles Harris, Kieran Didi, Arian R Jamasb, Chaitanya K Joshi, Simon V Mathis, Pietro Lio, and Tom Blundell. Benchmarking generated poses: How rational is structure-based drug design with generative models? arXiv:2308.0741, 2023. (cit. on p. 6) +[77] Anthony K Rappé, Carla J Casewit, KS Colwell, William A Goddard III, and W Mason Skiff. Uff, a full periodic table force field for molecular mechanics and molecular dynamics simulations. Journal of the American chemical society, 1992. (cit. on p. 6) + +[78] James Dunbar, Konrad Krawczyk, Jinwoo Leem, Terry Baker, Angelika Fuchs, Guy Georges, Jiye Shi, and Charlotte M Deane. Sabdab: the structural antibody database. Nucleic acids research, 2014. (cit. on pp. 6 and 8) +[79] Cyrus Chothia, Arthur M. Lesk, Anna Tramontano, Michael Levitt, Sandra J. Smith-Gill, Gillian Air, Steven Sheriff, Eduardo A. Padlan, David Davies, William R. Tulip, Peter M. Colman, Silvia Spinelli, Pedro M. Alzari, and Roberto J. Poljak. Conformations of immunoglobulin hypervariable regions. Nature, 1989. (cit. on p. 6) +[80] Rebecca F. Alford, Andrew Leaver-Fay, Jeliazko R. Jeliazkov, Matthew J. O'Meara, Frank P. DiMaio, Hahnbeom Park, Maxim V. Shapovalov, P. Douglas Renfrew, Vikram K. Mulligan, Kalli Kappel, Jason W. Labonte, Michael S. Pacella, Richard Bonneau, Philip Bradley, Roland L. Jr. Dunbrack, Rhiju Das, David Baker, Brian Kuhlman, Tanja Kortemme, and Jeffrey J. Gray. The rosetta all-atom energy function for macromolecular modeling and design. Journal of Chemical Theory and Computation, 2017. (cit. on pp. 6 and 7) +[81] Tian Zhu, Milong Ren, and Haicang Zhang. Antibody design using a score-based diffusion model guided by evolutionary, physical and geometric constraints. In ICML, 2024. (cit. on p. 7) +[82] Peter Eastman, Jason Swails, John D. Chodera, Robert T. McGibbon, Yutong Zhao, Kyle A. Beauchamp, Lee-Ping Wang, Andrew C. Simmonett, Matthew P. Harrigan, Chaya D. Stern, Rafal P. Wiewiora, Bernard R. Brooks, and Vijay S. Pande. OpenMM 7: Rapid development of high performance algorithms for molecular dynamics. PLOS Computational Biology, 2017. (cit. on p. 7) +[83] W. K. Wong, S. A. Robinson, A. Bujotzek, G. Georges, A. P. Lewis, J. Shi, J. Snowden, B. Taddese, and C. M. Deane. Ab-Ligity: identifying sequence-dissimilar antibodies that bind to the same epitope. MAbs, 2021. (cit. on pp. 8 and 27) +[84] C. A. Rohl, C. E. M. Strauss, and K. M. S. Misura. Protein structure prediction using rosetta. In Methods in Enzymology, 2004. (cit. on pp. 9 and 31) +[85] Stephen A. Rettie, Katelyn V. Campbell, Asim K. Bera, Alex Kang, Simon Kozlov, Yensi Flores Bueso, Joshmyn De La Cruz, Maggie Ahlrichs, Suna Cheng, Stacey R. Gerben, Mila Lamb, Analisa Murray, Victor Adebomi, Guangfeng Zhou, Frank DiMaio, Sergey Ovchinnikov, and Gaurav Bhardwaj. Cyclic peptide structure prediction and design using alphafold2. Nature Communications, 16(1):4730, 2025. (cit. on p. 9) +[86] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. (cit. on p. 24) +[87] Saeed Saremi, Ji Won Park, and Francis Bach. Chain of log-concave Markov chains. In ICLR, 2024. (cit. on p. 25) +[88] Saeed Saremi and Rupesh Kumar Srivastava. Multimeasurement generative models. In ICLR, 2022. (cit. on p. 25) +[89] Matthias Sachs, Benedict Leimkuhler, and Vincent Danos. Langevin dynamics with variable coefficients and nonconservative forces: from stationary states to numerical methods. Entropy, 2017. (cit. on p. 25) +[90] K. Drew, P. D. Renfrew, T. W. Craven, et al. Adding diverse noncanonical backbones to rosetta: enabling peptidomimetic design. PLoS One, 2013. (cit. on p. 31) +[91] Y. Namiki, T. Ishida, and Y. Akiyama. Acceleration of sequence clustering using longest common subsequence filtering. BMC Bioinformatics, 14(Suppl 8):S7, 2013. (cit. on p. 31) + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The claims in the abstract and introduction accurately reflect the contributions and scope described in the paper. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: Section 5 + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: no theoretical proofs + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: Section B + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [Yes] + +Justification: Data and code are available see https://github.com/prescient-design/funcbind/; we provide all the details to reproduce our results in Section B. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: Sections B and 4 + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [Yes] + +Justification: Error bars reported where it is common to do so (Section 4.1) + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). + +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: Section B + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes]. + +Justification: The research conforms to the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes]. + +Justification: Section A + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: The paper poses no high risk for misuse. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: Standard baselines and datasets are reused with proper citation. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. + +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +Justification: See Sections B and E + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing or research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [NA] + +Justification: The core method development does not involve LLMs. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# Appendices + +This supplementary material is organized as follows: + +1. Section A includes a broader impact statement. +2. Section B includes model and implementation details. +3. Section C provides some additional results for antibody CDR redesign. + +Section C.1 presents some additional in silico results +- Section C.2 presents our in vitro results. + +4. Section D explain how we inferred non canonical amino acids without OpenBabel. + +5. Section E presents some additional results for macro-cyclic peptide generation + +- Section E.1 presents some additional results. +- Section E.2 presents how we curated the dataset for training FuncBind. +- Section E.3 presents the train / val / test splitting logic. + +# A Broader impacts + +This work introduces FuncBind, a novel framework for all-atom, structure-conditioned molecular generation, whose primary positive impact lies in its potential to accelerate and enhance the discovery of new therapeutics across diverse modalities, from small molecules to complex biologics like peptides and antibodies. While the underlying principles could find applications in other scientific fields like materials science, its deployment in drug discovery requires addressing significant challenges, including the validation gap between in silico predictions and experimental testing (in vitro, in vivo, and clinical trials). + +# B Model details + +# B.1 Representation + +FuncBind is based on a neural field representation that models an atomic density field, a smooth function taking values between 0 (far away from all atoms) and 1 (at the center of atoms). This field takes the following form [50, 51]: + +$$ +\forall x \in \mathbb {R} ^ {3}, v _ {a} (x) = 1 - \prod_ {i = 1} ^ {n _ {a}} \left(1 - \exp \left(- \left(\frac {\| x - x _ {a _ {i}} \|}{. 9 3 r}\right) ^ {2}\right)\right), \tag {4} +$$ + +where $a_{i}$ is the $i^{\mathrm{th}}$ atom of type $a$ (among $n$ choices), for a total of $n_a$ atoms and $r$ is the atoms' radius set to $r = 1.0\AA$ for all atom types. + +We consider $n = 8$ element types $C, O, N, S, F, Cl, P, Br$ that cover all major atom types across small molecule, macrocyclic peptides and proteins. Note that protein-specific atom types (e.g. $C_{\alpha}, C_{\beta}$ etc.) are merged into a single element type (e.g. $C$ ). This helps transfer learning across modalities. + +Finally, the field is defined over a volume of $(32\mathring{\mathrm{A}})^{3}$ . It is the continuous version of a voxel grid of spatial dimension 128 and resolution of $0.25\mathring{\mathrm{A}}$ , in $\mathbb{R}^{8\times 128^3}$ . + +# B.2 Neural Field + +The encoder $E_{\psi}$ is a 3D CNN containing 4 residual blocks (number of hidden units 256, 512, 1024, 2048 for each block), where each block contains 3 convolutional layers followed by BatchNorm, ReLU and pooling layers (we use max pooling on the first three blocks). The encoder has 59M parameters. The input to the encoder is a low-resolution grid of spatial grid dimension $L = 16$ corresponding to a resolution of $2\mathring{\mathrm{A}}$ . Before voxelizing the molecules, we first center the atoms around the tightest bounding box encapsulating the molecule, apply a random rotation to the atoms + +(each Euler angle rotated randomly between $[0,2\pi)$ ) and random translation between $[-1,1]\mathring{\mathrm{A}}$ then normalize their coordinates to the range of $[-1,1]$ . + +The decoder $D_{\phi}$ is a conditional Multiplicative Filter Network (MFN) [57, 58] with Gabor filters and 6 FiLM-modulated layers, where each fully-connected layer has 2048 hidden units. The decoder has 59M parameters. + +The auto-encoder is trained with Adam Optimizer [86] with learning rate $10^{-2}$ , $\beta_{1} = 0.9$ , $\beta_{2} = 0.999$ . We apply a KL regularization weight of $\lambda = 10^{-5}$ . Batch size is 32 over 1 B200 GPU; we sample 15000 coordinates per batch. + +# B.3 Denoiser + +The hyperparameters of the Karras et al. [62] UNet architecture are as follows: 5B model with 8 blocks with 512 channels, channel multipliers [1,2,3,4], attention resolutions [4, 2]. This model follows the XXL setting of EDM2 [62] and increased the number of channels from 448 to 512. For reference, Proteina [63], the largest protein backbone generative model, comprises 400M parameters and RFDiffusion [8] roughly 100M parameters. As [65], we apply preconditioning to learn the denoiser across noise levels. Moreover, we sample the noise levels from a log-normal distribution with mean 1.2 and standard deviation 0.8. + +The target encoder $E_{\psi'}$ is a 3D CNN which takes as input a voxel grid of dimension $\mathbb{R}^{4 \times 32^3}$ of the target protein (resolution $1.0\AA$ ), considering atom elements $C, O, N, S$ , and consists of a magnitude preserving [62] CNN layer with kernel $3 \times 3 \times 3$ and output channels 64, then a downsampling layer to a spatial grid in $\mathbb{R}^{64 \times 16^3}$ then a magnitude preserving U-Net block [62] with output channels $C = 128$ leading to a voxel of size $\mathbb{R}^{C \times 16^3}$ . + +The parameters are optimized with Adam optimizer [86] with learning rate $\alpha_{\mathrm{ref}} = 10^{-2}$ , $\beta_{1} = 0.9$ , $\beta_{2} = 0.95$ using an aggregated batch size of 768 over 8 B200 GPUs. We perform early stopping on the validation loss. We use the power function exponential moving average from EDM2 [62] with an EMA length of $5\%$ . Moreover, we adopt the inverse square root decay schedule of [86], also used in [62] which sets $\alpha(t) = \frac{\alpha_{\mathrm{ref}}}{\sqrt{\max(t / t_{\mathrm{ref}}, 1)}}$ , where we set $t_{\mathrm{ref}} = 20040$ . Finally, the networks are trained by randomly dropping the conditioning information $10\%$ of the time. + +# B.4 Sampling + +To improve uniqueness, we apply different rotations to the pocket on each MCMC chain, in a similar fashion to how rotation-based data augmentation is performed at training time. + +# B.4.1 Denoising diffusion + +We set as follows the sampling parameters of EDM2 [62]: + +- $N = 128$ steps +- $\sigma_{\mathrm{min}} = 0.01$ , $\sigma_{\mathrm{max}} = 10$ +$S_{\mathrm{min}} = 5.0,S_{\mathrm{max}} = 7.0$ +$S_{\mathrm{churn}} = 30.0$ +$S_{\mathrm{noise}} = 1.003$ +$\bullet \rho = 7$ + +Moreover, we apply a temperature scaling with $\tau = 0.5$ on Crossdocked and $\tau = 0.33$ on MCP-protein complexes. + +# B.4.2 Walk-Jump sampling + +We also implemented a conditional form of the Walk-Jump Sampling (WJS), a score-based generative model that is based on a probabilistic formulation of least-squares denoising [18]. The framework is based on the Tweedie-Miyasawa formula (TMF) [66, 67], which relates the least-squares denoiser + +at a noise level $\sigma$ with the score function at the noise level. Given $y = z + \sigma \varepsilon, \varepsilon \sim \mathcal{N}(0, I_d)$ , the conditional extension of TMF was derived in [7]. In our notation, it takes the form: + +$$ +\nabla_ {y} \log p (y \mid z ^ {\operatorname {t a r}}, \sigma , c) \approx s _ {\theta} (y \mid z ^ {\operatorname {t a r}}, \sigma , c) := (\hat {z} _ {\theta} (y \mid z ^ {\operatorname {t a r}}, \sigma , c) - y) / \sigma^ {2}, \tag {5} +$$ + +where $\hat{z}_{\theta}$ is the minimizer of Equation (2); $s_{\theta}(y \mid z^{\mathrm{tar}}, \sigma, c)$ is the learned conditional score function. + +Walk-jump sampling. WJS [18] is composed of two stages: (i) (walk) samples the noisy latent variables conditioned on $z^{\mathrm{tar}}$ , $c$ using Langevin Markov chain Monte Carlo (MCMC) via the learned score function (Equation (5)), (ii) (jump) estimates "clean" $z$ by single-step denoising. There is a fundamental trade-off in this sampling strategy: for larger $\sigma$ , sampling from the smoother density becomes easier, but the denoised samples move farther away from the distribution of interest [87]. + +Multimeasurement walk-jump sampling. The sampling trade-off in WJS is addressed in multi-measurement denoising models [88, 87], in which the problem is framed as sampling from the distribution $p_{\sigma}(y_{1:m})$ associated with $y_{1:m} \coloneqq (y_1,\dots ,y_m)$ , where $y_{k} = z + \sigma \varepsilon_{k}$ , $k \in \{1,\ldots ,m\}$ , and $\varepsilon_{k} \sim \mathcal{N}(0,I_{d})$ all independent of $z$ . Saremi et al. [87] studied a sequential scheme for sampling from $p_{\sigma}(y_{1:m})$ and showed that the noise level effectively decreases (as far as the denoiser is concerned) at the rate $\sigma /\sqrt{m}$ . Furthermore, it was shown that sampling becomes easier upon accumulation of measurements. The general sampling problem is therefore mapped to a sequence of sampling noisy data at a fixed noise scale, while the effective noise decreases via accumulation of measurements. We refer to this scheme as WJS- $m$ , which involves two hyperparameters: the noise level $\sigma$ , and the number of measurements $m$ . In this construction, we only need to keep track of the empirical mean of noisy samples. In particular, we have (see [87, Eq. 4.9]): + +$$ +\nabla_ {y _ {m}} \log p _ {\theta} (y _ {m} | y _ {1: m - 1}, z ^ {\mathrm {t a r}}, \sigma , c) = \frac {1}{m} s _ {\theta} (\overline {{y}} _ {1: m} | z ^ {\mathrm {t a r}}, \frac {\sigma}{\sqrt {m}}, c) + \frac {1}{\sigma^ {2}} (\overline {{y}} _ {1: m} - y _ {m}), +$$ + +where $\overline{y}_{1:m}$ is the empirical mean of the measurements $(y_{1},\ldots ,y_{m})$ . The score function above is used in sampling $(y_{1},\dots ,y_{m})$ iteratively using Langevin MCMC [87, Algorithm 1]. Finally, the denoising "jump" in WJS- $m$ is achieved via (single-measurement) TMF using the sufficient statistics $\overline{y}_{1:m}$ at the noise scale $\sigma /\sqrt{m}$ . It is clear that the vanilla WJS discussed above reduces to WJS-1. Although there is a flavor of diffusion in this scheme due to its sequential strategy, WJS- $m$ is arguably more "surgical" in that, by construction, we do not need to learn score functions over a continuum of noise levels, but only a finite one identified by $m$ . This is especially appealing for applications where WJS-1 already shows reasonable performance and $m$ is therefore taken to be small. This work contains the first experimental validation of WJS- $m$ in generative modeling applications. + +We report the results for WJS for CDR H3 inpainting in Section C.1.2. The parameters are set to $\sigma = 7.0$ and $m = 16$ . We use underdamped Langevin MCMC from Sachs et al. [89] in the BAOAB scheme with $K = 50$ steps, friction $\gamma = 1.0$ , discretization step $\delta = \sigma /2$ ([87, Algorithm 1]). + +# C CDR redesign + +# C.1 In silico evaluation + +# C.1.1 Uniqueness + +Table 4 reports our CDR sampling results over unique sequences. + +We observe that higher uniqueness usually leads to lower Amino Acid Recovery (AAR). In other words, repeated sequences tend to correlate more with the seed. We use this simple heuristic to select H3 designs for in vitro evaluation (see Section C.2). + +# C.1.2 Ablation with Walk Jump Sampling + +We report the performance of multimeasurement WJS and diffusion. Overall the models are comparable with slightly higher uniqueness for diffusion. + +# C.1.3 Comparison to specialized model + +We observe that the unified model has higher uniqueness than the specialized model, with slightly better CDR loop inpainting performance on unique samples. We observe this trend on the other data modalities as well. + +Table 4: Impact of uniqueness on CDR inpainting performance. RMSD is in Å and AAR and Uniqueness are in %. * indicates designs with unique sequences. + +
MethodAAR↑RMSD↓Unique↑AAR↑RMSD↓Unique↑
H1L1
AbDiffuser76.31.58-81.41.46-
FuncBind86.90.4123.586.40.6838.9
FuncBind*75.90.4510079.30.85100
H2L2
AbDiffuser65.71.45-83.21.40-
FuncBind78.20.5220.686.20.8319.4
FuncBind*59.50.5710054.42.39100
H3L3
AbDiffuser34.13.35-73.21.59-
FuncBind47.52.0485.580.80.6844.1
FuncBind*44.12.1610068.90.94100
+ +Table 5: Diffusion vs WJS on H3 loop inpainting. \* indicates designs with unique sequences. + +
MethodAAR ↑RMSD ↓Unique ↑
FuncBinddiff47.52.0485.5
FuncBind*diff44.12.16100
FuncBindWJS-1651.01.8973.8
FuncBind*WJS-1641.42.18100
+ +Table 6: Loop uniqueness comparison between Unified and Specialized models. + +
LoopUniqueness UnifiedUniqueness Specialized
H123.59.6
H220.612.6
H385.569.2
L138.910.6
L219.414.0
L344.122.3
+ +Table 7: H3 loop performance on unique samples. + +
H3 loopAARRMSD
Unified0.4412.16
Specialized0.4062.07
+ +# C.2 In vitro validation + +To experimentally validate FuncBind's capabilities, we performed wet-lab validation of H3 loop redesigns based on the co-crystal structure of an antibody bound to a rigid and a flexible epitope. We selected H3 loop redesign due to H3's important contribution to the antibody's functional properties. This study was conducted in a de novo setting: interfaces similar to the two complexes, identified using Ab-Ligity [83], were excluded from training. + +From an initial pool of 10,000 unique generated H3 designs (all matching the original seed's length), 190 (i.e. 2 SPR plates) were selected for experimental testing. This selection involved two steps: + +1. The top 500 designs were shortlisted based on model confidence, as indicated by their repeated generation counts. Our in-silico validation showed that repeats is an useful proxy for high amino acid recovery of the seed. +2. These 500 designs were then clustered into 190 groups using weighted K-means based on sequence edit distance, where the weights were defined by the repeat generation count. The design with the highest repeat count (highest confidence) from each of these 190 clusters was chosen for synthesis and characterization. + +The selected antibody designs were expressed and purified in the wet lab. Binding affinity was then determined using surface plasmon resonance (SPR) measurements. + +# C.2.1 Rigid epitope + +An analysis of Amino Acid Recovery (AAR) and Root Mean Square Deviation (RMSD) for the selected designs are provided in Figure 6: + +![](images/f80c4b11f275c28644cdb370c16a7017cad83d0930b6a2beafa01dd6b14a65fa.jpg) +Figure 6: All generated CDR H3 designs on rigid epitope: AAR (left) and RMSD (right) histogram. + +![](images/25e0638d75430f1185e912af423f8bb88ca5e9f0d4d0c79e6a941f9b718516f5.jpg) + +FuncBind successfully generated novel antibody binders in this de novo redesign problem; in fact $54\%$ were binders (42% with pKD values). 94% of all 190 submitted designs were successfully expressed and purified. Experimental results confirmed that $42\%$ of all submitted designs were binders, with pKD values in the range of [7.55, 11.29] ( $K_{D} \in [5.08 \times 10^{-12}, 2.84 \times 10^{-8}]M$ ) and an average pKD of 9.56 ( $K_{D} = 2.00 \times 10^{-9}M$ ). For comparison, the pKD of the parent antibody is 10.20 ( $K_{D} = 2.63 \times 10^{-11}M$ ). $12\%$ were binders with no pKD ("bad" binders). We identified a 5X binder in that set. + +Table 8: Average RMSD and AAR for binders and non binders on rigid epitope + +
BindersUnassignedNon-BindersGlobal
RMSD0.500.531.310.88
AAR55.150.837.946.7
+ +Table 9: Average RMSD and AAR for binders and non binders on flexible epitope + +
BindersUnassignedNon-BindersGlobal
RMSD1.932.081.941.95
AAR40.435.634.234.5
+ +![](images/945ffe9089e0a98b413aa57b304487a3c0ac28edfc35b20de0329466b277731e.jpg) +Figure 7: In vitro validation of FuncBind's designs against a rigid epitope; expression (left), binding affinity (center), binding rate (right). Expression rate is $93.68\%$ . + +![](images/290b30c692b79c0eb926954b4e35ed34bf0c51d3bf70fbc440c65c1ba1a845ea.jpg) + +# C.3 Flexible epitope + +An analysis of Amino Acid Recovery (AAR) and Root Mean Square Deviation (RMSD) for the selected designs are provided in Figure 8: + +![](images/713903ce70b9e3d24afa077835e61781964a1600abb067cc41b856f9d2ecade4.jpg) +Figure 8: All generated CDR H3 designs against a flexible epitope; target: AAR (top left) and RMSD (top right) histogram. Bottom: Logo of generated designs. + +![](images/5fc925dcc0963501b03bc161b72195eb6b4396ef56b0d3bdf313637f56d0e56e.jpg) + +Experimental results confirmed that $100\%$ of the designs expressed and $2\%$ of all submitted designs were binders, with pKDs [6.95, 7.44, 8.08, 8.47] ( $K_{D} \in [3.38 \times 10^{-9}, 1.13 \times 10^{-7}]M$ ) and an average pKD of 7.74 ( $K_{D} = 4.03 \times 10^{-8}M$ ). For comparison, the pKD of the parent antibody is 10.58 ( $K_{D} = 6.32 \times 10^{-11}M$ ). $10\%$ were binders with no pKD ("bad" binders); around 3 Unassigned binders had a very reasonable SPR curves. + +Looking at Table 9, no specific correlation between binders and non binders were found based on RMSD on the limited set of binders we had. Though higher AAR seemed to be better (based on 4 binder samples only). + +Table 10: Per-residue TS between the (a) seed MCP and (b) crystal MCP of the 20 sampled molecules in the pocket relaxed to 1vwe mutant 90. + +
(a)CYSHISA20B67PHECYS
1vwe_mut900.63 ± 0.240.24 ± 0.170.26 ± 0.070.14 ± 0.120.29 ± 0.140.53 ± 0.21
(b)CYSHISPROGLUPHECYS
1vwe-CP0.61 ± 0.230.24 ± 0.120.31 ± 0.140.28 ± 0.100.33 ± 0.080.57 ± 0.23
+ +![](images/4b05b3f1d8f80a804670af09284496594e676402215f1122bb1251333434fd2d.jpg) +Figure 9: In vitro validation of FuncBind's designs against a flexible epitope; expression (left), binding affinity (center), binding rate (right). Expression rate is $100\%$ . + +![](images/02672709b885edceeb0ac66d2f3296dbb3bd20ed1b8e147062a96204fe577ea2.jpg) + +# D Identifying non canonical amino acids + +Unidentified amino acids were determined by recognizing repeated patterns of peptide backbone atoms around a chiral carbon. All atoms stemming from a $C_{\alpha}$ , including those in the side chain, were identified and labeled per canonical atom naming conventions. SMILES strings of unidentified amino acids were compared with a non-canonical amino acid library, assigning residue names when a match was found. If no match was found, the amino acid was labeled as unknown and added to the non-canonical library. In the output PDB file, a canonical residue name was assigned based on the closest alignment of atom naming patterns (e.g., $C_{\gamma}$ , $C_{\delta_1}$ , $N_{\epsilon_1}$ ) to a known canonical residue. + +# E Macro cyclic peptides + +# E.1 Additional results + +We perform the following studies: + +Figure 10: qualitative comparison between some MCP samples and the seed. +- Table 10: per residue tanimoto similarity (TS) for molecules samples with the seed mutant (a) and the crystal MCP (b). +- Figure 11 shows the categorization of the generated amino acids. +- Figure 12 shows some reasonable and novel generated non canonical amino acids. +- Figure 5 shows how a newly generated amino acid interacts with pocket residues that neither the seed nor a chemically similar amino acid at the same position engage. + +![](images/8cac46191104af35ccc6de245d7ee002351acc895a3f2b9d8ed15e45da19403d.jpg) +a. +4gw5 mutant 104 +b. +1vwe mutant 90 +c. +1wb0 mutant 389 +Figure 10: Results of sampling in pocket relaxed around MCP seed (grey) are in (a) blue in 4gw5 mutant 104 pocket, (b) purple for 1vwe mutant 90 pocket, and (c) 1wb0 mutant 389 pocket + +![](images/1121d3805d6b92e2b06b5b85ad839168ad2e81f9528c293f8158a8a75b9e3ffc.jpg) +Figure 11: Proportion of amino acid types classified as L-canonical, D-canonical, N-methylated, other known non-canonical amino acids (as annotated in our library), and unknown non-canonical amino acids in the sampled set. + +![](images/a914458ba746b1f53e2486af74a510ada603734b7c2d273fd255c925ff6060cd.jpg) +Figure 12: Examples of unknown or novel NCAAs that appeared in the sampled set but were not present in the initial test set library. Novel NCAAs are labeled with a formal name and an assigned 3-letter AA code. + +![](images/09c4abd2ab52e7956314eaa6a6b89f93699c0002f48b05024cdab978b9c70e7a.jpg) +Figure 13: (a) Count of MCPs with each amino acid length in the source MCP-protein dataset. (b) Percentage of the number of mutations in the curated MCP-protein bound dataset. + +![](images/f11e554683a499b11e37a7ffd6aedcc6183e097c7fe10e6a6d8afdd81276fb81.jpg) + +# E.2 Data curation + +The MCP-protein pair dataset was curated by randomly mutating the MCPs from the source dataset at 1-8 different sites, using a list of 213 distinct amino acids (Figure 13b). The closure bonds in the source dataset consist of $55\%$ N-to-C (head-to-tail), $28\%$ disulfide (cysteine-cysteine), and $23\%$ S-acetyl-cysteine. The remaining $4\%$ contain other closure bonds, such as linkers, and were mainly avoided or modified in the curated MCP dataset so that mutations can be easily implemented in Rosetta. Mutations were avoided in amino acids involved in disulfide bonds and S-acetyl-cysteine linkage. The amino acid list used for random mutation of the MCPs included L-canonical, D-canonical, N-methylated, and other non-canonical types—such as alpha-modified, beta-modified, and peptoid amino acids. Many of these non-canonical residues were pre-parameterized and available in the Rosetta non-canonical rotamer libraries [90]. Following mutation, the MCPs were relaxed using the fast-relax protocol, which involves iterative cycles of side-chain packing and all-atom minimization [84]. The Rosetta interface energy scores—representing the binding energy of the protein-peptide complex at each position—were calculated using the ref_2015-cart energy function. From each source MCP-protein structure, over 2,000 mutated and relaxed complexes were generated, and approximately 500 with the lowest Rosetta interface scores were selected for the curated dataset. Therefore, we were able to expand the source dataset to 186,685 total MCP-protein structures in the curated dataset. + +# E.3 Clustering and Splitting + +The pairwise similarity of protein sequences from the 641 protein targets in the curated dataset was evaluated using the Longest Common Subsequence (LCS) method [91]. Similarity between each + +pair of sequences was calculated as the ratio of the length of their LCS to the length of the longer sequence. The target proteins were clustered together under a representative if their similarity score was greater than 0.5. If none of the similarity scores met the 0.5 threshold, a new cluster was created with that protein as the representative. 208 distinct protein clusters were used for training, validation, and testing. Clusters containing more than 100 MCP-protein pair structures in total were included in the training set. From the remaining clusters, 100 were randomly assigned to the test set, while the rest were added to the validation set. \ No newline at end of file diff --git a/NeurIPS/2025/Unified all-atom molecule generation with neural fields/images.zip b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..2cefab3d364287ba56e0930a9cbe35230dfe4187 --- /dev/null +++ b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54d70c2b81e226b7971c448b79790a88ec5fc0f3b2c871561bc0566f9b0b23e1 +size 867758 diff --git a/NeurIPS/2025/Unified all-atom molecule generation with neural fields/layout.json b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..1f78b4a2827f15b4a472e63a9540d262c24beac0 --- /dev/null +++ b/NeurIPS/2025/Unified all-atom molecule generation with neural fields/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48688600dbb39ebc7cf6e9a695dc7d285f91b691e938e941d703d811f0f77e1f +size 983637 diff --git a/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/8cbeb51a-ef29-4fb1-9b69-04beb3279174_content_list.json b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/8cbeb51a-ef29-4fb1-9b69-04beb3279174_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..7278b238f0dd2ef46c8d2ecd01fd2615d94008d2 --- /dev/null +++ b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/8cbeb51a-ef29-4fb1-9b69-04beb3279174_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55b0c1899759f728853aa1583ad8034badff4e7caf62b1365ef7ab504560b942 +size 263787 diff --git a/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/8cbeb51a-ef29-4fb1-9b69-04beb3279174_model.json b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/8cbeb51a-ef29-4fb1-9b69-04beb3279174_model.json new file mode 100644 index 0000000000000000000000000000000000000000..9404ff86cb65f11eee608fe88e5b7e589c82c082 --- /dev/null +++ b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/8cbeb51a-ef29-4fb1-9b69-04beb3279174_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6aed8b92c4b7d2e47f827e778cf283f9c6ed64ec655493aa1fa5c0327f2c31e3 +size 324046 diff --git a/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/8cbeb51a-ef29-4fb1-9b69-04beb3279174_origin.pdf b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/8cbeb51a-ef29-4fb1-9b69-04beb3279174_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..9005315c18510b8847e3c6ce09b69d1d5ab816f3 --- /dev/null +++ b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/8cbeb51a-ef29-4fb1-9b69-04beb3279174_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ed022d2d04e250648234267b4ca1306709d8145066cc3beab27b09860007a6d +size 676871 diff --git a/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/full.md b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/full.md new file mode 100644 index 0000000000000000000000000000000000000000..cd6b71932f8db87631c74ec7f5987821935780ed --- /dev/null +++ b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/full.md @@ -0,0 +1,1242 @@ +# Uniform Wrappers: Bridging Concave to Quadratizable Functions in Online Optimization + +Mohammad Pedramfar +Mila - Quebec AI Institute/McGill University +mohammad.pedramfar@mila.quebec + +Christopher J. Quinn +Iowa State University +cjquinn@iastate.edu + +Vaneet Aggarwal Purdue University vaneet@purdue.edu + +# Abstract + +This paper presents novel contributions to the field of online optimization, particularly focusing on the adaptation of algorithms from concave optimization to more challenging classes of functions. Key contributions include the introduction of uniform wrappers, a class of meta-algorithms that could be used for algorithmic conversions such as converting algorithms for convex optimization into those for quadratizable optimization. Moreover, we propose a guideline that, given a base algorithm $\mathcal{A}$ for concave optimization and a uniform wrapper $\mathcal{W}$ , describes how to convert a proof of the regret bound of $\mathcal{A}$ in the concave setting into a proof of the regret bound of $\mathcal{W}(\bar{\mathcal{A}})$ for quadratizable setting. Through this framework, the paper demonstrates improved regret guarantees for various classes of DR-submodular functions under zeroth-order feedback. Furthermore, the paper extends zeroth-order online algorithms to bandit feedback and offline counterparts, achieving notable improvements in regret/sample complexity compared to existing approaches. + +# 1 Introduction + +The optimization of continuous DR-submodular functions has become increasingly prominent in recent years. This form of optimization represents an important subset of non-convex optimization problems at the forefront of machine learning and statistics. These challenges have numerous real-world applications like revenue maximization, mean-field inference, and recommendation systems, among others [Bian et al., 2019, Hassani et al., 2017, Mitra et al., 2021, Djolonga and Krause, 2014, Ito and Fujimaki, 2016, Gu et al., 2023, Li et al., 2023]. + +A natural starting point for DR-submodular maximization is to begin with a convex optimization algorithm and adapt it to the setting of DR-submodular functions. Online Convex Optimization (OCO) is extensively utilized across various fields due to its numerous practical applications and robust theoretical underpinnings. The tools from the area of online convex optimization have been applied to many online non-concave optimization algorithms, e.g., to converge to stationary points in online non-concave optimization [Yang et al., 2018], or algorithms with approximation guarantees for DR-submodular optimization [Chen et al., 2018, Niazadeh et al., 2020, Zhang et al., 2022, Pedramfar et al., 2023]. + +In this paper, we focus on a large class of functions, namely the class of quadratizable functions, first introduced in [Pedramfar and Aggarwal, 2024a]. Quadratizable functions include special subclasses of non-convex/non-concave functions where the offline constrained optimization problem is NP-hard to solve but we can find an $\alpha$ -approximation of the optimal value in polynomial time. Indeed, it is shown that this class of online upper quadratizable optimization includes up-concave + +optimization (a generalization of DR-submodular and concave optimization) in the following cases: (i) monotone $\gamma$ -weakly $\mu$ -strongly DR-submodular functions with curvature $c$ over general convex sets, (ii) monotone $\gamma$ -weakly DR-submodular functions over convex sets containing the origin, and (iii) non-monotone DR-submodular optimization over general convex sets. + +Even though the tools from OCO have proven effective in more challenging classes, much of the past work along these lines take inspiration from OCO and manually designing new algorithms and analyzing them specific to each problem setting. This raises the following question + +When and how can we adapt algorithms from the (simpler) setup of online convex optimization into algorithms for online optimization over more general classes of functions? + +In this paper, we try to provide partial solutions to this question for adapting OCO algorithms to algorithms for online quadratizable optimization. The notion of quadratizability is built upon a generalization of the defining condition $f(\mathbf{x}) - f(\mathbf{y}) \geq \langle \nabla f(\mathbf{y}), \mathbf{x} - \mathbf{y} \rangle$ of convex functions. This similarity with convex functions is a starting point which allows us to define a class of meta-algorithms called "uniform wrappers". Uniform wrappers provide a straightforward way to convert OCO algorithms into algorithms that can handle quadratizable functions. We also develop a guideline to convert the existing proofs for regret bounds of the base algorithms in the convex setting into regret bounds of the new algorithms over quadratizable functions. + +We note that for a specific class of algorithms, this question was partly addressed in [Pedramfar and Aggarwal, 2024a]. Specifically, as we will discuss in Appendix E, their result can be formulated as a special case of ours, where they assume that the starting algorithm is a deterministic first order online algorithm with semi-bandit feedback. This condition is too restrictive to facilitate adapting many of the ideas in the OCO literature. For example, their result could not be applied to Follow-The-Perturbed-Leader type algorithms, or more generally any algorithm that is not deterministic. Another important setting where their result could not be applied is the setting with zeroth-order feedback. Without using a zeroth-order algorithm as the base algorithm, we can obtain zeroth-order results by converting first-order algorithms to zeroth-order ones. However, such conversion comes at a cost. For example, in the convex case, taking an optimal first-order algorithm such as Online Gradient Descent and converting it into a zeroth-order algorithm will result in sub-optimal $O(T^{3/4})$ regret [Flaxman et al., 2005]. In contrast, using our framework, starting from a zeroth-order base algorithm, we obtain $O(T^{2/3})$ regret for zeroth-order feedback. In particular, our approach recovers the result of [Wan et al., 2023] while their approach could not. (See Table 1.) + +In this paper, we take a step further and can handle broader classes of algorithms, including the more challenging setting of zeroth order feedback. Note that, without limiting ourselves to classes of algorithms such as the one discussed in [Pedramfar and Aggarwal, 2024a], there is not much hope of obtaining a single theorem that captures conversions of any OCO algorithm (and proof) into one for online quadratizable optimization. Instead, we provide a guideline that captures the process of converting algorithms and proofs for convex optimization into ones for quadratizable optimization. + +As an application of our framework, we propose a variant of a bandit convex optimization algorithm that was introduced in [Saha and Tewari, 2011] as the base algorithm, namely Zeroth Order Follow the Regularized Leader (ZO-FTRL) and demonstrate how it can be converted using uniform wrappers (denoted by $\mathcal{W}$ ) to obtain 3 algorithms for function classes (i)-(iii) mentioned above. See Tables 1 and 2 for details. Note that ZO-FTRL and $\mathcal{W}(\mathrm{ZO - FTRL})$ are zeroth order, but they are not bandit feedback algorithms. We also extend the results to those with bandit feedback, as well as derive sample complexity guarantees for the offline algorithm. + +We consider 3 classes of weakly DR-submodular functions, specifically (i) monotone $\gamma$ -weakly $\mu$ -strongly DR-submodular functions with curvature $c$ over general convex sets, (ii) monotone $\gamma$ -weakly DR-submodular functions over convex sets containing the origin, and (iii) non-monotone DR-submodular optimization over general convex sets. The main contributions in this work include: + +1. We develop a general framework for converting algorithms and their regret guarantees from online convex concave optimization to online quadratizable optimization. Conversion of the algorithm could be applied to any online optimization algorithm, and the conversion of the proof is described using a general guideline. + +Table 1: Online up-concave maximization + +
FSetFeedbackReferenceAppx.# of querieslogT(α-regret)
Monotone0 ∈ K∇FFull Informationstoch.[Zhang et al., 2022] (*)1 - e-γ11/2
[Pedramfar et al., 2024a]1 - e-1Tθ(θ ∈ [0,1/2])2/3 - θ/3
[Pedramfar and Aggarwal, 2024a] (*)1 - e-γ11/2
Semi-banditstoch.[Pedramfar et al., 2024a]1 - e-1-3/4
[Pedramfar and Aggarwal, 2024a] (*)1 - e-γ-2/3
FFull Informationdet.[Pedramfar and Aggarwal, 2024a] (*)1 - e-121/2
stoch. †Theorem 51 - e-112/3
stoch.[Pedramfar et al., 2024a]1 - e-1Tθ(θ ∈ [0,1/4])4/5 - θ/5
[Pedramfar and Aggarwal, 2024a] (*)1 - e-γ13/4
Banditdet.[Wan et al., 2023] (*)1 - e-1-3/4
[Zhang et al., 2024] (*)1 - e-γ-4/5
stoch. †Theorem 61 - e-1-3/4
stoch.[Pedramfar et al., 2024a]1 - e-1-5/6
[Pedramfar and Aggarwal, 2024a] (*)1 - e-γ-4/5
general∇FFull Informationstoch.[Pedramfar et al., 2024a]1/2Tθ(θ ∈ [0,1/2])2/3 - θ/3
Semi-banditstoch.[Chen et al., 2018] (*)γ2/(1 + γ2)-1/2
[Pedramfar et al., 2024a]1/2-3/4
[Pedramfar and Aggarwal, 2024a] (*)γ2/(1 + cγ2)-1/2
FFull Informationdet.[Pedramfar and Aggarwal, 2024a] (*)γ2/(1 + cγ2)21/2
stoch.[Pedramfar et al., 2024a]1/2Tθ(θ ∈ [0,1/4])4/5 - θ/5
Theorem 5γ2/(1 + cγ2)12/3
Banditstoch.[Pedramfar et al., 2024a]1/2-5/6
[Pedramfar and Aggarwal, 2024a] (*)γ2/(1 + cγ2)-3/4
Theorem 6γ2/(1 + cγ2)-3/4
Non-Monotonegeneral∇FFull Informationstoch.[Pedramfar et al., 2024a](1 - h)/4Tθ(θ ∈ [0,1/2])2/3 - θ/3
[Zhang et al., 2024] (*)(1 - h)/411/2
[Pedramfar and Aggarwal, 2024a] (*)(1 - h)/411/2
Semi-banditstoch.[Pedramfar et al., 2024a](1 - h)/4-3/4
[Pedramfar and Aggarwal, 2024a] (*)(1 - h)/4-2/3
FFull Informationdet.[Pedramfar and Aggarwal, 2024a] (*)(1 - h)/421/2
stoch. †Theorem 5(1 - h)/412/3
stoch.[Pedramfar et al., 2024a](1 - h)/4Tθ(θ ∈ [0,1/4])4/5 - θ/5
[Pedramfar and Aggarwal, 2024a] (*)(1 - h)/413/4
Banditdet.[Zhang et al., 2024] (*)(1 - h)/4--4/5
stoch. †Theorem 6(1 - h)/4-3/4
stoch.[Pedramfar et al., 2024a](1 - h)/4-5/6
[Pedramfar and Aggarwal, 2024a] (*)(1 - h)/4-4/5
+ +This table compares different static regret results for the online up-concave maximization. The logarithmic terms in regret are ignored. Here $h \coloneqq \min_{\mathbf{z} \in \mathcal{K}} \| \mathbf{z} \|_{\infty}$ . Rows marked with (*) are results in the literature that are special cases of the results stated here and therefore fit within the framework described in this paper. The rows describing results with stochastic feedback that are marked with † assume that the random query oracle is contained with a cone, as detailed in Theorem 5. Note that such oracles cover deterministic oracles as a special case. + +2. To the best our knowledge, in all cases considered, our framework recovers all algorithms in the literature for continuous DR-submodular maximization that are not Frank-Wolfe type. (See Appendix B for more details.) This includes all results marked with $(^{*})$ in Tables 1 and 2. +3. In all online optimization settings considered, our framework either beats the SOTA or successfully recovers it (see Table 1). Note that our framework also recovers all known results for non-stationary DR-submodular maximization. (See Remark 11 and Table 3 in [Pedramfar and Aggarwal, 2024a].) +4. In all offline optimization settings considered—except for deterministic first-order feedback and the special case of $\gamma$ -weakly non-monotone functions with $\gamma < 1$ —our framework either beats the SOTA or successfully recovers it. (See Table 2.) +5. When considering either deterministic or fully stochastic query oracles, we obtain superior regret guarantees for 3 settings. Specifically, for online or offline zeroth order feedback, we improve the SOTA for (ii) and for bandit feedback, we improve the SOTA for (iii). (See Tables 1 and 2) +6. We define a new notion of query oracles that are stochastic, but contained within a cone. (See Section 8) When considering these types of oracles (together with deterministic and fully stochastic query oracles), we improve SOTA for 6 more settings. Specifically, for online zeroth order, offline zeroth order and bandit feedback settings for (i) and (iii). (See Tables 1 and 2) + +To simplify the notation and statements, we define regret for maximization problems and focus on concave maximization and DR-submodular maximization. + +# 2 Background and Notation + +For a set $\mathcal{D} \subseteq \mathbb{R}^d$ , we define its affine hull $\operatorname{aff}(\mathcal{D})$ to be the set of $\alpha \mathbf{x} + (1 - \alpha) \mathbf{y}$ for all $\mathbf{x}, \mathbf{y}$ in $\mathcal{D}$ and $\alpha \in \mathbb{R}$ . The relative interior of $\mathcal{D}$ is defined as $\operatorname{relint}(\mathcal{D}) := \{\mathbf{x} \in \mathcal{D} \mid \exists r > 0, \mathbb{B}_r(\mathbf{x}) \cap \operatorname{aff}(\mathcal{D}) \subseteq \mathcal{D}\}$ . All convex functions are continuous on any point in the relative interior of their domains. In this work, we will only focus on (everywhere) continuous functions. If $\mathbf{x} \in \operatorname{relint}(\mathcal{K})$ and $f$ is convex + +and is differentiable at $\mathbf{x}$ , then we have $f(\mathbf{y}) - f(\mathbf{x}) \geq \langle \nabla f(\mathbf{x}), \mathbf{y} - \mathbf{x} \rangle$ , for all $\mathbf{y} \in \mathcal{K}$ . More generally, given $\mu \geq 0$ , we say a vector $\mathbf{o} \in \mathbb{R}^d$ is a $\mu$ -subgradient of $f$ at $\mathbf{x}$ if $f(\mathbf{y}) - f(\mathbf{x}) \geq \langle \mathbf{o}, \mathbf{y} - \mathbf{x} \rangle + \frac{\mu}{2} \| \mathbf{y} - \mathbf{x} \|^2$ . For all $\mathbf{y} \in \mathcal{K}$ . Given a convex set $\mathcal{K}$ , a function $f: \mathcal{K} \to \mathbb{R}$ is $\mu$ -strongly convex if and only if it has a $\mu$ -subgradient at all points $\mathbf{x} \in \mathcal{K}$ . A function $F: \mathcal{D} \to \mathbb{R}^+$ is $G$ -Lipschitz continuous if for all $\mathbf{x}, \mathbf{y} \in \mathcal{D}$ , $\| F(\mathbf{x}) - F(\mathbf{y}) \| \leq G \| \mathbf{x} - \mathbf{y} \|$ . A differentiable function $F: \mathcal{D} \to \mathbb{R}^+$ is $L$ -smooth if for all $\mathbf{x}, \mathbf{y} \in \mathcal{D}$ , $\| \nabla F(\mathbf{x}) - \nabla F(\mathbf{y}) \| \leq L \| \mathbf{x} - \mathbf{y} \|$ . Given a continuous monotone function $f: \mathcal{K} \to \mathbb{R}$ , its curvature is defined as the smallest number $c \in [0,1]$ such that $f(\mathbf{y} + \mathbf{z}) - f(\mathbf{y}) \geq (1 - c)(f(\mathbf{x} + \mathbf{z}) - f(\mathbf{x}))$ , for all $\mathbf{x}, \mathbf{y} \in \mathcal{K}$ and $\mathbf{z} \geq 0$ such that $\mathbf{x} + \mathbf{z}, \mathbf{y} + \mathbf{z} \in \mathcal{K}$ . We define the curvature of a function class $\mathbf{F}$ as the supremum of the curvature of functions in $\mathbf{F}$ . + +We say $\tilde{\nabla} f: \mathcal{K} \to \mathbb{R}^d$ is a $\mu$ -strongly $\gamma$ -weakly up-super-gradient of $f$ if for all $\mathbf{x} \leq \mathbf{y}$ in $\mathcal{K}$ , we have $\gamma (\langle \tilde{\nabla} f(\mathbf{y}), \mathbf{y} - \mathbf{x} \rangle + \frac{\mu}{2} \| \mathbf{y} - \mathbf{x} \|^2) \leq f(\mathbf{y}) - f(\mathbf{x}) \leq \frac{1}{\gamma} (\langle \tilde{\nabla} f(\mathbf{x}), \mathbf{y} - \mathbf{x} \rangle - \frac{\mu}{2} \| \mathbf{y} - \mathbf{x} \|^2)$ . Then we say $f$ is $\mu$ -strongly $\gamma$ -weakly up-concave if it is continuous and it has a $\mu$ -strongly $\gamma$ -weakly up-super-gradient. When $\gamma = 1$ and the above inequality holds for all $\mathbf{x}, \mathbf{y} \in \mathcal{K}$ , we say $f$ is $\mu$ -strongly concave. A differentiable function $f: \mathcal{K} \to \mathbb{R}$ is called continuous $DR$ -submodular if for all $\mathbf{x} \leq \mathbf{y}$ , we have $\nabla f(\mathbf{x}) \geq \nabla f(\mathbf{y})$ . More generally, we say $f$ is $\gamma$ -weakly continuous $DR$ -submodular if for all $\mathbf{x} \leq \mathbf{y}$ , we have $\nabla f(\mathbf{x}) \geq \gamma \nabla f(\mathbf{y})$ . It follows that any $\gamma$ -weakly continuous $DR$ -submodular functions are $\gamma$ -weakly up-concave. + +# 3 Problem setup + +Online optimization problems can be formalized as a repeated game between an agent and an adversary. The game lasts for $T$ rounds on a convex domain $\mathcal{K}$ where $T$ and $\mathcal{K}$ are known to both players. In the $t$ -th round, the agent chooses an action $\mathbf{x}_t$ from an action set $\mathcal{K} \subseteq \mathbb{R}^d$ , then the adversary chooses a loss function $f_t \in \mathbf{F}$ and a query oracle for the function $f_t$ . Then, for some $k_t \geq 0$ , and $1 \leq i \leq k_t$ , the agent chooses a points $\mathbf{y}_{t,i}$ and receives the outputs of the query oracle. + +To be more precise, an agent consists of a tuple $(\Omega^{\mathcal{A}},\mathcal{A}^{\mathrm{action}},\mathcal{A}^{\mathrm{query}})$ , where $\Omega^{\mathcal{A}}$ is a probability space that captures all the randomness of $\mathcal{A}$ . We assume that, before the first action, the agent samples $\omega \in \Omega$ . The next element in the tuple, $\mathcal{A}^{\mathrm{action}} = (\mathcal{A}_1^{\mathrm{action}},\dots,\mathcal{A}_T^{\mathrm{action}})$ is a sequence of functions such that $\mathcal{A}_t$ that maps the history $\Omega^{\mathcal{A}}\times \mathcal{K}^{t - 1}\times \prod_{s = 1}^{t - 1}(\mathcal{K}\times \mathcal{O})^{k_s}$ to $\mathbf{x}_t\in \mathcal{K}$ where we use $\mathcal{O}$ to denote range of the query oracle. The last element in the tuple, $\mathcal{A}^{\mathrm{query}}$ , is the query policy. For each $1\leq t\leq T$ and $1\leq i\leq k_t$ , $\mathcal{A}_{t,i}^{\mathrm{query}}:\Omega^{\mathcal{A}}\times \mathcal{K}^{t}\times \prod_{s = 1}^{t - 1}(\mathcal{K}\times \mathcal{O})^{k_{s}}\times (\mathcal{K}\times \mathcal{O})^{i - 1}$ is a function that, given previous actions and observations, either selects a point $\mathbf{y}_t^i\in \mathcal{K}$ , i.e., query, or signals that the query policy at this time-step is terminated. We may drop $\omega$ as one of the inputs of the above functions when there is no ambiguity. We say the agent query function is trivial if $k_{t} = 1$ and $\mathbf{y}_{t,1} = \mathbf{x}_t$ for all $1\leq t\leq T$ . In this case, we simplify the notation and use the notation $\mathcal{A} = \mathcal{A}^{\mathrm{action}} = (\mathcal{A}_1,\dots ,\mathcal{A}_T)$ to denote the agent action functions and assume that the domain of $\mathcal{A}_t$ is $\Omega^{\mathcal{A}}\times (\mathcal{K}\times \mathcal{O})^{t - 1}$ . + +A query oracle is a function that provides the observation to the agent. Formally, a query oracle for a function $f$ is a map $\mathcal{Q}$ defined on $\mathcal{K}$ such that for each $\mathbf{x} \in \mathcal{K}$ , the $\mathcal{Q}(\mathbf{x})$ is a random variable taking value in the observation space $\mathcal{O}$ . The query oracle is called a stochastic value oracle or stochastic zeroth order oracle if $\mathcal{O} = \mathbb{R}$ and $f(\mathbf{x}) = \mathbb{E}[\mathcal{Q}(\mathbf{x})]$ . Similarly, it is called a stochastic up-super-gradient oracle or stochastic first order oracle if $\mathcal{O} = \mathbb{R}^d$ and $\mathbb{E}[\mathcal{Q}(\mathbf{x})]$ is a up-super-gradient of $f$ at $\mathbf{x}$ . In all cases, if the random variable takes a single value with probability one, we refer to it as a deterministic oracle. Note that, given a function, there is at most a single deterministic gradient oracle, but there may be many deterministic up-super-gradient oracles. We will use $\nabla$ to denote the deterministic gradient oracle. We say an oracle is bounded by $B$ if its output is always within the Euclidean ball of radius $B$ centered at the origin. We say the agent takes semi-bandit feedback if the oracle is first-order and the agent query function is trivial. Similarly, it takes bandit feedback if the oracle is zeroth-order and the agent query function is trivial. If the agent query function is non-trivial, then we say the agent requires full-information feedback. + +An adversary Adv is a set such that each element $\mathcal{B} \in \mathrm{Adv}$ , referred to as a realized adversary, is a sequence $(\mathcal{B}_1, \dots, \mathcal{B}_T)$ of functions where each $\mathcal{B}_t$ maps a tuple $(\mathbf{x}_1, \dots, \mathbf{x}_t) \in \mathcal{K}^t$ to a tuple $(f_t, \mathcal{Q}_t)$ where $f_t \in \mathbf{F}$ and $\mathcal{Q}_t$ is a query oracle for $f_t$ . We say an adversary Adv is oblivious if for any realization $\mathcal{B} = (\mathcal{B}_1, \dots, \mathcal{B}_T)$ , all functions $\mathcal{B}_t$ are constant, i.e., they are independent of $(\mathbf{x}_1, \dots, \mathbf{x}_t)$ . In this case, a realized adversary may be simply represented by a sequence of func + +tions $(f_{1},\dots ,f_{T})\in \mathbf{F}^{T}$ and a sequence of query oracles $(Q_{1},\dots ,Q_{T})$ for these functions. In this work we also consider adversaries that are fully adaptive, i.e., adversaries with no restriction. Given a function class $\mathbf{F}$ and $i\in \{0,1\}$ , we use $\mathrm{Adv}_i^{\mathrm{f}}(\mathbf{F})$ to denote the set of all possible realized adversaries with deterministic $i$ -th order oracles. If the oracle is instead stochastic and bounded by $B$ , we use $\mathrm{Adv}_i^{\mathrm{f}}(\mathbf{F},B)$ to denote such an adversary. Finally, we use $\mathrm{Adv}_i^{\mathrm{o}}(\mathbf{F})$ and $\mathrm{Adv}_i^{\mathrm{o}}(\mathbf{F},B)$ to denote all oblivious realized adversaries with $i$ -th order deterministic and stochastic oracles, respectively. + +In order to handle different notions of regret with the same approach, for an agent $\mathcal{A}$ , adversary Adv, compact set $\mathcal{U} \subseteq \mathcal{K}^T$ , approximation coefficient $0 < \alpha \leq 1$ and $1 \leq a \leq b \leq T$ , we define regret + +$$ +\mathcal{R}^{\mathcal{A}}_{\alpha ,\mathrm{Adv}}(\mathcal{U})[a,b]:= \sup_{\mathcal{B}\in \mathrm{Adv}}\mathbb{E}\left[\alpha \max_{\mathbf{u} = (\mathbf{u}_{1},\dots ,\mathbf{u}_{T})\in \mathcal{U}}\sum_{t = a}^{b}f_{t}(\mathbf{u}_{t}) - \sum_{t = a}^{b}f_{t}(\mathbf{x}_{t})\right], +$$ + +where the expectation in the definition of the regret is over the randomness of the algorithm and the query oracle. We use the notation $\mathcal{R}_{\alpha, \mathcal{B}}^{\mathcal{A}}(\mathcal{U})[a, b] := \mathcal{R}_{\alpha, \mathrm{Adv}}^{\mathcal{A}}(\mathcal{U})[a, b]$ when $\mathrm{Adv} = \{\mathcal{B}\}$ is a singleton. We may drop $\alpha$ when it is equal to 1. When $\alpha < 1$ , we often assume that the functions are non-negative. Static adversarial regret or simply adversarial regret corresponds to $a = 1, b = T$ and $\mathcal{U} = \mathcal{K}_\star^T := \{(\mathbf{x}, \dots, \mathbf{x}) \mid \mathbf{x} \in \mathcal{K}\}$ . When $a = 1$ , $b = T$ and $\mathcal{U}$ contains only a single element then it is referred to as the dynamic regret [Zinkevich, 2003, Zhang et al., 2018]. Adaptive regret, is defined as $\max_{1 \leq a \leq b \leq T} \mathcal{R}_{\alpha, \mathrm{Adv}}^{\mathcal{A}}(\mathcal{K}_\star^T)[a, b]$ [Hazan and Seshadhri, 2009]. We drop $a$ , $b$ and $\mathcal{U}$ when the statement is independent of their value or their value is clear from the context. + +# 4 Uniform wrappers + +We next introduce a class of meta-algorithms that will be a central element of our proposed framework for adapting algorithms. At a high level, the meta-algorithms we consider wrap around the base algorithm and translate each action and feedback signal between the base algorithm and the adversary. The qualifier "uniform" highlights that the translations are one-to-one and independent of time. + +Definition 1. Given a function class $\mathbf{F}$ and a family of query oracles $\mathcal{Q}$ over $\mathbf{F}$ , we say a uniform wrapper $\mathcal{W} = (\mathcal{W}^{\text{action}}, \mathcal{W}^{\text{function}}, \mathcal{W}^{\text{query}})$ is a tuple of maps where $\mathcal{W}^{\text{action}}: \mathcal{K} \to \mathcal{K}$ , $\mathcal{W}^{\text{function}}: \mathbf{F} \to \mathbf{H}$ for a function class $\mathbf{H}$ and for any $f \in \mathbf{F}$ and any query oracle $\mathcal{Q}_f \in \mathcal{Q}$ , $\mathcal{W}^{\text{query}}(\mathcal{Q}_f)$ is a query oracle for $\mathcal{W}^{\text{function}}(f) \in \mathbf{H}$ .1 Given an oblivious adversary Adv choosing functions in $\mathbf{F}$ and query oracles in $\mathcal{Q}$ , we define $\mathcal{W}(\text{Adv})$ to be the adversary over $\mathbf{H}$ where the selected function and query by the adversary are transformed according to $\mathcal{W}^{\text{function}}$ and $\mathcal{W}^{\text{query}}$ .2 We say $\mathcal{W} = \text{Id}$ if + +all the maps in $\mathcal{W}$ are identity. + +In Appendix C we will discuss several examples of uniform wrappers for up-concave optimization. We drop the superscripts and use $\mathcal{W}(\mathbf{x})$ , $\mathcal{W}(f)$ and $\mathcal{W}(\mathcal{Q}_f)$ to denote $\mathcal{W}^{\mathrm{action}}(\mathbf{x})$ , $\mathcal{W}^{\mathrm{function}}(f)$ and $\mathcal{W}^{\mathrm{query}}(\mathcal{Q}_f)$ , respectively, when there is no ambiguity. + +Meta-algorithm 1 details the pseudo-code for $\mathcal{W}(\mathcal{A})$ for a uniform wrapper $\mathcal{W}$ and an online optimization algorithm $\mathcal{A}$ . Note that, when $\mathcal{W} = \mathrm{Id}$ , the meta-algorithm also reduces to the identity meta-algorithm and we see that $\mathcal{W}(\mathcal{A}) = \mathcal{A}$ . Note that in the special case where $\mathcal{A}$ is an online algorithm with semi-bandit feedback, Meta-algorithm 1 reduces to Algorithm 1 + +# Meta-algorithm 1: Application of a uniform wrapper to the base algorithm - $\mathcal{W}(\mathcal{A})$ + +Input : horizon $T$ , algorithm $\mathcal{A}$ uniform wrapper W + +for $t = 1,2,\dots ,T$ do + +Play $\mathcal{W}^{\mathrm{action}}(\mathbf{x}_t)$ where $\mathbf{x}_t$ is the action chosen by $\mathcal{A}^{\mathrm{action}}$ + +The adversary selects $f_{t}$ and a query oracle $\mathcal{Q}_t$ for $f_{t}$ + +for $i$ starting from 1, while $\mathcal{A}^{\text{query}}$ is not terminated for this time-step do + +Let $\mathbf{y}_{t,i}$ be the query chosen by $\mathcal{A}^{\mathrm{query}}$ + +Return $\mathbf{o}_{t,i} = \mathcal{W}^{\mathrm{query}}(\mathcal{Q}_t)(\mathbf{y}_{t,i})$ as the output of the query oracle to $\mathcal{A}$ query + +end + +end + +in [Pedramfar and Aggarwal, 2024a]. See Appendix A for more details. + +In this paper, we will design uniform wrappers that could convert algorithms for concave optimization into algorithms for more general class of functions that contains many DR-submodular functions. Specifically, we consider upper-quadratic/linearizable functions which we will discuss in the following section. + +# 5 Linearizable and quadratizable functions classes + +We next define an important function class significantly generalizes concavity but preserves enough structure that will enable us to obtain improved regret bounds for various problems. + +Definition 2 ([Pedramfar and Aggarwal, 2024a]). Let $\mathcal{K} \subseteq \mathbb{R}^d$ be a convex set, $\mathbf{F}$ be a function class over $\mathcal{K}$ . We say the function class $\mathbf{F}$ is upper quadratizable if there are maps $\mathfrak{g}: \mathbf{F} \times \mathcal{K} \to \mathbb{R}^d$ and $h: \mathcal{K} \to \mathcal{K}$ and constants $\mu \geq 0$ , $0 < \alpha \leq 1$ and $\beta > 0$ such that + +$$ +\alpha f (\mathbf {y}) - f (h (\mathbf {x})) \leq \beta \left(\langle \mathfrak {g} (f, \mathbf {x}), \mathbf {y} - \mathbf {x} \rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} \| ^ {2}\right). \tag {1} +$$ + +As a special case, when $\mu = 0$ , we say $\mathbf{F}$ is upper linearizable. By setting $\mathfrak{g}(f,\mathbf{x}) = \nabla f(\mathbf{x})$ , $h = \mathrm{Id}_{\mathcal{K}}$ and $\alpha = \beta = 1$ , we see that the notion of upper linearizability generalizes concavity and upper quadratizability generalizes strong concavity. It was shown in [Pedramfar and Aggarwal, 2024a] that several classes of DR-submodular (and up-concave) functions are upper quadratizable. (see Lemmas 1, 2 and 3) A similar notion of lower-quadratizable/linearizable may be similarly defined for minimization problems such as convex minimization3. + +Definition 3. We say $\mathbf{F}$ is upper quadratizable with a uniform wrapper $\mathcal{W}$ if $\mathcal{W}(\mathbf{F})$ is defined and differentiable over $\mathcal{K}$ and, for all $f\in \mathbf{F}$ , we have + +$$ +\alpha f (\mathbf {y}) - f (\mathcal {W} (\mathbf {x})) \leq \beta \left(\langle \nabla \mathcal {W} (f) (\mathbf {x}), \mathbf {y} - \mathbf {x} \rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} \| ^ {2}\right). \tag {2} +$$ + +Note that a uniform wrapper is not uniquely determined by $h$ and $\mathfrak{g}$ in the definition of upper quadraticizable functions as it also needs to describe transformations of query oracles. The special case with $\alpha = \beta = 1$ , $\mathcal{W} = \mathrm{Id}$ reduces to the definition of (strong) concavity. In Appendix C, we will construct uniform wrappers for several classes of upper quadratizable functions, specifically, monotone $\mu$ -strongly $\gamma$ -weakly up-concave functions with bounded curvature $(\mathbf{F}^{\mathrm{M}})$ , monotone $\gamma$ -weakly up-concave functions over convex sets containing the origin $(\mathbf{F}^{\mathrm{M0}})$ , and non-monotone up-concave functions over general convex sets $(\mathbf{F}^{\mathrm{NM}})$ . + +# 6 When Is Concave Optimization Enough? + +As can be seen in Meta-algorithm 1, we may apply a uniform wrapper $\mathcal{W}$ to any online optimization algorithm $\mathcal{A}$ . However, even if the original algorithm has a sublinear regret over concave functions and $\mathbf{F}$ is a function class that is upper quadratizable with $\mathcal{W}$ , this does not guarantee that the resulting algorithm $\mathcal{W}(\mathcal{A})$ has a sublinear regret over $\mathbf{F}$ . In this section we discuss how we might convert the proofs of the regret bound for $\mathcal{A}$ over concave functions into a proof of a similar regret bound for $\mathcal{W}(\mathcal{A})$ over $\mathbf{F}$ . That starting point is to notice that a game played between $\mathcal{W}(\mathcal{A})$ and Adv is mathematically equivalent to one played between $\mathcal{A}$ and $\mathcal{W}(\mathrm{Adv})$ . Therefore we need to convert the regret guarantees of $\mathcal{A}$ against a concave adversary into guarantees for $\mathcal{A}$ against $\mathcal{W}(\mathrm{Adv})$ . See Appendix A for more details. + +The guideline for converting proof for concave optimization into proofs for upper-quadratizable optimization can be informally summarized in a few steps: + +(0) Sometimes, if the algorithm $\mathcal{A}$ is the result of application of a meta-algorithm to another algorithm $\mathcal{B}$ , e.g. $\mathcal{A} = \mathrm{SFTT}(\mathcal{B})$ (the meta-algorithm SFTT converts algorithms that require full-information feedback to ones that work with (semi)-bandit feedback; see Appendix M), we may + +need to consider the base algorithm instead. For example, in the example of SFTT, we might want to consider SFTT $(\mathcal{W}(\mathcal{B}))$ instead of $\mathcal{W}(\mathrm{SFTT}(\mathcal{B})) = \mathcal{W}(\mathcal{A})$ . + +(1) Rewrite the parts of proof (after possibly adapting the algorithm) of the original regret bound without assuming that the function class in concave, in order to isolate the use on concavity in the proof. In this step, we hope to obtain a result that would only require a single use of an inequality of the type $f(\mathbf{y}) - f(\mathbf{x}) \leq \langle \nabla f(\mathbf{x}), \mathbf{y} - \mathbf{x} \rangle - \frac{\mu}{2} \| \mathbf{y} - \mathbf{x} \|^2$ to complete the proof for the concave case. See Theorems 1, 3 (as an example of a family of zeroth order results), and 11 (as an example of a family of first order results) for examples of this step. +(2) Verify that the results of the previous step could be adapted to upper-quadratizable setting. See the proof of Theorems 2, 4, and 12 for examples of this step. + +In the following section, we discuss a version of Follow The Regularized Leader (FTRL) algorithm for concave optimization and adapt it to fit the guidelines discussed above. As another application of the guideline, we refer to Appendix E for a discussion of applying this guideline to recover some previous results in the literature, including all the results in Tables 1 and 2 that are marked with $(^{*})$ . + +# 7 Examples + +In this section, we provide examples of applying uniform wrappers and the guideline described earlier. The first example is illustrative and recovers some existing results, while the second example provides new results, as we will discuss in Section 8. + +# 7.1 Online Gradient Ascent + +Here we clarify the guideline in Section 6 by applying it to a simple base algorithm, namely Online Gradient Ascent (OGA). + +Note that this is only an illustrative example and a much more general result is proven in Appendix E. + +In Algorithm 2, we use $Q_{t}$ to denote the stochastic first order query oracle for $f_{t}$ which returns unbiased estimates of $\nabla f_{t}$ . The effect of Meta-algorithm 1 is that it transforms the action of the base algorithm using $\mathcal{W}^{\mathrm{action}}$ and query oracle of the base algorithm using $\mathcal{W}^{\mathrm{query}}$ . If we apply the first-order to first-order uniform wrapper $\mathcal{W}_{1}^{\mathrm{NM}}$ (for non-monotone up-concave functions over general convex sets; see Appendix C.3 for additional details), we get a first-order algorithm for online optimization of non-monotone DR-submodular function over general convex sets. The resulting algorithm is + +By plugging in the definitions of $(\mathcal{W}_1^{\mathrm{NM}})^{\mathrm{action}}$ and $(\mathcal{W}_1^{\mathrm{NM}})^{\mathrm{query}}$ as per Appendix C.3, we get the Algorithm 4 which is Algorithm 1 in [Zhang et al., 2024] for the case of non-monotone functions. + +The conversion of the regret bound is the focus of Section 6, in the form of a three-step guideline. Since that is a guideline that depends on the structure and the details of the original proof, any explanation of the application of the guideline requires an understanding of the original proof. For OGA specifically, we may simplify the proofs and the guideline in the following manner: + +Algorithm 2: Online Gradient Ascent (OGA) +Input: horizon $T$ , convex set $\mathcal{K}$ , $\mathbf{x}_1 \in \mathcal{K}$ , step-sizes $\{\eta_t\}_{t=1}^T$ +for $t = 1, 2, \dots, T$ do + Play $\mathbf{x}_t$ + The adversary selects $f_t$ and a query oracle $\mathcal{Q}_t$ for $f_t$ + Observe $\mathbf{o}_t$ , a sample of $\mathcal{Q}_t(\mathbf{x}_t)$ , an unbiased estimate of $\nabla f_t(\mathbf{x}_t)$ $\mathbf{x}_{t+1} \gets P_{\mathcal{K}}(\mathbf{x}_t + \eta_t \mathbf{o}_t)$ +end + +Algorithm 3: Application of $\mathcal{W}_1^{\mathrm{NM}}$ to Online Gradient Ascent $(\mathcal{W}_1^{\mathrm{NM}}(\mathrm{OGA}))$ +Input : horizon $T$ , convex set $\kappa$ $\mathbf{x}_1,\underline{\mathbf{x}}\in \mathcal{K}$ step-sizes $\{\eta_t\}_{t = 1}^T$ +for $t = 1,2,\ldots ,T$ do Play $(\mathcal{W}_1^{\mathrm{NM}})^{\mathrm{action}}(\mathbf{x}_t)$ The adversary selects $f_{t}$ and a query oracle $\mathcal{Q}_t$ for $f_{t}$ Observe $\mathbf{o}_t$ , a sample of $(\mathcal{W}_1^{\mathrm{NM}})^{\mathrm{query}}(\mathcal{Q}_t)(\mathbf{x}_t)$ $\mathbf{x}_{t + 1}\gets P_K(\mathbf{x}_t + \eta_t\mathbf{o}_t)$ +end + +As per Step 1 of the guideline, we first rewrite a part of the proof of the OGA, in a way that does not require concavity, but the proof of the regret bound for the concave case can be recovered using the inequality $f(\mathbf{y}) - f(\mathbf{x}) \leq \langle \nabla f_t(\mathbf{x}), \mathbf{y} - \mathbf{x} \rangle$ . + +Theorem 1. For any differentiable function class $\mathbf{F}$ , with stochastic first-order query oracles bounded by $G$ and step-sizes $\eta_t = \frac{D}{G\sqrt{t}}$ , the algorithm OGA guarantees that $\max_{\mathbf{x} \in \mathcal{K}} \sum_{t=1}^{T} \mathbb{E}[\langle \nabla f_t(\mathbf{x}_t), \mathbf{x} - \mathbf{x}_t \rangle] \leq \frac{3}{2}GD\sqrt{T}$ . + +The proof of Theorem 1 is a simple rewriting of the classical results. We include a proof in + +Appendix D for completeness. Note that the boundedness of the stochastic first-order query oracle by $G$ implies that the gradients of functions in $\mathbf{F}$ are bounded by $G$ , i.e., functions in $\mathbf{F}$ are $G$ -Lipschitz continuous. + +# Algorithm 4: Application of $\mathcal{W}_1^{\mathrm{NM}}$ to Online Gradient Ascent (W1NM(OGA)) + +Input: horizon $T$ , convex set $\mathcal{K}$ , $\mathbf{x}_1, \underline{\mathbf{x}} \in \mathcal{K}$ , step-sizes $\{\eta_t\}_{t=1}^T$ +for $t = 1, 2, \dots, T$ do + +$$ +\text {P l a y} (\mathbf {x} _ {t} + \underline {{\mathbf {x}}}) / 2 +$$ + +$$ +\text {S a m p l e} z \text {a c c o r d i n g} \mathcal {Z} ^ {\mathrm {N M}} (\text {a s d e f i n e d i n} +$$ + +$$ +\begin{array}{l} \text {T h e a d v a r s a r y s e l e c t s f _ {t} a n d a q u e y o r a l c e \mathcal {Q} _ {t}} \\ \text {f o r f _ {t}} \end{array} +$$ + +$$ +\begin{array}{l} \text {O b s e r v e} \mathbf {o} _ {t}, \text {a s p a r a m e l o f} \mathcal {Q} _ {t} \big (\frac {z}{2} \big (\mathbf {x} _ {t} - \underline {{\mathbf {x}}} \big) + \underline {{\mathbf {x}}} \big), \\ \text {a n u n b i a s e d e s t i m a t e o f} \end{array} +$$ + +$$ +\nabla f _ {t} \left(\frac {z}{2} (\mathbf {x} _ {t} - \underline {{\mathbf {x}}}) + \underline {{\mathbf {x}}}\right) +$$ + +$$ +\mathbf {x} _ {t + 1} \leftarrow P _ {\mathcal {K}} \left(\mathbf {x} _ {t} + \eta_ {t} \mathbf {o} _ {t}\right) +$$ + +# end + +In Step 2 of the guideline, we adapt the result of Theorem 1 to the upper-linearizable setting. + +Theorem 2. If $\mathbf{F}$ is a function class over $\mathcal{K}$ that is upper-linearizable with $0 < \alpha \leq 1$ and $\beta \geq 0$ and a first-order uniform wrapper $\mathcal{W}$ , then with stochastic first-order query oracles bounded by $G$ and step-sizes $\eta_t = \frac{D}{G\sqrt{t}}$ , the algorithm $\mathcal{W}(\mathrm{OGA})$ guarantees that $\max_{\mathbf{x} \in \mathcal{K}} \sum_{t=1}^{T} \mathbb{E}[f_t(\mathbf{x}) - f_t(\mathcal{W}^{\mathrm{action}}(\mathbf{x}_t))] \leq \frac{3}{2}GD\sqrt{T}$ . + +We refer to Appendix D for a proof. + +# 7.2 Zeroth Order Follow The Regularized Leader + +Follow The Regularized Leader is a popular online optimization algorithm. When applied to a sequence of vectors $\{\mathbf{g}_t\}_{t=1}^T$ in $\mathcal{K}$ , FTRL outputs a sequence of points $\{\mathbf{x}_t\}_{t=1}^T$ , where + +$$ +\mathbf {x} _ {1} = \underset {\mathbf {x} \in \mathcal {K}} {\operatorname {a r g m i n}} \Phi (\mathbf {x}), \quad \mathbf {x} _ {t + 1} = \underset {\mathbf {x} \in \mathcal {K}} {\operatorname {a r g m i n}} \eta \sum_ {s = 1} ^ {t} \left\langle - \mathbf {g} _ {s}, \mathbf {x} \right\rangle + \Phi (\mathbf {x}). \tag {3} +$$ + +Here $\Phi (\mathbf{x})$ is an arbitrary regularizer and $\eta$ is a parameter. In this paper, we use a self-concordant barrier of $\kappa$ as the regularizer of FTRL. Self-concordant barriers were first proposed in the convex optimization literature, with [Abernethy et al., 2008] the first use in bandit feedback setting. We refer to Appendix H for an overview of the main ideas present in FTRL, including the definition of self-concordant barrier $\Phi$ , the Minkowski set $\kappa_{\gamma ,\mathbf{x}_1}$ , and $\Sigma$ -smoothing of function $f$ to obtain $f^{\Sigma}$ . + +Here we propose a FTRL variant for zeroth-order feedback, based on [Saha and Tewari, 2011], which will be a key base algorithm for our framework. See Algorithm 5 for pseudocode. + +# Algorithm 5: Zeroth Order Follow The Regularized Leader - ZO-FTRL + +Input: Horizon $T$ , smoothing radius $\delta$ , learning rate $\eta$ , $\nu$ -self-concordant barrier $\Phi$ $\mathbf{x}_1 \gets \mathrm{argmin}_{\mathbf{x} \in \mathcal{K}} \Phi(\mathbf{x})$ +for $t = 1, 2, \dots, T$ do + +Play $\mathbf{x}_t$ The adversary selects $f_{t}$ and reveals a zeroth-order query oracle $\mathcal{Q}_t$ for $f_{t}$ $\Sigma_t\gets \left(\nabla^2\Phi (\mathbf{x}_t)\right)^{-1 / 2}$ + +Draw $\mathbf{v}_t$ uniformly from $\mathbb{S}^{d - 1}$ + +$$ +\begin{array}{l} y _ {t} \leftarrow \text {a s p a m e o f} Q _ {t} \text {a t} \mathbf {x} _ {t} + \delta \Sigma_ {t} \mathbf {v} _ {t} \\ \mathbf {O} _ {t} \leftarrow \frac {d}{\delta} y _ {t} \Sigma_ {t} ^ {- 1} \mathbf {V} _ {t} \\ \mathbf{x}_{t + 1}\leftarrow \operatorname *{argmin}_{\mathbf{x}\in \mathcal{K}}\sum_{s = 1}^{t} - \eta \langle \mathbf{o}_{t},\mathbf{x}\rangle +\Phi (\mathbf{x}) \\ \end{array} +$$ + +# end + +The following theorems demonstrate how to apply the guideline described in the beginning of Section 6 to the results of [Saha and Tewari, 2011]. The first step is to analyze the proof and modify the base algorithm so that we could obtain a result that is valid for non-convex functions and would only require a single use of an inequality similar to $f(\mathbf{y}) - f(\mathbf{x}) \leq \langle \nabla f(\mathbf{x}), \mathbf{y} - \mathbf{x} \rangle$ to obtain a regret bound for concave case. By a small modification in the original algorithm, we get ZO-FTRL which + +differs from the original in that it is no longer a bandit algorithm. While the agent plays $\mathbf{x}_t$ it queries the oracle at $\mathbf{x}_t + \delta \Sigma_t\mathbf{v}_t \neq \mathbf{x}_t$ . This modification allows us to obtain the following result. + +Theorem 3. Let $\mathbf{F}$ be an $M_1$ -Lipschitz $M_2$ -smooth function class that is bounded by $M_0$ and let $B_0 \geq M_0$ . Also let $\mathcal{B} \in \mathrm{Adv}_0^o(\mathbf{F}, B_0)$ be a realized adversary that returns $f_1, \dots, f_T$ , let $\mathbf{u}_* \in \operatorname{argmax}_{\mathbf{u} \in \mathcal{K}} \sum_{t=1}^{T} f_t(\mathbf{u})$ and $\hat{\mathbf{u}}_* \in \operatorname{argmin}_{\mathbf{x} \in \mathcal{K}_{\gamma, \mathbf{x}_1}} \| \mathbf{u}_* - \mathbf{x} \|$ where $\gamma = T^{-1}$ . Then, when running Algorithm 5 against $\mathcal{B}$ , we have + +$$ +\sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} (\mathbf {u} _ {*}) - f _ {t} (\mathbf {x} _ {t}) \right] - O (\delta^ {2} T) \leq \sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} ^ {\delta \Sigma_ {t}} (\hat {\mathbf {u}} _ {*}) - f _ {t} ^ {\delta \Sigma_ {t}} (\mathbf {x} _ {t}) \right], +$$ + +$$ +a n d \quad \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \langle \nabla f _ {t} ^ {\delta \Sigma_ {t}} (\mathbf {x} _ {t}), \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \rangle \right] \leq O \left(\eta \delta^ {- 2} T + \eta^ {- 1} \log T\right). +$$ + +See Appendix J for the proof. Note that if $f$ is concave, then we use Lemma 5 to see that the right hand side of the first inequality is bounded by the left hand side of the second inequality and obtain the regret bound for the concave case. See Appendix K for the proof. + +Theorem 4. Let $\mathbf{F}$ be an $M_1$ -Lipschitz $M_2$ -smooth function class over $\mathcal{K}$ that is upper-linearizable with $0 < \alpha \leq 1$ , $\beta \geq 0$ and a zeroth-order uniform wrapper $\mathcal{W}$ . Also assume that $\mathcal{W}^{\text{action}}$ is $M_1'$ -Lipschitz and $M_2'$ -smooth. If $\text{Adv}$ is a zeroth order oblivious adversary over $\mathbf{F}$ such that for any $f \in \mathbf{F}$ and any query oracle $\mathcal{Q}_f$ returned by $\text{Adv}$ , $\mathcal{W}(\mathcal{Q}_f)$ is a stochastic zeroth order query oracle for $\mathcal{W}(f)$ that is bounded by $B_0$ , then + +$$ +\mathcal {R} _ {\alpha , \mathrm {A d v}} ^ {\mathcal {W} (\mathrm {Z O - F T R L})} = O \left(\eta \delta^ {- 2} T + \eta^ {- 1} \log T + \delta^ {2} T\right), +$$ + +In particular, by setting $\eta = T^{-2/3}$ and $\delta = T^{-1/6}$ , we see that $\mathcal{R}_{\alpha, \mathrm{Adv}}^{\mathcal{W}(\mathrm{ZO - FTRL})} = \tilde{O}(T^{2/3})$ . + +We emphasize that Theorems 3 and 4 correspond to steps 1 and 2 in the guideline discussed in Section 6 respectively. Specifically, for step 1, we note that Theorem 3 is NOT for concave functions. Moreover, if we assume that the functions are concave, then we may use Theorem 3 and the inequality + +$$ +f _ {t} ^ {\delta \Sigma_ {t}} (\hat {\mathbf {u}} _ {*}) - f _ {t} ^ {\delta \Sigma_ {t}} (\mathbf {x} _ {t}) \leq \left\langle \nabla f _ {t} ^ {\delta \Sigma_ {t}} (\mathbf {x} _ {t}), \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \right\rangle +$$ + +to immediately obtain a regret bound. For step 2, we note that Theorem 3 adapts the result of previous step to uniform wrappers to obtain a regret bound for linearizable functions. + +# 8 Applications + +We next discuss some specific online and offline non-convex/non-concave optimization problems for which we can use our new framework to derive improved regret and sample complexity bounds respectively by applying uniform wrappers proposed in Section C to the zeroth order feedback OCO base algorithm ZO-FTRL (Algorithm 5). We note that we can also apply our framework to other base algorithms to recover many existing results in the literature. (See Appendix E for more details). + +We start with a definition. For $\mathbf{x} \in \mathcal{K}$ and $C > 0$ , we say a zeroth order query oracle $\mathcal{Q}_f$ is contained in a $(\mathbf{x}, C)$ cone if we have $|Q_f(\mathbf{z}) - f(\mathbf{x})| \leq C\|\mathbf{z} - \mathbf{x}\|$ for all $\mathbf{z} \in \mathcal{K}$ . In other words, the randomness of the query oracle approaches to zero at least linearly as we approach the point $\mathbf{x}$ . We use the notation $\mathrm{Adv}_0^{\mathrm{o}}(\mathbf{F}, \mathrm{Cone}(\mathbf{x}, C))$ to denote the oblivious adversary over $\mathbf{F}$ with query oracles that are contained within this cone. Note that $\mathcal{Q}_f \in \mathrm{Adv}_0^{\mathrm{o}}(\mathbf{F}, \mathrm{Cone}(\mathbf{x}, C))$ is equivalent to $\mathcal{W}_0^{\mathrm{NM}}(\mathcal{Q}_f)$ being bounded. See condition (iii) of Definition 5 for details. If $\mathcal{Q}_f$ does not belong to a cone as described above, we can see that the term $\left(\frac{z}{2}\right)^{-1}$ causes $\mathcal{W}_0^{\mathrm{NM}}(\mathcal{Q}_f)$ to blow up. Similarly, in the special case when $\underline{x} = \mathbf{0}$ and $f(\mathbf{0}) = 0$ , it is also equivalent to $\mathcal{W}_0^{\mathrm{M0}}(\mathcal{Q}_f)$ being bounded. + +We begin by showing $\tilde{O}(T^{2/3})$ $\alpha$ -regret bounds for online optimization problems for the three function classes discussed in Appendix C under zeroth order feedback. See Appendix L for the proof. + +Theorem 5. Let $\mathbf{F}_0^{\mathrm{M}},\mathbf{F}_0^{\mathrm{M0}}$ and $\mathbf{F}_0^{\mathrm{NM}}$ denote the function classes described in Lemmas 1, 2 and 3 respectively and let $\alpha^{\mathrm{M}},\alpha^{\mathrm{M0}}$ and $\alpha^{\mathrm{NM}}$ be the values of $\alpha$ . If the function classes are $M_{1}$ -Lipschitz and $M_{2}$ -smooth, then for any $C > 0$ and $B_0\geq M_0 = \max_{\mathbf{x}\in \mathcal{K}}f(\mathbf{x})$ , the following are $\tilde{O} (T^{2 / 3})$ : + +$$ +\mathcal {R} _ {\alpha^ {\mathrm {M}}, \operatorname {A d v} _ {0} ^ {o} (\mathbf {F} _ {0} ^ {\mathrm {M}}, B _ {0})} ^ {\mathcal {W} _ {0} ^ {\mathrm {M}} (\mathrm {Z O - F T R L})}, \quad \mathcal {R} _ {\alpha^ {\mathrm {M} 0}, \operatorname {A d v} _ {0} ^ {o} (\mathbf {F} _ {0} ^ {\mathrm {M} 0}, \operatorname {C o n e} (\mathbf {0}, C))} ^ {\mathcal {W} _ {0} ^ {\mathrm {M} 0} (\mathrm {Z O - F T R L})}, \quad \mathcal {R} _ {\alpha^ {\mathrm {N M}}, \operatorname {A d v} _ {0} ^ {o} (\mathbf {F} _ {0} ^ {\mathrm {N M}}, \operatorname {C o n e} (\underline {{\mathbf {x}}}, C))} ^ {\mathcal {W} _ {0} ^ {\mathrm {N M}} (\mathrm {Z O - F T R L})}. +$$ + +Remark 1. For each function class, the SOTA for noisy zeroth order feedback achieved $\tilde{O}(T^{3/4})$ $\alpha$ -regret bounds while we achieve $\tilde{O}(T^{2/3})$ . For the special case of exact zeroth order feedback, the SOTA is $\tilde{O}(\sqrt{T})$ . All the SOTA algorithms mentioned are special cases of our framework. + +We next show $\tilde{O}(T^{3/4})$ $\alpha$ -regret bounds for online optimization problems for the three function classes discussed in Appendix C under bandit feedback. For full information zeroth order algorithms, the query location may differ from the action taken. Here we convert them into bandit algorithms using the meta-algorithm Stochastic Full-information To Trivial query (SFTT) from [Pedramfar and Aggarwal, 2024a] (see Appendix M for details). The proof is in Appendix N. + +Theorem 6. Under the assumptions of Theorem 5, the following are $\tilde{O}(T^{3/4})$ : + +$$ +\mathcal {R} _ {\alpha^ {\mathrm {M}}, \operatorname {A d v} _ {0} ^ {o} (\mathbf {F} _ {0} ^ {\mathrm {M}}, B _ {0})} ^ {\text {S F T T} (\mathcal {W} _ {0} ^ {\mathrm {M}} (\text {Z O - F T R L}))}, \quad \mathcal {R} _ {\alpha^ {\mathrm {M 0}}, \operatorname {A d v} _ {0} ^ {o} (\mathbf {F} _ {0} ^ {\mathrm {M 0}}, \operatorname {C o n e} (\mathbf {0}, C))} ^ {\text {S F T T} (\mathcal {W} _ {0} ^ {\mathrm {M 0}} (\text {Z O - F T R L}))}, \quad \mathcal {R} _ {\alpha^ {\mathrm {N M}}, \operatorname {A d v} _ {0} ^ {o} (\mathbf {F} _ {0} ^ {\mathrm {N M}}, \operatorname {C o n e} (\underline {{\mathbf {x}}}, C))} ^ {\text {S F T T} (\mathcal {W} _ {0} ^ {\mathrm {N M}} (\text {Z O - F T R L}))}, +$$ + +where SFTT is Algorithm 4 in [Pedramfar and Aggarwal, 2024a] with $L = T^{1/4}$ . + +Remark 2. Note that Algorithm 3 in [Wan et al., 2023] is in fact $\mathrm{SFTT}(\mathcal{W}_0^{\mathrm{M0}}(\mathrm{ZO - FTRL}))$ . However, our analysis simplifies the proof and generalizes the result to allow for stochastic feedback. + +Remark 3. For the class $\mathbf{F}^{\mathrm{NM}}$ of non-monotone up-concave functions over general convex sets, our $\tilde{O}(T^{3/4})$ bound beats the SOTA $\tilde{O}(T^{4/5})$ bounds for exact and for noisy bandit feedback. For the class $\mathbf{F}^{\mathrm{M0}}$ of monotone $\gamma$ -weakly up-concave functions over convex sets containing the origin, our $\tilde{O}(T^{3/4})$ bound beats the SOTA $\tilde{O}(T^{4/5})$ bound for noisy bandit feedback and matches the bound for exact bandit feedback. For the third class $\mathbf{F}^{\mathrm{M}}$ of monotone $\mu$ -strongly $\gamma$ -weakly up-concave functions with bounded curvature, our results match the SOTA. All of the SOTA algorithms mentioned here are special cases of our framework. + +Conversions of online algorithms to offline are referred to online-to-batch techniques and are well-known in the literature (See [Shalev-Shwartz, 2012]). A simple approach is to simply run the online algorithm and if the actions chosen by the algorithm are $\mathbf{x}_1,\dots ,\mathbf{x}_T$ , return $\mathbf{x}_t$ for $1\leq t\leq T$ with probability $1 / T$ . We use OTB to denote the meta-algorithm that uses this approach to convert online algorithms to offline algorithms. + +We next show that using OTB conversion (on top of $\mathcal{W}(\mathrm{ZO - FTRL})$ ), we obtain $\tilde{O}(1 / \epsilon^3)$ sample complexity for finding an $\alpha$ -approximate solution in each function class under a noisy value oracle model, beating the SOTA $\tilde{O}(1 / \epsilon^4)$ sample complexity. The proof is in Appendix O + +Theorem 7. Under the assumptions of Theorem 5, the following is true. + +(i) If the stochastic query oracle is bounded by $B_0$ , then the sample complexity of the offline algorithm $\mathrm{OTB}(\mathcal{W}_0^{\mathrm{M}}(\mathrm{ZO - FTRL}))$ over $\mathbf{F}_0^{\mathrm{M}}$ is $\tilde{O} (\epsilon^{-3})$ . +(ii) If the stochastic query oracle is contained in the cone $\mathrm{Cone}(\mathbf{0}, C)$ , then the sample complexity of the offline algorithm $\mathrm{OTB}(\mathcal{W}_0^{\mathrm{M0}}(\mathrm{ZO - FTRL}))$ over $\mathbf{F}_0^{\mathrm{M0}}$ is $\tilde{O}(\epsilon^{-3})$ . +(iii) If the stochastic query oracle is contained in the cone $\mathrm{Cone}(\underline{\mathbf{x}}, C)$ , then the sample complexity of the offline algorithm $\mathrm{OTB}(\mathcal{W}_0^{\mathrm{NM}}(\mathrm{ZO - FTRL}))$ over $\mathbf{F}_0^{\mathrm{NM}}$ is $\tilde{O}(\epsilon^{-3})$ . + +# 9 Conclusion + +We proposed a class of meta-algorithms that can be used to convert convex optimization algorithms (with various types of feedback) into algorithms for quadratizable optimization. Using this framework, we improved regret guarantees for various classes of DR-submodular functions under zeroth-order feedback. Furthermore, we extended zeroth-order online algorithms to bandit feedback and offline counterparts, achieving notable improvements in regret/sample complexity compared to existing approaches. + +# Acknowledgments + +This work was supported in part by the National Science Foundation under grants CCF-2149588 and CCF-2149617. + +# References + +Jacob Abernethy, Elad E Hazan, and Alexander Rakhlin. Competing in the dark: An efficient algorithm for bandit linear optimization. In 21st Annual Conference on Learning Theory, COLT 2008, pages 263-273, 2008. +An Bian, Kfir Levy, Andreas Krause, and Joachim M Buhmann. Continuous DR-submodular maximization: Structure and algorithms. In Advances in Neural Information Processing Systems, 2017a. +Andrew An Bian, Baharan Mirzasoleiman, Joachim Buhmann, and Andreas Krause. Guaranteed Non-convex Optimization: Submodular Maximization over Continuous Domains. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, April 2017b. +Yatao Bian, Joachim Buhmann, and Andreas Krause. Optimal continuous DR-submodular maximization and applications to provable mean field inference. In Proceedings of the 36th International Conference on Machine Learning, June 2019. +Gruia Calinescu, Chandra Chekuri, Martin Pál, and Jan Vondrák. Maximizing a monotone submodular function subject to a matroid constraint. SIAM Journal on Computing, 40(6):1740-1766, 2011. +Lin Chen, Hamed Hassani, and Amin Karbasi. Online continuous submodular maximization. In Proceedings of the Twenty-First International Conference on Artificial Intelligence and Statistics, April 2018. +Lin Chen, Mingrui Zhang, and Amin Karbasi. Projection-free bandit convex optimization. In Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics, pages 2047-2056. PMLR, 2019. +Shengminjie Chen, Donglei Du, Wenguo Yang, Dachuan Xu, and Suixiang Gao. Continuous non-monotone DR-submodular maximization with down-closed convex constraint. arXiv preprint arXiv:2307.09616, July 2023. +Josip Djolonga and Andreas Krause. From map to marginals: Variational inference in Bayesian submodular models. Advances in Neural Information Processing Systems, 2014. +Maryam Fazel and Omid Sadeghi. Fast first-order methods for monotone strongly dr-submodular maximization. In SIAM Conference on Applied and Computational Discrete Algorithms (ACDA23), 2023. +Yuval Filmus and Justin Ward. A tight combinatorial algorithm for submodular maximization subject to a matroid constraint. In 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science, pages 659-668, 2012. +Abraham D Flaxman, Adam Tauman Kalai, and H Brendan McMahan. Online convex optimization in the bandit setting: gradient descent without a gradient. In Proceedings of the sixteenth annual ACM-SIAM symposium on Discrete algorithms, pages 385-394, 2005. +Dan Garber and Ben Kretzu. New projection-free algorithms for online convex optimization with adaptive regret guarantees. In Proceedings of Thirty Fifth Conference on Learning Theory, pages 2326-2359. PMLR, 2022. +Shuyang Gu, Chuangen Gao, Jun Huang, and Weili Wu. Profit maximization in social networks and non-monotone DR-submodular maximization. Theoretical Computer Science, 957:113847, 2023. +Hamed Hassani, Mahdi Soltanolkotabi, and Amin Karbasi. Gradient methods for submodular maximization. In Advances in Neural Information Processing Systems, 2017. +Hamed Hassani, Amin Karbasi, Aryan Mokhtari, and Zebang Shen. Stochastic conditional gradient++: (non)convex minimization and continuous submodular maximization. SIAM Journal on Optimization, 30(4):3315-3344, 2020. + +Elad Hazan and C. Seshadhri. Efficient learning algorithms for changing environments. In Proceedings of the 26th Annual International Conference on Machine Learning, ICML '09, pages 393-400. Association for Computing Machinery, 2009. +Elad Hazan et al. Introduction to online convex optimization. Foundations and Trends® in Optimization, 2(3-4):157-325, 2016. +Shinji Ito and Ryohei Fujimaki. Large-scale price optimization via network flow. Advances in Neural Information Processing Systems, 2016. +M. Kirszbraun. Über die zusammenziehende und lipschitzische transformationen. Fundamenta Mathematicae, 22:77-108, 1934. +Duksang Lee, Nam Ho-Nguyen, and Dabeen Lee. Non-smooth, Hölder-smooth, and robust submodular maximization. arXiv preprint arXiv:2210.06061, 2023. +Yuanyuan Li, Yuezhou Liu, Lili Su, Edmund Yeh, and Stratis Ioannidis. Experimental design networks: A paradigm for serving heterogeneous learners under networking constraints. IEEE/ACM Transactions on Networking, 2023. +Yucheng Liao, Yuanyu Wan, Chang Yao, and Mingli Song. Improved Projection-free Online Continuous Submodular Maximization. arXiv preprint arXiv:2305.18442, May 2023. +Siddharth Mitra, Moran Feldman, and Amin Karbasi. Submodular+ concave. Advances in Neural Information Processing Systems, 2021. +Aryan Mokhtari, Hamed Hassani, and Amin Karbasi. Stochastic conditional gradient methods: From convex minimization to submodular maximization. The Journal of Machine Learning Research, 21(1):4232-4280, 2020. +Loay Mualem and Moran Feldman. Resolving the approximability of offline and online non-monotone DR-submodular maximization over general convex sets. In Proceedings of The 26th International Conference on Artificial Intelligence and Statistics, April 2023. +Yurii Nesterov and Arkadii Nemirovskii. Interior-point polynomial algorithms in convex programming. SIAM, 1994. +Rad Niazadeh, Tim Roughgarden, and Joshua R Wang. Optimal algorithms for continuous non-monotone submodular and DR-submodular maximization. The Journal of Machine Learning Research, 21(1):4937-4967, 2020. +Rad Niazadeh, Negin Golrezaei, Joshua Wang, Fransisca Susan, and Ashwinkumar Badanidiyuru. Online learning via offline greedy algorithms: Applications in market design and optimization. Management Science, 69(7):3797-3817, July 2023. +Mohammad Pedramfar and Vaneet Aggarwal. From linear to linearizable optimization: A novel framework with applications to stationary and non-stationary DR-submodular optimization. Advances in Neural Information Processing Systems, 37:37626-37664, 2024a. +Mohammad Pedramfar and Vaneet Aggarwal. A generalized approach to online convex optimization. arXiv preprint arXiv:2402.08621, 2024b. +Mohammad Pedramfar, Christopher John Quinn, and Vaneet Aggarwal. A unified approach for maximizing continuous DR-submodular functions. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. +Mohammad Pedramfar, Yididiya Y. Nadew, Christopher John Quinn, and Vaneet Aggarwal. Unified projection-free algorithms for adversarial DR-submodular optimization. In The Twelfth International Conference on Learning Representations, 2024a. +Mohammad Pedramfar, Christopher Quinn, and Vaneet Aggarwal. A unified approach for maximizing continuous $\gamma$ -weakly DR-submodular functions. optimization-online preprint optimization-online:25915, 2024b. + +Ankan Saha and Ambuj Tewari. Improved regret guarantees for online smooth convex optimization with bandit feedback. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, pages 636-642. JMLR Workshop and Conference Proceedings, 2011. +Shai Shalev-Shwartz. Online learning and online convex optimization. Foundations and Trends® in Machine Learning, 4(2):107-194, 2012. +Zongqi Wan, Jialin Zhang, Wei Chen, Xiaoming Sun, and Zhijie Zhang. Bandit multi-linear dr-submodular maximization and its applications on adversarial submodular bandits. In International Conference on Machine Learning, 2023. +Hassler Whitney. Analytic extensions of differentiable functions defined in closed sets. Transactions of the American Mathematical Society, 36(1):63-89, 1934. +Bryan Wilder. Equilibrium computation and robust optimization in zero sum games with submodular structure. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. +Lin Yang, Lei Deng, Mohammad H Hajiesmaili, Cheng Tan, and Wing Shing Wong. An optimal algorithm for online non-convex learning. Proceedings of the ACM on Measurement and Analysis of Computing Systems, 2(2):1-25, 2018. +Lijun Zhang, Shiyin Lu, and Zhi-Hua Zhou. Adaptive online learning in dynamic environments. In Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. +Mingrui Zhang, Lin Chen, Hamed Hassani, and Amin Karbasi. Online continuous submodular maximization: From full-information to bandit feedback. In Advances in Neural Information Processing Systems, volume 32, 2019. +Qixin Zhang, Zengde Deng, Zaiyi Chen, Haoyuan Hu, and Yu Yang. Stochastic continuous submodular maximization: Boosting via non-oblivious function. In Proceedings of the 39th International Conference on Machine Learning, 2022. +Qixin Zhang, Zengde Deng, Zaiyi Chen, Kuangqi Zhou, Haoyuan Hu, and Yu Yang. Online learning for non-monotone DR-submodular maximization: From full information to bandit feedback. In Proceedings of The 26th International Conference on Artificial Intelligence and Statistics, April 2023. +Qixin Zhang, Zongqi Wan, Zengde Deng, Zaiyi Chen, Xiaoming Sun, Jialin Zhang, and Yu Yang. Boosting gradient ascent for continuous DR-submodular maximization. arXiv preprint arXiv:2401.08330, 2024. +Martin Zinkevich. Online convex programming and generalized infinitesimal gradient ascent. In Proceedings of the 20th international conference on machine learning (icml-03), pages 928-936, 2003. + +# Table of Contents + +1 Introduction 1 +2 Background and Notation 3 +3 Problem setup 4 +4 Uniform wrappers 5 +5 Linearizable and quadratizable functions classes 6 +6 When Is Concave Optimization Enough? 6 + +7 Examples 7 + +7.1 Online Gradient Ascent 7 +7.2 Zeroth Order Follow The Regularized Leader 8 + +8 Applications 9 +9 Conclusion 10 + +Appendices 13 + +A How uniform wrappers work 15 +B Additional Related Works 15 +C Uniform wrappers for up-concave optimization 17 +D Proof of Theorems 1 and 2 19 +E Recovering previous results in the literature 20 +F Proof of Theorem 11 21 +G Proof of Theorem 12 23 +H Follow The Regularized Leader 23 + +I Technical Lemmas 24 +J Proof of Theorem 3 26 +K Proof of Theorem 4 27 +L Proof of Theorem 5 29 +M Stochastic Full-information To Trivial query - SFTT 29 +N Proof of Theorem 6 30 +O Proof of Theorem 7 30 + +![](images/ab2c8aa8eda4bbd5a900903fe8acdf5ba36ce5c6305191079258143f53d199ca.jpg) +Figure 1: Effect of a uniform wrapper on the interaction between the agent and the adversary. + +# A How uniform wrappers work + +Figure A demonstrates the effect of a uniform wrapper on the interaction of the agent and the adversary. The vertical line depicts the uniform wrapper, acting as a translation layer, where any information passing through is changed accordingly. The action of the agent is changed from $\mathbf{x}_t$ to $\mathcal{W}^{\mathrm{action}}(\mathbf{x}_t)$ and the query oracle selected by the adversary is changed from $\mathcal{Q}_t$ to $\mathcal{W}^{\mathrm{query}}(\mathcal{Q}_t)$ . + +Remark 4. Note that neither Figure A, nor Meta-Algorithm 1 require $\mathcal{W}^{\text {function }}$ . Thus, we define an abstract uniform wrapper as a tuple of maps $\mathcal{W} = (\mathcal{W}^{\text {action }}, \mathcal{W}^{\text {query }})$ where $\mathcal{W}^{\text {action }}$ is defined as before. On the other hand, $\mathcal{W}^{\text {query }}$ is defined as a function that, for any query oracle $\mathcal{Q}_f \in \mathcal{Q}$ , the value of $\mathcal{W}(\mathcal{Q}_f)$ behaves similar to a query oracle, but is not necessarily one. Specifically, if $i, j \geq 0$ and $\mathcal{W}$ is an $i$ -order to $j$ -order abstract uniform wrapper, then for any $i$ -th order query oracle $\mathcal{Q}_f$ , $\mathcal{W}(\mathcal{Q}_f)$ is just function from $\mathcal{K}$ to $\mathbb{R}^{d^j}$ . In particular, there may not exist a function $F: \mathcal{K} \to \mathbb{R}$ such that $D^j F(\mathbf{x}) = \mathbb{E}[\mathcal{W}(\mathcal{Q}_f)(\mathbf{x})]$ , where $D^j$ denotes the $j$ -th order derivative. The generality of abstract uniform wrappers allow for considering quadratizable function classes where $\mathfrak{g}$ , as described in Definition 2, might not satisfy $\mathfrak{g}(f, \mathbf{x}) = \nabla F(\mathbf{x})$ for any function $F: \mathcal{K} \to \mathbb{R}$ . Note that, unlike uniform wrappers, we may no longer be able to define $\mathcal{W}(\mathrm{Adv})$ for abstract uniform wrappers. + +The figure may be interpreted in two equivalent ways. If we think of $\mathcal{W}$ as a meta-algorithm that wraps around the agent, then we get $\mathcal{W}(\mathcal{A})$ , as described in Meta-Algorithm 1, playing against the adversary Adv. Alternatively, we may think of $\mathcal{W}$ as wrapping around the adversary. In this interpretation, the agent $\mathcal{A}$ is playing against $\mathcal{W}(\mathrm{Adv})$ Since these two interpretations are equivalent, we may use one to better understand the other. Specifically, we may modify the proof of the regret bounds of the game between $\mathcal{A}$ and a concave adversary to bound the regret of $\mathcal{A}$ against $\mathcal{W}(\mathrm{Adv})$ and therefore use that to obtain regret bounds for $\mathcal{W}(\mathcal{A})$ against Adv. The guideline in Section 6 describes how this might be achieved. + +# B Additional Related Works + +DR-submodular maximization Two of the main methods for continuous DR-submodular maximization are Frank-Wolfe type methods and Boosting based methods. This division is based on how the approximation coefficient appears in the proof. To the best of knowledge, the only other algorithms in the literature are those that are designed for specific choices of domain and use techniques such as discretization and rely heavily on the detailed structures on the constraint set. + +In Frank-Wolfe type algorithms, the approximation coefficient appears by specific choices of the Frank-Wolfe update rules. (See Lemma 8 in [Pedramfar et al., 2024a]) The specific choices of the update rules for different settings have been proposed in [Bian et al., 2017b,a, Mualem and Feldman, 2023, Pedramfar et al., 2023, Chen et al., 2023]. The momentum technique of [Mokhtari et al., 2020] has been used to convert algorithms designed for deterministic feedback to stochastic feedback setting. [Hassani et al., 2020] proposed a Frank-Wolfe variant with access to a stochastic gradient oracle with known distribution. Frank-Wolfe type algorithms been adapted to the online setting using Meta-Frank-Wolfe [Chen et al., 2018, 2019] or using Blackwell approachability [Niazadeh et al., 2023]. Later [Zhang et al., 2019] used a Meta-Frank-Wolfe with random permutation technique to obtain full-information results that only require a single query per function and also bandit results. + +Table 2: Offline up-concave maximization + +
FSetFeedbackReferenceAppx.Complexity
Monotone0∈K∇Fstoch.[Mokhtari et al., 2020]1-e-γO(1/ε3)
[Hassani et al., 2020] (*)1-e-γO(1/ε2)
[Zhang et al., 2022] (*)1-e-γO(1/ε2)
[Pedramfar and Aggarwal, 2024a] (*)1-e-γO(1/ε2)
Fdet.[Pedramfar et al., 2024b]1-e-γO(1/ε3)
[Pedramfar and Aggarwal, 2024a] (*)1-e-γO(1/ε2)
stoch. †Theorem 71-e-γO(1/ε3)
stoch.[Pedramfar et al., 2024b]1-e-γO(1/ε5)
[Pedramfar and Aggarwal, 2024a] (*)1-e-γO(1/ε4)
general∇Fstoch.[Hassani et al., 2017] (*)γ2/(1+γ2)O(1/ε2)
[Pedramfar et al., 2024b]γ2/(1+γ2)O(1/ε3)
[Pedramfar and Aggarwal, 2024a] (*)γ2/(1+cy2)O(1/ε2)
Fdet.[Pedramfar et al., 2023]γ2/(1+γ2)O(1/ε3)
[Pedramfar and Aggarwal, 2024a] (*)γ2/(1+cy2)O(1/ε2)
stoch.[Pedramfar et al., 2023]γ2/(1+γ2)O(1/ε5)
[Pedramfar and Aggarwal, 2024a] (*)γ2/(1+cy2)O(1/ε4)
Theorem 7γ2/(1+cy2)O(1/ε3)
Non-Monotonegeneral∇Fstoch.[Pedramfar et al., 2024b]γ(1-γh)/γ'-1 (1/2 - 1/2γ')O(1/ε3)
[Zhang et al., 2024] (*)(1-h)/4O(1/ε2)
[Pedramfar and Aggarwal, 2024a] (*)(1-h)/4O(1/ε2)
Fdet.[Pedramfar et al., 2024b]γ(1-γh)/γ'-1 (1/2 - 1/2γ')O(1/ε3)
[Pedramfar and Aggarwal, 2024a] (*)(1-h)/4O(1/ε2)
stoch. †Theorem 7(1-h)/4O(1/ε3)
stoch.[Pedramfar et al., 2024b]γ(1-γh)/γ'-1 (1/2 - 1/2γ')O(1/ε5)
[Pedramfar and Aggarwal, 2024a] (*)(1-h)/4O(1/ε4)
+ +This table compares the different results for the number of oracle calls (complexity) within the constraint set for up-concave maximization. We refer to [Pedramfar et al., 2024b] for a more comprehensive table that includes results for deterministic first order feedback. Here $h \coloneqq \min_{\mathbf{z} \in \mathcal{K}} \| \mathbf{z} \|_{\infty}$ and $\gamma' \coloneqq \gamma + 1 / \gamma$ . Rows marked with (*) are results in the literature that fit within the framework described in this paper. The rows describing results with stochastic feedback that are marked with $\dagger$ assume that the random query oracle is contained with a cone, as detailed in Theorem 5. + +This was extended to another settings by [Zhang et al., 2023] and generalized to many different settings with improved regret bounds by [Pedramfar et al., 2024a]. + +Some techniques construct an alternative function such that maximization of this function results in approximate maximization of the original function. Given this definition, we may consider the result of [Hassani et al., 2017, Chen et al., 2018, Fazel and Sadeghi, 2023] as the first boosting based results. However, in the case of monotone DR-submodular functions over general convex sets, the alternative function is identical to the original function. The term boosting in this context was first used in [Zhang et al., 2022], based on ideas presented in [Filmus and Ward, 2012, Mitra et al., 2021], for monotone functions over convex sets containing the origin. This idea has been used later in [Wan et al., 2023, Liao et al., 2023] in bandit and projection-free full-information settings. Finally, in [Zhang et al., 2024] a boosting based method was introduced for non-monotone functions over general convex sets. + +Up-concave maximization Not all continuous DR-submodular functions are concave and not all concave functions are continuous DR-submodular. [Mitra et al., 2021] considers functions that are the sum of a concave and a continuous DR-submodular function. It is well-known that continuous DR-submodular functions are concave along positive directions [Calinescu et al., 2011, Bian et al., 2017b]. Based on this idea, [Wilder, 2018] defined an up-concave function as a function that is concave along positive directions. Up-concave maximization has been considered in the offline + +setting before, e.g. in [Lee et al., 2023] and [Pedramfar and Aggarwal, 2024a]. In this work, we focus on up-concave maximization which is a generalization of DR-submodular maximization. + +# C Uniform wrappers for up-concave optimization + +In this section, we study three classes of up-concave functions and show that they are upper-quadratic with appropriate uniform wrappers. + +Remark 5. As we will see in the following, all of these uniform wrappers fit into the following pattern. There is a random variable $\mathcal{Z}$ taking values in $[0,1]$ and a parametrized family of functions $h_z:\mathcal{K}\to \mathcal{K}$ for $z\in [0,1]$ , such that, for some $\alpha \in (0,1]$ and $\beta ,\mu \geq 0$ , we have + +$$ +\alpha f (\mathbf {y}) - f (\mathbf {x}) \leq \beta \left(\langle \nabla F (\mathbf {x}), \mathbf {y} - \mathbf {x} \rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} \| ^ {2}\right), +$$ + +where $F(\mathbf{x}) = \mathbb{E}_{z\sim \mathcal{Z}}[f(h_z(\mathbf{x})) - f(h_0(\mathbf{x}))]$ . If such $h_z$ and $\mathcal{Z}$ exist, we define $\mathcal{W}^{\mathrm{action}} = h_1$ , and $\mathcal{W}^{\mathrm{function}}(f) = F$ . We also need to define $\mathcal{W}^{\mathrm{query}}(Q_f)$ such that it converts a query oracle for $f$ into a query oracle for $F$ using the following equality. + +$$ +\nabla F (\mathbf {x}) = \mathbb {E} _ {z \sim \mathcal {Z}} [ \nabla f (h _ {z} (\mathbf {x})) J _ {h _ {z}} (\mathbf {x}) - \nabla f (h _ {0} (\mathbf {x})) J _ {h _ {0}} (\mathbf {x}) ]. +$$ + +Note that the identity wrapper, where $F = f$ , can be recovered by choosing $h_z(x) \coloneqq z * \mathbf{x}$ and $\mathcal{Z} = \delta_1$ , the Dirac delta distribution with mass at 1. + +# C.1 Monotone $\mu$ -strongly $\gamma$ -weakly up-concave functions with bounded curvature $(\mathbf{F}^{\mathrm{M}})$ + +For differentiable DR-submodular functions, the following lemma is proved for the case $\gamma = 1$ in [Fazel and Sadeghi, 2023] and for the case $\mu = 0$ in [Hassani et al., 2017]. The general form we use here is proved in Lemma 1 in [Pedramfar and Aggarwal, 2024a]. + +Lemma 1. Let $f:[0,1]^d \to \mathbb{R}$ be a non-negative monotone $\mu$ -strongly $\gamma$ -weakly up-concave function with curvature bounded by $c$ . Then, for all $\mathbf{x},\mathbf{y}\in [0,1]^d$ , we have + +$$ +\frac {\gamma^ {2}}{1 + c \gamma^ {2}} f (\mathbf {y}) - f (\mathbf {x}) \leq \frac {\gamma}{1 + c \gamma^ {2}} \big (\langle \tilde {\nabla} f (\mathbf {x}), \mathbf {y} - \mathbf {x} \rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} \| ^ {2} \big), +$$ + +where $\tilde{\nabla} f$ is an up-super-gradient for $f$ . + +Lemma 1, together with Definition 1 of uniform wrappers, immediately imply the following. + +Theorem 8. Let $\mathbf{F}^{\mathrm{M}}$ be the class of functions over $\mathcal{K}$ where every $f\in \mathbf{F}^{\mathrm{M}}$ may be extended to a nonnegative differentiable monotone $\mu$ -strongly $\gamma$ -weakly up-concave function with curvature bounded by $c$ defined over $[0,1]^d$ . Then $\mathbf{F}^{\mathrm{M}}$ is upper-quadratizable with uniform wrapper $\mathcal{W}^{\mathrm{M}} = \mathrm{Id}$ . + +If $\mathcal{A}$ is one of the algorithms described in Theorem 12, using the above theorem recovers Theorem 2 in [Pedramfar and Aggarwal, 2024a] which itself is a generalization of Theorem 2 in [Chen et al., 2018] and Theorem 3 in [Fazel and Sadeghi, 2023]. + +# C.2 Monotone $\gamma$ -weakly up-concave functions over convex sets containing the origin ( $\mathbf{F}^{\mathrm{MO}}$ ) + +For differentiable monotone DR-submodular functions, the following lemma is proved in [Zhang et al., 2022]. The general form here is proved in Lemma 2 in [Pedramfar and Aggarwal, 2024a]. + +Lemma 2. Let $f:[0,1]^d \to \mathbb{R}$ be a non-negative monotone $\gamma$ -weakly up-concave differentiable function and let $F:[0,1]^d \to \mathbb{R}$ be the function defined by $F(\mathbf{x}) := \int_0^1 \frac{\gamma e^{\gamma(z - 1)}}{(1 - e^{-\gamma})z} (f(z*\mathbf{x}) - f(\mathbf{0}))dz$ . + +Then $F$ is differentiable and $(1 - e^{-\gamma})f(\mathbf{y}) - f(\mathbf{x})\leq \frac{1 - e^{-\gamma}}{\gamma}\langle \nabla F(\mathbf{x}),\mathbf{y} - \mathbf{x}\rangle .$ + +Let the random variable $\mathcal{Z}^{\mathrm{M0}}\in [0,1]$ be defined by the law $\forall z\in [0,1],\quad \mathbb{P}(\mathcal{Z}^{\mathrm{M0}}\leq z) = \int_0^z\frac{\gamma e^{\gamma(u - 1)}}{1 - e^{-\gamma}} du$ . Then we have $\mathbb{E}_{z\sim \mathcal{Z}^{\mathrm{M0}}}\left[z^{-1}(f(z*\mathbf{x}) - f(\mathbf{0}))\right] = F(\mathbf{x})$ . Moreover, for $i\geq 1$ , if $f$ is $i$ times differentiable then we also have $\mathbb{E}_{z\sim \mathcal{Z}^{\mathrm{M0}}}\left[z^{i - 1}\nabla^{i}f(z*\mathbf{x})\right] = \nabla^{i}F(\mathbf{x})$ . + +Definition 4. Let $\mathcal{K} \subseteq [0,1]^d$ be a convex set containing the origin and, for any $i \geq 0$ , let $\mathbf{F}_i^{\mathrm{M0}}$ be the class of functions over $\mathcal{K}$ that are $\max\{i,1\}$ times differentiable and where every $f \in \mathbf{F}_i^{\mathrm{M0}}$ may be extended to a non-negative monotone $\gamma$ -weakly up-concave function defined over $[0,1]^d$ . We also assume that $f(\mathbf{0}) = 0$ for all $f \in \mathbf{F}_0^{\mathrm{M0}}$ . We define $\mathcal{W}_i^{\mathrm{M0}} := ((\mathcal{W}_i^{\mathrm{M0}})^{\mathrm{action}}, (\mathcal{W}_i^{\mathrm{M0}})^{\mathrm{function}}, (\mathcal{W}_i^{\mathrm{M0}})^{\mathrm{query}})$ to be the uniform wrapper with (i) $(\mathcal{W}_i^{\mathrm{M0}})^{\mathrm{action}} := \operatorname{Id}_{\mathcal{K}}$ ; (ii) for any $f \in \mathbf{F}_i^{\mathrm{M0}}$ , + +$(\mathcal{W}_i^{\mathrm{M0}})^{\mathrm{function}}(f)\coloneqq \mathbf{x}\mapsto \mathbb{E}_{z\sim \mathcal{Z}^{\mathrm{M0}}}\left[z^{-1}(f(z*\mathbf{x}) - f(\mathbf{0}))\right]:\mathcal{K}\to \mathbb{R};$ and + +(iii) for any $f \in \mathbf{F}_i^{\mathrm{M0}}$ and any $i$ -th order query oracle $\mathcal{Q}_f$ for $f$ , we have $(\mathcal{W}_i^{\mathrm{M0}})^{\mathrm{query}}(\mathcal{Q}_f)(\mathbf{x}) := z^{i-1} * Q_f(z * \mathbf{x})$ , where $z$ is sampled according to $\mathbb{P}(\mathcal{Z}^{\mathrm{M0}} \leq z)$ . + +Remark 6. This wrapper fits into the pattern described in Remark 5 by defining $h_z(\mathbf{x}) \coloneqq z * \mathbf{x}$ and $\mathcal{Z} = \mathcal{Z}^{\mathrm{M0}}$ . + +Theorem 9. For any $i \geq 0$ , the function class $\mathbf{F}_i^{\mathrm{M0}}$ defined above is upper-linearizable with the uniform wrapper $\mathcal{W}_i^{\mathrm{M0}}$ . + +Remark 7. The meta-algorithm $\mathcal{A} \mapsto \mathrm{OMBQ}(\mathcal{A}, \mathrm{BQM0}, \mathrm{Id})$ , described in [Pedramfar and Aggarwal, 2024a], is identical to $\mathcal{A} \mapsto \mathcal{W}_1^{\mathrm{M0}}(\mathcal{A})$ . In other words, the results of Theorem 3 in [Pedramfar and Aggarwal, 2024a] are about the first order uniform wrapper $\mathcal{W}_1^{\mathrm{M0}}$ . Here we consider a more general case where we are not necessarily limited to first order. + +# C.3 Non-monotone up-concave functions over general convex sets $(\mathbf{F}^{\mathrm{NM}})$ + +For differentiable monotone DR-submodular functions, the following lemma is proved in [Zhang et al., 2024]. The general form we use is proven in Lemma 3 in [Pedramfar and Aggarwal, 2024a]. + +Lemma 3. Let $f:[0,1]^d \to \mathbb{R}$ be a non-negative continuous up-concave differentiable function and let $\underline{\mathbf{x}} \in \mathcal{K}$ . Define $F:[0,1]^d \to \mathbb{R}$ as the function $F(\mathbf{x}) \coloneqq \int_0^1 \frac{2}{3z(1 - \frac{z}{2})^3} (f\left(\frac{z}{2} * (\mathbf{x} - \underline{\mathbf{x}}) + \underline{\mathbf{x}}\right) - f(\underline{\mathbf{x}})) dz$ , then $F$ is differentiable and we have + +$$ +\frac {1 - \| \underline {{\mathbf {x}}} \| _ {\infty}}{4} f (\mathbf {y}) - f \left(\frac {\mathbf {x} + \underline {{\mathbf {x}}}}{2}\right) \leq \frac {3}{8} \langle \nabla F (\mathbf {x}), \mathbf {y} - \mathbf {x} \rangle . +$$ + +Let the random variable $\mathcal{Z}^{\mathrm{NM}}\in [0,1]$ be defined by the law $\forall z\in [0,1]$ , $\mathbb{P}(\mathcal{Z}^{\mathrm{NM}}\leq z) = \int_0^z\frac{1}{3(1 - \frac{u}{2})^3} du$ . Then we have $\mathbb{E}_{z\sim \mathcal{Z}^{\mathrm{NM}}}\big[(\frac{z}{2})^{-1}*(f(\frac{z}{2} *(x - \underline{x}) + \underline{x}) - f(\underline{x}))\big] = F(x)$ . Moreover, if $i\geq 1$ and $f$ is $i$ times differentiable, then $\mathbb{E}_{z\sim \mathcal{Z}^{\mathrm{NM}}}\big[(\frac{z}{2})^{i - 1}*\nabla^i f(\frac{z}{2} *(x - \underline{x}) + \underline{x})\big] = \nabla^i F(x)$ . + +Definition 5. Let $\mathcal{K} \subseteq [0,1]^d$ be a convex set and, for any $i \geq 0$ , let $\mathbf{F}_i^{\mathrm{NM}}$ be the class of functions over $\mathcal{K}$ where every $f \in \mathbf{F}_i^{\mathrm{NM}}$ may be extended to a non-negative up-concave function defined over $[0,1]^d$ . We also assume that $\mathbf{F}_i^{\mathrm{NM}}$ is $\max\{i,1\}$ times differentiable for all $i \geq 0$ and, for some known constant $c \geq 0$ and all $f \in \mathbf{F}_0^{\mathrm{NM}}$ , $f(\underline{\mathbf{x}}) = c$ . For $i \geq 0$ , we define $\mathcal{W}_i^{\mathrm{NM}} = ((\mathcal{W}_i^{\mathrm{NM}})^{\mathrm{action}}, (\mathcal{W}_i^{\mathrm{NM}})^{\mathrm{function}}, (\mathcal{W}_i^{\mathrm{NM}})^{\mathrm{query}})$ to be the uniform wrapper with + +(i) $(\mathcal{W}_i^{\mathrm{NM}})^{\mathrm{action}}\coloneqq \mathbf{x}\mapsto \frac{\mathbf{x} + \mathbf{x}}{2}:\mathcal{K}\to \mathcal{K};$ (ii) for any $f\in \mathbf{F}_i^{\mathrm{NM}}$ + +$(\mathcal{W}_i^{\mathrm{NM}})^{\mathrm{function}}(f)\coloneqq \mathbf{x}\mapsto \overline{\mathbb{E}}_{z\sim \mathcal{Z}^{\mathrm{NM}}}[(\frac{z}{2})^{-1}*(f(\frac{z}{2} *(\mathbf{x} - \underline{\mathbf{x}}) + \underline{\mathbf{x}}) - f(\underline{\mathbf{x}}))]:\mathcal{K}\to \mathbb{R};$ and (iii) for any $f\in \mathbf{F}_i^{\mathrm{NM}}$ and any $i$ -th order query oracle $\mathcal{Q}_f$ for $f$ + +$$ +(\mathcal {W} _ {i} ^ {\mathrm {N M}}) ^ {\mathrm {q u e r y}} (\mathcal {Q} _ {f}) (\mathbf {x}) := \left\{ \begin{array}{l l} \left(\frac {z}{2}\right) ^ {i - 1} * Q _ {f} \left(\frac {z}{2} * (\mathbf {x} - \underline {{\mathbf {x}}}) + \underline {{\mathbf {x}}}\right) & \text {i f} i \geq 1 \\ \left(\frac {z}{2}\right) ^ {- 1} * \left(Q _ {f} \left(\frac {z}{2} * (\mathbf {x} - \underline {{\mathbf {x}}}) + \underline {{\mathbf {x}}}\right) - c\right) & \text {i f} i = 0 \end{array} \right. +$$ + +where $z$ is sampled according to $\mathbb{P}(\mathcal{Z}^{\mathrm{NM}}\leq z)$ + +Remark 8. This wrapper fits into the pattern described in Remark 5 by defining $h_z(\mathbf{x}) \coloneqq \frac{z}{2} * (\mathbf{x} - \underline{\mathbf{x}}) + \underline{\mathbf{x}}$ and $\mathcal{Z} = \mathcal{Z}^{\mathrm{NM}}$ . + +Theorem 10. For any $i \geq 0$ , the function class $\mathbf{F}_i^{\mathrm{NM}}$ defined above is upper-linearizable with the uniform wrapper $\mathcal{W}_i^{\mathrm{NM}}$ . + +Remark 9. The meta-algorithm $\mathcal{A} \mapsto \mathrm{OMBQ}(\mathcal{A}, \mathrm{BQN}, \mathbf{x} \mapsto \frac{\mathbf{x} + \mathbf{x}}{2})$ , described in [Pedramfar and Aggarwal, 2024a], is identical to $\mathcal{A} \mapsto \mathcal{W}_1^{\mathrm{NM}}(\mathcal{A})$ . In other words, the results of Theorem 4 in [Pedramfar and Aggarwal, 2024a] are about the first order uniform wrapper $\mathcal{W}_1^{\mathrm{NM}}$ . Here we consider a more general case where we are not necessarily limited to first order. + +# D Proof of Theorems 1 and 2 + +The proof of Theorem 1 is a simple rewriting of the classical results. We start with a lemma which contains the main idea commonly used in the proof of the regret bound of Online Gradient Descent. Lemma 4. Let $\mathbf{x},\mathbf{x}_1\in \mathcal{K}$ , let $G > 0$ and let $(\mathbf{g}_t)_{t = 1}^T$ be a sequence of vectors such that $\| \mathbf{g}_t\| \leq G$ . Define the sequence $(\mathbf{x}_t)_{t = 1}^T$ such that $\mathbf{x}_{t + 1}\gets P_{\mathcal{K}}(\mathbf{x}_t - \eta_t\mathbf{g}_t)$ , where $\eta_t = \frac{D}{G\sqrt{t}}$ . Then we have + +$$ +\sum_ {t = 1} ^ {T} \langle \mathbf {g} _ {t}, \mathbf {x} _ {t} - \mathbf {x} \rangle \leq \frac {3}{2} G D \sqrt {T}. +$$ + +The following proof is copied from the proof of Theorem 3.1 in [Hazan et al., 2016]. + +Proof. Using Pythagorean theorem, we have + +$$ +\left\| \mathbf {x} _ {t + 1} - \mathbf {x} \right\| ^ {2} = \left\| P _ {\mathcal {K}} (\mathbf {x} _ {t} - \eta_ {t} \mathbf {g} _ {t}) - \mathbf {x} \right\| ^ {2} \leq \left\| \mathbf {x} _ {t} - \eta_ {t} \mathbf {g} _ {t} - \mathbf {x} \right\| ^ {2}. +$$ + +Hence, + +$$ +\left\| \mathbf {x} _ {t + 1} - \mathbf {x} \right\| ^ {2} \leq \left\| \mathbf {x} _ {t} - \mathbf {x} \right\| ^ {2} + \eta_ {t} ^ {2} \left\| \mathbf {g} _ {t} \right\| ^ {2} - 2 \eta_ {t} \langle \mathbf {g} _ {t}, \mathbf {x} _ {t} - \mathbf {x} \rangle . +$$ + +$$ +2 \eta_ {t} \langle \mathbf {g} _ {t}, \mathbf {x} _ {t} - \mathbf {x} \rangle \leq \frac {1}{\eta_ {t}} \left(\| \mathbf {x} _ {t} - \mathbf {x} \| ^ {2} - \| \mathbf {x} _ {t + 1} - \mathbf {x} \| ^ {2}\right) + \eta_ {t} G ^ {2}. +$$ + +Summing this from $t = 1$ to $T$ , and setting $\eta_t = \frac{D}{G\sqrt{t}}$ , we see that + +$$ +\begin{array}{l} 2 \sum_ {t = 1} ^ {T} \eta_ {t} \langle \mathbf {g} _ {t}, \mathbf {x} _ {t} - \mathbf {x} \rangle \leq \sum_ {t = 1} ^ {T} \left[ \frac {1}{\eta_ {t}} \left(\| \mathbf {x} _ {t} - \mathbf {x} \| ^ {2} - \| \mathbf {x} _ {t + 1} - \mathbf {x} \| ^ {2}\right) + \eta_ {t} G ^ {2} \right] \\ = \frac {1}{\eta_ {1}} \| \mathbf {x} _ {1} - \mathbf {x} \| ^ {2} + \sum_ {t = 2} ^ {T} \| \mathbf {x} _ {t} - \mathbf {x} \| ^ {2} \left(\frac {1}{\eta_ {t}} - \frac {1}{\eta_ {t - 1}}\right) + G ^ {2} \sum_ {t = 2} ^ {T} \eta_ {t} \\ \leq D ^ {2} \left[ \frac {1}{\eta_ {1}} + \sum_ {t = 2} ^ {T} \left(\frac {1}{\eta_ {t}} - \frac {1}{\eta_ {t - 1}}\right) \right] + G ^ {2} \sum_ {t = 2} ^ {T} \eta_ {t} \\ = D ^ {2} \frac {1}{\eta_ {T}} + G ^ {2} \sum_ {t = 2} ^ {T} \eta_ {t} \\ \leq 3 D G \sqrt {T}, \\ \end{array} +$$ + +where the second inequality follows from the facts that $\mathrm{diam}(\mathcal{K})\leq D$ and $\eta_t$ is decreasing and therefore $\frac{1}{\eta_t} -\frac{1}{\eta_{t - 1}}$ is always positive; and the last inequality follows from the facts that $\eta_t = \frac{D}{G\sqrt{t}}$ and $\sum_{t = 1}^{T}\frac{1}{\sqrt{t}}\leq 2\sqrt{T}$ + +Using this lemma, we can easily prove Theorem 1. + +Proof. By applying Lemma 4 to $\mathbf{o}_t = -\mathbf{g}_t$ , (to account for the fact, unlike OGD, that we update according to $\mathbf{x}_{t + 1}\gets P_{\mathcal{K}}(\mathbf{x}_t + \eta_t\mathbf{o}_t)$ ) we see that + +$$ +\sum_ {t = 1} ^ {T} \left\langle \mathbf {o} _ {t}, \mathbf {x} - \mathbf {x} _ {t} \right\rangle \leq \frac {3}{2} G D \sqrt {T}. +$$ + +If we take the expectation, we see that + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \mathbb {E} [ \langle \nabla f _ {t} (\mathbf {x} _ {t}), \mathbf {x} - \mathbf {x} _ {t} \rangle ] = \sum_ {t = 1} ^ {T} \mathbb {E} [ \langle \mathbb {E} [ \mathbf {o} _ {t} | \mathbf {x} _ {t} ], \mathbf {x} - \mathbf {x} _ {t} \rangle ] \\ = \sum_ {t = 1} ^ {T} \mathbb {E} [ \mathbb {E} [ \langle \mathbf {o} _ {t}, \mathbf {x} - \mathbf {x} _ {t} \rangle | \mathbf {x} _ {t} ] ] \\ = \sum_ {t = 1} ^ {T} \mathbb {E} [ \left\langle \mathbf {o} _ {t}, \mathbf {x} - \mathbf {x} _ {t} \right\rangle ] \leq \frac {3}{2} G D \sqrt {T}. \\ \end{array} +$$ + +Next we prove Theorem 2. + +Proof. At first glance, it may seem that moving from Theorem 1 to Theorem 2 might be non-trivial. However, as elaborated in Appendix A, whether we apply $\mathcal{W}(\mathrm{OGA})$ to an adversary Adv that selects functions from $\mathbf{F}$ or apply OGA to the adversary $\mathcal{W}(\mathrm{Adv})$ , the sequence $\mathbf{x}_t$ remains the same. Thus, by using Theorem 1, we immediately see that + +$$ +\max _ {\mathbf {x} \in \mathcal {K}} \sum_ {t = 1} ^ {T} \mathbb {E} [ \langle \nabla \mathcal {W} (f _ {t}) (\mathbf {x} _ {t}), \mathbf {x} - \mathbf {x} _ {t} \rangle ] \leq \frac {3}{2} G D \sqrt {T}. +$$ + +Another way to arrive at this inequality is to follow the proof of Theorem 2 and adapt is here. Specifically, for all $\mathbf{x} \in \mathcal{K}$ , we have + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \mathbb {E} [ \langle \nabla \mathcal {W} (f _ {t}) (\mathbf {x} _ {t}), \mathbf {x} - \mathbf {x} _ {t} \rangle ] = \sum_ {t = 1} ^ {T} \mathbb {E} [ \langle \mathbb {E} [ \mathbf {o} _ {t} | \mathbf {x} _ {t} ], \mathbf {x} - \mathbf {x} _ {t} \rangle ] \\ = \sum_ {t = 1} ^ {T} \mathbb {E} [ \mathbb {E} [ \langle \mathbf {o} _ {t}, \mathbf {x} - \mathbf {x} _ {t} \rangle | \mathbf {x} _ {t} ] ] \\ = \sum_ {t = 1} ^ {T} \mathbb {E} [ \langle \mathbf {o} _ {t}, \mathbf {x} - \mathbf {x} _ {t} \rangle ] \leq \frac {3}{2} G D \sqrt {T}, \\ \end{array} +$$ + +where the last inequality follows from Lemma 4. Now we may use the definition of uniform wrappers to complete the proof of Theorem 2. + +# E Recovering previous results in the literature + +As mentioned in Remark 2, Algorithm 3 in [Wan et al., 2023] is in fact SFTT $(\mathcal{W}_0^{\mathrm{M0}}(\mathrm{ZO - FTRL}))$ and therefore their result fits within our framework. The way the remaining results in the tables that are marked with $(^{*})$ is discussed in the following. + +We demonstrate how to apply the guideline described in the beginning of Section 6 to Theorem 2 in [Pedramfar and Aggarwal, 2024b]. This allows us to obtain a generalized version of Theorems 1 in [Pedramfar and Aggarwal, 2024a]. As we will discuss below, this will allow us to recover all the remaining results in Tables 1 and 2 that are marked with (*) and all the results of [Pedramfar and Aggarwal, 2024a]. Note that the results of [Pedramfar and Aggarwal, 2024a] in non-stationary setting are not discussed in this paper, but they are also recovered. + +We start with some definitions. Given a function class $\mathbf{F}$ , we use the notation $\mathbf{F}_{\mu, \mathbf{g}}$ to denote the class of functions $q(\mathbf{y}) := \langle \mathfrak{g}(f, \mathbf{x}), \mathbf{y} - \mathbf{x} \rangle - \frac{\mu}{2} \| \mathbf{y} - \mathbf{x} \|^2 : \mathcal{K} \to \mathbb{R}$ , for all $f \in \mathbf{F}$ and $\mathbf{x} \in \mathcal{K}$ . This is the class of quadratic (or linear, when $\mu = 0$ ) functions that form the upper bound in Equation 1. Similarly, for any $B_1 > 0$ , we use the notation $\mathbf{Q}_{\mu}[B_1]$ to denote the class of functions $q(\mathbf{y}) := \langle \mathbf{o}, \mathbf{y} - \mathbf{x} \rangle - \frac{\mu}{2} \| \mathbf{y} - \mathbf{x} \|^2 : \mathcal{K} \to \mathbb{R}$ , for all $\mathbf{x} \in \mathcal{K}$ and $\mathbf{o} \in \mathbb{B}_{B_1}(\mathbf{0})$ . In the following theorems, we will obtain results that allow us to reduce the problem of online optimization over $\mathbf{F}$ to the problem of online optimization over the quadratic (or linear) function class $\mathbf{F}_{\mu, \mathbf{g}}$ . + +Theorem 11. Let $\mathcal{A}$ be algorithm for online optimization with semi-bandit feedback. Also let $\mathbf{F}$ be a differentiable function class over $\mathcal{K}$ and $\mu \geq 0$ . Then the following are true. + +- If query oracles in Adv are deterministic gradient oracles, then we have + +$$ +\sup _ {\mathcal {B} \in \mathrm {A d v}} \mathbb {E} \left[ \max _ {\mathbf {u} \in \mathcal {U}} \sum_ {t = a} ^ {b} \left(\langle \nabla f _ {t} (\mathbf {x} _ {t}), \mathbf {u} _ {t} - \mathbf {x} _ {t} \rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \|\right) \right] \leq \mathcal {R} _ {1, \mathrm {A d v} _ {1} ^ {f} (\mathbf {F} _ {\mu , \nabla})} ^ {\mathcal {A}}. +$$ + +- On the other hand, if $\mathbf{F}$ is $M_1$ -Lipschitz and query oracles in Adv are stochastic gradient oracles that are bounded by $B_1 \geq M_1$ , then we have + +$$ +\sup _ {\mathcal {B} \in \mathrm {A d v}} \max _ {\mathbf {u} \in \mathcal {U}} \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(\langle \nabla f _ {t} (\mathbf {x} _ {t}), \mathbf {u} _ {t} - \mathbf {x} _ {t} \rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \|\right) \right] \leq \mathcal {R} _ {1, \mathrm {A d v} _ {1} ^ {f} (\mathbf {Q} _ {\mu} [ B _ {1} ])} ^ {\mathcal {A}}. +$$ + +See Appendix F for proof. Note that if $f_{t}$ are $\mu$ -strongly concave, then this result reduces to Theorem 2 in [Pedramfar and Aggarwal, 2024b]. Next, we follow step (2) in the guideline to obtain the following result. + +Theorem 12. Let $\mathbf{F}$ be a function class over $\mathcal{K}$ that is upper-quadratizable with $\mu \geq 0$ , $0 < \alpha \leq 1$ and $\beta \geq 0$ and a first-order uniform wrapper $\mathcal{W}$ . + +- If $\mathcal{W}(\nabla) = \nabla$ , i.e., it maps deterministic gradient oracles into deterministic gradient oracles, then we have $\mathcal{R}_{\alpha, \mathrm{Adv}_1^f(\mathbf{F})}^{\mathcal{W}(\mathcal{A})} \leq \beta \mathcal{R}_{1, \mathrm{Adv}_1^f(\mathbf{F}_{\mu, \nabla})}^{\mathcal{A}}$ . +- If, for any $f \in \mathbf{F}$ and any query oracle $\mathcal{Q}_f$ bounded by $B_1$ , $\mathcal{W}(\mathcal{Q}_f)$ is a stochastic query oracle for $\mathcal{W}(f)$ that is bounded by $B_1'$ , then we have $\mathcal{R}_{\alpha, \mathrm{Adv}_1^q(\mathbf{F}, B_1)}^{\mathcal{W}(\mathcal{A})} \leq \beta \mathcal{R}_{1, \mathrm{Adv}_1^f(\mathbf{Q}_\mu[B_1'])}^{\mathcal{A}}$ . + +See Appendix G for proof. In this theorem, by using the uniform wrappers described in Section C, in the special case of $i = 1$ , we recover Theorems 2, 3 and 4 in [Pedramfar and Aggarwal, 2024a]. (See Remarks 7 and 9) In other words, we recover all meta-algorithms in [Pedramfar and Aggarwal, 2024a] that are used to convert concave optimization algorithms into up-concave optimization algorithms. + +Remark 10. Online Gradient Ascent requires semi-bandit feedback. Thus, Theorems 1 and 2 are special cases of Theorems 11 and 12 respectively. + +Remark 11. By applying these uniform wrappers to base algorithms SO-OGA ([Garber and Kretzu, 2022]) or IA ([Zhang et al., 2018]), we recover all the results of [Pedramfar and Aggarwal, 2024a]. In particular, we also recover the results for non-stationary regret described in Table 3 in [Pedramfar and Aggarwal, 2024a]. + +# F Proof of Theorem 11 + +Proof. + +# Deterministic oracle: + +For any realization $\mathcal{B} = (\mathcal{B}_1,\dots ,\mathcal{B}_T)\in \mathrm{Adv}\subseteq \mathrm{Adv}_1^{\mathrm{f}}(\mathbf{F})$ , we define $\mathcal{B}_t^\prime (\mathbf{x}_1,\dots ,\mathbf{x}_t)$ to be the tuple $(q_{t},\nabla)$ where + +$$ +\mathcal {B} _ {t} ^ {\prime} \left(\mathbf {x} _ {1}, \dots , \mathbf {x} _ {t}\right) := q _ {t} := \mathbf {y} \mapsto \left\langle \nabla f _ {t} \left(\mathbf {x} _ {t}\right), \mathbf {y} - \mathbf {x} _ {t} \right\rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} _ {t} \| ^ {2}, +$$ + +and $\mathcal{B}' = (\mathcal{B}_1',\dots ,\mathcal{B}_T')$ . Note that each $\mathcal{B}_t^\prime$ is a deterministic function of $\mathbf{x}_1,\dots ,\mathbf{x}_t$ and therefore $\mathcal{B}^{\prime}\in \mathrm{Adv}_{1}^{\mathrm{f}}(\mathbf{F}_{\mu ,\nabla})$ . Since the algorithm uses semi-bandit feedback, the sequence of random vectors $(\mathbf{x}_1,\dots ,\mathbf{x}_T)$ chosen by $\mathcal{A}$ is identical between the game with $\mathcal{B}$ and $\mathcal{B}^{\prime}$ . Hence + +$$ +\begin{array}{l} \sup _ {\mathcal {B} \in \mathrm {A d v}} \mathbb {E} \left[ \max _ {\mathbf {u} \in \mathcal {U}} \sum_ {t = a} ^ {b} \left(\langle \nabla f _ {t} (\mathbf {x} _ {t}), \mathbf {u} _ {t} - \mathbf {x} _ {t} \rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \| ^ {2}\right) \right] \\ = \sup _ {\mathcal {B} \in \mathrm {A d v}} \mathbb {E} \left[ \max _ {\mathbf {u} \in \mathcal {U}} \left(\sum_ {t = a} ^ {b} q _ {t} (\mathbf {u} _ {t}) - \sum_ {t = a} ^ {b} q _ {t} (\mathbf {x} _ {t})\right) \right] \\ \leq \sup_{\mathcal{B}^{\prime}\in \operatorname{Adv}_{1}^{\mathrm{f}}(\mathbf{F}_{\mu ,\nabla})}\mathcal{R}_{1,\mathcal{B}^{\prime}}^{\mathcal{A}} = \mathcal{R}_{1,\operatorname{Adv}_{1}^{\mathrm{f}}(\mathbf{F}_{\mu ,\nabla})}^{\mathcal{A}}. \\ \end{array} +$$ + +# Stochastic oracle: + +Let $\Omega^{\mathcal{Q}} = \Omega_1^{\mathcal{Q}} \times \dots \times \Omega_T^{\mathcal{Q}}$ capture all sources of randomness in the query oracles of $\mathrm{Adv}_1^{\mathrm{o}}(\mathbf{F}, B_1)$ , i.e., for any choice of $\theta \in \Omega^{\mathcal{Q}}$ , the query oracle is deterministic. Hence for any $\theta \in \Omega^{\mathcal{Q}}$ and realized adversary $\mathcal{B} \in \mathrm{Adv} \subseteq \mathrm{Adv}_1^{\mathrm{f}}(\mathbf{F}, B_1)$ , we may consider $\mathcal{B}_{\theta}$ as an object similar to an adversary with a deterministic oracle. However, note that $\mathcal{B}_{\theta}$ does not satisfy the unbiasedness condition of the oracle, i.e., the returned value of the oracle is not necessarily the gradient of the function at that point. Recall that $\mathcal{B}_t$ maps a tuple $(\mathbf{x}_1, \dots, \mathbf{x}_t)$ to a tuple of $f_t$ and a stochastic query oracle for $f_t$ . We will use $\mathbb{E}_{\Omega^{\mathcal{Q}}}$ to denote the expectation with respect to the randomness of query oracle and + +$\mathbb{E}_{\Omega_t^{\mathcal{Q}}}[\cdot ]\coloneqq \mathbb{E}_{\Omega^{\mathcal{Q}}}[\cdot |f_t,\mathbf{x}_t]$ to denote the expectation conditioned on the action of the agent and the adversary. Similarly, let $\mathbb{E}_{\Omega^A}$ denote the expectation with respect to the randomness of the agent. Let $\mathbf{o}_t$ be the random variable denoting the output of $\mathcal{Q}$ at time-step $t$ and let + +$$ +\bar {\mathbf {o}} _ {t} := \mathbb {E} [ \mathbf {o} _ {t} \mid f _ {t}, \mathbf {x} _ {t} ] = \mathbb {E} _ {\Omega_ {t} ^ {\mathcal {Q}}} [ \mathbf {o} _ {t} ] = \nabla f _ {t} (\mathbf {x} _ {t}). +$$ + +Similar to the deterministic case, for any realization $\mathcal{B} = (\mathcal{B}_1,\dots ,\mathcal{B}_T)\in \mathrm{Adv}$ and any $\theta \in \Omega^{\mathcal{Q}}$ we define $\mathcal{B}_{\theta ,t}^{\prime}(\mathbf{x}_1,\dots ,\mathbf{x}_t)$ to be the pair $(q_{t},\nabla)$ where + +$$ +q _ {t} := \mathbf {y} \mapsto \left\langle \mathbf {o} _ {t}, \mathbf {y} - \mathbf {x} _ {t} \right\rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} _ {t} \| ^ {2}. +$$ + +We also define $\mathcal{B}_{\theta}^{\prime} := (\mathcal{B}_{\theta,1}^{\prime}, \dots, \mathcal{B}_{\theta,T}^{\prime})$ . Note that a specific choice of $\theta$ is necessary to make sure that the function returned by $\mathcal{B}_{\theta,t}^{\prime}$ is a deterministic function of $\mathbf{x}_1, \dots, \mathbf{x}_t$ and not a random variable and therefore $\mathcal{B}_{\theta}^{\prime}$ belongs to $\mathrm{Adv}_{1}^{\mathrm{f}}(\mathbf{F}_{\mu}[B_1])$ . + +Since the algorithm uses (semi-)bandit feedback, given a specific value of $\theta$ , the sequence of random vectors $(\mathbf{x}_1,\dots ,\mathbf{x}_T)$ chosen by $\mathcal{A}$ is identical between the game with $\mathcal{B}_{\theta}$ and $\mathcal{B}_{\theta}^{\prime}$ . Therefore, for any $\mathbf{u}\in \mathcal{U}$ , we have + +$$ +\begin{array}{l} \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(\langle \nabla f _ {t} (\mathbf {x} _ {t}), \mathbf {u} _ {t} - \mathbf {x} _ {t} \rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \| ^ {2}\right) \right] \\ = \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(\langle \mathbb {E} \left[ \mathbf {o} _ {t} \mid f _ {t}, \mathbf {x} _ {t} \right], \mathbf {u} _ {t} - \mathbf {x} _ {t} \rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \| ^ {2}\right) \right] \\ = \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(\mathbb {E} \left[ \langle \mathbf {o} _ {t}, \mathbf {u} _ {t} - \mathbf {x} _ {t} \rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \| ^ {2} \mid f _ {t}, \mathbf {x} _ {t} \right]\right) \right] \\ = \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(\mathbb {E} \left[ q _ {t} \left(\mathbf {u} _ {t}\right) - q _ {t} \left(\mathbf {x} _ {t}\right) \mid f _ {t}, \mathbf {x} _ {t} \right]\right) \right] \\ = \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(q _ {t} (\mathbf {u} _ {t}) - q _ {t} (\mathbf {x} _ {t})\right) \right]. \\ \end{array} +$$ + +Hence we have + +$$ +\begin{array}{l} \max _ {\mathbf {u} \in \mathcal {U}} \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(\langle \nabla f _ {t} (\mathbf {x} _ {t}), \mathbf {u} _ {t} - \mathbf {x} _ {t} \rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \|\right) \right] = \max _ {\mathbf {u} \in \mathcal {U}} \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(q _ {t} (\mathbf {u} _ {t}) - q _ {t} (\mathbf {x} _ {t})\right) \right] \\ \leq \mathbb {E} \left[ \max _ {\mathbf {u} = \left(\mathbf {u} _ {1}, \dots , \mathbf {u} _ {T}\right) \in \mathcal {U}} \sum_ {t = a} ^ {b} \left(q _ {t} \left(\mathbf {u} _ {t}\right) - q _ {t} \left(\mathbf {x} _ {t}\right)\right) \right] \\ = \mathcal {R} _ {\mathcal {B} _ {\theta} ^ {\prime}} ^ {\mathcal {A}} (\mathcal {U}) [ a, b ] \\ \end{array} +$$ + +where the inequality follows from Jensen's inequality. Therefore + +$$ +\begin{array}{l} \sup _ {\mathcal {B} \in \mathrm {A d v}} \max _ {\mathbf {u} \in \mathcal {U}} \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(\left\langle \nabla f _ {t} (\mathbf {x} _ {t}), \mathbf {u} _ {t} - \mathbf {x} _ {t} \right\rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \|\right) \right] \\ \leq \sup _ {\mathcal {B} \in \operatorname {A d v}, \theta \in \Omega^ {\mathcal {Q}}} \mathcal {R} _ {\mathcal {B} _ {\theta} ^ {\prime}} ^ {\mathcal {A}} \\ \leq \sup_{\mathcal{B}^{\prime}\in \operatorname{Adv}_{1}^{f}(\mathbf{F}_{\mu}[B_{1}])}\mathcal{R}_{\mathcal{B}^{\prime}}^{A}, \\ = \mathcal {R} _ {\operatorname {A d v} _ {1} ^ {\mathrm {f}} (\mathbf {F} _ {\mu} [ B _ {1} ])} ^ {\mathcal {A}} \\ \end{array} +$$ + +![](images/9a1d6cbe25b5acb9eb267a56d8cb03bf9b49030275a9e7b7fe69fb4451c5bab9.jpg) + +# G Proof of Theorem 12 + +Proof. + +(i): + +We have + +$$ +\begin{array}{l} \mathcal {R} _ {\alpha , \operatorname {A d v} _ {1} ^ {\mathrm {f}} (\mathbf {F})} ^ {\mathcal {W} (\mathcal {A})} = \sup _ {\mathcal {B} \in \operatorname {A d v} _ {1} ^ {\mathrm {f}} (\mathbf {F})} \mathbb {E} \left[ \max _ {\mathbf {u} = (\mathbf {u} _ {1}, \dots , \mathbf {u} _ {T}) \in \mathcal {U}} \sum_ {t = a} ^ {b} \left(\alpha f _ {t} (\mathbf {u} _ {t}) - f _ {t} (\mathcal {W} (\mathbf {x} _ {t}))\right) \right] \\ \leq \sup _ {\mathcal {B} \in \operatorname {A d v} _ {1} ^ {\mathrm {f}} (\mathbf {F})} \max _ {\mathbf {u} = (\mathbf {u} _ {1}, \dots , \mathbf {u} _ {T}) \in \mathcal {U}} \mathbb {E} \left[ \sum_ {t = a} ^ {b} \beta \left(\left\langle \nabla \mathcal {W} (f _ {t}) (\mathbf {x} _ {t}), \mathbf {u} _ {t} - \mathbf {x} _ {t} \right\rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \|\right) \right] \\ = \beta \mathcal {R} _ {1, \mathrm {A d v} _ {1} ^ {\mathrm {f}}} ^ {\mathcal {A}} (\mathbf {H} _ {\mu , \nabla}). \\ \end{array} +$$ + +(ii): + +Since Adv is oblivious, the sequence of functions $(f_{1},\dots ,f_{T})$ is not random and we have + +$$ +\begin{array}{l} \mathcal {R} _ {\alpha , \operatorname {A d v} _ {1} ^ {\circ} (\mathbf {F}, B _ {1})} ^ {\mathcal {W} (\mathcal {A})} = \sup _ {\mathcal {B} \in \operatorname {A d v} _ {1} ^ {\circ} (\mathbf {F}, B _ {1})} \mathbb {E} \left[ \max _ {\mathbf {u} = (\mathbf {u} _ {1}, \dots , \mathbf {u} _ {T}) \in \mathcal {U}} \sum_ {t = a} ^ {b} \left(\alpha f _ {t} (\mathbf {u} _ {t}) - f _ {t} (\mathcal {W} (\mathbf {x} _ {t}))\right) \right] \\ = \sup _ {\mathcal {B} \in \operatorname {A d v} _ {1} ^ {\mathrm {o}} (\mathbf {F}, B _ {1})} \max _ {\mathbf {u} = (\mathbf {u} _ {1}, \dots , \mathbf {u} _ {T}) \in \mathcal {U}} \mathbb {E} \left[ \sum_ {t = a} ^ {b} \left(\alpha f _ {t} (\mathbf {u} _ {t}) - f _ {t} (\mathcal {W} (\mathbf {x} _ {t}))\right) \right] \\ \leq \sup _ {\mathcal {B} \in \operatorname {A d v} _ {1} ^ {\mathrm {o}} (\mathbf {F}, B _ {1})} \max _ {\mathbf {u} = (\mathbf {u} _ {1}, \dots , \mathbf {u} _ {T}) \in \mathcal {U}} \mathbb {E} \left[ \sum_ {t = a} ^ {b} \beta \left(\langle \nabla \mathcal {W} (f _ {t}) (\mathbf {x} _ {t}), \mathbf {u} _ {t} - \mathbf {x} _ {t} \rangle - \frac {\mu}{2} \| \mathbf {u} _ {t} - \mathbf {x} _ {t} \|\right) \right] \\ = \beta \mathcal {R} _ {1, \mathrm {A d v} _ {1} ^ {\mathrm {f}} (\mathbf {Q} _ {\mu} [ B _ {1} ^ {\prime} ])}. \\ \end{array} +$$ + +![](images/1609515706c6d44efcd40c4e81c7770e3f4e2035f095e6a5e1f7da7945665bbd.jpg) + +# H Follow The Regularized Leader + +We start by defining the notion of self-concordant barrier. + +Definition 6 ([Hazan et al., 2016]). Let $\mathcal{K} \in \mathbb{R}^d$ be a convex set with non empty interior $\operatorname{int}(\mathcal{K})$ . We call a function $\Phi: \operatorname{int}(\mathcal{K}) \longrightarrow \mathbb{R}$ a $\nu$ -self-concordant barrier of $\mathcal{K}$ if: + +(i) $\Phi$ is three-times continuously differentiable, convex, and tends to infinity along any sequence of points approaching the boundary of $\mathcal{K}$ ; +(ii) For every $\mathbf{h}\in \mathbb{R}^d$ and $\mathbf{x}\in \mathrm{int}(\mathcal{K})$ , we have: + +$$ +| \nabla^ {3} \Phi (\mathbf {x}) [ \mathbf {h}, \mathbf {h}, \mathbf {h} ] | \leq 2 (\nabla^ {2} \Phi (\mathbf {x}) [ \mathbf {h}, \mathbf {h} ]) ^ {3 / 2}, | \nabla \Phi (x) [ \mathbf {h} ] | \leq \nu^ {1 / 2} (\nabla^ {2} \Phi (\mathbf {x}) [ \mathbf {h}, \mathbf {h} ]) ^ {1 / 2} +$$ + +where the third-order differential is defined as $\nabla^3\Phi (\mathbf{x})[\mathbf{h},\mathbf{h},\mathbf{h}]\coloneqq \frac{\partial^3}{\partial t_1\partial t_2\partial t_3}\Phi (x + t_1\mathbf{h} + t_2\mathbf{h} + t_3\mathbf{h})|_{t_1 = t_2 = t_3 = 0}$ . + +Next we define the notion of local norm and dual norm with respect to a self-concordant barrier. + +Definition 7. For every $x \in \mathrm{int}(\mathcal{K})$ , the Hessian of the self-concordant barrier induces a local norm, denoted as $\| \cdot \|_{\Phi ,x}$ , and a dual norm, denoted as $\| \cdot \|_{\Phi ,\mathbf{x},*}$ , where for any $\mathbf{v} \in \mathbb{R}^d$ + +$$ +\| \mathbf {v} \| _ {\Phi , \mathbf {x}} = \sqrt {\mathbf {v} ^ {T} \nabla^ {2} \Phi (\mathbf {x}) \mathbf {v}}, \qquad \| \mathbf {v} \| _ {\Phi , \mathbf {x}, *} = \sqrt {\mathbf {v} ^ {T} (\nabla^ {2} \Phi (\mathbf {x})) ^ {- 1} \mathbf {v}}. +$$ + +An important result for FTRL is the following theorem which was proved in [Abernethy et al., 2008]. It shows that if we set the regularizer to be a self-concordant barrier of $\mathcal{K}$ and the algorithm can access the unbiased estimator of $\mathbf{g}_t$ , then the regret of the generated solution sequence $\{\boldsymbol{x}_t\}_{t=1}^T$ can be bounded in terms of the local norm of the estimator. + +Theorem 13 ([Abernethy et al., 2008]). Let $\mathcal{K} \subseteq \mathbb{R}^d$ be a convex set, $\Phi(x)$ be a self-concordant barrier on $\mathcal{K}$ , $\{\mathbf{g}_t\}_{t=1}^T$ be a sequence of random vectors in $\mathbb{R}^d$ . Then running FTRL (described in Equation 3) on a vector sequence $\{\mathbf{g}_t\}_{t=1}^T$ in $\mathbb{R}^d$ with $\Phi(x)$ as the regularizer will produce a sequence of points $\{\mathbf{x}_t\}_{t=1}^T$ in $\mathcal{K}$ where + +$$ +\sum_ {t = 1} ^ {T} \langle \mathbf {g} _ {t}, \mathbf {y} - \mathbf {x} _ {t} \rangle \leq \eta \sum_ {t = 1} ^ {T} \| \mathbf {g} _ {t} \| _ {\Phi , \mathbf {x} _ {t}, *} ^ {2} + \frac {\Phi (\mathbf {y}) - \Phi (\mathbf {x} _ {1})}{\eta}, +$$ + +for any $\mathbf{y}\in \mathcal{K}$ + +The ellipsoid gradient estimator was proposed in [Abernethy et al., 2008], where the authors use it along with Theorem 13 to design an $\widetilde{O} (\sqrt{T})$ regret algorithm for bandit linear optimization. For a continuous function but possibly non-smooth $f:\mathbb{R}^d\to \mathbb{R}$ and an invertible matrix $\Sigma \in \mathbb{R}^{d\times d}$ , we define the $\Sigma$ -smoothed version of $f$ . + +Definition 8. For function $f(\mathbf{x}):\mathbb{R}^d\to \mathbb{R}$ and invertible matrix $\Sigma \in \mathbb{R}^{d\times d}$ , we call $f^{\Sigma}(\mathbf{x})$ a $\Sigma$ -smoothed version of $f(\mathbf{x})$ , where $f^{\Sigma}(\mathbf{x}) = \mathbb{E}_{\mathbf{v}\sim \mathbb{B}^{d}}\left[f(\mathbf{x} + \Sigma \mathbf{v})\right]$ . Here $\mathbf{v}\sim \mathbb{B}^d$ means that $\mathbf{v}$ is sampled from the unit ball $\mathbb{B}^d$ uniformly at random. + +There is a surprising fact that there is an unbiased estimator of $\nabla f^{\Sigma}(\mathbf{x})$ for any $\mathbf{x}$ , and the estimator uses only a single query to the value oracle of $f$ . + +Lemma 5 ([Abernethy et al., 2008]). Let $\Sigma \in \mathcal{R}^{d\times d}$ be an invertible matrix, $f(\mathbf{x}): \mathbb{R}^d \to \mathbb{R}$ be an arbitrary function. Then $\nabla f^{\Sigma}(\mathbf{x}) = d\mathbb{E}_{\mathbf{v} \sim \mathbb{S}^{d-1}}\left[f(\mathbf{x} + \Sigma \mathbf{v})\Sigma^{-1}\mathbf{v}\right]$ . Here $\mathbf{v} \sim \mathbb{S}^{d-1}$ means that $\mathbf{v}$ is sampled from the $(d-1)$ -dimensional unit sphere $\mathbb{S}^{d-1}$ uniformly at random. + +If $f$ is a linear function, $f^{\Sigma}(\mathbf{x}) = f(\mathbf{x})$ , so Lemma 5 provides a one-sample unbiased estimator of the gradient of the linear function. The ellipsoid gradient estimator is usually used along with FTRL with a self-concordant regularizer $\Phi$ of $\mathcal{K}$ . When the invertible matrix $\Sigma$ is set to be $(\nabla^{2}\Phi (\mathbf{x}))^{-1 / 2}$ and $\mathbf{x}\in \mathrm{int}(\mathcal{K})$ , the sampled action $\mathbf{x} + \Sigma \mathbf{v}$ is located in the surface of a so-called Dikin ellipsoid centered at $\mathbf{x}$ , i.e. $\{\mathbf{x}'\mid \| \mathbf{x}' - \mathbf{x}\|_{\Phi ,\mathbf{x}}\leq 1\}$ . The fact that Dikin ellipsoid is entirely contained in $\mathcal{K}$ allows us to define $f^{\Sigma}$ at $\mathbf{x}$ . + +We finish this section with quick overview of the concept of the Minkowski function, the Minkowski set and some of their useful properties. + +Definition 9. Let $\mathcal{K}$ be a compact convex set, the Minkowski function $\pi_{\mathbf{x}}: \mathcal{K} \to \mathbb{R}$ parameterized by a pole $\mathbf{x} \in \mathrm{int}(\mathcal{K})$ is defined as $\pi_{\mathbf{x}}(\mathbf{y}) := \inf \{t \geq 0 \mid x + t^{-1}(y - x) \in \mathcal{K}\}$ . Given $\delta \in \mathbb{R}^{+}$ and $\mathbf{x}_1 \in \mathrm{int}(\mathcal{K})$ , we define the Minkowski set + +$$ +\mathcal {K} _ {\gamma , \mathbf {x} _ {1}} := \left\{\mathbf {x} \in \mathcal {K} \mid \pi_ {\mathbf {x} _ {1}} (\mathbf {x}) \leq (1 + \gamma) ^ {- 1} \right\}. +$$ + +Lemma 6 ([Abernethy et al., 2008]). Let $\mathcal{K}$ be a compact convex set, $\mathbf{x} \in \operatorname{int}(\mathcal{K})$ with diameter $D$ , $\mathbf{u}_* \in \mathcal{K}$ and $\hat{\mathbf{u}}_* := \operatorname{argmin}_{\mathbf{z} \in \mathcal{K}_{\gamma, \mathbf{x}}} \| \mathbf{z} - \mathbf{u}_* \|$ be the projection of $\mathbf{u}_*$ onto the Minkowski set $\mathcal{K}_{\gamma, \mathbf{x}}$ , then + +$$ +\left\| \mathbf {u} _ {*} - \hat {\mathbf {u}} _ {*} \right\| \leq \gamma D. +$$ + +The following lemma provides an upper bound of the difference between the function value of a self-concordant barrier at two different points. + +Lemma 7 ([Nesterov and Nemirovskii, 1994]). Let $\Phi$ be a $\nu$ -self-concordant barrier over a compact convex set $\mathcal{K}$ , then for all $\mathbf{x}, \mathbf{y} \in \operatorname{int}(\mathcal{K})$ : + +$$ +\Phi (\mathbf {y}) - \Phi (\mathbf {x}) \leq \nu \log \frac {1}{1 - \pi_ {\mathbf {x}} (\mathbf {y})}. +$$ + +# I Technical Lemmas + +This section provides some technical lemmas that will be used in the proofs later. + +Lemma 8. Let $\mathcal{K}$ be a compact set and let $f:\mathcal{K}\to \mathbb{R}^d$ be an $M_2$ -smooth function. Then $f$ may be extended to an $M_2$ -smooth function $\tilde{f}:\mathbb{R}^d\rightarrow \mathbb{R}$ . + +Proof. The function $\nabla F$ is an $M_2$ -Lipschitz function defined on $\mathcal{K}$ . Therefore, according to Kirschbraun theorem [Kirschbraun, 1934] it may be extended to a function $g: \mathbb{R}^d \to \mathbb{R}^d$ that is $M_2$ -Lipschitz. Now the result follows directly from Whitney's extension theorem [Whitney, 1934]. + +Parts (i)-(iii) of the following lemma are well-known in the literature. (See Lemma A.5 in [Wan et al., 2023] for a proof). Here we provide a proof for part (iv). + +Lemma 9. Following properties hold for $\Sigma$ -smoothed version of a function $f(\mathbf{x})$ for an invertible matrix $\Sigma$ . + +(i) If $f(\mathbf{x})$ is a monotone function, then so is $f^{\Sigma}(\mathbf{x})$ . +(ii) If $f(\mathbf{x})$ is $M_1$ -Lipschitz, then so is $f^{\Sigma}(\mathbf{x})$ . +(iii) If $f(\mathbf{x})$ is $M_2$ -smooth, then so is $f^{\Sigma}(\mathbf{x})$ . +(iv) If $f$ is upper-quadratic with a uniform wrapper $\mathcal{W}$ and $\alpha, \beta$ and $\mu$ , then we have + +$$ +\alpha f ^ {\Sigma} (\mathbf {y}) - (f \circ \mathcal {W}) ^ {\Sigma} (\mathbf {x}) \leq \beta \left(\left\langle \nabla (\mathcal {W} (f)) ^ {\Sigma} (\mathbf {x}), \mathbf {y} - \mathbf {x} \right\rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} \| ^ {2}\right). +$$ + +Proof. We have + +$$ +\begin{array}{l} \alpha f ^ {\Sigma} (\mathbf {y}) - (f \circ \mathcal {W}) ^ {\Sigma} (\mathbf {x}) = \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ \alpha f (\mathbf {y} + \Sigma \mathbf {v}) - f (\mathcal {W} (\mathbf {x} + \Sigma \mathbf {v})) \right] \\ \leq \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ \beta \left(\langle \nabla \mathcal {W} (f) (\mathbf {x} + \Sigma \mathbf {v}), \mathbf {y} - \mathbf {x} \rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} \| ^ {2}\right) \right] \\ = \beta \left(\left\langle \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} [ \nabla \mathcal {W} (f) (\mathbf {x} + \Sigma \mathbf {v}) ], \mathbf {y} - \mathbf {x} \right\rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} \| ^ {2}\right) \\ = \beta \left(\left\langle \nabla \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ \mathcal {W} (f) (\mathbf {x} + \Sigma \mathbf {v}) \right], \mathbf {y} - \mathbf {x} \right\rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} \| ^ {2}\right) \\ = \beta \left(\left\langle \nabla (\mathcal {W} (f)) ^ {\Sigma} (\mathbf {x}), \mathbf {y} - \mathbf {x} \right\rangle - \frac {\mu}{2} \| \mathbf {y} - \mathbf {x} \| ^ {2}\right). \\ \end{array} +$$ + +Lemma 10. If $f: \mathcal{K} \to \mathbb{R}$ is $M_1$ -Lipschitz and $M_2$ -smooth and $g: \mathcal{K} \to \mathcal{K}$ is $M_1'$ -Lipschitz and $M_2'$ -smooth, then $f \circ g$ is $M_1''$ -Lipschitz and $M_2''$ -smooth where $M_1'' := M_1M_1'$ and $M_2'' := M_1M_2' + M_2M_1'^2$ . + +Proof. We have + +$$ +\left\| D (f \circ g) (\mathbf {x}) \right\| = \left\| D f (g (\mathbf {x})) \cdot D g (\mathbf {x}) \right\| \leq M _ {1} M _ {1} ^ {\prime}, +$$ + +and therefore for all $\mathbf{x},\mathbf{y}\in \mathcal{K}$ , we have + +$$ +\begin{array}{l} \| D (f \circ g) (\mathbf {x}) - D (f \circ g) (\mathbf {y}) \| = \| D f (g (\mathbf {x})) \cdot D g (\mathbf {x}) - D f (g (\mathbf {y})) \cdot D g (\mathbf {y}) \| \\ \leq \left\| D f (g (\mathbf {x})) \cdot D g (\mathbf {x}) - D f (g (\mathbf {x})) \cdot D g (\mathbf {y}) \right\| \\ + \left\| D f (g (\mathbf {x})) \cdot D g (\mathbf {y}) - D f (g (\mathbf {y})) \cdot D g (\mathbf {y}) \right\| \\ = \| D f (g (\mathbf {x})) \| \| D g (\mathbf {x}) - D g (\mathbf {y}) \| \\ + \| D f (g (\mathbf {x})) - D f (g (\mathbf {y})) \| \| D g (\mathbf {y}) \| \\ \leq M _ {1} M _ {2} ^ {\prime} \| \mathbf {x} - \mathbf {y} \| + M _ {2} M _ {1} ^ {\prime} \| g (\mathbf {x}) - g (\mathbf {y}) \| \\ \leq \left(M _ {1} M _ {2} ^ {\prime} + M _ {2} M _ {1} ^ {\prime 2}\right) \| \mathbf {x} - \mathbf {y} \|. \\ \end{array} +$$ + +# J Proof of Theorem 3 + +Proof. We have + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} (\mathbf {u} _ {*}) - f _ {t} (\mathbf {x} _ {t}) \right] \\ = \sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} ^ {\delta \Sigma_ {t}} \left(\hat {\mathbf {u}} _ {*}\right) - f _ {t} ^ {\delta \Sigma_ {t}} \left(\mathbf {x} _ {t}\right) \right] + \underbrace {\sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} ^ {\delta \Sigma_ {t}} \left(\mathbf {u} _ {*}\right) - f _ {t} ^ {\delta \Sigma_ {t}} \left(\hat {\mathbf {u}} _ {*}\right) \right]} _ {(A)} \tag {4} \\ + \underbrace {\sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} (\mathbf {u} _ {*}) - f _ {t} ^ {\delta \Sigma_ {t}} (\mathbf {u} _ {*}) \right]} _ {(B)} + \underbrace {\sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} ^ {\delta \Sigma_ {t}} (\mathbf {x} _ {t}) - f _ {t} (\mathbf {x} _ {t}) \right]} _ {(C)} \\ \end{array} +$$ + +Note that, for the terms above to be well-defined, we need to be able to define $f_{t}^{\delta \Sigma_{t}}$ over $\mathcal{K}$ which requires computing $f_{t}$ over a set that is slightly larger than $\mathcal{K}$ . Using Lemma 8, we assume that all functions $f_{t}$ are well-defined and $M_2$ -smooth over $\mathbb{R}^d$ . + +Bounding (A): Since $f_{t}(\mathbf{x})$ is $M_1$ -Lipschitz continuous, $f_{t}^{\delta \Sigma_{t}}$ is also $M_1$ -Lipschitz continuous by Lemma 9. Since $\| \hat{\mathbf{u}}_* - \mathbf{u}_* \| \leq \gamma D$ by Lemma 6, + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} ^ {\delta \Sigma_ {t}} \left(\mathbf {u} _ {*}\right) - f _ {t} ^ {\delta \Sigma_ {t}} \left(\hat {\mathbf {u}} _ {*}\right) \right] \leq \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \left| f _ {t} ^ {\delta \Sigma_ {t}} \left(\hat {\mathbf {u}} _ {*}\right) - f _ {t} ^ {\delta \Sigma_ {t}} \left(\mathbf {u} _ {*}\right) \right| \right] \tag {5} \\ \leq \sum_ {t = 1} ^ {T} M _ {1} \gamma D = M _ {1} \gamma D T. \\ \end{array} +$$ + +Bounding (B): Since $f_{t}(\mathbf{x})$ is $M_2$ -smooth, by Lemma 9, $f_{t}^{\delta \Sigma_{t}}$ is $M_2$ -smooth. Thus, + +$$ +\begin{array}{l} f _ {t} \left(\mathbf {u} _ {*}\right) - f _ {t} ^ {\delta \Sigma_ {t}} \left(\mathbf {u} _ {*}\right) = \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ f _ {t} \left(\mathbf {u} _ {*}\right) - f _ {t} \left(\mathbf {u} _ {*} + \delta \Sigma_ {t} \mathbf {v}\right) \right] \\ \leq \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ - \langle \nabla f _ {t} (\mathbf {u} _ {*}), \delta \Sigma_ {t} \mathbf {v} \rangle + \frac {M _ {2}}{2} \| \delta \Sigma_ {t} \mathbf {v} \| ^ {2} \right] \\ = \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ - \langle \nabla f _ {t} (\mathbf {u} _ {*}), \delta \Sigma_ {t} \mathbf {v} \rangle \right] + \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ \frac {M _ {2}}{2} \| \delta \Sigma_ {t} \mathbf {v} \| ^ {2} \right] \\ = \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ \frac {M _ {2}}{2} \| \delta \Sigma_ {t} \mathbf {v} \| ^ {2} \right] \\ \leq \frac {M _ {2} \delta^ {2} D ^ {2}}{2}. \\ \end{array} +$$ + +Note that in the last inequality, we used the fact that the Dikin ellipsoid centered at $\mathbf{x}_t$ is contained in $\kappa$ which implies that $\mathbf{x}_t + \Sigma_t\mathbf{v} \in \kappa$ and therefore $\| \Sigma_t\mathbf{v}\| \leq D$ . It follows that, + +$$ +\sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} \left(\hat {\mathbf {u}} _ {*}\right) - f _ {t} ^ {\delta \Sigma_ {t}} \left(\hat {\mathbf {u}} _ {*}\right) \right] \leq \frac {M _ {2} \delta^ {2} D ^ {2} T}{2}. \tag {6} +$$ + +Bounding $(C)$ : Similarly, + +$$ +\begin{array}{l} f _ {t} ^ {\delta \Sigma_ {t}} (\mathbf {x} _ {t}) - f _ {t} (\mathbf {x} _ {t}) = \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ f _ {t} (\mathbf {x} _ {t} + \delta \Sigma_ {t} \mathbf {v}) - f _ {t} (\mathbf {x} _ {t}) \right] \\ \leq \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ - \left\langle \nabla f _ {t} (\mathbf {x} _ {t}), \delta \Sigma_ {t} \mathbf {v} \right\rangle + \frac {M _ {2}}{2} \| \delta \Sigma_ {t} \mathbf {v} \| ^ {2} \right] \leq \frac {M _ {2} \delta^ {2} D ^ {2}}{2}. \\ \end{array} +$$ + +Therefore, + +$$ +\sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} ^ {\delta \Sigma_ {t}} \left(\mathbf {x} _ {t}\right) - f _ {t} \left(\mathbf {x} _ {t}\right) \right] \leq \frac {M _ {2} \delta^ {2} D ^ {2} T}{2} \tag {7} +$$ + +Putting 5,6,7 in 4, we see that + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} \left(\mathbf {u} _ {*}\right) - f _ {t} \left(\mathbf {x} _ {t}\right) \right] \leq \sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} ^ {\delta \Sigma_ {t}} \left(\hat {\mathbf {u}} _ {*}\right) - f _ {t} ^ {\delta \Sigma_ {t}} \left(\mathbf {x} _ {t}\right) \right] \\ + \alpha M _ {1} \gamma D T + \frac {M _ {2} \delta^ {2} D ^ {2} T}{2} + \frac {M _ {2} \delta^ {2} D ^ {2} T}{2}, \\ \end{array} +$$ + +which completes the proof of the first claim. + +To prove the second claim, we first use Lemma 5, with $\Sigma = \delta \Sigma_{t}$ , to see that $\mathbb{E}\left[\mathbf{o}_t\mid \mathbf{x}_t\right] = \nabla f_t^{\delta \Sigma_t}(\mathbf{x}_t)$ . On the other hand, since $\mathcal{Q}_t$ is bounded by $B_0$ , we have + +$$ +\| \mathbf {o} _ {t} \| _ {\mathbf {x} _ {t}, *} ^ {2} = \left\| \frac {d}{\delta} y _ {t} \Sigma_ {t} ^ {- 1} \mathbf {v} _ {t} \right\| _ {\mathbf {x} _ {t}, *} ^ {2} = \frac {d ^ {2}}{\delta^ {2}} | y _ {t} | ^ {2} \mathbf {v} _ {t} ^ {T} \Sigma_ {t} ^ {- 1} \left(\nabla^ {2} \Phi (\mathbf {x} _ {t})\right) ^ {- 1} \Sigma_ {t} ^ {- 1} \mathbf {v} _ {t} \leq \frac {d ^ {2}}{\delta^ {2}} B _ {0} ^ {2} \| \mathbf {v} _ {t} \| ^ {2} \leq \frac {d ^ {2} B _ {0} ^ {2}}{\delta^ {2}} +$$ + +Hence, using Theorem 13 with $\mathbf{g}_t = \mathbf{o}_t$ and $\mathbf{y} = \hat{\mathbf{u}}_*$ , we see that + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \left\langle \nabla f _ {t} ^ {\delta \Sigma_ {q}} \left(\mathbf {x} _ {t}\right), \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \right\rangle \right] = \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \left\langle \mathbb {E} \left[ \mathbf {o} _ {t} \mid \mathbf {x} _ {t} \right], \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \right\rangle \right] \\ = \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \mathbb {E} \left[ \langle \mathbf {o} _ {t}, \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \rangle \mid \mathbf {x} _ {t} \right] \right] \\ = \mathbb {E} \left[ \sum_ {t = 1} ^ {T} \langle \mathbf {o} _ {t}, \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \rangle \right] \\ \leq \mathbb {E} \left[ \eta \sum_ {t = 1} ^ {T} \| \mathbf {o} _ {t} \| _ {\Phi , \mathbf {x} _ {t}, *} ^ {2} + \frac {\Phi (\hat {\mathbf {u}} _ {*}) - \Phi (\mathbf {x} _ {1})}{\eta} \right] \\ \leq \eta \sum_ {t = 1} ^ {T} \frac {d ^ {2} B _ {0} ^ {2}}{\delta^ {2}} + \frac {\Phi (\hat {\mathbf {u}} _ {*}) - \Phi (\mathbf {x} _ {1})}{\eta} \\ \leq \frac {\eta d ^ {2} B _ {0} ^ {2} T}{\delta^ {2}} + \frac {\nu \log (\frac {1}{1 - (1 + \gamma) ^ {- 1}})}{\eta}, \\ \end{array} +$$ + +where we used Lemma 7 in the last inequality. + +![](images/6dc188f8ee6bc7bc955bda8041ec7a0baf697e2eeb51a547809875e2b386bb87.jpg) + +# K Proof of Theorem 4 + +Proof. Let $\mathcal{B} \in \mathrm{Adv}$ be a realized adversary and let $f_1, \dots, f_T$ be the sequence of functions selected by $\mathcal{B}$ . Also let $\mathbf{u}_* \in \operatorname{argmax}_{\mathbf{u} \in \mathcal{K}} \sum_{t=1}^{T} f_t(\mathbf{u})$ and $\hat{\mathbf{u}}_* \in \operatorname{argmin}_{\mathbf{x} \in \mathcal{K}_{\gamma, \mathbf{x}_1}} \| \mathbf{u}_* - \mathbf{x} \|$ where $\gamma = T^{-1}$ . We have + +$$ +\begin{array}{l} \mathcal {R} _ {\alpha , \mathcal {B}} ^ {\mathcal {W} (\mathrm {Z O - F T R L})} = \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \alpha f _ {t} \left(\mathbf {u} _ {*}\right) - f _ {t} \left(\mathcal {W} \left(\mathbf {x} _ {t}\right)\right) \right] \\ = \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \alpha f _ {t} ^ {\delta \Sigma_ {t}} (\hat {\mathbf {u}} _ {*}) - (f _ {t} \circ \mathcal {W}) ^ {\delta \Sigma_ {t}} (\mathbf {x} _ {t}) \right] + \alpha \underbrace {\sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} ^ {\delta \Sigma_ {t}} (\mathbf {u} _ {*}) - f _ {t} ^ {\delta \Sigma_ {t}} (\hat {\mathbf {u}} _ {*}) \right]} _ {(A)} \\ + \alpha \underbrace {\sum_ {t = 1} ^ {T} \mathbb {E} \left[ f _ {t} (\mathbf {u} _ {*}) - f _ {t} ^ {\delta \Sigma_ {t}} (\mathbf {u} _ {*}) \right]} _ {(B)} + \underbrace {\sum_ {t = 1} ^ {T} \mathbb {E} \left[ (f _ {t} \circ \mathcal {W}) ^ {\delta \Sigma_ {t}} (\mathbf {x} _ {t}) - f _ {t} (\mathcal {W} (\mathbf {x} _ {t})) \right]} _ {(C)} \\ \end{array} +$$ + +As in the proof of Theorem 3, we use Lemma 8 to extend all functions $f_{t}$ to $M_2$ -smooth functions over $\mathbb{R}^d$ and we bound the terms (A) and (B) by $M_1\gamma DT$ and $\frac{M_2\delta^2D^2T}{2}$ , respectively. To bound (C), + +we first use Lemma 10 to see that $f_{t} \circ \mathcal{W}$ is $M_2^{\prime \prime}$ -smooth, where $M_2^{\prime \prime} = M_1M_2^{\prime} + M_2M_1^{\prime 2}$ . Hence, we see that + +$$ +\begin{array}{l} \left(f _ {t} \circ \mathcal {W}\right) ^ {\delta \Sigma_ {t}} \left(\mathbf {x} _ {t}\right) - f _ {t} \left(\mathcal {W} \left(\mathbf {x} _ {t}\right)\right) = \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ f _ {t} \left(\mathcal {W} \left(\mathbf {x} _ {t} + \delta \Sigma_ {t} \mathbf {v}\right)\right) - f _ {t} \left(\mathcal {W} \left(\mathbf {x} _ {t}\right)\right) \right] \\ \leq \mathbb {E} _ {\mathbf {v} \sim \mathbb {B} ^ {d}} \left[ - \left\langle \nabla f _ {t} (\mathcal {W} (\mathbf {x} _ {t})), \delta \Sigma_ {t} \mathbf {v} \right\rangle + \frac {M _ {2} ^ {\prime \prime}}{2} \| \delta \Sigma_ {t} \mathbf {v} \| ^ {2} \right] \leq \frac {M _ {2} ^ {\prime \prime} \delta^ {2} D ^ {2}}{2}. \\ \end{array} +$$ + +Therefore, + +$$ +\sum_ {t = 1} ^ {T} \mathbb {E} \left[ \left(f _ {t} \circ \mathcal {W}\right) ^ {\delta \Sigma_ {t}} \left(\mathbf {x} _ {t}\right) - f _ {t} \left(\mathcal {W} \left(\mathbf {x} _ {t}\right)\right) \right] \leq \frac {M _ {2} ^ {\prime \prime} \delta^ {2} D ^ {2} T}{2} +$$ + +Putting the bounds for (A), (B) and (C) together, we see that + +$$ +\begin{array}{l} \mathcal {R} _ {\alpha , \mathcal {B}} ^ {\mathcal {W} (\mathrm {Z O - F T R L})} = \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \alpha f _ {t} \left(\mathbf {u} _ {*}\right) - f _ {t} \left(\mathcal {W} \left(\mathbf {x} _ {t}\right)\right) \right] \\ \leq \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \alpha f _ {t} ^ {\delta \Sigma_ {t}} (\hat {\mathbf {u}} _ {*}) - \left(f _ {t} \circ \mathcal {W}\right) ^ {\delta \Sigma_ {t}} \left(\mathbf {x} _ {t}\right) \right] + \alpha M _ {1} \gamma D T + \frac {\left(\alpha M _ {2} + M _ {2} ^ {\prime \prime}\right) \delta^ {2} D ^ {2} T}{2} \\ \leq \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \beta \left\langle \nabla \left(\mathcal {W} \left(f _ {t}\right)\right) ^ {\delta \Sigma_ {t}} \left(\mathbf {x} _ {t}\right), \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \right\rangle \right] + \alpha M _ {1} \gamma D T + \frac {\left(\alpha M _ {2} + M _ {2} ^ {\prime \prime}\right) \delta^ {2} D ^ {2} T}{2}, \tag {8} \\ \end{array} +$$ + +where the second inequality follows from Lemma 9. + +To bound the remaining term, we use an argument similar to the one used in the proof of Theorem 3 again. Using Lemma 5 with $\Sigma = \delta \Sigma_{t}$ and the fact that $y_{t}$ is an unbiased sample of $\mathcal{W}(f_t)$ at $\mathbf{x}_t + \delta \Sigma_t\mathbf{v}_t$ , we see that $\mathbb{E}\left[\mathbf{o}_t\mid \mathbf{x}_t\right] = \nabla (\mathcal{W}(f_t))^{\delta \Sigma_t}(\mathbf{x}_t)$ . On the other hand, since $\mathcal{W}(\mathcal{Q}_t)$ is bounded by $B_0$ , we have $|y_{t}|\leq B_{0}$ , which implies that + +$$ +\left\| \mathbf {o} _ {t} \right\| _ {\mathbf {x} _ {t}, *} ^ {2} = \left\| \frac {d}{\delta} y _ {t} \Sigma_ {t} ^ {- 1} \mathbf {v} _ {t} \right\| _ {\mathbf {x} _ {t}, *} ^ {2} = \frac {d ^ {2}}{\delta^ {2}} \left| y _ {t} \right| ^ {2} \mathbf {v} _ {t} ^ {T} \Sigma_ {t} ^ {- 1} \left(\nabla^ {2} \Phi (\mathbf {x} _ {t})\right) ^ {- 1} \Sigma_ {t} ^ {- 1} \mathbf {v} _ {t} \leq \frac {d ^ {2}}{\delta^ {2}} B _ {0} ^ {2} \| \mathbf {v} _ {t} \| ^ {2} \leq \frac {d ^ {2} B _ {0} ^ {2}}{\delta^ {2}}. +$$ + +Hence, using Theorem 13 with $\mathbf{g}_t = \mathbf{o}_t$ and $\mathbf{y} = \hat{\mathbf{u}}_*$ , we see that + +$$ +\begin{array}{l} \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \beta \langle \nabla (\mathcal {W} (f _ {t})) ^ {\delta \Sigma_ {t}} (\mathbf {x} _ {t}), \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \rangle \right] = \beta \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \langle \mathbb {E} [ \mathbf {o} _ {t} | \mathbf {x} _ {t} ], \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \rangle \right] \\ = \beta \sum_ {t = 1} ^ {T} \mathbb {E} \left[ \mathbb {E} \left[ \left\langle \mathbf {o} _ {t}, \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \right\rangle \mid \mathbf {x} _ {t} \right] \right] \\ = \beta \mathbb {E} \left[ \sum_ {t = 1} ^ {T} \langle \mathbf {o} _ {t}, \hat {\mathbf {u}} _ {*} - \mathbf {x} _ {t} \rangle \right] \\ \leq \beta \mathbb {E} \left[ \eta \sum_ {t = 1} ^ {T} \| \mathbf {o} _ {t} \| _ {\Phi , \mathbf {x} _ {t}, *} ^ {2} + \frac {\Phi (\hat {\mathbf {u}} _ {*}) - \Phi (\mathbf {x} _ {1})}{\eta} \right] \\ \leq \beta \eta \sum_ {t = 1} ^ {T} \frac {d ^ {2} B _ {0} ^ {2}}{\delta^ {2}} + \beta \frac {\Phi (\hat {\mathbf {u}} _ {*}) - \Phi (\mathbf {x} _ {1})}{\eta} \\ \leq \frac {\beta \eta d ^ {2} B _ {0} ^ {2} T}{\delta^ {2}} + \frac {\beta \nu \log \left(\frac {1}{1 - (1 + \gamma) ^ {- 1}}\right)}{\eta}, \\ \end{array} +$$ + +where we used Lemma 7 in the last inequality. Plugging this into Equation 8 and using $M_2'' = M_1M_2' + M_2M_1'^2$ and $\gamma = T^{-1}$ , we see that + +$$ +\begin{array}{l} \mathcal {R} _ {\alpha , \mathcal {B}} ^ {\mathcal {W} (\mathrm {Z O - F T R L})} \leq \frac {\beta \eta d ^ {2} B _ {0} ^ {2} T}{\delta^ {2}} + \frac {\beta \nu \log \left(\frac {1}{1 - (1 + \gamma) ^ {- 1}}\right)}{\eta} \\ + \alpha M _ {1} \gamma D T + \frac {\left(\alpha M _ {2} + M _ {1} M _ {2} ^ {\prime} + M _ {2} M _ {1} ^ {\prime 2}\right) \delta^ {2} D ^ {2} T}{2} \\ = O \left(\eta \delta^ {- 2} T + \eta^ {- 1} \log T + \delta^ {2} T\right). \\ \end{array} +$$ + +# L Proof of Theorem 5 + +Proof. Note that in all three cases, $\mathcal{W}^{\mathrm{action}}$ is 1-Lipschitz and 0-smooth. Now the result for the first case follows immediately from the fact that $\mathcal{W}^{\mathrm{M}} = \mathrm{Id}$ . Also note that for any zeroth order query oracle $Q_{f}$ for a function $f\in \mathbf{F}^{\mathrm{M}0}$ and any $\mathbf{y}\in \mathcal{K}$ + +$$ +\left| \mathcal {W} ^ {\mathrm {M} 0} \left(\mathcal {Q} _ {f}\right) (\mathbf {y}) \right| = \left| z ^ {- 1} \mathcal {Q} _ {f} (z * \mathbf {y}) \right| \leq z ^ {- 1} \cdot C \| z * \mathbf {y} \| = \| \mathbf {y} \| \leq D. +$$ + +Thus the query oracle $\mathcal{W}(\mathcal{Q}_f)$ is bounded by $D$ and the assumptions of Theorem 4 are satisfied. The proof of boundedness of $\mathcal{W}^{\mathrm{NM}}(\mathcal{Q}_f)$ for any $f\in \mathbf{F}^{\mathrm{NM}}$ is similar. + +# M Stochastic Full-information To Trivial query - SFTT + +In this section, we discuss the SFTT meta-algorithm (Algorithm 4 in [Pedramfar and Aggarwal, 2024a]) which converts algorithms that require full-information feedback into algorithms that have a trivial query oracle. In particular, it converts algorithms that require zeroth-order full-information feedback into bandit algorithms. + +We say a function class $\mathbf{F}$ is closed under convex combination if for any $f_{1},\dots ,f_{k}\in \mathbf{F}$ and any $\delta_1,\dots ,\delta_k\geq 0$ with $\sum_{i}\delta_{i} = 1$ , we have $\sum_{i}\delta_{i}f_{i}\in \mathbf{F}$ . + +Theorem 14 (Theorem 7 and Remark 1 and Corollary 6 in [Pedramfar and Aggarwal, 2024a]). Let $\mathcal{A}$ be an online optimization algorithm with full-information feedback and with $K$ queries at each time-step where $\mathcal{A}^{query}$ does not depend on the observations in the current round and $\mathcal{A}' = \mathrm{SFTT}(\mathcal{A})$ . Then, for any $M_1$ -Lipschitz function class $\mathbf{F}$ that is closed under convex combination and any $B_1 \geq M_1$ , $0 < \alpha \leq 1$ and $1 \leq a \leq b \leq T$ , let $a' = \lfloor (a - 1) / L \rfloor + 1$ , $b' = \lceil b / L \rceil$ , $D = \mathrm{diam}(\mathcal{K})$ and let $\{T\}$ and $\{T / L\}$ denote the horizon of the adversary. If we also have $\mathcal{R}_{\alpha, \mathrm{Adv}_i^o (\mathbf{F}, B)}^{\mathcal{A}'}(\mathcal{K}_\star^T)[a, b] = O(BT^\eta)$ , $K = O(1)$ and $L = O(T^{\frac{1 - \eta}{2 - \eta}})$ , then + +$$ +\mathcal {R} _ {\alpha , \mathrm {A d v} _ {i} ^ {o} (\mathbf {F}, B)} ^ {\mathcal {A} ^ {\prime}} (\mathcal {K} _ {\star} ^ {T}) [ a, b ] = O \left(B T ^ {\frac {1}{2 - \eta}}\right). +$$ + +More generally, the above result holds even if the query oracles are not bounded. Specifically, what we require is that the set of query oracles to be closed under convex combinations. + +Algorithm 6: Stochastic Full-information To Trivial query - SFTT $(\mathcal{A})$ +Input: base algorithm $\mathcal{A}$ , horizon $T$ , block size $L > K$ +for $q = 1,2,\dots ,T / L$ do Let $\hat{\mathbf{x}}_q$ be the action chosen by $\mathcal{A}^{\mathrm{action}}$ Let $(\hat{\mathbf{y}}_q^i)_{i = 1}^K$ be the queries selected by $\mathcal{A}^{\mathrm{query}}$ Let $(t_{q,1},\ldots ,t_{q,L})$ be a random permutation of $\{(q - 1)L + 1,\dots ,qL\}$ for $t = (q - 1)L + 1,\ldots ,qL$ do if $t = t_{q,i}$ for some $1\le i\le K$ then Play the action $\mathbf{x}_t = \hat{\mathbf{y}}_q^i$ Return the observation to the query oracle as the response to the $i$ -th query else Play the action $\mathbf{x}_t = \hat{\mathbf{x}}_q$ end end + +# N Proof of Theorem 6 + +Proof. All three class of functions considered are closed under convex combination. Therefore we may directly apply Theorems 5 and 14 to obtain this result for the first case. + +For any sequence of functions $f_{1}, \dots, f_{k}$ and query oracles $\mathcal{Q}_{1}, \dots, \mathcal{Q}_{k}$ for these functions that are contained within a cone $\operatorname{Cone}(\mathbf{0}, C)$ and non-negative numbers $\delta_{1}, \dots, \delta_{k}$ such that $\sum_{i} \delta_{i} = 0$ , the query oracle $\overline{Q}$ that uses $\mathcal{Q}_{i}$ with probability $\delta_{i}$ is trivially a query oracle for $\sum_{i} \delta_{i} f_{i}$ that is also contained within this cone. Therefore, we may apply Theorem 14 to obtain this result for the second case as well. The proof of the last case is similar. + +# O Proof of Theorem 7 + +First we state the following simple result about OTB. + +Theorem 15 (Theorem 8 in [Pedramfar and Aggarwal, 2024a]). If $\mathcal{A}$ is an online algorithm that queries no more than $K = T^{\theta}$ times per time-step and obtains an $\alpha$ -regret bound of $O(T^{\delta})$ , then the sample complexity of $\mathrm{OTB}(\mathcal{A})$ is $\Omega(\epsilon^{-\frac{1 + \theta}{1 - \delta}})$ . + +Proof of Theorem 7. This is an immediate corollary of Theorem 5 and the guarantees for the OTB meta-algorithm stated in Theorem 15. $\square$ + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] Justification: The abstract and introduction accurately reflect the contributions and scope of the paper. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: The paper includes discussion of limitations. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: Assumptions and complete proofs are included. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [NA] + +Justification: There are no experiments. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [NA] + +Justification: There are no experiments. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/subjects/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/subjects/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [NA] + +Justification: There are no experiments. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [NA] + +Justification: There are no experiments. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. + +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [NA] + +Justification: There are no experiments. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: This paper preserves anonymity and follows the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [NA] + +Justification: The paper focuses on the technical contributions and does not include a specific discussion of broader positive or negative societal impacts. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: The paper poses no such risks as no usage of pretrained models, image generators, or scraped datasets in the paper. + +# Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [NA] + +Justification: The paper does not use the existing assets. + +# Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. + +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: The paper does not release new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: This paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: This paper does not involve research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [NA] + +Justification: The core method development in this research does not involve LLMs. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/images.zip b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..b8c4a28ef7f27b00d8b6c3b7e6583cb17fcd57a7 --- /dev/null +++ b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13f7f96a94ef387befacc311494342a545311b530b3d08a9e4b15b576852af3a +size 1189651 diff --git a/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/layout.json b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..07e8c864ea44b95260dcd1e88d8f46e7e3c31122 --- /dev/null +++ b/NeurIPS/2025/Uniform Wrappers_ Bridging Concave to Quadratizable Functions in Online Optimization/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02c2e17c82e25f18880faa08da096cc9d7fe4c6866a28eda9f8443910e491686 +size 1860171 diff --git a/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/cff66695-db2d-493c-9f7b-23583ef54603_content_list.json b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/cff66695-db2d-493c-9f7b-23583ef54603_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..a298d95bfd1d6dac69aa0d9a5acdf950b7de052f --- /dev/null +++ b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/cff66695-db2d-493c-9f7b-23583ef54603_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00eeb017e3040e42261fef8f8083e1779a355b899d0ca5771d9a21869c114f45 +size 193188 diff --git a/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/cff66695-db2d-493c-9f7b-23583ef54603_model.json b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/cff66695-db2d-493c-9f7b-23583ef54603_model.json new file mode 100644 index 0000000000000000000000000000000000000000..2ec96ed8eb29dc77afcbe2efadc37089d04576ff --- /dev/null +++ b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/cff66695-db2d-493c-9f7b-23583ef54603_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44a73357005048a87f6ff210f286c6b94741b1c10575e3ba4c5a9a7fe01806f6 +size 246144 diff --git a/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/cff66695-db2d-493c-9f7b-23583ef54603_origin.pdf b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/cff66695-db2d-493c-9f7b-23583ef54603_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..bbf4841aa712bc34ce505b0f99d83505d2b7487d --- /dev/null +++ b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/cff66695-db2d-493c-9f7b-23583ef54603_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3f437fd3a484048a16a0234ded32ab7b9e9eaee2f3e8bb37ec83ec88c9265c1 +size 4677568 diff --git a/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/full.md b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/full.md new file mode 100644 index 0000000000000000000000000000000000000000..b92d13668ca04790a60a46798bb0d1e874dcf563 --- /dev/null +++ b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/full.md @@ -0,0 +1,870 @@ +# Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting + +Nan Wang $^{1}$ , Yuantao Chen $^{1}$ , Lixing Xiao $^{1}$ , Weiqing Xiao $^{1}$ , Bohan Li $^{3,4}$ , Zhaoxi Chen $^{1}$ , Chongjie Ye $^{1}$ , Shaocong Xu $^{1}$ , Saining Zhang $^{1}$ , Ziyang Yan $^{1}$ , Pierre Merriaux $^{6}$ , Lei Lei $^{6}$ , Tianfan Xue $^{5}$ , Hao Zhao $^{1,2‡}$ + +$^{1}$ BAAI; $^{2}$ AIR, THU; $^{3}$ SJTU; $^{4}$ EIT(Ningbo); $^{5}$ CUHK; $^{6}$ LeddarTech + +![](images/0a62bbec9ab6c5c3c24592033831e582759261031eb76742b8e0f418624c4be6.jpg) +Figure 1: (a) Appearance codes rely on global affine transformations but have limited modeling capability. (b) Bilateral grids perform pixel-wise transformations, improving photometric consistency but are challenging to optimize. (c) The proposed multi-scale bilateral grid unifies appearance codes and bilateral grids, enabling patch-wise transformations. + +# Abstract + +Neural rendering techniques, including NeRF and Gaussian Splatting (GS), rely on photometric consistency to produce high-quality reconstructions. However, in real-world driving scenarios, it is challenging to guarantee perfect photometric consistency in acquired images. Appearance codes have been widely used to address this issue, but their modeling capability is limited, as a single code is applied to the entire image. Recently, the bilateral grid was introduced to perform pixel-wise color mapping, but it is difficult to optimize and constrain effectively. In this paper, we propose a novel multi-scale bilateral grid that unifies appearance codes and bilateral grids. We demonstrate that this approach significantly improves geometric accuracy in dynamic, decoupled autonomous driving scene reconstruction, outperforming both appearance codes and bilateral grids. This is crucial for autonomous driving, where accurate geometry is important for obstacle avoidance and control. Our method shows strong results across four datasets: Waymo, NuScenes, Argoverse, and PandaSet. We further demonstrate that the improvement in geometry is driven by the multi-scale bilateral grid, which effectively reduces floaters caused by photometric inconsistency. Our code is open-sourced at https://bigcileng.github.io/bilateral-driving. + +# 1 Introduction + +Neural rendering techniques, such as NeRFs [24, 37, 54, 20, 55] and Gaussian Splitting (GS) [14, 2, 6, 57, 29, 53, 28], have demonstrated significant potential in producing high-quality 3D reconstructions by leveraging photometric consistency. However, ensuring photometric consistency across images in real-world scenarios remains a challenge, as lighting conditions, viewpoints, and camera settings can vary considerably [23, 56, 15, 36, 8]. In autonomous driving applications [46, 41, 35, 5, 17, 13, 34], these challenges are amplified due to the presence of multiple cameras capturing the same scene from different angles over time. As illustrated in the left half of Teaser. 1, we observe that these variations—whether temporal (across different time steps) or inter-camera (across different viewpoints)—can introduce significant discrepancies in image appearance. These inconsistencies pose difficulties in accurately reconstructing dynamic driving environments. + +To address this issue, appearance codes [35, 23, 5] have been introduced to encode per-image information and assist in correcting the photometric discrepancies. These codes, while effective, have limitations in modeling capability since they apply a single transformation across the entire image, often neglecting local variations that may occur in complex scenes. For example, in dynamic scenes, such as those encountered in autonomous driving environments, lighting and viewpoints can change across different camera angles and time frames. As shown in the right top of Teaser. 1, a global affine transformation based on a single appearance code may not be sufficient to handle such variations (In Teaser. 1 NuScenes (a), the fence is blurred). + +Recent advancements [38, 10] have introduced bilateral grids to perform pixel-wise transformations, enabling improved photometric consistency by allowing more localized adjustments. However, these grids face significant challenges in optimization, as they require complex constraints to avoid instability during training (As shown in Teaser. 1 (b), bilateral grids fail to effectively optimize the reconstruction of large, complex scenes.). In this work, we propose a novel solution—a multiscale bilateral grid—integrating the strengths of appearance codes and bilateral grids. As shown in Teaser. 1, this new approach allows for patch-wise transformations. Interestingly, in extreme cases, the multi-scale bilateral grid naturally converges to either the bilateral grid or appearance code, depending on the scale. At the finest scale, the multi-scale grid behaves like a traditional bilateral grid, performing pixel-wise transformations to adjust for local variations. In contrast, at the coarsest scale, it effectively reverts to a more global transformation, resembling the behavior of appearance codes. This flexible, scale-dependent approach offers the best of both worlds, providing localized fine-tuning where necessary, while maintaining global consistency when appropriate. + +We demonstrate that the multi-scale bilateral grid significantly enhances the geometric accuracy of dynamic, decoupled driving scenes, which is essential for autonomous driving applications where precise geometry plays a crucial role in tasks like obstacle avoidance and path planning. This is evidenced by our evaluation on multiple widely used datasets, including Waymo [30], NuScenes [1], Argoverse [40], and PandaSet [42]. The corresponding Chamfer Distance (CD) values, displayed in the Teaser. 1, highlight a marked reduction in error and improvement in reconstruction quality. Additionally, our method reduces photometric inconsistency, mitigating the appearance of floaters and enhancing the overall realism of the scene. + +The contributions of this paper are as follows: First, we introduce a novel multi-scale bilateral grid that unifies appearance codes and bilateral grids, transitioning to either of the two paradigms in extreme cases, thus enhancing both modeling capability and optimization efficiency. Second, we show that by addressing photometric inconsistencies, it improves the geometric accuracy of dynamic, decoupled driving scene reconstructions. Third, we provide extensive benchmarking across four widely used datasets—Waymo, NuScenes, Argoverse, and PandaSet—where our method outperforms previous approaches, showcasing notable improvements in both qualitative and quantitative results. + +# 2 Related Works + +# 2.1 Bilateral Grids and Appearance Codes + +Recent advancements in bilateral grids and appearance codes have significantly influenced techniques for addressing photometric inconsistencies, which are particularly critical in dynamic environments such as autonomous driving. The bilateral grids, first introduced for real-time edge-aware image processing [4], enable efficient manipulation of spatial and intensity variations, forming the foundation + +![](images/76712b84aa6c117663d60c33f592d045860ca0146fda6ceb2ba954820d27321b.jpg) +Figure 2: Overview of our method. We unify appearance codes with multi-scale bilateral grids. Initially, a coarse rendering is obtained from a Gaussian scene graph. This rendered image is then processed by our multi-scale bilateral grids to perform detailed per-pixel color modeling, guided by a luminance-based map through slice and fusion operations. + +for many modern techniques [10, 22, 3, 44, 58]. Extensions like deep bilateral learning [10] further enhance this framework by predicting local affine transformations in bilateral space, achieving real-time image enhancement on resource-constrained devices. Similarly, bilateral-guided upsampling [3] and cost volume refinement [44] have proven effective in tasks ranging from high-dynamic-range imaging to stereo matching, demonstrating the versatility of bilateral representations. In the context of neural rendering, methods such as NeRF [31, 12, 23] and Gaussian Splatting (GS) [56, 15] have achieved groundbreaking results in novel view synthesis but photometric inconsistency caused by varying illumination or transient occluders [23, 56] remains a challenge. Techniques like bilateral guided radiance field processing [38] address these issues by disentangling camera-specific enhancements and reapplying them consistently in 3D space. WildGaussians [15] integrates DINO-based appearance codes into 3D GS to robustly handle occlusions and dynamic lighting in uncontrolled scenes. Cross-Ray NeRF [52] employs cross-ray feature covariance and grid-based transient masking to harmonize appearance variations and suppress occlusions in unconstrained image collections. Despite these strides, existing approaches often struggle to balance global consistency with localized adaptability. For instance, while appearance codes provide global adjustments, they lack the granularity to model fine-grained variations [7]. Conversely, bilateral grids excel at pixel-wise transformations but are challenging to optimize effectively [27]. To address this issue, we introduce a multi-scale bilateral grid which unifies bilateral grids and appearance codes, facilitating high-quality dynamic autonomous driving scene reconstruction with enhanced modeling capability and optimization efficiency. + +# 2.2 Autonomous Driving Simulation + +Autonomous driving simulation has emerged as a critical tool for developing perception, planning, and control systems by generating diverse, realistic driving scenarios [41, 26, 45, 19, 33, 17, 47, 9]. Recent advancements focus on photorealistic rendering, dynamic scene modeling, and multi-modal sensor simulation [41, 16, 60, 35, 45, 51, 50, 43]. For instance, MARS [41] employs a modular NeRF-based framework to independently control static and dynamic scene elements, while Street Gaussian [45] achieves real-time urban scene rendering using explicit 3D Gaussian representations. DrivingGaussian [60] enhances dynamic scene reconstruction via composite Gaussian Splatting, ensuring occlusion accuracy and multi-camera consistency. NeuRAD [35] integrates sensor-specific effects (e.g., rolling shutter, LiDAR beam divergence) to improve novel view synthesis. Holistic scene understanding and editing have also seen progress. HUGS [59] combines static and dynamic 3D Gaussians for real-time semantic parsing. ChatSim [39] enables language-driven scene editing with external asset integration. LiDAR data integration has advanced through methods like LiDAR-NeRF [32], which uses structural regularization for low-texture regions. HO-Gaussian [18] merges grid-based volumes with Gaussian Splatting to eliminate Structure-from-Motion dependencies. + +Despite progress, gaps persist between simulated and real-world data [19, 33, 49, 48]. AlignMiF [33] addresses LiDAR-camera misalignments via geometry-aligned implicit fields, while RodUS [25] decomposes urban scenes into static and dynamic components using 4D semantics to reduce artifacts. Innovations in large-scale generation include InfiniCube [21], which leverages sparse-voxel representations for unbounded dynamic scenes, and Omnire [5], which reconstructs diverse dynamic objects (e.g., pedestrians) for human-vehicle interaction simulations. Furthermore, recent works like GaussianPro [6] and SplatAD [11] explore to refine 3D GS for real-time rendering of dynamic scenes. GaussianPro [6] introduces progressive propagation for texture-less surfaces, and SplatAD [11] models sensor-specific phenomena (e.g., rolling shutter, LiDAR intensity). In this work, we aim to reconstruct high-quality driving scenes by unifying appearance codes and bilateral grids to enhance photometric consistency and modeling capability. + +# 3 Methodology + +# 3.1 Problem Formulation + +We aim to reconstruct a 3D scene representation $\mathbb{G}$ from multi-view images and LiDAR depth maps, commonly available in autonomous driving datasets. Given a set of images $\{I_{c,t}\}$ and corresponding depths $\{D_{c,t}\}$ captured by $N$ cameras over $T$ time steps, we formulate our objective as minimizing the discrepancy between rendered and observed images and depths: + +$$ +\min _ {\mathbb {G}} \sum_ {c, t} \left(\left\| I _ {c, t} ^ {r} - I _ {c, t} \right\| _ {2} ^ {2} + \lambda_ {D} \left\| D _ {c, t} ^ {r} - D _ {c, t} \right\| _ {2} ^ {2}\right), \tag {1} +$$ + +where $I_{c,t}^{r}$ and $D_{c,t}^{r}$ are the rendered appearance and geometry of the scene $\mathbb{G}$ from camera $c$ at time $t$ , and $\lambda_{D}$ is a weight balancing the depth term. + +However, dynamic driving scenes and varying camera properties cause inconsistent appearances, leading to geometric and texture artifacts. To address inconsistency, we decompose each image $I_{c,t}$ into consistent $\mathcal{C}_{c,t}$ (e.g., intrinsic scene colors and constant sensor adjustments like normalization exposure), and non-consistent $\mathcal{N}_{c,t}$ (e.g., components-varying lighting conditions, different camera settings and diverse image ISP effects): + +$$ +I _ {c, t} = \mathcal {C} _ {c, t} + \mathcal {N} _ {c, t}, \tag {2} +$$ + +We model $\mathcal{N}_{c,t}$ as a non-linear transformation $\mathcal{F}(\mathcal{C}_{c,t})$ . Substituting into Eq. (2): + +$$ +I _ {c, t} = \mathcal {C} _ {c, t} + \mathcal {F} \left(\mathcal {C} _ {c, t}\right) , \tag {3} +$$ + +Let $\mathcal{E}(\mathcal{C}_{c,t}) = \mathcal{C}_{c,t} + \mathcal{F}(\mathcal{C}_{c,t})$ , we can reformulate the optimization objective in Eq. (1) as: + +$$ +\min _ {\mathbb {G}} \sum_ {c, t} \left(\left\| \mathcal {E} \left(\mathcal {C} _ {c, t} ^ {r}\right) - I _ {c, t} \right\| _ {2} ^ {2} + \lambda_ {D} \left\| D _ {c, t} ^ {r} - D _ {c, t} \right\| _ {2} ^ {2}\right), \tag {4} +$$ + +This reformulation links photometric and geometric consistency optimization within a joint objective, guiding $\mathcal{C}_{c,t}^{r}$ adjustments by geometric constraints $(D_{c,t}^{r})$ . This mitigates texture-geometry ambiguities (e.g., shadows on road surfaces misinterpretable as geometry changes). $\mathcal{F}(\mathcal{C}_{c,t})$ models transient appearance, while $\mathcal{C}_{c,t}^{r}$ enforces consistent scene properties. Experiments (Sec. 4, Tab. 1) show this joint optimization reduces both photometric error and geometric drift in comparison to baselines. + +# 3.2 Gaussian Splitting for Autonomous Driving Environments + +Following prior methodologies [5, 35], we represent autonomous driving environments using a hybrid scene graph, decomposing the scene into sky, background, and dynamic object models. Each dynamic object is represented by a 3D model in canonical space and transformed to the scene with an associated sequence of SE(3) transformations. We derive the transformation matrixes from existing object detection pipelines or ground-truth annotations. + +For the sky, we use an environment map to model sky color based on viewing direction, while static background is represented as a set of semi-transparent 3D Gaussians. Each Gaussian is characterized by a learnable opacity parameter $o \in (0,1)$ , a mean position $\mu \in \mathbb{R}^3$ , and an anisotropic covariance matrix $\Sigma \in \mathbb{R}^{3\times 3}$ which is parameterized by a scale vector $S \in \mathbb{R}^3$ and a rotation quaternion $q \in \mathbb{R}^4$ . Additionally, Spherical harmonics coefficients $c \in \mathbb{R}^F$ are used to model appearance. + +For the moving object models, we further distinguish between non-deformable (e.g., vehicles) and deformable objects (e.g., pedestrians). Non-deformable objects $\{\mathbb{G}_i^N | i \in \{1, \dots, n_n\}\}$ are optimized in their local coordinate space and transformed into the global world space via their pose $T$ : + +$$ +\mathbb {G} _ {i} ^ {N} = T \otimes \hat {\mathbb {G}} _ {i} ^ {N}, \tag {5} +$$ + +For deformable objects $\{\mathbb{G}_i^D | i \in \{1, \dots, n_d\}\}$ , we employ a deformation network $\mathcal{F}_{\Phi}$ (parameterized by $\Phi$ ) to adapt the Gaussian representation based on latent variable $e$ and time $t$ : + +$$ +\mathbb {G} _ {i} ^ {D} = T \otimes \left(\hat {\mathbb {G}} _ {i} ^ {D} \oplus \mathcal {F} _ {\Phi} \left(\hat {\mathbb {G}} _ {i} ^ {D}, e, t\right)\right). \tag {6} +$$ + +# 3.3 Multi-Scale Bilateral Grid for Appearance Enhancement + +Solving the photometric correction problem formulated in Eq. (4) fundamentally depends on the ability to effectively model the complex and spatially-varying photometric transformations present in real-world driving scenes. The function $\mathcal{E}(\cdot)$ in our formulation represents this crucial photometric enhancement process. To address this, we propose the Multi-Scale Bilateral Grid architecture, detailed in this section, as a novel grounded solution for approximating $\mathcal{E}(\cdot)$ and achieving high-quality, consistent appearance enhancement. + +# 3.3.1 Multi-Scale Bilateral Grid Architecture + +To address limitations of existing methods in handling diverse photometric variations in driving scenes, we propose a multi-scale bilateral grid framework. Our framework achieves this unification by employing a hierarchical pyramid of bilateral grids, organized across multiple scales. This multi-scale design is directly inspired by the nature of photometric inconsistencies in real-world environments, which range from global scene-level changes to highly localized variations (e.g., from overall lighting shifts to fine texture-level shadows). By utilizing this grid hierarchy, our framework aims to capture and effectively correct photometric variations at their corresponding scales, thus enabling a more comprehensive and spatially adaptable photometric correction. + +The multi-scale bilateral grid transformation can be formulated as $I^{e} = \bar{A}\odot I^{r}$ , where $\bar{A}$ represents a composite, scale-dependent photometric transformation. Crucially, this composite transformation is constructed hierarchically, combining transformations learned by individual bilateral grids at different scales, progressing from coarse to fine. This staged composition is key to achieving scale-dependent adaptation to photometric inconsistencies and allows us to move beyond the inherent limitations of single-scale methods. Further details are provided in the subsequent sections. + +Our framework achieves this hierarchical representation using a three-level bilateral grid pyramid (Fig. 2): (1) Coarse Level $(2 \times 2 \times 1 \times 12$ grid) captures global scene structure and approximate global appearance codes; (2) Intermediate Level $(4 \times 4 \times 2 \times 12$ grid) represents regional features and capture mid-range photometric variations; (3) Fine Level $(8 \times 8 \times 4 \times 12$ grid) encodes local details and approximate pixel-wise bilateral grids within the multi-scale framework. + +At each level $l$ , the grid tensor is defined as $\mathcal{A}^{(l)} \in \mathbb{R}^{H^{(l)} \times W^{(l)} \times D^{(l)} \times C^{(l)}}$ , where Spatial Dimension $(H^{(l)}, W^{(l)})$ represents spatial resolution (height, width) at level $l$ , Guidance Dimension $D^{(l)}$ specifies the guidance intensity levels at level $l$ and Coefficient Channel $C = 12$ represents a flattened $3 \times 4$ affine color transformation matrix. + +# 3.3.2 Guidance Map, Slice Operation, and Multi-Scale Fusion + +To achieve adaptive and spatially-varying photometric correction, our multi-scale bilateral grid framework employs a guidance map and a slicing operation [4] to retrieve localized transformations, followed by a hierarchical fusion strategy to combine transformations across scales. + +We first derive a luminance-based guidance map $I^{g}(u,v) = \mathrm{GrayScale}(I^{r}(u,v))$ from the rendered image $I^{r}(u,v)$ , following the approach of [4, 38, 10]. This map encodes spatial brightness variations like shadows and highlights, serving as a spatially-varying query to our multi-scale grid. For each level $l$ and pixel $(u,v)$ , the luminance $d$ from $I^{g}$ is used to perform a slicing operation, querying the grid's intensity dimension $D^{(l)}$ to locate an intensity bin. Affine transformation coefficients $\mathcal{A}_{i,j,k}^{(l)}$ around this bin are then combined via trilinear interpolation for a level-specific transformation + +$\bar{A}^{(l)}(u,v)$ . The slicing operation retrieves per-pixel transformations from each grid level, written as: + +$$ +\bar {A} ^ {(l)} (u, v) = \sum_ {i, j, k} w _ {i, j, k} (u, v, d) \mathcal {A} ^ {(l)} (i, j, k), \tag {7} +$$ + +To efficiently fuse transformations across scales, we utilize hierarchical function composition. A naive approach of full-resolution slicing at each scale is computationally expensive and redundant due to local photometric coherence. To address this, we employ downsampled guidance maps $I^{g(l)}$ for each scale $l$ , performing slicing to obtain low-resolution coefficient fields, which are then upsampled. This approach explicitly links scale-aware guidance to patch operations-the reduced-resolution maps enable efficient spatial aggregation of photometric transformations while enhances efficiency (See ablation study in Tab. 5). The level-specific transformations $\mathcal{T}^{(l)}$ , decomposed into linear matrices $\bar{M}^{(l)}$ and translations $\bar{T}^{(l)}$ , are then sequentially composed from coarse to fine to produce the final composite transformation $\bar{A}$ . The refined image $I^{e}(u,v)$ is obtained by applying $\bar{A}(u,v)$ to $I^{r}(u,v)$ , with the fusion process expressed as: + +$$ +I ^ {e} = \mathcal {T} ^ {(L - 1)} \circ \mathcal {T} ^ {(L - 2)} \circ \dots \circ \mathcal {T} ^ {(0)} (I ^ {r}), \tag {8} +$$ + +This hierarchical fusion decomposes the photometric transformation into scale-dependent residual refinements. Coarse scales capture global transformations, intermediate scales refine regional variations, and fine scales address local details (Further elaboration in Sec. 4.3). Further details on the interpolation kernel and computational efficiency considerations are provided in Appendix A1.1. + +Table 1: Ablation studies and comparisons on four large-scale driving datasets. Our proposed method consistently outperforms OmniRe across all metrics and datasets. w/AC denotes appearance codes; w/BG denotes single bilateral grids (size of $16 \times 16 \times 8$ ). + +
DatasetMethodReconstructionNovel View SynthesisGeometry
PSNR ↑SSIM ↑LPIPS ↓PSNR ↑SSIM ↑LPIPS ↓CD ↓RMSE ↓Depth ↓
WaymoOmniRe28.920.8330.29526.400.7610.3111.4822.7850.540
OmniRe w/AC28.950.8350.29326.440.7590.3151.3782.7600.519
OmniRe w/BG28.190.8310.29221.510.7430.3331.5232.7980.492
Ours29.230.8360.28926.550.7620.3100.9892.7440.477
NuScenesOmniRe26.370.8370.20923.740.7330.2321.4583.4200.110
OmniRe w/AC26.380.8400.20423.740.7320.2291.4373.4150.106
OmniRe w/BG25.980.8370.20923.600.7050.2621.3803.3900.097
Ours27.690.8470.19324.640.7390.2161.1613.3400.059
ArgoverseOmniRe24.590.8480.20222.530.7550.2200.9544.2080.050
OmniRe w/AC24.580.8480.20122.510.7560.2190.9594.2150.051
OmniRe w/BG23.310.8420.21621.700.7250.2540.9014.2180.049
Ours24.680.8490.20022.580.7560.2170.8074.1990.040
PandasetOmniRe30.200.9030.21927.490.8350.2400.5032.8740.018
OmniRe w/AC30.200.9030.22027.510.8410.2420.4962.8710.020
OmniRe w/BG29.730.9040.22027.380.8300.2460.4842.8670.013
Ours30.750.9060.21327.890.8470.2350.4532.8520.011
+ +# 4 Experiments + +# 4.1 Experimental Setup + +Datasets. We evaluate on four autonomous driving datasets: Waymo [30], NuScenes [1], Argov- verse [40], and PandaSet [42], selected for their diversity in sensor configurations (LiDAR, camera specifications), environmental conditions (lighting, seasons), and geographic locations. Identical model hyperparameters are used across all datasets to test generalization capability. Technical specifications including camera counts and ego-vehicle view cropping details are provided in Appendix A2. + +Baseline. Our focus is on modeling appearance variance across viewpoints, we build upon the opensource works DriveStudio [5], ChatSim [39], StreetGS [45] and test three approaches: appearance codes, standalone bilateral grids, and our multi-scale bilateral grids. This allows for direct comparison of how each method handles photometric inconsistencies across viewpoints. + +Implementation details. We evaluate our method on many autonomous driving datasets to demonstrate its robustness. For each dataset, We train all the methods on a single NVIDIA L40 GPU and + +Table 2: Comparison with different baseline approaches for scene reconstruction. Performance is reported as the average over the nuScenes [1] scenarios. + +
MethodReconstructionNovel View SynthesisGeometry
PSNR ↑SSIM ↑LPIPS ↓PSNR ↑SSIM ↑LPIPS ↓CD ↓RMSE ↓Depth ↓
ChatSim [39]25.100.8050.25223.270.7250.2701.5573.5090.106
ChatSim (Ours)27.040.8190.23124.670.7350.2491.2363.4120.053
StreetGS [45]25.740.8220.24023.640.7360.2591.6043.5440.107
StreetGS (Ours)27.900.8360.21925.100.7470.2381.2723.4580.055
+ +compare the 3D reconstruction and novel view synthesis (NVS) results between camera and LiDAR data. Additionally, we ablate key components of our method and quantify their impact on both appearance and geometry quality. + +# Training and Dynamic Rendering. + +1) Training. To optimize our multi-scale Gaussian scene representation, we employ a joint training strategy that minimizes a composite reconstruction loss: + +$$ +\mathcal {L} _ {\text {r e c o n}} = \lambda_ {r} \mathcal {L} _ {1} + \lambda_ {s} \mathcal {L} _ {\mathrm {S S I M}} + \lambda_ {d} \mathcal {L} _ {d} + \lambda_ {o} \mathcal {L} _ {o}, \tag {9} +$$ + +Furthermore, we introduce two regularization terms to enhance image fidelity: Adaptive Total Variation Regularization. This term encourages smoothness and reduces noise while preserving image details, and Circle Regularization Loss. This loss applies inverse transformation to the ground-truth images, preventing discrepancies and image quality degradation. As visually demonstrated in Fig. 5, these terms effectively improve image fidelity. Detailed are provided in Appendix A1. + +2) Rendering. For dynamic rendering using our multi-scale bilateral grid framework, we employ a specific interpolation strategy when encountering novel test images, especially those simulating dynamic ISP conditions. We first conducts a temporal proximity search to identify the most relevant grids. Following this, we perform scale-specific interpolation using the two nearest grids found. + +Table 3: Evaluation on Challenging Scene Subsets. Results on systematically selected extreme cases. Our method shows substantially improvements when photometric inconsistencies are severe. + +
Scene TypeMethodReconstructionNovel View SynthesisGeometry
PSNR ↑SSIM ↑LPIPS ↓PSNR ↑SSIM ↑LPIPS ↓CD ↓RMSE ↓Depth ↓
Challenging Scenes (18 scenes)OmniRe26.840.8470.23924.460.7580.2630.6503.1760.063
Ours28.130.8560.22325.170.7630.2500.5233.1200.023
Night Scenes (4 scenes)OmniRe28.340.8050.33826.540.7530.3600.5862.7670.041
Ours29.130.8120.33027.210.7620.3490.5002.7310.016
Sun Flare Scenes (5 scenes)OmniRe26.680.8660.19524.980.7960.2120.7813.0730.079
Ours28.650.8790.17325.840.8030.1920.5932.9940.022
+ +# 4.2 Quantitative Evaluation + +Reconstruction and Geometric Quality. We present a comprehensive quantitative analysis in Tab. 1, comparing our full model against the OmniRe and its variants with appearance codes (w/AC) and a single bilateral grid (w/BG). Our method consistently sets a new state-of-the-art across all four datasets in both appearance and, most critically, geometric metrics. + +In terms of appearance fidelity, our model achieves the highest PSNR and SSIM scores. For example, on NuScenes, our method reaches a PSNR of 27.69, a significant jump from 26.37 (OmniRe) and 26.38 (OmniRe w/AC). This demonstrates the superior ability of the multi-scale grid to model complex photometric variations. + +However, the most striking result is the substantial improvement in geometric accuracy. Our method drastically reduces the Chamfer Distance, a key indicator of geometric fidelity. On the Waymo dataset, our model hits a CD of 0.989, outperforming the best baseline (OmniRe w/AC, 1.378) by a remarkable $28.2\%$ . This trend holds across all datasets, with significant reductions in Chamfer Distance (CD), Root Mean Squared Error (RMSE), and Median Squared Depth Error (Depth). This result provides strong evidence for our central hypothesis: by accurately resolving photometric ambiguities, our multi-scale approach effectively eliminates geometric artifacts like "floaters" and + +![](images/c11051e2c15525cb4d28ef5dae6006ec4ce7dace953faab0791dd5e213f1b18f.jpg) +(a) Specular highlights + +![](images/a9ae0a2455645557411ae0097e1c0057e2818c06f529c2f0597b75b77b5e498c.jpg) +(b) Motion Blur +Ground Truth +Baseline + Ours + +![](images/f6d2c71469d43be4f5ca7106c28c2ffbba404ddcbc87772c10b1643daca5879d.jpg) +(c) Incomplete Geometry +(d) Duplication Artifacts + +![](images/3090bcb033a5afbd2dced199736a8d35caf58c6f0f424edf0e3f2a533951645d.jpg) + +![](images/7ab706385d81b67f181e366a7f36b422e6529673510adf5db00f840a26cbb1cf.jpg) +(e) Low-Light +Ground Truth +Baseline + Ours +Baseline + +![](images/1c6677be190f909cc09092bf55ee25f4da998fa87755e7bbccee455d79f797b5.jpg) +Figure 3: Our Method vs. Baseline Methods on Waymo, NuScenes, Argoverse, and PandaSet. +Figure 4: Our proposed framework (c) outperforms appearance codes (a) and single bilateral grids (b) by simultaneously addressing optimization challenges and enhancing geometric modeling. This delivers significant geometric accuracy improvements (lower Chamfer Distance (CD) via multi-scale bilateral grid, reducing error and improving reconstruction) and reduced photometric inconsistency (fewer floaters) in dynamic, decoupled driving scenes. Yellow indicates a high lidar error, while Purple indicates a low lidar error. + +produces a much cleaner, more accurate 3D reconstruction. The single bilateral grid (w/BG), despite its high expressiveness, often fails to converge and even degrades performance, highlighting the optimization challenges that our multi-scale, coarse-to-fine framework successfully overcomes. + +NVS. As shown in Tab. 1, our model's superior reconstruction quality translates directly to improved NVS. Our method consistently outperforms all baselines in NVS metrics across the four datasets. For instance, on PandaSet, we achieve a PSNR of 27.89, surpassing the next best (OmniRe w/AC at 27.51). This indicates that the cleaner geometry and more consistent appearance learned by our model generalize better to unseen viewpoints, producing higher-fidelity renderings. + +Generalization to Other Methods. To demonstrate the broad applicability of our approach, we integrated our multi-scale bilateral grid into two other state-of-the-art methods, ChatSim [39] and StreetGS [45]. The results on NuScenes, presented in Tab. 2, are compelling. Our module brings substantial gains to both frameworks. For StreetGS, incorporating our method boosts the reconstruction PSNR from 25.74 to 27.90 and slashes the Chamfer Distance from 1.604 to 1.272. These significant improvements underscore that our multi-scale grid is not just a bespoke enhancement for one architecture but a generalizable and powerful module for improving photometric and geometric consistency in Gaussian Splitting-based scene reconstruction. + +Performance on Challenging Scenarios. To validate robustness, we curated a subset of 18 challenging scenarios with extreme photometric inconsistencies. As shown in Table 3, our method's advantages are substantially more pronounced here than on the standard datasets. Across this entire + +subset, our model achieves a $+1.29$ dB PSNR gain. This improvement is even more significant in specific difficult sub-categories; for instance, in "Sun Flare Scenes," the gain reaches $+1.97$ dB. This demonstrates our model's strong effectiveness in resolving severe, real-world edge cases. + +# 4.3 Qualitative Evaluation + +**Rendering Results.** Fig. 3 and Fig. 4 present visualization results of our method on scenes from Waymo [30], NuScenes [1], Argoverse [40], and PandaSet [42], demonstrating its capability to handle diverse conditions that might otherwise lead to inconsistencies. + +![](images/1ca10d8b5b2a63d92e666af4be96e36440afbab0bc5e7c457149af69432f34aa.jpg) +w/ Circle Regularization Loss + +![](images/931774a9e9cefe0cfbe147d7bdc300e10b57446d55f19dbe5a00c5d9db76c53f.jpg) +w/o Circle Regularization Loss + +![](images/8746bbaad485db1a0a35f439d59e1c49b2e7f9c907fc2b091d91b27346fcc0d2.jpg) +w/ Adaptive TV Loss + +![](images/353fc7ebcc6307334d8402016b337f87d489a09b64a6e366d229c8e26efe821d.jpg) +w/o Adaptive TV Loss + +![](images/59ad8f55eb206094fdd69322cb35c0584107986fdfa900776187a0223a600dfa.jpg) +Figure 5: Visualizations of ablations on Circle Regularization loss and Adaptive TV loss. + +![](images/54c1bcff1cf990e77b43338eec65b0bab89bd46d2a8982fa48662dc6b59abb48.jpg) +Figure 6: Visualization of Affine Transformations and Distributions. The first three rows display the affine transformation and corresponding distributions when applying the first level, the first two levels, and all three levels of our multi-scale approach. The final row compares these to results from a single bilateral grid, demonstrating that the multi-scale bilateral grid achieves a coarse-to-fine, smooth image enhancement with more diverse processing capabilities. + +![](images/7fad4b11df2edf5db9d381038e6a5f68e9636a17766c70a9c5c04b7b2fa31780.jpg) + +![](images/bb12bdfdcdff93c8e4f1eb90781308be81bca6ea49a653b332b618918c5f8808.jpg) + +![](images/27bd43f07de977df9a5986b6447b7f135c68fbbb8ad5806aff85e47b04992b11.jpg) + +![](images/a30aeb09f1641e5d2b7f5ad6e40f4cec576d4a04dcfab083dde7fb71ad027b7a.jpg) + +![](images/7ce94f7b5adca4d1462a44b5ba3540258913cd28764fa62b5509fc0a7f421751.jpg) + +![](images/c47411229b3a4084f6f25df0c39f04ca5171851b6b95455e34a04e48253785bf.jpg) + +# Analysis of Learned Affine + +Transformations. To gain deeper insight into how our model functions, we analyze the distribution of the learned affine transformations in Fig. 6. The histograms for the original single-scale bilateral grid (BG) exhibit a distinct bi-modal, peaky + +
ConfigurationGrid Params (M)Training Time (h)Testing time (FPS)
OmniRe w/AC0.0721.9353
OmniRe w/BG27.8432.8554 / 38†
Ours3.9692.1054 / 42†
+ +Table 4: Computational Efficiency Analysis. † denotes rendering with bilateral grid processing active. + +distribution for each viewpoint. This suggests that the single grid learns a limited set of dominant photometric corrections for each view, struggling to capture the full spectrum of variations. In stark contrast, the aggregated histogram from our multi-scale grid (across all levels and viewpoints) is significantly flatter and more dispersed. This is a direct visualization of our framework's core strength. The coarse-level grid first establishes a view-dependent baseline appearance, capturing the dominant global photometric shift (interestingly, its own histogram is also peaky, but varies across views). Then, the medium and fine grids learn residual transformations in a coarse-to-fine manner, + +correcting the errors from the preceding levels. This hierarchical, residual refinement process allows the model to represent a much broader and more diverse range of photometric transformations. The flatter histogram is empirical evidence of this enhanced representational power, which is crucial for achieving consistent, high-quality renderings across the diverse and challenging views encountered in autonomous driving. + +# 4.4 Ablation Studies + +As shown in Tab. 4, Tab. 5 and Fig. 5, we systematically evaluate component contributions through: + +Guidance Map Resolution. We test different downsampling factors for the guidance map at each grid level. The results in Tab. 5(a) show that a moderate downsampling of (2,2,1) from coarse to fine yields the best balance, achieving the highest NVS PSNR (24.64). Using the full resolution (1,1,1) slightly degrades performance, likely due to overfitting to noise, validating our patch-based aggregation strategy. + +Grid Size Combinations. The combination of grid sizes is crucial. As shown in Tab. 5(b), removing the coarsest grid level (e.g., using only $(4,4,2) + (8,8,4)$ ) leads to a dramatic increase in CD, highlighting the importance of the coarse grid for establishing global geometric consistency. Crucially, a baseline with only a single fine-resolution grid $(8,8,4)$ performs poorly, confirming that finer grids fail to converge without the stable, coarse-level initialization our method provides. + +
SettingsRecon.↑NVS.↑CD ↓
Full model27.6924.641.161
(a) Guidance Map Resolution
(1,1,1)27.6224.341.271
(2,2,1)27.6824.641.170
(8,8,4)27.5224.531.187
(16,16,8)27.5024.541.202
(b) Grid Size Combinations
Single Grid (8,8,4)26.5623.901.376
(4,4,2)+(8,8,4)27.4924.561.963
(2,2,1)+(8,8,4)27.5724.571.940
(2,2,1)+(4,4,2)27.3324.421.213
(c) Loss Functions
w/o circle regularization loss27.4724.521.164
w/o adaptive total variance loss27.6424.611.169
+ +Table 5: Ablations. Numbers in Guidance Map Resolution indicate downsample factors from coarse to fine level, and numbers in Grid Size Combinations indicate grid size. + +Loss Functions. Ablating our proposed regularization losses in Tab. 5(c) shows their contribution. Removing the circle regularization loss slightly degrades both reconstruction and NVS performance. The effect of the adaptive total variance loss is more subtle in metrics but visibly improves rendering quality by reducing noise, as shown in Fig. 5. + +Efficiency. As detailed in Tab. 4, our method strikes an effective balance between performance and computational cost. The single large bilateral grid (w/BG) leads to a massive parameter count (27.8M) and the longest training time (2.85h). In contrast, our multi-scale approach requires only 3.9M parameters and a modest $9\%$ increase in training time (2.10h vs. 1.93h) compared to the appearance code baseline, while delivering substantially better results. During inference, our method maintains high frame rates, demonstrating its practicality. + +# 5 Conclusion + +We introduced a novel multi-scale bilateral grid that unifies global appearance codes and pixel-wise bilateral grids into a single, hierarchical framework. Our extensive experiments demonstrate that this approach not only effectively models and corrects complex photometric inconsistencies in autonomous driving scenes but, more importantly, leads to a significant and crucial improvement in the geometric accuracy of the final reconstruction. By establishing this strong link between advanced appearance modeling and geometric fidelity, our work paves the way for more robust and reliable neural rendering systems in safety-critical, real-world applications. + +Limitations. While our method shows significant improvements, some limitations remain. (1) The computational overhead, though much lower than a single large bilateral grid, is still higher than simple appearance codes, which could be a consideration for resource-constrained scenarios. (2) Modeling extremely fast-moving or highly non-rigid objects where LiDAR and camera data misalign remains an open challenge. + +# References + +[1] Holger Caesar, Varun Bankiti, Alex H Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11621-11631, 2020. +[2] Danpeng Chen, Hai Li, Weicai Ye, Yifan Wang, Weijian Xie, Shangjin Zhai, Nan Wang, Haomin Liu, Hujun Bao, and Guofeng Zhang. Pgsr: Planar-based gaussian splatting for efficient and high-fidelity surface reconstruction. IEEE Transactions on Visualization and Computer Graphics, 2024. +[3] Jiawen Chen, Andrew Adams, Neal Wadhwa, and Samuel W Hasinoff. Bilateral guided upsampling. ACM Transactions on Graphics (TOG), 35(6):1-8, 2016. +[4] Jiawen Chen, Sylvain Paris, and Frédo Durand. Real-time edge-aware image processing with the bilateral grid. ACM Transactions on Graphics (TOG), 26(3):103-es, 2007. +[5] Ziyu Chen, Jiawei Yang, Jiahui Huang, Riccardo de Lutio, Janick Martinez Esturo, Boris Ivanovic, Or Litany, Zan Gojcic, Sanja Fidler, Marco Pavone, et al. Omnire: Omni urban scene reconstruction. arXiv preprint arXiv:2408.16760, 2024. +[6] Kai Cheng, Xiaoxiao Long, Kaizhi Yang, Yao Yao, Wei Yin, Yuexin Ma, Wenping Wang, and Xuejin Chen. Gaussianpro: 3d gaussian splattering with progressive propagation. In *Forty-first International Conference on Machine Learning*, 2024. +[7] Frédo Durand and Julie Dorsey. Fast bilateral filtering for the display of high-dynamic-range images. In Proceedings of the 29th annual conference on Computer graphics and interactive techniques, pages 257-266, 2002. +[8] Jian Gao, Chun Gu, Youtian Lin, Zhihao Li, Hao Zhu, Xun Cao, Li Zhang, and Yao Yao. Relightable 3d gaussians: Realistic point cloud relighting with brdf decomposition and ray tracing. In European Conference on Computer Vision, pages 73-89. Springer, 2024. +[9] Ruiyuan Gao, Kai Chen, Enze Xie, Lanqing Hong, Zhenguo Li, Dit-Yan Yeung, and Qiang Xu. Magicdrive: Street view generation with diverse 3d geometry control. arXiv preprint arXiv:2310.02601, 2023. +[10] Michael Gharbi, Jiawen Chen, Jonathan T Barron, Samuel W Hasinoff, and Frédo Durand. Deep bilateral learning for real-time image enhancement. ACM Transactions on Graphics (TOG), 36(4):1-12, 2017. +[11] Georg Hess, Carl Lindström, Maryam Fatemi, Christoffer Petersson, and Lennart Svensson. Splatad: Real-time lidar and camera rendering with 3d gaussian splatting for autonomous driving. arXiv preprint arXiv:2411.16816, 2024. +[12] Wonbong Jang and Lourdes Agapito. Codenerf: Disentangled neural radiance fields for object categories. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 12949-12958, 2021. +[13] Bu Jin, Yupeng Zheng, Pengfei Li, Weize Li, Yuhang Zheng, Sujie Hu, Xinyu Liu, Jinwei Zhu, Zhijie Yan, Haiyang Sun, et al. Tod3cap: Towards 3d dense captioning in outdoor scenes. In European Conference on Computer Vision, pages 367-384. Springer, 2024. +[14] Bernhard Kerbl, Georgios Kopanas, Thomas Leimkuhler, and George Drettakis. 3d gaussian splatting for real-time radiance field rendering. ACM Trans. Graph., 42(4):139-1, 2023. +[15] Jonas Kulhanek, Songyou Peng, Zuzana Kukelova, Marc Pollefeys, and Torsten Sattler. Wildgaussians: 3d gaussian splatting in the wild. arXiv preprint arXiv:2407.08447, 2024. +[16] Bohan Li, Jiajun Deng, Wenyao Zhang, Zhujin Liang, Dalong Du, Xin Jin, and Wenjun Zeng. Hierarchical temporal context learning for camera-based semantic scene completion. In European Conference on Computer Vision, pages 131-148. Springer, 2024. +[17] Bohan Li, Jiazhe Guo, Hongsi Liu, Yingshuang Zou, Yikang Ding, Xiwu Chen, Hu Zhu, Feiyang Tan, Chi Zhang, Tiancai Wang, et al. Uniscene: Unified occupancy-centric driving scene generation. arXiv preprint arXiv:2412.05435, 2024. +[18] Zhuopeng Li, Yilin Zhang, Chenming Wu, Jianke Zhu, and Liangjun Zhang. Ho-gaussian: Hybrid optimization of 3d gaussian splatting for urban scenes. In European Conference on Computer Vision, pages 19-36. Springer, 2024. + +[19] Carl Lindström, Georg Hess, Adam Lilja, Maryam Fatemi, Lars Hammarstrand, Christoffer Petersson, and Lennart Svensson. Are nerfs ready for autonomous driving? towards closing the real-to-simulation gap. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4461-4471, 2024. +[20] Junchen Liu, Wenbo Hu, Zhuo Yang, Jianteng Chen, Guoliang Wang, Xiaoxue Chen, Yantong Cai, Huan-ang Gao, and Hao Zhao. Rip-nerf: Anti-aliasing radiance fields with ripmap-encoded platonic solids. In ACM SIGGRAPH 2024 Conference Papers, pages 1–11, 2024. +[21] Yifan Lu, Xuanchi Ren, Jiawei Yang, Tianchang Shen, Zhangjie Wu, Jun Gao, Yue Wang, Siheng Chen, Mike Chen, Sanja Fidler, et al. Infincube: Unbounded and controllable dynamic 3d driving scene generation with world-guided video models. arXiv preprint arXiv:2412.03934, 2024. +[22] Nicolas Márki, Federico Perazzi, Oliver Wang, and Alexander Sorkine-Hornung. Bilateral space video segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 743-751, 2016. +[23] Ricardo Martin-Brualla, Noha Radwan, Mehdi SM Sajjadi, Jonathan T Barron, Alexey Dosovitskiy, and Daniel Duckworth. Nerf in the wild: Neural radiance fields for unconstrained photo collections. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 7210-7219, 2021. +[24] Ben Mildenhall, Pratul P Srinivasan, Matthew Tancik, Jonathan T Barron, Ravi Ramamoorthi, and Ren Ng. Nerf: Representing scenes as neural radiance fields for view synthesis. Communications of the ACM, 65(1):99-106, 2021. +[25] Thang-Anh-Quan Nguyen, Luis Roldão, Nathan Piasco, Moussab Bennehar, and Dzmitry Tsishkou. Rodus: Robust decomposition of static and dynamic elements in urban scenes. In European Conference on Computer Vision, pages 112–130. Springer, 2024. +[26] James Okae, Bohan Li, Juan Du, and Yueming Hu. Robust scale-aware stereo matching network. IEEE Transactions on Artificial Intelligence, 3(2):244-253, 2021. +[27] Sylvain Paris and Frédo Durand. A fast approximation of the bilateral filter using a signal processing approach. In Computer Vision-ECCV 2006: 9th European Conference on Computer Vision, Graz, Austria, May 7-13, 2006, Proceedings, Part IV 9, pages 568-580. Springer, 2006. +[28] Yinghao Shuai, Ran Yu, Yuantao Chen, Zijian Jiang, Xiaowei Song, Nan Wang, Jv Zheng, Jianzhu Ma, Meng Yang, Zhicheng Wang, et al. Pugs: Zero-shot physical understanding with gaussian splatting. arXiv preprint arXiv:2502.12231, 2025. +[29] Xiaowei Song, Jv Zheng, Shiran Yuan, Huan-ang Gao, Jingwei Zhao, Xiang He, Weihao Gu, and Hao Zhao. Sa-gs: Scale-adaptive gaussian splatting for training-free anti-aliasing. arXiv preprint arXiv:2403.19615, 2024. +[30] Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, et al. Scalability in perception for autonomous driving: Waymo open dataset. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 2446-2454, 2020. +[31] Matthew Tancik, Vincent Casser, Xinchen Yan, Sabeek Pradhan, Ben Mildenhall, Pratul P Srinivasan, Jonathan T Barron, and Henrik Kretzschmar. Block-nerf: Scalable large scene neural view synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8248–8258, 2022. +[32] Tang Tao, Longfei Gao, Guangrun Wang, Yixing Lao, Peng Chen, Hengshuang Zhao, Dayang Hao, Xiaodan Liang, Mathieu Salzmann, and Kaicheng Yu. Lidar-nerf: Novel lidar view synthesis via neural radiance fields. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 390–398, 2024. +[33] Tang Tao, Guangrun Wang, Yixing Lao, Peng Chen, Jie Liu, Liang Lin, Kaicheng Yu, and Xiaodan Liang. Alignmif: Geometry-aligned multimodal implicit field for lidar-camera joint synthesis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 21230-21240, 2024. +[34] Beiwen Tian, Mingdao Liu, Huan-ang Gao, Pengfei Li, Hao Zhao, and Guyue Zhou. Unsupervised road anomaly detection with language anchors. In 2023 IEEE international conference on robotics and automation (ICRA), pages 7778-7785. IEEE, 2023. + +[35] Adam Tondersski, Carl Lindström, Georg Hess, William Ljungbergh, Lennart Svensson, and Christoffer Petersson. Neurad: Neural rendering for autonomous driving. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14895-14904, 2024. +[36] Nan Wang, Xiaohan Yan, Xiaowei Song, and Zhicheng Wang. Semantic-guided gaussian splatting with deferred rendering. In ICASSP 2025-2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5. IEEE, 2025. +[37] Peng Wang, Lingjie Liu, Yuan Liu, Christian Theobalt, Taku Komura, and Wenping Wang. Neus: Learning neural implicit surfaces by volume rendering for multi-view reconstruction. arXiv preprint arXiv:2106.10689, 2021. +[38] Yuehao Wang, Chaoyi Wang, Bingchen Gong, and Tianfan Xue. Bilateral guided radiance field processing. ACM Transactions on Graphics (TOG), 43(4):1-13, 2024. +[39] Yuxi Wei, Zi Wang, Yifan Lu, Chenxin Xu, Changxing Liu, Hao Zhao, Siheng Chen, and Yanfeng Wang. Editable scene simulation for autonomous driving via collaborative llm-agents. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15077-15087, 2024. +[40] Benjamin Wilson, William Qi, Tanmay Agarwal, John Lambert, Jagjeet Singh, Siddhesh Khandelwal, Bowen Pan, Ratnesh Kumar, Andrew Hartnett, Jhony Kaesemodel Pontes, et al. Argoverse 2: Next generation datasets for self-driving perception and forecasting. arXiv preprint arXiv:2301.00493, 2023. +[41] Zirui Wu, Tianyu Liu, Liyi Luo, Zhide Zhong, Jianteng Chen, Hongmin Xiao, Chao Hou, Haozhe Lou, Yuantao Chen, Runyi Yang, et al. Mars: An instance-aware, modular and realistic simulator for autonomous driving. In CAAI International Conference on Artificial Intelligence, pages 3-15. Springer, 2023. +[42] Pengchuan Xiao, Zhenlei Shao, Steven Hao, Zishuo Zhang, Xiaolin Chai, Judy Jiao, Zesong Li, Jian Wu, Kai Sun, Kun Jiang, et al. Pandaset: Advanced sensor suite dataset for autonomous driving. In 2021 IEEE international intelligent transportation systems conference (ITSC), pages 3095-3101. IEEE, 2021. +[43] Weiqing Xiao, Hao Huang, Chonghao Zhong, Yujie Lin, Nan Wang, Xiaoxue Chen, Zhaoxi Chen, Saining Zhang, Shuocheng Yang, Pierre Merriaux, et al. Simulate any radar: Attribute-controllable radar simulation via waveform parameter embedding. arXiv preprint arXiv:2506.03134, 2025. +[44] Bin Xu, Yuhua Xu, Xiaoli Yang, Wei Jia, and Yulan Guo. Bilateral grid learning for stereo matching networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12497-12506, 2021. +[45] Yunzhi Yan, Haotong Lin, Chenxu Zhou, Weijie Wang, Haiyang Sun, Kun Zhan, Xianpeng Lang, Xiaowei Zhou, and Sida Peng. Street gaussians: Modeling dynamic urban scenes with gaussian splatting. In European Conference on Computer Vision, pages 156-173. Springer, 2024. +[46] Ziyang Yan, Wenzhen Dong, Yihua Shao, Yuhang Lu, Liu Haiyang, Jingwen Liu, Haozhe Wang, Zhe Wang, Yan Wang, Fabio Remondino, et al. Renderworld: World model with self-supervised 3d label. arXiv preprint arXiv:2409.11356, 2024. +[47] Jiawei Yang, Jiahui Huang, Yuxiao Chen, Yan Wang, Boyi Li, Yurong You, Apoorva Sharma, Maximilian Igl, Peter Karkus, Danfei Xu, et al. Storm: Spatio-temporal reconstruction model for large-scale outdoor scenes. arXiv preprint arXiv:2501.00602, 2024. +[48] Xiuyu Yang, Bohan Li, Shaocong Xu, Nan Wang, Chongjie Ye, Zhaoxi Chen, Minghan Qin, Yikang Ding, Xin Jin, Hang Zhao, et al. Orv: 4d occupancy-centric robot video generation. arXiv preprint arXiv:2506.03079, 2025. +[49] Xiuyu Yang, Yunze Man, Jun-Kun Chen, and Yu-Xiong Wang. Scenecraft: Layout-guided 3d scene generation. In Advances in Neural Information Processing Systems, 2024. +[50] Xiuyu Yang, Shuhan Tan, and Philipp Krahenbuhl. Long-term traffic simulation with interleaved autoregressive motion and scenario generation. arXiv preprint arXiv:2506.17213, 2025. +[51] Xiuyu Yang, Zhuangyan Zhang, Haikuo Du, Sui Yang, Fengping Sun, Yanbo Liu, Ling Pei, Wenchao Xu, Weiqi Sun, and Zhengyu Li. Rmmdet: Road-side multitype and multigroup sensor detection system for autonomous driving. arXiv preprint arXiv:2303.05203, 2023. +[52] Yifan Yang, Shuhai Zhang, Zixiong Huang, Yubing Zhang, and Mingkui Tan. Cross-ray neural radiance fields for novel-view synthesis from unconstrained image collections. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 15901-15911, 2023. + +[53] Baijun Ye, Minghui Qin, Saining Zhang, Moonjun Gong, Shaoting Zhu, Zebang Shen, Luan Zhang, Lu Zhang, Hao Zhao, and Hang Zhao. Gs-occ3d: Scaling vision-only occupancy reconstruction for autonomous driving with gaussian splatting. arXiv preprint arXiv:2507.19451, 2025. +[54] Zehao Yu, Songyou Peng, Michael Niemeyer, Torsten Sattler, and Andreas Geiger. Monosdf: Exploring monocular geometric cues for neural implicit surface reconstruction. Advances in neural information processing systems, 35:25018-25032, 2022. +[55] Shiran Yuan and Hao Zhao. Slimmerf: Slimmable radiance fields. In 2024 International Conference on 3D Vision (3DV), pages 64-74. IEEE, 2024. +[56] Dongbin Zhang, Chuming Wang, Weitao Wang, Peihao Li, Minghan Qin, and Haoqian Wang. Gaussian in the wild: 3d gaussian splatting for unconstrained image collections. In European Conference on Computer Vision, pages 341-359. Springer, 2024. +[57] Saining Zhang, Baijun Ye, Xiaoxue Chen, Yuantao Chen, Zongzheng Zhang, Cheng Peng, Yongliang Shi, and Hao Zhao. Drone-assisted road gaussian splatting with cross-view uncertainty. arXiv preprint arXiv:2408.15242, 2024. +[58] Zhuoran Zheng, Wenqi Ren, Xiaochun Cao, Xiaobin Hu, Tao Wang, Fenglong Song, and Xiuyi Jia. Ultra-high-definition image dehazing via multi-guided bilateral learning. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 16180-16189. IEEE, 2021. +[59] Hongyu Zhou, Jiahao Shao, Lu Xu, Dongfeng Bai, Weichao Qiu, Bingbing Liu, Yue Wang, Andreas Geiger, and Yiyi Liao. Hugs: Holistic urban 3d scene understanding via gaussian splatting. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 21336-21345, 2024. +[60] Xiaoyu Zhou, Zhiwei Lin, Xiaojun Shan, Yongtao Wang, Deqing Sun, and Ming-Hsuan Yang. Drivinggaussian: Composite gaussian splatting for surrounding dynamic autonomous driving scenes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 21634-21643, 2024. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The abstract clearly state the claims. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: They are discussed in the conclusion. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: the proofs are in the methodology part. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: All the information are included in the experimental setup part in section 4. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [Yes] + +Justification: The code is available in the anonymous GitHub repository in last line of abstract. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: All the information are included in the experimental setup part in section 4. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [Yes] + +Justification: All results are accompanied by statistical significance tests. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). + +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: They are described in the implementation details part in Section 4. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: [NA] + +# Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: We have discussed both positive and negative impacts. + +# Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: We identify our paper as having no such risks. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We have given the creators or original owners of assets used in the paper proper credits. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. + +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: We have not released new assets at the submission time. We will carefully document our data and model when we release the code and data. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: The paper does not involve LLM. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# Appendix: Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting + +# A Additional Implementation Details + +# A.1 Loss Functions and Optimization + +We jointly optimize our multi-scale Gaussian scene representation by minimizing a composite loss function $\mathcal{L}_{\mathrm{total}}$ : + +$$ +\mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\text {r e c o n}} + \lambda_ {\mathrm {T V}} \mathcal {L} _ {\mathrm {T V}} + \lambda_ {\text {c i r c l e}} \mathcal {L} _ {\text {c i r c l e}} \tag {A1} +$$ + +where $\mathcal{L}_{\mathrm{recon}}$ is the primary reconstruction loss, and $\mathcal{L}_{\mathrm{TV}}$ and $\mathcal{L}_{\mathrm{circle}}$ are regularization terms. + +# A.1.1 Reconstruction Loss + +The core reconstruction loss, $\mathcal{L}_{\mathrm{recon}}$ , drives the accurate reproduction of both RGB and depth information: + +$$ +\mathcal {L} _ {\text {r e c o n}} = \lambda_ {r} \mathcal {L} _ {1} + \left(1 - \lambda_ {r}\right) \mathcal {L} _ {\text {S S I M}} + \lambda_ {d} \mathcal {L} _ {d} + \lambda_ {o} \mathcal {L} _ {o} \tag {A2} +$$ + +Here, $\mathcal{L}_1$ and $\mathcal{L}_{\mathrm{SSIM}}$ measure the image-space difference. $\mathcal{L}_d$ represents the loss between the rendered depth and the ground truth LiDAR depth. $\mathcal{L}_o$ is an opacity regularization term that encourages alignment with a non-sky mask. + +# A.1.2 Adaptive Total Variation (TV) Regularization + +To encourage smoothness and reduce noise in the optimized grid representations, we incorporate a TV regularization term, $\mathcal{L}_{\mathrm{TV}}$ , at each level $l$ of the multi-scale representation: + +$$ +\mathcal {L} _ {\mathrm {T V}} = \sum_ {l} k ^ {(l)} \cdot \frac {1}{| \mathcal {A} ^ {(l)} |} \sum_ {i, j, k} \sum_ {\mathbb {D} \in \{x, y, z \}} \left\| \Delta_ {\mathbb {D}} \mathcal {A} ^ {(l)} (i, j, k) \right\| _ {2} ^ {2} \tag {A3} +$$ + +The adaptive weight $k^{(l)}$ for each level $l$ is proportional to the grid size, applying stronger smoothing to finer, higher-resolution grids and lighter regularization to coarser grids. + +$$ +k ^ {(l)} = a \sqrt {H ^ {(l)} \cdot W ^ {(l)} \cdot D ^ {(l)}} + b \tag {A4} +$$ + +# A.1.3 Circle Regularization for Photometric Consistency + +To constrain the noise introduced by photometric corrections and prevent overly aggressive alterations, we introduce a circle regularization loss, $\mathcal{L}_{\mathrm{circle}}$ : + +$$ +\mathcal {L} _ {\text {c i r c l e}} = \sum_ {(u, v) \in \mathcal {S}} \left\| I ^ {r} (u, v) - \bar {A} ^ {- 1} \left(I ^ {g t} (u, v)\right) \right\| _ {2} ^ {2} \tag {A5} +$$ + +where $S$ denotes the set of pixel coordinates. This loss encourages the rendered image $I^{r}$ to be reconstructible from the ground truth image $I^{gt}$ via an inverse appearance transformation $A^{-1}$ . + +# A.1.4 Coarse-to-Fine Optimization Strategy + +We employ a coarse-to-fine optimization strategy by utilizing level-dependent learning rates (e.g., $1 \times 10^{-5}, 3 \times 10^{-5}, 1 \times 10^{-4}$ from coarse to fine). Coarser grids, assigned higher learning rates, rapidly learn the global scene illumination, while finer grids, with lower learning rates, hierarchically refine high-frequency photometric details. This staged optimization enhances stability. + +# A.2 Dynamic Rendering for Real-World ISP Adaptation + +To bridge the domain gap between the fixed ISP used during training and dynamic real-world ISP pipelines encountered during inference, we employ an interpolation strategy. For a novel test image with timestamp $t_{\mathrm{novel}}$ , we proceed as follows: + +1. Temporal Proximity Search: We identify the two training timestamps from the same camera, $t_1$ and $t_2$ , that are temporally closest to $t_{\mathrm{novel}}$ (such that $t_1 \leq t_{\mathrm{novel}} \leq t_2$ ). + +2. Scale-Specific Grid Interpolation: We perform linear interpolation specifically on the coarse and medium-scale bilateral grids $(\mathcal{A}^{(0)},\mathcal{A}^{(1)})$ derived from these two timestamps. + +The interpolated grid $\hat{\mathcal{A}}^{(l)}$ for $l\in \{0,1\}$ is formulated as: + +$$ +\hat {\mathcal {A}} ^ {(l)} = \omega \mathcal {A} _ {t _ {1}} ^ {(l)} + (1 - \omega) \mathcal {A} _ {t _ {2}} ^ {(l)} \tag {A6} +$$ + +The temporal interpolation weight, $\omega$ , is determined by proximity: + +$$ +\omega = \frac {t _ {2} - t _ {\text {n o v e l}}}{t _ {2} - t _ {1}} \tag {A7} +$$ + +The fine-scale grid $(l = 2)$ is not used during interpolation, as it is primarily intended to capture scene-intrinsic details rather than global ISP variations. + +# B Dataset Details + +This section provides dataset-specific details regarding our evaluation protocol, including sequence IDs for reproducibility. + +# B.1 Waymo Open Dataset [2] + +We use all five cameras and all LiDAR sensors. We conduct our experiments on the following 6 sequences, selected according to [3, 4]: + +- segment-10017090168044687777 +- segment-10061305430875486848 +- segment-10584247114982259878 +- segment-15090871771939393635 +- segment-4458730539804900192 +- segment-5835049423600303130 + +# B.2 NuScenes [1] + +We utilize all six available cameras and all LiDAR sensors. We select the following 8 sequences: 152, 164, 171, 200, 209, 359, 529, 916, which is an extension of the dataset used by [3]. To address ego-vehicle visibility, we crop the bottom 80 pixels from the back camera images. + +# B.3 PandaSet [6] + +We utilize six cameras and one LiDAR unit. We specifically evaluate on the following 10 challenging nighttime sequences: 063, 066, 070, 073, 074, 077, 078, 079, 088, 149. To mitigate ego-vehicle artifacts, we apply a bottom crop of 260 pixels to the back camera images. + +# B.4 Argoverse2 [5] + +We leverage the seven ring cameras and both LiDAR sensors available in the dataset. We conduct our experiments on the following 9 sequences, in line with [3]: + +- 05fa5048-f355-3274-b565-c0ddc547b315 +- 0b86f508-5df9-4a46-bc59-5b9536dbde9f +185d3943-dd15-397a-8b2e-69cd86628fb7 +- 25e5c600-36fe-3245-9cc0-40ef91620c22 +- 27be7d34-ecb4-377b-8477-ccfd7cf4d0bc +280269f9-6111-311d-b351-ce9f63f88c81 +- 2f2321d2-7912-3567-a789-25e46a145bda +44adf4c4-6064-362f-94d3-323ed42cfda9 +- 5589de60-1727-3e3f-9423-33437fc5da4b + +To minimize ego-vehicle interference, we apply a bottom crop of 250 pixels to the front center, rear left, and rear right camera views. + +# C Additional Quantitative Results + +This section presents a comprehensive breakdown of our model's performance, including per-scene metrics, integration results with SOTA methods, and robustness checks on challenging subsets. + +# C.1 Per-Scene Geometry and Appearance Evaluation + +We provide detailed metrics for geometry (Tab. A1 - A4) and appearance (Tab. A5 - A8). + +![](images/b7edb6e2a2d8a67a6ff14d9f8fc5debe58279f29e12e244354d630352efd6197.jpg) +Ground Truth + +![](images/0a3de11e56d7408d3f81ea5992b3912a26069b0a7d0bb0a4d28fe08098e6d763.jpg) +Baseline+AP + +![](images/4b70bcc65b91a129b464187be568d0a03a1a06363fca297f674a1eac30b8f3ea.jpg) + +![](images/11244e8b747db8cb95da74a49a6dbb399107fe0a2636bc428c6262f3cce877e5.jpg) +Baseline+BG + +![](images/1201b12b25a03bac6cd179530303abe4f0ccfcd0444681a759b3d1b4a63700a3.jpg) + +![](images/0b22af04c2efa7bc82977676fd7d9a6c898f01766949ddbab7f25dba55754a31.jpg) +Baseline+Ours +Figure A1: Qualitative Comparison of Photometric Correction with Baseline Methods. These figures visualize the output of our method ('Baseline+Ours') against the ground truth, a baseline with appearance codes ('Baseline+AP'), and a baseline with a single bilateral grid ('Baseline+BG'). The accompanying error maps (blue indicating lower error, red higher) and highlighted red boxes demonstrate our method's superior ability to handle complex illumination and reduce artifacts compared to traditional approaches. + +![](images/72b90911c1ab36a5329cec5bfcb11723f4db7e019312fbeea2651d52ff2c602b.jpg) + +# C.2 Integration Evaluation with SOTA Methods + +Tab. A9 and A10 provide comparisons with SOTA methods like ChatSim [4] and StreetGS [7] on the NuScenes dataset. + +![](images/ac9dca440cb7bbfba8d2b81e085c7386743d8cdd1141388a3570069cfe9758fd.jpg) +Ground Truth + +![](images/4df31c1cd31cc8f6c342f126fa27c5864abc9b0c22d7ddc777d0661a42e72f33.jpg) + +![](images/832a94a19041c2df2c29a55e660e43bff9fdcdeaa01f6327670fbf86ce353755.jpg) +Baseline+AP + +![](images/b447db24dccb2b25f3b60c234822f98747c6c5c12fdb5166bc60cd0d27701377.jpg) + +![](images/aa67547e2142bf465e13112139a3a6d925e3002d0b851ab07e99733d1d54bb67.jpg) + +![](images/21efbeb1143a2b6a0aa661718a794f6f9f16d672d3c03710ac67495755abb5c8.jpg) +Baseline+BG + +![](images/fde6f98f0ea116f9ab8bf5ce9f56a62d4f015dcf3b32f9d9c1478516e9e672a2.jpg) + +![](images/58916539a5fcba3681401e3f55cc80bf97ff705a827689884a134aa9d33ada58.jpg) +Baseline+Ours +Figure A2: Qualitative Comparison of Photometric Correction with Baseline Methods. + +![](images/83ea4e2eab1a766e4be26f77b3453d270ff922191f2ef2e596e6c091b5807c65.jpg) + +
SceneGeometry Evaluation
CD↓RMSE↓Depth↓
1521.2273.4630.042
1640.8892.4690.103
1711.0422.8130.075
2001.3003.6170.020
2091.2943.5240.065
3591.2383.5420.036
5290.6782.6750.021
9161.6234.6170.109
Average1.1613.3400.059
+ +Table A1: Detailed Scene-by-Scene Geometry Evaluation on the NuScenes [1]. This table presents key geometry metrics—Chamfer Distance (CD), Root Mean Square Error (RMSE), and Depth error—for individual scenes and averaged across the evaluated sequences from the NuScenes dataset. + +![](images/ba2fef644e54ab049ed40831ede11ad42b7b1aba9071c7b12b9a414f4f5f0a67.jpg) +Figure A3: Qualitative Comparison with the OmniRe. This figure showcases a side-by-side visual comparison of renderings and depth maps produced by the original OmniRe framework versus OmniRe integrated with our proposed method ('OmniRe+Ours'). The results highlight the enhancements in image fidelity and depth map coherence achieved by our approach. + +
SceneGeometry Evaluation
CD↓RMSE↓Depth↓
01.6383.2171.733
31.4272.9050.350
310.2781.6360.026
2331.1493.4650.594
5511.3393.3620.095
6210.1031.8790.007
Average0.9892.7440.467
+ +Table A2: Detailed Scene-by-Scene Geometry Evaluation on the Waymo Open Dataset [2]. This table showcases the Chamfer Distance (CD), Root Mean Square Error (RMSE), and Depth error for specific scenes and their average, evaluating the geometric reconstruction accuracy on the Waymo Open Dataset. + +![](images/d5c7b1381ad36ff9375a2754685321c87b4b9035962bb8f1b6ad14256a60ab91.jpg) +Figure A4: Qualitative Comparison with the ChatSim. Visual results comparing the ChatSim framework with ChatSim augmented by our method ('ChatSim+Ours'). The rendered images and corresponding depth maps illustrate the improvements in visual quality and geometric detail provided by our multi-scale bilateral grid framework. + +![](images/f486a8e0f362b7e36ed68f24e888fd104c1f405830924496ab965c89670998da.jpg) +Figure A5: Qualitative Comparison with the StreetGS. This figure presents a visual comparison between the StreetGS framework and StreetGS enhanced with our method ('StreetGS+Ours'). The displayed images and depth maps demonstrate the capability of our approach to improve rendering realism and depth accuracy in challenging driving scenarios. + +
SceneGeometry Evaluation
CD↓RMSE↓Depth↓
630.7603.8120.015
660.5172.6570.008
700.3102.2440.027
730.2802.0120.007
740.6803.2400.009
770.1902.9260.004
780.4032.8190.008
790.1982.0810.004
880.9684.6740.039
1490.2282.0520.007
Average0.4532.8520.013
+ +Table A3: Detailed Scene-by-Scene Geometry Evaluation on the PandaSet [6]. This table provides a per-scene breakdown and average of Chamfer Distance (CD), Root Mean Square Error (RMSE), and Depth error, assessing geometric reconstruction performance on challenging nighttime scenarios from PandaSet. + +
SceneGeometry Evaluation
CD↓RMSE↓Depth↓
00.5223.0010.023
12.0715.8450.085
20.4613.2260.011
30.3483.6770.014
41.1984.4850.059
50.6945.0690.040
60.9676.1930.075
80.7434.4360.045
90.2571.9520.005
Average0.8074.2090.040
+ +Table A4: Detailed Scene-by-Scene Geometry Evaluation on the Argoverse2 Dataset [5]. This table displays Chamfer Distance (CD), Root Mean Square Error (RMSE), and Depth error for individual sequences and their average, evaluating geometric accuracy on the Argoverse2 dataset. + +
SceneScene ReconstructionNovel View Synthesis
Full ImagehumanvehicleFull Imagehumanvehicle
PSNR↑SSIM↑LPIPS↓PSNR↑SSIM↑PSNR↑SSIM↑PSNR↑SSIM↑PSNR↑SSIM↑PSNR↑SSIM↑
15227.390.8390.20429.330.87327.760.86223.570.6950.23425.040.65522.07
16426.520.8290.23224.750.78925.600.79323.160.7110.26219.860.46421.74
17126.970.8330.24924.050.65226.220.81224.390.7480.27322.280.56822.51
20027.800.8350.193N/AN/A28.080.83225.280.7450.211N/AN/A24.11
20929.070.8660.18528.200.80228.840.83626.180.7850.20425.420.69425.07
35927.950.8590.16826.980.79527.250.83924.430.7230.19024.060.62922.72
52929.900.8930.13324.250.73627.800.85627.400.8260.14624.180.71224.84
91625.880.8190.18128.160.79226.950.83922.730.6780.20825.440.63722.75
Average27.690.8470.19326.530.77727.310.83424.640.7390.21623.750.62323.23
+ +Table A5: Detailed Appearance Evaluation for Scene Reconstruction and Novel View Synthesis on the NuScenes Dataset [1]. This table presents PSNR, SSIM, and LPIPS metrics for the full image, as well as for 'human' and 'vehicle' classes, for both scene reconstruction and novel view synthesis tasks on various NuScenes sequences. + +
SceneScene ReconstructionNovel View Synthesis
Full ImagehumanvehicleFull Imagehumanvehicle
PSNR↑SSIM↑LPIPS↓PSNR↑SSIM↑PSNR↑SSIM↑PSNR↑SSIM↑LPIPS↓PSNR↑SSIM↑PSNR↑SSIM↑
029.260.8400.311N/AN/A23.330.64025.940.7700.341N/AN/A22.290.531
327.940.8410.24121.820.632N/AN/A24.300.7370.26920.450.505N/AN/A
3127.650.8490.22432.930.78422.540.68323.980.7230.25030.480.65719.050.421
23333.710.8010.482N/AN/A23.550.68632.810.7770.488N/AN/A22.370.645
55124.890.7480.40920.770.47021.660.68322.540.6700.43719.990.40718.760.471
62131.910.9390.06726.680.84626.400.84529.730.8950.07824.940.78924.350.765
Average29.230.8360.28925.550.68323.500.70726.550.7620.31023.970.59021.360.567
+ +Table A6: Detailed Appearance Evaluation for Scene Reconstruction and Novel View Synthesis on the Waymo Open Dataset [2]. This table details PSNR, SSIM, and LPIPS metrics for full images and specific object classes ('human', 'vehicle') during scene reconstruction and novel view synthesis on selected Waymo sequences. + +
SceneScene ReconstructionNovel View Synthesis
Full ImagehumanvehicleFull Imagehumanvehicle
PSNR↑SSIM↑LPIPS↓PSNR↑SSIM↑PSNR↑SSIM↑PSNR↑SSIM↑LPIPS↓PSNR↑SSIM↑PSNR↑SSIM↑
6329.950.9050.22629.440.78322.320.72627.320.8540.25826.930.61318.490.447
6631.730.9310.19829.940.84520.780.68128.920.8900.21526.840.73819.550.591
7031.090.9090.260N/AN/A21.350.74028.350.8620.287N/AN/A21.200.674
7332.130.9310.19831.260.86823.330.80629.160.8890.214N/AN/A21.840.706
7429.850.9140.20730.990.87424.440.84927.130.8620.22827.820.74022.230.740
7732.600.9370.16532.280.85225.420.85529.770.8950.17829.020.73022.120.721
7831.300.9220.18133.540.89625.270.81228.390.8690.19730.740.80922.860.683
7931.420.9020.22831.910.85026.060.84328.140.8320.25128.980.72623.080.702
8825.090.7870.26922.100.67021.900.73821.950.6230.30520.190.36218.460.444
14932.310.9260.202N/AN/A24.040.79129.730.8910.215N/AN/A23.370.728
Average30.750.9060.21330.180.83023.490.78427.890.8470.23527.220.67421.320.644
+ +Table A7: Detailed Appearance Evaluation for Scene Reconstruction and Novel View Synthesis on PandaSet [6]. This table outlines PSNR, SSIM, and LPIPS metrics for full image and object-specific ('human', 'vehicle') evaluations in both scene reconstruction and novel view synthesis tasks using PandaSet nighttime sequences. + +
SceneScene ReconstructionNovel View Synthesis
Full ImagehumanvehicleFull Imagehumanvehicle
PSNR↑SSIM↑LPIPS↓PSNR↑SSIM↑PSNR↑SSIM↑PSNR↑SSIM↑LPIPS↓PSNR↑SSIM↑PSNR↑SSIM↑
025.720.8710.18125.540.82226.580.82522.830.7650.19923.730.73423.310.682
122.180.7690.30221.760.68122.870.79820.200.6550.32318.220.47218.480.478
227.360.8880.16625.330.78528.930.88424.830.8030.18322.320.62023.630.669
326.550.8930.12323.240.81125.580.87524.690.8260.14121.990.75623.100.769
422.650.8040.27222.730.72023.760.81220.550.6850.29019.950.51819.580.493
524.190.8480.20723.690.76023.750.79022.070.7380.22621.120.59820.320.580
623.560.7950.27519.800.58821.050.75721.860.7030.29218.150.44617.760.498
823.470.8500.18325.630.78723.660.85121.250.7560.19920.570.53119.580.628
926.480.9250.09122.440.70024.420.85324.910.8750.10021.040.61421.960.732
Average24.680.8490.20023.350.73924.510.82722.580.7560.21720.790.58820.860.615
+ +Table A8: Detailed Appearance Evaluation for Scene Reconstruction and Novel View Synthesis on the Argoverse2 Dataset [5]. This table shows PSNR, SSIM, and LPIPS for full image and object-focused ('human', 'vehicle') assessments across scene reconstruction and novel view synthesis on the Argoverse2 dataset. + +
SceneMethodReconstructionNovel View SynthesisGeometry
PSNR ↑SSIM ↑LPIPS ↓PSNR ↑SSIM ↑LPIPS ↓CD ↓RMSE ↓Depth ↓
152ChatSim25.370.8110.2511.5923.6370.08522.720.6940.276
Ours27.090.8250.2311.3093.5400.04023.800.7030.256
164ChatSim24.080.7880.2991.1982.6150.18622.070.7080.321
Ours26.160.8020.2730.9722.5230.10123.790.7180.293
171ChatSim25.000.8010.3101.4202.9810.10523.310.7360.326
Ours26.950.8130.2891.1142.8950.05724.770.7440.307
200ChatSim24.850.7990.2301.6903.7400.03523.470.7320.246
Ours27.540.8160.2201.2893.6190.01725.430.7450.235
209ChatSim25.770.8180.2681.8413.8050.11824.300.7630.281
Ours27.930.8330.2431.4453.6910.06125.930.7760.255
359ChatSim25.760.8230.2201.4983.7010.07323.460.7140.238
Ours27.170.8340.2081.3173.6470.03624.310.7190.227
529ChatSim27.190.8640.1911.0712.8530.07725.700.8120.201
Ours29.600.8780.1590.6922.7490.01827.350.8220.169
916ChatSim22.810.7420.2492.1454.7450.17321.190.6410.271
Ours23.950.7590.2321.7504.6350.10221.960.6550.253
+ +Table A9: Comparative Performance Analysis against ChatSim on the NuScenes Dataset. This table provides a scene-by-scene comparison of our method ('Ours') with the ChatSim baseline across scene reconstruction (PSNR, SSIM, LPIPS), novel view synthesis (PSNR, SSIM, LPIPS), and geometry (CD, RMSE, Depth) metrics. + +
SceneMethodReconstructionNovel View SynthesisGeometry
PSNR ↑SSIM ↑LPIPS ↓PSNR ↑SSIM ↑LPIPS ↓CD ↓RMSE ↓Depth ↓
152StreetGS25.490.8130.2541.6113.6480.08922.730.6950.280
Ours27.340.8280.2311.3433.5600.03823.900.7060.256
164StreetGS25.040.8130.2731.1872.6050.17922.550.7240.296
Ours27.410.8270.2480.9562.5230.09624.290.7340.269
171StreetGS25.620.8110.3051.3552.9580.11523.630.7430.323
Ours27.790.8220.2811.1842.9100.06725.210.7510.300
200StreetGS25.320.8110.2301.8783.9250.04123.750.7390.247
Ours28.120.8290.2191.4183.8170.02025.670.7520.235
209StreetGS26.530.8400.2431.9323.8130.12524.770.7790.258
Ours29.050.8540.2171.4813.6970.06126.530.7910.231
359StreetGS26.080.8310.2111.5393.7100.07523.530.7160.230
Ours27.630.8430.1991.2993.6590.03924.450.7230.218
529StreetGS27.500.8710.1861.0652.8830.06325.960.8190.197
Ours30.090.8840.1580.7182.7950.02027.690.8270.169
916StreetGS24.340.7870.2232.2684.8130.17522.210.6800.245
Ours25.800.8040.2041.7814.7090.10623.110.6920.226
+ +Table A10: Comparative Performance Analysis against StreetGS on the NuScenes Dataset. This table presents a detailed per-scene comparison of our approach ('Ours') with the StreetGS baseline, evaluating scene reconstruction (PSNR, SSIM, LPIPS), novel view synthesis (PSNR, SSIM, LPIPS), and geometry (CD, RMSE, Depth) metrics. + +Table A11: Detailed comparison on Challenging Argoverse Scenarios (6 scenes). + +
MethodReconstructionNovel View Synthesis
PSNR ↑SSIM ↑CD ↓RMSE ↓Depth ↓PSNR ↑SSIM ↑
OmniRe (Baseline)23.950.8500.9643.6470.09822.100.761
OmniRe w/ AC23.970.8480.9233.6420.09722.090.759
OmniRe w/ BG24.290.8550.8073.5860.04722.320.768
Ours25.290.8630.7263.5640.02722.960.773
+ +Table A12: Detailed comparison on Challenging Waymo Scenarios (6 scenes). + +
MethodReconstructionNovel View Synthesis
PSNR ↑SSIM ↑CD ↓RMSE ↓Depth ↓PSNR ↑SSIM ↑
OmniRe (Baseline)29.280.8330.3521.9170.06127.370.791
OmniRe w/ AC29.310.8330.3431.9150.05327.300.789
OmniRe w/ BG29.610.8360.3331.8930.04227.560.792
Ours31.230.8410.2721.8460.02128.340.793
+ +Table A13: Detailed comparison on Challenging Pandaset Scenarios (6 scenes). + +
MethodReconstructionNovel View Synthesis
PSNR ↑SSIM ↑CD ↓RMSE ↓Depth ↓PSNR ↑SSIM ↑
OmniRe (Baseline)27.280.8590.6343.9630.02923.910.721
Ours27.880.8630.5723.9510.02224.220.724
+ +Table A14: Comparison results of vehicle-specific metrics, averaged across 20 scenes from all four datasets. + +
MethodPSNR ↑SSIM ↑CD ↓
OmniRe (Baseline)24.240.7848.675
Ours24.800.7917.400
+ +# C.3 Performance on Challenging Scenarios + +To validate robustness, we curated subsets of challenging scenarios with extreme photometric inconsistencies (e.g., night scenes, sun glare, rain, and complex reflections). As shown in Tables A11, A12, and A13, our method's performance gap widens significantly compared to all baselines (OmniRe, w/ AC, w/ BG) in these difficult conditions, demonstrating the superior robustness of our multi-scale design. + +- Challenging Argoverse (6 scenes): 49e970c4 (Extreme Lighting, Overexposure, Lens Flare), 8184872e (Complex Shadows, Direct Sunlight), 91923e20 (Extreme Lighting, Camera Artifacts), a8a2fbc2 (Low-Angle Sun), b403f8a3 (Overpass Structure, Extreme Lighting Transitions), eaaf5ad3 (Multiple Artificial Lights, Wet Surfaces, Rainy Conditions). +- Challenging Waymo (6 scenes): segment-10 (Night Scene, Artificial Lighting, Lens Flare), segment-30 (Night Scene, Rainy Conditions, Specular Reflections), segment-539 (High Dynamic Range, Low-Angle Sun, Sun Glare), segment-550 (High Dynamic Range, Storefront Reflections, Hard Shadows), segment-561 (Low-Angle Sun, Lens Flare, Over-exposure), segment-570 (Rainy Conditions, Low Light, Motion Blur). +- Challenging Pandaset (6 scenes): 19, 21, 29, 48, 52 (all Low-Angle Sun with Hard/Deep Shadows or High Dynamic Range), 63 (Night Scene, Multiple Light Sources, Glare). + +# C.4 Vehicle-Specific Metrics + +To specifically evaluate performance on challenging, highly reflective surfaces such as car windows, we used semantic masks to isolate vehicles. Table A14 shows that our method improves not only appearance (PSNR) but also, crucially, geometry (CD) for these specific objects. This supports our claim that our method mitigates the negative geometric impact of such severe view-dependent effects. + +# D Quantitative Analysis of Photometric Inconsistency + +To rigorously validate the learned affine transformations discussed in the main paper, we compute the Kullback-Leibler (KL) Divergence between our model's learned distribution and a ground-truth (GT) distribution of real-world photometric inconsistency. + +Experimental Setup: We construct the GT distribution $P(\Delta L)$ by sampling corresponding pixels representing the same 3D world points across different camera views in the nuScenes dataset, using ground-truth LiDAR points and camera parameters. The luminance difference $\Delta L$ for all corresponding pairs forms the GT histogram. We then measure the KL Divergence between this $P(\Delta L)$ and the distributions learned by our model and the baseline. + +Results: As shown in Table A15, the distribution learned by our multi-scale method achieves a significantly lower KL Divergence (0.79) compared to the single-scale baseline (1.25). This quantitatively confirms that our model learns a distribution that more accurately reflects real-world photometric inconsistencies. + +Table A15: Comparison of KL Divergence against the ground-truth (GT) photometric inconsistency distribution from the nuScenes dataset. Lower is better, indicating a more realistic learned distribution. + +
MethodKL Divergence (vs. Dataset GT) ↓
Single Bilateral Grids' Affine Transformation1.25
Multi-scale Bilateral Grids' Affine Transformation (Ours)0.79
+ +# References + +[1] Holger Caesar, Varun Bankiti, Alex H Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11621-11631, 2020. + +[2] Pei Sun, Henrik Kretzschmar, Xerxes Dotiwalla, Aurelien Chouard, Vijaysai Patnaik, Paul Tsui, James Guo, Yin Zhou, Yuning Chai, Benjamin Caine, et al. Scalability in perception for autonomous driving: Waymo open dataset. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 2446-2454, 2020. +[3] Adam Tondersski, Carl Lindström, Georg Hess, William Ljungbergh, Lennart Svensson, and Christoffer Petersson. Neurad: Neural rendering for autonomous driving. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14895-14904, 2024. +[4] Yuxi Wei, Zi Wang, Yifan Lu, Chenxin Xu, Changxing Liu, Hao Zhao, Siheng Chen, and Yanfeng Wang. Editable scene simulation for autonomous driving via collaborative lvm-agents. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15077-15087, 2024. +[5] Benjamin Wilson, William Qi, Tanmay Agarwal, John Lambert, Jagjeet Singh, Siddhesh Khandelwal, Bowen Pan, Ratnesh Kumar, Andrew Hartnett, Jhony Kaesemodel Pontes, et al. Argoverse 2: Next generation datasets for self-driving perception and forecasting. arXiv preprint arXiv:2301.00493, 2023. +[6] Pengchuan Xiao, Zhenlei Shao, Steven Hao, Zishuo Zhang, Xiaolin Chai, Judy Jiao, Zesong Li, Jian Wu, Kai Sun, Kun Jiang, et al. Pandaset: Advanced sensor suite dataset for autonomous driving. In 2021 IEEE international intelligent transportation systems conference (ITSC), pages 3095-3101. IEEE, 2021. +[7] Yunzhi Yan, Haotong Lin, Chenxu Zhou, Weijie Wang, Haiyang Sun, Kun Zhan, Xianpeng Lang, Xiaowei Zhou, and Sida Peng. Street gaussians: Modeling dynamic urban scenes with gaussian splatting. In European Conference on Computer Vision, pages 156-173. Springer, 2024. \ No newline at end of file diff --git a/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/images.zip b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..75adb5e7a75871897f8c8fe5a6a054675b233c16 --- /dev/null +++ b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8686e453225d9a4237cce72d1978015ee700b35e745e829c6d46674559c213bb +size 2027530 diff --git a/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/layout.json b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..4df60596d20a4bc71335d9facb2dbe6162dfdf1c --- /dev/null +++ b/NeurIPS/2025/Unifying Appearance Codes and Bilateral Grids for Driving Scene Gaussian Splatting/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afbcac22e36bc9088ce58aea33d83d0265b1f91d8560e0d3f546897f78e52f54 +size 955488 diff --git a/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/a9e5548a-a6f3-4ef9-a8ec-fce647bbccfb_content_list.json b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/a9e5548a-a6f3-4ef9-a8ec-fce647bbccfb_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..bd9bf1d133bf5aa11b27c5a26880dbb0e72e797b --- /dev/null +++ b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/a9e5548a-a6f3-4ef9-a8ec-fce647bbccfb_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a26c26029cd86654d9b1e16f9e31a931ede72fd2a237171c9ac97d5a01544127 +size 361726 diff --git a/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/a9e5548a-a6f3-4ef9-a8ec-fce647bbccfb_model.json b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/a9e5548a-a6f3-4ef9-a8ec-fce647bbccfb_model.json new file mode 100644 index 0000000000000000000000000000000000000000..837129e2ac782263aeccba32b725416772c603ed --- /dev/null +++ b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/a9e5548a-a6f3-4ef9-a8ec-fce647bbccfb_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e14af27ee5f77f4982b46ce9da1ac7207f37314505fde5fec76a54ec598d881d +size 457792 diff --git a/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/a9e5548a-a6f3-4ef9-a8ec-fce647bbccfb_origin.pdf b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/a9e5548a-a6f3-4ef9-a8ec-fce647bbccfb_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..69b13da54f03bf8faebe5f0ba91805fce41f3396 --- /dev/null +++ b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/a9e5548a-a6f3-4ef9-a8ec-fce647bbccfb_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b50aff057a7be02c501712adcebd6318ae978578985f6c59b8d84f84ac99a33 +size 4877530 diff --git a/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/full.md b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/full.md new file mode 100644 index 0000000000000000000000000000000000000000..1d89d46b8835b65fde0cebeab73e69b289857d2f --- /dev/null +++ b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/full.md @@ -0,0 +1,1990 @@ +# Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning + +Haolin Yang1 Hakaze Cho2 Yiqiao Zhong3 Naoya Inoue2,4 +1University of Chicago 2JAIST 3University of Wisconsin - Madison 4RIKEN haolinyang2001@uchicago.edu, yfzhao@jaist.ac.jp yiqiao.zhong@wisc.edu, naoya-i@jaist.ac.jp + +# Abstract + +The unusual properties of in-context learning (ICL) have prompted investigations into the internal mechanisms of large language models. Prior work typically focuses on either special attention heads or task vectors at specific layers, but lacks a unified framework linking these components to the evolution of hidden states across layers that ultimately produce the model's output. In this paper, we propose such a framework for ICL primarily in classification tasks by analyzing two geometric factors that govern performance: the separability and alignment of query hidden states. A fine-grained analysis of layer-wise dynamics reveals a striking two-stage mechanism—separability emerges in early layers, while alignment develops in later layers. Ablation studies further show that Previous Token Heads drive separability, while Induction Heads and task vectors enhance alignment. Our findings thus bridge the gap between attention heads and task vectors, offering a unified account of ICL's underlying mechanisms. $^{1}$ + +# 1 Introduction + +One of the most remarkable features of Large Language Models (LLMs) is their ability to respond to novel queries in user-desired mannerisms on-the-fly solely by learning from demonstrations provided in the input (as shown in Figure 1 (A))—without any additional training. This capability is known as In-context Learning (ICL) [Brown et al., 2020, Radford et al., 2019]. ICL has revolutionized natural language processing by reducing dependence on burdensome data collection and costly finetuning, enabling swift and seamless adaptation of LLMs to a variety of downstream tasks [Dong et al., 2024]. + +Due to its stark departure from traditional gradient-based learning paradigms, ICL has attracted significant academic interest. One line of research aims to develop a mechanistic understanding of ICL by analyzing the internal behavior of LLMs in ICL settings [Reddy, 2024]. Some studies highlight the importance of key structural components in LLMs, such as Induction Heads (IH) [Elhage et al., 2021, Olsson et al., 2022, Cho et al., 2025a], which retrieve information from demonstrations and perform copy-like operations within Transformer-based architectures. Other studies adopt a hidden-state-centric view, interpreting ICL as a process in which LLMs construct vector representations of the task from demonstrations (so-called task vectors [Hendel et al., 2023, Liu et al., 2024]) using the hidden states at an intermediate layer, and then use the vectors to steer hidden states and produce better next-token predictions. Both lines of work support their claims primarily through ablation and intervention experiments that assess the impact on model outputs. + +However, treating model components and hidden states as separate entities in ICL analysis is both unnecessary and misleading. The two are inherently intertwined—components like attention heads transform hidden states layer by layer, and these intermediate updates ultimately determine the + +![](images/eefadb2478d9cdfcad4f4cb0b38ade54fa3a365bf136cdf73911b0314f714655.jpg) +(A) I like this. Sentiment: positive \n It is bad. Sentiment: negative \n Fantastic! Sentiment: +Figure 1: (A) An example for ICL input. (B) In early layers, LLMs promote separability among the last tokens' hidden state $(\pmb{h})$ clusters w.r.t. the ground-truth labels of the queries through Previous Token Heads (PTHs). (C) In early layers or zero-shot scenarios, the direction where the hidden are maximally separated is insufficiently aligned with the output direction (i.e., the difference vector of the label-token unembedding vectors), increasing cluster overlap after mapping and inducing higher classification errors, and (D) in later layers, Induction Heads (IHs) align these clusters towards the output direction, with the same underlying mechanism of task vectors. + +model's output. As such, analyzing only the influence of attention heads or task vectors on the final prediction reduces ICL to a black-box process. A true mechanistic understanding of ICL requires tracing how these components progressively shape hidden states throughout the model, not just their end effects. A unified framework that synthesizes both perspectives and assesses their importance in the layer-wise evolution of hidden states is thus highly essential. + +Therefore, in this work, we propose a framework, shown in Figure 1, based on a key geometric insight into LLM classification: the success of LLMs in classification depends on whether the hidden states of queries with different ground-truth labels are (1) sufficiently separable and (2) well aligned with the unembedding vectors of labels. In other words, hidden states should be separated along a direction that aligns with the difference between the unembedding vectors of different labels. To investigate this, we collect hidden states in both ICL and zero-shot settings and analyze them using a range of geometric measures to assess how ICL improves hidden states in terms of separability and alignment. Our approach operates on three levels: (1) We examine the layer-wise trends in these measures and compare zero-shot with ICL (and across different ICL settings) to quantify the effect of ICL on the hidden state geometry. (2) We observe how changes in measure values reflect the evolution of semantic information represented in the hidden states that ultimately inform model outputs in ICL. (3) We probe specific layers to examine the role of different types of attention heads and how they influence both the values and trajectories of these geometric measures. + +Our experiments find that ICL improves classification performance primarily by enhancing alignment between query hidden states and unembedding vectors, with less impact on separability. Results further suggest that ICL proceeds as a two-stage process: early layers mainly increase hidden-state separability, while in middle-to-late layers, separability plateaus and alignment improves. The refinement of alignment arises through layer updates that filter out task-irrelevant semantics and preserve label-relevant content, thereby semantically refining query hidden states. Such updates qualify ICL query hidden states as task vectors. We also test this two-stage characterization on ICL for a generation task and confirm its explanatory power across settings. + +To build the bridge between the task vector and model components, we analyze the effect of attention heads on these geometric measures and find that (as demonstrated by Figure 1): (1) The early increase in separability is driven by a proliferation of Previous Token Heads (PTHs)—attention heads that attend to the previous token at each position—in early layers. (2) In middle-to-late layers, Induction Heads (IHs) enhance alignment by amplifying hidden state components along the unembedding directions of the labels. Thus, our findings not only explain why attention heads like PTHs and IHs are essential for ICL performance, but also clarify why induction head outputs empirically serve as effective task vectors [Todd et al., 2024, Hendel et al., 2023]. + +# 2 Related works + +IH and PTH Previous works on the mechanistic cause of ICL identify structural circuits in Transformers comprising a Previous Token Head (PTH) and an Induction Head (IH), where the PTH gathers information at demonstration label tokens, and the IH copies it to query positions for prediction [Olsson et al., 2022, Singh et al., 2024, Song et al., 2025]. Their importance in classification has been confirmed in large-scale models as well [Cho et al., 2025a]. However, existing analyses focus on end-to-end effects, leaving open how these heads shape query hidden states. + +Task vectors An alternative theory proposes that LLMs summarize demonstrations into task vectors, which can be used to steer zero-shot hidden states to increase prediction accuracy. These vectors may be ICL query hidden states extracted at an intermediate layer [Hendel et al., 2023, Liu et al., 2024], attention head outputs [Todd et al., 2024, Li et al., 2024], or MLP outputs [Merullo et al., 2024]. Decoding task vectors through the unembedding matrix reveals that they encode task-related tokens and support semantic manipulations akin to "word2vec"-style algebra [Mikolov et al., 2013]. Despite intriguing empirical findings, explanations for their mechanism remain preliminary. Kahardipraja et al. [2025] show that heads expressing contextual information or model's parametric knowledge produce task vectors with distinct function. Jiang et al. [2025b] and Han et al. [2025] study how the geometry of model's task representation impacts the effects of injecting task vectors. Jiang et al. [2025a] reveal the correlation between model's catastrophic forgetting and the change in task vectors. However, none of these studies answer the question of how task vectors influence the concrete internal computation process of models which directly and ultimately determine the outputs. + +Geometry of hidden states LLMs encode inputs in geometrically structured ways [Park et al., 2024]. For instance, they encode cities and countries by geographic relations [Gurnee and Tegmark, 2024] and numbers in rings under modular arithmetic [Liu et al., 2023]. For classification tasks, they can separate hidden states into clusters by attributes such as truth value [Marks and Tegmark, 2024] or toxicity [Lee et al., 2024]. However, the alignment of such clusters with the unembedding vectors of their labels—an equally crucial geometric factor—has received limited attention, with only a few studies noting suboptimal alignment at the output layer [Cho et al., 2025b, Kirsanov et al., 2025]. + +# 3 Theoretical framework + +We begin our framework with an analysis of classification tasks, where an LLM is prompted with a query $x$ and its ground-truth label $y$ , e.g., $x =$ "I like this movie. Sentiment:" and $y =$ "positive". The LLM with $L$ layers encodes $x$ into a vector $\pmb{h}_x \in \mathbb{R}^d$ , taken from the hidden state at the final token (":"). Given a vocabulary $\mathbb{V} = \{v_1, \dots, v_{|\mathbb{V}|}\}$ and an output embedding matrix $\pmb{E} \in \mathbb{R}^{|\mathbb{V}| \times d}$ , the model predicts $p(v_j|x) = \exp(\pmb{E}_{v_j} \pmb{h}_x) / \sum_{j'=1}^{|\mathbb{V}|} \exp(\pmb{E}_{v_j'} \pmb{h}_x)$ , where $\pmb{E}_{v_j}$ is the unembedding vector of $v_j$ . The model outputs the token $v_j$ with the highest probability as the predicted label for $x$ . + +In the ICL scenario, as shown in Figure 1 (A), $k$ demonstration-label pairs $(x_{1},y_{1}),\ldots ,(x_{k},y_{k})$ are pretended to form the prompt $[x_{1},y_{1},\dots,x_{k},y_{k},x]$ , which modifies the hidden state of $x$ and results in a different distribution $p(\nu_j|x_1,y_1,\dots,x_k,y_k,x)$ , potentially improving prediction accuracy. + +Rather than a single query, we more often evaluate classification accuracy over a dataset of $n$ queries $\{x_{1},\ldots ,x_{n}\}$ , with hidden states $\{\pmb {h}_1,\dots ,\pmb {h}_n\}$ and ground-truth labels $\{y_1,\dots ,y_n\}$ . We will show that the classification accuracy depends on two geometric properties of the hidden state collection $H = [h_i]_{i = 1}^n\in \mathbb{R}^{n\times d}$ : (1) its separability, and (2) its alignment with the unembedding vectors. + +As mentioned before, an LLM performs classification using the unembedding matrix $\mathbf{E}$ , which is a multiclass classifier on the hidden states. We define its accuracy on the dataset as: + +$$ +\operatorname {A c c} = \frac {1}{n} \sum_ {i = 1} ^ {n} \mathbb {1} \left(y _ {i} = \underset {\nu_ {j}} {\arg \max } \frac {\exp \left(\boldsymbol {E} _ {\nu_ {j}} \boldsymbol {h} _ {i}\right)}{\sum_ {j ^ {\prime} = 1} ^ {| \mathrm {V} |} \exp \left(\boldsymbol {E} _ {\nu_ {j} ^ {\prime}} \boldsymbol {h} _ {i}\right)}\right) = \frac {1}{n} \sum_ {i = 1} ^ {n} \mathbb {1} \left(y _ {i} = \underset {\nu_ {j}} {\arg \max } \frac {\boldsymbol {E} _ {\nu_ {j}} \boldsymbol {h} _ {i}}{\sum_ {j ^ {\prime} = 1} ^ {| \mathrm {V} |} \boldsymbol {E} _ {\nu_ {j} ^ {\prime}} \boldsymbol {h} _ {i}}\right), \tag {1} +$$ + +where the first equality states that classification accuracy equals the proportion of the labels being predicted as the most probable token, and the second equality uses the monotonicity of softmax. + +We first consider the simple case where $\{x_1, \dots, x_n\}$ only has 2 different labels, $y_A$ and $y_B$ , i.e. $y_i \in \{y_A, y_B\}, \forall i$ , and leave the generalization to the case of more labels to Appendix B. For a unit vector $\mathbf{u} \in \mathbb{R}^d$ , we define the separability of $\mathbf{H}$ along direction $\mathbf{u}$ with labels $y_A, y_B$ to be: + +$$ +S (\boldsymbol {u}) = \frac {1}{n} \left(\sum_ {i \in \mathbb {N} _ {A}} \mathbb {1} \left(\boldsymbol {u} ^ {\top} \boldsymbol {h} _ {i} \geq 0\right) + \sum_ {i \in \mathbb {N} _ {B}} \mathbb {1} \left(\boldsymbol {u} ^ {\top} \boldsymbol {h} _ {i} < 0\right)\right), \tag {2} +$$ + +where $\mathbb{N}_A = \{i:y_i = y_A\}$ and $\mathbb{N}_B = \{i:y_i = y_B\}$ . $S(\pmb{u})$ measures the fraction of hidden states that can be correctly classified by a linear decision boundary orthogonal to $\pmb{u}$ . By considering all possible directions, we obtain the maximum separability of $\pmb{H}$ , i.e. $S^{*} = \sup_{\pmb{u}\in \mathbb{R}^{d},\| \pmb{u}\|_{2} = 1}S(\pmb{u})$ . Though $S(\pmb{u})$ + +is not a continuous function, $S^*$ as a supremum can be attained on $\mathbb{S}^{d-1} = \{\pmb{u} : \pmb{u} \in \mathbb{R}^d, \| \pmb{u} \|_2 = 1\}$ (See Appendix A). Denote $\pmb{u}^*$ as the $\pmb{u}$ where $S$ attains the supremum, then: + +Theorem 1 Acc $\leq S^{*}$ . The equality is achieved when $\max_{v\in \mathbb{V}, v\notin \{y_A, y_B\}} \pmb{E}_v \pmb{h}_i < \max (\pmb{E}_{y_A} \pmb{h}_i, \pmb{E}_{y_B} \pmb{h}_i), \forall i$ and $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2} = c\pmb{u}^*$ for some positive constant $c$ . + +This theorem shows that accuracy is upper-bounded by the maximum separability of $\pmb{H}$ and that the bound is achieved when: (1) each $\pmb{h}_i$ is maximally aligned with either $\pmb{E}_{y_A}$ or $\pmb{E}_{y_B}$ — the unembedding vectors of $y_A$ and $y_B$ — while excluding interference from other tokens, a condition we call output alignment; and (2) the direction of maximum separation $\pmb{u}^*$ aligns with $\pmb{E}_{y_A} - \pmb{E}_{y_B}$ , which we refer to as directional alignment. Thus, separability and alignment of hidden states critically determine accuracy. Since query hidden states in ICL differ from those in the zero-shot setting due to the presence of demonstrations, we conclude that ICL can improve classification accuracy by enhancing both their separability and alignment. + +Attention heads influence query hidden states as well by their outputs to the residual stream. At layer $l$ , the $h^{\mathrm{th}}$ attention head adds $\pmb{a}_{l,l}^{h}$ to the hidden state $\pmb{h}_{i,l}$ of the $i^{\mathrm{th}}$ query, affecting the transition to $\pmb{h}_{i,l+1}$ . Ablating a head (i.e., setting $\pmb{a}_{i,l}^{h} = 0$ ) alters all downstream hidden states and can degrade accuracy if the final-layer hidden states $\pmb{H}_L$ lose separability or alignment. + +Task-vector-based experiments operate similarly by steering hidden states at intermediate layers. In those experiments, a task vector $\pmb{t}_i$ is added to $^2\pmb{h}_{i,l}$ and the influence likewise propagates through subsequent layers. This intervention is effective if the final $H_{L}$ has better separability and is better aligned with the labels of the task encoded in $\pmb{t}_i$ . + +# 4 Method: Measuring separability and alignment of hidden states + +Given the aforementioned influence of ICL, attention heads, and task vectors on the separability and alignment of hidden states across layers, we introduce several measures3 to quantify their influence. The formal definitions and mathematical details of all measures are provided in Appendix C. + +# A. Separability measure: Separability score + +Theorem 1 shows that the classification is affected by the maximum separability of hidden states. However, finding maximum separability requires evaluating separability along infinitely many directions in $\mathbb{S}^{d - 1}$ and is intractable. As a practical proxy, we train a logistic classifier on a subset of $H$ and evaluate its accuracy on held-out data. We call the accuracy separability score as it reflects the empirical maximum separability of hidden states achieved by the classifier. + +# B. Alignment measures + +In Theorem 1 we show that both output alignment and directional alignment affect accuracy. Below, we introduce measures for both. + +# B.1 Output alignment + +Output alignment is defined as the classification accuracy obtained by applying the unembedding matrix $\pmb{E}$ directly to hidden states $\pmb{H}$ , skipping subsequent layers. It measures how well $\pmb{H}$ aligns with the label unembedding vectors $\pmb{E}_{y_A}$ and $\pmb{E}_{y_B}$ , and is also known as logit lens accuracy [nostalgebraist, 2020]. When $\pmb{H}$ comes from the final layer, it equals standard classification accuracy. + +# B.2-B.5 Directional alignment + +Directional alignment is the alignment between $\pmb{u}^*$ and the label unembedding difference direction $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}$ . Since finding $\pmb{u}^*$ is intractable, we introduce the following proxies based on approximating $\pmb{u}^*$ or measuring separability along the label-difference direction. + +- Singular alignment (B.2). To approximate $\pmb{u}^{*}$ , we apply Singular Value Decomposition (SVD) to the mean-centered $\pmb{H}$ and extract the top- $r$ right singular vectors. These are the directions where $\pmb{H}$ has the greatest spread and can approximate $\pmb{u}^{*}$ . We compute the maximum absolute cosine similarities between each of these vectors and $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}$ as a proxy for directional alignment. +- Variance-based alignment (B.3). To measure separability along $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}$ , we first measure the proportion of total variance in $\pmb{H}$ that lies along this direction. A higher value indicates that this direction is a principal axis of variation—suggesting stronger directional alignment. +- Mean-based alignment (B.4). We project the difference in means of label clusters—hidden states with labels $y_{A}$ and $y_{B}$ —onto $\frac{\pmb{E}_{y_{A}} - \pmb{E}_{y_{B}}}{\|\pmb{E}_{y_{A}} - \pmb{E}_{y_{B}}\|_{2}}$ and divide it by the pooled projected variance. A higher value implies better separation margin along $\frac{\pmb{E}_{y_{A}} - \pmb{E}_{y_{B}}}{\|\pmb{E}_{y_{A}} - \pmb{E}_{y_{B}}\|_{2}}$ and better directional alignment. +- Composite alignment (B.5). To unify the mean- and variance-based alignment, we define composite alignment as their product. It captures both the magnitude and the relative significance of separation along the label-difference direction, serving as a robust proxy for directional alignment. + +# C. Indirect measure: Effective dimension + +As an indirect indicator of separability and alignment, we compute the effective dimension of $\pmb{H}$ — the number of directions along which the hidden states exhibit significant variance. A low effective dimension suggests that hidden states concentrate along a small number of directions, potentially those associated with the label unembedding vectors, and are thus easier to separate. + +# 5 Experiments and Results + +Models We experiment on the following 7 models: Llama2-7B, Llama2-13B, Llama2-70B [Touvron et al., 2023], Llama3-8B, Llama3-70B [Grattafori et al., 2024], Gemma-2B, and Gemma-7B [Gemini Team et al., 2024]. Unless otherwise stated, we report the results on Llama2-70B. + +Datasets We conduct experiments on two major types of classification datasets: text classification (SUBJ [Wang and Manning, 2012], SST-2 [Socher et al., 2013], TREC [Li and Roth, 2002]) and natural language inference (SNLI [MacCartney and Manning, 2008], RTE [Dagan et al., 2005], and CB [De Marneffte et al., 2019]). We further include a generation dataset (detailed in Subsection 5.1) to test the generalizability of our results in settings other than classification. We also use a generated dataset to explore the scenario where ground-truth labels of queries are not presented in the demonstrations (discussed in Appendix I.5). + +ICL setting We set the number of in-context demonstrations to be 8 unless otherwise stated. The demonstration samples are chosen randomly, except for one experiment that investigates the effect of using demonstrations procured by kNN retrieval [Liu et al., 2022]. For a detailed exposition of the implementation of models, datasets, prompt templates, etc., refer to Appendix D. + +# 5.1 Layer-wise trends of separability and alignment + +ICL as a two-stage process Figure 2 shows the values of six geometric measures at all layers of Llama2-70B in both zero-shot and ICL settings averaged across datasets (output alignment is deferred to Subsection 5.2 due to its strong link to the semantic information of hidden states; results for other models are in Appendix F). A key observation is that Figure 2 reveals a striking phase transition in the evolution along the layers of ICL hidden states. Phase 1 (Figure 1 (B)): In the early layers, directional alignment measures take low values, whereas separability increases rapidly. Phase 2 (Figure 1 (D)): In the subsequent layers, this trend reverses: separability plateaus, while all directional alignment measures spike simultaneously, which suggests that the label unembedding difference direction starts to capture more variance and separate label clusters more effectively. It causes the semantic information of query labels to be predominant in $H$ , which ultimately leads to final output alignment. These findings are consistent with prior work showing that task information emerges only after the initial layers [Sia et al., 2024]. The alternation between two phases is also captured by the effective dimension of $H$ , which first rises and then declines as alignment starts to improve, reflecting a gradual concentration of hidden states along label unembedding directions. In contrast, this transition is much weaker in the zero-shot setting, where effective dimension rises + +![](images/dc5b408d50adb8f02fd7050cb1013102a2555da03062a0b4bdcb8bd107d6c6c1.jpg) + +![](images/932ff5bd8ca8640e273c4e2e640a7045bec800c96acdae16ce40e6b01f43bf84.jpg) + +![](images/d6d3866eaad2922525251cba7146204e2052fbd3a82aab84fbdcffe6d58d09e7.jpg) + +![](images/dc1d04d3840de22f7025afc306e80e5f24e46aa94c40075b67750d959f81f6f0.jpg) +Figure 2: Comparison of trends in separability and alignment measures: ICL vs. zero-shot. Under ICL, a clear phase transition emerges: separability increases first and then alignment surges. The effective dimension first rises and then declines. This pattern is missing in the zero-shot setting. Accuracy gains from ICL over zero-shot are reflected in alignment, not separability measures. + +![](images/82495cb6081b4887eaa06b0b0c1d367651d477528616a676a38a8f2a244b2903.jpg) + +![](images/03f9264bfc640437367af6398f136fb1963c5c49260e27c4f676126aff86c31b.jpg) + +monotonously and the rise in alignment measures is not nearly as pronounced. Hence, this phase transition pattern characterizes ICL as a two-stage process: an initial phase enhancing separability, followed by a refinement phase that improves alignment. + +ICL improves accuracy primarily through alignment. A key observation is that ICL and zero-shot settings show only a small gap in separability scores—despite an $80\%$ (Figure 2, upper middle) difference in classification accuracy. This implies that the semantic separation of query hidden states is intrinsic to LLM inference rather than a main effect of ICL (see Appendix E.1 for the practical implication of this), making alignment the primary bottleneck in zero-shot performance. As shown in Figure 1 (C), the high-separability direction in zero-shot hidden states is misaligned with the label-difference vector, as reflected in low singular and composite alignment scores. Along this direction, label clusters remain poorly separated (low mean-based alignment) and explain little variance (low variance-based alignment). These findings align with prior work indicating that unembedding vectors often fail to capture the dominant separation axes in hidden state space [Cho et al., 2025b]. + +Given the volatility of ICL accuracy across settings with different demonstration numbers and input formats, we investigate whether the phase transition persists across settings, and whether accuracy differences can similarly be attributed to alignment properties of hidden states. We consider three settings: (1) Varying the number of demonstrations from 0 to 24 in increments of 4; (2) Changing the demonstration selection strategy to kNN retrieval where demonstrations with the closest zero-shot embeddings to each query are chosen; (3) Replacing original demonstration labels with semantically uninformative symbols like "@" and "#". Figure 3 reports the results averaged across datasets. + +Phase transition is a robust hallmark of ICL Figure 3 shows that the phase transition pattern persists across all three settings. In Figure 3 (A), it is evident at all demonstration counts except 0. Figure 3 (B) confirms that principled demonstration selection (via kNN) preserves instead of interfering with the transition. Even in Figure 3 (C), where labels are replaced by symbols, the two-stage pattern in effective dimension remains—distinguishing it from zero-shot, where effective dimension rises monotonically—though the post-transition alignment surge is dampened. + +Phase transition holds in open-ended settings To test whether the phase transition pattern occurs in tasks beyond classification, i.e., open-ended generative tasks, where ICL is also frequently applied, we consider the following task: the queries assume the format "Praise/Critique {subject}", where {subject} is the name of a food (e.g., tapas). The labels are reviews for the subject satisfying the sentiment requirement, generated using GPT-4o [OpenAI et al., 2024], for instance, "Praise tapas $\rightarrow$ The tapas assortment at this restaurant is absolutely delightful!". We track the layer-wise dynamics of the separability score and composite alignment $^{4}$ as representatives of the metrics evaluated on the 8-shot and 0-shot hidden states of this task. The results in Figure 4 mirror those in Figure 2, where + +![](images/aab129ff24dc9448d64082fc33a1aae590df5fe09113cf2a676cffe1761a74ab.jpg) +(a) Varying number of demonstrations + +![](images/f0d15df0fdb219d5ea24004bfa05c4de144f61b1fe786c11e84a7bf0a117c2e6.jpg) +Llama2-70B: Random Selection Acc.: 80.57%; KNN Selection Acc.: 88.01% +(b) KNN demonstration selection +(c) Symbolized demonstration labels +Figure 3: Layer-wise trends of separability and alignment measures in different ICL settings. (A) Phase transition is evident under demonstration numbers from 4 to 24. Accuracy improvements of increasing demonstrations are reflected by consistently improving alignment measures. (B) Changing the demonstration selection method to kNN retrieval preserves phase transition and improves accuracy through enhancing alignment. (C) Using uninformative demonstration labels hurts accuracy due to decreased alignment of hidden states, yet a similar phase transition is evident. + +![](images/c9e4e386cca605607424cec2138ce5cdab4237bba6acaa0898cea45f53f15db2.jpg) + +the few-shot and zero-shot hidden states exhibit similar separability properties across layers, but the surge in composite alignment beginning from mid-layers is specific to few-shot hidden states. + +![](images/f719ca2148d8c2e3d0600cb46997bb9aeb864f21e0bc776e4a55e0b233ccd8c9.jpg) +(a) Layer-wise separability score: 0-shot vs. 8-shot +Figure 4: (A) In the generation setting, the separability score exhibits almost identical trends in the 0-shot and 8-shot cases. (B) In the 8-shot case, the phase-transition of composite alignment is pronounced. + +![](images/fa8cb97558debb18fe3992592f2d6cf28e561fbf6e6fdcd8d95a45bc1c86ae93.jpg) +(b) Layer-wise composite alignment: 0-shot vs. 8-shot + +Alignment explains accuracy differences across ICL settings We find that: accuracy differences between ICL settings are consistently reflected in alignment measures. Specifically, in Figure 3 (A), increasing the number of demonstrations from 4 to 24 produces minimal changes + +in separability, while alignment measures improve in a consistent manner as the trend curves are shifted versions of one another. Effective dimension also decreases steadily, suggesting a higher concentration of hidden states along label-unembedding directions. Figure 3 (B) similarly shows that the accuracy gains from kNN-selected demonstrations correspond to stronger alignment and lower effective dimension. In Figure 3 (C), the accuracy drop from symbolic label replacement aligns with a flattened post-transition rise in alignment measures, resembling the case of zero-shot. + +# 5.2 Semantic interpretation of alignment dynamics + +To understand how the surge in directional alignment after the phase transition leads to high output alignment and successful decoding of task-related labels at the final layer, we conduct a case study on the SST-2 dataset to interpret hidden-state alignment dynamics. + +Surge in alignment concurs with the encoding of label-relevant semantics First, we compute output alignment (logit lens accuracy) across all layers and compare its trajectory to directional alignment measures. As shown in Figure 5, their strong correlation indicates that output alignment rises in sync with directional alignment. This suggests that as alignment improves, label-relevant + +semantics are injected into hidden states via consecutive layer updates, enabling correct label decoding even at intermediate layers. To support this, we decode the top right singular vectors of hidden states near the transition point. Figure 5 (B) reveals a sharp semantic shift: while layer 20 produces irrelevant tokens, the SST-2 label token negative emerges as the second most probable token in layer 21—immediately post-transition. This confirms that post-transition layers elevate label-relevant directions in both the semantic and variance structure of the hidden states. + +![](images/d572204f9a6d23636eb017624b0b3a33ab757291289ae6f82460fe1a2c7f2577.jpg) + +![](images/c026706f532aa1d7181b834995cb4fd817ca3a32f1fd6299fd280d9567195d27.jpg) + +![](images/b76e4f7ad30fd3a553b4726a697f6b5948ea938d7d7a457447d58ee9060a26c4.jpg) +Figure 5: Dynamics of alignment measures and semantics of post-transition hidden states. (A) Strong correlation between output and directional alignment; (B) Surge in alignment measures concur with encoding of label-related semantics; (C) Post-transition layers, except for the last ones, filter out unrelated semantics and retain the related ones. Refer to Appendix G for more semantics decoding cases. + +tions are filtered, leading to a progressive amplification of label-relevant information in the hidden states and a suppression of the irrelevant semantics. However, in the final layers, this pattern reverses: label-related directions are filtered, and label-irrelevant semantics are reintroduced. This shift corresponds to the slight drop in output alignment in the final layers in Figure 5 (A), and aligns with prior findings that late layers in LLMs tend to encode high-frequency, semantically uninformative tokens [Sharma et al., 2023], which may interfere with the expression of task-relevant content. The same phenomenon also occurs in other datasets as presented in Appendix G.4. + +Layer-wise pattern of semantic retention and filtering To better understand how exactly layer updates after the phase transition encode relevant semantics into hidden states, we analyze the semantic information retained or removed by each layer. Given the SVDs of the centered hidden states at two consecutive layers $\bar{H}_{l - 1} = U_{l - 1}\Sigma_{l - 1}V_{l - 1}^{\top}$ and $\bar{H}_l = U_l\Sigma_lV_l^\top$ , we compute the projection of the previous layer's singular directions onto the next layer's as $V_{l - 1}^{\top}V_{l}V_{l}^{\top}\in \mathbb{R}^{n\times d}$ . The rows of this matrix with larger norms are the principal directions of $H_{l - 1}$ that are retained in $H_{l}$ , while those with smaller norms indicate filtered directions. By decoding these directions, we identify the semantic information retained or removed by each layer. The results are reported in Figure 5 (C). In most layers after the phase transition, label-related semantic directions are consistently retained, and unrelated direc + +![](images/53cb3bbfbb78fe6a6452b2de0160fdf77f0818bad4f2190405e73b0c11a11b36.jpg) +Figure 6: Accuracy gains of rank-10 denoising. See Appendix G.5 for results in other settings. + +Low-rank denoising enhances label-relevant semantics To better understand the retention-and-filtering process, we test whether filtering can be accelerated—and label-relevant semantics enhanced—by denoising the hidden states. Specifically, we apply a rank-10 SVD approximation to the centered hidden states $\bar{H}$ , retaining only the top 10 directions of variation and adding the mean back. This denoising should + +theoretically remove less informative components and amplify label-relevant semantics. We then feed the denoised hidden states into the unembedding layer and measure output accuracy. As shown in Figure 6, low-rank denoising yields accuracy gains exceeding $10\%$ , especially in early post-transition layers where irrelevant semantics are just beginning to be filtered. These results validate low-rank denoising and support semantic retention and filtering as a core mechanism of post-transition layers. We explore the practical implication of this in Appendix E.2. + +Task vector properties of post-transition hidden states As visualized by Figure 1 (D), the simultaneous enhancement of both alignment properties and label-relevant semantics after the phase transition qualifies ICL query hidden states in middle-to-late layers as task vectors [Hendel et al., 2023]. Due to their improved alignment properties, steering or replacing zero-shot hidden states + +Normal Acc.: $80.57\%$ | w/o PTH Acc.: $33.11\%$ | w/o IH Acc.: $2.50\%$ | Random Heads Ablated Acc.: $79.13\%$ + +![](images/a14ddbbf19dbc60679267516814327e58e17a07efd6bb6d34fc9e1ef14509226.jpg) +Effective dimension + +![](images/780c3f74a9dbe96cf93c6507be938a990f27b3fd05626dd975b8fb39f3dc69f0.jpg) +Separability score + +![](images/faef4c044321d8134aeae939bbb2e2f8998c32eef6da64201dd3b06b3f036920.jpg) +Singular alignment + +Composite alignment +![](images/8cebe125da8fc024c25f3dc2c2cecabb3775f0cb1af936337de68f702c3f7aef.jpg) +Normal w/o PTH w/o IH Random Heads Ablated + +![](images/fe66a802fb1cf47f4e62f14ac99a6537cb6bf709ee18e82620dd3dfb19b1ad4e.jpg) +Mean-based alignment +Figure 7: Effects of attention heads ablation on the layer-wise separability and alignment measures. Ablating PTH significantly reduces separability, and ablating IH significantly reduces alignment. + +![](images/da7e96ea3e5976993144e906ba3de2b3e0fcf4658c496adc2fc6eaf9be74a567.jpg) +Var.-based alignment + +with ICL hidden states can align zero-shot hidden states better with the label unembedding vectors. Similarly, modifying zero-shot hidden states with ICL hidden states, which are label-informative, makes them more suited for the prediction of the correct labels. + +# 5.3 Significance of critical attention heads + +PTHs and IHs are attention heads with distinctive attention patterns. Given a token sequence like $\mathrm{[A][B_1][A][B_2]...[A][B_n][A]}$ , a PTH at the final [A] attends to the immediately preceding $\left[\mathbf{B}_n\right]$ , while an IH attends to tokens such as $\left[\mathbf{B}_1\right]-\left[\mathbf{B}_n\right]$ following earlier [A] positions. For example, in the ICL prompt "I don't like it. Answer: negative. I like it. Answer:" at the final " $\vdots$ ", a PTH attends to the preceding "Answer", while an IH attends to "negative" after the earlier " $\vdots$ ", effectively copying semantics of the demonstration label into the query's hidden state. By analyzing their effects on separability and alignment across layers, we gain a more fine-grained understanding of their role in ICL—beyond simply measuring their impact on final predictions. + +For each dataset and model, we rank all attention heads by their PTH and IH scores, which quantify how strongly they exhibit corresponding attention patterns on test prompts. We then ablate (zero out) the outputs of the top $10\%$ identified IHs and PTHs and measure the resulting effects on hidden state separability and alignment across layers as well as the output accuracy. As a control, we repeat the procedure with an equal number of randomly selected heads (excluding the top PTH/ih heads). Details on identifying PTHs and IHs are provided in Appendix H. + +PTHs induce separability, IHs induce alignment The results in Figure 7 confirm that PTHs and IHs are crucial not only for verbalizing ICL outputs [Cho et al., 2025a] but also for structuring hidden states both separability-wise and alignment-wise. Ablating random attention heads has a negligible effect (as shown by overlapping black and gray curves). In contrast, ablating PTHs or IHs significantly alters the measures, but with distinct effects. Ablating PTHs substantially reduces separability and also influences mean-based alignment (and thus composite alignment) which concerns the separation margin of the label clusters, but has a minimal impact on other alignment measures. Conversely, ablating IHs leaves separability largely intact but severely disrupts all alignment measures, and has a far greater impact on output alignment as measured by the accuracy. + +These results not only confirm a two-stage ICL process—first driven by separability, then by alignment—but also clarify its mechanism. PTHs, concentrated in early layers [Cho et al., 2025a], enhance separability by attending to query tokens and encoding distinct semantics into hidden states. IHs, emerging after a critical depth (30–40% of total layers [Halawi et al., 2024]), copy demonstration label embeddings into query hidden states via the residual stream, improving alignment with label unembedding directions. + +Table 1: Dataset-mean layer positions of top IH and PTH heads by percentage levels with statistically significant differences. + +
%IH meanPTH meanp-value
1%40.20333.3791.01 × 10-7
2%40.88436.4591.30 × 10-6
5%42.23836.4222.06 × 10-17
10%41.53535.8509.72 × 10-29
+ +Furthermore, in Appendix I.5, we show that + +PTHs and IHs contribute to ICL through the same mechanism even when the query's ground-truth label—previously considered essential for IHs [Cho et al., 2025a—is absent from demonstrations. + +PTHs in early layers, IHs in late layers To test whether PTHs and IHs align with our two-stage ICL characterization—inducing separability and alignment respectively—we examine their layer distributions. Specifically, we locate the top $1\%$ , $2\%$ , $5\%$ , and $10\%$ identified PTHs and IHs and perform Mann-Whitney U tests to assess differences across layers. As shown in Table 1, PTHs mainly occur in earlier layers, consistent with their role in inducing separability, while IHs appear later, with the differences being highly significant under the Mann-Whitney test. + +![](images/d8ba71deead826e472bd3aac7598d8b0103a6515909791c7c7dcfbc3e4d4f48c.jpg) +(a) Layer-wise separability score: PTH task vector +Figure 8: (A) PTH task vector increases separability after injection; (B) Injecting IH task vector recreates the phase-transition in alignment. + +![](images/c57b8c55d09ff0f091e0bf0070c025b05031774cbfb14602d64f4054aa436852.jpg) +(b) Layer-wise composite alignment: IH task vector + +Geometric effects of IH and PTH outputs as task vectors The ablation in Figure 7, though revealing how removing PTHs and IHs affects separability and alignment, does not show how they actively drive the geometric evolution of hidden states during inference. + +To address this, we follow Todd et al. [2024] and inject their outputs as task vectors into zero-shot hidden states at selected layers to observe induced metric changes. We construct task vectors using outputs of the top $10\%$ IHs and PTHs as in Appendix J. We inject the PTH-derived vector at layer $l = 2$ to track separability, and the IH-derived vector at $\frac{3}{8} L$ to track composite alignment. These layers correspond to where separability and alignment begin to shift markedly in Figure 2. Figure 8a shows that injecting PTH outputs as task vectors boosts separability (the green line surpassing the magenta line before convergence; see Appendix I.2 for similar trends across models), while injecting IH task vectors restores the ICL-specific spike in alignment metrics in zero-shot hidden states. + +![](images/37b607c6d79b544d9ce606575895056d56bdceb972733a17c235c3fd7b8cfe6f.jpg) +Figure 9: Average effect across datasets of steering zero-shot hidden states using IH outputs as task vectors. + +IH outputs as task vectors Since we have shown that IH outputs with ICL demonstrations can compensate for alignment deficits in hidden states, we have clarified how IH outputs as task vectors influence the forward computation of models: they steer hidden states to align with label-token unembeddings so these tokens can be decoded. This also explains why IH outputs themselves decode label-related tokens [Todd et al., 2024], as they must align with label unembedding directions to perform such steering. To validate this conclusion on our classification datasets (not considered in the original study), we extract task vectors from identified IH outputs and add them to layer-30 zero-shot hidden states of Llama2-70B. The substantial accuracy gains in Figure 9 support this conclusion. + +# 6 Conclusions and Limitations + +Conclusions This work unifies two major perspectives on in-context learning (ICL)—the roles of special attention heads and task vectors—within a geometric framework centered on separability and alignment of hidden states. We theoretically show that these two properties fully determine ICL classification accuracy and empirically demonstrate that ICL across classification and generation tasks improves accuracy over zero-shot mainly by enhancing alignment, explaining why ICL query hidden states serve effectively as task vectors. Our analysis reveals a phase transition: early layers boost separability, while later layers refine alignment with label unembedding vectors by filtering out label-irrelevant semantics and preserving task-relevant directions, coinciding with the emergence of label semantics in hidden states. Zooming into layers, we identify complementary roles of PTHs and IHs: PTHs in early layers enhance separability, while IHs emerging post-transition promote alignment—clarifying both the phase transition and the effectiveness of IH outputs as task vectors. + +**Limitations** Our analysis of the ICL hidden states of generation tasks is preliminary. In addition, our analysis focuses on inference-time behavior in pretrained models. Future work should investigate how the phase transition pattern of ICL hidden states emerges during training, which could shed light on the emergence of ICL capability. + +# Acknowledgments + +This work was supported by JST FOREST Program (Grant Number JPMJFR232K, Japan) and the Nakajima Foundation. We used ABCI 3.0 provided by AIST and AIST Solutions with support from "ABCI 3.0 Development Acceleration Use". + +# References + +T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, et al. Language models are few-shot learners. In Proceedings of the 34th International Conference on Neural Information Processing Systems, page 1877-1901, Online and Vancouver, Canada, 2020. URL https://dl.acm.org/doi/abs/10.5555/3495724.3495883. +S. Chan, A. Santoro, A. Lampinen, J. Wang, A. Singh, P. Richemond, J. McClelland, and F. Hill. Data distributional properties drive emergent in-context learning in transformers. In Proceedings of the 36th Advances in Neural Information Processing Systems, pages 18878-18891, New Orleans, USA, 2022. URL https://arxiv.org/abs/2205.05055. +H. Cho, M. Kato, Y. Sakai, and N. Inoue. Revisiting in-context learning inference circuit in large language models. In The Thirteenth International Conference on Learning Representations, 2025a. URL https://openreview.net/forum?id=xizpnYNvQq. +H. Cho, Y. Sakai, M. Kato, K. Tanaka, A. Ishii, and N. Inoue. Token-based decision criteria are suboptimal in in-context learning. In L. Chiruzzo, A. Ritter, and L. Wang, editors, Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 5378-5401, Albuquerque, New Mexico, Apr. 2025b. Association for Computational Linguistics. ISBN 979-8-89176-189-6. URL https://aclanthology.org/2025.naacl-long.278/. +I. Dagan, O. Glickman, and B. Magnini. The pascal recognising textual entailment challenge. In Machine learning challenges workshop, pages 177-190. Springer, 2005. URL https://link.springer.com/chapter/10.1007/11736790_9. +M.-C. De Marneffé, M. Simons, and J. Tonhauser. The commitmentbank: Investigating projection in naturally occurring discourse. In proceedings of Sinn und Bedeutung, volume 23, pages 107-124, 2019. URL https://ojs.uni-konstanz.de/sub/index.php/sub/article/view/601. +Q. Dong, L. Li, D. Dai, C. Zheng, J. Ma, R. Li, H. Xia, J. Xu, Z. Wu, T. Liu, B. Chang, X. Sun, L. Li, and Z. Sui. A survey on in-context learning, 2024. URL https://arxiv.org/abs/2301.00234. +N. Elhage, N. Nanda, C. Olsson, T. Henighan, N. Joseph, B. Mann, A. Askell, Y. Bai, A. Chen, T. Conerly, et al. A mathematical framework for transformer circuits. Transformer Circuits Thread, 1(1): 12, 2021. URL https://transformer-circuits.pub/2021/framework/index.html. +Gemini Team, R. Anil, S. Borgeaud, J.-B. Alayrac, J. Yu, R. Soricut, J. Schalkwyk, A. M. Dai, A. Hauth, K. Millican, D. Silver, M. Johnson, I. Antonoglou, J. Schrittwieser, A. Glaese, J. Chen, E. Pitler, T. Lillicrap, A. Lazaridou, O. First, et al. Gemini: A family of highly capable multimodal models, 2024. URL https://arxiv.org/abs/2312.11805. +A. Grattafori, A. Dubey, A. Jauhri, and A. P. et al. The llama 3 herd of models, 2024. URL https://arxiv.org/abs/2407.21783. +W. Gurnee and M. Tegmark. Language models represent space and time, 2024. URL https://arxiv.org/abs/2310.02207. +D. Halawi, J.-S. Denain, and J. Steinhardt. Overthinking the truth: Understanding how language models process false demonstrations, 2024. URL https://arxiv.org/abs/2307.09476. + +S. Han, J. Song, J. Gore, and P. Agrawal. Emergence and effectiveness of task vectors in in-context learning: An encoder decoder perspective, 2025. URL https://arxiv.org/abs/2412.12276. +R. Hendel, M. Geva, and A. Globerson. In-context learning creates task vectors. In H. Bouamor, J. Pino, and K. Bali, editors, Findings of the Association for Computational Linguistics: EMNLP 2023, pages 9318-9333, Singapore, Dec. 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023-findings-emnlp.624. URL https://aclanthology.org/2023.findings-emnlp.624/. +G. Jiang, C. Jiang, Z. Li, S. Xue, J. Zhou, L. Song, D. Lian, and Y. Wei. Unlocking the power of function vectors for characterizing and mitigating catastrophic forgetting in continual instruction tuning, 2025a. URL https://arxiv.org/abs/2502.11019. +J. Jiang, Y. Dong, J. Zhou, and Z. Zhu. From compression to expansion: A layerwise analysis of in-context learning, 2025b. URL https://arxiv.org/abs/2505.17322. +P. Kahardipraja, R. Achtibat, T. Wiegand, W. Samek, and S. Lapischkin. The atlas of in-context learning: How attention heads shape in-context retrieval augmentation. arXiv preprint arXiv:2505.15807, 2025. +A. Kirsanov, C.-N. Chou, K. Cho, and S. Chung. The geometry of prompting: Unveiling distinct mechanisms of task adaptation in language models. In L. Chiruzzo, A. Ritter, and L. Wang, editors, Findings of the Association for Computational Linguistics: NAACL 2025, pages 1855-1888, Albuquerque, New Mexico, Apr. 2025. Association for Computational Linguistics. ISBN 979-8-89176-195-7. URL https://aclanthology.org/2025-findings-naacl.100/. +A. Lee, X. Bai, I. Pres, M. Wattenberg, J. K. Kummerfeld, and R. Mihalcea. A mechanistic understanding of alignment algorithms: A case study on dpo and toxicity, 2024. URL https://arxiv.org/abs/2401.01967. +D. Li, Z. Liu, X. Hu, Z. Sun, B. Hu, and M. Zhang. In-context learning state vector with inner and momentum optimization, 2024. URL https://arxiv.org/abs/2404.11225. +X. Li and D. Roth. Learning question classifiers. In COLING 2002: The 19th International Conference on Computational Linguistics, 2002. URL https://www.aclweb.org/anthology/C02-1150. +J. Liu, D. Shen, Y. Zhang, B. Dolan, L. Carin, and W. Chen. What makes good in-context examples for GPT-3? In E. Agirre, M. Apidianaki, and I. Vulic, editors, Proceedings of Deep Learning Inside Out (DeeLIO 2022): The 3rd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures, pages 100–114, Dublin, Ireland and Online, May 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.deelio-1.10. URL https://aclanthology.org/2022.deelio-1.10/. +S. Liu, H. Ye, L. Xing, and J. Zou. In-context vectors: Making in context learning more effective and controllable through latent space steering, 2024. URL https://arxiv.org/abs/2311.06668. +Z. Liu, E. J. Michaud, and M. Tegmark. Omnigrok: Grokking beyond algorithmic data, 2023. URL https://arxiv.org/abs/2210.01117. +B. MacCartney and C. D. Manning. Modeling semantic containment and exclusion in natural language inference. In D. Scott and H. Uszkoreit, editors, Proceedings of the 22nd International Conference on Computational Linguistics (Coling 2008), pages 521-528, Manchester, UK, Aug. 2008. Coling 2008 Organizing Committee. URL https://aclanthology.org/C08-1066/. +S. Marks and M. Tegmark. The geometry of truth: Emergent linear structure in large language model representations of true/false datasets, 2024. URL https://arxiv.org/abs/2310.06824. +J. Merullo, C. Eickhoff, and E. Pavlick. Language models implement simple word2vec-style vector arithmetic, 2024. URL https://arxiv.org/abs/2305.16130. + +T. Mikolov, K. Chen, G. Corrado, and J. Dean. Efficient estimation of word representations in vector space, 2013. URL https://arxiv.org/abs/1301.3781. +nostalgebraist. Interpreting gpt: the logit lens, 2020. URL https://www.lesswrong.com/ posts/AcKRB8wDpdaN6v6ru/interpreting-gpt-the-logit-lens. +C. Olsson, N. Elhage, N. Nanda, N. Joseph, N. DasSarma, T. Henighan, B. Mann, A. Askell, Y. Bai, A. Chen, T. Conerly, D. Drain, D. Ganguli, Z. Hatfield-Dodds, D. Hernandez, S. Johnston, A. Jones, J. Kernion, L. Lovitt, K. Ndousse, D. Amodei, T. Brown, J. Clark, J. Kaplan, S. McCandlish, and C. Olah. In-context learning and induction heads, 2022. URL https://arxiv.org/abs/2209.11895. +OpenAI, J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, R. Avila, I. Babuschkin, S. Balaji, V. Balcom, P. Baltescu, H. Bao, M. Bavarian, J. Belgium, I. Bello, et al. Gpt-4 technical report, 2024. URL https://arxiv.org/abs/2303.08774. +C. F. Park, A. Lee, E. S. Lubana, Y. Yang, M. Okawa, K. Nishi, M. Wattenberg, and H. Tanaka. Icrl: Incontext learning of representations, 2024. URL https://arxiv.org/abs/2501.00070. +F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825-2830, 2011. URL https://www.jmlr.org/papers/volume12/pedregosa11a/pedregosa11a.pdf. +A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 2019. URL https://d4mucfpksywv.cloudfront.net/better-language-models/language-models.pdf. +G. Reddy. The mechanistic basis of data dependence and abrupt learning in an in-context classification task. In *The Twelfth International Conference on Learning Representations*, 2024. URL https://arxiv.org/abs/2312.03002. +P. Sharma, J. T. Ash, and D. Misra. The truth is in there: Improving reasoning in language models with layer-selective rank reduction. arXiv preprint arXiv:2312.13558, 2023. URL https://arxiv.org/abs/2312.13558. +S. Sia, D. Mueller, and K. Duh. Where does in-context learning $\backslash$ happen in large language models? In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=LLuSjg59an. +A. K. Singh, T. Moskovitz, F. Hill, S. C. Chan, and A. M. Saxe. What needs to go right for an induction head? a mechanistic study of in-context learning circuits and their formation. In *Forty-first International Conference on Machine Learning*, 2024. URL https://arxiv.org/abs/2404.07129. +R. Socher, A. Perelygin, J. Wu, J. Chuang, C. D. Manning, A. Ng, and C. Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In D. Yarowsky, T. Baldwin, A. Korhonen, K. Livescu, and S. Bethard, editors, Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1631-1642, Seattle, Washington, USA, Oct. 2013. Association for Computational Linguistics. URL https://aclanthology.org/D13-1170/. +J. Song, Z. Xu, and Y. Zhong. Out-of-distribution generalization via composition: a lens through induction heads in transformers. Proceedings of the National Academy of Sciences, 122(6): e2417182122, 2025. URL https://arxiv.org/abs/2408.09503. +E. Todd, M. L. Li, A. S. Sharma, A. Mueller, B. C. Wallace, and D. Bau. Function vectors in large language models, 2024. URL https://arxiv.org/abs/2310.15213. + +H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozière, N. Goyal, E. Hambro, F. Azhar, A. Rodriguez, A. Joulin, E. Grave, and G. Lample. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023. URL https://arxiv.org/abs/2302.13971. +S. Wang and C. Manning. Baselines and bigrams: Simple, good sentiment and topic classification. In H. Li, C.-Y. Lin, M. Osborne, G. G. Lee, and J. C. Park, editors, Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 90-94, Jeju Island, Korea, July 2012. Association for Computational Linguistics. URL https://aclanthology.org/P12-2018/. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The main claims made in the paper accurately summarizes the paper's contributions and scope. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We discuss the limitations of our work in Section 6. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: For our theoretical claims put forward in Section 3, we provide the complete proofs in Appendix A. In Appendix B we consider a generalization of the theory we proposed, the proof of which is also in Appendix B. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: We present the details of the implementations we used for the models, datasets, as well our procedures of conducting in-context learning in Appendix D. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example + +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: We have submitted the data and code as the supplementary material. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: The experiment settings and presented in Section 5 Appendix D. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [No] + +Justification: Most of the experiment results presented in this work are obtained using fully deterministic procedures with no randomness involved. The only randomness is in the random selection of demonstrations in ICL, but its impact on the results is minimal, so we do not construct error bars over random seeds. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. + +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We provide such information in Appendix D. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We conduct the research according to the NeurIPS Code of Ethics in every respect. + +Guidelines: + +The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: We discuss the potential societal impacts of our findings in Appendix K. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. + +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: The paper poses no such risks in any circumstances. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We provide full reference to the assets we used, primarily in Section 5 + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URI. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. + +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +Justification: We provide extensive details to the dataset we generated in Appendix I and Appendix D. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve human subjects and no IRB approvals are required. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. + +We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [Yes] + +Justification: LLM is used to generate one of the datasets used in the experiments. We introduce this dataset in detail in Appendix D and Appendix I. Apart from that, LLM is not related to any aspects of the core methodology in this paper. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# Appendices + +# A Proofs related to Theorem 1 + +We first show that $S^*$ is attained at some point $v^*$ in the hypersphere $\mathbb{S}^{d-1} = \{ \boldsymbol{u} : \boldsymbol{u} \in \mathbb{R}^d, \| \boldsymbol{u} \|_2 = 1 \}$ though $\mathbb{S}^{d-1}$ is an infinite set and $S(\boldsymbol{u})$ is not continuous. Observe that each $\boldsymbol{h}_i$ in $H$ partitions $\mathbb{S}^{d-1}$ into two hyperhemispheres. One is $\{ \boldsymbol{u} : \boldsymbol{u} \in \mathbb{R}^d, \| \boldsymbol{u} \|_2 = 1, \boldsymbol{u}^T \boldsymbol{h}_i \geq 0 \}$ and the other is $\{ \boldsymbol{u} : \boldsymbol{u} \in \mathbb{R}^d, \| \boldsymbol{u} \|_2 = 1, \boldsymbol{u}^T \boldsymbol{h}_i < 0 \}$ . Hence, as long as the number of queries in the dataset $n$ is finite, $\boldsymbol{h}_1, \dots, \boldsymbol{h}_n$ will partition $\mathbb{S}^{d-1}$ into a finite number of "cells". Each cell corresponds to the elements in $\mathbb{S}^{d-1}$ that satisfy a certain sign sequence $[\operatorname{sgn}(\boldsymbol{u}^T \boldsymbol{h}_1), \dots, \operatorname{sgn}(\boldsymbol{u}^T \boldsymbol{h}_n)] \in \{1, 0, -1\}^n$ . Hence, $S(\boldsymbol{u})$ is constant on each of the cells, and the supremum (or the maximum) value $S^*$ is attained on one of the cells. + +We then show the proof of Theorem 1: + +Proof First, consider the case where $\mathbb{V}$ only consists of $y_{A}$ and $y_{B}$ . Then $\pmb{E} \in \mathbb{R}^{2 \times d}$ and the two rows are $\pmb{E}_{y_A}$ and $\pmb{E}_{y_B}$ . Then we have + +$$ +\begin{array}{l} \operatorname {A c c} = \frac {1}{n} \sum_ {i = 1} ^ {n} \mathbb {1} \left(y _ {i} = \arg \max _ {v _ {j}} \frac {\boldsymbol {E} _ {v _ {j}} \boldsymbol {h} _ {i}}{\sum_ {v _ {j} ^ {\prime} \in \left\{y _ {A} , y _ {B} \right\}}} \boldsymbol {E} _ {v _ {j} ^ {\prime}} \boldsymbol {h} _ {i}\right) (3) \\ = \frac {1}{n} \left(\sum_ {i \in \mathbb {N} _ {1}} \mathbb {1} \left(\boldsymbol {E} _ {y _ {A}} \boldsymbol {h} _ {i} \geq \boldsymbol {E} _ {y _ {B}} \boldsymbol {h} _ {i}\right) + \sum_ {i \in \mathbb {N} _ {2}} \mathbb {1} \left(\boldsymbol {E} _ {y _ {A}} \boldsymbol {h} _ {i} < \boldsymbol {E} _ {y _ {B}} \boldsymbol {h} _ {i}\right)\right) \quad \text {d e f i n i t i o n o f a r g m a x} (4) \\ = \frac {1}{n} \left(\sum_ {i \in \mathbb {N} _ {1}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}}\right) \boldsymbol {h} _ {i} \geq 0 \right] + \sum_ {i \in \mathbb {N} _ {2}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}}\right) \boldsymbol {h} _ {i} < 0 \right] \quad \text {r e o r g a n i z i n g t e r m s} \right. (5) \\ = \frac {1}{n} \left(\sum_ {i \in \mathbb {N} _ {1}} \mathbb {1} \left[ \left(\frac {\boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}}}{\| \boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}} \| _ {2}}\right) \boldsymbol {h} _ {i} \geq 0 \right] + \sum_ {i \in \mathbb {N} _ {2}} \mathbb {1} \left[ \left(\frac {\boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}}}{\| \boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}} \| _ {2}}\right) \boldsymbol {h} _ {i} < 0 \right] \quad \text {l i n e a r i t y} \right. (6) \\ \leq \sup _ {\boldsymbol {u} \in R ^ {d}, \left\| \boldsymbol {u} \right\| _ {2} = 1} \frac {1}{n} \left(\sum_ {i \in \mathbb {N} _ {1}} \mathbb {1} \left(\boldsymbol {u} ^ {T} \boldsymbol {h} _ {i} \geq 0\right) + \sum_ {i \in \mathbb {N} _ {2}} \mathbb {1} \left(\boldsymbol {u} ^ {T} \boldsymbol {h} _ {i} < 0\right)\right) \quad \text {s u p r e m u m} (7) \\ = S ^ {*}. (8) \\ \end{array} +$$ + +Here, when $\mathbf{E}_{y_A}\mathbf{h}_i = \mathbf{E}_{y_B}\mathbf{h}_i$ , without loss of generality, we break the tie by letting the predicted label to be $y_A$ for $x_i$ . + +When there are more tokens in $\mathbb{V}$ , it holds true that $\mathbb{1}(y_i = \arg \max_{\nu_j} \frac{\pmb{E}_{\nu_j} \pmb{h}_i}{\sum_{\nu_j'} \{\pmb{y}_A, \pmb{y}_B\} \pmb{E}_{\nu_j'} \pmb{h}_i}) \leq \mathbb{1}(y_i = \arg \max_{\nu_j} \frac{\pmb{E}_{\nu_j} \pmb{h}_i}{\sum_{\nu_j' \in \{Y_A, Y_B\}} \pmb{E}_{\nu_j'} \pmb{h}_i})$ . Hence, we have $Acc = \frac{1}{n} \sum_{i=1}^{n} \mathbb{1}(y_i = \arg \max_{\nu_j} \frac{\pmb{E}_{\nu_j} \pmb{h}_i}{\sum_{\nu_j' \in \{Y_A, Y_B\}} \pmb{E}_{\nu_j'} \pmb{h}_i}) \leq S^*$ . + +By the definition of $\pmb{u}^{*}$ , we have + +$$ +\frac {1}{n} \left(\sum_ {i \in \mathbb {N} _ {1}} \mathbb {1} \left(\boldsymbol {u} ^ {*}, T \boldsymbol {h} _ {i} \geq 0\right) + \sum_ {i \in \mathbb {N} _ {2}} \mathbb {1} \left(\boldsymbol {u} ^ {*}, T \boldsymbol {h} _ {i} < 0\right)\right) = S ^ {*}. \tag {9} +$$ + +If $\frac{\pmb{E}y_A - \pmb{E}y_B}{|\pmb{E}y_A - \pmb{E}y_B|_2} = c\pmb{u}^*$ for some positive constant $c$ , then + +$$ +\begin{array}{l} \frac {1}{n} \left(\sum_ {i \in \mathbb {N} _ {1}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}}\right) ^ {T} \boldsymbol {h} _ {i} \geq 0 \right] + \sum_ {i \in \mathbb {N} _ {2}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}}\right) ^ {T} \boldsymbol {h} _ {i} < 0) \right]\right) (10) \\ = \frac {1}{n} \left(\sum_ {i \in \mathbb {N} _ {1}} \mathbb {1} \left(\boldsymbol {u} ^ {*}, T \boldsymbol {h} _ {i} \geq 0\right) + \sum_ {i \in \mathbb {N} _ {2}} \mathbb {1} \left(\boldsymbol {u} ^ {*}, T \boldsymbol {h} _ {i} < 0\right)\right). (11) \\ \end{array} +$$ + +We already showed that + +$$ +\begin{array}{l} \frac {1}{n} \sum_ {i = 1} ^ {n} \mathbb {1} \left(y _ {i} = \underset {v _ {j}} {\arg \max } \frac {\boldsymbol {E} _ {v _ {j}} \boldsymbol {h} _ {i}}{\sum_ {v _ {j} ^ {\prime} \in \left\{y _ {A} , y _ {B} \right\}} \boldsymbol {E} _ {v _ {j} ^ {\prime}} \boldsymbol {h} _ {i}}\right) (12) \\ = \frac {1}{n} \left(\sum_ {i \in \mathbb {N} _ {1}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}}\right) ^ {T} \boldsymbol {h} _ {i} \geq 0 \right] + \sum_ {i \in \mathbb {N} _ {2}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {A}} - \boldsymbol {E} _ {y _ {B}}\right) ^ {T} \boldsymbol {h} _ {i} < 0) \right]. \right. (13) \\ \end{array} +$$ + +When $\max_{v\in \mathbb{V},v\notin y_{A},y_{B}}\pmb{E}_{v}\pmb{h}_{i} < \max (\pmb{E}_{y_{A}}\pmb{h}_{i},\pmb{E}_{y_{B}}\pmb{h}_{i}),\forall i,$ we have + +$$ +\begin{array}{l} \frac {1}{n} \sum_ {i = 1} ^ {n} \mathbb {1} \left(y _ {i} = \arg \max _ {v _ {j}} \frac {\boldsymbol {E} _ {v _ {j}} \boldsymbol {h} _ {i}}{\sum_ {v _ {j} ^ {\prime} \in \{y _ {A} , y _ {B} \}} \boldsymbol {E} _ {v _ {j} ^ {\prime}} \boldsymbol {h} _ {i}}\right) (14) \\ = \frac {1}{n} \sum_ {i = 1} ^ {n} \mathbb {1} \left(y _ {i} = \arg \max _ {v _ {j}} \frac {\boldsymbol {E} _ {v _ {j}} \boldsymbol {h} _ {i}}{\sum_ {v _ {j} \in 1 , \dots , | \mathrm {V} |} \boldsymbol {E} _ {v _ {j} ^ {\prime}} \boldsymbol {h} _ {i}}\right) (15) \\ = \text {A c c .} (16) \\ \end{array} +$$ + +Hence, we have $\mathrm{Acc} = S^{*}$ when $\max_{v\in \mathbb{V},v\notin y_A,y_B}\pmb {E}_v\pmb {h}_i < \max (\pmb {E}_{y_A}\pmb {h}_i,\pmb {E}_{y_B}\pmb {h}_i),\forall i$ and $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2} = c\pmb{u}^*$ . + +# B Generalization of Theorem 1 + +In this section, we consider a generalization of Theorem 1 where $x_{1},\ldots ,x_{n}$ are allowed to have $m < n$ labels, i.e. $y_{i}\in \{y_{1},\dots,y_{m}\} ,\forall i.$ Same as before, let $\mathbb{N}_j = \{i:y_i = y_j\} ,j = 1,\dots,m.$ $\mathbb{N}_j,j = 1,\dots,m$ are pairwise disjoint and $\bigcup_{j = 1}^{m}|\mathbb{N}_{j}| = \{1,\dots,n\}$ . Let $S_{j,k}(\pmb {u}) = \frac{1}{|\mathbb{N}_j| + |\mathbb{N}_k|} (\sum_{i\in \mathbb{N}_j}\mathbb{1}(\pmb {u}^T\pmb {h}_i\geq 0) + \sum_{i\in \mathbb{N}_k}\mathbb{1}(\pmb {u}^T\pmb {h}_i < 0))$ and let $\pmb{u}_{j,k}^{*} = \arg \max_{\pmb {u}\in \mathbb{S}^{d - 1}}S_{j,k}(\pmb {u})$ for $j,k\in 1,\dots,m$ , and $S_{j,k}(\pmb{u}_{j,k}^{*}) = S_{j,k}^{*}$ For each $j$ and $k$ $u_{j,k}^{*}$ is guaranteed to be in $\mathbb{S}^{d - 1}$ because only $|\mathbb{N}_j| + |\mathbb{N}_k| < n$ hyperplanes are involved in separating separating $\mathbb{S}^{d - 1}$ , resulting in a smaller number of cells (guaranteed to be finite) compared to the case of $x_{1},\ldots ,x_{n}$ having only $y_{1},y_{2}$ as labels. Then, we have the following result. + +Theorem 2 Acc $\leq \frac{1}{n(m - 1)} (\sum_{k = 1}^{m}\sum_{j = k + 1}^{m}(|\mathbb{N}_k| + |\mathbb{N}_j|)S_{j,k}^*)$ . The equality is achieved when for all unordered pairs $(j,k), j,k \in 1, \ldots, m$ , $\max_{v \in \mathbb{V}, v \notin \{y_j, y_k\}} \pmb{E}_v \pmb{h}_i < \max(\pmb{E}_{y_j} \pmb{h}_i, \pmb{E}_{y_k} \pmb{h}_i), \forall i \in N_j \cup N_k$ and $\pmb{E}_{y_j} - \pmb{E}_{y_k} = c_{j,k} \pmb{u}_{j,k}^*$ for some positive constant $c_{j,k}$ . + +The theorem states that in the case of the queries having more than two labels, the dataset classification accuracy is controlled by the pairwise separability and alignment properties of the hidden states. After calculating the separability of the hidden states of queries with labels $y_{j}$ and $y_{k}$ for each $(j,k)$ , the dataset classification accuracy is then upper-bounded by these separability values weighted by the number of queries with different labels. + +Similarly, the accuracy can match this upper bound if each pairwise hidden states collection is maximally separated along a direction parallel to the difference of the unembedding vectors of the corresponding labels. This theorem shows that the otherwise difficult multiclass classification problem is geometrically equivalent to the combination of a series of binary classification subproblems. And the geometric properties of the multiclass classification problem can be understood by studying the much more tractable geometry of the constituent binary subproblems. + +Proof First, note the following relations + +$$ +\begin{array}{l} \operatorname {A c c} = \frac {1}{n} \sum_ {i = 1} ^ {n} \mathbb {1} \left(y _ {i} = \arg \max _ {v _ {j}} \frac {\boldsymbol {E} _ {v _ {j}} \boldsymbol {h} _ {i}}{\sum_ {j ^ {\prime} \in 1 , \dots , | \mathbb {V} |} \boldsymbol {E} _ {v ^ {\prime} j} \boldsymbol {h} _ {i}}\right) \\ \leq \frac{1}{n}\sum_{i = 1}^{n}\mathbb{1}(y_{i} = \arg \max_{v_{j}}\frac{\boldsymbol{E}_{v_{j}}\boldsymbol{h}_{i}}{\sum_{v_{j}^{\prime}\in\{y_{1},\ldots,y_{k}\}}\boldsymbol{E}_{v_{j}^{\prime}}\boldsymbol{h}_{i}}) \\ = \frac {1}{n} \left(\sum_ {k = 1} ^ {m} \sum_ {x _ {i} \in \mathbb {N} _ {k}} \mathbb {1} \left(\boldsymbol {E} _ {y _ {k}} \boldsymbol {h} _ {i} \geq \boldsymbol {E} _ {y _ {j}} \boldsymbol {h} _ {i}, \forall j \neq k, j \in 1, \dots , m\right)\right) \\ = \frac {1}{n} \left(\sum_ {k = 1} ^ {m} \sum_ {x _ {i} \in \mathbb {N} _ {k}} \min _ {j \neq k, j \in 1, \dots , m} \mathbb {1} \left(\boldsymbol {E} _ {y _ {k}} \boldsymbol {h} _ {i} \geq \boldsymbol {E} _ {y _ {j}} \boldsymbol {h} _ {i}\right)\right) \quad \text {i n d i c a t o r f u n c t i o n i s e i t h e r 1 o r 0} \\ \leq \frac {1}{n} \left(\sum_ {k = 1} ^ {m} \sum_ {x _ {i} \in \mathbb {N} _ {k}} \frac {1}{m - 1} \sum_ {j, j \neq k, j \in 1, \dots , m} \mathbb {1} \left(\boldsymbol {E} _ {y _ {k}} \boldsymbol {h} _ {i} \geq \boldsymbol {E} _ {y _ {j}} \boldsymbol {h} _ {i}\right)\right) \\ = \frac {1}{n (m - 1)} \left(\sum_ {k = 1} ^ {m} \sum_ {j, j \neq k, j \in 1, \dots , m x _ {i} \in \mathbb {N} _ {k}} \mathbb {1} \left(\boldsymbol {E} _ {y _ {k}} \boldsymbol {h} _ {i} \geq \boldsymbol {E} _ {y _ {j}} \boldsymbol {h} _ {i}\right)\right) \\ = \frac {1}{n (m - 1)} \left(\sum_ {k = 1} ^ {m} \sum_ {j, j \neq k, j \in 1, \dots , m x _ {i} \in \mathbb {N} _ {k}} \sum_ {i} \mathbb {1} \left(\frac {\boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}}}{\| \boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}} \| _ {2}} \boldsymbol {h} _ {i} \geq 0\right)\right). \\ \end{array} +$$ + +Note that the sum is over all ordered pairs $(j,k)$ s.t. $j,k\in 1,\dots,m,j\neq k$ . Consider the case of $(k = 1,j = 2)$ and $(k = 2,j = 1)$ , then both $\mathbb{1}(\pmb{E}_{y_k}\pmb{h}_i\geq \pmb{E}_{y_j}\pmb{h}_i)$ and $\mathbb{1}(\pmb{E}_{y_j}\pmb{h}_i\geq \pmb{E}_{y_k}\pmb{h}_i)$ appear in the sum. Hence, the sum can be taken over all unordered pairs $(j,k)$ and rewritten as: + +$$ +\begin{array}{l} \frac {1}{n (m - 1)} \left(\sum_ {k = 1} ^ {m - 1} \sum_ {j = k + 1} ^ {m} \sum_ {x _ {i} \in \mathbb {N} _ {k} \cup \mathbb {N} _ {j}} \left(\mathbb {1} \left(\frac {\boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}}}{\| \boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}} \| _ {2}} \boldsymbol {h} _ {i} \geq 0\right) + \mathbb {1} \left(\frac {\boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}}}{\| \boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}} \| _ {2}} \boldsymbol {h} _ {i} < 0\right)\right)\right) (17) \\ \leq \frac {1}{n (m - 1)} \left(\sum_ {k = 1} ^ {m - 1} \sum_ {j = k + 1} ^ {m} \left(| \mathbb {N} _ {k} | + | \mathbb {N} _ {j} |\right) S _ {j, k} ^ {*}\right). (18) \\ \end{array} +$$ + +Hence, we have + +$$ +\operatorname {A c c} \leq \frac {1}{n (m - 1)} \left(\sum_ {k = 1} ^ {m - 1} \sum_ {j = k + 1} ^ {m} \left(| \mathbb {N} _ {k} | + | \mathbb {N} _ {j} |\right) S _ {j, k} ^ {*}\right). \tag {19} +$$ + +As a proof of concept, plug-in $m = 2$ , then the bound becomes $\frac{1}{n} (|N_1| + |N_2|)S^* = S^*$ since $|N_1| + |N_2| = n$ , which matches the result in Theorem 1. + +To establish the equality conditions, as in the proof of Theorem 1, if $\pmb{E}_{y_j} - \pmb{E}_{y_k} = c_{j,k}\pmb{u}_{j,k}^*$ for some positive constant $c_{j,k}$ , then + +$$ +\begin{array}{l} \sum_ {i \in \mathbb {N} _ {k}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}}\right) ^ {T} \boldsymbol {h} _ {i} \geq 0 \right] + \sum_ {i \in \mathbb {N} _ {j}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}}\right) ^ {T} \boldsymbol {h} _ {i} < 0) \right] (20) \\ = \sum_ {i \in \mathbb {N} _ {k}} \mathbb {1} \left(\boldsymbol {u} _ {j, k} ^ {*}, T \boldsymbol {h} _ {i} \geq 0\right) + \sum_ {i \in \mathbb {N} _ {j}} \mathbb {1} \left(\boldsymbol {u} _ {j, k} ^ {*}, T \boldsymbol {h} _ {i} < 0\right) = \left(| N _ {j} | + | N _ {k} |\right) S _ {j, k} ^ {*}. (21) \\ \end{array} +$$ + +We also know that if $\max_{\nu \in \mathbb{V}, \nu \notin y_j, y_k} \pmb{E}_{\nu} \pmb{h}_i < \max(\pmb{E}_{y_j} \pmb{h}_i, \pmb{E}_{y_k} \pmb{h}_i), \forall i \in N_j \cup N_k$ , then + +$$ +\begin{array}{l} \sum_ {i \in \mathbb {N} _ {k}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}}\right) ^ {T} \boldsymbol {h} _ {i} \geq 0 \right] + \sum_ {i \in \mathbb {N} _ {j}} \mathbb {1} \left[ \left(\boldsymbol {E} _ {y _ {k}} - \boldsymbol {E} _ {y _ {j}}\right) ^ {T} \boldsymbol {h} _ {i} < 0) \right] (22) \\ = \sum_ {i \in \mathbb {N} _ {k} \cup \mathbb {N} _ {j}} \mathbb {1} \left(y _ {i} = \arg \max _ {v _ {j}} \frac {\boldsymbol {E} _ {v _ {j}} \boldsymbol {h} _ {i}}{\sum v _ {j} ^ {\prime} \in \left\{y _ {j} , y _ {k} \right\} \boldsymbol {E} _ {v _ {j} ^ {\prime}} \boldsymbol {h} _ {i}}\right) (23) \\ = \sum_ {i \in \mathbb {N} _ {k} \cup \mathbb {N} _ {j}} \mathbb {1} \left(y _ {i} = \arg \max _ {v _ {j}} \frac {\boldsymbol {E} _ {v _ {j}} \boldsymbol {h} _ {i}}{\sum_ {v _ {j} \in 1 , \dots , | \mathbb {V} |} \boldsymbol {E} _ {v _ {j} ^ {\prime}} \boldsymbol {h} _ {i}}\right). (24) \\ \end{array} +$$ + +Finally, note that + +$$ +\begin{array}{l} \operatorname {A c c} = \frac {1}{n} \sum_ {i = 1} ^ {n} \mathbb {1} \left(y _ {i} = \underset {v _ {j}} {\arg \max } \frac {\boldsymbol {E} _ {v _ {j}} \boldsymbol {h} _ {i}}{\sum_ {v _ {j} ^ {\prime} \in \{y _ {1} , y _ {2} \}} \boldsymbol {E} _ {v _ {j} ^ {\prime}} \boldsymbol {h} _ {i}}\right) (25) \\ = \frac {1}{n} \frac {1}{m - 1} \sum_ {k = 1} ^ {m - 1} \sum_ {j = l + 1} ^ {m} \sum_ {i \in \mathbb {N} _ {j} \cup \mathbb {N} _ {k}} \mathbb {1} \left(y _ {i} = \arg \max _ {v _ {j}} \frac {\boldsymbol {E} _ {v _ {j}} \cdot \boldsymbol {h} _ {i}}{\sum_ {v _ {j} \in 1 , \dots , | \mathbb {V} |} \boldsymbol {E} _ {v _ {j} ^ {\prime}} \cdot \boldsymbol {h} _ {i}}\right). (26) \\ \end{array} +$$ + +because for each $\mathbb{N}_j$ , the term $\mathbb{1}(y_i = \arg \max_{v_j} \frac{\pmb{E}_{v_j} \pmb{h}_i}{\sum_{v_j \in 1, \dots, |\mathbb{V}|} \pmb{E}_{v_j'} \pmb{h}_i})$ appears $(m - 1)$ times in the summation for each $i \in \mathbb{N}_j$ . Hence, combining everything, we have + +$$ +\begin{array}{l} \operatorname {A c c} = \frac {1}{n} \frac {1}{m - 1} \sum_ {k = 1} ^ {m - 1} \sum_ {j = k + 1} ^ {m} \sum_ {i \in \mathbb {N} _ {j} \cup \mathbb {N} _ {k}} \mathbb {1} \left(y _ {i} = \arg \max _ {v _ {j}} \frac {\boldsymbol {E} _ {v _ {j}} \boldsymbol {h} _ {i}}{\sum_ {v _ {j} \in 1 , \dots , | \mathbb {V} |} \boldsymbol {E} _ {v _ {j} ^ {\prime}} \boldsymbol {h} _ {i}}\right) (27) \\ = \frac {1}{n (m - 1)} \sum_ {k = 1} ^ {m - 1} \sum_ {j = k + 1} ^ {m} \left(| N _ {j} | + | N _ {k} |\right) S _ {j, k} ^ {*}. (28) \\ \end{array} +$$ + +The proof is thus complete. + +![](images/55422ba6c3d34660d9ac463572dba673fe4a64461d656c6ecb6cbd7251884fb0.jpg) + +# C Calculation of geometric measures + +1. Separability score We train the logistic classifier on half of the points in $\pmb{H}$ and take its prediction accuracy on the other half as the estimated maximum separability of $\pmb{H}$ . We use the scikit-learn [Pedregosa et al., 2011] default implementation of the logistic classifier, and set the number of iterations to be 100. +2. Output alignment We feed $\pmb{H}$ into the output unembedding layer of the model to get the model's predictions of the query labels based on $\pmb{H}$ and calculate the percentage of correct predictions. +3. Singular alignment First obtain the centered version of $\pmb{H}$ , denoted as $\bar{H}$ . Then calculate its singular value decomposition, namely $\bar{\pmb{H}} = \pmb{U}\pmb{\Sigma}\pmb{V}^T$ , and compute the absolute values of cosine similarities between the top-r singular vectors and the difference of label unembedding vectors $\pmb{E}_{y_A} - \pmb{E}_{y_B}$ . The absolute value is taken since the sign of the singular vectors is arbitrary. In practice, we calculate the values using the top-2 singular vectors and report the maximum of the two. +4. Variance-based alignment First normalize $\pmb{E}_{y_A} - \pmb{E}_{y_B}$ as $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}$ . Then the ratio of variance (w.r.t. its mean) of $\pmb{H}$ explained along $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}$ is $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2} \frac{T}{n} \frac{\bar{\pmb{H}}^T \bar{\pmb{H}}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}$ , which we take to be the variance-based alignment of $\pmb{H}$ . +5. Mean-based alignment First compute the means of label clusters (subsets of $\pmb{H}$ with each of the two different labels), i.e. $\frac{1}{|\mathbb{N}_A|}\sum_{i\in \mathbb{N}_A}\pmb {h}_i$ and $\frac{1}{|\mathbb{N}_B|}\sum_{i\in \mathbb{N}_B}\pmb {h}_i$ . Then take the difference and compute the value of its projection onto $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}$ , i.e. $(\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2})^T (\frac{1}{\mathbb{N}_A}\sum_{i\in |\mathbb{N}_A|}\pmb {h}_i - \frac{1}{|\mathbb{N}_B|}\sum_{i\in \mathbb{N}_B}\pmb {h}_i)$ . Then, calculate the weighted average of the variances of the two label clusters along $\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}$ , i.e. $\frac{|\mathbb{N}_A|\operatorname{Var}(\{\pmb{h}_i^T\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}:i\in\mathbb{N}_A\}) + |\mathbb{N}_B|\operatorname{Var}(\{\pmb{h}_i^T\frac{\pmb{E}_{y_A} - \pmb{E}_{y_B}}{\|\pmb{E}_{y_A} - \pmb{E}_{y_B}\|_2}:i\in\mathbb{N}_B\})}{|\mathbb{N}_A| + |\mathbb{N}_B|}$ . Finally, divide the projected difference between means by the square root of the weighted average of the projected variance. +6. Composite alignment Multiply the variance-based alignment by the mean-based alignment. +7. Effective dimension Given the SVD $\bar{H} = U\Sigma V^T$ and the singular values $\sigma_{1},\ldots,\sigma_{n}$ , the effective dimension of $\pmb{H}$ is $\frac{\left(\sum_{i=1}^{n}\sigma_i^2\right)^2}{\sum_{i=1}^{n}\sigma_i^4}$ . + +Table 2: Prompt templates and labels for different datasets. + +
DatasetTemplateLabel
SST-2{Sentence} Sentiment: {Label}positive / negative
SUBJ{Sentence} Type: {Label}subjective / objective
TRECQuestion: {Sentence} Type: {Label}abbreviation / entity / description / human / location / number
SNLIThe question is: {Premise}? The answer is: {Hypothesis} {Label}true / maybe / false
RTEThe question is: {Premise}? The answer is: {Hypothesis} {Label}true / false
CBThe question is: {Premise}? The answer is: {Hypothesis} {Label}true / maybe / false
Famous People{Person Name} is a: {Label}actor / politician / singer / scientist / writer / athlete
+ +Table 3: Mappings used to replace ground-truth labels of different datasets to symbols + +
DatasetLabel Mapping
SST-2negative/positive → @/#
SUBJobjective/subjective → @/#
TRECabbreviation / entity / description / person / number / location / → @/#!/$/&//*
SNLItrue/maybe/false → @/#!
RTEtrue/false → @/#
CBtrue/maybe/false → @/#!
+ +# D Implementation details + +Models We use the official huggingface implementation of all models. All models with more than 10B parameters are quantized to 4bit. + +Datasets We use the official huggingface implementation of all datasets except for the Famous People dataset crafted by ourselves. The Famous People dataset is generated using ChatGPT-4o [OpenAI et al., 2024]. The dataset has 180 datapoints, each is the name of a famous person with a profession label from one of six categories: actor, politician, singer, scientist, writer, athlete. The dataset is balanced as there are 30 data points for each label. + +ICL setting For each dataset except for the Famous People dataset, we select demonstrations from the train set and queries from the test set, or the validation set if the ground-truth labels for the test set are not provided. We keep only the first 10000 datapoints in the train set for demonstration selection if the train set has more than 10000 entries, and the first 1000 data points in the test set/Validation set for accuracy evaluation. For the famous people dataset, we use the first 90 data points for demonstration selection and the remaining 90 data points for testing. For experiments involving kNN demonstration selection, we first use the respective LLMs to encode the demonstrations and queries, and select the demonstrations with embeddings closer to that of the query in $l_{2}$ distance for each query. We use the prompt formats detailed in Table 2. + +Devices All experiments with Llama2-7B, Llama2-13B, Gemma-2B, and Gemma-7B are conducted with an A800 GPU. All experiments with Llama3-8B, Llama2-70B, and Llama3-70B are conducted with an H200 GPU. + +For the label mapping experiment in Subsection 5.1. We use the mappings listed in Table 3 to map the ground-truth labels of each dataset to symbols. + +# E Practical implications of the mechanistic findings + +We discuss in this section how our geometric characterization of the model's inference process in the zero-shot or ICL setting can be converted to actionable and efficient methods to improve model performance. + +# E.1 Improving classification by capitalizing on hidden states separability + +In Figure 2 we see the high separability of hidden states of prompts from classification tasks which surpasses the accuracy of the actual label prediction by far, irrespective of whether demonstrations are + +prepended to the labels. This implies that rather than direct decoding we can instead use the model as a feature extractor with which to train classifiers to perform the classification task, which is exactly how we evaluate the separability score. To demonstrate this, we train a logistic classifier on $50\%$ of the last layer hidden states and evaluate the classification accuracy on the rest half. The results in Table 22 demonstrate that such a practice improves the classification accuracy with zero-shot prompts by over $70\%$ across models, while only incurring the minimal cost of training an extra logistic classifier. Moreover, in Table 23 we see that training the classifier over 8-shot ICL hidden states also brings a solid $\sim 10\%$ increase over the original ICL accuracy, which shows the generalizability of this lightweight method that leverages hidden states separability. + +# E.2 Unsupervised enhancement of classification performance through low-rank denoising + +In Figure 6 we see that low-rank denoising of the ICL hidden states matrix reveals the task-related directions as its dominant directions and enhances its alignment properties. We can thus apply this technique to the final layer hidden states instead of the intermediate layer ones (which is the focus of Figure 6) to directly improve classification performance. In Table 24 we apply rank-5 denoising to final layer hidden states before feeding them into the unembedding layer. This method is different from the classifier-based method in that it assumes no knowledge of the ground-truth label of each hidden state. The dataset-average results demonstrate that the rank-5 denoising can indeed improve the classification performance of all models with the only exception of Gemma-7B. + +# F Supplementary materials for Subsection 5.1 + +# F.1 Replication of Figure 2 for other models + +In Figure 10-15, we provide the visualizations of the experiments presented in Figure 2 for other models, from which similar conclusions to those in Subsection 5.1 can be drawn. Alignment measures explain the accuracy difference between ICL and zero-shot across models, and the layer-wise trends of the measures explain the phase transition pattern for all models. + +# F.2 Replication of Figure 3 for other models + +In Figure 16-21 we provide the visualizations of the experiments presented in Figure 3 for other models to establish the generality of our conclusions. It is clear that the phase transition pattern is evident in different ICL settings across models, and alignment measures capture accuracy differences across ICL settings for all models. + +# F.3 Replication of Figure 4 for other models + +In Figure 53-58 we repeat the visualizations in Figure 4 for other models to examine where the generation task fits well into our framework. The results demonstrate that for other models, the phase-transition pattern in the composite alignment metric is specific to the 8-shot ICL hidden states, while ICL and zero-shot hidden states do not differ much in terms of the dynamics of the separability score. + +# G Supplementary materials for Subsection 5.2 + +# G.1 Replication of subplot (A) of Figure 5 for other datasets and models + +In Figure 22-28 we provide the visualizations of the experiments presented in subplot (A) of Figure 5, to establish the generalizability of our conclusion that the directional alignment and the encoding of label-related semantics into the hidden states happen almost simultaneously after the phase transition. The layer-wise trends of the directional alignment measures and output alignment exhibit high correlation across all datasets and models. + +# G.2 Replication of subplot (B) of Figure 5 for other datasets + +In Table 4-8, we present the tokens decoded from top singular directions near the phase transition breakpoint for other datasets. The results demonstrate that the sudden semantic shift toward label-related tokens in the hidden states (as demonstrated by subplot (B) of Figure 5) is present in other datasets as well. Note that the phase transition happens at different layers for different datasets. + +# G.3 Replication of subplot (B) of Figure 5 with replaced demonstration labels + +To further examine the relationship between alignment and the encoding of task-related semantics, we design a scenario in which the ground-truth demonstration labels are consistently mapped to symbols, and the expected predictions for the query label becomes the mapped symbols as well. This forces a separation between semantic encoding and alignment, as the task-related semantics remain unchanged, but alignment must now occur with respect to the unembedding vectors of the symbols. Specifically, we conduct experiments on SST-2 and SNLI where we map the SST-2 labels (negative/positive) to @ and #, and the SNLI labels (true/maybe/false) to @, #, and ! within the demonstrations. We then inspect the tokens decoded from the top singular directions of the hidden states at each layer. + +As shown in Table 9, the results reveal an interesting pattern. The first major shift in the layer-wise semantic content occurs at layer 24, where the ground-truth label tokens suddenly become dominant. This closely mirrors the pattern observed with normal demonstration labels in Table 6, and aligns with the point where output alignment begins to rise in Figure 22 (C). However, another drastic shift is observed at layer 45, where the decoded top tokens begin to include the symbol tokens. These symbols suddenly appear and start to compete with semantically relevant task tokens, marking the onset of alignment between the hidden states and the unembedding vectors of the symbols. This delayed alignment corresponds with the pattern seen in subplot (C) of Figure 3, where the phase transition under demonstrations with symbolized labels is postponed to later layers. + +The competition between the true labels and the injected symbol labels persists through to the final layers. This likely contributes to the reduced accuracy in this setting, as the semantic influence of the substituted labels fails to fully override that of the ground-truth labels. Similar results for SST-2 are presented in Table 10, showing similar trends. + +# G.4 Replication of subplot (C) of Figure 5 for other datasets + +Subplot (C) of Figure 5 reveals a two-stage pattern in the layer-wise retainment and filtering of semantic information, where most post-transition layers retain label-related semantics and filter out irrelevant ones, and the final layers do the opposite. We show in Table 11-15 that it exists in other datasets besides SST-2 as well. + +# G.5 Replication of Figure 6 for other datasets and models + +We first provide the results of rank-10 approximations on all 6 datasets for Llama2-70B in Figure 42. The conclusion is that low-rank denoising significantly increase the output alignment significantly across all datasets, particularly in the initial layers after the phase transition. This confirms the generality of our findings in Subsection 5.2. Additionally, in the final layers, the output alignment also increases on on SST-2, SUBJ, TREC, and SNLI, though not on RTE and CB. + +In Figure 43-48, we present results for other models. These are consistent with the findings from Llama2-70B. Specifically, the pattern that low-rank denoising improves output alignment more in text classification datasets than in natural language inference datasets holds across models. This suggests a higher level of linguistic complexity in natural language inference tasks—likely because such tasks require reasoning over both a premise and a hypothesis, whose combined semantics are more difficult to compress and more prone to information loss during low-rank projection. + +# G.6 Ablation experiments for the rank hyperparameter in low-rank approximations + +In this section, we explore the effect of varying the number of retained ranks in rank- $r$ SVD approximations of Llama2-70B hidden states across all datasets. Specifically, we investigate how increasingly + +aggressive rank reductions—setting $r = 1, 2$ , and 5—impact performance. The results, shown in Figure 49, Figure 50, and Figure 51, yield several notable findings. + +For binary classification tasks such as SST-2, SUBJ, and RTE, more aggressive rank reduction sometimes leads to better output alignment, particularly in layers after the phase transition where alignment with label unembedding vectors begins to emerge. In some cases, even a rank-1 approximation preserves or enhances alignment-related performance. However, for three-way classification tasks like SNLI and RTE, aggressive reductions (especially at $r = 1$ or 2) can cause accuracy drops in later layers. For TREC, which involves six label classes, rank-2 or rank-1 approximations degrade accuracy across all layers. + +These results align with the intuition that datasets with more labels require higher-dimensional hidden state representations to preserve the necessary separability and alignment structures among label clusters. + +# H Experiment details concerning the identification of PTHs and IHs + +For each dataset, we use the first 50 queries to identify the set of IHs and PTHs. Denote the queries as $x_{1}, \ldots, x_{50}$ each with token length $s(x_{1}), \ldots, s(x_{50})$ . + +Identification of PTHs For each $x_{i}$ , the LLM will generate an attention tensor $\mathbf{Att}\mathbf{n}_{i} \in \mathbb{R}^{L \times N_{h} \times s(x_{i}) \times s(x_{i})}$ , where $L$ is the total number of layers, $N_{h}$ is the number of attention heads per layer. Hence, for the $n_{h}^{th}$ attention head at layer $l$ , there is a corresponding attention matrix $\mathbf{Att}\mathbf{n}(l, n_{h})_{i} \in \mathbb{R}^{s(x_{i}) \times s(x_{i})}$ , where $\mathbf{Att}\mathbf{n}(l, n_{h})_{i,j,k}$ is the attention of this attention head at the $k^{th}$ token to the $j^{th}$ token in $x_{i}$ . The PTH score of this attention head on $x_{i}$ is thus defined as $\sum_{k=2}^{s(x_{i})} \mathbf{Att}\mathbf{n}(l, n_{h})_{i,k-1,k}$ which measures the total attention the attention head assigns at each token position to the previous token. Consequently, the PTH score of the $n_{h}^{th}$ attention head at layer $l$ on all the queries is $\sum_{i=1}^{50} \sum_{k=2}^{s(x_{i})} \mathbf{Att}\mathbf{n}(l, n_{h})_{i,k-1,k}$ . We calculate the PTH scores for all $(l, n_{h})$ pairs and choose the top 10% attention heads as the identified PTHs. + +Identification of IHs For each $x_{i}$ , randomly select 8 demonstrations and prepare them to $x_{i}$ . The resultant ICL prompt (denoted as $X_{i}$ with length $s(X_{i})$ ), with a slight abuse of notation, takes the format of $\langle x_{i,1}\rangle : \langle y_{i,1}\rangle, \dots, \langle x_{i,8}\rangle : \langle y_{i,8}\rangle, \langle x_{i}\rangle$ , where $\langle x_{i,k}\rangle$ represents the sentence part of demonstration $k$ ("I like this movie. Sentiment") and $\langle y_{i,k}\rangle$ the label ("positive") separated from the sentence part by a colon (:), and $\langle x_{i}\rangle$ is the sentence part for the query. At the position of the final "::", an IH will attend to tokens after the previous "::"s, i.e. the label tokens $\langle y_{i,1}\rangle, \dots, \langle y_{i,8}\rangle$ . Let $\mathbb{I}_i$ denote the indices of the label tokens in $X_{i}$ . The IH score of the $n_h^{th}$ attention head at layer $l$ over the 50 queries is thus $\sum_{i=1}^{50} \sum_{k\in\mathbb{I}_i} \in\text{Attr}(l,n_h)_{i,k,s(X_i)}$ , i.e. we are measuring the total attention a head assigns at the final "::" position to the positions of all the label tokens summed over all 50 queries. We calculate the IH scores for all $(l,n_h)$ pairs and choose the top 10% attention heads as the identified IHs. + +# I Supplementary materials for Subsection 5.3 + +# I.1 Replication of Figure 7 for other models + +In Figure 29-34, we present the results of attention heads ablations across models. The results support our conclusions regarding the significance of PTHs in enhancing the separability of the ICL hidden states and the significance of IHs in aligning them with the label unembedding vectors. + +# I.2 Replication of Figure 8 for other models + +In Figure 59-64, we present the results of analyzing the geometric contribution of PTHs and IHs in other models to the evolution of hidden states by injecting their outputs as task vectors. The results clearly demonstrate their respective significance in fostering the separability and alignment of hidden states. In particular, the PTH task vectors of other models exhibit greater potential to increase hidden-state separability than the result shown in Figure 8. + +# I.3 Replication of Table 1 for other models + +In Table 16-21, we compare the layer distributions of the top $1\%$ , $2\%$ , $5\%$ , and $10\%$ identified IHs and PTHs in other models and conduct Mann-Whitney U tests to assess the significance of the differences. The results demonstrate a consistent difference in the layer positions of PTHs and IHs across models, with PTHs significantly preceding IHs on average—the difference being most prominent in the two Gemma-family models, Gemma-2B and Gemma-7B. + +# I.4 Replication of Figure 9 for other models + +In Figure 65-70, we show the results of injecting task vectors derived from IH outputs for other models. The task vectors are similarly injected at layer $\frac{3}{8} L$ , where $L$ is the total number of layers of the respective models. The results demonstrate that IH outputs qualify as effective task vectors across models, with the exception of Gemma-2B, as they considerably improve prediction accuracy in the zero-shot setting after being injected into the zero-shot hidden states. + +# I.5 Results of attention heads ablation in the ICL setting where query label is not in context + +The results for other models, reported in Figure 29-34, confirm the generality of our conclusions across model sizes and architectures. To test whether these findings hold under different ICL settings as well, we replicate the attention head ablation experiments in a special ICL scenario ("In-weight Learning") studied by Reddy [2024] and Chan et al. [2022], where none of the in-context demonstrations share the query's label. This setting is useful for analyzing attention heads—especially IHs, which are known for copy-like behavior—when direct label copying is not possible. + +To this end, we construct a Famous People dataset following the procedures in Appendix D. Each data point is a sentence in the format " $\{\text{Famous Person Name}\}$ is a: ", and the label is the profession of the famous person. Once combined, they form an input sequence like, e.g., "Taylor Swift is a: Singer." that can be used as either a query or a demonstration. For each query, we sample $k = 4$ demonstrations, ensuring that none share the query's profession label. We then ablate PTHs and IHs to examine their influence on model performance. As a control, we also evaluate the measures in the setting where at least one demonstration does share the query's label, allowing us to assess how the availability of directly copyable labels affects the impact of head ablation. + +The results in Figure 35 resemble those in standard ICL settings in that ablating PTHs significantly impairs separability, while ablating IHs affects alignment. However, there are notable differences. Most importantly, the accuracy drop from ablating PTHs is greater than that from ablating IHs—opposite to the standard case, where IH ablation has a larger impact. This highlights the critical role of having the query label present in the context for IHs to function effectively. The importance of label presence is further confirmed by the substantial accuracy gain observed when the query label is forced into the context. + +We provide results analogous to Figure 35 for other models in Figure 36-41, which demonstrate similar results. + +# I.6 Results of attention heads ablation in the zero-shot setting + +In this section, we investigate the effect of attention head ablation on the separability and alignment measures of zero-shot hidden states. The results averaged across datasets, as provided in Figure 52, reveal that the zero-shot setting is fundamentally different from ICL. In the zero-shot setting, ablating IHs has practically no effect on either separability or alignment measures, similar to ablating random heads, because there are no demonstrations from which to copy. On the contrary, ablating PTHs substantially compromises all separability and alignment measures. This illustrates that the contribution of PTHs to the separability of hidden states is by no means restricted to the ICL setting and highlights the significance of PTHs as key structural components of LLMs. + +# J Experiment details of using IH outputs to construct task vectors + +For each dataset, we first construct 8-shot ICL prompts using the first 50 queries. The demonstrations used are exactly the same as the ones used to evaluate the 8-shot ICL accuracy for each dataset. Then, + +following the procedures described in Todd et al. [2024], we obtain the average output (across the 50 prompts) of each identified top $10\%$ IHs and PTHs at the final token positions, and sum the average outputs of all IHs to obtain the task vector. + +In terms of the steering experiment, we add the task vector to the hidden state of the final token of each query at Layer-30 of Llama2-70B, and let the modified hidden state flow through subsequent layers. While calculating the accuracy, we exclude the first 50 queries and only evaluate accuracy on the remaining queries in the test set to ensure an independence between the task vector and the queries involved. + +# K Broader impacts + +Understanding the internal mechanisms of large language models is increasingly critical as these models are deployed in high-stakes applications ranging from education and healthcare to legal and governmental decision-making. This work contributes to that understanding by providing a geometric framework that explains in-context learning through the lens of hidden state dynamics, specifically separability and alignment. By identifying the role of specific architectural components—such as Previous Token Heads and Induction Heads—in shaping model behavior, our study brings interpretability to a domain often criticized for opacity. + +The primary positive societal impact of this research lies in its potential to improve the transparency, controllability, and safety of LLMs. Better mechanistic understanding can inform the development of more robust models that are less reliant on spurious correlations and more capable of structured generalization. For example, insights into how semantic information is injected and refined layer by layer may support diagnostic tools that detect when a model is failing to align its internal representations with task-relevant signals. Additionally, the SVD-based techniques we propose for identifying and amplifying task-relevant components could be used to improve the efficiency or reliability of model outputs, particularly in low-resource or privacy-sensitive settings where retraining is infeasible. + +However, a deeper understanding of model internals also introduces risks. The ability to precisely manipulate hidden states or attention mechanisms may enable adversarial behaviors, such as constructing prompts that selectively suppress or amplify certain outputs for political or financial gain. Moreover, techniques for filtering and steering semantic content could be misused to hide bias or simulate alignment without genuine safety improvements. As such, we encourage future work to pair interpretability research with rigorous safety and ethics evaluations, and to involve interdisciplinary expertise when applying these findings to real-world systems. + +Overall, we view our contributions as a step toward more interpretable and accountable AI, but we emphasize that interpretability alone is not a guarantee of ethical deployment. Responsible application of these insights requires careful consideration of both technical and societal factors. + +![](images/8c5ee7f62bc44e53da38c9fdf0a03ce11c5b34b4c0554c177d82c31e63fbb3a4.jpg) +Effective dimension + +![](images/62e8a68cd3682c2c2101d0be251627bc61aa44e758e2b64bf9aad68c320ba037.jpg) +Separability score + +![](images/df43ecc0574ee1b7419312ffb3832e305b590d77154910754173d002f5e17c6d.jpg) +Singular alignment + +![](images/9177d06e1a0fc49da75dee23ba7b7f6ba3eb75a866c70ebd482925b6d9065f0e.jpg) +Composite alignment +Figure 10: Comparison of trends in separability and alignment measures of Llama3-8B hidden states between ICL and zero-shot + +![](images/46fb68b9f88f2b7264625bd0ae3f3b85c4421f810239c152dc6f99eca8a8b485.jpg) +Mean-based alignment + +![](images/19e1d535febb278d65fabad0b957b61d7d522fe09a65a3c775d7e88f41c5af2b.jpg) +Var.-based alignment + +Llama3-70B: 8-shot Acc.: $81.09\%$ ; 0-shot Acc.: $0.00\%$ + +![](images/92a43f933d9c7eb85be6be82c48929ff4152c65afac7effa3ce02bbcf90f8942.jpg) +Effective dimension + +![](images/d372c6fb871e1a4724048a09bbb8bb1664d67abe1dfb9b0d9883a25841e026b5.jpg) +Separability score + +![](images/a1132d999cebcb7c98a1cb5df8a3ca14f7a11de534946d70372e1311ff2fe581.jpg) +Singular alignment + +![](images/9dd0c6e52821ea708fd5c3eca5e256611d45c433b2a567c3de7c78b59dcd5e10.jpg) +Composite alignment +Figure 11: Comparison of trends in separability and alignment measures of Llama3-70B hidden states between ICL and zero-shot + +![](images/ca5a1f1a934bbe8415893b90be015d05cff22cf1e6459aab611a1a7a8f565f8d.jpg) +Mean-based alignment + +![](images/af3a0b0c7805d36a641834ba570a97c5b00fa0d6af3273a0a4c5ff4d76b8fdf2.jpg) +Var.-based alignment + +Llama2-7B: 8-shot Acc.: $75.13\%$ ; 0-shot Acc.: $0.31\%$ + +![](images/d2bf179a640d109b507cfc32a7e664c29526d32d32831207729d859117f9e05c.jpg) +Effective dimension + +![](images/de217ff92d3659a674cac3ac7495ea96b2dd8b44b1a5c0c2bd1526dc8ca1137c.jpg) +Separability score + +![](images/e58d634cacc4d92f8562da2ff6e3e40a11395fa1db3bc2e083a6d05575563ad1.jpg) +Singular alignment + +![](images/057647f6a61f99fda7dba68db3d48f792dac424abca3bf1935d38f55ab4aa873.jpg) +Composite alignment +Figure 12: Comparison of trends in separability and alignment measures of Llama2-7B hidden states between ICL and zero-shot + +![](images/64893dc8feda3333207ed4f2204cd4cf0f20fbc24f9a0f4a38348bed3b2ebbc6.jpg) +Mean-based alignment + +![](images/5d825f6c8df431a03a22f5e4c23502d8c0b5e0f8ce6d9d0958254002f8dae764.jpg) +Var.-based alignment + +![](images/741349db13a65cbaaecd9b53c715cfefbccdf38d1485a09b6dc791b0b60adf3e.jpg) +Effective dimension + +![](images/4ed2f638ce4743ef201b0c7b7e4eb22eda3b23eca308b0108dfb06ae1fbb433f.jpg) +Separability score + +![](images/2fd36602a39418ea5c1895f6fba797a3b5fe30b386ebb05d5d8d24dc01e9c70e.jpg) +Singular alignment + +![](images/a73a663f9e0b99dcdd3168516d9672682e4a492d4a521aa392deadf64152e1d7.jpg) +Composite alignment +Figure 13: Comparison of trends in separability and alignment measures of Llama2-13B hidden states between ICL and zero-shot + +![](images/127e855910f990c747460ded626c5dbf7746a96967ee3cc93714fbab7cb03864.jpg) +Mean-based alignment + +![](images/985ab1e16d435d9b3ce963e9b2183bc25907afd256e03dedd58d8fac01e826ba.jpg) +Var.-based alignment + +Gemma-2B: 8-shot Acc.: $66.16\%$ ; 0-shot Acc.: $0.00\%$ + +![](images/8a9965118e651a6391816351809ffad1125c0bfcf97455c44240593221bf1578.jpg) +Effective dimension + +![](images/9f50879d6d4ae944702644d4adf6d9b6bc10a523925f4694acb8f1c204fe0e53.jpg) +Separability score + +![](images/5f7e8b964057efa00a6f9c3a729d3b965256d13a7b773a4be2b23c36af37526b.jpg) +Singular alignment + +![](images/ecf788e6ab973253cc85335698e3c9815f4673deba8e3653a31bf11749b76d64.jpg) +Composite alignment +Figure 14: Comparison of trends in separability and alignment measures of Gemma-2B hidden states between ICL and zero-shot + +![](images/dba8c01f3053d56b9d1e8d2193a4a063fbea56145b4d66d3735126165d603d73.jpg) +Mean-based alignment + +![](images/029240c570f48e7c73a4063e8b24d7c6b44b9a6f5a6327541d51068aeb2b8921.jpg) +Var.-based alignment + +Gemma-7B: 8-shot Acc.: $79.06\%$ ; 0-shot Acc.: $0.02\%$ + +![](images/e0dd065f0cc51832b2f2633290566564745666c3696b09f001dfdf753534920f.jpg) +Effective dimension + +![](images/d609f356854175dc2fd8211b97b1651d66be9bfc15abf39e25ddfc99ca183d62.jpg) +Separability score + +![](images/2265e6568907c2491f3061bc0bce4f7015d10e9bd41b6d70f8718cebbcb9297a.jpg) +Singular alignment + +![](images/5c5be13a3bbc27824159256427567d066a3f9d4cd5fc83a70ae49419623eca9e.jpg) +Composite alignment +Figure 15: Comparison of trends in separability and alignment measures of Gemma-7B hidden states between ICL and zero-shot + +![](images/76485114e13df31275d147f40ca1c65c558cda503c8f112c21dc14a61bab8357.jpg) +Mean-based alignment + +![](images/8902727cab227a14d3931ae6178c760c51669447e06fdd9a68f43d435aab2b52.jpg) +Var.-based alignment + +![](images/8cca11aa22157361d91dcf467f66a62ed69e9bf4fddf27a889e0999d714dd6e4.jpg) +(a) Varying number of demonstrations + +![](images/534398df9ff6cc2c2c2fbf0780704143f8628ee9b59234876cbca7203d93bbf8.jpg) +Llama3-8B: Random Selection Acc.: 76.20%; KNN Selection Acc.: 84.03% + +![](images/d054b92a606101d5da3cd532368980e21b4edb813654c218fcfb827600c03014.jpg) + +![](images/19dad17113e7b543019908872c293cebbbb1171ad608faeeaf3e5a931cd36809.jpg) + +![](images/f0a40c81936e3c224ce7427ac156835fe6b58cd34c19c502b51118d06d7ab9eb.jpg) +(b) kNN Demonstration selection +Figure 16: Layer-wise trends of separability and alignment measures of Llama3-8B hidden states in different ICL settings + +![](images/d9354815ed63b0d83d2a4886ee61da3cc3aea65ca8337c9b3fd876f2a99eaf0e.jpg) + +![](images/2df7ac2cf85c19dd6399c5e7ff228ffc269c01e067ec0b580d5ae4cee997b568.jpg) + +![](images/b62c1fadb9f36eb6b8eda56f2dc49bf2032710c3d2b9b7cb96bf97bd9e605e01.jpg) +Llama3-8B: Normal Label Acc.: 76.20%; Symbol Label Acc.: 47.05% + +![](images/6f41e4caabd4c9d08f5c267d738b4f457100843ffd433bb411819a60fed68df5.jpg) +(c) Random symbols as demonstration labels + +![](images/c2c994aaf2c7bfdbf29352d3bc5bc61971e3271df1f709f54cf891a93e8ac0ee.jpg) +(a) Varying number of demonstrations + +![](images/a9fba76b08b75c3c8108ab9a8286b113b9621eb163e7499367c0dcc5fd993582.jpg) +Llama3-70B: Random Selection Acc.: 81.09%; KNN Selection Acc.: 89.44% + +![](images/0a931810dc9991d94078844def272353254952dedc7b2e2849b66cb3688bcae0.jpg) + +![](images/25fc024222245ce48594e583c84ceaf55bf48d9dcdb67496f7ec96bec55cf31d.jpg) + +![](images/9088b1e5d8dbfb087fed2c9dbe9b63a74bf0b076170e2f8f3e248b3ca52e26f4.jpg) +(b) KNN Demonstration selection +Figure 17: Layer-wise trends of separability and alignment measures of Llama3-70B hidden states in different ICL settings + +![](images/b3ef056fd8b3024f4329f1dc0f1fe050d0ae410a127370ffcc85df7aa20285c0.jpg) + +![](images/2dbd6e42761bee63844fd525da3c9ff5c52c94bc1846a599977db94885fa27ce.jpg) +Llama3-70B: Normal Label Acc.: 81.09%; Symbol Label Acc.: 64.67% +(c) Random symbols as demonstration labels + +![](images/e29c08d8062a724688b106c34e31e2381fd95a04c2e58246dbc27f53ee3940c3.jpg) +(a) Varying number of demonstrations + +![](images/eacb08fee2115dcc43d335190c84b91e2de26d91a682a9642661fe3a8422ed6d.jpg) +Llama2-7B: Random Selection Acc.: 75.13%; KNN Selection Acc.: 84.07% + +![](images/98197934337926a377ffc37ed989f4acfa96a28ec3d8428dd6abf30cdcacb1b7.jpg) + +![](images/089a8c707fb13700774d859e22507c9dd134645aabf3cf40778b13927b4a4801.jpg) + +![](images/810b0223d2b1bda2cb83a2aef3eb216b1177fa20aa6ea8947b1e22100c4a8ab2.jpg) +(b) KNN Demonstration selection +Figure 18: Layer-wise trends of separability and alignment measures of Llama2-7B hidden states in different ICL settings + +![](images/19fb398c90376a091de520e9ad0de3615ca2090c128b3d90ede5df810f812a4f.jpg) + +![](images/fface778757493ac382b7331443818fe592bd76219a58d0b29b6bd9316d1b586.jpg) + +![](images/8a5927e665e3e219bf4f2f098ebab5723ff52545e7dde89ef0c41da8505e26b3.jpg) +Llama2-7B: Normal Label Acc.: 75.13%; Symbol Label Acc.: 44.73% +(c) Random symbols as demonstration labels + +![](images/6b3762ba1f02b8c2f5281e68cf5b1d557cc50b20704d98ad360d44eb72fee142.jpg) + +![](images/08353a653bdad51612bec6e3c94c174f0f368be4020fe75585c6d4a27c92a1de.jpg) +(a) Varying number of demonstrations + +![](images/714dc69f0a5aefb829d653f3d51c423ca98f410edf484c1847fbd4338b8c2441.jpg) + +![](images/edde4f48e9231dd772c9885a1379ab9b139c1f3982e47b1c4d7944fbad828306.jpg) +Llama2-13B: Random Selection Acc.: 74.79%; KNN Selection Acc.: 86.18% + +![](images/ac05deb03c5a83ed40b9d871d9c7ccce7a31ea41901b1b79107feab85501f53e.jpg) + +![](images/b54cf7a4472bf38cd6137e394dad37f19e5a2e0b0fcb557150d89caed4e77fd3.jpg) + +![](images/a937cfef44cc9a0336540cbf87e92afb1d25a14d9594445c3e83fdab93ada6b8.jpg) +(b) KNN Demonstration selection + +![](images/77723b8ddd0faea921d64d1b341e5d8fcab9abbeb5e7143478e8da2286d8bd9c.jpg) + +![](images/b836dc8cdd693eaa203b1b8eb8c202a2972331004f9f972e3f5a247979d18dd1.jpg) +Llama2-13B: Normal Label Acc.: 74.79%; Symbol Label Acc.: 51.78% +(c) Random symbols as demonstration labels +Figure 19: Layer-wise trends of separability and alignment measures of Llama2-13B hidden states in different ICL settings + +![](images/80d284e475f954cc6eeba32211ef697ff7f496f1d20c562aa069f1a3261f63cf.jpg) +(a) Varying number of demonstrations + +![](images/5bdd54d6acfaf537eb2a7064025e3ee585dd29dff80dc9febf87c7dbfd970d9e.jpg) +Gemma-2B: Random Selection Acc.: 66.16%; KNN Selection Acc.: 77.99% + +![](images/3c8ab5c2cf4512db96fbd461ad66404f205ad3a128562785f1100f78c8782678.jpg) + +![](images/725a2bdd96d86f8f38895aad5c3ae0ae2aaf6668c770fd97b59a095dd518a390.jpg) +Lemma-2B: Normal Label Acc.: 66.16%; Symbol Label Acc.: 40.06% + +![](images/b2a16aa43549eda2c029d007e280861047ad719b1bfb5eee230f3795fd72f98d.jpg) + +![](images/ce2d81bab9b5fce6d75de3b5f80f518b5f6e5204ae354db472db2ba831121d39.jpg) +(b) KNN Demonstration selection + +![](images/b7164f39e66c911240210d59444ce80978ba7ba88485657df65cece1362811f7.jpg) +(c) Random symbols as demonstration labels +Figure 20: Layer-wise trends of separability and alignment measures of Gemma-2B hidden states in different ICL settings + +![](images/6cf1083a2962abc58d398353ccf7629ddd207f13e941d836dd28bbbb749efc99.jpg) +(a) Varying number of demonstrations + +![](images/988a55adbe5e26100128410aaeb61d3007fcb46ca4efdd0f4a4d867ee114e330.jpg) +Gemma-7B: Random Selection Acc.: 79.06%; KNN Selection Acc.: 86.23% + +![](images/22d5ee7bb66fbe340eb6fe6d1850491b4c3fbd0de50617834dfb1aca75d2f1c3.jpg) + +![](images/30c95978753539e08f4973c81d063b55600f2105110150f734416cd458bd567f.jpg) + +![](images/f0b9bb94bd695ef8821dea148d4d861c6da397446f05fe47a5f6a253ab993874.jpg) +(b) KNN Demonstration selection +Figure 21: Layer-wise trends of separability and alignment measures of Gemma-7B hidden states in different ICL settings + +![](images/c5c0909e9dd4d4f8293ecee8fa277a29416b2ffa2c1b5bbf3e886727ef5d5d68.jpg) +Gemma-7B: Normal Label Acc.: 79.06%; Symbol Label Acc.: 42.99% +(c) Random symbols as demonstration labels + +![](images/2eea7458b8a1395b233b549d799c1e8f58dcae4942eb6da96ab599dc395a72df.jpg) +(a)SUBJ + +![](images/3ab01efb5f1cf84cdc3e98a21aea091a0c35e3b5c82b5f5e76ef592e5dd9ca1e.jpg) + +![](images/70e715c28e045a028d40f72c2b6fd92088b70803cce8162da5f01f1deea131fb.jpg) +(b) TREC + +![](images/d0e53c69f17cfa635f86897eaaaa6def9b8da277d577616524050db6edd8db45.jpg) + +![](images/279fb01c5b8d9b33dd708827e8d2884e5629793188a1c391be3edb79d7d2feae.jpg) +(c) SNLI + +![](images/3906be370287d9776f5152729e55560361b96aad88b9f78bca42756dbc5809e1.jpg) + +![](images/435c22d24b6f53346f481ea422b50d0f2f04545b27511f4af62a8debfe4ce8ed.jpg) +(d) RTE + +![](images/c5f90281dd8c06a0347b3889dc9f362f2708ec182cff9295e65b01ecc6b83f10.jpg) + +![](images/ae135ba3861beeb9c107e0e9ec0ff6c593d854756a668cb3da65ba5145890e01.jpg) +(e) CB + +![](images/862cb44391481b5865b7f558cb664e7228a9f120d3f716aa612b175cff0946c9.jpg) +Figure 22: Output and directional alignment of Llama2-70B ICL hidden states with label unembedding vectors on various datasets. + +Table 4: Tokens decoded from top 10 singular directions from layers near the phase transition on SUBJ + +
LayerTokens
Layer 51opinion, humor, genre, adm, facts, plot, description, explanation, pont, humor
Layer 52objective, humor,., adm, dram, plot, enthus, categor, pont, subject
Layer 53objective, humor,., plot, fact, humor, enthus, explanation, character, humor
+ +Table 5: Tokens decoded from top 10 singular directions from layers near the phase transition on TREC + +
LayerTokens
Layer 18Ras, Float, Physics, Heimat, Zob, rela, ijd, lbl, alphabet, uther
Layer 19Geography, name, Physics, map, >, Ele, location, Vall, alphabet, Tests
Layer 20definitions, histor, maps, Geography, amos, inn, map, babel, etr, letters
+ +Table 6: Tokens decoded from top 10 singular directions of layers near the phase transition on SNLI + +
LayerTokens
Layer 24imagination, inen, exceptions, hner, igin, amerikanischer, Fich, float, opposite, orf
Layer 25dup, unknown, similarity, Dy, Sci, ete, nost, Fich, endorf, Correct
Layer 26erde, unknown, similarity, context, apper, architecture, unity, ambigu, alg, py
+ +Table 7: Tokens decoded from top 10 singular directions from layers near the phase transition on RTE + +
LayerTokens
Layer 21Eva, pul, ikel, orp, Mol, enk, Dal, adrat, hor, üng
Layer 22correct, nor, urch, Boh, VP, aqua, Dal, subscribe, currency, sign
Layer 23correction, zero, tempo, Boh, VP, lak, FA, iva, currency, trag
+ +![](images/a8f7dffa13216c909a498ff6d6b8edf8a3cf5b332f7b28a306128c4f5d0bc24f.jpg) +(a)SUBJ + +![](images/0188675c03dc8d594e3f1d44b23f5073a5bac0a004abd0e4620e609f2789eafb.jpg) + +![](images/173634d1f13de0a75fb13eb58f91b9ef948c8b57d003c62c99335be5659be208.jpg) +(b) TREC + +![](images/ed352896f0064b5437d39fdf422b19b2cb7ca48b12de9867d5892066c2a5a0cf.jpg) + +![](images/ed00f978418d3d7cdf1a31ef12b0eae8a562e5fe485bc5db585b40819a717904.jpg) +(c) SNLI + +![](images/30c1b13be7667d89a9ea5253a849b574085e07502f2ca3dcc2109dff44714785.jpg) + +![](images/e2c7eaad299760bc1ac23d9c05da6cbfde49625a758dbda62c49d7870e3c10e4.jpg) +(d) RTE + +![](images/e0a2e35ed50c8280e2b6fc0e0db3d05279b023b36198ae29d81ecfbc8e17cfdc.jpg) + +![](images/05e8f0a5247331c63cd42f01a040a6286a9bd4a9cffb6df721ec5e9fccb38949.jpg) +(e) CB + +![](images/d445dad533bd22e25295d4c62875f130fcf37bd8b4e9564e5aba47fc5cc942b3.jpg) +Figure 23: Output and directional alignment of Llama3-8B ICL hidden states with label unembedding vectors on various datasets. + +![](images/21679b2895fc2a0489ae187f1d661fb4b5cd5a1baf048ddef6cf7672898ee76f.jpg) +(f) SST-2 + +![](images/8c8cd1c65eea6d9a454d294614058d6339083e03c488b2d82d65d5687fbb638e.jpg) + +Table 8: Tokens decoded from top 10 singular directions from layers near the phase transition on CB + +
LayerTokens
Layer 22TR, eign, >, qual, Joan, Icon, ebol, pHT, āž, Kontrola
Layer 23deg, Cet, Bou, SV, ando, Simon, True, lav, ibōl, opposition
Layer 24negative, schap, ftrag, court, ando, iada, rib, Martf, counter, answer
+ +Table 9: Tokens decoded from top 10 singular directions with labels replaced on SNLI + +
LayerTokens
Layer 23Tier, aro, cum, Vector, FB, Eur, Fon, pending, Dre, Fant
Layer 24False, aten, beck, ardo, Ú/3, Sci, attan, Kaiser, tant, Fant
Layer 25False, Cop,/cgi, Dou, Ú/3, Ra, hur, TF, Dre, nehm
Layer 44false, combination, inois, multiply, scenario, group, action, group, prec, Solo
Layer 45False, #, xspace, @, #, neutral, @, large, sentiment, False
Layer 46False, @, contr, #, @, neutral, cheer, group, ppo, monot
Layer 78false, False, $., @@, @, false, $., false, False, #
Layer 79false,!, .#, True, <s>,!, Hash, Street,群
Layer 80twe, , X, !:, #: ##, action,!, #, Street
+ +![](images/fb83fdb75fd3e8e34f402c48e4eddff6e26e47a380615fe2f7a9765b116a28ab.jpg) +(a)SUBJ + +![](images/fe99eca16a22088ec3f557298fdfb769d2de5571f1817d487e26ff3509e472d7.jpg) + +![](images/54b7a27024a75bd5158464380351d9345642faedd425608dfaa4fa6b08214b09.jpg) +(b) TREC + +![](images/d1b8b0f578d9613b7961b4e95a3852a38773fc02c28c3d736dbf67e1dc063fb4.jpg) + +![](images/c726bc8c02014079f5e390e889143a7bce56ffed3d15a4700b420473a0cd68cd.jpg) +(c) SNLI + +![](images/df4198cada6382afa9ecdd1947b28c163e01525ecf86bd29098133fe7b927da8.jpg) + +![](images/fdc34c154e5ca43a778b3937606be2648463670fb89a51bd92db2d5f6ce03b2d.jpg) +(d) RTE + +![](images/ad066a4b9953d6ec51ecd3336ae3394f67e07a7bf70d55d99997e8a8c140d452.jpg) + +![](images/8d6cc7c2556d5bec4c9be54607466dcb88c3eed66899daa4a74c50aa9c3c9c7b.jpg) +(e) CB + +![](images/28f95b52ef868ff61a61ed5b3c7f2701c0df8117fe9d9bc2ee15d151c77de74d.jpg) +Figure 24: Output and directional alignment of Llama3-70B ICL hidden states with label unembedding vectors on various datasets. + +![](images/95375f608d2ce09942546558fa2433bd48bb6db183d1151b2e7cb6b54ce54b3f.jpg) +(f) SST-2 + +![](images/262cf541020416a49afe247c03a4de551e0289f673a331b982fee12c781d8373.jpg) + +Table 10: Tokens decoded from top 10 singular directions with labels replaced on SST-2 + +
LayerTokens
Layer 24poste, Cant, Jug, Lars, >, zak, zig, geh, eg, alus
Layer 25rott, igi, endi, noreferrer, positive, zak, Aur, Mans, ù, humor
Layer 26rott, Armen, Lau, noreferrer, negative, mee, cot, tu, f, citing
Layer 40ipage, pra, Kle, estaven, Maj, CURLOPT, extreme, humor, ⊙, anel
Layer 41ViewByld, pra, meno, Einzelnach,ziel, @, disappoint, Meyer, L, humor
Layer 42negative, pra, nar, Einzelnach, #, humor, extreme, humor, embargo, #
Layer 78negative, πούημι, elt, neutral, hyper, $., <s>, positive, inea, introsros
Layer 79positive, { , *, neutral, Tru, ???, <s>, ?, humor, Sent
Layer 80{, positive, , !, disappoint, positive, about, positive, wod, introsros
+ +Table 11: Tokens decoded from top retained and filtered directions in layer updates on SUBJ + +
Retained Tokens
StageLayerTokens
Stage 1Layer 54humor, description, explanation, objective, humor, shock, subject, character, comparison, humor
Layer 59humor, plot, pra, facts, objective, hypoth, subject, met, explanation, subject
Layer 66., objective, Plot, explain, prom, subject, character, fact, objective, sci
Stage 2Layer 80plot, observation, IM, Thom, verb, hyper, quar, Em, ps, Guillaume
Filtered Tokens
StageLayerTokens
Stage 1Layer 54oro, Kant, Harr, Werner, Bast, desert, Kent, Uns, ola, Fall
Layer 59iter, Arg,halten, enser, Lok, Kontrola, tring, atif, ias, Sof
Layer 66conj, dens, shal, amo, Lisa, lish, Sob, narrow, UMN, co
Stage 2Layer 80subject, Met, chron, intros, mix, emot, humor, Type, jective, subject
+ +![](images/e90bbc53828bbc2a034e7d8371d055ba841f327de698580b2761bf685cc28c67.jpg) +(a)SUBJ + +![](images/e98e85b5e0e3b4f20d1d594807f9a0523f9598c3e896093fb56d87be3d2f1d40.jpg) + +![](images/8282b63aa2db054f73fe00696d04e4c271f4343604c236a97f48629737b270c6.jpg) +(b) TREC + +![](images/8464cd74920c797ad48184e04525fab206f5e1311672a8af42a12c9106c5d81a.jpg) + +![](images/614e0d7debb511f1e2bb68be1d7fcc699279f5effa413481aa34c2772a072526.jpg) +(c) SNLI + +![](images/9997c902a4984c0791845b3b5b35b8c76d989c5ef690c739c0c35420b3b94d25.jpg) + +![](images/07896b83fc0b9a813241f15bc5467baf9960309b97261c525f8a7cc7aaf026ab.jpg) +(d) RTE + +![](images/2377b11a3d7655b3dfa10e7504510b34632aa921cc2e50a8302e0c159e4f6844.jpg) + +![](images/f1ef48167e51b8c2236d84d894257fdf19db39fcc95f5a2da16d0e4147fcf20f.jpg) +(e) CB + +![](images/1530e9729394a2a0052ae56ea3146f03ec6cfdd9ae3ab12a5fed9e2a0682aa4f.jpg) +Figure 25: Output and directional alignment of Llama2-7B ICL hidden states with label unembedding vectors on various datasets. + +![](images/cfdb6b213d39e4f80636bb361fef96b185f21e3e0f45db51a9ecbd4d70897a3d.jpg) +(f) SST-2 + +![](images/52dcc5c7d5687fc3892756a1f7239791c9580d2065974eebc0aec00bf52459ef.jpg) + +Table 12: Tokens decoded from top retained and filtered directions in layer updates on TREC + +
Retained Tokens
StageLayerTokens
Stage 1Layer 30pione, taste, definition, temporal, precision, science, amen, lich, irectory, enta
Layer 50description, subst, person, numbers, interpret, location, wars, location, answer, date
Layer 70hay, date, number, location, abbre, currency, location, number, description, Creative
Stage 2Layer 80hol, Heidel, Desp, eth, olis, description, origin, Type, description, arto
Filtered Tokens
StageLayerTokens
Stage 1Layer 30ako, dn, amen, ainer, overlay, aar, CHAP, storm, synchron, sober
Layer 50Gordon, Chinese, acci, Grace, penas, zak, gas, Kü, ps, prototype
Layer 70mas, fit, ioni, Salt, ru, oci, âtre, quet,thro, Sever
Stage 2Layer 80, number, list, discipline, organ, entertain, weather, bum, poll, coff
+ +Table 13: Tokens decoded from top retained and filtered directions in layer updates on SNLI + +
Retained Tokens
StageLayerTokens
Stage 1Layer 25pac, fácio, charm, beck, hist, rap, iella, fact, contradiction, engol
Layer 50., probable, false, uncertain, solo, neutral, tender, unknown, gender, unlikely
Layer 70., reverse, false, scenario, maybe, reverse, identity, gender, conce, Gram
Stage 2Layer 80rola, Dic, Kra, Column, Common, motor, ..., ge, Salt, fern
Filtered Tokens
StageLayerTokens
Stage 1Layer 25brief, uclude, Ath, bul, refêrences, EC, asta, Rot, nia, Tamil
Layer 50aho, oba, zu,umble, prepared, Mey, jer, Bras, irre, Maj
Layer 70Yu, Mare, iner, artificial, overlap, ilder, aret, elev, constru, Storm
Stage 2Layer 80im, <s>, fl, maybe , similarity, sem, habit, Ta, gender, action
+ +![](images/c3644302173d5d0d40c1570bf9971ee8533649d702a1116ae4ae0d4d6e748496.jpg) +(a)SUBJ + +![](images/7867b3e98d955e8688d51d79ef79ffeebea7e83b5a3f86b572995f1b143bf73a.jpg) + +![](images/84ee2d722bcee06a68d79345f2604230d7e3d37dc4bc6e293ab1935c3a13c713.jpg) +(b) TREC + +![](images/8fae65cd89aef4011345fe810fd70deb4defa6a2efec1a9aa91a4929c77f4d93.jpg) + +![](images/ca858f125ef3240c782f46c413e532522706872ec43b51dd20b390a8ad4c852f.jpg) +(c) SNLI + +![](images/60ab9b51d7c0c4f9b2bd2f9356ed623bb2aec6a8b01b5e690ad02e521df915b2.jpg) + +![](images/b706470dee13e05023a285ff30262a76d4f162d58f6f248b9037bf3190da00b9.jpg) +(d) RTE + +![](images/95f8b5b9783cd3ec379b146b11a8d36aa1f0b89d4c2fe399fd2da7f2bd11dad0.jpg) + +![](images/73ab5af417a05065f26032f92d9e03d03c3204c38fe3cdf4dbce1f3a2dbbda6c.jpg) +(e) CB + +![](images/75298f4a0ea765669fa8b33f5738304151b8daed4bbf08bedbdcccca8ab2bebd.jpg) +Figure 26: Output and directional alignment of Llama2-13B ICL hidden states with label unembedding vectors on various datasets. + +![](images/21e47ddd67f53aab036cab6e0c2e225afe971588051e32306e6487efa3cc0c37.jpg) +(f) SST-2 + +![](images/efa7a850a3be0784e7bc69467e453b314904931a3cd8170b16c14f7ba065326e.jpg) + +Table 14: Tokens decoded from top retained and filtered directions in layer updates on RTE + +
Retained Tokens
StageLayerTokens
Stage 1Layer 33Wikipedia, disput, yes, Jakob, alias, Ven, essel, indirect, False, isu
Layer 50false, alarm, irrelevant, opposite, noct, naming, duplicates, misunder, Geography, location
Layer 68:,(Geography, lament, sto, impossible, opinion, ken, numer, negative, true
Stage 2Layer 80Ale, Ad, Hub, Ke, lub, Terra, Haz, Ta, part, Andre
Filtered Tokens
StageLayerTokens
Stage 1Layer 33cust,▼, Mün, Lucas, itel, Barb, inha, Hed, FI, nica
Layer 50Лови, CA, Um, wob, prot, jär, 望, ang, 孝, Roman
Layer 68fert, CA, bach, Word, RL, gon, Charlie, MS, nen, Feld
Stage 2Layer 80SR, techni, gr, unclear, trag, opposite, Susan, estimate, rare, murder
+ +Table 15: Tokens decoded from top retained and filtered directions in layer updates on CB + +
Retained Tokens
StageLayerTokens
Stage 1Layer 25Bou, True, <s>, Cet, and, elin, JIOM, Pear, stabil, lav
Layer 49true, unlikely, uncertain, absence, False, predictions, avoided, myth, predictions, asym
Layer 70true, false, agreement, maybe, predictions, silent, negative, disapp, av, predictions
Stage 2Layer 80Giov, future, often, Frank, tend, imet, Sid, fran, Intent, maybe
Filtered Tokens
StageLayerTokens
Stage 1Layer 25slant, acci, Laurent, cht, brie, chamber, olare, gart, una, vie
Layer 49Dra, cito, nick, Verm, moz, neglect, abel, WR, anger, uchar
Layer 70ottom, nation, Cooper, exhaust, reign, hem, Um, diag, Ri, wa
Stage 2Layer 80false, esi, , False, Yes, often, aer, „, Mod, George
+ +![](images/a2a09b7c552b4b13ae256badb1cba350cb78c602d5905decc45981696bdc8544.jpg) +(a)SUBJ + +![](images/6f13c672f67485f6ec2ded112369fcaff3b4234f6020732f201b078f59516cfb.jpg) + +![](images/37a5fdef34d2d30c35abc876bb5fb3c614f9981784b0e31d8e0f36e242a6f5d2.jpg) +(b) TREC + +![](images/54ad3e52c1c784d6f04bfb88374519ce50de3e222b2e8db9bf70f4c17b578f86.jpg) + +![](images/80efbc7e3a39ef95b22d7f32044abdfa31d4c4f24f4c7e180f44105e0bb57117.jpg) +(c) SNLI + +![](images/3a812c06b2300e7615a8122cce637840bc4a3e9ccf1e8abb8611aad0a00e1d98.jpg) + +![](images/68bd79fb2edb0674b15f77d1a9fe67ec7a76e68fff936fd732489b4d6d16e3ee.jpg) +(d) RTE + +![](images/30f546bd335685e18d1a27dc378c69bde641b5ad732d11caaa64d1e88f3d86ce.jpg) + +![](images/06e619b4a81263ba78e804652e6b9cacbf6ecc508ef5458489c08edd94b4c9b3.jpg) +(e) CB + +![](images/0c77b5c873d550e2f39c69540ab1a98b791866165e627f8f1cfd64811e17dff9.jpg) +Figure 27: Output and directional alignment of Gemma-2B ICL hidden states with label unembedding vectors on various datasets. + +![](images/fadd42707158bd8c4e442b32c45bc7ffed553b9528ce819f2c1f2972d74b19b6.jpg) +(f) SST-2 + +![](images/7decca0f8250cbdf7251c43c56dfc0061a0d12b6963b50aca3d1082b336e7c17.jpg) + +![](images/5e160bc16f02f58398a58f9e21e74040a795cd572815b77f7b513390130a58a9.jpg) +(a)SUBJ + +![](images/4fa4b66038b9086b10ca757094f817837daf12bfe3c2a7d1a7e1598f419a0ef1.jpg) + +![](images/fed3253217ff6c2bb3313603a7b832429118b5916f37d7392096dc475449553b.jpg) +(b) TREC + +![](images/7847624313134020f373843bd6d2ac91a6c05ac9d52d28539205eaaddcfce1e8.jpg) + +![](images/1b684c728bb2f3e9b6a9240d84288b732f1859b53ce440e39f87f05c06cad984.jpg) +(c) SNLI + +![](images/024a59b68fc7faa6c498c4b867422f65ac911d318e7135659fdf2bb6888ef75e.jpg) + +![](images/44d37029f8acd55ebd2450e28efbb78c013dd80345961c67fd10cd3ac5cc5576.jpg) +(d) RTE + +![](images/998bf694ea007756da1b721a4258f175f0e0e57b1189880c34943f3834a48091.jpg) + +![](images/22b459ecd77b0b4c3d01af3384fa3e9565317c50810f66ec695d4a9551668f96.jpg) +(e) CB + +![](images/aa37c728ea163618ec8eac8fbce7b286cee18fc33879d37da05ffd84d38fbfec.jpg) +Figure 28: Output and directional alignment of Gemma-7B ICL hidden states with label unembedding vectors on various datasets. + +![](images/3a1cc93849e31d1d8949b860b9b2105736fe120a870eab5755c32fb3ec8ec655.jpg) +(f) SST-2 + +![](images/81168e09fac00a52949af33a38be4792bfc1e2168c6d302b7ab6ab614b0a4f9f.jpg) + +Llama3-8B, average across datasets + +Normal Acc.: 76.20% | w/o PTH Acc.: 31.49% | w/o IH Acc.: 0.00% | Random Heads Ablated Acc.: 47.86% + +![](images/dafa0929bd1de0d107b8480022de236f1f71951cd9932858467180e81696c8f6.jpg) +Effective dimension + +![](images/9cc6831a472a71ffd29230b18c6335845b856d0e89f0ee88f221cf4091c5d052.jpg) +Separability score + +![](images/17782336bc3b82fdd303658d87d9322e640b18efa537083372e67c1e1bc152e0.jpg) +Singular alignment + +![](images/d245ecbf1e0cff767a7b35c40ad67aba8c29e9dadf44c811b16d0f1a767ef327.jpg) +Composite alignment + +![](images/34708522f64a89bb4dd176a58b9e8315dcaceb3c96ac73b69fd6f5f4bbfdf6a0.jpg) +Mean-based alignment + +![](images/174779d0454a199be11becfc7169a284405fcd276617645c3ac1d931aede332a.jpg) +Var.-based alignment + +![](images/b030f8c5f37a7f077a0c530fc7536bb8e1a8aea1489d8543aa23e038df03a982.jpg) +Figure 29: Effects of attention heads ablation on the layer-wise separability and alignment measures of Llama3-8B hidden states averaged across all datasets + +Llama3-70B, average across datasets + +Normal Acc.: 81.09% | w/o PTH Acc.: 26.89% | w/o IH Acc.: 0.92% | Random Heads Ablated Acc.: 77.89% + +![](images/803c8170c80d9cc75e9437c0e0b7427e051f929a7746c3d25fb5c97c77cf2887.jpg) +Effective dimension + +![](images/8b144ae69009737199ea30eb0fd109bd0aaf557fbd3e4dbdc0f1b9d352156a23.jpg) +Separability score + +![](images/ab92bca6ed4312951216bac440d2daa2915e344008a6edf552fc189cc7443020.jpg) +Singular alignment + +Composite alignment +![](images/a96abb5fd1cfda7ef8209f54aec1bce35fe0c1438635242ddf0352831a669c91.jpg) +Normal w/o PTH w/o IH Random Heads Ablated + +![](images/fc3fc5fea30c1636576eefde2065fe32feb2d93dd9a628091e4ebe654bd99521.jpg) +Mean-based alignment +Figure 30: Effects of attention heads ablation on the layer-wise separability and alignment measures of Llama3-70B hidden states averaged across all datasets + +![](images/791d2f8127424bbb60d5e30aa08fe3a67f0f5f4bb9444c924237d44807c0ec10.jpg) +Var.-based alignment + +Llama2-7B, average across datasets + +Normal Acc.: 75.13% | w/o PTH Acc.: 10.59% | w/o IH Acc.: 0.70% | Random Heads Ablated Acc.: 48.15% + +![](images/e99101aa87ec14c810dd265fb18d1ade3d42b206fa28bd56840e72f2f5d5576b.jpg) +Effective dimension + +![](images/3d6f814e9ac70dd5055da424541948364ce950ccd027158f1097951c1bbcb203.jpg) +Separability score + +![](images/70fbd9cd2bbe5cc036914752cc887918f5ed0344af00c1eb2bd671e5ca50e0bd.jpg) +Singular alignment + +Composite alignment +Figure 31: Effects of attention heads ablation on the layer-wise separability and alignment measures of Llama2-7B hidden states averaged across all datasets +![](images/004fd98e8324c6f31d1bf466a2aededf224d3e519039e085fdead8aee290f529.jpg) +Normal w/o PTH w/o IH Random Heads Ablated + +![](images/50e37c7d92f7dac4dfd259d5ec55af22d2135b65c97a792e344d468ecbc496f5.jpg) +Mean-based alignment + +![](images/9a0f4e997c43fd86399d30f5e9f686efb68237ed19f05ca41aa14a2d42fb259f.jpg) +Var.-based alignment + +Llama2-13B, average across datasets + +Normal Acc.: 74.79% | w/o PTH Acc.: 23.19% | w/o IH Acc.: 1.16% | Random Heads Ablated Acc.: 73.49% + +![](images/4887e793dd67aa8118f6fca4770c311f33d7a0cb27eeb0283129dc38f030e640.jpg) +Effective dimension + +![](images/20e3f6a8d352123b18aa29b5447550073a5e39115fafccad0438e3cc7ad2fc9b.jpg) +Separability score + +![](images/1689918ea693a18d5809e144c4ade90d608c6fa6cb5092204480846a1c5716b1.jpg) +Singular alignment + +Composite alignment +Figure 32: Effects of attention heads ablation on the layer-wise separability and alignment measures of Llama2-13B hidden states averaged across all datasets +![](images/64e20aaaa77a0afc6070c645d80317b1eb1693b69a2abc232295afc18a84b273.jpg) +Normal w/o PTH w/o IH Random Heads Ablated + +![](images/b72b0bd3ef7dd005d9a510cc84ddadb8f10e4921c14e148756435367b9ccb69c.jpg) +Mean-based alignment + +![](images/ef3810908fde2b46d4ea53d1e1921ad6c5b049bb12855036ebe27fa3572cf716.jpg) +Var.-based alignment + +Gemma-2B, average across datasets + +Normal Acc.: 66.16% | w/o PTH Acc.: 16.24% | w/o IH Acc.: 1.20% | Random Heads Ablated Acc.: 36.48% + +![](images/f81e441930fe63fe1267df2bc805326c1e75daddf3ad80d4b264376ff9717fd1.jpg) +Effective dimension + +![](images/4c1c87cdf3c98b82ab05bd680526641cc226b17c4a227bc8c7410cb482dac6ba.jpg) +Separability score + +![](images/4a774ffb7d0da3a0dde6ab9f2606278ac0e1e93d45621250365c217310cd9c2b.jpg) +Singular alignment + +Composite alignment +Figure 33: Effects of attention heads ablation on the layer-wise separability and alignment measures of Gemma-2B hidden states averaged across all datasets +![](images/e4b18c177c75b3beaed66337fb7519a121d08a030bd59ebc232ba006867fe2b1.jpg) +Normal w/o PTH w/o IH Random Heads Ablated + +![](images/9469aa5fa35ce007aeab0d8095daf93bb6a92b8a245a1bb6f4243c705fd493e8.jpg) +Mean-based alignment + +![](images/2b42f726576c8251e15be8e4326d850af9f8d54221ffce3e2c6c4e22c3cb63fb.jpg) +Var.-based alignment + +Gemma-7B, average across datasets + +Normal Acc.: 79.06% | w/o PTH Acc.: 25.60% | w/o IH Acc.: 5.66% | Random Heads Ablated Acc.: 40.82% + +![](images/a510ceeb6d8a4ac7378cfc2570777c3689965546f76daf630c1bb9a923729c0c.jpg) +Effective dimension + +![](images/83411ffec1d4fee9f978e889134e58fedfb57ad76e9bbb63a4b8aefa616d4a21.jpg) +Separability score + +![](images/df69b4d1eeebc6ab95c9d362707f764898377946f91c9cb202a54209d02b9bfe.jpg) +Singular alignment + +Composite alignment +Figure 34: Effects of attention heads ablation on the layer-wise separability and alignment measures of Gemma-7B hidden states averaged across all datasets +![](images/a9753b248aeaee2f09b51feb272a802f749f853c08fbb49bb6343f8dc975d9d9.jpg) +Normal w/o PTH w/o IH Random Heads Ablated + +![](images/395c7d5be139a4578fcbbd077762166b9fcb3e5f9695f79a3c804a2e385a2afd.jpg) +Mean-based alignment + +![](images/d12a7519bfd4b16640aea20a3f1c983eeecb6b9daa207de5044a84e663a3ec11.jpg) +Var.-based alignment + +# Llama2-70B Famous + +Unseen label Acc.: 57.78% | w/o PTH Acc.: 1.11% | w/o IH Acc.: 37.78% | Seen label Acc.: 78.89% + +![](images/4c7d8650f2821c33e18803c14ed466efc4165cfc2a2391d6fc2526aa593911e4.jpg) +Effective dimension + +![](images/ae0be881f77f99fc1d7c7458e2f7135d0022345dfbaa0506ca8c506fbd58e1dd.jpg) +Separability score + +![](images/42f3882967f1e33acc92ff9fa8ed4cdcfe2bbaaab65ee5ee1fef6273a4ed6e5c.jpg) +Singular alignment + +Composite alignment +Figure 35: Effects of attention heads ablation on the layer-wise separability and alignment measures of Llama2-70B hidden states on Famous People dataset. +![](images/4e157c5afdc0b083048dd51250d087dce202fbc256388faca2344bce92639978.jpg) +Unseen label w/o PTH w/o IH Seen label + +![](images/2e03028a2e436f39ab7caf978136a140fb251d8d349def8208a55bb8913e0a98.jpg) +Mean-based alignment + +![](images/fa59eba04884e8454549a5f62d2f6ac1f6aeb25b886af751b211d5ce96985263.jpg) +Var.-based alignment + +Llama3-8B Famous + +Unseen label Acc.: 68.89% | w/o PTH Acc.: 15.56% | w/o IH Acc.: 6.67% | Seen label Acc.: 83.33% + +![](images/2f0a9430e96d277c2a4e468301322bd7d71eb97db21f59f3de52d69fa222f962.jpg) +Effective dimension + +![](images/fde317b72c792d81e46a6660ff09d6d0d45b5fc4172535ffaf2b9e68a33d5c22.jpg) +Separability score + +![](images/09d3a0ce32fefc496afb04af0bdfb3f1e5ce9a16bcd1c86dc7b1498ca7e260d5.jpg) +Singular alignment + +Composite alignment +Figure 36: Effects of attention heads ablation on the layer-wise separability and alignment measures of Llama3-8B hidden states on Famous People dataset. +![](images/76885a7679ef9afce8718da2995b3fec0d7fb42771aa044aa20cf63510326faf.jpg) +Unseen label w/o PTH w/o IH Seen label + +![](images/04bfc416cf7521b9120739b09776859b59a24b38829851047685797c5b9acc26.jpg) +Mean-based alignment + +![](images/a8a4076c3b3dc7b7bc72c7ae4cd01ab5d0837ea0d746be03d298a0166ddfd623.jpg) +Var.-based alignment + +Llama3-70B Famous + +Unseen label Acc.: 61.11% | w/o PTH Acc.: 16.67% | w/o IH Acc.: 26.67% | Seen label Acc.: 83.33% + +![](images/207487b9538503de68e081aca37564c33d910c9e8e92f32650c656931e277b4e.jpg) +Effective dimension + +![](images/8b359cd9a54a7de05cda953ca9a6b4267918ca7ac7ac6e2041c82e7267c98e3c.jpg) +Separability score + +![](images/dfb133a736d0bcd9a0b255b4d8fb43f20c39b47457ebfa49d98d276b70e5be7e.jpg) +Singular alignment + +Composite alignment +Figure 37: Effects of attention heads ablation on the layer-wise separability and alignment measures of Llama3-70B hidden states on Famous People dataset. +![](images/ea9085483928f18ce949db54f16f82c71d264072293bee8ce72af7eaaa2a3005.jpg) +Unseen label w/o PTH w/o IH Seen label + +![](images/458ab0904a57b0674ca05fcd0a866eea480f46396fa354f8036f31cfa51891e1.jpg) +Mean-based alignment + +![](images/f2211350d6c77560cab7bf5beab5500d9dae7e04c03a1a99149f4703a9aff70c.jpg) +Var.-based alignment + +Llama2-7B Famous + +Unseen label Acc.: 54.44% | w/o PTH Acc.: 1.11% | w/o IH Acc.: 3.33% | Seen label Acc.: 72.22% + +![](images/e34ba0fc6e3ad009d80688a4783c24231935d3dd404845ee4e46ab5633638665.jpg) +Effective dimension + +![](images/65b16149f0dff167bde1d575036017014dd896859ab91f034a86451d18475f5d.jpg) +Separability score + +![](images/d899c5ee1e82bf7b782ce88f38a8c9ec4bac97570166bb9203ea97c83dad5639.jpg) +Singular alignment + +Composite alignment +Figure 38: Effects of attention heads ablation on the layer-wise separability and alignment measures of Llama2-7B hidden states on Famous People dataset. +![](images/659f1280b38bbed4700b37bc048e2aaeb040291c901fe04e919104001e9db7e5.jpg) +Unseen label w/o PTH w/o IH Seen label + +![](images/4cb5fb6f214e4c93e4bf80ee9deb12c099b6bc5aacb704fa7cb0659a1be01d6b.jpg) +Mean-based alignment + +![](images/2ffb0eeb6be0c454a1dd60361b3ab8a4b2f77db6b9bdb36e3b43c78e517a7ec5.jpg) +Var.-based alignment + +Llama2-13B Famous + +Unseen label Acc.: 52.22% | w/o PTH Acc.: 0.00% | w/o IH Acc.: 0.00% | Seen label Acc.: 67.78% + +![](images/5dd4b9a3032c528c15b3eb8415845d78c5e5957de8febf0e6b516ff01c91a7ba.jpg) +Effective dimension + +![](images/2d4950e9826d1e17106c95f94dcfda099c68a1e67e46ceced5b60496d19cd1b3.jpg) +Separability score + +![](images/6f6fcbb2e246e04f3f13e811104b2416441ec1f829b2377c8462aa321b53cb50.jpg) +Singular alignment + +Composite alignment +Figure 39: Effects of attention heads ablation on the layer-wise separability and alignment measures of Llama2-13B hidden states on Famous People dataset. +![](images/3e00c7673db0c9b2e614d1c3826e45aa8b3ee8c582b0102a5e76b6f4767449be.jpg) +Unseen label w/o PTH w/o IH Seen label + +![](images/4f10519a0138c84186d56fb98ba53f4e30a9a15f27dae09fcc9b543f91462a1b.jpg) +Mean-based alignment + +![](images/62a45cfa9668cdc601c4555a08770f5be687af906373a1d9c5abb11f5d286b7d.jpg) +Var.-based alignment + +Gemma-2B Famous Unseen label Acc.: $60.00\%$ | w/o PTH Acc.: $0.00\%$ | w/o IH Acc.: $0.00\%$ | Seen label Acc.: $73.33\%$ + +![](images/98b399fd5056771fd9bb11a79770e9fa9bbfaabbc8630a4616607f00b3cb61f8.jpg) + +![](images/2b9dfc761c84f7d385f0bf8e862210426d7c22997015c71834457711f85c8081.jpg) + +![](images/46afda1d810d61d6f7ad58b1e7c49bb9ca16b07512a1c559bff68712459054f5.jpg) + +![](images/eea9c90b327f041c45465ea5a6e3c0fcbcb60d639e5154225e4b4e140ceab83a.jpg) + +![](images/0dfc680ff3015058ea8b43146b559ff7bc2e55b3e2f8b551bad63c7f38c7700c.jpg) + +![](images/b4e5dedf1f80fa4d9b5133a209793c44948f379184ce23f9ec1e9a31df408843.jpg) + +![](images/b1dc4ca197f0b6c1f682c1d7c9a61d143cd5fb16747a5f5354f8955c7ec4a384.jpg) +Figure 40: Effects of attention heads ablation on the layer-wise separability and alignment measures of Gemma-2B hidden states on Famous People dataset. + +# Gemma-7B Famous + +Unseen label Acc.: 50.00% | w/o PTH Acc.: 26.67% | w/o IH Acc.: 25.56% | Seen label Acc.: 75.56% + +![](images/6058dbe15e6f69a1ba802b55548b7c34ef774f5364b7775ee8e8437645979d0a.jpg) + +![](images/e3e5edc1c841787414b855746d73970d6e01cf7c41c579b42be4e15965acceb7.jpg) + +![](images/34b8a3dd1093fc7f2c7b8b5eeeb10da197eaf92f95a46ef9624b709604244395.jpg) + +![](images/f1bdbf551d9bb8fcb02f625b95bba34d139e8f5d3546769f0aa249ebff8b312e.jpg) + +![](images/1f81de87f1e8aebda06f363deb50a0e7c6d29a87ebd1baee54dab2182ff178f2.jpg) + +![](images/fc2c2f6d5dc7b111679477c8d8b11864249688113a5375f3a14142eec8281152.jpg) + +![](images/d983e4efb9ab3e36c1a851c856e60d1dad8bd9192474bba10579dbf2cb725c25.jpg) +Figure 41: Effects of attention heads ablation on the layer-wise separability and alignment measures of Gemma-7B hidden states on Famous People dataset. + +![](images/c206586a53cd43b8d38f0674249bb63431e393a58b79e75158a1aff58c607d6a.jpg) +(a) SST-2 + +![](images/0af4694ae3f5a34fad346ccead498d0774b80e7b132b028f420f65ae3405ae33.jpg) +(b)SUBJ + +![](images/c80fbe250665fd2a52e8adc172f9dc615a97cd97b48d406c031c3d90ada731db.jpg) +(c) TREC + +![](images/e6b2cd5d21d3cfd71446eeda65aa4d80b513708d77baad528ab65d4f67d82fc2.jpg) +(d) SNLI + +![](images/8ba3e0cb4b28d8a008803d437395091b24ed6db22e238fc1fbc5a1b54350b805.jpg) +(e) RTE + +![](images/45c0c4d24e06465b5871048c2e78720dfb018695748720c462707e1318414412.jpg) +(f) CB +Figure 42: Accuracy gains of rank-10 denoising over layers on all datasets with Llama2-70B + +![](images/1b9eefa663ed06117ec6de14c6aa1fbb0647c0d009536cc8e41ae8fcc22b9867.jpg) +(a) SST-2 + +![](images/9389fafa8af40dda5dcf99ed905dc8b16f0f247f5f54aeda46c27540cf623477.jpg) +(b)SUBJ + +![](images/b446fd71e0442d9d594428c1efcfed4cf9eeffc9d723aee2abf776582f5c1d26.jpg) +(c) TREC + +![](images/64a4092b93cdbe9e1016f2ba8fa2428d7548ba9335fc0da0ff812ea2cd1b6975.jpg) +(d) SNLI + +![](images/3175001eb774480b07cb2f746e279baa064c18164ca5565341cedec1f263a1b6.jpg) +(e) RTE + +![](images/d1ebe295551afa3f4db4f281c0bd895abdd87186e8b844fbf067bbc97c8cc6be.jpg) +(f) CB + +![](images/d047ca6a1e1b939765b5c436e8b5bdedaa75de60ce09e7ac971ff677c3a8cfd9.jpg) +Figure 43: Accuracy gains of rank-10 denoising over layers on all datasets with Llama3-8B + +![](images/9135b252ce9c0c09dbf9a8ccfc72191cf78eeea4a895e84921e7c0692a47fda4.jpg) +(b)SUBJ + +![](images/89a070234f6c2283129ad4f9f434fd27bea7157172fe3129214d206a4133fd1b.jpg) +(c) TREC + +![](images/b48821d4df9d532d4d3d2adcd723d79a0dbcad1fe7c7ecb057239514d1e517b5.jpg) +(a) SST-2 +(d) SNLI + +![](images/78192d12d54e8b7dbb1dbbe5cd7825bf132b3f369e16950cdf65137486136368.jpg) +(e) RTE + +![](images/beb7b100932493068ae32316b73fe9e3ddf840961c04db1c583381697907e1ff.jpg) +(f) CB + +![](images/780f0f67c05a803a5da053cc1d8e92a92ecb3b82744f52511e14fb5dc48beee2.jpg) +Figure 44: Accuracy gains of rank-10 denoising over layers on all datasets with Llama3-70B +(a) SST-2 + +![](images/bd88b420516ae10e42fb78365fb92c2a6a765a4d5d743d681b46ef66c4f79319.jpg) +(b)SUBJ + +![](images/59f3798dd0dbe1c3ccbb5b813b6534d3a1b22ae14f6d4444ac449e36eddbba8d.jpg) +(c) TREC + +![](images/b31cccadb1326299cb536d09d90446848b03fd19e8866eacf4c2bebf66c5b96f.jpg) +(d) SNLI + +![](images/f6f4d39acda1b5fa4943e96e61e1fd3695608a541e07a03f55efef4acb430db5.jpg) +(e) RTE + +![](images/0f45fe374c3a401f2a825af673705f2900280dbf968eb458bf265a3c2b58d2a3.jpg) +(f) CB + +![](images/98f0031d3577e14b222f36e998f908fc3c3c495d1d7a6392fdfa723688d93e92.jpg) +Figure 45: Accuracy gains of rank-10 denoising over layers on all datasets with Llama2-7B +(a) SST-2 + +![](images/e3503d17fdc38b59dd448c55dac586a3849c7a71a6a29c148847e1e2a77c3626.jpg) +(b)SUBJ + +![](images/873340fdff53b68d1529b36e458515f95c48d23ac3d36ce5b3f5e2678d8087f3.jpg) +(c) TREC + +![](images/0579887af81486e654c3865a012c280809063b2dfe8c4d195a6d57eedb54254f.jpg) +(d) SNLI +Figure 46: Accuracy gains of rank-10 denoising over layers on all datasets with Llama2-13B + +![](images/b3bd45602da5616e7398271cae82446d27fc24e0399755ff92759de5877cca1b.jpg) +(e) RTE + +![](images/1da02fb1768d87b55d4f100cefde2ba3cf1a618b026d9ee37c8fc1aedbbd1d78.jpg) +(f) CB + +![](images/d74d6ff2102154976a481157291a6a3cd57838533222f1f48a5d1c513fd5d264.jpg) +(a) SST-2 + +![](images/3b85663606d11a718cc39848246369799b26b5d7334bbaf6fdf07193f0229030.jpg) +(b)SUBJ + +![](images/9ac8a4c35e999b150df6335a812d6460b53b0c93405560730b38ca30467c525b.jpg) +(c) TREC + +![](images/46557a4af374077bf35a854ddf5dbbe82c35ac31bb7967f65546fa5677636097.jpg) +(d) SNLI + +![](images/dc912b2ef336f45ae2a47de7fde8d4b12bacbd40261b7337e6f2a84225b4f463.jpg) +(e) RTE + +![](images/fe09bae2afe82e4c97024af825a1ff0bccd75098bb3e67c783caa2ad36046604.jpg) +(f) CB + +![](images/db7a371197dd00e534f7d6737b67c334e0157ee7c8c3fcaff6b5bf42bbf25236.jpg) +Figure 47: Accuracy gains of rank-10 denoising over layers on all datasets with Gemma-2B + +![](images/cd2f9128bc28c9199d495d349d543027f3da8739b2345b6275cd8da984f626d4.jpg) +(b)SUBJ + +![](images/662076dbd6a2a47f8105ac417f4d1bf7c12b14f8ce0c96bd4c2b54887535a331.jpg) +(c) TREC + +![](images/7c7758b3c5ead4af064a6191461a69d5b2e74d9f9e3641e8289979f35b42d1de.jpg) +(a) SST-2 +(d) SNLI + +![](images/ea3539a727bf5aa463ac60b028efe9745959945577a49d052ce3a24e9413de64.jpg) +(e) RTE + +![](images/d55be268c0c26501727710db219894bf8184cc5c77af6710fdfac3f2f054e36f.jpg) +(f) CB + +![](images/0fa52d46cace7d95cffa604bc11329c1b5216d6d3e49e8ca2de0cc9acb8277ba.jpg) +Figure 48: Accuracy gains of rank-10 denoising over layers on all datasets with Gemma-7B +(a) SST-2 + +![](images/4a47cbab4d9f41f40c8d6ec5e549bcafff7c9c78c759c6f8fa19c18901fd0ff2.jpg) +(b)SUBJ + +![](images/879f4aa2e4ecb3bc7df51396e7b3933d12fd532766a81425675ded86d421998f.jpg) +(c) TREC + +![](images/4fa0f27d807ab508051ce7cc147a7570ef1fb2e98e3832897efb17a811ac3dec.jpg) +(d) SNLI + +![](images/6f86560a8a0eb946a66dfe25fb9e7d26b72f766872530a2f9735dcf9042469dd.jpg) +(e) RTE + +![](images/d97cd73e001c2f3bcc7cde4abb24697d218817813618b2dbbf3768f5eba5333a.jpg) +(f) CB + +![](images/96501f52fc178c9307845a1ba0013d2593a0cf65acba0f9d67e51fdc782505cb.jpg) +Figure 49: Accuracy gains of rank-5 denoising over layers on all datasets with Llama2-70B +(a) SST-2 + +![](images/7992cd8ff2fabf376e23559005ee97145c247be41324fb237e389e6a8f7bf677.jpg) +(b)SUBJ + +![](images/37514c60b03d80450742c4a4c37806f910d496d6f858308478d4c573f3aec461.jpg) +(c) TREC + +![](images/f3b1e1a918af5ec6ee5cd15123062414283583e869360acf06edeb32f5d59c19.jpg) +(d) SNLI +Figure 50: Accuracy gains of rank-2 denoising over layers on all datasets with Llama2-70B + +![](images/bb522dfb4c1bc011a0b3694d30b68e5b2f8bd6600ef8915d5186581729b99ca8.jpg) +(e) RTE + +![](images/6ef4a737c9e0b16e8ccba11d18595744fdc1de0da5a2c5ccf27d7711c91f81e7.jpg) +(f) CB + +![](images/2140920fb5b69ed1f50e5b67c1f6ba895136390d4e8f23e79dbbc5d62e6b12fb.jpg) +(a) SST-2 + +![](images/988e32558d48fb97dffad52bf7d2f2b22a97b7f44ff19ef8762f3a542ff94fcc.jpg) +(b)SUBJ + +![](images/4e6d8b9a55c8d0789a136506168fbe2659f03a07817f173225cd27bdc7dca9b6.jpg) +(c) TREC + +![](images/1153315dbee5ccd316babdc686cc0e48941e98c052ee3b154ca56bac680c6309.jpg) +(d) SNLI + +![](images/d393f7b1b70106164996d5bbef2cc2147725b69dd931d0201ec342ced70ff632.jpg) +(e) RTE +Figure 51: Accuracy gains of rank-1 denoising over layers on all datasets with Llama2-70B + +![](images/dff28a4b83132697e7b422d390851c79e0824e650e36fea45c327269c631834c.jpg) +(f) CB + +![](images/e4d145a2a8eb4bf1e21e078d7ac12575c4e7951c54368d51faae494d277928ea.jpg) +Llama2-70B, average across datasets +Normal Acc.: $0.24\%$ | w/o PTH Acc.: $0.00\%$ | w/o IH Acc.: $0.05\%$ | Random Heads Ablated Acc.: $0.08\%$ +Effective dimension + +![](images/069d5c6ff307d2359fca813c83fcfe81089088fd1337552d7a993bdb37a89b15.jpg) +Separability score + +![](images/ed8da17c1494203b4b26d6bded4de238493bb7115cbcc028b1d84c3dcb372b88.jpg) +Singular alignment + +Composite alignment +Figure 52: Average effects across datasets of attention heads ablation on the layer-wise separability and alignment measures of Llama2-70B hidden states in the zero-shot setting. +![](images/f5c4f53c5703c8753d3f28a8db45878180cb6cba0b4e0390c1bb6c5f89c3320d.jpg) +Normal w/o PTH w/o IH Random Heads Ablated + +![](images/a0f6540860b97a1c0b26d5c51aa64001be3318593e89b9aa4f8fe2ef38f1125f.jpg) +Mean-based alignment + +![](images/5671719a3116a878d49cece9691ee8419c9df35a0056e8988102c55604cf0e97.jpg) +Var.-based alignment + +Table 16: Mean layer values of IH and PTH along with p-values of Mann-Whitney U test on Llama3-8B. + +
% LevelIH mean layerPTH mean layerp-value of Mann-Whitney U test
1%15.8839.56675.06 × 10-7
2%16.39212.6583.99 × 10-5
5%16.49313.8332.29 × 10-5
10%16.43514.3644.46 × 10-6
+ +Table 17: Mean layer values of IH and PTH along with p-values of Mann-Whitney U test on Llama3-70B. + +
% LevelIH mean layerPTH mean layerp-value of Mann-Whitney U test
1%47.62445.7550.5573
2%46.27346.9770.1347
5%44.35447.2771.18 × 10-7
10%43.27844.2578.38 × 10-4
+ +![](images/eb1fd7b9771f6d6ec556fb5fbab21f41a9e4ee63048a336001bf148fc64885c6.jpg) +(a) Layer-wise separability score: 0-shot vs. 8-shot + +![](images/53bfcc1c2aa0297bd6e94a9b79ddc3386e98333baf44d98295ac272e7b3994ad.jpg) +(b) Layer-wise composite alignment: 0-shot vs. 8-shot +Figure 53: Layer-wise trends of separability score and composite alignment of 0-shot and 8-shot hidden states of Llama3-8B. + +![](images/4708c75cf002b1d28e5c0d83e5b45f1d72a6fe0256e1080bbf24cce9be600032.jpg) +(a) Layer-wise separability score: 0-shot vs. 8-shot + +![](images/d67a66dcf9343859752142cd928975706c74cc976dfba4f74e7c0c670b6f64ee.jpg) +(b) Layer-wise composite alignment: 0-shot vs. 8-shot +Figure 54: Layer-wise trends of separability score and composite alignment of 0-shot and 8-shot hidden states of Llama3-70B. + +![](images/4860d1c898b866a0fee65624b738113da01f58e1412983bca1c9da1c8194d6dc.jpg) +(a) Layer-wise separability score: 0-shot vs. 8-shot +Figure 55: Layer-wise trends of separability score and composite alignment of 0-shot and 8-shot hidden states of Llama2-7B. + +![](images/62cb30e65069ace983235aca55f8f0a918a3fdccd9609749a9d2cc9d59093134.jpg) +(b) Layer-wise composite alignment: 0-shot vs. 8-shot + +![](images/0c7444739dfca8e74219ed45e120eaa5bd9957b04980f03a565115ef0b00f79b.jpg) +(a) Layer-wise separability score: 0-shot vs. 8-shot +Figure 56: Layer-wise trends of separability score and composite alignment of 0-shot and 8-shot hidden states of Llama2-13B. + +![](images/2a272750a0562b6ed24b5bc0c1ea50019fb6ceadac13dbeea36ee591cab07b5f.jpg) +(b) Layer-wise composite alignment: 0-shot vs. 8-shot + +![](images/081e52ebd3779620c78fe75c3d7b4c7c60b174ba3c0a14fc63b77f82b1b38cef.jpg) +(a) Layer-wise separability score: 0-shot vs. 8-shot + +![](images/a650b3916f9e531f9a318ffb28e6ce3756ff88dab62baf3cbee6292424db5c7f.jpg) +(b) Layer-wise composite alignment: 0-shot vs. 8-shot +Figure 57: Layer-wise trends of separability score and composite alignment of 0-shot and 8-shot hidden states of Gemma-2B. + +![](images/30028af47790fc7cfa66fc4c7bee9b27b6ff4b0192a5cea6f61fa46533a24ee1.jpg) +(a) Layer-wise separability score: 0-shot vs. 8-shot + +![](images/8752dd5b89e5a561ba604ec1edb0f8e812a71c785364295af088f2aa1ed0de73.jpg) +(b) Layer-wise composite alignment: 0-shot vs. 8-shot +Figure 58: Layer-wise trends of separability score and composite alignment of 0-shot and 8-shot hidden states of Gemma-7B. + +![](images/eb347c45e682dd7702d9223350fef6d66274df368259cf51bb0ef5c2d02f05bf.jpg) +(a) Layer-wise separability score: PTH task vector +Figure 59: Effects of injecting PTH and IH outputs as task vectors on the geometric properties of Llama3-8B zero-shot hidden states. + +![](images/6c639b77ca1c748c6b41ffb36f8fa3489b1bb2109090b183cd629fe7b38dcdba.jpg) +(b) Layer-wise composite alignment: IH task vector + +![](images/475c17581ffee4b97bc3ae36eca659b7c658d4937ea3fb00bf5b0f2dbe0d8807.jpg) +(a) Layer-wise separability score: PTH task vector +Figure 60: Effects of injecting PTH and IH outputs as task vectors on the geometric properties of Llama3-70B zero-shot hidden states. + +![](images/8ed3afc9088a2e0cfa68f01fc616c5b3c4fa192e70b13467615f08a5cb713c19.jpg) +(b) Layer-wise composite alignment: IH task vector + +![](images/f872b90528ecaab93eb4db048c2ce2a847aed5ba4bbea896e7bb2bf948b59260.jpg) +(a) Layer-wise separability score: PTH task vector + +![](images/9289869b22865e74877cb40b37668431e7ef190006e218467083bebe9ac338fb.jpg) +(b) Layer-wise composite alignment: IH task vector +Figure 61: Effects of injecting PTH and IH outputs as task vectors on the geometric properties of Llama2-7B zero-shot hidden states. + +![](images/a1be3b336a80978b95ea63bcef601da4bb4e613379a46694209ad4403ef7cb1a.jpg) +(a) Layer-wise separability score: PTH task vector + +![](images/6572782123a74767384d90dcdb5ca41d9422780adf2aeae93fe21194c4a2f4bf.jpg) +(b) Layer-wise composite alignment: IH task vector +Figure 62: Effects of injecting PTH and IH outputs as task vectors on the geometric properties of Llama2-13B zero-shot hidden states. + +![](images/ddd2856b42515050ba1c3f92e9ed1a70ca585a09fdb4426dd142529d39780ec0.jpg) +(a) Layer-wise separability score: PTH task vector +Figure 63: Effects of injecting PTH and IH outputs as task vectors on the geometric properties of Gemma-2B zero-shot hidden states. + +![](images/d8a5e21daa25a95d28952c4afd073264bb02cd2eb1b744343a2644f6b99c33e3.jpg) +(b) Layer-wise composite alignment: IH task vector + +![](images/0a87eb92bd42f107dbd06f2e4c599ca17d7fac28c20a12f3da64f2e99f704efb.jpg) +(a) Layer-wise separability score: PTH task vector +Figure 64: Effects of injecting PTH and IH outputs as task vectors on the geometric properties of Gemma-7B zero-shot hidden states. + +![](images/9913c298fa17824f9775d35f273d2e40e474e77cf92bb9dee54afb62c40d4cdb.jpg) +(b) Layer-wise composite alignment: IH task vector + +Table 18: Mean layer values of IH and PTH along with p-values of Mann-Whitney U test on Llama2-7B. + +
% LevelIH mean layerPTH mean layerp-value of Mann-Whitney U test
1%15.8838.58335.62 × 10-7
2%16.13310.1089.78 × 10-9
5%16.30112.0924.12 × 10-8
10%16.40512.5597.27 × 10-13
+ +Table 19: Mean layer values of IH and PTH along with p-values of Mann-Whitney U test on Llama2-13B. + +
% LevelIH mean layerPTH mean layerp-value of Mann-Whitney U test
1%21.31217.0941.75 × 10-2
2%20.13518.0269.44 × 10-2
5%19.96016.9276.08 × 10-6
10%19.88816.3433.08 × 10-13
+ +Table 20: Mean layer values of IH and PTH along with p-values of Mann-Whitney U test on Gemma-2B. + +
% LevelIH mean layerPTH mean layerp-value of Mann-Whitney U test
1%9.00001.66678.58 × 10-3
2%10.9175.00007.91 × 10-4
5%11.5714.42862.22 × 10-10
10%12.2146.16672.48 × 10-12
+ +Table 21: Mean layer values of IH and PTH along with p-values of Mann-Whitney U test on Gemma7B. + +
% LevelIH mean layerPTH mean layerp-value of Mann-Whitney U test
1%18.7089.08332.01 × 10-5
2%19.0629.12501.96 × 10-6
5%18.7427.62126.31 × 10-21
10%18.5239.05304.44 × 10-32
+ +![](images/6d42750c176a8545546b6a8bfc71de5407c2c00beca211bd7bdd62a33054eee5.jpg) +Figure 65: Average effect across datasets of steering Llama3-8B zero-shot hidden states using task vectors created from IH outputs. + +![](images/2c1feb3dbf0c20731674696f9a85d56f23e632f9e823d77db23ec499518e148b.jpg) +Figure 66: Average effect across datasets of steering Llama3-70B zero-shot hidden states using task vectors created from IH outputs. + +![](images/87aca166d92e6d5ef2847248f699b9dac357543c0073d6cb579f20ae85bb967e.jpg) +Figure 67: Average effect across datasets of steering Llama2-7B zero-shot hidden states using task vectors created from IH outputs. + +![](images/e1701160bd0bd8c6641efda7c984078f6383930ce36424e5d2fe6476c3a1f34b.jpg) +Figure 68: Average effect across datasets of steering Llama2-13B zero-shot hidden states using task vectors created from IH outputs. + +![](images/bc67ada341605886cf1136ea1f68828c571b8f343aa23b4b038ed79a6abd4db5.jpg) +Figure 69: Average effect across datasets of steering Gemma-2B zero-shot hidden states using task vectors created from IH outputs. + +![](images/3b860f3fc69dccb74758bed00b7089878c819b5414cf5b207a9a923a17d593eb.jpg) +Figure 70: Average effect across datasets of steering Gemma-7B zero-shot hidden states using task vectors created from IH outputs. + +Table 22: Comparison of classification accuracy: training classifier v.s. direct decoding with zero-shot prompts. + +
Model0-shot (%)0-shot+classifier (%)Improvement
Llama3-8B0.30%73.71%+73.41%
Llama3-70B0.00%78.97%+78.97%
Llama2-7B0.31%75.63%+75.32%
Llama2-13B0.36%79.71%+79.35%
Llama2-70B0.24%79.02%+78.78%
Gemma-2B0.00%75.56%+75.56%
Gemma-7B0.02%75.43%+75.41%
+ +Table 23: Comparison of classification accuracy: training classifier v.s. direct decoding with zero-shot prompts. + +
Model8-shot (%)8-shot+classifier (%)Improvement
Llama3-8B76.20%85.47%+9.27%
Llama3-70B81.01%84.46%+3.45%
Llama2-7B74.83%85.59%+10.76%
Llama2-13B74.82%85.44%+10.62%
Llama2-70B80.52%87.76%+7.24%
Gemma-2B67.03%77.87%+10.84%
Gemma-7B79.19%84.94%+5.75%
+ +Table 24: Comparison of classification accuracy: regular ICL v.s. low-rank denoising of hidden states + +
Model8-shot (%)8-shot+denoising (%)Improvement
Llama3-8B76.20%78.58%+2.38%
Llama3-70B81.01%82.40%+1.39%
Llama2-7B74.83%77.68%+2.85%
Llama2-13B74.82%79.52%+4.70%
Llama2-70B80.52%80.72%+0.20%
Gemma-2B67.03%67.25%+0.22%
Gemma-7B79.19%66.11%-13.08%
\ No newline at end of file diff --git a/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/images.zip b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..131259e4895a927cd4be0220d8b38601454e6c7b --- /dev/null +++ b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3ad6e4f2d95a06ab196688868bc2eb768fed8c98361b8dbb8e8eabfb89df75a +size 5244863 diff --git a/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/layout.json b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..089db3efb93fabf83b864a11321a77c58539a76c --- /dev/null +++ b/NeurIPS/2025/Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learning/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba5f0ac4d929095a2aea003e532c6c1dfd9c6d6f13f2134c38ce9b5cb34808e6 +size 2312883 diff --git a/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/d3ee5e74-ae25-4178-90c5-ec5ce3921a32_content_list.json b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/d3ee5e74-ae25-4178-90c5-ec5ce3921a32_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..c5e1a4e5e1652a51da6b3451964d887a56000843 --- /dev/null +++ b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/d3ee5e74-ae25-4178-90c5-ec5ce3921a32_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:286196138857e24da16b035d3c258528a386818d5d5733c7e229eb09273c1b64 +size 260578 diff --git a/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/d3ee5e74-ae25-4178-90c5-ec5ce3921a32_model.json b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/d3ee5e74-ae25-4178-90c5-ec5ce3921a32_model.json new file mode 100644 index 0000000000000000000000000000000000000000..6a71466279eb81fda4b17b4f98157da78d57ce3f --- /dev/null +++ b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/d3ee5e74-ae25-4178-90c5-ec5ce3921a32_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10ff118923dedc301352a9d395fedde45751c24a3dfde687a6333f3df9349b68 +size 313494 diff --git a/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/d3ee5e74-ae25-4178-90c5-ec5ce3921a32_origin.pdf b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/d3ee5e74-ae25-4178-90c5-ec5ce3921a32_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..6cbbcde9fbc70bf6a2e30d3cd85865842f34ebb5 --- /dev/null +++ b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/d3ee5e74-ae25-4178-90c5-ec5ce3921a32_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:120d551aab801a55b5a89ccb50e57ed80cd15325d6254138be7c1b1dfcf8c66f +size 1095675 diff --git a/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/full.md b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/full.md new file mode 100644 index 0000000000000000000000000000000000000000..084237a6f11ea40e549e0b2883855c631fed89e8 --- /dev/null +++ b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/full.md @@ -0,0 +1,1274 @@ +# Unifying Proportional Fairness in Centroid and Non-Centroid Clustering + +Benjamin Cookson + +Department of Computer Science + +University of Toronto + +bcookson@cs.toronto.edu + +Nisarg Shah + +Department of Computer Science + +University of Toronto + +nisarg@cs.toronto.edu + +Ziqi Yu + +Department of Computer Science + +University of Toronto + +ziqiyu@cs.toronto.edu + +# Abstract + +Proportional fairness criteria inspired by democratic ideals of proportional representation have received growing attention in the clustering literature. Prior work has investigated them in two separate paradigms. Chen et al. [1] study centroid clustering, in which each data point's loss is determined by its distance to a representative point (centroid) chosen in its cluster. Caragiannis et al. [2] study non-centroid clustering, in which each data point's loss is determined by its maximum distance to any other data point in its cluster. + +We generalize both paradigms to introduce semi-centroid clustering, in which each data point's loss is a combination of its centroid and non-centroid losses, and study two proportional fairness criteria—the core and, its relaxation, fully justified representation (FJR). Our main result is a novel algorithm which achieves a constant approximation to the core, in polynomial time, even when the distance metrics used for centroid and non-centroid loss measurements are different. We also derive improved results for more restricted loss functions and the weaker FJR criterion, and establish lower bounds in each case. + +# 1 Introduction + +Clustering is a central task in AI, in which the goal is to either partition a set of $n$ data points into $k$ clusters $C_1, \ldots, C_k$ , or return $k$ centroids $x_1, \ldots, x_k$ , or perhaps return both the clusters and their assigned centroids. In many cases, partitioning the data points and choosing centroids are viewed as interchangeable. For example, in the traditional clustering setting, the popular $k$ -means loss function (to be minimized) can be written in two equivalent forms: + +$$ +\min _ {C _ {1}, \dots , C _ {k}} \sum_ {t = 1} ^ {k} \frac {1}{| C _ {t} |} \sum_ {i, j \in C _ {t}} d (i, j) ^ {2} \equiv \min _ {C _ {1}, \dots , C _ {k}, x _ {1}, \dots , x _ {k}} \sum_ {t = 1} ^ {k} \sum_ {i \in C _ {t}} d (i, x _ {t}) ^ {2}. +$$ + +This is because for a given partition $(C_1, \ldots, C_k)$ , the optimal choice of the centroid $x_t$ for each cluster $C_t$ is the average of its points (this can be generalized to non-Euclidean metrics too) and plugging in these optimal choices yields the formulation on the left. + +An emerging line of research at the intersection of economics and AI focuses on applications in which every data point represents an agent, and studies facets such as dealing with strategic manipulations + +by selfish agents [3-7] or ensuring fairness to the agents [8-10]. Here, it is not sufficient to have only a global loss function to be minimized; one needs to know the loss functions (i.e., preferences) of the individual agents and different formulations of loss functions at the agent level, even if equivalent in the aggregate, lead to different results. + +Our focus is on fairness—specifically, on proportional fairness. Informally, it provides a fairness guarantee to every possible group of agents—not just those determined by a limited set of sensitive attributes such as race and gender, or their intersections—with the strength of the guarantee scaling proportionally to the group's size and cohesiveness of its members' preferences. Proportional fairness criteria have been applied to a growing number of problems in AI [1, 9-13]. + +For clustering, Chen et al. [1] initiate the study of proportional fairness for centroid clustering, in which the loss of an agent is its distance to the centroid of its cluster. They motivate it through facility location, in which the goal is to build $k$ facilities; each agent naturally prefers to be close to its assigned facility. Caragiannis et al. [2] study proportional fairness for non-centroid clustering, in which the loss of an agent is an aggregate (e.g., average or maximum) of its distances to the other agents in its cluster. Their motivation stems from clustered federated learning, in which data sources (agents) are partitioned into clusters and agents in each cluster collaboratively learn a model; each agent then wishes to be close (in terms of their data distributions) to the other agents in its cluster, so that the model they collaboratively learn is accurate for the agent personally. + +But in both these applications, and in many others, it may be natural for agents to care about both their distance to the centroids of their clusters and their distances to the other agents in their clusters. For example, in facility location, an individual may want their assigned facility being close to their house as well as other individuals using the same facility to also be from their neighborhood, which makes it more likely to bump into friends and acquaintances. In clustered federated learning, the centroids may represent the models collaboratively learned by the different clusters of agents, and an agent may care about both the model being effective for their own data distribution and the other agents in their cluster having data distributions similar to their own as such cohesion can be important to inducing trust and cooperation within the cluster. It may even be the case that agents' preferences are formed out of a combination of centroid and non-centroid losses that are induced by completely different metric spaces. When a teacher groups students together for final class projects, students preferences for which group they are placed in would depend on the project topic that group is assigned (centroid) and which other students are in that group (non-centroid). Two students may be very close friends but have completely different opinions on project topics. + +This motivates us to initiate the study of proportional fairness for a natural generalization of centroid and non-centroid clustering that we term semi-centroid clustering, in which the loss of each agent $i$ is a function of both the cluster of agents $C_t$ it is a part of (i.e., $i \in C_t$ ) and the centroid $x_t$ assigned to this cluster. + +By leveraging approaches common in the works of Chen et al. [1] and Caragiannis et al. [2], along with novel and intricate techniques we develop, we are able to attain desirable proportional fairness guarantees for semi-centroid clustering. + +# 1.1 Our Results + +
Dual Metric LossWeighted Single Metric Loss
CoreFJRCoreFJR
Existential Upper Bound31min{2/λ, 3}1
Efficient Upper Bound3 + 2√34min{2/λ, fλ}min{4, 2/λ, fλ}
Lower Bound21max{gλ, (2(1-λ)/2λ+1}1
+ +Table 1: Core and FJR approximations for semi-centroid clustering under dual metric loss and weighted single metric loss. Here, $f_{\lambda} = \frac{\sqrt{2\lambda - 11\lambda^2 + 13} + 3 - \lambda}{2 - 2\lambda}$ and $g_{\lambda} = \frac{\sqrt{\lambda^2 - 2\lambda + 5} - \lambda + 1}{2}$ . + +A semi-centroid clustering algorithm takes a set of $n$ data points (agents) as input and returns both a partition $(C_1, \ldots, C_k)$ of the data points and the corresponding centroids $(x_1, \ldots, x_k)$ . The loss of each agent $i \in C_t$ is measured by a loss function $\ell_i(C_t, x_t)$ , which depends both on the cluster $C_t$ it belongs to and its centroid $x_t$ . While some of our results apply to arbitrary loss functions, most focus on two structured families. Dual metric loss measures the sum of agent $i$ 's distance to its centroid $x_t$ according to a metric $d^c$ and its maximum distance to any agent $j \in C_t$ in its cluster according to a different metric $d^m$ . Weighted single metric loss is the special case in which both metrics are scaled versions of a common metric, i.e., $d^c = (1 - \lambda) \cdot d$ and $d^m = \lambda \cdot d$ for some metric $d$ and $\lambda \in [0, 1]$ . + +We investigate (multiplicative approximations of) two proportional fairness criteria studied in prior work on centroid and non-centroid clustering: the core and, its relaxation, fully justified representation (FJR). Intuitively, when forming $k$ clusters given $n$ data points, the core demands that there is no set $S$ of at least $n / k$ agents, who proportionally deserve to be able to form a cluster, and a feasible centroid $y$ such that every member of $S$ prefers $y$ to its currently assigned centroid. FJR puts a greater demand on successful violations: even the maximum loss of any agent $i \in S$ for $(S, y)$ should be lower than the minimum loss of any agent $i \in S$ under the algorithm's clustering. + +First, we show that none of the algorithms developed in prior work for centroid or non-centroid clustering work in our more general paradigm of semi-centroid clustering, even for the restricted family of weighted single metric loss. Then, for both loss families, we obtain core and FJR approximation guarantees, both existential and polynomial-time attainable, by designing novel algorithms, and prove (existential) lower bounds. Our main results are summarized in Table 1. + +Finally, we also evaluate the performance of our algorithms on real-world datasets in Appendix E. We observe that our algorithms consistently achieve near-perfect approximations of the fairness notions we consider, beating both the theoretical worst-case bounds we establish, and the performance of classical clustering algorithms such as k-means++. We also show that they achieve these guarantees while sacrificing classical clustering objectives only slightly. This generalizes similar observations for centroid and non-centroid clustering in prior work [1, 2]. + +# 1.2 Related Work + +As mentioned above, there are several existing papers studying proportional fairness in clustering. Chen et al. [1] are the first to introduce the notion of the core for centroid clustering, and use the Greedy Capture algorithm to achieve a $(1 + \sqrt{2})$ -approximation to the core. Micha and Shah [14] improve the approximation factor to 2 for the Euclidean $L^2$ metric in the "unconstrained setting" where the centroids can be placed anywhere in $\mathbb{R}^t$ . Aziz et al. [15] observe that in this unconstrained setting, instead of the infinitely many possible centroid locations, one can focus on just the $n$ agent locations and achieve a constant approximation to the core in polynomial time. Li et al. [16] study a stronger criterion than the core. Caragiannis et al. [2] study proportional fairness in non-centroid clustering, and use a variation of the Greedy Capture algorithm to achieve 2-core with respect to the maximum-distance loss. They also study FJR as a weakening of the core. + +Li et al. [17] study a similar graph-based problem of partitioning friends into groups, which is equivalent to non-centroid clustering, albeit when each person has a utility (rather than a loss) of 1 for every friend of theirs placed in their cluster. Arkin et al. [18] look at the multi-dimensional stable roommates problem, which is equivalent to the non-centroid clustering model of [2], but focus on special cases such as $k = n/3$ . + +Finally, other fairness notions have also been investigated for clustering (see the survey by Chhabra et al. [19]). The most prominent one assumes that every data point belongs to one of many classes, and certain protected classes must have equal representation across the clusters [20, 21]. + +# 2 Preliminaries + +# 2.1 Clustering Model + +A semi-centroid clustering instance is a tuple $(\mathcal{N},\mathcal{M},\{\ell_i\}_{i\in \mathcal{N}},k)$ , where $\mathcal{N}$ is a set of $n$ agents; $\mathcal{M}$ is a set of possible cluster centers; $\ell_i:\{C\subseteq \mathcal{N}:i\in C\} \times \mathcal{M}\to \mathbb{R}_{\geqslant 0}$ is the loss function of agent $i\in \mathcal{N}$ , with $\ell_i(C,x)$ being the loss incurred when it is part of cluster $C$ and assigned cluster center $x$ ; and $k\in \mathbb{N}$ is the number of clusters to be returned by the algorithm. + +A clustering algorithm takes such an instance and returns a clustering $\mathcal{X} = \{(C_1, x_1), \ldots, (C_k, x_k)\}$ , where $(C_1, \ldots, C_k)$ is a partition of the set of agents $\mathcal{N}$ (so, $\cup_{t \in [k]} C_t = \mathcal{N}$ and $C_t \cap C_{t'} = \emptyset$ for all distinct $t, t' \in [k]$ ). We refer to each tuple $(C_t, x_t) \in \mathcal{X}$ as a cluster, with $C_t$ as the member set (and the agents in $C_t$ as the members) of the cluster and $x_t$ as the center assigned to the cluster. + +Given a clustering $\mathcal{X}$ and an agent $i\in \mathcal{N}$ , let $\mathcal{X}(i)$ denote the (unique) index of the cluster of which $i$ is a member (i.e., $i\in C_{\mathcal{X}(i)}$ ). The loss incurred by each agent $i\in \mathcal{N}$ under clustering $\mathcal{X}$ is $\ell_i(C_{\mathcal{X}(i)},x_{\mathcal{X}(i)})$ , which, with slight abuse of notation, we also write as $\ell_i(\mathcal{X})$ for brevity. + +# 2.2 Loss Functions + +Some of our results hold for arbitrary loss functions as defined above. However, the more interesting results are obtained for two structured families of loss functions that naturally combine previously-studied loss functions for centroid and non-centroid clustering. + +Dual metric loss: We are given two distance metrics, a centroid metric $d^{c}:\mathcal{N}\times \mathcal{M}\to \mathbb{R}_{\geqslant 0}$ and a non-centroid metric $d^m:\mathcal{N}\times \mathcal{N}\rightarrow \mathbb{R}_{\geqslant 0}$ . Given a clustering $\mathcal{X}$ and an agent $i\in \mathcal{N}$ , the centroid metric induces its centroid loss $\ell_i^c (\mathcal{X})\triangleq d^c (i,x_{\mathcal{X}(i)})$ , which measures the distance of agent $i$ to its assigned center, and the non-centroid metric induces its non-centroid loss $\ell_i^m (\mathcal{X}) = \max_{j\in C_{\mathcal{X}(i)}}d^m (i,j)$ , which measures the maximum distance of agent $i$ to any other agent in its cluster. The former is the canonical loss function used for centroid clustering [1, 14, 15, 22] while the latter is a loss function for which appealing fairness guarantees have been derived for non-centroid clustering [2]. + +The overall dual metric loss of agent $i$ is the sum of the centroid and non-centroid parts: + +$$ +\ell_ {i} (\mathcal {X}) = \ell_ {i} ^ {m} (\mathcal {X}) + \ell_ {i} ^ {c} (\mathcal {X}) = \max _ {j \in C _ {\mathcal {X} (i)}} d ^ {m} (i, j) + d ^ {c} (i, x _ {\mathcal {X} (i)}). +$$ + +It is worth remarking that adding scaling factors so that $\ell_i(\mathcal{X}) = \alpha \cdot \ell_i^m (\mathcal{X}) + \beta \cdot \ell_i^c (\mathcal{X})$ for some $\alpha ,\beta \geqslant 0$ would not make the family any more general; one can instead just use $d^{m} = \alpha \cdot d^{m}$ and $\widehat{d}^c = \beta \cdot d^c$ as the new non-centroid and centroid metrics, respectively. + +Weighted single metric loss: A special case of dual metric loss is where both centroid and noncentroid losses use (scaled versions) of the same metric $d:(\mathcal{N}\cup \mathcal{M})\times (\mathcal{N}\cup \mathcal{M})\to \mathbb{R}_{\geqslant 0}$ . That is, for some $\lambda \in [0,1]$ , we have $d^{m}(i,j) = \lambda \cdot d(i,j)$ for all $i,j\in \mathcal{N}$ and $d^{c}(i,x) = (1 - \lambda)\cdot d(i,x)$ for all $i\in \mathcal{N}$ and $x\in \mathcal{M}$ , so that the overall loss is given by + +$$ +\ell_ {i} (\mathcal {X}) = \lambda \cdot \max _ {j \in C _ {\mathcal {X} (i)}} d (i, j) + (1 - \lambda) \cdot d (i, x _ {\mathcal {X} (i)}). +$$ + +Once again, note that using arbitrary non-negative scaling factors $\alpha$ and $\beta$ instead of $\lambda$ and $1 - \lambda$ does not offer any further generalization as one can equivalently use $\lambda = \frac{\alpha}{\alpha + \beta}$ . + +Non-centroid and centroid clustering are easily seen as special cases of the weighted single metric loss (which is, in turn, a special case of the dual metric loss) with $\lambda = 1$ and $\lambda = 0$ , respectively. Hence, the semi-centroid clustering algorithms we design for dual metric loss and for weighted single metric loss can be used for both centroid and non-centroid clustering. + +# 2.3 Proportional Fairness Guarantees + +We focus on two proportional fairness criteria prominently studied by prior work. + +Definition 1 (The Core). For $\alpha \geqslant 1$ , a clustering $\mathcal{X} = \{(C_1, x_1), \ldots, (C_k, x_k)\}$ is in the $\alpha$ -core if there are no group of agents $S \subseteq \mathcal{N}$ with $|S| \geqslant n / k$ and feasible center $y \in \mathcal{M}$ such that $\alpha \cdot \ell_i(S, y) < \ell_i(\mathcal{X})$ for all $i \in S$ (if this happens, we say that coalition $S$ deviates with center $y$ ). + +In words, no group $S$ of at least $n / k$ agents, which proportionately deserves a cluster center representing it, can unilaterally improve by being a cluster of its own with a feasible center $y$ . + +The second criterion is a relaxation that imposes a higher bar on deviating coalitions. + +Definition 2 (Fully Justified Representation (FJR)). For $\alpha \geqslant 1$ , a clustering $\mathcal{X} = \{(C_1, x_1), \ldots, (C_k, x_k)\}$ is $\alpha$ -FJR if there are no groups of agents $S \subseteq \mathcal{N}$ with $|S| \geqslant n / k$ and feasible center $y \in \mathcal{M}$ such that $\alpha \cdot \ell_i(S, y) < \min_{j \in S} \ell_j(\mathcal{X})$ for all $i \in S$ . + +That is, the new loss for each member of the deviating coalition, scaled by $\alpha$ , should not only be less than its own loss prior to deviation, but less than the loss of any deviating member prior to deviation. It is then clear that $\alpha$ -FJR is a relaxation of $\alpha$ -core for all $\alpha \geqslant 1$ . + +Proposition 1. For every $\alpha \geqslant 1$ , every clustering in the $\alpha$ -core is also $\alpha$ -FJR. + +Due to space constraints, proofs missing from each section of the main body are presented in the correspondingly titled section of the appendix. + +# 3 Greedy Capture Algorithms + +In prior work on proportionally fair clustering, the Greedy Capture algorithm has been the go-to way to achieve a constant approximation of proportional fairness criteria in both the centroid and non-centroid worlds. Chen et al. [1] introduce it for centroid clustering and Caragiannis et al. [2] adapt it to non-centroid clustering. The centroid and non-centroid variants, presented formally as Algorithms 2 and 3 respectively in Appendix A, share many similarities. In both variants, every agent starts off as "uncaptured" and a number of balls start growing at the same rate. As soon as a ball covers at least $n / k$ uncaptured agents, it captures them and becomes "open" (and in the centroid variant, the center of the open ball is added as one of at most $k$ cluster centers to be selected by the algorithm). But the two variants differ in three key dimensions. + +1. Where the balls grow: In the centroid version, a ball grows around every feasible cluster center. In the non-centroid version, which has no centers, one grows around each agent. +2. Whether open balls keep growing: In the centroid variant, a ball continues to grow after it opens, capturing any uncaptured agents as soon as it covers them. In the non-centroid variant, a ball stops growing once it opens. This is intuitive because an open ball that grows and captures an agent far away would not worsen previously-captured agents in the centroid paradigm, but would do so in the non-centroid paradigm. +3. Whether agents switch clusters in the end: In the centroid variant, the algorithm simply returns a set of (up to) $k$ cluster centers and each agent's loss is their distance to the nearest cluster center. Note that this may not be the center of the ball that captured it as the algorithm may have added a closer center afterwards. Hence, the set of agents captured by a ball when it opens may not form a single cluster. In the non-centroid variant, there is no "switching" in the end and the set of agents captured by a ball together do form a cluster. This is again because allowing an agent to switch to a different cluster she prefers could significantly worsen existing agents in that cluster. + +Chen et al. [1] prove that centroid greedy capture yields a clustering in the $(1 + \sqrt{2})$ -core in the centroid paradigm, and Caragiannis et al. [2] prove that non-centroid greedy capture yields a clustering in the 2-core in the non-centroid paradigm. This naturally raises the question: Can some variant of greedy capture get a constant approximation to the core in the semi-centroid clustering paradigm? + +Unfortunately, we can show that solving the semi-centroid paradigm is not that simple. To see why, it is sufficient to consider the restricted case of the weighted single metric loss, in which the loss function is characterized by a single metric $d$ and a parameter $\lambda \in [0,1]$ . Note that the greedy capture algorithms only take in $d$ as input, and not $\lambda$ . Thus, for (some variant of) greedy capture to achieve $\alpha$ -core with respect to the weighted single metric loss (for any $\lambda \in [0,1]$ ), it must achieve $\alpha$ -core with respect to the non-centroid loss $(\lambda = 1)$ and the centroid loss $(\lambda = 0)$ simultaneously. In our first result, we show that no algorithm can achieve such a simultaneous guarantee. + +Theorem 1. For every $\alpha \geqslant 1$ and $\beta \geqslant 1$ , there exists a semi-centroid clustering instance in which no clustering is simultaneously in the $\alpha$ -core with respect to the centroid loss and in the $\beta$ -core with respect to the non-centroid loss. + +# 4 The Core + +Given Theorem 1, we switch our attention to rules that do not simply take a single metric $d$ as input; that is, for the weighted single metric loss, they also take $\lambda$ as input, and for the more general dual metric loss, they take both the centroid and non-centroid metrics, $d^{c}$ and $d^{m}$ , as inputs. + +In Section 4.1, we present results for the dual metric loss. Later, in Section 4.2, we present improvements for the restricted case of the weighted single metric loss. + +# 4.1 Dual Metric Loss + +Algorithm 1: Dual Metric Algorithm +Input: Set of agents $\mathcal{N}$ , set of feasible cluster centers $\mathcal{M}$ , non-centroid metric $d^{m}$ , centroid metric $d^c$ , number of centers $k$ , growth factor $c$ , MCC approximation factor $\alpha$ Output: Clustering $\mathcal{X} = \{(C_1,x_1),\ldots ,(C_k,x_k)\}$ +1 Initialize: $\mathcal{N}'\gets \mathcal{N},C\gets \emptyset ,\widehat{\mathcal{X}}\gets \emptyset ,t\gets 1;$ +// Phase 1: Build a tentative clustering X +2 while $\mathcal{N}'\neq \emptyset$ do // Uncaptured agents remain +3 // Find an $\alpha$ -MCC cluster $(\widehat{C}_t,x_t)$ and save its maximum loss as $r_t$ if $\mathcal{N}'\geqslant n / k$ then +4 $(\widehat{C}_t,x_t)\gets \mathrm{An}$ $\alpha$ -most cohesive cluster from $\mathcal{N}'\times \mathcal{M}$ . +5 else +6 // Edge-case to capture the last cluster $(\widehat{C}_t,x_t)\gets (\mathcal{N}',\arg \min_{x\in M}\max_{j\in \mathcal{N}'}d^c (j,x))$ +7 $r_t\gets \max_{i\in \widehat{C}_t}\ell_i(\widehat{C}_t,x_t);$ +8 // Add the cluster to $\widehat{\mathcal{X}}$ and mark its agents as captured +9 $\mathcal{N}'\gets \mathcal{N}'\setminus \widehat{C}_t$ +10 t t+1; +// Phase 2: Selectively allow agents to switch to a better cluster +11 $\forall t\in [k],C_t\gets \widehat{C}_t$ +for i e N do +13 t $\leftarrow \widehat{\chi} (i)$ .. // Clusters agent i can switch to without harming its members too much +14 $V_{i}\gets \{t^{\prime}\in [k]:\forall j\in \widehat{C}_{t^{\prime}},d^{c}(j,x_{t^{\prime}}) + d^{m}(j,i)\leqslant c\cdot r_{t^{\prime}}\}$ .. // Among them, agent i picks one minimizing an upper bound on its loss +15 t* $\leftarrow$ arg min $t^{\prime}\in V_{i}\left(d^{c}(i,x_{t^{\prime}}) + c\cdot r_{t^{\prime}} + \min_{j\in \widehat{C}_{t^{\prime}}}(d^{m}(i,j) - d^{c}(j,x_{t^{\prime}}))\right);$ +16 // And switches to it if that improves the upper bound on its loss if $d^{c}(i,x_{t^{*}}) + c\cdot r_{t^{*}} + \min_{j\in \widehat{C}_{t^{*}}}(d^{m}(i,j) - d^{c}(j,x_{t^{*}})) < c\cdot r_{t}$ then +17 C t C t* C t* U {i}; +18 + +The following two are the most significant and the most intricate results of our work. + +Theorem 2. For the dual metric loss, there always exists a clustering in the 3-core. + +Theorem 3. For the dual metric loss, a clustering in the $(3 + 2\sqrt{3})$ -core can be computed in polynomial time. + +To understand Algorithm 1, first we need to introduce the Most Cohesive Cluster problem, defined by Caragiannis et al. [2] for non-centroid clustering. Adapted to our semi-centroid clustering, it simply requires finding the cluster $(C,x)$ with $|C|\geqslant n / k$ that minimizes the maximum loss incurred by any agent in $C$ . This is defined and approximated for arbitrary loss functions as follows. + +Definition 3 ( $\alpha$ -MCC). For $\alpha \geqslant 1$ , a cluster $(C,x)$ with $|C| \geqslant n / k$ is an $\alpha$ -approximate most cohesive cluster (in short, an $\alpha$ -MCC cluster) if $\max_{i \in C} \ell_i(C,x) \leqslant \alpha \cdot \max_{i \in S} \ell_i(S,y)$ for every cluster $(S,y)$ with $|S| \geqslant n / k$ . When $\alpha = 1$ , it is simply called a most cohesive cluster. + +Caragiannis et al. [2] use this in place of the greedy capture subroutine, which finds the cluster $(C,x)$ with the smallest radius $\max_{i\in C}d(i,x)$ , in order to obtain improved fairness guarantees. Theorems 2 and 3 are both obtained using Algorithm 1, which calls a subroutine that finds an $\alpha$ -MCC cluster; Theorem 2 is obtained by an inefficient subroutine that finds an MCC cluster, while Theorem 3 is obtained by plugging in an efficient subroutine we design for computing a 4-MCC cluster. + +Algorithm description: Algorithm 1 is split into two phases. Phase 1 works by iteratively finding an $\alpha$ -MCC cluster with respect to the dual metric loss and adding it to a tentative solution. We denote the clustering found in Phase 1 by $\widehat{\mathcal{X}} = \{(\widehat{C}_1, x_1), \ldots, (\widehat{C}_k, x_k)\}$ . For each cluster $(\widehat{C}_t, x_t) \in \widehat{\mathcal{X}}$ , the algorithm stores the maximum loss of any agent in that cluster as $r_t = \max_{i \in \widehat{C}_t} \ell_i(\widehat{C}_t, x_t)$ . + +Phase 2 takes the clustering $\widehat{\mathcal{X}}$ as a starting point and allows each agent $i\in \mathcal{N}$ to switch from its $t$ -th cluster to any $t^\prime$ -th cluster subject to two careful constraints: + +- Bound the loss of the agents in the new cluster: We know the original loss of every $j \in \widehat{C}_{t'}$ was at most $r_{t'}$ . If agent $i$ switches to this cluster, it can increase $j$ 's loss to $d^{c}(j, x_{t'}) + d^{m}(j, i)$ . We need this to be at most $c \cdot r_{t'}$ for some constant $c$ given as input to the algorithm. +- Bound own loss: We show that the expression in Line 15— $d^{c}(i, x_{t'}) + c \cdot r_{t'} + \min_{j \in \widehat{C}_{t'}} (d^{m}(i, j) - d^{c}(j, x_{t'}))$ —serves as an upper bound on the loss of agent $i$ when switching to the $t'$ -th cluster, regardless of which other agents switch to the $t'$ -th cluster during Phase 2. This ensures that agent $i$ 's decision to switch (or not) is independent of the decisions made by the other agents in Phase 2, and the loss of agent $i$ , who was originally in $\widehat{C}_{t}$ , remains bounded by $c \cdot r_{t}$ throughout Phase 2, regardless of Phase 2 decisions. Agent $i$ makes a switch only if the new loss upper bound is lower than $c \cdot r_{t}$ . + +The key to establishing an approximate core guarantee lies in this selective switching administered in Phase 2. Intuitively, this can be seen as striking a middle ground between the centroid greedy capture, which allows an agent to switch to any other cluster because it cannot increase the centroid loss of the agents in that cluster, and the non-centroid greedy capture, which forbids such switches completely lest it might harm the agents in the cluster being switched to. The growth factor $c$ carefully controls the balance, and optimally setting this factor allows us to derive the following bound. Its proof, our most technically deep result, is presented in Appendix C.1. + +Lemma 1. Given a subroutine for computing an $\alpha$ -approximate most cohesive cluster, Algorithm 1, with the growth factor set to $c = \frac{3\alpha + \sqrt{\alpha(\alpha + 8)}}{4\alpha}$ , finds a clustering in the $\frac{1}{2} (\alpha + \sqrt{\alpha(\alpha + 8)} + 2)$ -core with respect to the dual metric loss. + +From Lemma 1, the proof of Theorem 2 follows easily. + +While Theorem 2 ensures the existence of a clustering in the 3-core, its computation relies on iteratively finding the most cohesive cluster, which is already NP-hard in the non-centroid paradigm [2]. Luckily, Lemma 1 yields a fairness guarantee even if we can find only an approximate most cohesive cluster during Phase 1 of Algorithm 1. + +Next, we show how to compute a 4-approximate most cohesive cluster in polynomial time. The algorithm, presented as Algorithm 4 in Appendix C.1, works as follows. For each feasible cluster center $y \in \mathcal{M}$ , it runs the non-centroid greedy capture with a crafted distance metric $d_y$ , given by $d_y(i,j) = d^m(i,j) + d^c(i,y) + d^c(j,y)$ for all $i,j \in \mathcal{N}$ , until it produces the first cluster $C_y$ . Then, it returns $(C_{y^*}, y^*)$ with the lowest maximum loss, i.e., with $y^* \in \arg \min_{y \in \mathcal{M}} \max_{i \in C_y} \ell_i(C_y,y)$ . + +Lemma 2. For the dual metric loss, Algorithm 4 computes a 4-approximate most cohesive cluster in polynomial time. + +Plugging this into Lemma 1 gives us Theorem 3, a constant approximation to the core in polynomial time. + +Lower bounds: One may wonder how good these approximations are. As stated previously, semicentroid clustering is more challenging than both centroid and non-centroid clustering. Specifically, + +one can trivially import a lower bound from either paradigm by setting $d^{m} = 0$ or $d^{c} = 0$ (where a distance metric being zero means all pairwise distances are zero), which makes the dual metric loss coincide with the centroid or non-centroid loss, respectively. For the non-centroid loss, Caragiannis et al. [2] do not offer any lower bounds; that is, the existence of an exact core clustering with respect to the (maximum distance) non-centroid loss remains an open question. However, Chen et al. [1] establish a lower bound of 2-core with respect to the centroid loss, which we can import. Somewhat surprisingly, we are unable to derive a lower bound better than 2 despite reasonable effort. + +# 4.2 Weighted Single Metric Loss + +In this section, we focus on improving the core approximation guarantees for the restricted case of the weighted single metric loss. Recall that this is parametrized by a single metric $d$ and a parameter $\lambda \in [0,1]$ such that, for any $i\in \mathcal{N}$ and cluster $(C,x)$ , we have $\ell_i(C,x) = \lambda \cdot \max_{j\in C}d(i,j) + (1 - \lambda)\cdot d(i,x)$ . We devise two algorithms that offer improvements. + +The first algorithm takes non-centroid greedy capture (Algorithm 3), which grows balls around agents, and adapts it to the semi-centroid world by assigning each cluster to the cluster center nearest to the agent whose ball captured the cluster. The resulting efficient algorithm is presented as Algorithm 5 in Appendix C.2, and achieves the following guarantee. + +Lemma 3. For the weighted single metric loss with parameter $\lambda \in (0,1]$ , Algorithm 5 finds a clustering in the $\frac{2}{\lambda}$ -core in polynomial time. + +The second algorithm, presented formally as Algorithm 6 in Appendix C.2, is similar to Algorithm 1: in Phase 1, agents are partitioned into an initial clustering, and in Phase 2, agents are allowed to switch to a different cluster that reduces their loss and does not significantly increase the loss of the agents in that cluster. However, there are two key differences. First, Algorithm 6 uses the centroid greedy capture subroutine instead of the (approximate) most cohesive cluster subroutine used by Algorithm 1 to iteratively find clusters in Phase 1. Second, due to having a single metric, the switching condition is much simpler and leads to better bounds for some values of $\lambda$ . A careful analysis yields the following guarantee. + +Lemma 4. For the weighted single metric loss with parameter $\lambda \in [0,1)$ , Algorithm 6 finds a clustering in the $\frac{\sqrt{2\lambda - 11\lambda^2 + 13} + 3 - \lambda}{2 - 2\lambda}$ -core in polynomial time. + +Combining the bounds from Lemmas 3 and 4, together with the existential 3-core (Theorem 2) and the polynomial-time $(3 + 2\sqrt{3})$ -core (Theorem 3) guarantees that we can import from dual metric loss, yields the following existential and efficiently attainable bounds. + +Theorem 4. For the weighted single metric loss with parameter $\lambda \in [0,1]$ , a clustering in the $\min\{\frac{2}{\lambda},3\}$ -core always exists, and a clustering in the $\min\{\frac{2}{\lambda},\frac{\sqrt{2\lambda - 11\lambda^2 + 13 + 3 - \lambda}}{2 - 2\lambda}\}$ -core can be found in polynomial time. + +Lower bounds: Similarly, we also derive two lower bounds on the core approximation under the weighted single metric loss. The first bound interpolates between $(\sqrt{5} + 1)/2$ at $\lambda = 0$ (centroid) and $1$ at $\lambda = 1$ (non-centroid). Since Chen et al. [1] prove a lower bound of 2 for $\lambda = 0$ (centroid), which is better than $(\sqrt{5} + 1)/2$ , adapting their counterexample to semi-centroid clustering yields a better lower bound when $\lambda$ is close to 0. + +Theorem 5. For the weighted single metric loss with parameter $\lambda \in [0,1]$ , no clustering algorithm can achieve a core approximation better than $\max \left\{\frac{\sqrt{\lambda^2 - 2\lambda + 5} - \lambda + 1}{2}, \frac{2(1 - \lambda)}{2\lambda + 1}\right\}$ . + +# 5 Fully Justified Representation + +Let us turn our attention to the weaker criterion of fully justified representation (FJR), a relaxation of the core originally introduced by Peters et al. [23] in the context of approval-based committee selection. While we can already achieve a (small) constant approximation to the core even under the dual metric loss (Theorems 2 and 3), we show that this relaxation offers several advantages. + +Caragiannis et al. [2] study FJR for non-centroid clustering, and show that iteratively finding an $\alpha$ -approximate most cohesive cluster produces an $\alpha$ -FJR clustering, even under arbitrary loss functions. + +The same result, with an almost identical proof, holds in our more general semi-centroid clustering setup. For completeness, in Appendix D, we formally present the algorithm as Algorithm 7 and provide a complete proof. This gives us the existence of a 1-FJR clustering under arbitrary loss functions, and polynomial-time computation of a 4-FJR clustering under the dual metric loss when plugging in our polynomial-time algorithm for computing a 4-MCC cluster (Lemma 2). + +Theorem 6. For arbitrary losses and $\alpha \geqslant 1$ , Algorithm 7, which iteratively finds an $\alpha$ -approximate most cohesive cluster, returns an $\alpha$ -FJR clustering. Hence, a 1-FJR clustering exists for arbitrary losses and, due to Lemma 2, a 4-FJR clustering can be computed in polynomial time for the dual metric loss. + +In Section 3, we noticed that for a clustering, being in the $\alpha$ -core with respect to both centroid and non-centroid losses simultaneously is (trivially) a necessary condition for it to be in the $\alpha$ -core with respect to the weighted single metric loss for all $\lambda \in [0,1]$ , but it is not a sufficient condition (i.e., it is strictly weaker). Nonetheless, it is already impossible to achieve (Theorem 1). + +For FJR, it turns out to also be a sufficient condition (and hence, an equivalent condition), even for a broader family of (weighted) dual metric losses. + +Lemma 5. For any $\alpha \geqslant 1$ , a clustering is $\alpha$ -FJR with respect to the centroid loss with metric $d^c$ and with respect to the non-centroid loss with metric $d^m$ simultaneously if and only if it is $\alpha$ -FJR with respect to all dual metric loss functions with centroid metric $\lambda \cdot d^c$ and non-centroid metric $(1 - \lambda) \cdot d^m$ , for all $\lambda \in [0,1]$ . + +Unfortunately, a simultaneous FJR approximation with respect to centroid and non-centroid losses induced by two different metrics is still infeasible. + +Theorem 7. For any $\alpha \geqslant 1$ and $\beta \geqslant 1$ , there exists an instance in which no clustering is both $\alpha$ -FJR with respect to the centroid loss and $\beta$ -FJR with respect to the non-centroid loss, when the two loss functions are allowed to use different metrics. + +When both losses are induced by a common metric $d$ , a surprisingly simple algorithm turns out to achieve a constant approximation to FJR with respect to both centroid and non-centroid losses (and thus, with respect to the weighted single metric loss for every $\lambda \in [0,1]$ ). This is in contrast to the core, for which no simultaneous finite approximation is feasible, even for a single metric (Theorem 1). + +The algorithm is Algorithm 5, which runs non-centroid greedy capture with metric $d$ followed by a greedy centroid selection step. We presented it in Section 4.2 and proved that it yields $2 / \lambda$ -core for all $\lambda \in [0,1]$ . Note that this achieves 2-core (and hence, 2-FJR) with respect to the non-centroid loss $(\lambda = 1)$ . However, its approximation to the core becomes unbounded as $\lambda$ approaches 0 (the centroid loss), which is inevitable given Theorem 1. However, we show that its approximation to the weaker criterion of FJR still remains bounded by 5. + +Theorem 8. Algorithm 5, given metric $d$ , finds, in polynomial time, a clustering that is 5-FJR with respect to the centroid loss and 2-FJR with respect to the non-centroid loss, both defined using $d$ . + +Applying Lemma 5 tells us that Algorithm 5 achieves 5-FJR with respect to the weighted single metric loss for all $\lambda \in [0,1]$ simultaneously; if one wishes to achieve approximate FJR with respect to a given loss function, Theorem 6 yields 4-FJR with respect to all dual metric losses and Theorem 4 yields a better approximation to the core (and, hence, to FJR) for weighted single metric losses. + +# 6 Discussion + +Our work leaves open a number of immediate technical questions, which can be gleaned from the gaps between upper and lower bounds in Table 1. Future work can also investigate generalizations such as non-additive combinations of centroid and non-centroid losses and several exciting applications. + +One particularly important special case of this model that we leave largely unexplored is when $\mathcal{M} = \mathcal{N}$ . This case generalizes many problems where one wishes to group a set of $n$ datapoints in $k$ clusters, and return a single point to serve as a representative point for that cluster. This can have numerous applications such as coreset selection [24], scalable LLM fine-tuning [25], feature selection [26], and dimensionality reduction [27]. However, in these cases, our semi-centroid algorithms offer no guarantees that the centroid it selects for a cluster will be a point that is in that cluster. Exploring algorithms with this additional constraint would be an interesting future direction. + +# Acknowledgments and Disclosure of Funding + +This work was supported by an NSERC Discovery Grant and an NSERC-CSE Research Communities Grant. Researchers funded through the NSERC-CSE Research Communities Grants do not represent the Communications Security Establishment Canada or the Government of Canada. Any research, opinions or positions they produce as part of this initiative do not represent the official views of the Government of Canada. + +# References + +[1] Xingyu Chen, Brandon Fain, Liang Lyu, and Kamesh Munagala. Proportionally fair clustering. In Proceedings of the 36th International Conference on Machine Learning (ICML), pages 1032-1041, 2019. +[2] Ioannis Caragiannis, Evi Micha, and Nisarg Shah. Proportional fairness in non-centroid clustering. In Proceedings of the 38th Annual Conference on Neural Information Processing Systems (NeurIPS), pages 19139-19166, 2024. +[3] Javier Perote and Juan Perote-Pena. Strategy-proof estimators for simple regression. Mathematical Social Sciences, 47:153-176, 2004. +[4] Ofer Dekel, Felix Fischer, and Ariel D. Procaccia. Incentive compatible regression learning. Journal of Computer and System Sciences, 76(8):759-777, 2010. +[5] Reshef Meir, Ariel D. Procaccia, and Jeffrey S. Rosenschein. Algorithms for strategyproof classification. Artificial Intelligence, 186:123-156, 2012. +[6] Yiling Chen, Chara Podimata, Ariel D Procaccia, and Nisarg Shah. Strategyproof linear regression in high dimensions. In Proceedings of the 19th ACM Conference on Economics and Computation (EC), pages 9-26, 2018. +[7] Safwan Hossain and Nisarg Shah. The effect of strategic noise in linear regression. Autonomous Agents and Multi-Agent Systems, 35(2):21, 2021. +[8] Maria-Florina Balcan, Travis Dick, Ritesh Noothigattu, and Ariel D Procaccia. Envy-free classification. In Proceedings of the 33rd Annual Conference on Neural Information Processing Systems (NeurIPS), pages 1238–1248, 2019. +[9] Anilesh Krishnaswamy, Zhihao Jiang, Kangning Wang, Yu Cheng, and Kamesh Munagala. Fair for all: Best-effort fairness guarantees for classification. In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics (AISTATS), pages 3259-3267, 2021. +[10] Bhaskar Ray Chaudhury, Aniket Murhekar, Zhuowen Yuan, Bo Li, Ruta Mehta, and Ariel D Procaccia. Fair federated learning via the proportional veto core. In Proceedings of the 41st International Conference on Machine Learning (ICML), pages 42245-42257, 2024. +[11] Safwan Hossain, Evi Micha, and Nisarg Shah. Fair algorithms for multi-agent multi-armed bandits. In Proceedings of the 34th Annual Conference on Neural Information Processing Systems (NeurIPS), pages 24005–24017, 2021. +[12] Ziming Fan, Nianli Peng, Muhang Tian, and Brandon Fain. Welfare and fairness in multi-objective reinforcement learning. In Proceedings of the 22nd International Conference on Autonomous Agents and Multi-Agent Systems (AAMAS), pages 1991-1999, 2023. +[13] Guojun Zhang, Saber Malekmohammadi, Xi Chen, and Yaoliang Yu. Proportional fairness in federated learning. Transactions on Machine Learning Research, 109(4):219-224, 2023. +[14] Evi Micha and Nisarg Shah. Proportionally fair clustering revisited. In Proceedings of the 47th International Colloquium on Automata, Languages and Programming (ICALP), pages 85:1-85:16, 2020. +[15] Haris Aziz, Barton E Lee, Sean Morota Chu, and Jeremy Vollen. Proportionally representative clustering. In Proceedings of the 20th Conference on Web and Internet Economics (WINE), 2024. Forthcoming. + +[16] Bo Li, Lijun Li, Ankang Sun, Chenhao Wang, and Yingfan Wang. Approximate group fairness for clustering. In Proceedings of the 38th International Conference on Machine Learning (ICML), pages 6381-6391, 2021. +[17] Lily Li, Evi Micha, Aleksandar Nikolov, and Nisarg Shah. Partitioning friends fairly. In Proceedings of the 37th AAAI Conference on Artificial Intelligence (AAAI), pages 5747-5754, 2023. +[18] Esther M. Arkin, Sang Won Bae, Alon Efrat, Kazuya Okamoto, Joseph SB Mitchell, and Valentin Polishchuk. Geometric stable roommates. Information Processing Letters, 109(4): 219-224, 2009. +[19] Anshuman Chhabra, Karina Masalkovaite, and Prasant Mohapatra. An overview of fairness in clustering. IEEE Access, 9:130698-130720, 2021. +[20] Flavio Chierichetti, Ravi Kumar, Silvio Lattanzi, and Sergei Vassilitskii. Fair clustering through fairlets. In Proceedings of the 30th Annual Conference on Neural Information Processing Systems (NeurIPS), pages 5029-5037, 2017. +[21] Suman Bera, Deeparnab Chakrabarty, Nicolas Flores, and Maryam Negahbani. Fair algorithms for clustering. In Proceedings of the 32nd Annual Conference on Neural Information Processing Systems (NeurIPS), pages 4955-4966, 2019. +[22] Leon Kellerhals and Jannik Peters. Proportional fairness in clustering: A social choice perspective. In Proceedings of the 37th Annual Conference on Neural Information Processing Systems (NeurIPS), pages 111299-111317, 2024. +[23] Dominik Peters, Grzegorz Pierczyński, and Piotr Skowron. Proportional participatory budgeting with additive utilities. In Proceedings of the 34th Annual Conference on Neural Information Processing Systems (NeurIPS), page 12726-12737, 2021. +[24] Chengliang Chai, Jiayi Wang, Nan Tang, Ye Yuan, Jiabin Liu, Yuhao Deng, and Guoren Wang. Efficient coreset selection with cluster-based methods. In Proceedings of the 29th International Conference on Knowledge Discovery and Data Mining (KDD), pages 167-178, 2023. +[25] Yu Yang, Siddhartha Mishra, Jeffrey Chiang, and Baharan Mirzasoleiman. Smalltolarge (s2l): Scalable data selection for fine-tuning large language models by summarizing training trajectories of small models. In Proceedings of the 37th Annual Conference on Neural Information Processing Systems (NeurIPS), pages 83465-83496, 2024. +[26] Huawen Liu, Xindong Wu, and Shichao Zhang. Feature selection using hierarchical feature clustering. In Proceedings of the 20th ACM International Conference on Information and Knowledge Management (CIKM), pages 979-984, 2011. +[27] D Napoleon and S Pavalakodi. A new method for dimensionality reduction using k-means clustering algorithm for high dimensional data set. International Journal of Computer Applications, 13(7):41-46, 2011. +[28] Markelle Kelly, Rachel Longjohn, and Kolby Nottingham. The UCI machine learning repository. https://archive.ics.uci.edu, 2025. Accessed: 2025-05-15. +[29] Saba Ahmadi, Pranjal Awasthi, Samir Khuller, Matthaus Kleindessner, Jamie Morgenstern, Pattara Sukprasert, and Ali Vakilian. Individual preference stability for clustering, 2022. URL https://arxiv.org/abs/2207.03600. + +# Appendix + +# A Greedy Capture Algorithms + +Algorithm 2: Centroid Greedy Capture [1] +Input: $\mathcal{N},\mathcal{M},d,k$ +Output: $\mathcal{X} = \{(C_1,x_1),\ldots ,(C_k,x_k)\}$ . Initialize: $\mathcal{N}'\gets \mathcal{N},\mathcal{X}\gets \emptyset ,\delta \gets 0$ +// Uncaptured agents remain while $\mathcal{N}'\neq \emptyset$ do Increase $\delta$ smoothly // Ball opens at a center if $\exists x\in \mathcal{M},C\subseteq \mathcal{N}'$ s.t. $|C|\geqslant n / k$ and $d(i,x)\leqslant \delta$ for all $i\in C$ then $\begin{array}{r}\mathcal{X}\leftarrow \mathcal{X}\cup \{(C,x)\} \\ \mathcal{N}'\leftarrow \mathcal{N}'\setminus C \end{array}$ // Open balls keep growing if $\exists (C,x)\in \mathcal{X},i\in \mathcal{N}'$ s.t. $d(i,x)\leqslant \delta$ then $\begin{array}{r}(C,x)\gets (C\cup \{i\} ,x)\\ \mathcal{N}'\gets \mathcal{N}'\setminus \{i\} \end{array}$ +// Agents switch clusters + $P\gets \{x\in \mathcal{M}:(C,x)\in \mathcal{X}$ for some $C\}$ $\forall i\in \mathcal{N},x_i\in \arg \min_{x\in P}d(i,x)$ $\forall x\in P,\widehat{C}_x\gets \{i\in \mathcal{N}:x_i = x\}$ $\mathcal{X}\gets \{(\widehat{C}_x,x):x\in P\}$ +return X + +Algorithm 3: Non-Centroid Greedy Capture [2] +Input: $\mathcal{N},d,k$ +Output: $\mathcal{X} = \{C_1,\dots ,C_k\}$ +Initialize: $\mathcal{N}'\gets \mathcal{N},\mathcal{X}\gets \emptyset ,\delta \gets 0$ +// Uncaptured agents remain +while $\mathcal{N}'\neq \emptyset$ do +Increase $\delta$ smoothly if $|\mathcal{N}^{\prime}| < n / k$ then // Edge-case to capture the last cluster $\mathcal{X}\leftarrow \mathcal{X}\cup \{C\leftarrow \mathcal{N}^{\prime}\}$ $\mathcal{N}^{\prime}\gets \emptyset$ +// Ball opens at an agent if $\exists i\in \mathcal{N}',C\subseteq \mathcal{N}'$ s.t. $|C|\geqslant n / k$ and $d(i,i^{\prime})\leqslant \delta$ for all $i^\prime \in C$ then $\begin{array}{r}\mathcal{X}\leftarrow \mathcal{X}\cup \{C\} \\ \mathcal{N}^{\prime}\leftarrow \mathcal{N}^{\prime}\setminus C\\ \end{array}$ +// Open balls don't grow +// Agents don't switch clusters +return X + +In the three dimensions discussed in Section 3, which induce eight variants of greedy capture, centroid greedy capture (Algorithm 2) makes the following choices: + +(1) The balls grow around the centroids. +(2) After a ball "captures" a group of $\frac{n}{k}$ points and opens, it continues to grow and capture any uncaptured points as soon as it contains them. +(3) After all agents have been captured, each agent gets an opportunity to switch to the cluster containing the centroid that is closest to it. + +We can show that the $(1 + \sqrt{2})$ -core guarantee of this algorithm with respect to the centroid loss is retained even when disabling one of the features (2) and (3). + +Theorem 9. Consider a variant of greedy capture in which balls grow around the agents, and open balls keep growing and/or agents are allowed to switch clusters at the end of the algorithm (at least one of the two holds). Then, it always returns a clustering in the $(1 + \sqrt{2})$ -core with respect to the centroid loss. + +Proof. For contradiction assume this is false, let $\mathcal{X} = \{(C_1,x_1),\ldots ,(C_k,x_k)\}$ be the clustering found by such an algorithm, and suppose that there is a deviating cluster $(S,y)$ where $|S|\geqslant \lceil \frac{n}{k}\rceil$ and $(1 + \sqrt{2})\cdot d(i,y) < d(i,x_{\mathcal{X}(i)})$ for every $i\in S$ + +Let $i = \arg \min_{i' \in S} \mathcal{X}(i')$ be the first agent in $S$ that was captured by the algorithm, and let $t = \mathcal{X}(i)$ . We know that $x_t \neq y$ , or $i$ would clearly not be a part of the deviating cluster $S$ . Let $j = \arg \max_{j' \in S} d(j', y)$ be the agent in $S$ that is farthest from $y$ , and let $\mathcal{X}(j) = t'$ . + +First, note that we must have $d(j,y) \geqslant d(i,x_t)$ . If this were false, and $d(j,y) < d(i,x_t)$ , then by the way that greedy capture functions, the cluster $(S,y)$ would be captured prior to $i$ being captured by $x_{t}$ , which would give a contradiction. + +With the above inequality, we can show that $t \neq t'$ . If this were not the case, and $t = t'$ , then we could say the following: + +$$ +\begin{array}{l} (1 + \sqrt {2}) \cdot d (j, y) < d (j, x _ {t ^ {\prime}}) = d (j, x _ {t}) \\ \leqslant d (i, x _ {t}) + d (i, y) + d (j, y) / / \text {T r i a n g l e} \\ < d (i, x _ {t}) + \frac {1}{1 + \sqrt {2}} \cdot d (i, x _ {t}) + d (j, y) \\ \leqslant \left(\frac {1}{1 + \sqrt {2}} + 2\right) \cdot d (j, y). \\ \end{array} +$$ + +Hence, $1 + \sqrt{2} < \frac{1}{1 + \sqrt{2}} + 2 = 1 + \sqrt{2}$ , which is a contradiction. + +We can also show that $d(j, x_{t}) \geqslant d(j, x_{t'})$ . We can do this by considering two cases. + +Case 1: Open balls keep growing. If open balls keep growing in the greedy capture variant under consideration, and if $d(j, x_t) < d(j, x_{t'})$ , then the fact that $x_t$ captures $i$ prior to $x_{t'}$ capturing $j$ implies that at the point in the algorithm when $x_{t'}$ captures $j$ , $x_t$ will have already captured $i$ , and $j$ will have already been in the the radius of $x_t$ 's ball at a previous value of $\delta$ . This would mean that $x_t$ must have initially captured $j$ . But this would contradict $\mathcal{X}(j) = t'$ , since regardless of if agents are allowed to switch clusters in the last step of the algorithm, $j$ could not end up in the $t'$ -th cluster at the end of the algorithm. + +Case 2: Agents can switch clusters. If agents can switch clusters at the end of the greedy capture variant under consideration, and if $d(j, x_{t}) < d(j, x_{t'})$ , then regardless of whether open balls continue to grow, $j$ would always want to switch to $x_{t}$ over $x_{t'}$ , contradicting the fact that $\mathcal{X}(j) = t'$ . + +With this inequality, we can say the following: + +$$ +\begin{array}{l} (1 + \sqrt {2}) \cdot d (j, y) < d (j, x _ {t ^ {\prime}}) \\ \leqslant d (j, x _ {t}) \\ \leqslant d (i, x _ {t}) + d (i, y) + d (y, j) \\ < d (i, x _ {t}) + \frac {1}{1 + \sqrt {2}} \cdot d (i, x _ {t}) + d (j, y) \\ \leqslant \left(\frac {1}{1 + \sqrt {2}} + 2\right) \cdot d (j, y), \\ \end{array} +$$ + +Again yielding $1 + \sqrt{2} < \frac{1}{1 + \sqrt{2}} + 2 = 1 + \sqrt{2}$ , which is a contradiction. + +![](images/8cf4dba24685c2f7e582e5c125a5e5b1ac647a2a058434b11511db7311f8fcc7.jpg) + +# B Missing Proofs from Section 3 + +$$ +\begin{array}{c}a\\ 1\Big| \hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hgap \\ b\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\end{array} c\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\begin{array}{c}a\\ 1\Big| \hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\begin{array}{c}p\\ 1\\ p\\ f \end{array} \end{array} d\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt\hskip -14.226378pt +$$ + +Figure 1: A semi-centroid clustering instance in which no clustering yields a finite approximation to the core with respect to both the centroid and non-centroid losses simultaneously. + +Theorem 1. For every $\alpha \geqslant 1$ and $\beta \geqslant 1$ , there exists a semi-centroid clustering instance in which no clustering is simultaneously in the $\alpha$ -core with respect to the centroid loss and in the $\beta$ -core with respect to the non-centroid loss. + +Proof. Fix any $\alpha \geqslant 1$ , $\beta \geqslant 1$ , and $p > \max \{\alpha, \beta\}$ . Consider the instance in Figure 1. Here $\mathcal{N} = \{a, b, c, d, e, f\}$ , $\mathcal{M} = \mathcal{N}$ , $k = 3$ , and let $d^m = d^c = d$ , where $d$ is defined by the distances shown in the diagram, with each distance that is not shown assumed to be the maximum possible + +allowed under the triangle inequality. Since $n / k = 2$ , a deviating coalition must contain 2 or more agents. + +For contradiction, assume that there exists a clustering in this instance that is simultaneously in the $\alpha$ -core in the centroid paradigm and in the $\beta$ -core in the non-centroid paradigm. + +Non-centroid $\beta$ -core: We claim that $\{a, b\}$ must be one of the clusters. If not, then either $a$ and $b$ are each in a cluster with a different agent, or at least one of them is a singleton cluster. In the former case, $\{a, b\}$ can deviate and improve the non-centroid loss of each member by a factor of $p > \beta$ , which is a contradiction. In the latter case, since $k = 3$ , by the pigeonhole principle, there must exist a cluster $C$ with $|C| \geqslant 3$ (which means $C \cap \{d, e, f\} \neq \emptyset$ ). If $C \cap \{a, b, c\} \neq \emptyset$ , then the larger of $C \cap \{a, b, c\}$ and $C \cap \{d, e, f\}$ , which must contain at least two agents, can deviate and each of its members would improve by an infinite factor, again a contradiction. The only remaining possibility is that $C = \{d, e, f\}$ , in which case $\{e, f\}$ can deviate and improve each member by a factor of $p > \beta$ , a contradiction. + +Hence, $\{a,b\}$ must be one of the clusters. By symmetry, $\{e,f\}$ must also be a cluster, so the remaining cluster must be $\{c,d\}$ . Thus, the only clustering that can be in the $\beta$ -core in the non-centroid paradigm is $\{(\{a,b\},x_1),(\{c,d\},x_2),(\{e,f\},x_3)\}$ for some $x_{1},x_{2},x_{3}\in \mathcal{N}$ . + +Centroid $\alpha$ -core: If $x_{1} \notin \{a, b\}$ , then $\{a, b\}$ can deviate with either of $a$ or $b$ as the cluster center and improve the centroid loss of each by a factor at least $p > \alpha$ , a contradiction. Without loss of generality, assume $x_{1} = a$ . Similarly, assume without loss of generality that $x_{3} = e$ . Now, either $x_{2} \in \{a, b, c\}$ or $x_{2} \in \{d, e, f\}$ . In the former case, $\{d, f\}$ can deviate with a center at $f$ , and in the latter case, $\{b, c\}$ can deviate with a center at $b$ , in each case improving each member by a factor at least $p > \alpha$ , which is a contradiction. + +This concludes the proof. + +![](images/8e54752932ae7204506ec0e591bf18bf3825d11cd5c19c41263de932061044d4.jpg) + +# C Missing Proofs from Section 4 + +# C.1 Dual Metric Loss + +Here, we present the missing proof of our central result, Lemma 1, which establishes an approximate core guarantee for Algorithm 1 with access to an oracle for an $\alpha$ -approximate maximum cohesive cluster. In the main body, we use it to prove our existential and polynomial-time attainable approximate core guarantees for the dual metric loss (Theorems 2 and 3). Let us recall the statement. + +Lemma 1. Given a subroutine for computing an $\alpha$ -approximate most cohesive cluster, Algorithm 1, with the growth factor set to $c = \frac{3\alpha + \sqrt{\alpha(\alpha + 8)}}{4\alpha}$ , finds a clustering in the $\frac{1}{2} (\alpha + \sqrt{\alpha(\alpha + 8)} + 2)$ -core with respect to the dual metric loss. + +We begin by establishing several useful properties of Algorithm 1. These properties bound the loss incurred by the agents when they (or other agents) switch (or choose not to switch) clusters during Phase 2 of Algorithm 1. + +Recall that Phase 1 produces a tentative clustering $\widehat{\mathcal{X}}$ , with $r_t = \max_{i \in \widehat{C}_t} \ell_i(\widehat{C}_t, x_t)$ being the maximum loss in the $t$ -th tentative cluster, $(\widehat{C}_t, x_t)$ . Then, in Phase 2, each agent $i \in \widehat{C}_t$ is given the opportunity to switch to the $t'$ -th cluster for every $t' \in V_i$ . For each such cluster, the agent evaluates the expression + +$$ +\Phi (i, t ^ {\prime}) \triangleq d ^ {c} (i, x _ {t ^ {\prime}}) + c \cdot r _ {t ^ {\prime}} + \min _ {j \in \widehat {C} _ {t ^ {\prime}}} \left(d ^ {m} (i, j) - d ^ {c} (j, x _ {t ^ {\prime}})\right), +$$ + +picks its minimizer $t^* \in \arg \min_{t' \in V_i} \Phi(i, t')$ , and switches to it if $\Phi(i, t') < c \cdot r_t$ . The following claims shed light into the reasoning behind this specific step. + +The first lemma establishes that if an agent is part of the $t$ -th cluster at the end of both Phase 1 and Phase 2 (i.e., it does not switch clusters during Phase 2), then its loss, which is at most $r_t$ at the end of Phase 1, remains bounded by $c \cdot r_t$ at the end of Phase 2. The increase may come from other agents possibly switching into the $t$ -th cluster during Phase 2. + +Lemma 6. For each $i\in \mathcal{N}$ , if $\widehat{\mathcal{X}} (i) = \mathcal{X}(i) = t$ then $\ell_i(\mathcal{X}) = \ell_i(C_t,x_t)\leqslant c\cdot r_t$ + +Proof. Our goal is to show that $d^{c}(i, x_{t}) + d^{m}(i, j) \leqslant c \cdot r_{t}$ for all $j \in C_{t}$ . Consider any $j \in C_{t}$ . + +Case 1: $j \in C_t \cap \widehat{C}_t$ . By the definition of $r_t$ , we must have $d^c(i, x_t) + d^m(i, j) \leqslant r_t \leqslant c \cdot r_t$ , where the last inequality holds because $c \geqslant 1$ . In words, such an agent does not increase the loss of agent $i$ even slightly. + +Case 2: $j \in C_t \setminus \widehat{C}_t$ . Because agent $j$ was allowed to switch to the $t$ -th cluster, we must have $t \in V_j$ . Then, Line 13 in Algorithm 1 ensures that $d^c(i, x_t) + d^m(i, j) \leqslant c \cdot r_t$ ; this is the condition that forbids an agent from joining a cluster if it would significantly hurt a "core member" of that cluster. + +This concludes the proof. + +![](images/ec1f0626df4677a9556e9abe69484158e7a6da45bf41f442a30e545459ba643b.jpg) + +The next lemma shows that if agent $i$ switches to the $t^*$ -th cluster during Phase 2, its final loss $\ell_i(\mathcal{X})$ would be bounded by $\Phi(i, t^*)$ . + +Lemma 7. For each $i\in \mathcal{N}$ , if $\mathcal{X}(i) = t^{*}\neq \widehat{\mathcal{X}} (i)$ , then + +$$ +\ell_ {i} (\mathcal {X}) = \ell_ {i} (C _ {t ^ {*}}, x _ {t ^ {*}}) \leqslant \Phi (i, t ^ {*}) = d ^ {c} (i, x _ {t ^ {*}}) + c \cdot r _ {t ^ {*}} + \min _ {j \in \widehat {C} _ {t ^ {*}}} (d ^ {m} (i, j) - d ^ {c} (j, x _ {t ^ {*}})). +$$ + +Proof. Let $i' = \arg \max_{j \in C_{t^*}} d^m(i, j)$ be the agent in $C_{t^*}$ that is the farthest from $i$ . Then, we have $\ell_i(C_{t^*}, x_{t^*}) = d^c(i, x_{t^*}) + d^m(i, i')$ . We want to show that this is at most $\Phi(i, t^*)$ . Let $j^* = \arg \min_{j \in \widehat{C}_{t^*}} (d^m(i, j) - d^c(j, x_{t^*}))$ , so $\Phi(i, t^*) = d^c(i, x_{t^*}) + c \cdot r_{t^*} + d^m(i, j^*) - d^c(j^*, x_{t^*})$ . Let us simplify our goal: + +$$ +\begin{array}{l} d ^ {c} \left(i, x _ {t ^ {*}}\right) + d ^ {m} \left(i, i ^ {\prime}\right) \leqslant d ^ {c} \left(i, x _ {t ^ {*}}\right) + c \cdot r _ {t ^ {*}} + d ^ {m} \left(i, j ^ {*}\right) - d ^ {c} \left(j ^ {*}, x _ {t ^ {*}}\right) \\ \Leftrightarrow d ^ {m} \left(i, i ^ {\prime}\right) \leqslant c \cdot r _ {t ^ {*}} + d ^ {m} \left(i, j ^ {*}\right) - d ^ {c} \left(j ^ {*}, x _ {t ^ {*}}\right). \tag {1} \\ \end{array} +$$ + +Case 1: $i' \in \widehat{C}_{t^*}$ . Then, by the fact that $j^* \in \widehat{C}_{t^*}$ is also true, we must have that $d^{c}(j^{*},x_{t^{*}}) + d^{m}(j^{*},i^{\prime}) \leqslant \ell_{j^{*}}(\widehat{C}_{t^{*}},x_{t^{*}}) \leqslant r_{t^{*}}$ , which yields $d^{m}(j^{*},i^{\prime}) \leqslant r_{t^{*}} - d^{c}(j^{*},x_{t^{*}})$ . + +Case 2: $i' \notin \widehat{C}_{t^*}$ . Then, since agent $i'$ switched to the $t^*$ -th cluster during Phase 2, we must have $t^* \in V_{i'}$ . Line 13 of Algorithm 1 and the fact that $j^* \in \widehat{C}_{t^*}$ ensure that $d^{c}(j^{*},x_{t^{*}}) + d^{m}(j^{*},i^{\prime}) \leqslant c\cdot r_{t^{*}}$ , i.e., $d^{m}(j^{*},i^{\prime}) \leqslant c\cdot r_{t^{*}} - d^{c}(j^{*},x_{t^{*}})$ . + +Since $c \geqslant 1$ , we get $d^{m}(j^{*},i^{\prime}) \leqslant c \cdot r_{t^{*}} - d^{c}(j^{*},x_{t^{*}})$ in both cases. Using the triangle inequality, we get + +$$ +d ^ {m} (i, i ^ {\prime}) \leqslant d ^ {m} (i, j ^ {*}) + d ^ {m} (j ^ {*}, i ^ {\prime}) \leqslant d ^ {m} (i, j ^ {*}) + c \cdot r _ {t ^ {*}} - d ^ {c} (j ^ {*}, x _ {t ^ {*}}), +$$ + +which is the desired Equation (1), concluding the proof. + +![](images/a601396deb5e7a9eb5ce0bdf6648063890ca192710a83f68767141895bbfdf06.jpg) + +Here is what we know now. During Phase 2, if agent $i$ remains in its original cluster $\widehat{\mathcal{X}}(i) = t$ , its loss remains upper bounded by $c \cdot r_t$ (Lemma 6), and if it switches to a cluster $t' \in V_i$ , its loss remains upper bounded by $\Phi(i, t')$ . This explains why agent $i$ switches to the cluster $t^* \in \arg \min_{t' \in V_i} \Phi(i, t')$ , only if $\Phi(i, t^*) < c \cdot r_t$ : the agent is simply picking the cluster that offers the smallest upper bound on its eventual loss. This is captured by the next lemma. + +Lemma 8. For each $i \in \mathcal{N}$ and $t' \in V_i$ , we have $\ell_i(\mathcal{X}) \leqslant \Phi(i, t') = d^c(i, x_{t'}) + c \cdot r_{t'} + \min_{j \in \widehat{C}_{t'}} (d^m(i, j) - d^c(j, x_{t'}))$ . + +Proof. Let $t = \widehat{\mathcal{X}}(i)$ and $t^* \in \arg \min_{t' \in V_i} \Phi(i, t')$ . If agent $i$ switches to the $t^*$ -th cluster during Phase 2 of Algorithm 1, then the claim follows from the fact that $\Phi(i, t^*) \leqslant \Phi(i, t')$ for all $t' \in V_i$ . If agent $i$ does not make a switch during Phase 2 and remains in the $t$ -th cluster, this must be because $c \cdot r_t \leqslant \Phi(i, t^*)$ due to Line 15 of Algorithm 1. The claim again follows from $\Phi(i, t^*) \leqslant \Phi(i, t')$ for all $t' \in V_i$ . + +Similarly to the proof of Lemma 8, we can see that if agent $i$ was in the $t$ -th cluster at the end of Phase 1, then $c \cdot r_t$ also remains an upper bound on its eventual loss, regardless of whether the agent stays in the $t$ -th cluster or switches to a $t^*$ -th cluster during Phase 2. This is because the agent only switches to the $t^*$ -th cluster if it provides a smaller upper bound on the loss. + +Lemma 9. For each $i\in \mathcal{N}$ , if $\hat{\mathcal{X}} (i) = t$ then $\ell_i(\mathcal{X})\leqslant c\cdot r_t$ + +Proof. If $\mathcal{X}(i) = t$ (i.e., the agent stays in the $t$ -th cluster during Phase 2), then the claim reduces to Lemma 6. If $\mathcal{X}(i) = t^{*} \neq t$ , then by Lemma 7, we have $\ell_{i}(\mathcal{X}) \leqslant \Phi(i, t^{*})$ . However, due to Line 16, agent $i$ only switches to the $t^{*}$ -th cluster if $\Phi(i, t^{*}) < c \cdot r_{t}$ , which implies $\ell_{i}(\mathcal{X}) \leqslant c \cdot r_{t}$ , as needed. + +Together, Lemmas 8 and 9 give us two different ways to upper bound the loss of agent $i$ , in terms of the $t$ -th cluster that agent $i$ was part of at the end of Phase 1, and in terms of every $t'$ -th cluster in $V_{i}$ that agent $i$ had the opportunity to switch to during Phase 2. With these bounds, we are ready to prove the central lemma. + +Lemma 1. Given a subroutine for computing an $\alpha$ -approximate most cohesive cluster, Algorithm 1, with the growth factor set to $c = \frac{3\alpha + \sqrt{\alpha(\alpha + 8)}}{4\alpha}$ , finds a clustering in the $\frac{1}{2} (\alpha + \sqrt{\alpha(\alpha + 8)} + 2)$ -core with respect to the dual metric loss. + +Proof. Let $\beta = \frac{1}{2} (\alpha +\sqrt{\alpha(\alpha + 8)} +2)$ + +For contradiction, assume that in some clustering $\mathcal{X} = \{(C_1,x_1),\ldots ,(C_k,x_k)\}$ returned by the algorithm, there is some deviating cluster $(S,y)$ such that for all $i\in S,\ell_i(S,y) < \frac{1}{\beta}\ell_i(\mathcal{X})$ . Let $i = \arg \min_{i\in S}\widehat{\mathcal{X}} (i)$ be the agent from this deviating cluster that was captured first during the phase 1 of Algorithm 1. Let $\widehat{\mathcal{X}} (i) = t$ . Let $j = \arg \max_{j\in S}\ell_j(S,y)$ be the agent from $S$ that has the highest loss among all agents in the deviating cluster. + +First note that it must be the case that $\ell_j(S, y) \geqslant \frac{1}{\alpha} r_t$ . If this were not the case, it would contradict the fact that $(\widehat{C}_t, x_t)$ was a $\alpha$ -approximation of the most cohesive cluster at that step of the algorithm. + +Next, we can show that $\widehat{\mathcal{X}}(j) \neq t$ , and that $j$ did not have the opportunity to switch into the $t$ -th cluster during the second phase of the algorithm. + +Showing that $\widehat{\mathcal{X}}(j) \neq t$ is easy. If $\widehat{\mathcal{X}}(j) = t$ were true, then by Lemma 9, we must have that $\ell_j(\mathcal{X}) \leqslant c \cdot r_t$ . Since $j$ wants to deviate to $(S, y)$ , we also must have that $\ell_j(S, y) < \frac{1}{\beta} \ell_j(\mathcal{X}) \leqslant \frac{c}{\beta} r_t$ . By plugging in the correct values of $\beta$ and $c$ , it can be seen that $\frac{c}{\beta} < \frac{1}{\alpha}$ whenever $\alpha \geqslant 1$ , so this would contradict that $\ell_j(S, y) \geqslant \frac{1}{\alpha} r_t$ . + +With a bit more work, we can also show that $j$ did not have the opportunity to switch to the $t$ -th cluster during the second phase of the algorithm. If $j$ did have this opportunity, then by Lemma 8 we must have that $\ell_j(\mathcal{X}) \leqslant d^c(j, x_t) + c \cdot r_t + \min_{i' \in \widehat{C}_t} \{d^m(i', j) - d^c(i', x_t)\}$ . Since $i \in \widehat{C}_t$ , this also gives us $\ell_j(\mathcal{X}) \leqslant d^c(j, x_t) + c \cdot r_t + d^m(i, j) - d^c(i, x_t)$ . + +By the triangle inequality, we have that $d^{c}(j,x_{t}) \leqslant d^{c}(j,y) + d^{c}(i,y) + d^{c}(i,x_{t})$ . Plugging this into our bound on $j$ 's loss gives us: + +$$ +\ell_ {j} (\mathcal {X}) \leqslant c \cdot r _ {t} + d ^ {m} (i, j) + d ^ {c} (j, y) + d ^ {c} (i, y) +$$ + +Notice that since $i$ and $j$ are both in $S$ , $d^{m}(i,j) + d^{c}(j,y) \leqslant \ell_{j}(S,y)$ . Also, we must have that $d^{c}(i,y) \leqslant \ell_{i}(S,y) < \frac{1}{\beta} \ell_{i}(\mathcal{X}) \leqslant \frac{c}{\beta} r_{t}$ , where the last inequality follows from Lemma 9. Plugging these in to our inequality gives us: + +$$ +\ell_ {j} (\mathcal {X}) < \ell_ {j} (S, y) + \left(c + \frac {c}{\beta}\right) \cdot r _ {t}. +$$ + +This implies that when $j$ deviates to $(S, y)$ , it can only improve its loss by a factor of at most: + +$$ +\frac {\ell_ {j} (S , y) + \left(c + \frac {c}{\beta}\right) \cdot r _ {t}}{\ell_ {j} (S , y)}. +$$ + +The fact that $\ell_j(S, y) \geqslant \frac{1}{\alpha} r_t$ allows us to upper-bound this as + +$$ +\frac {\frac {1}{\alpha} \cdot r _ {t} + \left(c + \frac {c}{\beta}\right) \cdot r _ {t}}{\frac {1}{\alpha} \cdot r _ {t}} = 1 + c \cdot \alpha \cdot \left(1 + \frac {1}{\beta}\right). +$$ + +By substituting in the values of $c$ and $\beta$ in terms of $\alpha$ , this comes out to be $\frac{1}{2} (\alpha + \sqrt{\alpha(\alpha + 8)} + 2)$ which gives a contradiction. + +Thus, it must be the case that $j$ does not have the opportunity to switch to the $t$ -th cluster during the second phase of the algorithm. Therefore, there must be some $i' \in \widehat{C}_t$ such that $d^c(i', x_t) + d^m(i', j) > c \cdot r_t$ , which can be rearranged to get $d^m(i', j) > c \cdot r_t - d^c(i', x_t)$ . As the final part of the proof, we can show that this also leads to a contradiction. + +By the triangle inequality, we have that $d^{m}(i', j) \leqslant d^{m}(i', i) + d^{m}(i, j)$ . This can be rearranged to get $d^{m}(i, j) \geqslant d^{m}(i', j) - d^{m}(i', i)$ . Plugging this and $d^{m}(i', j) > c \cdot r_{t} - d^{c}(i', x_{t})$ into this inequality gives us $d^{m}(i, j) > c \cdot r_{t} - (d^{c}(i', x_{t}) + d^{m}(i', i))$ . Since $i$ and $i'$ are both in $\widehat{C}_{t}$ , we have that $d^{c}(i', x_{t}) + d^{m}(i', i) \leqslant \ell_{i'}(\widehat{C}_{t}, x_{t}) \leqslant r_{t}$ , which gives us $d^{m}(i, j) > (c - 1)r_{t}$ . Since $i$ and $j$ are both in $S$ , this tells us that $\ell_{i}(S, y) \geqslant d^{m}(i, j) > (c - 1)r_{t}$ . + +Finally, since $i \in \widehat{C}_t$ , by Lemma 9 we know that $\ell_i(\mathcal{X}) \leqslant c \cdot r_t$ . This means that when $i$ deviates to $(S,y)$ , they are only improving their loss by a factor less than $\frac{c \cdot r_t}{(c - 1)r_t} = \frac{1}{2} (\alpha + \sqrt{\alpha(\alpha + 8)} + 2)$ , giving another contradiction and completing the proof. + +From Lemma 1, the proof of Theorem 2 follows easily. + +Theorem 2. For the dual metric loss, there always exists a clustering in the 3-core. + +Proof. Set $\alpha = 1$ (i.e., let Algorithm 1 iteratively compute a most cohesive cluster in Phase 1) in Lemma 1, which sets the growth factor to $c = 3/2$ and yields a 3-approximation to the core. + +Next, we present Algorithm 4, which efficiently computes a 4-MCC cluster for the dual metric loss by running the non-centroid greedy capture algorithm on a carefully crafted distance metric, once for each feasible center. + +Algorithm 4: 4-Approximate Most Cohesive Clustering Algorithm +Input: Set of agents $\mathcal{N}$ , set of feasible centers $\mathcal{M}$ , non-centroid metric $d^{m}$ , centroid metric $d^c$ number of clusters $k$ +Output: Cluster $(C,x)$ +1 for $y\in \mathcal{M}$ do +2 $\begin{array}{rlr}{\forall i,j\in \mathcal{N}:d_y(i,j)\leftarrow d^m (i,j) + d^c (i,y) + d^c (j,y);} & {} & {\mathrm{~ / ~}C\mathrm{~f~a~t~}3\mathrm{~t~h~e~m~e~r~c~}}\\ {C_y\leftarrow \mathrm{First~clust~er~produced~by~Algorithm~3~with~input}(\mathcal{N},d_y);\quad / / \mathrm{Run~greedy~capture}}\\ {r_y\leftarrow \max_{i\in C_y}\ell_i(C_y,y);} & {} & {\mathrm{/ / }\ell_i = \mathrm{dual~metric~loss}} \end{array}$ +3 +4 +5 $y^{*}\gets \arg \min_{y\in \mathcal{M}}r_{y};$ // Best center +6 return $(C_{y^*},y^*)$ + +The proof of its approximation guarantee follows. + +Lemma 2. For the dual metric loss, Algorithm 4 computes a 4-approximate most cohesive cluster in polynomial time. + +Proof. For any instance, fix some $y \in \mathcal{M}$ and let $d_y$ be a metric distance function over $\mathcal{N}$ , where for any distinct $i, j \in \mathcal{N}$ , $d_y(i, j) = d^m(i, j) + d^c(i, y) + d^c(j, y)$ (if $i = j$ then we assign $d_y(i, j) = 0$ ). We can first show that $d_y$ indeed induces a metric space over $\mathcal{N}$ . To show this, we just need to show that the triangle inequality holds, as clearly $d_y$ will meet to other two metric axioms. + +For any $i, i', j \in \mathcal{N}$ , we should have that $d_y(i, j) \leqslant d_y(i, i') + d_y(i', j)$ . By the definition of $d_y$ , this is equivalent to saying $d^m(i, j) + d^c(i, y) + d^c(j, y) \leqslant d^m(i, i') + d^c(i, y) + d^c(i', y) + d^m(i', j) + d^c(i', y) + d^c(j, y)$ . By the fact that $d^m$ is a metric, we have that $d^m(i, j) \leqslant d^m(i, i') + d^m(i', j)$ . + +Therefore, we just need to show that $d^{c}(i,y) + d^{c}(j,y) \leqslant d^{c}(i,y) + d^{c}(i',y) + d^{c}(i',y) + d^{c}(j,y)$ . Clearly, this holds as well, since $d^{c}(i,y) + d^{c}(j,y)$ appears on the right-hand side of the inequality. + +Algorithm 4 runs the non-centroid greedy capture algorithm on the agents, using the distance metric $d_{y}$ , for every $y \in \mathcal{M}$ , then considers that cluster in the original dual metric setting with $y$ as its center, and selects the most cohesive cluster found this way. + +For contradiction, assume that Algorithm 4 does not find does not find a 4 approximation of the most cohesive cluster. Let $(S,y)$ be the most cohesive cluster for an instance inputted to Algorithm 4. Define $r = \max_{i\in S}\ell_i(S,y)$ as the maximum loss felt by any agent in $S$ . Assume that Algorithm 4 returns the cluster $(C^{*},x^{*})$ , where $r^* = \max_{i\in C^*}\ell_i(C^*,x^*) > 4r$ + +Take the distance metric $d_y$ , and let $C_y$ be the non-centroid cluster that Algorithm 4 finds while using $d_y$ as its distance function. First, note that $\max_{i \in C_y} \ell_i(C_y, y) \geqslant r^*$ . Otherwise, Algorithm 4 would have returned $(C_y, y)$ rather than $(C^*, x)$ . + +Next, consider the maximum non-centroid loss with respect to $d_{y}$ for any agent in the member set $S$ . We will have $\forall i \in S, \max_{j \in S} d_{y}(i,j) = \max_{j \in S} \{d^{m}(i,j) + d^{c}(i,y) + d^{c}(j,y)\} \leqslant \max_{j \in S} d^{m}(i,j) + d^{c}(i,y) + \max_{j \in S} d^{c}(j,y) \leqslant r + \max_{j \in S} d^{c}(j,y)$ . For all $j \in S$ , we must have that $d^{c}(j,y) \leqslant r$ , which gives us $\max_{j \in S} d_{y}(i,j) \leqslant 2r$ . + +Caragiannis et al. [2] prove that in any non-centroid clustering instance, Algorithm 3 achieves a 2-approximation of the most cohesive cluster with respect to non-centroid loss for that instance. Since $C_y$ was found by running Algorithm 3 on $\mathcal{N}$ with distance function $d_y$ , $C_y$ must be a 2-approximation to the most cohesive non-centroid cluster in that instance. Particularly, this implies that the maximum non-centroid loss with respect to $d_y$ loss felt by any agent in $C_y$ must be no more than two times more than the maximum such loss felt by an agent in any member set $C' \subseteq \mathcal{N}$ with $|C'| \geqslant n / k$ . With respect to $S$ , this implies that $\max_{i,j \in C_y} d_y(i,j) \leqslant 2\max_{i,j \in S} d_y(i,j) \leqslant 2(2r) = 4r$ . + +Finally, note that for any member set of agents $C$ , the maximum non-centroid loss for that member set felt by any agent $i \in C$ with respect to the metric $d_{y}$ will be an upper bound on the dual-metric loss agent $i$ will feel under the cluster $(C, y)$ . To see this, note that $i$ 's non-centroid loss under $C$ with respect to $d_{y}$ will be equal to $\max_{j \in C} d_{y}(i, j) = \max_{j \in C} (d^{m}(i, j) + d^{c}(i, y) + d^{c}(j, y)) \geqslant \max_{j \in C} d^{m}(i, j) + d^{c}(i, y) = \ell_{i}(C, y)$ . In the case of $C_{y}$ , this tells us that $r^{*} \leqslant \max_{i \in C_{y}} \ell_{i}(C_{y}, y) \leqslant \max_{i \in C_{y}} \max_{j \in C_{y}} d_{y}(i, j) \leqslant 4r$ , which gives a contradiction, concluding the proof. + +Plugging this into Lemma 1 gives us a constant approximation to the core in polynomial time. + +Theorem 3. For the dual metric loss, a clustering in the $(3 + 2\sqrt{3})$ -core can be computed in polynomial time. + +Proof. From Lemma 2, Algorithm 4 computes a 4-MCC cluster. Let Algorithm 1 iteratively use it in Phase 1 and set $\alpha = 4$ in Lemma 1. Then, the growth factor is set to $c = 3 + \sqrt{3}$ and we obtain a core approximation of $\frac{1}{2} (4 + \sqrt{48} + 2) = 3 + 2\sqrt{3}$ . Each call to Algorithm 4 runs in polynomial time, and it is clear that the rest of Algorithm 1 also runs in polynomial time. + +# C.2 Weighted Single Metric Loss + +Lemma 3. For the weighted single metric loss with parameter $\lambda \in (0,1]$ , Algorithm 5 finds a clustering in the $\frac{2}{\lambda}$ -core in polynomial time. + +Proof. For contradiction, assume this is false, and there exists some instance such that the greedy clustering solution $\mathcal{X} = \{(C_1,x_1),\ldots ,(C_k,x_k)\}$ is not in the $\frac{2}{\lambda}$ -core. This means there exists some deviating cluster $(S,y)$ such that for all $i\in S$ , $\frac{2}{\lambda}\cdot \ell_i(S,y) < \ell_i(\mathcal{X})$ . + +Let $i = \arg \min_{i' \in S} \mathcal{X}(i')$ be the first agent from $S$ captured by Algorithm 5. Let $\mathcal{X}(i) = t$ . Let $j \in C_t$ be the agent that "captured" the cluster $C_t$ (meaning that at the time when $C_t$ was captured by the algorithm, $d(i', j) \leqslant \delta$ for all $i' \in C_t$ was true), and let $r_t = \max_{i \in C_t} d(i, j)$ be the value of $\delta$ at the point when $C_t$ was captured. + +Due to the triangle inequality, we have that for any $i' \in C_t$ , $d(i, i') \leqslant d(i, j) + d(j, i') \leqslant 2r_t$ . With this, we have that $\ell_i(\mathcal{X}) \leqslant (1 - \lambda)d(i, x_t) + \lambda 2r_t$ . + +Algorithm 5: Non-Centroid Greedy Capture With Greedy Centroid Selection +Input: Set of agents \(\mathcal{N}\) , set of feasible centers \(\mathcal{M}\) , metric \(d\) , number of clusters \(k\) Output: Clustering \(\mathcal{X} = \{(C_1,x_1),\ldots ,(C_k,x_k)\}\) +1 Initialize: \(\mathcal{N}'\gets \mathcal{N},\mathcal{X}\gets \emptyset ,\delta \gets 0;\) // Uncaptured agents remain +2 while \(\mathcal{N}'\neq \emptyset\) do +3 Increase \(\delta\) smoothly; // Edge-case to capture last cluster. +4 if \(|\mathcal{N}^{\prime}| < n / k\) then i \(\leftarrow\) arg min \(i\in \mathcal{N}^{\prime}\) max \(j\in \mathcal{N}^{\prime}\) d(i,j); (C,x) \(\leftarrow\) (N',arg min \(x\in M\) d(i,x)); X \(\leftarrow\) XU {C,x}; N' \(\leftarrow\) N' \\( C; // Non-centroid ball found +9 if \(\exists i\in \mathcal{N}',C\subseteq \mathcal{N}'\) s.t. \(|C|\geqslant n / k\) and \(d(i,i')\leqslant \delta\) for all \(i'\in C\) then x \(\leftarrow\) arg min \(x\in \mathcal{M}\) d(i,x); // Centroid closest to the ball's center +11 X \(\leftarrow\) XU {C,x}; N' \(\leftarrow\) N' \\( C; +13 return X + +Note that there must be some $i' \in S$ with $d(i, i') \geqslant r_t$ . If this were not the case, then Algorithm 5 would have captured $S$ prior to capturing $C_t$ , with $i$ being the "capturing" agent of $S$ . Thus, we also have that $\ell_i(S, y) \geqslant (1 - \lambda)d(i, y) + \lambda r_t$ . + +Due to the way that Algorithm 5 greedily selects a center for each cluster, it must be the case that $d(j,y) \geqslant d(j,x_t)$ , since otherwise, $y$ would have been selected as the center for $C_t$ rather than $x_t$ . From the triangle inequality, we have that $d(i,x_t) \leqslant d(i,j) + d(j,x_t) \leqslant r_t + d(j,y) \leqslant r_t + d(i,j) + d(i,y) \leqslant 2r_t + d(i,y)$ . Allowing us to conclude that $d(i,x_t) \leqslant 2r_t + d(i,y)$ + +The above inequality allows us to bound $\ell_i(\mathcal{X})\leqslant (1 - \lambda)d(i,x_t) + \lambda 2r_t\leqslant (1 - \lambda)(2r_t + d(i,y)) + \lambda 2r_t = 2r_t + (1 - \lambda)d(i,y)$ . This means that $i$ improves their loss by deviating by at most a factor of: + +$$ +\frac {2 r _ {t} + (1 - \lambda) d (i , y)}{(1 - \lambda) d (i , y) + \lambda r _ {t}} = \frac {(2 - \lambda) r _ {t}}{(1 - \lambda) d (i , y) + \lambda r _ {t}} + 1 \leqslant \frac {(2 - \lambda) r _ {t}}{\lambda r _ {t}} + 1 = \frac {2}{\lambda} +$$ + +Which gives the desired contradiction. + +![](images/b3d744c3c647e92d35cbff11c5614a0ff92243f2e3125affb7e897b8f8f859e7.jpg) + +Lemma 4. For the weighted single metric loss with parameter $\lambda \in [0,1)$ , Algorithm 6 finds a clustering in the $\frac{\sqrt{2\lambda - 11\lambda^2 + 13} + 3 - \lambda}{2 - 2\lambda}$ -core in polynomial time. + +Proof. When running Algorithm 6, we set the growth factor $c = \frac{q}{\lambda}$ , where $q = \frac{\sqrt{2\lambda - 11\lambda^2 + 13} + 5\lambda - 1}{6}$ . + +Let $\mathcal{X} = \{(C_1, x_1), \ldots, (C_k, x_k)\}$ be the clustering returned by Algorithm 6. Further, let $\widehat{\mathcal{X}} = \{(\widehat{C}_1, x_1), \ldots, (\widehat{C}_k, x_k)\}$ be the clustering found by Algorithm 6 after it has completed phase 1. + +First, we will show that for any agent $i \in N$ , if $\widehat{\mathcal{X}}(i) = t$ , then $\ell_i(\mathcal{X})$ will be no more than $(1 - \lambda)d(i, x_t) + \lambda(d(i, x_t) + \frac{q}{\lambda}r_t) = d(i, x_t) + q \cdot r_t$ . This can be seen by analyzing how the second phase of the algorithm works. + +In phase 2 of Algorithm 6, each agent $i \in \mathcal{N}$ can choose to switch from the cluster they were originally assigned to by the algorithm, to a new cluster. However, they can only switch to a cluster $(C_{t'}, x_{t'})$ if $d(i, x_{t'}) \leqslant cr_{t'}$ . In the algorithm, $c$ is called the "growth factor", as the second phase can be thought of as the the radius of each of the cluster balls increasing by a factor of $c$ , then each agent choosing to change to a new cluster that they are within the radius of. Also note that each agent + +Algorithm 6: Semi-Ball-Growing Algorithm +Input: Set of agents $\mathcal{N}$ , set of feasible centers $\mathcal{M}$ , distance metric $d$ , parameter $\lambda \in [0,1]$ number of clusters $k$ growth factor c Output: Clustering $\mathcal{X} = \{(C_1,x_1),\dots ,(C_k,x_k)\}$ 1 Initialize: $\mathcal{N}'\gets \mathcal{N},\widehat{\mathcal{X}}\gets \emptyset \delta \gets 0,t\gets 0;$ // Phase 1: Build a tentative clustering via centroid greedy capture +2 while $\mathcal{N}'\neq \emptyset$ do // Uncaptured agents remain +3 Increase $\delta$ smoothly; +4 if $|\mathcal{N}^{\prime}| < n / k$ then // Edge-case to capture the last cluster +5 $(\widehat{C}_t,x_t)\gets (\mathcal{N}',\arg \min_{x\in M}\max_{j\in \mathcal{N}'}(d(j,x)))$ +6 $\widehat{\mathcal{X}}\gets \widehat{\mathcal{X}}\cup \{(\widehat{C}_t,x_t)\}$ +7 $r_t\gets \max_{i\in \widehat{C}_t}d(i,x_i);$ +8 $\mathcal{N}'\gets \mathcal{N}'\setminus \widehat{C}_t;$ +9 t← t+1 +10 if $\exists x_{t}\in \mathcal{M},\widehat{C}_{t}\subseteq \mathcal{N}^{\prime}$ s.t. $|\widehat{C}_t|\geqslant n / k$ and $d(i,x_{t})\leqslant \delta$ for all $i\in \widehat{C}_t$ then +11 $\begin{array}{rl} & {\widehat{\mathcal{X}}\gets \widehat{\mathcal{X}}\cup \{(\widehat{C}_t,x_t)\} ;}\\ & {r_t\gets \delta ;}\\ & {\mathcal{N}'\gets \mathcal{N}'\setminus \widehat{C}_t;}\\ & {t\gets t + 1} \end{array}$ +12 +13 +14 // Phase 2: Selectively allow agents to switch clusters +15 Vt E [k], C t - C t; +for i E N do +17 // Allowed cluster with the best upper bound on loss $t^\prime \gets \arg \min_{t\in [k]:d(i,x_t)\leqslant c\cdot r_t}\{(1 - \lambda)\cdot d(i,x_t) + c\cdot \lambda \cdot 2r_t\} ;$ +18 t* e X(i); +19 // Switch if it improves the upper bound on loss if (1-λ) d(i,xt)+c·λ·2rt< d(i,xt)+c·λ·rt* then +20 Ct* C t* C t' U {i}; +21 C t' C t' U {i}; +return X={(C1,x1),..,(Ck,xk)} + +judges whether some new cluster $(C_{t'}, x_{t'})$ will provide it less loss than its current cluster based on the worst-case loss $i$ could possibility feel after switching to $(C_{t'}, x_{t'})$ . This is reflected in the term $c(\lambda) 2r_t$ on line 13 of Algorithm 6. Due to the fact that the non-centroid part of each agent's loss function will change based on which clusters other agents choose to switch into during the second phase of the algorithm, each agent will only switch to a new cluster if, regardless of how other agents switch, their loss under that new cluster is still guaranteed to be less than their current loss. + +For any $i \in \mathcal{N}$ with $\widehat{\mathcal{X}}(i) = t$ , if $i$ were to not switch to a new cluster in the second phase of the algorithm, then we can show that its final loss will be less than $d(i, x_t) + q \cdot r_t$ . To see this, assume $i$ does not switch clusters in phase 2, and thus $\mathcal{X}(i) = t$ . Because we know that $i$ did not switch, it must be the case that the distance from $i$ to the centroid of its final cluster is $d(i, x_t) \leqslant r_t$ . Further, from the way that agents were allowed to switch clusters in the second phase, we know that all for any $j \in C_t$ , we must have $d(j, x_t) \leqslant c \cdot r_t$ . By the triangle inequality, this means that for $j = \max_{j \in C_t} d(j, i)$ , the agent from $C_t$ that is farthest away from $i$ , we must have $d(i, j) \leqslant d(i, x_t) + d(j, x_t) \leqslant d(i, x_t) + c \cdot r_t$ . + +Putting these together and plugging in that $c = \frac{q}{\lambda}$ we have that: + +$$ +\ell_ {i} (\mathcal {X}) = (1 - \lambda) \cdot d (i, x _ {t}) + \lambda \cdot d (i, j) \leqslant (1 - \lambda) \cdot d (i, x _ {t}) + \lambda \cdot \left(d (i, x _ {t}) + c \cdot r _ {t}\right) = d (i, x _ {t}) + q \cdot r _ {t} +$$ + +Similarly, we can bound $i$ 's loss if they do choose to switch clusters in phase 2. Assume now that $i$ does switch such that after the second phase of the algorithm $\mathcal{X}(i) = t'$ . + +By similar logic as above, we can upper bound $i$ 's loss as: + +$$ +\ell_ {i} (\mathcal {X}) = (1 - \lambda) d \left(i, x _ {t ^ {\prime}}\right) + \lambda \ell_ {i} ^ {m} (\mathcal {X}) \leqslant (1 - \lambda) d \left(i, x _ {t ^ {\prime}}\right) + \lambda 2 c r _ {t ^ {\prime}} = (1 - \lambda) d \left(i, x _ {t ^ {\prime}}\right) + 2 q r _ {t ^ {\prime}} +$$ + +Here, the second transition follows from the fact that every agent in $C_{t'}$ is at most a distance of $cr_{t'}$ away from $x_{t'}$ . This along with a similar triangle inequality argument as above allows us to bound $\ell_i^m (C_{t'},x_{t'})\leqslant 2cr_{t'}$ . Notice that this is worse than the bound we were able to establish on $i$ 's non-centroid loss in the case when it did not switch. This is because when $i$ did not switch, we knew that $d(i,x_t)\leqslant r_t$ , where in the case where $i$ did switch, all we know is the weaker bound of $d(i,x_{t'})\leqslant c\cdot r_t$ . + +From line 13 of Algorithm 6, we can see that an agent $i$ will only switch from their first phase cluster to a new cluster if the upper-bounded loss from this new cluster is less than the upper-bounded loss of their original cluster. Thus, no matter what $i$ does during the second phase, we can guarantee that their loss will not be more than $d(i, x_t) + q \cdot r_t$ . + +With this bound on each agent's loss established, we can prove the required core guarantee. Assume for contradiction that this is false, and that Algorithm 6 produces a clustering $\mathcal{X}$ such that there is some deviating cluster $(S,y)$ with $S\subseteq \mathcal{N},|S|\geqslant \left\lceil \frac{n}{k}\right\rceil$ , and $y\in \mathcal{M}$ with $\frac{\sqrt{2\lambda - 11\lambda^2 + 13} + 3 - \lambda}{2 - 2\lambda}\ell_i(S,y) < \ell_i(\mathcal{X})$ for all $i\in S$ + +Let $i = \min_{i\in S}\widehat{\mathcal{X}} (i)$ be the agent from $S$ that was captured first by phase 1 of the algorithm, and let $\widehat{\mathcal{X}} (i) = t$ . We know that $d(i,x_{t})\leqslant r_{t}$ . Let $j = \arg \max_{j\in S}d(j,y)$ be the agent in $S$ that is farthest away from $y$ . We know that $d(j,y)\geqslant r_t$ must be true, otherwise, the first phase of the algorithm would have captured $(S,y)$ prior to capturing $(\widehat{C}_t,x_t)$ . + +First, we will consider the case where $d(j,x_{t}) \leqslant c\cdot r_{t}$ . This means that in the phase 2 of the algorithm, $j$ will have the opportunity to switch to the $t$ -th cluster. The maximum loss that $j$ could feel under the cluster centered at $x_{t}$ is $(1 - \lambda)d(j,x_{t}) + 2qr_{t}$ , and since $j$ will switch to the cluster with the lowest upper-bounded loss, this means that $j$ deviating to $(S,y)$ can improve its loss by at most a factor of $\frac{(1 - \lambda)d(j,x_{t}) + 2qr_{t}}{(1 - \lambda)d(j,y)}$ . Note that this can be upper bounded as + +$$ +\begin{array}{l} \frac {(1 - \lambda) d (j , x _ {t}) + 2 q r _ {t}}{(1 - \lambda) d (j , y)} \leqslant \frac {(1 - \lambda) (d (j , y) + d (i , y) + d (i , x _ {t})) + 2 q r _ {t}}{(1 - \lambda) d (j , y)} \\ \leqslant \frac {(1 - \lambda) d (j , y) + (1 - \lambda) (d (i , y) + r _ {t}) + 2 q r _ {t}}{(1 - \lambda) d (j , y)} \\ \leqslant \frac {(1 - \lambda) r _ {t} + (1 - \lambda) (d (i , y) + r _ {t}) + 2 q r _ {t}}{(1 - \lambda) r _ {t}} \\ = \frac {(2 (1 - \lambda) + 2 q) r _ {t} + (1 - \lambda) d (i , y)}{(1 - \lambda) r _ {t}} \\ \leqslant \frac {2 (1 - \lambda) + 2 q}{(1 - \lambda)} + \frac {d (i , y)}{r _ {t}}. \tag {2} \\ \end{array} +$$ + +For $i$ , we must have that $\ell_i^m (S,y)\geqslant (1 - \lambda)d(i,y)$ , and $\ell_i^m (\mathcal{X})$ cannot be more than $i$ 's upper-bounded loss under $(\widehat{C}_t,x_t)$ , meaning that $i$ deviating cannot improve its loss by more than a factor of + +$$ +\frac {d \left(i , x _ {t}\right) + q \cdot r _ {t}}{(1 - \lambda) d (i , y)} \leqslant \frac {(1 + q) r _ {t}}{(1 - \lambda) d (i , y)}. \tag {3} +$$ + +Combining Equations (2) and (3), we get the following bound: + +$$ +\begin{array}{l} \min \left\{\frac {1 + q}{1 - \lambda} \cdot \frac {r _ {t}}{d (i , y)}, \frac {2 (1 - \lambda) + 2 q}{(1 - \lambda)} + \frac {d (i , y)}{r _ {t}} \right\} \leqslant \max _ {z \geqslant 0} \min \left\{\frac {1 + q}{1 - \lambda} z, \frac {2 (1 - \lambda) + 2 q}{(1 - \lambda)} + \frac {1}{z} \right\} \\ = \frac {\sqrt {\lambda^ {2} - 3 \lambda (q + 1) + q ^ {2} + 3 q + 2} - \lambda + q + 1}{1 - \lambda}, \\ \end{array} +$$ + +where the last transition can be derived by equating the two expressions in $z$ and solving the resulting quadratic equation in $z$ . Substituting the chosen value of $q$ and simplifying gives us the following bound: + +$$ +\frac {\sqrt {2 \lambda - 1 1 \lambda^ {2} + 1 3} + 3 - \lambda}{2 - 2 \lambda}. +$$ + +This yields a contradiction. This shows that it must be true that $d(j, x_{t}) > c \cdot r_{t}$ , meaning that $j$ cannot switch to the $t$ -th cluster during the second phase of Algorithm 6. + +Using this along with the triangle inequality, we can say that $\frac{q}{\lambda} r_t < d(j,x_t) \leqslant d(j,i) + d(i,x_t) \leqslant d(j,i) + r_t$ . Rearranging we get that $d(i,j) > (\frac{q}{\lambda} - 1)r_t = (\frac{q - \lambda}{\lambda})r_t$ . + +With this, we can say that $\ell_i(S,y)\geqslant \lambda d(i,j) > \lambda \frac{q - \lambda}{\lambda} r_t = (q - \lambda)r_t$ + +Combining this with the fact that $\ell_i(\mathcal{X})\leqslant d(i,x_t) + q\cdot r_t\leqslant (q + 1)r_t$ , we get that in this case, $i$ deviating to $(S,y)$ cannot improve its loss by more than a factor of $\frac{q + 1}{q - \lambda}$ . + +Substituting in our chosen value of $q$ and simplifying once again gives us: + +$$ +\frac {\sqrt {2 \lambda - 1 1 \lambda^ {2} + 1 3} + 3 - \lambda}{2 - 2 \lambda} +$$ + +which is a contradiction, and concludes the proof. + +![](images/3e68c63cd81325e325e700b0b82eaf7e206eee53a9e519ba4c5a0ff9244e0a50.jpg) + +Lemma 10. For the weighted single metric loss with parameter $\lambda \in (0,1)$ , no clustering algorithm can achieve a core approximation better than $\frac{\sqrt{\lambda^2 - 2\lambda + 5} - \lambda + 1}{2}$ . + +Proof. We will analyze the instance in Figure 1, with $p = \frac{\sqrt{\lambda^2 - 2\lambda + 5} + \lambda - 1}{2\lambda}$ . As in the proof of Theorem 1, we can, without loss of generality, limit our analysis to the section of the instance containing $\{a,b,c\}$ , where we will assume that one cluster center is placed. + +If the cluster $(\{a, b, c\}, b)$ is initially selected, then $a$ will have a loss of $(1 - \lambda)d(a, b) + \lambda d(a, c) = (1 - \lambda) + \lambda p$ , and $b$ will have a loss of $(1 - \lambda)0 + \lambda p = \lambda p$ . If $a$ and $b$ deviate to the cluster $(\{a, b\}, b)$ , then they will improve their loss by a factor of $(1 - \lambda) + \lambda p$ and $p$ respectively. This deviation will lead to a violation of core with a factor of $(1 - \lambda) + \lambda p = \frac{\sqrt{\lambda^2 + 2\lambda + 5} - \lambda + 1}{2}$ . The same argument can show that $(\{a, b, c\}, a)$ would also not work as a cluster, and clearly, $(\{a, b, c\}, c)$ would also not work, as $a$ and $b$ 's losses would only get worse than before. + +If the cluster $(\{a, b\}, b)$ is initially selected, then note that $a$ will have a loss of $(1 - \lambda)d(a, b) + \lambda d(a, b) = 1$ . In contrast, under the clustering $(\{a, c\}, a)$ , $a$ will have a loss of $(1 - \lambda)0 + \lambda d(a, c) = \lambda p$ . This means that by deviating, $a$ will decrease its loss by a factor of $\frac{1}{\lambda p} = \frac{2}{\sqrt{\lambda^2 - 2\lambda + 5} + \lambda - 1} = \frac{\sqrt{\lambda^2 + 2\lambda + 5} - \lambda + 1}{2}$ . Since we assume that only one point from $\{a, b, c\}$ is selected as a center, this deviation must also improve $c$ 's loss by an infinite factor. Note that the same analysis holds if $a$ was selected as the centroid in the initial cluster rather than $b$ . Again, clearly the center $c$ would not work with this cluster either, as it would just make both agents no better off. + +Next, note that the cluster $(\{a,c\} ,a)$ cannot be selected. $a$ would have a loss of $(1 - \lambda)0 + \lambda p = \lambda p$ But under the clustering $(\{a,b\} ,a)$ $a$ 's loss would be $(1 - \lambda)0 + \lambda = \lambda$ , so deviating would improve $a$ 's loss by a factor of $p\geqslant \frac{\sqrt{\lambda^2 + 2\lambda + 5} - \lambda + 1}{2}$ $b$ would also improve their loss by an infinite factor. Clearly trying this cluster with any other center would not help, as it would only make $a$ 's initial loss worse. This argument can also be used to show that the cluster with member set $\{b,c\}$ will not work. + +This eliminates the possibility of any cluster of the 3 agents of size greater than 1. Finally, we cannot have more than 2 of these agents involved in a singleton cluster, as since $k = 3$ , all the agents on the other side would have to all belong to the same cluster, and we could apply a similar argument as the second paragraph of this proof to find a deviating set there. + +Lemma 11. For the weighted single metric loss with parameter $\lambda \in [0,1]$ , no clustering algorithm can achieve a core approximation better than $\frac{2(1 - \lambda)}{2\lambda + 1}$ . + +Proof. Take the instance from Claim 1 of Chen et al. [1]. $\mathcal{N} = \{a_1, \ldots, a_6\}, \mathcal{M} = \{y_1, \ldots, y_6\}, k = 3$ . The distances between agents are given as $d(a, b) = d(a, c) = d(b, c) = 3$ and $d(d, e) = d(d, e) = d(e, f) = 3$ , with all other pairs having distance $\infty$ . The distances between agents and centers are given by the in the below table (which can also be seen in claim 1 of Chen et al. [1]). + +
y1y2y3y4y5y6
a1412∞∞∞
a2241∞∞∞
a3124∞∞∞
a4∞∞∞412
a5∞∞∞241
a6∞∞∞124
+ +Chen et al. [1] show that in this instance, it is impossible to achieve a centroid core approximation of more than 2. + +Fix some clustering $\mathcal{X} = \{(C_1, x_1), (C_2, x_2), (C_3, x_3)\}$ . From Chen et al. [1], there must be some pair of agents that would want to deviate in the centroid world for a core improvement of at least 2. More specifically, since there are 3 clusters, and the instance consists of two "groups" of agents/centers, which are separated by a distance of $\infty$ , one of the groups must have at most 1 center from that group selected as one of the centers in $\mathcal{X}$ . + +Without loss of generality, assume that the group $\{a_1, a_2, a_3\}$ only has one center from their group selected by $\mathcal{X}$ , and assume $y_1$ is that center (because of the symmetry of the instance, we could pick either group, and any center of that group, and an identical argument would hold). In this scenario, the other two centers from $\mathcal{X}$ are distance $\infty$ away from $a_1$ and $a_2$ . $a_1$ and $a_2$ are either in the cluster with $y_1$ , or in a cluster with a center farther away from them than $y_1$ . Therefore, we must have that $\ell_{a_1}(\mathcal{X}) \geqslant (1 - \lambda)d(a_1, y_1) = 4(1 - \lambda)$ and $\ell_{a_2}(\mathcal{X}) \geqslant (1 - \lambda)d(a_2, y_1) = 2(1 - \lambda)$ . + +Now consider the deviating cluster $(S = \{a_{1}, a_{2}\}, y_{3})$ . $a_{1}$ and $a_{2}$ will have the following losses under that cluster: + +$$ +\ell_ {a _ {1}} (S, y _ {3}) = \lambda d (a _ {1}, a _ {2}) + (1 - \lambda) d (a _ {1}, y _ {3}) = 3 \lambda + 2 (1 - \lambda) +$$ + +$$ +\ell_ {a _ {2}} (S, y _ {3}) = \lambda d (a _ {1}, a _ {2}) + (1 - \lambda) d (a _ {2}, y _ {3}) = 3 \lambda + 1 (1 - \lambda) +$$ + +These, along with our lower bounds on the agents' loss under $\mathcal{X}$ allow us to conclude that $a_1$ would be able to make an improvement of at least $\frac{4(1 - \lambda)}{3\lambda + 2(1 - \lambda)}$ by deviating, and $a_2$ would see an improvement of at least $\frac{2(1 - \lambda)}{3\lambda + 1(1 - \lambda)}$ . + +It can easily be verify that $\frac{4(1 - \lambda)}{3\lambda + 2(1 - \lambda)} \geqslant \frac{2(1 - \lambda)}{3\lambda + 1(1 - \lambda)}$ for all $\lambda \in [0,1]$ , meaning that this would lead to a core violation of $\frac{2(1 - \lambda)}{3\lambda + 1(1 - \lambda)} = \frac{2(1 - \lambda)}{2\lambda + 1}$ , completing the proof. + +Theorem 5. For the weighted single metric loss with parameter $\lambda \in [0,1]$ , no clustering algorithm can achieve a core approximation better than $\max \left\{\frac{\sqrt{\lambda^2 - 2\lambda + 5} - \lambda + 1}{2}, \frac{2(1 - \lambda)}{2\lambda + 1}\right\}$ . + +Proof. The result for $\lambda \in (0,1)$ follows directly from Lemmas 10 and 11. The edge cases follow from known lower bounds from the centroid (lower bound of 2 [1]) and non-centroid (lower bound of 1 [2]) worlds. + +# D Missing Proofs from Section 5 + +First, we provide the missing proof of Theorem 6, which shows that Algorithm 7 yields an $\alpha$ -FJR clustering, guaranteeing the existence of an (exact) FJR clustering for arbitrary loss functions and the polynomial-time computability of a 4-FJR clustering for the dual metric loss. + +![](images/94421805c63dbef664f0226a012a448e8ff23a46f42fa5cb85c22e2381166e17.jpg) +Figure 2: Single Metric Core Bounds Visualized as $\lambda$ varies from 0 to 1. For exact bounds, see Table 1 + +Algorithm 7: Iterative $\alpha$ -MCC Clustering +Input: Set of agents $\mathcal{N}$ , set of feasible centers $\mathcal{M}$ , agents' loss functions $(\ell_i)_{i\in \mathcal{N}}$ , number of centers $k$ , approximation factor $\alpha \geqslant 1$ +Output: Clustering $\mathcal{X} = \{(C_1,x_1),\ldots ,(C_k,x_k)\}$ +1 Initialize: $\mathcal{N}'\gets \mathcal{N},\mathcal{X}\gets \emptyset$ .. // Uncaptured agents remain +2 while $\mathcal{N}'\neq \emptyset$ do +3 $(C,x)\gets \mathrm{An}\alpha$ -MCC cluster from the agents in $\mathcal{N}^{\prime}$ ; // Find an $\alpha$ -MCC cluster +4 $\mathcal{X}\gets \mathcal{X}\cup \{(C,x)\}$ // Add it to the clustering +5 $\mathcal{N}'\gets \mathcal{N}'\backslash C;$ // Mark its agents as captured +6 return X + +Theorem 6. For arbitrary losses and $\alpha \geqslant 1$ , Algorithm 7, which iteratively finds an $\alpha$ -approximate most cohesive cluster, returns an $\alpha$ -FJR clustering. Hence, a 1-FJR clustering exists for arbitrary losses and, due to Lemma 2, a 4-FJR clustering can be computed in polynomial time for the dual metric loss. + +Proof. For contradiction, assume that Algorithm 7 does not always yield an $\alpha$ -FJR clustering. Then, there exists an instance in which the clustering $\mathcal{X} = \{(C_1, x_1), \ldots, (C_k, x_k)\}$ returned by Algorithm 7 admits a deviating cluster $(S, y)$ such that for all $i \in S$ , + +$$ +\alpha \cdot \ell_ {i} (S, y) < \min _ {j \in S} \ell_ {j} (\mathcal {X}). \tag {4} +$$ + +Let $i^{*} \in \arg \min_{i \in S} \mathcal{X}(i)$ be the first agent in $S$ that was "captured" (i.e., removed from $\mathcal{N}'$ ) by the algorithm, ties broken arbitrarily. Let $t = \mathcal{X}(i^{*})$ . Then, from Equation (4), we get that for all $i \in S$ , + +$$ +\alpha \cdot \ell_ {i} (S, y) < \min _ {j \in S} \ell_ {j} (\mathcal {X}) \leqslant \ell_ {i ^ {*}} (\mathcal {X}) \leqslant \max _ {i \in C _ {t}} \ell_ {i} (\mathcal {X}) = \max _ {i \in C _ {t}} \ell_ {i} (C _ {t}, x _ {t}). +$$ + +Hence, $\alpha \cdot \max_{i\in S}\ell_i(S,y) < \max_{i\in C_t}\ell_i(C_t,x_t)$ . Since all agents in $S$ were uncaptured prior to $(C_t,x_t)$ being added to $\mathcal{X}$ , this contradicts $(C_t,x_t)$ being an $\alpha$ -MCC cluster at that time. This concludes the proof that Algorithm 7 always yields an $\alpha$ -FJR clustering. + +Since an MCC cluster exists by definition, plugging in $\alpha = 1$ yields the existence of an FJR clustering. And for the dual metric loss, since a 4-MCC cluster can be computed efficiently via Algorithm 4 (Lemma 2), we obtain that a 4-FJR clustering can be computed in polynomial time. + +Next, we provide the missing proof of Lemma 5, which establishes that for FJR, simultaneous approximation with respect to centroid and non-centroid loss functions is equivalent to approximation with respect to all dual metric loss functions that take a weighted combination of them (in contrast to the core, for which the former is only a necessary condition for the latter). + +Lemma 5. For any $\alpha \geqslant 1$ , a clustering is $\alpha$ -FJR with respect to the centroid loss with metric $d^c$ and with respect to the non-centroid loss with metric $d^m$ simultaneously if and only if it is $\alpha$ -FJR with respect to all dual metric loss functions with centroid metric $\lambda \cdot d^c$ and non-centroid metric $(1 - \lambda) \cdot d^m$ , for all $\lambda \in [0,1]$ . + +Proof. The if direction is trivial; one simply substitutes $\lambda = 0$ and $\lambda = 1$ . For the only if direction, take any clustering $\mathcal{X}$ and assume that it is $\alpha$ -FJR with respect to the centroid loss $\ell^c$ induced by metric $d^c$ and the non-centroid loss $\ell^m$ induced by metric $d^m$ simultaneously. Then, we have: + +$$ +\alpha \cdot \max _ {i \in S} \ell_ {i} ^ {c} (S, y) \leqslant \min _ {i \in S} \ell_ {i} ^ {c} (\mathcal {X}), \tag {5} +$$ + +$$ +\alpha \cdot \max _ {i \in S} \ell_ {i} ^ {m} (S, y) \leqslant \min _ {i \in S} \ell_ {i} ^ {m} (\mathcal {X}). \tag {6} +$$ + +Fix any $\lambda \in (0,1)$ , and consider the dual metric loss $\ell = \lambda \cdot \ell^c + (1 - \lambda) \cdot \ell^m$ . Our goal is to establish that it is $\alpha$ -FJR with respect to $\ell$ , regardless of the value of $\lambda$ . We have: + +$$ +\begin{array}{l} \alpha \cdot \max _ {i \in S} \ell_ {i} (S, y) = \alpha \cdot \max _ {i \in S} \left(\lambda \cdot \ell_ {i} ^ {c} (S, y) + (1 - \lambda) \cdot \ell_ {i} ^ {m} (S, y)\right) \\ \leqslant \alpha \cdot \left(\lambda \cdot \max _ {i \in S} \ell_ {i} ^ {c} (S, y) + (1 - \lambda) \cdot \max _ {i \in S} \ell_ {i} ^ {m} (S, y)\right) \\ \leqslant \lambda \cdot \min _ {i \in S} \ell_ {i} ^ {c} (\mathcal {X}) + (1 - \lambda) \cdot \min _ {i \in S} \ell_ {i} ^ {m} (\mathcal {X}) \\ \leqslant \min _ {i \in S} \left(\lambda \cdot \ell_ {i} ^ {c} (\mathcal {X}) + (1 - \lambda) \cdot \ell_ {i} ^ {m} (\mathcal {X})\right) = \min _ {i \in S} \ell_ {o} i (\mathcal {X}), \\ \end{array} +$$ + +where the second inequality follows from Equations (5) and (6). This concludes the proof. + +![](images/dc5109ace4e04c4f44aed4db06616076768a1d82cc17faefaaf7a5857ed12776.jpg) + +Next, we provide the missing proof of Theorem 7, which shows that such a simultaneous approximation is impossible when using different centroid and non-centroid metrics. + +Theorem 7. For any $\alpha \geqslant 1$ and $\beta \geqslant 1$ , there exists an instance in which no clustering is both $\alpha$ -FJR with respect to the centroid loss and $\beta$ -FJR with respect to the non-centroid loss, when the two loss functions are allowed to use different metrics. + +Proof. Consider an instance with a set of 6 agents $\mathcal{N} = \{a, b, c, d, e, f\}$ , a set of two feasible cluster centers $\mathcal{M} = \{x_1, x_2\}$ , and $k = 3$ . + +Non-centroid metric: Let $d^{m}(a,b) = d^{m}(c,d) = d^{m}(e,f) = 0$ , and let the non-centroid distance between every other pair of agents be $\infty$ .3 + +Centroid metric: Let $d^{c}(a, x_{1}) = d^{c}(c, x_{1}) = d^{c}(e, x_{1}) = 0$ , let $d^{c}(b, x_{2}) = d^{c}(d, x_{2}) = d^{c}(f, x_{2}) = 0$ , and let the centroid distance between every other agent-center pair be $\infty$ . + +Finite non-centroid FJR approximation: First, note that the only clustering that leads to a finite FJR approximation with respect to the non-centroid loss is the one that partitions the set of agents as $\mathcal{X} = \{\{a,b\}, \{c,d\}, \{e,f\}\}$ . + +To see this, consider any $C \in \mathcal{X}$ . If $C$ is "broken" (i.e., not a cluster by itself), then at least one member of $C$ must be a singleton cluster; the only other possibility would be that $C$ is a strict subset of a cluster, in which case $C$ can deviate, improving both its members from infinite loss to zero loss, yielding infinite FJR approximation. + +Hence, every unbroken pair in $\mathcal{X}$ forms a cluster of size two, and (at least) one member from every broken pair in $\mathcal{X}$ forms a singleton cluster. Since there are three pairs in $\mathcal{X}$ , this already uses up $k = 3$ clusters, leaving the other members from the broken pairs in $\mathcal{X}$ not included in the partition, which is impossible. Hence, there must not be any broken pairs, which shows that the partition must be $\mathcal{X} = \{\{a,b\}, \{c,d\}, \{e,f\}\}$ . + +Finite centroid FJR approximation: Now, let us try to assign a center to each cluster in $\mathcal{X}$ in a way that yields a finite approximation with respect to the centroid loss. Since there are only two feasible centers $x_{1}$ and $x_{2}$ , at least one of them must be assigned to at most one of the clusters in $\mathcal{X}$ . Without loss of generality, assume this center is $x_{1}$ . There are three agents, $a$ , $c$ , and $e$ , which are at distance 0 away from $x_{1}$ under the centroid metric. However, they are in different clusters. Hence, at least two of them must be assigned to $x_{2}$ . Hence, they can deviate together with $x_{1}$ and improve both their centroid losses from non-zero to zero, resulting in an infinite FJR approximation with respect to the centroid loss. + +This shows that there is no clustering that achieves finite FJR approximations with respect to both the centroid and non-centroid losses, concluding the proof. + +Next, we provide the missing proof of Theorem 8, which shows that simultaneous approximation is possible if both centroid and non-centroid losses use the same underlying metric. Since our algorithm (Algorithm 5) builds on non-centroid greedy capture, its FJR approximation with respect to the non-centroid loss is borrowed easily; the key difficulty is establishing its FJR approximation with respect to the centroid loss. + +Lemma 12. Algorithm 5, given metric $d$ , yields a clustering that is 5-FJR with respect to the centroid loss induced by $d$ . + +Proof. For contradiction, assume this is false. Then, there exists an instance in which Algorithm 5 returns a clustering $\mathcal{X} = \{(C_1,x_1),\ldots ,(C_k,x_k)\}$ that admits a deviating cluster $(S,y)$ such that + +$$ +\forall q \in S: 5 \cdot d (q, y) < \min _ {p \in S} \ell_ {p} ^ {c} (\mathcal {X}). \tag {7} +$$ + +Let $i \in S$ be the agent from $S$ that was captured first by Algorithm 5. Denote the cluster containing agent $i$ as $(C, x) \triangleq (C_{\mathcal{X}(i)}, x_{\mathcal{X}(i)})$ for brevity. Because Algorithm 5 runs non-centroid greedy capture to create the partition of the set of agents, $C$ must have been captured by a ball centered at some agent $j \in C$ . Note that the center $x$ selected by Algorithm 5 for $C$ must be the closest feasible center to agent $j$ . Let $r = \max_{i' \in C} d(j, i')$ be the radius of the ball centered at $j$ when it captured $C$ . + +First, we show that $d(i,x) \leqslant 2r + d(i,y)$ . To see this, note that + +$$ +d (i, x) \leqslant d (i, j) + d (j, x) \leqslant d (i, j) + d (j, y) \leqslant d (i, j) + d (i, j) + d (i, y) \leqslant 2 r + d (i, y), +$$ + +where the first and third inequalities use the triangle inequality, the second inequality uses the fact that $x$ is the closest center to agent $j$ (hence, $d(j,x) \leqslant d(j,y)$ ), and the last inequality follows from the definition of $r$ . + +Now, from Equation (7), we have that + +$$ +\forall q \in S: 5 \cdot d (q, y) < \min _ {p \in S} \ell_ {p} ^ {c} (\mathcal {X}) \leqslant \ell_ {i} ^ {c} (\mathcal {X}) = d (i, x) \leqslant 2 r + d (i, y). +$$ + +In particular, substituting $q = i$ , we get that $5 \cdot d(i,y) < 2r + d(i,y)$ , which yields $d(i,y) < r/2$ . Then, for every other agent $q \in S$ , we have that $5 \cdot d(q,y) < 2r + d(i,y) < 5r/2$ , which yields $d(q,y) < r/2$ . + +By the triangle inequality, we have that, for all $p, q \in S$ , $d(p, q) \leqslant d(p, y) + d(q, y) < r/2 + r/2 = r$ . But this is a contradiction because this would imply that in the execution of Algorithm 5, the ball centered at any agent in $S$ would have captured $S$ before the ball centered at agent $j$ captured $C$ . + +The proof of our simultaneous FJR approximation guarantee (Theorem 8) is now straightforward. + +Theorem 8. Algorithm 5, given metric $d$ , finds, in polynomial time, a clustering that is 5-FJR with respect to the centroid loss and 2-FJR with respect to the non-centroid loss, both defined using $d$ . + +Proof. 5-FJR with respect to the centroid loss $\ell^c$ is established in Lemma 12. + +Caragiannis et al. [2] show that non-centroid greedy capture achieves 2-FJR with respect to the non-centroid loss $\ell^m$ . It is easy to see that because Algorithm 5 runs non-centroid greedy capture and uses the partition $(C_1, \ldots, C_k)$ of the set of agents $\mathcal{N}$ that it produces, it retains this 2-FJR guarantee with respect to the non-centroid loss $\ell^m$ . + +# E Experiments + +In this section, our goal is to empirically compare proportionally fair algorithms designed in this work to classical clustering methods, in terms of both proportional fairness metrics and traditional metrics that the classical methods optimize. + +Because the classical methods take only a single distance metric $d$ as input, we limit our empirical analysis to weighted single metric loss, which depends on a single metric $d$ along with a parameter $\lambda \in [0,1]$ . + +Algorithms. We evaluate four algorithms. + +- GC: Algorithm 5, which runs non-centroid greedy capture followed by greedy centroid selection, and attains $\frac{2}{\lambda}$ -core (Lemma 3). We denote it by 'GC'. +- SemiBall: Algorithm 6, which mimicks centroid greedy capture but with limited cluster switching, and attains $\frac{\sqrt{2\lambda - 11\lambda^2 + 13} + 3 - \lambda}{2 - 2\lambda}$ -core (Lemma 4). We denote it by 'SemiBall'. +- $k$ -means++: This classical algorithm approximately optimizes the $k$ -means objective, $\sum_{i\in \mathcal{N}}d(i,\mathcal{X}(i))^2$ . +- $k$ -medoids: This classical algorithm approximately optimizes the $k$ -medoids objective, $\sum_{i\in \mathcal{N}}d(i,\mathcal{X}(i))$ . + +The $k$ -means++ and $k$ -medoids implementations are based on the Scikit-learn package in Python. + +It is worth remarking that three of the four algorithms—GC, $k$ -means++, and $k$ -medoids—take only the distance metric $d$ as input and not the parameter $\lambda$ . Hence, the clustering returned by these methods is independent of $\lambda$ , although its approximations to proportional fairness metrics would depend on $\lambda$ . + +Datasets. We use three datasets from the UCI Machine Learning Repository [28]: Iris, Pima Indians Diabetes, and Adult. These are the three datasets used by Caragiannis et al. [2] for their experiments with non-centroid clustering. + +- The Iris dataset contains 150 data points with measurements of sepal and petal dimensions across three species of iris flowers. +- The (Pima Indians) Diabetes dataset includes health-related indicators such as insulin dosage, glucose level, and number of pregnancies. +- The Adult dataset consists of 48,842 instances, with both categorical features (such as race and education) and numerical features (such as age and hours worked per week). It is typically used for the classification task of predicting whether an individual's income exceeds a specified threshold, but here it is used for clustering the individuals. We apply a one-hot encoding to all categorical features.5 + +Metrics. We evaluate the four algorithms above on five metrics. + +The first two metrics are core and FJR violations (i.e., the smallest $\alpha$ such that the clustering is in $\alpha$ -core or $\alpha$ -FJR); these two are proportional fairness metrics. We compute the exact violations of core and FJR by solving integer linear programs, which, given a clustering, find a deviating cluster $(C, x)$ recording the largest possible violation of the corresponding metric. + +The next three metrics are the $k$ -means objective (stated above), the $k$ -medoids objective (stated above), and average within-cluster distance, $\sum_{t \in [k]} \frac{1}{|C_t|} \sum_{i,j \in C_t} d(i,j)$ [29], which is another popular objective; these three can be considered efficiency metrics. These metrics are easy to compute given a clustering. + +Experimental setup. Following Chen et al. [1], Caragiannis et al. [2], we assume $\mathcal{N} = \mathcal{M}$ , and use the Euclidean $L_{2}$ distance metric. We vary two parameters: the number of clusters $k\in \{5,6,\ldots ,25\}$ and the weighted loss parameter $\lambda \in \{0.1,0.2,\dots ,0.9\}$ . Specifically, we report experimental results when varying $\lambda \in \{0.1,0.2,\dots ,0.9\}$ while fixing $k = 15$ , and when varying $k\in \{5,6,\dots ,25\}$ while fixing $\lambda = 0.5$ . + +While our algorithms (and the traditional baselines) scale well, solving integer linear programs to compute the exact core and FJR violations of the clustering they return is computationally intensive. Hence, for the two larger datasets, namely Adult and Diabetes, we randomly sample 100 data points in each of 40 independent trials. For the Iris dataset, since $k$ -means++ uses a randomized initialization step, we run it 20 times. Our plots show the five metrics above on average along with $95\%$ confidence intervals. + +Results. The results for Adult, Diabetes, and Iris datasets are presented in Figures 3 to 5, respectively. The qualitative takeaways are similar across the three datasets, so we use the Adult dataset (Figure 3) as an example to illustrate them. + +First, our two algorithms, GC and SemiBall, achieve near-exact core and FJR, which is significantly better than their worst-case approximation guarantees from Lemmas 3 and 4. The classical algorithms, $k$ -means++ and $k$ -medoids, admit notable core and FJR violations, and their fairness deteriorates as $k$ increases; this may be because $k$ is still less than $n/2$ , so an increase in $k$ increases the number of small coalitions (of size close to $n/k$ ) that can deviate. In particular, $k$ -means++ is highly unfair, especially for larger values of $k$ and smaller values of $\lambda$ (i.e., when the centroid loss is dominant). Interestingly, $k$ -medoids is reasonably fair; Caragiannis et al. [2] observe it to be unfair for the setting of $\lambda = 1$ (non-centroid loss), but our results show that its fairness improves as $\lambda$ decreases, and it becomes almost as fair as GC and SemiBall, producing near-exact core and FJR clustering, when $\lambda \rightarrow 0$ (centroid loss). + +The increased fairness of GC and SemiBall comes at the cost of decreased efficiency metrics as compared to $k$ -means++ and $k$ -medoids. The efficiency loss is, however, small, especially when either $k$ is large or $\lambda$ is small. Among our two algorithms, SemiBall seems to consistently perform better in efficiency metrics (and equal in fairness metrics). + +Hence, our main takeaway is that SemiBall and $k$ -medoids are compelling algorithmic choices for semi-centroid clustering; the choice between the two may rely on the value of $k$ and $\lambda$ , as well as the principal's desired fairness-efficiency tradeoff. + +# F Impossibility Results for Balanced Clustering + +In this section, we provide two impossibility results for balanced clustering in our semi-centroid world. Informally, balancedness dictates that the partition of the set of agents contain clusters of roughly equal size. In many applications such as creating groups of students for class projects or designing oral presentation sessions at a conference, this may be a desirable criterion. + +Formally, one may refer to a clustering $\mathcal{X} = \{(C_1,x_1),\ldots ,(C_k,x_k)\}$ as balanced if $|C_t|\in$ $\{\lfloor n / k\rfloor ,\lceil n / k\rceil \}$ for all $t\in [k]$ (equivalently, $||C_t| - |C_{t'}||\leqslant 1$ for all $t,t'\in [k])$ . However, both our impossibility results hold even under the following weaker criterion. + +Definition 4 (Balanced Clustering). We call a clustering $\mathcal{X} = \{(C_1, x_1), \ldots, (C_k, x_k)\}$ balanced if, when $k$ divides $n$ , $|C_t| = n / k$ for all $t \in [k]$ . + +It may be encouraging that non-centroid greedy capture indeed produces a balanced clustering under this weak version. The centroid greedy capture, however, offers no such guarantees. This is because, while it still opens balls as soon as they capture $\lceil n / k\rceil$ uncaptured agents, (i) open balls continue to grow and capture more agents, and (ii) agents are reassigned to the nearest center in the end. At least the second aspect is retained to some degree in both our algorithm for the dual metric loss (Algorithm 1) and one of our algorithms for the weighted single metric loss (Algorithm 6). This makes the final sizes of the clusters rather unpredictable (and not necessarily roughly equal). + +That said, Algorithm 5, which runs non-centroid greedy capture followed by a greedy centroid selection step, does in fact produce a balanced clustering and achieves $\frac{2}{\lambda}$ -core with respect to the weighted single metric loss. Unfortunately, this becomes unbounded when $\lambda$ approaches 0 (the centroid world). The next result shows that this is impossible to avoid when requiring a balanced clustering. Hence, our use of Algorithm 6, which computes an imbalanced clustering to achieve a finite core approximation in the small $\lambda$ regime (thus yielding a finite core approximation across the entire spectrum of $\lambda \in [0,1]$ ) is necessary. + +Theorem 10. For the weighted single metric loss with parameter $\lambda \in [0,1]$ , there exists an instance in which no balanced clustering is in the $\alpha$ -core for any $\alpha < \frac{1}{\sqrt{\lambda}}$ . + +![](images/6b4936842ccc7adb36653906184e2a4c8dd5a0fcfc6802e587723e8b648ee2a8.jpg) + +![](images/98d7742a4ce96734e0f81a044438426fbec5ccbe5eea2c1b6445f6709a2c7a1b.jpg) + +![](images/ff06fa2df5ccc66ef95284a99aadec0ceb9fa50521714375e9875445e0c53a4e.jpg) + +![](images/8acb821ee9021d44d26ac171af58aadd9c5269999e41405d949b94036fde89dc.jpg) + +![](images/dc59b74afe164f406a0ae14994463851ebde125b972bcab470189094162cf019.jpg) + +![](images/e5f5949fe93bbe2b28ebd53ee1067f983785da0933734c0fec56656fa1f6754a.jpg) + +![](images/d7d53cb1749c6ae3ab1d49cf7670c21a5671657100c1c6e0cfad23637106428e.jpg) + +![](images/b1b8461d39cb9969ec298e056b867d4ec05625944a747f2a14bc39bb50a99b66.jpg) +Figure 3: Results for the Adults (Census Income) dataset. The common legend appears at the top. The top five plots compare the algorithms on our five metrics when varying $\lambda \in \{0.1, 0.2, \dots, 0.9\}$ and fixing $k = 15$ , and the bottom five plots correspond to fixing $\lambda = 0.5$ and varying $k \in \{5, 6, \dots, 25\}$ . + +![](images/b07a5fa7616e1b96006f901926334ff691f5a636ae5b33a86fde472f6894fa22.jpg) + +![](images/c57f661fa11e5b01b96dd096b410908417cf17b7dce690208301b6dd64b3613d.jpg) + +![](images/82c3cba95ea6bd1286b99e2379780d4027f36d531fc238d9b7fa322e1da66074.jpg) +GC + +![](images/19f6e7d1c0a8ea18d5e8364909ab7c501b7d4248e69583ddbe836c853ef090d4.jpg) +SemiBall + +![](images/5f5439e5fa9eb7b0d23d1db7399d7a0c8231caf33fd47b86c60374ef446b709e.jpg) +k-means + +![](images/e23cd3492ba1ed2039a28ef9ea9c61bd57737a896c741b163f0c7bc329b7f1ab.jpg) +k-medoids + +![](images/99b9d9f5d64936b13aaa6c5e37583dd45a9eb3aa8f4b2f660f3e9fdb3b3b8bb4.jpg) + +![](images/ba68057532ba74856dddf8998258e666716aedc7d537553c7e263291b2842378.jpg) + +![](images/080138fe4be9ae3131943a631d4d5c6e7eac9d83054ba9db9c38f678ed40c9db.jpg) + +![](images/318af44d9355801cf88f9ff6b40b060750cad6cb138dc0d661aed8fefc198569.jpg) + +![](images/6196aba6b3f86827c01d2e7e6a31a4dbf5e87462b2cc170c631fef95c68a4bce.jpg) + +![](images/c9569568e847e1af8da553e0970b35c75c674ce7213823f86ffa6571135116c4.jpg) + +![](images/105b1900a6f03412078b1a852a476f3e16402014bf6cbe3a2720d02e1ec5c8ec.jpg) + +![](images/4ee438bc6908d296c8d3917191f7e0f9e236704186bcd3ec329f46b5977e35e5.jpg) +Figure 4: Results for the Diabetes dataset. The common legend appears at the top. The top five plots compare the algorithms on our five metrics when varying $\lambda \in \{0.1, 0.2, \dots, 0.9\}$ and fixing $k = 15$ and the bottom five plots correspond to fixing $\lambda = 0.5$ and varying $k \in \{5, 6, \dots, 25\}$ . + +![](images/63fe6413c3987f0b84288b958e4f6f4d8761ca8b5374e3574440bf5116a9635c.jpg) + +![](images/b970764a4b1c16a98e547c49356d977fcc44b378bce13aeaeb3b8b678c5f5095.jpg) + +![](images/66ea5804485f9d2c40790baa838c50a4d5e72ef89d3450db5850299989184173.jpg) +GC + +![](images/c341246d3dea62d663e1b6a8d9d56975c480720949921689afb451ba50a20c77.jpg) +SemiBall + +![](images/c4da4bd20eea8dae23dd699b56b332e850b9b9c00e62593645d2429a4df0c5b6.jpg) +k-means++ + +![](images/411857a4c680808dbf25c12700fe699bee77e802994bd290faa3b2e06d010087.jpg) +k-medoids + +![](images/5cce1b10f8c909200b6141fd5deeac63e892cc4b119865d6c184e0adde1df680.jpg) + +![](images/b120bc221ecb72cceb15afba769fd0ab14fae4da8b62e30d76aefdcd4f53421f.jpg) + +![](images/a4d4e64814aed7268429a59e2de24d57891c341a18eddc0c18f29564e5b7b9cc.jpg) + +![](images/c5a77541283dde714d94146724389626f865d57fa74f9aeb73c838a95ba5af73.jpg) + +![](images/c8c1ab2b6dd6fbb6d3117d1eb4b051fe172269e25d1d2d1c99cced571013fada.jpg) + +![](images/5cbcd59b42cf17c823f58c3bcce3791af1d273ffefef51de5edb7120d66372ef.jpg) + +![](images/340e2789ce987e7a4a1bd11e43b29b0f0b430838e1a4ed01680bed982c21d751.jpg) + +![](images/077d0139eeb37fa035ff4d41acb25b270722d76e72625bcc007e77a908cf4640.jpg) +Figure 5: Results for the Iris dataset. The common legend appears at the top. The top five plots compare the algorithms on our five metrics when varying $\lambda \in \{0.1, 0.2, \dots, 0.9\}$ and fixing $k = 15$ and the bottom five plots correspond to fixing $\lambda = 0.5$ and varying $k \in \{5, 6, \dots, 25\}$ . + +![](images/c9a91fdbbfdcbee7a3820c6fc0d72f555b4d0d24e2dafda5b33fe9593499442a.jpg) + +![](images/3af3d255852f07cd6a71794e8519cc4359808eb2c1afd7f1dce32297217cb2ff.jpg) + +Proof. Consider the instance from Figure 1. Note that $k = 3$ divides $n = 6$ . Set $p = \frac{1}{\sqrt{\lambda}}$ . For contradiction, assume that there exists a balanced clustering $\mathcal{X} = \{(C_1, x_1), (C_2, x_2), (C_3, x_3)\}$ with $|C_1| = |C_2| = |C_3| = 2$ , which is in the $\alpha$ -core for some $\alpha < \frac{1}{\sqrt{\lambda}}$ . + +First, note that $\{a,b\}$ must be one of the clusters. Suppose for contradiction that this is not the case. Then, at most one of agents $a$ and $b$ can be clustered with $c$ (i.e., at most one of $\mathcal{X}(a) = \mathcal{X}(c)$ and $\mathcal{X}(b) = \mathcal{X}(c)$ is true). Without loss of generality, suppose that agent $a$ is clustered with $c$ (a symmetric argument holds when agent $b$ is clustered with $c$ ). Then, $\ell_a(\mathcal{X}) \geqslant \lambda \cdot p = \sqrt{\lambda}$ ; this lower bound holds due to the non-centroid loss part alone. Since agent $b$ is clustered with an agent in $\{d,e,f\}$ that it is infinitely far from, $\ell_b(\mathcal{X}) = \infty$ . Then, consider the deviating cluster $(\{a,b\}, a)$ , which yields $\ell_a(\{a,b\}, a) = \lambda$ and $\ell_b(\{a,b\}, a) = 1$ . Compared to $\mathcal{X}$ , agent $b$ improves its loss by an infinite factor and agent $a$ improves its loss by a factor of $\frac{\sqrt{\lambda}}{\lambda} = \frac{1}{\sqrt{\lambda}}$ , which contradicts the fact that $\mathcal{X}$ is in the $\alpha$ -core for some $\alpha < \frac{1}{\sqrt{\lambda}}$ . + +Therefore, $\{a,b\}$ must be one of the clusters and at least one of agents $a$ and $b$ is not the centroid of this cluster. Without loss of generality, assume that the centroid is not at agent $b$ . Then, consider the deviating cluster $(\{b,c\}, b)$ . $\ell_b(\{b,c\}, b) = \lambda \cdot p = \sqrt{\lambda}$ and $\ell_c(\{b,c\}, b) = p$ . In contrast, $\ell_b(\mathcal{X}) \geqslant 1$ , so agent $b$ improves by a factor of at least $\frac{1}{\sqrt{\lambda}}$ . Further, since $\{a,b\}$ is a cluster, agent $c$ must be clustered with an agent from $\{d,e,f\}$ that it is infinitely far from, yielding $\ell_c(\mathcal{X}) = \infty$ . This means agent $c$ improves by an infinite factor. This contradicts the fact that $\mathcal{X}$ is in the $\alpha$ -core for some $\alpha < \frac{1}{\sqrt{\lambda}}$ . This completes the proof. + +Since the broader class of dual metric loss contains the weighted single metric loss for all $\lambda \in [0,1]$ , it follows that one cannot hope to design a balanced clustering algorithm that achieves any finite approximation to the core with respect to the dual metric loss. + +Theorem 11. Under the dual metric loss, no algorithm that always produces a balanced clustering can achieve $\alpha$ -core for any $\alpha \geqslant 1$ . + +Proof. Suppose for contradiction that there exists an algorithm that always produces a balanced clustering in the $\alpha$ -core with respect to the dual metric loss. Then, consider the instance from Figure 1, and set the non-centroid metric as $d^{m} = \lambda \cdot d$ and the centroid metric as $d^{c} = (1 - \lambda) \cdot d$ for any $\lambda < 1 / \alpha^{2}$ . The induced dual metric loss is $\ell_{i}(C, x) = \lambda \cdot \max_{j \in C} d(i, j) + (1 - \lambda) \cdot d(i, x)$ , which is precisely the weighted single metric loss induced by distance metric $d$ and parameter $\lambda$ . From Theorem 10, the core approximation achieved by any balanced clustering, including the one produced by the algorithm, must be at least $\frac{1}{\sqrt{\lambda}} > \alpha$ , which is the desired contradiction. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: We provide proofs for all the theoretical claims that we make, and provide results for the experiments we talk about in the introduction and abstract. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: Yes, we discuss limitations of our model in Section 6. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: We provide a detailed and formal description of our model in Section 2, and provide formal theorem statements and proofs for each claim that we make. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: Yes, we outline in detail the setup of our experiment, include which datasets were used, how we sampled from those datasets, and how we implemented the algorithms we were testing. Our experiments can be fully reproduced. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: We will provide our code as part of the supplementary material, and the datasets we use are openly available. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: Yes, we outline all the parameters of our experiments in detail. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [Yes] + +Justification: Yes, for all our experiments, we plot the mean of a number of trials, and include confidence intervals in our plots. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). + +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: Yes, our experiments do not require a large amount of compute and can be executed on a personal computer. In the section where we outline our experiments, we mention the steps that were computational bottlenecks, but even these were not a large undertaking to run on a laptop. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: Yes, our results are mainly theoretical and contain no ethics violations. Our experiments are run against commonly used, publicly available datasets and also cause no ethical issues. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: We talk about the impacts and applications of our work in Sections 1 and 6. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. + +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: We do not release any data or models. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: Yes, we cite the datasets that we use for our experiments. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URI. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. + +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: We do not release any new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: Our paper does not involve crowdsourcing or research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: Our paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. + +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: LLMs were only used for editing and formatting purposes. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/images.zip b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..f16357a68f266ac2a00fd06ecb295ad3b201dcac --- /dev/null +++ b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a869753f42b4a62f503b6c2d2e409fa26cfecdcea3b8ea0f29ef89298b132af +size 837785 diff --git a/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/layout.json b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..f735c59c6b0cf30a7ab1c51c9194208581f2e65b --- /dev/null +++ b/NeurIPS/2025/Unifying Proportional Fairness in Centroid and Non-Centroid Clustering/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1c8f347777e9d402d7923c474a5cc28440d138ca271f381c8c7de0255973ba0 +size 2076895 diff --git a/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/52870bb7-d909-479e-812c-f0ebb65a02f0_content_list.json b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/52870bb7-d909-479e-812c-f0ebb65a02f0_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..e4e663ec71efeb6bfd5b29559c1f30def7bdcefb --- /dev/null +++ b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/52870bb7-d909-479e-812c-f0ebb65a02f0_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49f0904b89f50ac6c3117a8cb909f93271d9f0984a0ab225ffed1c43edc78c84 +size 251502 diff --git a/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/52870bb7-d909-479e-812c-f0ebb65a02f0_model.json b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/52870bb7-d909-479e-812c-f0ebb65a02f0_model.json new file mode 100644 index 0000000000000000000000000000000000000000..4aa7b8cd01ec7ef48d757dcdd9b6732cde8d54b0 --- /dev/null +++ b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/52870bb7-d909-479e-812c-f0ebb65a02f0_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e24758a09294eba2cdcb19dbe1bf1e832984cf05182866f595a0b4a6747c402a +size 311385 diff --git a/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/52870bb7-d909-479e-812c-f0ebb65a02f0_origin.pdf b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/52870bb7-d909-479e-812c-f0ebb65a02f0_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..7e92dc550b891256585da7d62c486475ad936ba8 --- /dev/null +++ b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/52870bb7-d909-479e-812c-f0ebb65a02f0_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f6190ce6d663a691f85f5eb8e3ba82af9af17c984f6e3f55194a0b5c4f8faa3 +size 739841 diff --git a/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/full.md b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/full.md new file mode 100644 index 0000000000000000000000000000000000000000..1fe61ff96d3487b279d287fc39b31577a80f420c --- /dev/null +++ b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/full.md @@ -0,0 +1,1391 @@ +# Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy + +Bogdan Kulynych +Lausanne University Hospital + +Juan Felipe Gomez +Harvard University + +Georgios Kaissis +Google DeepMind + +Jamie Hayes Google DeepMind + +Borja Balle Google DeepMind + +Flavio P. Calmon +Harvard University + +# n Louis Raisaro + +Lausanne University Hospital +University of Lausanne + +# Abstract + +Differentially private (DP) mechanisms are difficult to interpret and calibrate because existing methods for mapping standard privacy parameters to concrete privacy risks—re-identification, attribute inference, and data reconstruction—are both overly pessimistic and inconsistent. In this work, we use the hypothesis-testing interpretation of DP ( $f$ -DP), and determine that bounds on attack success can take the same unified form across re-identification, attribute inference, and data reconstruction risks. Our unified bounds are (1) consistent across a multitude of attack settings, and (2) tunable, enabling practitioners to evaluate risk with respect to arbitrary, including worst-case, levels of baseline risk. Empirically, our results are tighter than prior methods using $\varepsilon$ -DP, Rényi DP, and concentrated DP. As a result, calibrating noise using our bounds can reduce the required noise by $20\%$ at the same risk level, which yields, e.g., an accuracy increase from $52\%$ to $70\%$ in a text classification task. Overall, this unifying perspective provides a principled framework for interpreting and calibrating the degree of protection in DP against specific levels of re-identification, attribute inference, or data reconstruction risk. + +# 1 Introduction + +Releases of models and statistics derived from personal data—such as de-identified and synthetic data releases, outcomes of statistical analyses, and machine-learning models—can reveal information about individuals in the data. These releases can be classified into record-level (releasing de-identified or obfuscated records) and aggregate (releasing statistical properties and models) (Gadotti et al., 2024). The disclosure of such information incurs different types of privacy risks, which are legislated differently across jurisdictions and regulatory frameworks. + +In record-level releases, information leakage can occur via singling out of an individual (Cohen and Nissim, 2020), e.g., determining that there is only one Colombian woman fluent in Mandarin over the age of 60 in the dataset. When combined with external information, singling out can result in a person's re-identification. Re-identification is harmful when it enables inference of previously unknown personal attributes by an attacker, e.g., disease status or voting record (Sweeney, 2002). Although in aggregate releases there is no one-to-one mapping between the released information and individuals, sensitive information can still be inferred via attribute inference or data reconstruction attacks (Fredrikson et al., 2015; Yeom et al., 2018; Balle et al., 2022), in which the adversary could, + +![](images/a5d513a6f69c96d0e5e2b61fed0c96fae7466896c45b00d2d7fa623e69871273.jpg) + +![](images/da18e3e97382252791ea662888a849a2ae444d9d4c9774eb0f300b55d2258fce.jpg) + +![](images/304049f44022ba9480ca68209645b614b55c53c67bf01b1f443ac0d758f0fc6d.jpg) + +![](images/80d7511705000f0664dc6289344e1db01fee70358f4310f389fb30e8082b0214.jpg) +Figure 1: Our results offer a unified and more precise way to interpret and calibrate DP mechanisms in terms of re-identification, attribute inference, and data reconstruction risks. Top: The success of all these attacks cannot be higher than the power of the worst-case membership inference attack, which we immediately obtain from the $f$ function in the decision-theoretic characterization of privacy mechanisms— $f$ -DP. Bottom left: Our results enable to add $\approx 20\%$ less noise at any given level of risk compared to using prior methods (see Section 4 for details). Bottom middle: Less noise translates into $\approx 18$ pp improved task accuracy (shown: DP-SGD for sentiment classification with GPT-2). Bottom right: The unifying risk measure is tunable—we can either estimate post-release risk for any given level of baseline risk, or measure the worst-case risk (shown: US 2020 Census state-level data). + +![](images/2f581b277620187dd46c18f4e6d0dd3591f355cc7ba8bcb1e3fec8f95cce7e8d.jpg) + +![](images/199133ea1614393a04061121a962191a992169cab280c144cc9524931470c34e.jpg) + +e.g., inspect the confidence outputs of a predictive model to infer one or more unknown attributes of an individual. These notions of risk are interpretable and appear in data-protection guidelines such as ISO standards (ISO/IEC 27559:2022), or guidelines from the European Medicines Agency (European Medicines Agency, 2018). + +Differential privacy (DP) (Dwork et al., 2014) is a standard tool for controlling information leakage in record-level and aggregate data disclosures. The goal of DP mechanisms is to mask the contribution of each individual in the release via noise injection and randomization. One of the core challenges in applying DP in practice is its interpretation (Franzen et al., 2022; Nanayakkara et al., 2023), as DP parameters do not trivially bound concrete risks such as re-identification, attribute inference, and data reconstruction. In the standard practice, information leakage in DP is quantified by two parameters: $\varepsilon$ , with values closer to zero meaning better privacy, and $\delta$ , which should be kept cryptographically small (Vadhan, 2017). + +There are few established guidelines for selecting DP parameters $(\varepsilon, \delta)$ , and often contradictory standards are adopted in practice. For example, heuristics such as $\varepsilon < 10$ are common in deep learning (Ponomareva et al., 2023). When translated to concrete privacy risks, such choices can result in vacuous privacy guarantees: in theory, $\varepsilon \approx 10$ can yield a more than $99\%$ worst-case attribute inference accuracy. This poor performance is not due to inherent limitations of DP itself—instead, it is a reflection of the imprecise nature of existing methods that convert between DP guarantees and notions of privacy risk. In fact, empirical evidence shows that even $\varepsilon > 10$ still prevents practical reconstruction attacks (Ziller et al., 2024; Hayes et al., 2024). + +In this paper, we use the decision-theoretic characterization of DP known as $f$ -DP (Dong et al., 2022) to unify and improve existing conversion bounds between DP and different notions of privacy risk. We work under the strong-adversary threat model, in which the adversary has access to the entire dataset + +except for one element, and has a certain prior distribution over the remaining element. Inspired by Cohen and Nissim (2020), we characterize the attack success probability of the adversary after observing the output of a DP mechanism as a function of the attack's baseline probability without the DP output. Surprisingly, we find that under the strong threat model, we can simultaneously bound the success probability of re-identification, attribute inference, and reconstruction attacks at once, using the same expression. Importantly, we find that not only this is a convenient way to analyze multiple kinds of risk at once, but also it provides a significantly tighter bound than prior methods, due to our usage of $f$ -DP. See Fig. 1 for an illustration of these properties, with more details in Section 4. + +As a concrete example, consider the release of all state-level US 2020 Census data, which satisfies DP with $\varepsilon = 10.6$ at $\delta = 10^{-10}$ . A standard risk analysis (Salem et al., 2023) indicates that the maximum difference between success and baseline probabilities of an attribute inference attack is $>99$ percentage points (pp), a more involved numeric analysis (Balle et al., 2022) based on the notion of Rényi DP (Mironov, 2017) yields 73pp, whereas our worst-case bound yields 52pp. Moreover, if we assume an adversary with a specific goal and background knowledge, e.g., inferring a disease status with a 1 in 10,000 prevalence in the population, our bound yields $< 0.001\mathrm{pp}$ . This corroborates and generalizes prior observations (Ziller et al., 2024; Hayes et al., 2024) that even $\varepsilon \approx 10$ attains meaningful privacy guarantees in certain regimes, to arbitrary $f$ -DP mechanisms. + +To summarize, our contributions are: + +- A unifying framework for analyzing re-identification, attribute inference, and data reconstruction risks in the strong threat model of DP. This includes a new formalization of re-identification risk as a variant of the notion of predicate singling out (Cohen and Nissim, 2020), adapted to the standard threat model of DP. +- Demonstration that our bounds offer tighter estimates of risk compared to prior approaches (Cohen and Nissim, 2020; Balle et al., 2022). +- Case studies demonstrating that our results provide a more precise and comprehensive interpretation of privacy risk for the US 2020 Census than prior methods, and enable noise reduction in DP mechanisms by approximately $20\%$ , yielding utility improvements in deep learning with DP-SGD of up to 18pp in test accuracy when calibrating noise to a given level of privacy risk (Kulynych et al., 2024). +- Novel bounds on generalization and memorization under $f$ -DP as corollaries of our results. +- We release the code as part of the Python package: + +https://github.com/Felipe-Gomez/riskcal + +Overall, our unifying perspective provides a principled and easy-to-use framework for interpreting and calibrating the degree of privacy protection in DP mechanisms against specific levels of privacy risks that are relevant in practice. + +# 2 Background + +This section sets up the notation and provides a concise overview of relevant background. We defer a more extensive overview of relevant background to Appendix A. + +Suppose that we have a sensitive dataset, e.g., patient healthcare records, $S \in 2^{\mathbb{D}}$ , where $\mathbb{D}$ is the data record space. We want to run a randomized algorithm $M(S)$ , e.g., a statistical analysis, or train a machine learning model, and release its output. We also call $M(\cdot)$ a mechanism. We denote the space of its outputs as $\Theta$ , and a specific output, e.g., a model, as $\theta \in \Theta$ . We say that two datasets $S, S'$ are neighbouring if they belong to a neighborhood relation denoted as $S \simeq S'$ . To capture a meaningful notion of training data privacy, this relation must correspond to adding, removing, or replacing all of the data that contains information of a single privacy unit, e.g., individual or secret. In the rest of the paper, we follow the standard practice and assume that the privacy unit corresponds to a single record. We consider two standard neighbourhood relations: the add-remove relation in which either $S = S' \cup \{z\}$ or $S' = S \cup \{z\}$ for some $z \in \mathbb{D}$ , and the replace-one relation in which both $S$ and $S'$ have the same size, but differ by one record. + +Differential privacy. An algorithm $M: 2^{\mathbb{D}} \to \Theta$ satisfies $(\varepsilon, \delta)$ -DP if for any measurable $E \subseteq \Theta$ and $S \simeq S'$ , we have $\operatorname*{Pr}[M(S) \in E] \leq e^{\varepsilon} \operatorname*{Pr}[M(S') \in E] + \delta$ (Dwork et al., 2014). We also make use of the notion of $\eta$ -total-variation (TV) privacy, which is equivalent to satisfying $(0, \eta)$ -DP. + +Strong-adversary membership inference. DP can be completely characterised via a constraint on the success rate of strong membership inference attacks (SMIA), which aim to determine whether a given record was part of the input dataset $S$ based on the output of $M(S)$ . Formally, given a sensitive record $z \in \mathbb{D}$ , and a partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , let $P = M(\bar{S})$ and $Q = M(\bar{S} \cup \{z\})$ . SMIA can be seen as a hypothesis test: + +$$ +H _ {0}: \theta \sim P, \text {a n d} H _ {1}: \theta \sim Q. \tag {1} +$$ + +For a given decision $\phi : \Theta \to \{0,1\}$ to reject the null hypothesis, we can quantify the adversary's success by characterizing its error rates (Wasserman and Zhou, 2010; Kairouz et al., 2015; Dong et al., 2022): $\alpha_{\phi} \triangleq \mathbb{E}_P[\phi], \beta_{\phi} \triangleq 1 - \mathbb{E}_Q[\phi]$ , where $\alpha_{\phi}$ and $\beta_{\phi}$ are the false positive rate (FPR) and false negative rate (FNR) respectively. For any desired FPR level $\alpha \in [0,1]$ , the Neyman-Pearson lemma guarantees that there exists an optimal test $\phi^*$ which achieves the lowest possible FNR $\beta$ . We can thus characterize the SMIA by a trade-off curve, a function which shows the lowest FNR achieved by the most powerful test for any level of FPR $\alpha$ : $T(P,Q)(\alpha) \triangleq \inf_{\phi: \Theta \to [0,1]} \{\beta_{\phi} \mid \alpha_{\phi} \leq \alpha\}$ . + +This trade-off curve forms the basis of a more general version of DP called $f$ -DP: a mechanism $M(\cdot)$ satisfies $f$ -DP if for any $S \simeq S'$ and $\alpha \in [0,1]$ we have that $T(M(S), M(S'))(\alpha) \geq f(\alpha)$ . This formulation is more general than DP: a mechanism $M(\cdot)$ is $(\varepsilon, \delta)$ -DP iff it satisfies $f$ -DP with: + +$$ +f (\alpha) = \max \{0, 1 - \delta - e ^ {\varepsilon} \alpha , e ^ {- \varepsilon} (1 - \delta - \alpha) \}. \tag {2} +$$ + +Notably, $f$ -DP is closed under post-processing: if $M(\cdot)$ satisfies $f$ -DP, then so does $g \circ M$ for any deterministic or randomized mapping $g(\cdot)$ . We make use of a lesser known representation of $f$ -DP: + +Lemma 2.1. An algorithm $M: 2^{\mathbb{D}} \to \Theta$ satisfies $f$ -DP iff for any measurable $E \subseteq \Theta$ and $S \simeq S'$ : + +$$ +\Pr [ M (S) \in E ] \leq 1 - f (\Pr [ M (S ^ {\prime}) \in E ]). \tag {3} +$$ + +This form also appears in Kifer et al. (2022), and we provide a self-contained proof in Appendix C. Another property of $f$ -DP that is relevant to our work is that it implies $\eta$ -TV privacy with $\eta = \max_{\alpha \in [0,1]} (1 - f(\alpha) - \alpha)$ (Kaisis et al., 2024). As a result, even though TV privacy on its own is a weak notion of privacy (Vadhan, 2017), any $f$ -DP algorithm implies TV privacy for some $\eta \geq 0$ . + +# 3 Bounding Operational Privacy Risks + +Next, we introduce formalizations of standard notions of risk in privacy-preserving statistics and learning: singling out, attribute inference, and data reconstruction. Our main results enable the analysis of these risks under a unifying framework given by $f$ -DP. + +# 3.1 Threat Model + +We focus on the risk within the strong threat model (see, e.g., Balle et al., 2022) in which the adversary has access to the workings of the privacy-preserving algorithm $M(\cdot)$ , has access to the partial dataset $\bar{S}$ except for one target record $z$ , and has side information about the remaining record $z$ in the form of a prior distribution $z \sim P$ . Note that this threat model is slightly different from the standard threat model of SMIA (see Section 2) in that we do not assume that the adversary knows the target record exactly. To quantify the adversary's success rate, we consider expectations over the prior distribution $P$ as well as over the randomness of the algorithm, as we detail next. + +Although this might seem like an overly strong model, providing security in this setting is desirable because it represents the worst-case scenario for attacks against privacy of individuals. In particular, as the adversary knows the partial dataset, it captures even the case when the adversary can poison the data (Leemann et al., 2024). By bounding the success of the strong adversary, we also bound the success of attacks against the considered privacy unit under other threat models that are weaker or more realistic for a specific application. + +In addition, we discuss existing risk notions which assume that the adversary does not have access to the partial dataset, but knows the data distribution $S \sim P^n$ . The success is then evaluated over $S \sim P^n$ . We call this the average-dataset threat model. We summarize the difference between these threat models in Table 1 in Appendix H. + +# 3.2 Notions of Risk + +Singling-out risk. We introduce formalizations of singling-out risk based on the notion of predicate singling out (PSO) (Cohen and Nissim, 2020). For the purpose of our work, we use singling-out risk and re-identification risk interchangeably for brevity, although singling out is only a necessary condition for re-identification, and other approaches to defining re-identification (e.g., also capturing inference) exist (Article 29 Data Protection Working Party, 2014). + +Definition 3.1 (PSO security). For a given $n > 1$ , mechanism $M: \mathbb{D}^n \to \Theta$ , data distribution $P$ over $\mathbb{D}$ , weight $w \in [0,1/n]$ , and adversary $\mathcal{A}_{n,M,P,w}: \Theta \to \mathbb{Q}_{P,w}$ which outputs a predicate that aims to single out one record in the training dataset from the set of admissible predicates $\mathbb{Q}_{P,w} \triangleq \{p \mid p: \mathbb{D} \to \{0,1\}, \mathbb{E}_P[p] \leq w\}$ , we define the PSO success rate as follows: + +$$ +\operatorname {s u c c} _ {P S O} (n, M, P, w; \mathcal {A}) \triangleq \Pr_ {\substack {S \sim P ^ {n} \\ p \leftarrow \mathcal {A} _ {n, M, P, w} (M (S))}} \left[ \sum_ {z \in S} p (z) = 1 \right], \tag{4} +$$ + +and the baseline success as: + +$$ +\operatorname {b a s e} _ {P S O} (n, P, w) \triangleq \sup _ {p \in \mathbb {Q} _ {P, w}} \Pr_ {S \sim P ^ {n}} \left[ \sum_ {z \in S} p (z) = 1 \right] = \sup _ {p \in \mathbb {Q} _ {P, w}} n \mathbb {E} _ {P} [ p ] \cdot (1 - \mathbb {E} _ {P} [ p ]) ^ {n - 1}. \tag {5} +$$ + +Observe that PSO security does not assume that the adversary has access to the dataset beyond its distribution $S \sim P^n$ , thus assumes the average-dataset threat model. As we are interested in the strong-adversary model, we introduce a new notion of PSO security where we assume that the adversary has knowledge of the entire dataset except for one element: + +Definition 3.2 (SPSO security). For a given $n > 1$ , $k \geq 2$ , mechanism $M: 2^{\mathbb{D}} \to \Theta$ , partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , data distribution $P$ over a candidate set $\mathbb{W} \subseteq \mathbb{D}$ with $|W| = k$ , weight $w \in [0,1]$ , and adversary $\mathcal{A}_{M,\bar{S},P,w}: \Theta \to \mathbb{Q}_{\bar{S},P,w}$ , which outputs a predicate that aims to single out the unknown record in the training dataset from the set of predicates $\mathbb{Q}_{\bar{S},P,w} \subseteq \{p \mid p: \mathbb{D} \to \{0,1\}, \sum_{z' \in \bar{S}} p(z') = 0, \mathbb{E}_P[p] \leq w\}$ , we define the strong PSO (SPSO) success rate as follows: + +$$ +\operatorname {s u c c} _ {S P S O} (M, \bar {S}, P, w; \mathcal {A}) \triangleq \underset { \begin{array}{c} z \sim P \\ p \leftarrow \mathcal {A} _ {M, \bar {S}, P, w} (M (\bar {S} \cup \{z \})) \end{array} } {\Pr} [ p (z) = 1 ], \tag {6} +$$ + +and the baseline success as: + +$$ +\operatorname {b a s e} _ {S P S O} (\bar {S}, P, w) \triangleq \sup _ {p \in \mathbb {Q} _ {\bar {S}, P, w}} \Pr_ {z \sim P} [ p (z) = 1 ] = \sup _ {p \in \mathbb {Q} _ {\bar {S}, P, w}} \mathbb {E} _ {P} [ p ] \leq w. \tag {7} +$$ + +Unlike PSO, in which the adversary aims to single out any record in an unknown dataset, in SPSO, the adversary aims to find a predicate that matches only one record from a prior set of candidates. We provide additional background on PSO in Appendix A.2. + +Attribute inference and reconstruction attacks. Following Balle et al. (2022), we formalize attribute inference and data reconstruction attacks using the notion of reconstruction robustness: + +Definition 3.3 (SRR security). For a given $n \geq 1$ , mechanism $M: 2^{\mathbb{D}} \to \Theta$ , data distribution $P$ over $\mathbb{D}$ , partial dataset $\tilde{S} \in \mathbb{D}^{n-1}$ , loss function $\ell: \mathbb{D} \times \mathbb{D} \to \mathbb{R}$ , threshold $\gamma \in \mathbb{R}$ , and reconstruction attack $\mathcal{A}_{M,\tilde{S},\mathcal{D}}: \Theta \to \mathbb{D}$ , we define the strong reconstruction robustness (SRR) success rate as follows: + +$$ +\operatorname {s u c c} _ {S R R} (M, \bar {S}, P; \mathcal {A}, \ell , \gamma) \triangleq \underset {\substack {z \sim P \\ \hat {z} \leftarrow \mathcal {A} _ {M, \bar {S}, P} (M (\bar {S} \cup \{z}))}} {\Pr} [ \ell (z, \hat {z}) \leq \gamma ], \tag{8} +$$ + +and the baseline success as $\mathrm{base}_{SRR}(P;\ell ,\gamma)\triangleq \sup_{\hat{z}\in \mathbb{D}}\operatorname *{Pr}_{z\sim P}[\ell (z,\hat{z})\leq \gamma ]$ + +Robustness against attribute inference attacks can be seen as a special case of SRR: + +Definition 3.4 (SAI security). For a given $n \geq 1$ , mechanism $M: 2^{\mathbb{D}} \to \Theta$ , set of attributes $\mathbb{A} = \{1, \dots, k\}$ , mapping from records to attributes $a: \mathbb{D} \to \mathbb{A}$ , data distribution $P$ over $\mathbb{D}$ , partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , and attribute inference attack $\mathcal{A}_{M,\bar{S},P}: \Theta \to \mathbb{A}$ , the strong attribute inference (SAI) success rate is defined as: + +$$ +\operatorname {s u c c} _ {S A I} (M, \bar {S}, P; \mathcal {A}, a) \triangleq \underset {\substack {z \sim P \\ \hat {a} \leftarrow \mathcal {A} _ {M, \bar {S}, P} (M (\bar {S} \cup \{z \}))}} {\Pr} [ a (z) = \hat {a} ], \tag{9} +$$ + +and the baseline success as $\mathrm{base}_{SAI}(P, a) \triangleq \sup_{\hat{a} \in \mathbb{A}} \operatorname{Pr}_{z \sim P}\left[a(z) = \hat{a}\right]$ . + +We review the prior methods to bound these notions of risk under DP in Appendix A.3. + +# 3.3 Main Results: Unifying Bounds + +Our core contribution is a unifying relationship between the hypothesis-testing interpretation of DP via $f$ -DP and the operational notions of privacy risk in the strong adversary model defined in Section 3.2. We achieve this via a general result that connects the expectation of an attack-specific query function $q(z, \theta)$ over the randomness of $\theta \sim M(S \cup \{z\})$ and $z \sim P$ to the maximum "baseline" expectation of the same function over only $z \sim P$ : + +Lemma 3.1. Suppose that $M:2^{\mathbb{D}}\to \Theta$ satisfies $f - DP$ w.r.t. either add-remove or replace-one relation. Then, for any bounded function $q:\mathbb{D}\times \Theta \rightarrow [0,1]$ , any partial dataset $\bar{S}\in \mathbb{D}^{n - 1}$ with $n\geq 1$ , and any probability distribution $P$ over $\mathbb{D}$ , we have: + +$$ +\mathbb {E} _ {z \sim P} \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} [ q (z; \theta) ] \leq 1 - f \left(\sup _ {\theta \in \Theta} \mathbb {E} _ {z \sim P} [ q (z; \theta) ]\right). \tag {10} +$$ + +Intuitively, the function $q(z; \theta)$ can be seen as indicating the degree of success of some attack against the privacy of the record $z$ given the knowledge of a model $\theta$ , on a scale from 0 to 1. We provide a proof of this statement, as well as of all the following results, in Appendix C. Technically, the core steps of the proof involve the usage of the representation of $f$ -DP in Lemma 2.1, and an application of Jensen's inequality to push the expectation over $z \sim P$ inside of $f(\alpha)$ . + +We recover the notions of risk in Section 3.2 by taking relevant instantiations of $q(z;\theta)$ , e.g., the indicator of a successful reconstruction event, $q(z;\theta) = \mathbb{1}[\ell (z,\mathcal{A}(\theta))\leq \gamma ]$ , in the case of reconstruction attacks. As a result, we get a unifying bound on attack success: + +Theorem 3.1 (Informal). Suppose that $M(\cdot)$ satisfies $f$ -DP w.r.t. either add-remove or replace-one relation. For SPSO, SRR, and SAI, it holds that: + +$$ +\operatorname {s u c c} _ {[ S P S O, S R R, S A I ]} \leq 1 - f (\text {b a s e} _ {[ S P S O, S R R, S A I ]}). \tag {11} +$$ + +We provide a precise statement including the missing arguments for each risk notion in Appendix C. + +Normalized success. Multiple prior works have observed that privacy analyses based on attack success alone can be misleading (Guerra-Balboa et al., 2023; Salem et al., 2023; Cohen et al., 2025). Thus, for all notions of risk, we consider an additional representation of risk in terms of success normalized by the baseline via additive advantage: $\text{adv} \triangleq \text{succ} - \text{base}$ , where we drop the arguments for brevity. As a consequence of Theorem 3.1, we obtain: + +Theorem 3.2 (Informal). Suppose that $M(\cdot)$ satisfies $f$ -DP w.r.t. either add-remove or replace-one relation. For SPSO, SRR, and SAI, it holds that: + +$$ +\operatorname {a d v} _ {[ S P S O, S R R, S A I ]} \leq 1 - f \left(\operatorname {b a s e} _ {[ S P S O, S R R, S A I ]}\right) - \operatorname {b a s e} _ {[ S P S O, S R R, S A I ]}. \tag {12} +$$ + +Theorem 3.2 trivially extends to other ways to normalize attack success, such as $\frac{\mathrm{succ} - \mathrm{base}}{1 - \mathrm{base}}$ (see, e.g., Guo et al., 2023) or $\frac{1 - \mathrm{succ}}{1 - \mathrm{base}}$ (see, e.g., Chatzikokolakis et al., 2023). In the rest of the paper, we use additive advantage to express risk. + +Baseline-independent guarantees. We can also obtain a bound on advantage that is independent of the baseline by just taking the maximum over all baselines. For this, we use the notion of $\eta$ -TV privacy, which any $f$ -DP algorithm satisfies for some $\eta$ (see Section 2). + +Theorem 3.3 (Informal). Suppose that the algorithm $M(\cdot)$ satisfies $\eta$ -TV privacy w.r.t. either the add-remove or replace-one relation. Then, the advantage of SPSO, SRR, and SAI is bounded: + +$$ +\operatorname {a d v} _ {[ S P S O, S R R, S A I ]} \leq \eta . \tag {13} +$$ + +This result is useful as (1) it enables to measure and communicate the worst-case risk across all baselines using a single number, and (2) we can use standard software tools for analyzing privacy in common algorithms such as DP-SGD (Abadi et al., 2016) by evaluating the DP guarantee for $(\varepsilon = 0, \delta = \eta)$ -DP without the need to instantiate the full $f$ curve. We detail on these properties next. + +# 3.4 Discussion of the Theoretical Results + +Computing the bounds in practice. Effective usage of our baseline-specific bounds in Theorems 3.1 and 3.2 requires an analysis of a privacy-preserving algorithm in terms of $f$ -DP. Although different variants of DP imply $f$ -DP, e.g., via Eq. (2) for a single pair of $(\varepsilon, \delta)$ guarantees, such conversions are loose (Kulynych et al., 2024). For simple mechanisms such as Gaussian or Laplace (Dwork et al., 2014), exact trade-off curves are known (Dong et al., 2022). For more complex algorithms such as DP-SGD (Abadi et al., 2016), there are two ways for obtaining the corresponding curve. + +First, we can estimate it using Eq. (2) from the privacy profile of the algorithm (Balle et al., 2018), i.e., the set of all attainable $(\varepsilon, \delta)$ -DP pairs. This method has been used for privacy auditing previously (Nasr et al., 2023). Second, it is possible to analyze DP-SGD or other algorithms that are compositions of (subsampled) Gaussian and Laplace mechanisms using a direct method (Kulynych et al., 2024). Both approaches provide tight analyses when using state-of-the-art accounting tools as a backbone, such as the Connect-the-Dots accountant (Doroshenko et al., 2022). In particular, prior work (Nasr et al., 2023) has shown that the upper bounds on privacy leakage obtained with the modern accounting techniques can be nearly reached by empirical attacks in the SMIA threat model. + +Tunability. Our bound on advantage in Theorem 3.2 enables practitioners to tune the baseline risk. In certain data release scenarios, it might be useful to simulate relevant re-identification or attribute inference attacks, estimate their plausible baseline risk, and consider the risk of the release with respect to such a baseline, i.e., $\text{adv} \leq 1 - f(\text{base}) - \text{base}$ . As an example, consider releasing outputs of a mechanism trained on tabular medical data which contains a column corresponding to a patient's HIV status. In this case, we might want to evaluate the risk of an adversary inferring the HIV status under standard threat models considered when releasing medical data (El Emam, 2010) such as "marker" or "journalist". For instance, the baseline risk of a "marker" adversary—who does not target any specific individual—could be modeled as guessing based on the prevalence of HIV in the general population. The baseline risk of a "journalist" adversary—who is assumed to be able to obtain side information on the target from public sources—could be modeled as guessing based on a target patient's demographics. We leave the derivation of application-specific procedures and guidelines for modeling baseline risk to future work. + +In high-risk scenarios, e.g., public model releases, it might be more desirable to ensure security against the worst-case attacks. In this case, it is more appropriate to use the baseline-independent bound of $\mathsf{adv} \leq \max_{\mathrm{base} \in [0,1]} (1 - f(\mathrm{base}) - \mathrm{base}) \leq \eta$ from Theorem 3.3. + +On tightness of the bounds. Our bounds are never vacuous, and are saturated for perfectly private and blatantly non-private mechanisms. However, they can be significantly tightened under additional assumptions on the adversary's threat model. In particular, we show an example of such strengthening in Appendix D for an important case of binary attribute inference with a non-uniform prior, and empirically show that it provides tighter bounds in this setting than prior work (Guo et al., 2023). Although there exist cases under which the unified bound can be tightened, we conjecture that it is tight in the most general case, i.e., there exist non-trivial settings under which Theorem 3.1 holds with equality. We leave the verification of this conjecture, and the identification of settings under which equality is achieved in case it is true, to future work. + +Beyond privacy. Our results extend to statistical learning theory. Concretely, in Appendix E, we show that our derivations can be extended to a new kind of generalization bound. Informally, we show that for the on-average train set error $\mathrm{err}_{\mathrm{tr}}$ and on-average generalization error $\mathrm{err}_{\mathrm{test}}$ (Shalev-Shwartz et al., 2010) of a learning algorithm satisfying $f$ -DP, it holds that $\mathrm{err}_{\mathrm{test}} \leq 1 - f(\mathrm{err}_{\mathrm{tr}})$ . Moreover, in Appendix F, we show that our derivations imply a bound on memorization (Feldman, 2019; Zhang et al., 2023). We believe these results are of independent interest. + +# 4 Experimental Evaluation + +# 4.1 Bounds Comparison + +Singling-out risk. We compare prior bounds on singling-out risk in the average-dataset threat model from Cohen and Nissim (2020) (detailed in Appendix B) to our bound on SPSO in Theorem 3.2, which operates under a different threat model. To provide an apples-to-apples comparison, we fix + +![](images/eee46509b88ecb5e34d3e9e544afed48e34dae46d7db011711768c4319f72985.jpg) +Figure 2: Our bound on predicate singling out in the strong threat model (SPSO) is always non-vacuous, and, surprisingly, shows significantly lower risk than bounds in the PSO threat model. The risk is $\text{adv} = \text{succ} - \text{base}$ with fixed given base for Gaussian mechanism with $\varepsilon$ calculated for $\delta = 10^{-5}$ . + +![](images/38908b2a0d22960cc5416d72d9bb9e8a4df35f8e6964d09f1762be414ff16faf.jpg) + +![](images/f9fc18f6a0c4b6513dc05fea4d04b6c5a299c870e3e9af397ea95f1412015b91.jpg) + +![](images/a06287fa3ff1e74b4b5cadffdc671febc5a059f172abf0663cef3775886b1d41.jpg) +Figure 3: Our bound on reconstruction robustness shows lower risk than prior bounds. We show risk as $\text{adv} = \text{succ} - \text{base}$ for three different baseline values for Gaussian mechanism with $\varepsilon$ calculated for $\delta = 10^{-5}$ . + +![](images/85b722cc59ff8a9cf594a7949b02c371e18c8b41eab437e001e298d4f914afcb.jpg) + +![](images/ea13a75bf75e02233ca8a96cfc305ba4effc659cbb6eb23ec4cd8eaa86432a0f.jpg) + +![](images/5c9dda9c36d3c180b00495058a4b0d7151b54bef581ae785ac518218fafe1025.jpg) + +the weight $w$ for both threat models. The baseline probability for PSO is base $= n \cdot w \cdot (1 - w)^{n-1}$ , whereas it is base $= w$ for SPSO. We use standard Laplace and Gaussian mechanisms (Dwork et al., 2014) with varying noise levels, and simulate different dataset sizes $n \in \{500, 1000, 5000\}$ with a fixed weight $w = 1/5000$ . We use $\delta = 10^{-5}$ to derive $\varepsilon$ for the Gaussian mechanism, and analyze DP under replace-one relation. + +We show the results for the Gaussian mechanism in Fig. 2 (the results for Laplace mechanism are similar, shown in Appendix H). Unlike the PSO bounds, our bounds provide meaningful guarantees even in the $\varepsilon \in [10,20]$ regime, and saturate only around $\varepsilon \approx 35$ . Note that our SPSO bound based on $f$ -DP and the strong adversary threat model shows lower risk than the PSO bound in the average-dataset threat model based on $(\varepsilon ,\delta)$ -DP. In Appendix F, we derive a novel PSO guarantee based on $f$ -DP, but we observe no meaningful difference from the $(\varepsilon ,\delta)$ -DP bound in Fig. 2 (see Appendix H). We hypothesize that both phenomena are due to the looseness in the derivations of the average-dataset PSO results that are not present in the SPSO derivation. We leave the derivation of tighter PSO bounds as future work. + +Reconstruction robustness. Next, we compare prior bounds on SRR from Balle et al. (2022) that are based on Rényi DP (RDP) (Mironov, 2017) and zero-concentrated DP (zCDP) (Dwork and Rothblum, 2016; Bun and Steinke, 2016), detailed in Appendix A.3, to our unifying bounds in Theorem 3.2. We use the Gaussian mechanism, analyzed under the add-one relation. We vary the noise parameter $\sigma$ , and compute $\varepsilon$ at $\delta = 10^{-5}$ . For the SRR bounds, we evaluate separately the bound for a single RDP guarantee $(t,\varepsilon)$ with $t = 2$ , and the bound for the tighter zCDP guarantee. Fig. 3 demonstrates that our bound always shows lower risk than prior approaches. + +# 4.2 Case Studies + +We present two case studies which showcase how our results can be used to interpret and calibrate realistic DP mechanisms. Additionally, in Appendix G, we discuss another application of our results to a DP statistical-query answering system (Gaboardi et al., 2020). + +Calibrating noise to reconstruction risk in deep learning. It is possible to partially reconstruct training-data records from observing outputs or weights of classification models (Balle et al., 2022) and language models (Carlini et al., 2022). In this case study, we assume the modeler fine-tunes a + +![](images/a3005f8936507b27a8efbff76642da72ea211783d57055cbdd9ddadd1c9da7eb.jpg) +Figure 4: Our method shows up to $33\%$ lower worst-case reconstruction risk in the US 2020 Census release than the prior method. x axis shows granularity levels of the release, y axis shows risk of attacks as succ - base for the worst-case baseline. + +language model for text sentiment classification on the SST-2 dataset (Socher et al., 2013). In order to limit the privacy risk to a given threshold, e.g., ensure at most 0.15 increase in the probability of successful reconstruction under the worst-case baseline, the modeler runs DP-SGD with attack-aware noise calibration (Kulynych et al., 2024). To simulate this, we fine-tune multiple GPT-2 (small) models (Radford et al., 2019) using a DP version of LoRA (Yu et al., 2021) (we provide technical details in Appendix G). We obtain the $f$ curve under the add-remove relation for each model using the direct method (Kulynych et al., 2024), and apply Theorem 3.2 to measure risk. We compare this to the RDP-based analysis from Balle et al. (2022), where we optimize RDP over a grid (see Appendix A.3). + +Fig. 1 shows that if we calibrate the noise scale to a given level of maximum attack risk, our unifying bound enables one to choose a lower noise scale at the same level of risk, which, in turn, results in better classification accuracy. Fig. 1 (left) shows the risk as a function of noise scale, and Fig. 1 (middle) shows the corresponding accuracy when training using that noise scale. The figure demonstrates that for the worst-case risk target of 0.15, we can increase the accuracy from $52\%$ to $70\%$ using our analysis, as opposed to an RDP-based one. Notably, the increase in accuracy is due to a more precise privacy calculation alone, thus does not come with additional costs. In Appendix F, we detail on a variant of this case study with CIFAR-10 (Krizhevsky et al., 2009). + +Analyzing risk in US Census release. The US Census bureau has released the 2020 Census data using DP (Abowd et al., 2022). In this case study, we aim to analyze this release in terms of operational privacy risks using our bounds, leveraging a recent analysis of the Census algorithm in terms of $f$ -DP (Su et al., 2024). The Census data consists of eight different levels of granularity, ranging from the US-wide level to block-level, with different privacy guarantees at each level. The standard analysis uses zCDP, thus we compare Theorem 3.2 to the analysis of data reconstruction risk via zCDP, as in our previous experiments in Section 4.1. + +In Fig. 4, we present the results for each granularity level under the worst-case baseline, which show that our unifying bound indicates up to $33\%$ less risk. The results for other baselines are similar, shown in Fig. 9, Appendix H. Moreover, in Fig. 1 (right) we show the risk as a function of baseline for the state-level release as an illustration for analyzing risk at different baselines. + +# 5 Related Work + +Prior work has extensively studied bounds on attack risks in DP. Balle et al. (2022) introduced a formalization of robustness to reconstruction attacks and provided bounds using $(\varepsilon, 0)$ -DP, RDP and zCDP. Compared to these, our bounds are tighter, as we demonstrate in Section 4. Under specialized threat models, these bounds were subsequently improved by Guo et al. (2023), and by Guerra-Balboa et al. (2023) for the case of $(\varepsilon, 0)$ -DP. We study the bounds by Guo et al. (2023), which specifically assume a discrete prior $P$ , in Appendix D. Cherubin et al. (2024) provided closed-form bounds on data reconstruction and membership inference advantage for DP-SGD using an approximate analysis. Our results do not rely on approximations and instead use the tight privacy analysis in terms of $f$ -DP based on the state-of-the-art DP-SGD accountants, as detailed in Section 3.4. + +Hayes et al. (2024) used a decision-theoretic view of DP via approximations to provide a bound on reconstruction robustness. There are several core differences compared to our results: (1) they provide a Monte-Carlo sampling-based method rather than a provable bound, (2) their method is + +specific to DP-SGD, and (3) it only covers reconstruction attacks. In contrast, our work focuses on the fundamental connection between different standard types of risks and the $f$ -DP framework, as opposed to providing a method to evaluate a specific type of privacy risk in DP-SGD. Our approach enables us to obtain provable bounds on risks for general DP mechanisms. Even though the theoretical underpinnings of our approaches are different, the outputs of the algorithm from Hayes et al. (2024) will converge in the limit of infinite Monte-Carlo samples to our $f$ -DP bound in the setting of reconstruction risk in DP-SGD. + +In Appendix B, we provide an additional overview of the alternative Bayesian approaches to interpret DP and other approaches to unify privacy risks. + +Bibliographic note. This paper subsumes the results from a prior workshop paper (Kaisis et al., 2023a) presented at the 2023 Theory and Practice of Differential Privacy (TPDP) workshop. + +# 6 Concluding Remarks + +This paper presents a unifying framework for analyzing re-identification, attribute inference, and data reconstruction risks—realistic privacy threats facing the releases of statistics, models, or de-identified data—using $f$ -differential privacy, a decision-theoretic approach to differential privacy. We demonstrated that our unifying framework is applicable to privacy-preserving machine-learning algorithms such as DP-SGD, and statistical applications such as the US Census data release. + +Impact. We have shown that the existing approaches to mapping DP parameters to risk are imprecise. As a result, in settings where ensuring a certain maximum level of operational risk is required—as opposed to ensuring a target value of $\varepsilon$ —practitioners would need to add more noise than is necessary. Not only does this hurt overall utility, but has negative effects on fairness (Bagdasaryan et al., 2019) and prediction consistency (Kulynych et al., 2023). Our approach provides a more precise way to estimate maximum risk, enabling practitioners to obtain better utility at the same level of target risk. + +$f$ -DP for analyzing operational risks. Our empirical and theoretical results demonstrated that the decision-theoretic view of DP via the $f$ -DP framework is a useful tool for analyzing privacy-preserving algorithms in terms of operational risks. As we have shown, it enables both substantially tighter characterizations of operational risk compared to other standard approaches such as Rényi DP or Concentrated DP, and easy-to-use unified analyses of various types of risk. + +Optimality. Although our bounds outperform prior methods to measure risk in DP, as we show in Appendix D, they can be significantly strengthened under additional assumptions on the adversarial model, e.g., by assuming the setting of binary attribute inference. We leave finding other practically relevant settings in which the bounds can be further tightened—either under specific attack configurations and priors like in Appendix D or under relaxed threat models (see, e.g., Kaissis et al., 2023b; Swanberg et al., 2025)—to future work. + +Importance of the privacy unit. Our privacy risk bounds have to be interpreted in terms of the underlying privacy unit. For instance, when training language models on open internet data, it is often practically infeasible to define a neighborhood relation that protects the privacy of individuals, as an individual's sensitive data can appear in various forms across multiple documents (Brown et al., 2022). In such settings, a more feasible privacy unit is a single document (Sinha et al., 2025). Thus, our bounds in this context would quantify the risk to a single document rather than to an individual. + +The need for transparent processes to prevent baseline gaming. Our methods provide a way to adjust the level of risk to a given adversarial setting by modeling the baseline risk. This is a strength as it enables to measure the risk of relevant threats, but also could facilitate privacy theater (Smart et al., 2022) if the communicated or calibrated risk is specific to a baseline that is too low. In this case, the risk estimate could appear lower than it actually is. Trustworthy usage of our baseline-specific bounds requires ensuring that the baseline is well-justified and representative of realistic threats. + +# Acknowledgments + +This project is supported by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, Department of Energy Computational Science Graduate Fellowship under Award Number DE-SC0022158, by Swiss National Science Foundation under Award Numbers 10003518 and 237378, and is part of the SYNTHIA project. SYNTHIA (Synthetic Data Generation framework for integrated validation of use cases and AI healthcare applications) is supported by the Innovative Health Initiative Joint Undertaking (IHI JU) under grant agreement No. 101172872. Thus, the project is partially funded by the European Union, the private members, and those contributing partners of the IHI JU. Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the aforementioned parties. Neither of the aforementioned parties can be held responsible for them. + +# References + +Aloni Cohen and Kobbi Nissim. Towards formalizing the GDPR's notion of singling out. Proceedings of the National Academy of Sciences, 117(15):8344-8352, 2020. +Borja Balle, Giovanni Cherubin, and Jamie Hayes. Reconstructing training data with informed adversaries. In 2022 IEEE Symposium on Security and Privacy (SP). IEEE, 2022. +Andrea Gadotti, Luc Rocher, Florimond Houssiau, Ana-Maria Crețu, and Yves-Alexandre De Montjoye. Anonymization: The imperfect science of using data while preserving privacy. Science Advances, 10(29):eadn7053, 2024. +Latanya Sweeney. k-anonymity: A model for protecting privacy. International journal of uncertainty, fuzziness and knowledge-based systems, 10(05):557-570, 2002. +Matt Fredrikson, Somesh Jha, and Thomas Ristenpart. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the ACM SIGSAC conference on computer and communications security, 2015. +Samuel Yeom, Irene Giacomelli, Matt Fredrikson, and Somesh Jha. Privacy risk in machine learning: Analyzing the connection to overfitting. In Computer Security Foundations Symposium (CSF). IEEE, 2018. +ISO/IEC 27559:2022. Privacy enhancing data de-identification framework, 2022. Available at: https://www.iso.org/standard/80392.html. +GT European Medicines Agency. External guidance on the implementation of the european medicines agency policy on the publication of clinical data for medicinal products for human use, 2018. +Cynthia Dwork, Aaron Roth, et al. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 2014. +Daniel Franzen, Saskia Nunez von Voigt, Peter Sörries, Florian Tschorsch, and Claudia Müller-Birn. Am i private and if so, how many? communicating privacy guarantees of differential privacy with risk communication formats. In Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, 2022. +Priyanka Nanayakkara, Mary Anne Smart, Rachel Cummings, Gabriel Kaptchuk, and Elissa M Redmiles. What are the chances? Explaining the epsilon parameter in differential privacy. In 32nd USENIX Security Symposium (USENIX Security 23), 2023. +Salil Vadhan. The complexity of differential privacy. Tutorials on the Foundations of Cryptography: Dedicated to Oded Goldreich, pages 347-450, 2017. +Natalia Ponomareva, Hussein Hazimeh, Alex Kurakin, Zheng Xu, Carson Denison, H Brendan McMahan, Sergei Vassilvitskii, Steve Chien, and Abhradeep Guha Thakurta. How to DP-fy ML: A practical guide to machine learning with differential privacy. Journal of Artificial Intelligence Research, 77:1113-1201, 2023. +Peter Kairouz, Sewoong Oh, and Pramod Viswanath. The composition theorem for differential privacy. In International conference on machine learning. PMLR, 2015. + +Thomas Humphries, Simon Oya, Lindsey Tulloch, Matthew Rafuse, Ian Goldberg, Urs Hengartner, and Florian Kerschbaum. Investigating membership inference attacks under data dependencies. In Computer Security Foundations Symposium (CSF), 2023. +Ahmed Salem, Giovanni Cherubin, David Evans, Boris Köpf, Andrew Paverd, Anshuman Suri, Shruti Tople, and Santiago Zanella-Béguelin. SoK: Let the privacy games begin! A unified treatment of data inference privacy in machine learning. In 2023 IEEE Symposium on Security and Privacy (SP), 2023. +Alexander Ziller, Tamara T Mueller, Simon Stieger, Leonhard F Feiner, Johannes Brandt, Rickmer Braren, Daniel Rueckert, and Georgios Kaissis. Reconciling privacy and accuracy in ai for medical imaging. Nature Machine Intelligence, 6(7):764-774, 2024. +Jamie Hayes, Borja Balle, and Saeed Mahloujifar. Bounding training data reconstruction in DP-SGD. Advances in Neural Information Processing Systems (NeurIPS), 2024. +Jinshuo Dong, Aaron Roth, and Weijie J Su. Gaussian differential privacy. Journal of the Royal Statistical Society Series B: Statistical Methodology, 2022. +Ilya Mironov. Rényi differential privacy. In Computer Security Foundations Symposium (CSF). IEEE, 2017. +Bogdan Kulynych, Juan Felipe Gomez, Georgios Kaissis, Flavio du Pin Calmon, and Carmela Troncoso. Attack-aware noise calibration for differential privacy. Advances in Neural Information Processing Systems (NeurIPS), 2024. +Larry Wasserman and Shuheng Zhou. A statistical framework for differential privacy. Journal of the American Statistical Association, 2010. +Daniel Kifer, John M Abowd, Robert Ashmead, Ryan Cumings-Menon, Philip Leclerc, Ashwin Machanavajjhala, William Sexton, and Pavel Zhuravlev. Bayesian and frequentist semantics for common variations of differential privacy: Applications to the 2020 census. arXiv preprint arXiv:2209.03310, 2022. +Georgios Kaissis, Stefan Kolek, Borja Balle, Jamie Hayes, and Daniel Rueckert. Beyond the calibration point: Mechanism comparison in differential privacy. In International Conference on Machine Learning, pages 22840-22860. PMLR, 2024. +Tobias Leemann, Martin Pawelczyk, and Gjergji Kasneci. Gaussian membership inference privacy. Advances in Neural Information Processing Systems (NeurIPS), 2024. +Article 29 Data Protection Working Party. Opinion 05/2014 on anonymisation techniques. Technical Report WP216, Article 29 Data Protection Working Party, 2014. +Patricia Guerra-Balboa, Annika Sauer, and Thorsten Strufe. Analysis and measurement of attack resilience of differential privacy. In Workshop on Privacy in the Electronic Society, 2023. +Edith Cohen, Haim Kaplan, Yishay Mansour, Shay Moran, Kobbi Nissim, Uri Stemmer, and Eliad Tsfadia. Data reconstruction: When you see it and when you don't. In 16th Innovations in Theoretical Computer Science Conference (ITCS 2025), pages 39-1. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2025. +Chuan Guo, Alexandre Sablayrolles, and Maziar Sanjabi. Analyzing privacy leakage in machine learning via multiple hypothesis testing: A lesson from fano. In International Conference on Machine Learning. PMLR, 2023. +Konstantinos Chatzikokolakis, Giovanni Cherubin, Catuscia Palamidessi, and Carmela Troncoso. Bayes security: A not so average metric. In Computer Security Foundations Symposium (CSF), 2023. +Martin Abadi, Andy Chu, Ian Goodfellow, H Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In ACM SIGSAC conference on computer and communications security, 2016. + +Borja Balle, Gilles Barthe, and Marco Gaboardi. Privacy amplification by subsampling: Tight analyses via couplings and divergences. Advances in Neural Information Processing Systems (NeurIPS), 2018. +Milad Nasr, Jamie Hayes, Thomas Steinke, Borja Balle, Florian Tramér, Matthew Jagielski, Nicholas Carlini, and Andreas Terzis. Tight auditing of differentially private machine learning. In 32nd USENIX Security Symposium (USENIX Security 23), 2023. +Vadym Doroshenko, Badih Ghazi, Pritish Kamath, Ravi Kumar, and Pasin Manurangsi. Connect the dots: Tighter discrete approximations of privacy loss distributions. Proceedings on Privacy Enhancing Technologies, 2022. +Khaled El Emam. Risk-based de-identification of health data. IEEE Security & Privacy, 2010. +Shai Shalev-Shwartz, Ohad Shamir, Nathan Srebro, and Karthik Sridharan. Learnability, stability and uniform convergence. The Journal of Machine Learning Research, 11:2635-2670, 2010. +Vitaly Feldman. Does learning require memorization? a short tale about a long tail. corr abs/1906.05271 (2019). arXiv preprint arXiv:1906.05271, 2019. +Chiyuan Zhang, Daphne Ippolito, Katherine Lee, Matthew Jagielski, Florian Tramèr, and Nicholas Carlini. Counterfactual memorization in neural language models. Advances in Neural Information Processing Systems (NeurIPS), 2023. +Cynthia Dwork and Guy N Rothblum. Concentrated differential privacy. arXiv preprint arXiv:1603.01887, 2016. +Mark Bun and Thomas Steinke. Concentrated differential privacy: Simplifications, extensions, and lower bounds. In Theory of cryptography conference, 2016. +Marco Gabordi, Michael Hay, and Salil Vadhan. A programming framework for opendp. Manuscript, May, 2020. +Nicholas Carlini, Daphne Ippolito, Matthew Jagielski, Katherine Lee, Florian Tramer, and Chiyuan Zhang. Quantifying memorization across neural language models. arXiv preprint arXiv:2202.07646, 2022. +Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, 2013. +Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 2019. +Da Yu, Saurabh Naik, Arturs Backurs, Sivakanth Gopi, Huseyin A Inan, Gautam Kamath, Janardhan Kulkarni, Yin Tat Lee, Andre Manoel, Lukas Wutschitz, et al. Differentially private fine-tuning of language models. In International Conference on Learning Representations, 2021. +Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, 2009. +John M Abowd, Robert Ashmead, Ryan Cumings-Menon, Simson Garfinkel, Micah Heineck, Christine Heiss, Robert Johns, Daniel Kifer, Philip Leclerc, Ashwin Machanavajjhala, et al. The 2020 census disclosure avoidance system topdown algorithm. *Harvard Data Science Review*, 2, 2022. +Buxin Su, Weijie J Su, and Chendi Wang. The 2020 United States Decennial Census is more private than you (might) think. arXiv preprint arXiv:2410.09296, 2024. +Giovanni Cherubin, Boris Köpf, Andrew Paverd, Shruti Tople, Lukas Wutschitz, and Santiago Zanella-Béguelin. Closed-form bounds for DP-SGD against record-level inference attacks. In 33rd USENIX Security Symposium (USENIX Security 24), pages 4819-4836, 2024. + +Georgios Kaissis, Jamie Hayes, Alexander Ziller, and Daniel Rueckert. Bounding data reconstruction attacks with the hypothesis testing interpretation of differential privacy. arXiv preprint arXiv:2307.03928, 2023a. +Eugene Bagdasaryan, Omid Poursaeed, and Vitaly Shmatikov. Differential privacy has disparate impact on model accuracy. Advances in Neural Information Processing Systems (NeurIPS), 2019. +Bogdan Kulynych, Hsiang Hsu, Carmela Troncoso, and Flavio P Calmon. Arbitrary decisions are a hidden cost of differentially private training. In Proceedings of the 2023 ACM Conference on Fairness, Accountability, and Transparency, 2023. +Georgios Kaissis, Alexander Ziller, Stefan Kolek, Anneliese Riess, and Daniel Rueckert. Optimal privacy guarantees for a relaxed threat model: Addressing sub-optimal adversaries in differentially private machine learning. Advances in Neural Information Processing Systems (NeurIPS), 2023b. +Marika Swanberg, Meenatchi Sundaram Muthu Selva Annamalai, Jamie Hayes, Borja Balle, and Adam Smith. Beyond the worst case: Extending differential privacy guarantees to realistic adversaries. arXiv preprint arXiv:2507.08158, 2025. +Hannah Brown, Katherine Lee, Fatemehsadat Mireshghallah, Reza Shokri, and Florian Tramèr. What does it mean for a language model to preserve privacy? In ACM conference on fairness, accountability, and transparency, 2022. +Amer Sinha, Thomas Mesnard, Ryan McKenna, Daogao Liu, Christopher A. Choquette-Choo, Yangsibo Huang, Da Yu, George Kaissis, Zachary Charles, Ruibo Liu, Lynn Chua, Pritish Kamath, Pasin Manurangsi, Steve He, Chiyuan Zhang, Badih Ghazi, Borja De Balle Pigem, Prem Eruvbetine, Tris Warkentin, Armand Joulin, and Ravi Kumar. VaultGemma: A differentially private Gemma model, 2025. +Mary Anne Smart, Dhruv Sood, and Kristen Vaccaro. Understanding risks of privacy theater with differential privacy. Proceedings of the ACM on Human-Computer Interaction, 6(CSCW2):1-24, 2022. +Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Proceedings of the Theory of Cryptography Conference, 2006. +Milad Nasr, Shuang Songi, Abhradeep Thakurta, Nicolas Papernot, and Nicholas Carlini. Adversary instantiation: Lower bounds for differentially private machine learning. In IEEE Symposium on security and privacy (SP), 2021. +Weijie J Su. A statistical viewpoint on differential privacy: Hypothesis testing, representation, and blackwell's theorem. Annual Review of Statistics and Its Application, 12, 2024. +Quan Geng and Pramod Viswanath. Optimal noise adding mechanisms for approximate differential privacy. IEEE Transactions on Information Theory, 2015. +Raef Bassily, Kobbi Nissim, Adam Smith, Thomas Steinke, Uri Stemmer, and Jonathan Ullman. Algorithmic stability for adaptive data analysis. In Proceedings of the annual ACM symposium on Theory of Computing, 2016. +Bogdan Kulynych, Mohammad Yaghini, Giovanni Cherubin, Michael Veale, and Carmela Troncoso. Disparate vulnerability to membership inference attacks. Proceedings on Privacy Enhancing Technologies, 2022a. +Elena Ghazi and Ibrahim Issa. Total variation with differential privacy: Tighter composition and asymptotic bounds. In IEEE International Symposium on Information Theory (ISIT), 2023. +Rachel Cummings, Shlomi Hod, Jayshree Sarathy, and Marika Swanberg. Attaxonomy: Unpacking differential privacy guarantees against practical adversaries. arXiv preprint arXiv:2405.01716, 2024. +Alexandra Wood, Micah Altman, Aaron Bembenek, Mark Bun, Marco Gaboardi, James Honaker, Kobbi Nissim, David R O'Brien, Thomas Steinke, and Salil Vadhan. Differential privacy: A primer for a non-technical audience. Vand. J. Ent. & Tech. L., 2018. + +Zeki Kazan and Jerome Reiter. Prior-itizing privacy: A bayesian approach to setting the privacy budget in differential privacy. Advances in Neural Information Processing Systems (NeurIPS), 2024. +Bargav Jayaraman, Lingxiao Wang, Katherine Knipmeyer, Quanquan Gu, and David Evans. Revisiting membership inference under realistic assumptions. Proceedings on Privacy Enhancing Technologies, 2021. +Igal Sason and Sergio Verdú. $f$ -divergence inequalities. IEEE Transactions on Information Theory, 62(11):5973-6006, 2016. +Bogdan Kulynych, Yao-Yuan Yang, Yaodong Yu, Jaroslaw Blasiok, and Preetum Nakkiran. What you see is what you get: Principled deep learning via distributional generalization. Advances in Neural Information Processing Systems (NeurIPS), 2022b. +Jean Louis Raisaro, Gwangbae Choi, Sylvain Pradervand, Raphael Colsenet, Nathalie Jacquemont, Nicolas Rosat, Vincent Mooser, and Jean-Pierre Hubaux. Protecting privacy and security of genomic data in i2b2 with homomorphic encryption and differential privacy. IEEE/ACM transactions on computational biology and bioinformatics, 15(5):1413-1426, 2018. +Florian Tramer and Dan Boneh. Differentially private learning needs better features (or much more data). In International Conference on Learning Representations, 2021. +Edward J Hu, Phillip Wallis, Zeyuan Allen-Zhu, Yanzhi Li, Shean Wang, Lu Wang, Weizhu Chen, et al. Lora: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2021. +Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, 2018. +Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems (NeurIPS), 2019. +Ashkan Yousefpour, Igor Shilov, Alexandre Sablayrolles, Davide Testuggine, Karthik Prasad, Mani Malek, John Nguyen, Sayan Ghosh, Akash Bharadwaj, Jessica Zhao, Graham Cormode, and Ilya Mironov. Opacus: User-friendly differential privacy library in PyTorch. arXiv preprint arXiv:2109.12298, 2021. +Charles R. Harris, K. Jarrod Millman, Stéfan J. van der Walt, Ralf Gommers, Pauli Virtanen, David Cournapeau, Eric Wieser, Julian Taylor, Sebastian Berg, Nathaniel J. Smith, Robert Kern, Matti Picus, Stephan Hoyer, Marten H. van Kerkwijk, Matthew Brett, Allan Haldane, Jaime Fernández del Río, Mark Wiebe, Pearu Peterson, Pierre Gérard-Marchant, Kevin Sheppard, Tyler Reddy, Warren Weckesser, Hameer Abbasi, Christoph Gohlke, and Travis E. Oliphant. Array programming with NumPy. Nature, 2020. +The pandas development team. pandas-dev/pandas: Pandas, 2020. +Thomas Kluyver, Benjamin Ragan-Kelley, Fernando Pérez, Brian Granger, Matthias Bussonnier, Jonathan Frederic, Kyle Kelley, Jessica Hamrick, Jason Grout, Sylvain Corlay, Paul Ivanov, Damián Avila, Sofia Abdalla, Carol Willing, and Jupyter development team. Jupyter notebooks - a publishing format for reproducible computational workflows. In *Positioning and Power in Academic Publishing: Players, Agents and Agendas*. IOS Press, 2016. +Michael L. Waskom. seaborn: statistical data visualization. Journal of Open Source Software, 6(60), 2021. doi: 10.21105/joss.03021. URL https://doi.org/10.21105/joss.03021. + +# A Extended Background + +This section presents a more extensive overview of the background. + +# A.1 Differential Privacy and its Variants + +Classical differential privacy. Differential privacy (DP) is a formal notion of privacy applicable to releases of statistical information or machine learning models: + +Definition A.1 (Dwork et al., 2006). A mechanism $M: 2^{\mathbb{D}} \to \Theta$ satisfies $(\varepsilon, \delta)$ -DP if for any $S \simeq S'$ we have $\mathsf{E}_{e^{\varepsilon}}(P \parallel Q) \leq \delta$ , where $P$ and $Q$ are the respective probability distributions of $M(S)$ and $M(S')$ , and the hockey-stick divergence between probability distributions is defined as follows: + +$$ +\mathsf {E} _ {\gamma} (P \| Q) \triangleq \sup _ {E \subseteq \Theta} P (E) - \gamma Q (E). \tag {14} +$$ + +We refer to the case when $\delta = 0$ as pure DP. + +Realistic DP mechanisms satisfy a potentially infinite collection of different $(\varepsilon, \delta)$ -DP guarantees. To analyze this collection, we make use of a notion of the privacy profile: + +Definition A.2 (Balle et al., 2018). A mechanism $M(\cdot)$ has a privacy profile $\delta(\varepsilon)$ if for every $\varepsilon \in \mathbb{R}$ , it satisfies $(\varepsilon, \delta(\varepsilon)) - DP$ . + +Strong-adversary membership inference. DP can be completely characterised via a constraint on the success rate of membership inference attacks, which aim to determine whether a given record was part of the input dataset $S$ based on the output of $M(S)$ . Formally, given a sensitive record $z \in \mathbb{D}$ , and a partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , consider a probability distribution of the algorithm's outputs when the record is not part of the dataset, $P(E) \triangleq \operatorname*{Pr}_{\theta \sim M(\bar{S})}[\theta \in E]$ , and the respective distribution when the record is present in the data, $Q(E) \triangleq \operatorname*{Pr}_{\theta \sim M(\bar{S} \cup \{z\})}[\theta \in E]$ . In a strong-adversary membership inference attack (see, e.g., Nasr et al., 2021), given knowledge of the mechanism $M(\cdot)$ , its output $\theta$ , a target record $z$ , and a partial dataset $\bar{S}$ , the adversary aims to determine whether the record was part of the training dataset used to produce $\theta$ or not. In other words, the attack is a hypothesis test which aims to distinguish between two hypotheses: + +$$ +H _ {0}: \theta \sim P, \text {a n d} H _ {1}: \theta \sim Q. \tag {15} +$$ + +"Strong" refers to the fact that the adversary knows all of the partial dataset $\bar{S}$ . We discuss this threat model further in Section 3.1. + +Differential privacy as hypothesis testing. For a given hypothesis test (equivalent to a membership inference attack) $\phi : \Theta \to \{0,1\}$ which returns 0 when the guess is $H_0$ , and 1 when the guess is $H_1$ , we can quantify the adversary's success by characterizing the error rates of the test (Wasserman and Zhou, 2010; Kairouz et al., 2015; Dong et al., 2022): + +$$ +\alpha_ {\phi} \triangleq \mathbb {E} _ {P} [ \phi ], \quad \beta_ {\phi} \triangleq 1 - \mathbb {E} _ {Q} [ \phi ], \tag {16} +$$ + +where $\alpha_{\phi}$ and $\beta_{\phi}$ are the false positive rate (FPR) and false negative rate (FNR) respectively. + +For any desired FPR level $\alpha \in [0,1]$ , the Neyman-Pearson lemma guarantees that there exists an optimal test $\phi^{*}$ which achieves the lowest possible FNR $\beta$ . We can thus characterize the attack setting by a trade-off curve, a function which shows the lowest FNR achieved by the most powerful level $\alpha$ test for any level of FPR $\alpha \in [0,1]$ : + +$$ +T (P, Q) (\alpha) \triangleq \inf _ {\phi : \Theta \rightarrow [ 0, 1 ]} \left\{\beta_ {\phi} \mid \alpha_ {\phi} \leq \alpha \right\} \tag {17} +$$ + +A common way to summarize the success of the optimal strong-adversary membership inference attack (SMIA) is via its advantage, the difference between its TPR and FPR (Yeom et al., 2018): + +$$ +\operatorname{adv}_{\mathrm{SMIA}}\triangleq \sup_{\substack{\phi : \Theta \to [0,1]}}1 - \beta_{\phi} - \alpha_{\phi}. +$$ + +We can now define $f$ -DP, a version of DP which centers the hypothesis-testing interpretation: + +Definition A.3 (Dong et al., 2022). A mechanism $M(\cdot)$ satisfies $f$ -Differential Privacy ( $f$ -DP) if, for any pair $S \simeq S'$ , the trade-off curve of the strong membership inference test is bounded: + +$$ +T (M (S), M \left(S ^ {\prime}\right)) (\alpha) \geq f (\alpha), \quad \forall \alpha \in [ 0, 1 ], \tag {18} +$$ + +where $f:[0,1] \to [0,1]$ is a given convex, continuous, non-increasing function such that $f(\alpha) \leq 1 - \alpha$ for all $\alpha \in [0,1]$ . + +Note that $(\varepsilon, \delta)$ -DP is a special case of $f$ -DP. Specifically, a mechanism is $(\varepsilon, \delta)$ -DP if and only if it satisfies $f$ -DP with the following $f(\alpha)$ : + +$$ +f (\alpha) = \max \{0, 1 - \delta - e ^ {\varepsilon} \alpha , e ^ {- \varepsilon} (1 - \delta - \alpha) \}. \tag {19} +$$ + +We make use of the following equivalent representation of $f$ -DP: + +Lemma 2.1. An algorithm $M: 2^{\mathbb{D}} \to \Theta$ satisfies $f$ -DP iff for any measurable $E \subseteq \Theta$ and $S \simeq S'$ : + +$$ +\Pr [ M (S) \in E ] \leq 1 - f (\Pr [ M (S ^ {\prime}) \in E ]). \tag {3} +$$ + +This form is key to deriving our results in a streamlined way. + +A useful property of $f$ -DP is post-processing: if $M(\cdot)$ satisfies $f$ -DP, so does $g \circ M$ for any deterministic or randomized mapping $g(\cdot)$ . In other words, post-processing the results of an $f$ -DP mechanism cannot decrease its privacy or, equivalently, cannot increase the success of the aforementioned decision problem. This is a consequence of the Blackwell-Sherman-Stein theorem (Dong et al., 2022; Kaissis et al., 2024; Su, 2024). + +Total-variation privacy. We also make use of the notion of total variation (TV) privacy: + +Definition A.4. A mechanism $M: 2^{\mathbb{D}} \to \Theta$ satisfies $\eta$ -TV privacy if it satisfies $(0, \eta)$ -DP. Equivalently, the total variation distance, a special case of $\mathsf{E}_{\gamma}$ with $\gamma = 1$ , is bounded for all $S \simeq S'$ : + +$$ +\mathsf {E} _ {1} (P \| Q) = \sup _ {E \subseteq \Theta} P (E) - Q (E) \leq \eta , \tag {20} +$$ + +where $P$ and $Q$ are the respective probability distributions of $M(S)$ and $M(S')$ . + +TV privacy has been extensively studied under equivalent forms and different names in literature (Geng and Viswanath, 2015; Bassily et al., 2016; Kulynych et al., 2022a; Chatzikokolakis et al., 2023; Ghazi and Issa, 2023). Although TV privacy is a weak notion of privacy on its own (Vadhan, 2017), any DP mechanism satisfies TV privacy for some $\eta$ : + +Proposition A.1. The following statements hold: + +$(\varepsilon, \delta)$ -DP implies $\eta$ -TV privacy with $\eta = \frac{e^{\varepsilon} - 1 + 2\delta}{e^{\varepsilon} + 1}$ (Kairouz et al., 2015). +- $f$ -DP implies $\eta$ -TV privacy with $\eta = \max_{\alpha \in [0,1]} (1 - f(\alpha) - \alpha)$ (Kaissis et al., 2024). + +Privacy via Rényi divergence. Another notion we use is Rényi DP (RDP) (Mironov, 2017). + +Definition A.5 (Mironov, 2017). A mechanism $M(\cdot)$ satisfies $(t,\varepsilon)$ -RDP iff for all $S\simeq S'$ : + +$$ +D _ {t} (P \| Q) \leq \varepsilon , \tag {21} +$$ + +where $P$ and $Q$ are the respective probability distributions of $M(S)$ and $M(S')$ , and $D_t(P \parallel Q)$ is the Rényi divergence of order $t \geq 1$ : + +$$ +D _ {t} (P \parallel Q) \triangleq \frac {1}{t - 1} \log \mathbb {E} _ {o \sim Q} \left(\frac {P (o)}{Q (o)}\right) ^ {t}, +$$ + +where the case of $t = 1$ is defined by continuous extension. + +The mechanism satisfies $\rho$ -zCDP (Bun and Steinke, 2016; Dwork and Rothblum, 2016) for $\rho \geq 0$ if it satisfies $(t,\rho t)$ -RDP for every $t \geq 1$ . + +# A.2 Predicate Singling Out + +In this section, we provide a brief overview of the notion of predicate singling out security. + +Predicate singling out (PSO) risk, which is defined in Section 3.2, is a privacy concept introduced by Cohen and Nissim (2020) to rigorously interpret the "singing out" criterion mentioned in the EU GDPR (General Data Protection Regulation). Their goal was to bridge the gap between legal expectations of data anonymity and technical guarantees provided by data anonymization mechanisms. At a high level, in the PSO threat model, the adversary uses the output of a data release mechanism $\theta = M(S)$ to find a predicate $p$ that matches exactly one individual (row) in the original dataset $S$ with significantly greater success than would be expected by chance. In this context, a predicate represents a set of attribute values that characterize a person, e.g., "speaks Dutch $\wedge$ vegan $\wedge$ concert pianist $\wedge$ born March 15." If a predicate matches only one individual in a dataset, that individual is singled out. Moreover, such a predicate is unlikely to identify a person by random chance. Formally, the goal of the adversary is to find a predicate $p$ such that $\sum_{z\in S}p(z) = 1$ . + +Unlike differential privacy, which operates under a strong threat model to provide formal "upper bounds" to more realistic notions of privacy, PSO takes the alternate approach of intentionally being a necessary but not sufficient condition for privacy, i.e. a "lower bound" to realistic notions of privacy. The goal of the original paper was to make claims such as "if you do not satisfy PSO security, you are not GDPR compliant". Hence, Cohen and Nissim consider the i.i.d. setting: the dataset $S$ is sampled i.i.d. from a distribution $P$ known to the adversary. Cohen and Nissim reason about this adversary by considering the baseline (before seeing $M(S)$ ) and success probability (after seeing $M(S)$ ) of the adversary assuming the adversary's predicate in both cases has a fixed weight $w$ , where weight is defined as $w = \mathbb{E}_P[p]$ , the probability that the predicate $p$ evaluates to 1 on a random sample from $P$ . + +In this setting, the optimal baseline is the random guessing strategy: before observing the output of the mechanism $M(S)$ , the adversary constructs a predicate $p$ that has a small weight $w$ . Intuitively, predicates such as "woman $\wedge$ over 60 year old" have high weight and predicates such as the Dutch vegan pianist from the previous paragraph have low weight. The best the adversary can do as a baseline is to pick a predicate with weight $w$ and hope that they single out. This has a probability of base $= nw(1 - w)^{n-1}$ for a dataset of size $n$ . + +# A.3 Previous Bounds on Privacy Risk Notions + +PSO Security Assuming a fixed weight $w$ and approximate DP, Cohen and Nissim (2020) showed that the optimal strategy for PSO can be upper bounded as a function of the baseline probability: + +Theorem A.1 (Cohen and Nissim, 2020). Suppose that $M: \mathbb{D}^n \to \Theta$ satisfies $(\varepsilon, \delta)$ -DP w.r.t. replace-one neighbourhood relation. Then, for any given $n > 1$ , data distribution $P$ over $\mathbb{D}$ , and an adversary $\mathcal{A}_{n,M,P,w}: \Theta \to \mathbb{Q}_P$ with $\mathbb{Q}_P \triangleq \{p \mid p: \mathbb{D} \to \{0,1\}, \mathbb{E}_P[p] \leq w\}$ for given $w \in [0,1/n]$ , we have: + +$$ +\begin{array}{l} \operatorname {s u c c} _ {P S O} (n, M, P, w; \mathcal {A}) \leq n \left(e ^ {\varepsilon} w + \delta\right) (22) \\ = e ^ {\varepsilon} \cdot \frac {\operatorname {b a s e} _ {P S O} (n , P , w)}{(1 - w) ^ {n - 1}} + n \delta . (23) \\ \end{array} +$$ + +This is the bound we use in Fig. 2. + +Reconstruction Robustness Next, we review the state-of-the-art results for bounding reconstruction robustness. We start with the Renyi DP bound due to Balle et al. (2022): + +Theorem A.2 (Balle et al., 2022). Suppose that $M(\cdot)$ satisfies $(t, \varepsilon)$ -RDP w.r.t. either add-remove or replace-one relation. It holds that: + +$$ +\operatorname {s u c c} _ {[ S R R ]} \leq \left(\operatorname {b a s e} _ {[ S R R ]} \cdot e ^ {\varepsilon}\right) ^ {\frac {t - 1}{t}}. \tag {24} +$$ + +Applying the above result to a $\rho$ -zCDP mechanism and optimizing $t$ to minimize the upper bound yields the following: + +Corollary A.1 (Balle et al., 2022). Suppose that $M(\cdot)$ satisfies $\rho$ -zCDP w.r.t. either add-remove or replace-one relation. It holds that: + +$$ +\operatorname {s u c c} _ {[ S R R ]} \leq \exp \left\{- \left(\sqrt {\log \frac {1}{\operatorname {b a s e} _ {[ S R R ]}}} - \sqrt {\rho}\right) ^ {2} \right\}. \tag {25} +$$ + +Corollary A.1 is the bound on SRR used in Figs. 3, 4, 5 and 9. We can also apply Theorem A.2 to a mechanism that satisfies a continuum of RDP guarantees and minimize over the upper bound: + +Corollary A.2. Suppose that $M(\cdot)$ satisfies $(t, \varepsilon(t))$ -RDP for all $t > 1$ w.r.t. either add-remove or replace-one relation. It holds that: + +$$ +\operatorname {s u c c} _ {[ S R R ]} \leq \min _ {t > 1} \left\{\left(\operatorname {b a s e} _ {[ S R R ]} \cdot e ^ {\varepsilon (t)}\right) ^ {\frac {t - 1}{t}} \right\}. \tag {26} +$$ + +We use Corollary A.2 in Fig. 1 as the prior method that we compare our $f$ -DP bound to. + +# B Additional Discussion on Related Work + +Related unification efforts. Recently, Cohen et al. (2025) proposed a unifying notion of risk called narcissus resiliency, which averages over dataset sampling. The notions of risk we consider under our unifying framework are all tailored to the strong threat model, which is dataset-specific. We additionally provide bounds on Narcissus resiliency using $f$ -DP in Appendix F. Salem et al. (2023); Cummings et al. (2024) provided taxonomies and reductions between risk notions. Our focus is providing analysis using $f$ -DP, as opposed to a taxonomization. + +Bayesian semantics of DP. An alternative way to analyze and interpret risk in DP is a Bayesian posterior-to-prior analysis (see, e.g., Wood et al., 2018; Kifer et al., 2022; Kazan and Reiter, 2024). We focus on security-based literature instead, where risk is analyzed from the point of view of relevant adversarial models. See Kifer et al. (2022); Kaissis et al. (2024) for connections between the Bayesian view and $f$ -DP. + +Attack-aware noise calibration. Kulynych et al. (2024) introduced attack-aware noise calibration, the idea of calibrating DP algorithms to a given level of operational attack risk as opposed to the standard practice of calibrating to a given pair of $(\varepsilon, \delta)$ parameters. They evaluated this approach for the use case of calibrating noise to a given level of membership inference risk. One of the applications of our result is that it extends the toolbox of attack-aware calibration to further attack risks, thus enabling practitioners to calibrate DP algorithms to notions of risk beyond membership inference, which often appear in data protection guidelines (see Section 1). + +# C Omitted Proofs + +# C.1 Additional and Auxiliary Results + +We start with a proof of a useful equivalent form of $f$ -DP. + +Lemma 2.1. An algorithm $M: 2^{\mathbb{D}} \to \Theta$ satisfies $f$ -DP iff for any measurable $E \subseteq \Theta$ and $S \simeq S'$ : + +$$ +\Pr [ M (S) \in E ] \leq 1 - f (\Pr [ M (S ^ {\prime}) \in E ]). \tag {3} +$$ + +Proof. Denote by $P$ the distribution of $M(S)$ and by $Q$ the distribution of $M(S')$ . + +$\Longrightarrow$ Suppose that the algorithm satisfies $f$ -DP. For any $\alpha \in [0,1]$ , we can find $\phi : \mathbb{D} \to [0,1]$ such that $\mathbb{E}_Q[\phi] = \alpha_\phi \leq \alpha$ . For this $\alpha$ , by the definition of $f$ -DP we have: + +$$ +f (\alpha_ {\phi}) \leq f (\alpha) \leq \beta_ {\phi} = 1 - \mathbb {E} _ {P} [ \phi ] = 1 - P (E), \tag {27} +$$ + +where $E = \{\theta \in \Theta \mid \phi(\theta) = 1\}$ . Plugging $\alpha_{\phi} = Q(E)$ into Eq. (27), we get: + +$$ +f (Q (E)) \leq 1 - P (E), +$$ + +from which we immediately get the sought form. + +$\Longleftarrow$ Suppose that Eq. (3) holds for any measurable $E \subseteq \Theta$ and any $S \simeq S'$ . Then, for any $\phi: \mathbb{D} \to [0,1]$ and $E = \{\theta \in \Theta \mid \phi(\theta) = 1\}$ : + +$$ +\Pr [ M (S) \in E ] = \mathbb {E} _ {P} [ \phi ] \leq 1 - f (\Pr [ M (S ^ {\prime}) \in E ]) = 1 - f (\mathbb {E} _ {Q} [ \phi ]). +$$ + +As $\alpha_{\phi} = \mathbb{E}_Q[\phi ]$ and $\beta_{\phi} = 1 - \mathbb{E}_{P}[\phi ]$ , we have: + +$$ +1 - \beta_ {\phi} \leq 1 - f (\alpha_ {\phi}), +$$ + +which implies $f(\alpha_{\phi})\leq \beta_{\phi}$ , thus Eq. (18). + +To show the main result on the unified bounds, we make use of the following elementary lemmas. First, due to the properties of the trade-off function $f$ , we can push the expectation inside of $f(\cdot)$ : + +Lemma C.1. Suppose that $f$ is a valid trade-off function according to Definition A.3. For any random variable $W$ over $[0,1]$ , we have: + +$$ +\mathbb {E} [ 1 - f (W) ] \leq 1 - f (\mathbb {E} W). \tag {28} +$$ + +Proof. By assumption, $1 - f$ is concave and increasing. The result immediately follows from applying the linearity of expectation and Jensen's inequality. + +Second, we can suprime an expectation inside of $f(\cdot)$ : + +Lemma C.2. Suppose that $f$ is a valid trade-off function according to Definition A.3. For any random variable $V$ taking values in a set $\mathbb{V}$ , and any bounded function $g: \mathbb{V} \to [0,1]$ , we have: + +$$ +1 - f (\mathbb {E} g (V)) \leq 1 - f \left(\sup _ {v \in \mathbb {V}} g (v)\right). \tag {29} +$$ + +Proof. Observe that $\mathbb{E}g(V)\leq \sup_{v\in \mathbb{V}}g(v)$ . We get the result as $1 - f$ is increasing. + +![](images/ad1d1790cedcfc556d1e826a4f1fc8a0916482a4bfa979251901ff602c729623.jpg) + +Next, we can show a result which can be seen as a version of a risk bound for on-average baselines. + +Lemma C.3. Suppose that $M: 2^{\mathbb{D}} \to \Theta$ satisfies $f - DP$ w.r.t add-remove relation. Then, for any bounded function $q: \mathbb{D} \times \Theta \to [0,1]$ , any partial dataset $\bar{S} \in \mathbb{D}^n$ , and any probability distribution $P$ over $\mathbb{D}$ , we have: + +$$ +\mathbb {E} _ {z \sim P} \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} [ q (z; \theta) ] \leq 1 - f \left(\mathbb {E} _ {z \sim P} \mathbb {E} _ {\theta \sim M (\bar {S})} [ q (z; \theta) ]\right). \tag {30} +$$ + +Moreover, if the $M(\cdot)$ satisfies $f$ -DP w.r.t. replace-one relation, we have for any $z' \in \mathbb{D}$ : + +$$ +\mathbb {E} _ {z \sim P} \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} [ q (z; \theta) ] \leq 1 - f \left(\mathbb {E} _ {z \sim P} \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} [ q (z; \theta) ]\right). \tag {31} +$$ + +Proof. Fix any $z \in \mathbb{D}$ . By the form of $f$ -DP in Lemma 2.1 and the post-processing property of $f$ -DP, we have: + +$$ +\mathbb {E} _ {\theta \sim M (\bar {S})} q (z; \theta) \leq 1 - f \left(\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} q (z; \theta)\right) \tag {32} +$$ + +$$ +\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} q (z; \theta) \leq 1 - f \left(\mathbb {E} _ {\theta \sim M (\bar {S})} q (z; \theta)\right). +$$ + +By Lemma C.1, we have for any $g:\mathbb{D}\to [0,1]$ + +$$ +\mathbb {E} _ {z \sim P} [ 1 - f (g (z)) ] \leq 1 - f (\mathbb {E} _ {z \sim P} g (z)). \tag {33} +$$ + +We get the sought statement in Eq. (30) by taking the expectation over $z \sim P$ of both sides in Eq. (32) and applying Eq. (33). Finally, we get the result in Eq. (31) analogously from: + +$$ +\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} q (z; \theta) \leq 1 - f \left(\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} q (z; \theta)\right). +$$ + +![](images/8d50aa383124572fdb23a86bb6542f4e6e1ebb47326554fb6ad5a97e18b6c9c8.jpg) + +In Appendix E, we also derive an equivalent result with the semantics of standard generalization bounds. Moreover, in Appendix F, we show that this result immediately implies bounds on reconstruction robustness with an alternative on-average definition of baseline success rate (Guerra-Balboa et al., 2023). + +We can now show the general version of our risk bound: + +Lemma 3.1. Suppose that $M:2^{\mathbb{D}}\to \Theta$ satisfies $f$ -DP w.r.t. either add-remove or replace-one relation. Then, for any bounded function $q:\mathbb{D}\times \Theta \rightarrow [0,1]$ , any partial dataset $\bar{S}\in \mathbb{D}^{n - 1}$ with $n\geq 1$ , and any probability distribution $P$ over $\mathbb{D}$ , we have: + +$$ +\mathbb {E} _ {z \sim P} \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} [ q (z; \theta) ] \leq 1 - f \left(\sup _ {\theta \in \Theta} \mathbb {E} _ {z \sim P} [ q (z; \theta) ]\right). \tag {10} +$$ + +Proof. For add-remove relation, we immediately get the result by applying Lemma C.2 to the r.h.s. of Eq. (30), and taking $g(\theta) = \mathbb{E}_{z\sim P}q(z;\theta)$ : + +$$ +\mathbb {E} _ {z \sim P} \mathbb {E} _ {\theta \sim M (\bar {S})} q (z; \theta) = \mathbb {E} _ {\theta \sim M (\bar {S})} \mathbb {E} _ {z \sim P} q (z; \theta) = \mathbb {E} _ {\theta \sim M (\bar {S})} g (\theta). +$$ + +Analogously, for replace-one relation, we get the result by applying Lemma C.2 to the r.h.s. of Eq. (31) with: + +$$ +\mathbb {E} _ {z \sim P} \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} q (z; \theta) = \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} \mathbb {E} _ {z \sim P} q (z; \theta) = \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} g (\theta). +$$ + +![](images/8f28b2b7c7abd94f7b6530b1e97fa894330c2221f088865ad6a822680431f1f3.jpg) + +We proceed to showing that the difference between the success and the baseline is upper-bounded by TV privacy: + +Lemma C.4. Suppose that the algorithm $M: 2^{\mathbb{D}} \to \Theta$ satisfies $\eta$ -TV privacy w.r.t. either the add-remove or replace-one relation. Then, for any bounded function $q: \mathbb{D} \times \Theta \to [0,1]$ , any partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ with $n \geq 1$ , and any probability distribution $P$ over $\mathbb{D}$ , we have: + +$$ +\mathbb {E} _ {z \sim P} \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} [ q (z; \theta) ] - \sup _ {\theta \in \Theta} \mathbb {E} _ {z \sim P} [ q (z; \theta) ] \leq \eta . \tag {34} +$$ + +Proof. Let us assume that $M(\cdot)$ satisfies $f$ -DP for some valid trade-off curve $f$ . This is always the case under the assumption of the statement, as $\eta$ -TV implies $f(\alpha) = 1 - \alpha - \eta$ by Eq. (2). Denoting by $\mathrm{succ} = \mathbb{E}_{z \sim P} \mathbb{E}_{\theta \sim M(\bar{S} \cup \{z\})}[q(z; \theta)]$ and base $= \sup_{\theta \in \Theta} \mathbb{E}_{z \sim P}[q(z; \theta)]$ , recall that by Lemma 3.1: + +$$ +\operatorname {s u c c} - \operatorname {b a s e} \leq 1 - f (\operatorname {b a s e}) - \operatorname {b a s e} +$$ + +To make the r.h.s. independent of the baseline, let us maximize it over all possible baseline values: + +$$ +1 - f (\alpha) - \alpha \leq \max _ {\alpha \in [ 0, 1 ]} 1 - f (\alpha) - \alpha \leq \eta , +$$ + +where the last inequality is by Proposition A.1. Therefore, $\operatorname{succ} - \operatorname{base} \leq \eta$ , which is exactly the sought result. + +![](images/98edc5117911e8ea3e9867e9df5d63a7a96bb7088da067235ff1da1ae34fad6c.jpg) + +# C.2 Formal Versions of the Simplified Statements in the Main Body + +We can now formally re-state Theorems 3.1 and 3.3: + +Theorem C.1 (Formal version of Theorem 3.1). Suppose that the algorithm $M:2^{\mathbb{D}}\to \Theta$ satisfies $f - DP$ w.r.t. either the add-remove or replace-one relation. Then, the following hold: + +- $SPSO$ . For any $n \geq 1, k \geq 2$ , partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , data distribution $P$ over a candidate set $\mathbb{W} \subseteq \mathbb{D}$ of size $|\mathbb{W}| = k$ , weight $w \in [0,1]$ , and any adversary $\mathcal{A}_{M,\bar{S},P,w}: \Theta \to \mathbb{Q}_{\bar{S},P}$ for $\mathbb{Q}_{\bar{S},P} \subseteq \{p \mid p: \mathbb{D} \to \{0,1\}, \sum_{z' \in \bar{S}} p(z') = 0, \mathbb{E}_P[p] \leq w\}$ , we have: + +$$ +\operatorname {s u c c} _ {S P S O} (M, \bar {S}, P, w; \mathcal {A} _ {M, \bar {S}, P, w}) \leq 1 - f (\operatorname {b a s e} _ {S P S O} (\bar {S}, P, w)). +$$ + +- SRR. For any $n \geq 1$ , partial dataset $\bar{S} \in \mathbb{D}^{n - 1}$ , data distribution $P$ over $\mathbb{D}$ , loss function $\ell : \mathbb{D} \times \mathbb{D} \to \mathbb{R}$ , threshold $\gamma \in \mathbb{R}$ , and any adversary $A_{M, \bar{S}, P}: \Theta \to \mathbb{D}$ , we have: + +$$ +\operatorname {s u c c} _ {S R R} (M, \bar {S}, P; \mathcal {A} _ {M, \bar {S}, P}, \ell , \gamma) \leq 1 - f (\operatorname {b a s e} _ {S R R} (P; \ell , \gamma)). +$$ + +- SAI. For any $n \geq 1$ , set of attributes $\mathbb{A} = \{1, \dots, k\}$ , mapping from records to attributes $a : \mathbb{D} \to \mathbb{A}$ , partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , data distribution $P$ over $\mathbb{D}$ , and any adversary $A_{M, \bar{S}, P} : \Theta \to \mathbb{A}$ , we have: + +$$ +\operatorname {s u c c} _ {S A I} (M, \bar {S}, P; \mathcal {A} _ {M, \bar {S}, P}, a) \leq 1 - f (\operatorname {b a s e} _ {S A I} (P, a)). +$$ + +Proof. Consider the mechanism $\mathcal{A}(M(\cdot))$ , where we omit the subscripts for brevity. It satisfies $f$ -DP by post-processing. Let us denote the output space of this mechanism as $\mathbb{Y}$ , i.e., $\mathbb{Y} = \mathbb{Q}_{\bar{S},P}$ for SPSO, $\mathbb{Y} = \mathbb{D}$ for SRR, and $\mathbb{Y} = \mathbb{A}$ for SAI. The upper bounds follow immediately from Lemma 3.1 by taking an appropriate choice of $q:\mathbb{D}\times \mathbb{Y}\to [0,1]$ : + +$$ +S P S O: \quad q (z; p) = \mathbb {1} [ p (z) = 1 ] +$$ + +$$ +S R R: \quad q (z; \hat {z}) = \mathbb {1} [ \ell (z, \hat {z}) \leq \gamma ] \tag {35} +$$ + +$$ +S A I: \quad q (z; \hat {a}) = \mathbb {1} [ a (z) = \hat {a} ] +$$ + +Theorem C.2 (Formal version of Theorem 3.3). Suppose that the algorithm $M: 2^{\mathbb{D}} \to \Theta$ satisfies $\eta$ -TV privacy w.r.t. either the add-remove or replace-one relation. Then, the following hold: + +- $SPSO$ . For any $n \geq 1, k \geq 2$ , partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , data distribution $P$ over a candidate set $\mathbb{W} \subseteq \mathbb{D}$ of size $|\mathbb{W}| = k$ , weight $w \in [0,1]$ , and any adversary $\mathcal{A}_{M,\bar{S},P,w}: \Theta \to \mathbb{Q}_{\bar{S},P}$ for $\mathbb{Q}_{\bar{S},P} \subseteq \{p \mid p: \mathbb{D} \to \{0,1\}, \sum_{z' \in \bar{S}} p(z') = 0, \mathbb{E}_P[p] \leq w\}$ , we have: + +$$ +\operatorname {s u c c} _ {S P S O} (M, \bar {S}, P, w; \mathcal {A} _ {M, \bar {S}, P, w}) - \operatorname {b a s e} _ {S P S O} (\bar {S}, P, w) \leq \eta . +$$ + +- SRR. For any $n \geq 1$ , partial dataset $\bar{S} \in \mathbb{D}^{n - 1}$ , data distribution $P$ over $\mathbb{D}$ , loss function $\ell : \mathbb{D} \times \mathbb{D} \to \mathbb{R}$ , threshold $\gamma \in \mathbb{R}$ , and any adversary $\mathcal{A}_{M,\bar{S},P}: \Theta \to \mathbb{D}$ , we have: + +$$ +\operatorname {s u c c} _ {S R R} (M, \bar {S}, P; \mathcal {A} _ {M, \bar {S}, P}, \ell , \gamma) - \operatorname {b a s e} _ {S R R} (P; \ell , \gamma) \leq \eta . +$$ + +- SAI. For any $n \geq 1$ , set of attributes $\mathbb{A} = \{1, \dots, k\}$ , mapping from records to attributes $a : \mathbb{D} \to \mathbb{A}$ , partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , data distribution $P$ over $\mathbb{D}$ , and any adversary $\mathcal{A}_{M,\bar{S},P} : \Theta \to \mathbb{A}$ , we have: + +$$ +\operatorname {s u c c} _ {S A l} (M, \bar {S}, P; \mathcal {A} _ {M, \bar {S}, P}, a) - \operatorname {b a s e} _ {S A l} (P, a) \leq \eta . +$$ + +Proof. As before, we obtain the results by applying Lemma C.4 to a mechanism $\mathcal{A}(M(\cdot))$ , which satisfies $f$ -DP by post-processing, and an appropriately chosen $q(z;\cdot)$ in Eq. (35). + +# D Tighter Bounds under a Bernoulli Prior + +In this section, we provide a tighter bound than in Theorem 3.1 assuming a known form of the prior distribution $P$ over $\mathbb{D}$ , specifically, $z = z_{b}$ with $b\sim \mathrm{Bern}(\pi)$ for some $\pi \in [0,1]$ . This setting can model two threats: (1) SAI of a single binary attribute with a non-uniform prior (see, e.g., Guo et al., 2023) or, equivalently, SRR with only two points in the support of the prior distribution $P$ , and (2) SMIA with a non-uniform prior probability of membership (Jayaraman et al., 2021). + +We make use of the notion of the Bayes error of the attacker (Chatzikokolakis et al., 2023). + +Definition D.1 (Bayes error for $f$ -DP, Kaissis et al., 2024). Suppose that $f$ is a valid trade-off function according to Definition A.3. For any $\pi \in [0,1]$ , we define the Bayes error w.r.t. the prior $\pi$ as follows: + +$$ +R_{f}(\pi)\triangleq \min_{\alpha \in [0,1]}\bigl(\pi \alpha +(1 - \pi)f(\alpha)\bigr). +$$ + +Given a numeric representation of a trade-off curve $f$ , Bayes error can be easily computed numerically by, e.g., grid search over a grid of $\alpha$ values. Additionally, we show an elegant way to obtain the Bayes error directly from the privacy profile $\delta(\varepsilon)$ , which was previously unknown in the context of DP: + +Proposition D.1 (Based on Sason and Verdu, 2016, Eq. (421)). Suppose that a mechanism $M(\cdot)$ satisfies $f$ -DP and has an associated privacy profile $\delta(\varepsilon)$ w.r.t. any neighbourhood relation. Then, the Bayes error is bounded: + +$$ +R _ {f} (\pi) \geq (1 - \pi) \cdot \left[ 1 - \delta \left(\operatorname {l o g i t} (\pi)\right) \right], \quad \text {w h e r e} \log_ {1} (\pi) \triangleq \log \left(\frac {\pi}{1 - \pi}\right). \tag {36} +$$ + +Next, we show a bound on success of SAI/SMIA under Bernoulli prior using the Bayes error. + +Theorem D.1. Fix any partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ with $n \geq 1$ . Suppose that $M: \mathbb{D}^n \to \Theta$ satisfies $f$ -DP w.r.t. the replace-one relation. Then, for any prior probability $\pi \in [0,1]$ , a set of any two candidate records $\{z_0, z_1\} \subseteq \mathbb{D}$ , and any score function $\hat{b}: \Theta \to [0,1]$ indicating adversary's confidence of whether $z_1$ or $z_0$ was used for training, we have: + +$$ +\mathbb {E} _ {b \sim \operatorname {B e r n} (\pi)} \mathbb {E} _ {\theta \sim M \left(\bar {S} \cup \{z _ {b} \}\right))} [ q (z _ {b}; \theta) ] \leq 1 - R _ {f} (\pi), \tag {37} +$$ + +where we define the success indicator $q(z;\theta)$ as follows: + +$$ +q (z; \theta) \triangleq \left\{ \begin{array}{l l} \hat {b} (\theta), & i f z = z _ {1} \\ 1 - \hat {b} (\theta), & i f z = z _ {0} \end{array} . \right. \tag {38} +$$ + +Proof. We can express the l.h.s. in Eq. (37) as follows: + +$$ +\underset {\theta \sim M (\bar {S} \cup \{z _ {b} \})} {\mathbb {E}} [ q (z _ {b}; \theta) ] = (1 - \pi) \cdot \mathbb {E} _ {\theta \leftarrow M (\bar {S} \cup \{z _ {0} \})} [ q (z _ {0}; \theta) ] + \pi \cdot \mathbb {E} _ {\theta \leftarrow M (\bar {S} \cup \{z _ {1} \})} [ q (z _ {1}; \theta) ]. \tag {39} +$$ + +Observe that in the setup of this statement, we have $q(z_{1};\theta) = 1 - q(z_{0};\theta)$ . Denote by $\alpha = \mathbb{E}_{\theta \sim M(\bar{S}\cup \{z_0\})}[q(z_1;\theta)] = 1 - \mathbb{E}_{\theta \sim M(\bar{S}\cup \{z_0\})}[q(z_0;\theta)]$ . By Lemma 2.1, we have: + +$$ +\mathbb {E} _ {\theta \leftarrow M (\bar {S} \cup \{z _ {1} \})} [ q (z _ {1}; \theta) ] \leq 1 - f (\alpha). +$$ + +Therefore, we can upper bound Eq. (39) as: + +$$ +\begin{array}{l} \leq (1 - \pi) \cdot (1 - \alpha) + \pi \cdot (1 - f (\alpha)) \\ = 1 - R _ {f} (\pi), \\ \end{array} +$$ + +where the last equality is by Definition D.1. + +![](images/50b7e7f76d9d84ba7c548bea332e975a52a3ab1677a7f538f0bf97d13aacd5d1.jpg) + +Experimental evaluation. We compare our bounds in Theorem 3.1, which are applicable to any prior, and the specialized result in Theorem D.1 for Bernoulli priors. We additionally compare these results to the bounds on SRR based on RDP as in Section 4, and the bounds on SAI based on the Fano's inequality (Guo et al., 2023). + +For this comparison, we use Gaussian mechanism with noise scales $\sigma \in \{0.5, 1.0, 2.0\}$ , analyzed under replace-one relation. We use $\delta = 10^{-5}$ to compute $\varepsilon$ . We use two versions of the bounds from Guo et al. (2023): (1) based on an analytical bound on mutual information (MI) between Gaussians, and a Monte-Carlo (MC) method using 10,000 samples (we repeat each run 10 times). Note that the latter method only provides an estimate of a bound, unlike all other evaluated approaches. We show the result in Fig. 5 (error bars for the MC approach are not visible). We can see that for all noise parameters, and all baselines, the bound in Theorem D.1 outperforms the other bounds. + +# E Generalization Bounds + +In this section, we extend the previous results to the setting in which the dataset is assumed to be sampled i.i.d. from some data distribution $P$ . The results in this section assume the replace-one neighbourhood relation. + +Theorem E.1 (On-average generalization from $f$ -DP). Suppose that $M: \mathbb{D}^n \to \Theta$ satisfies $f$ -DP w.r.t. replace-one relation. Then, for any bounded loss function $q: \mathbb{D} \times \Theta \to [0,1]$ , and any + +![](images/77762f3cd5f333d49aefa70e684601dca65498466d426fcfd7f1911f5aea9033.jpg) +Figure 5: We can significantly tighten the bounds in the setting of binary attribute inference (SAI, via $f$ -DP), outperforming the prior bound based on Fano's inequality. + +probability distribution $P$ over $\mathbb{D}$ , we have: + +$$ +\underbrace {\mathbb {E} _ {S \sim P ^ {n}} \frac {1}{n} \sum_ {i = 1} ^ {n} q \left(z _ {i} ; \theta\right)} _ {\text {o n - a v e r a g e t r a i n l o s s}} \leq 1 - f \underbrace {\left(\mathbb {E} _ {S \sim P ^ {n} , z \sim P} q (z ; \theta)\right)} _ {\text {o n - a v e r a g e t e s t l o s s}} \tag {40} +$$ + +$$ +\underbrace {\mathbb {E} _ {S \sim P ^ {n} , z \sim P} q (z ; \theta)} _ {\text {o n - a v e r a g e t e s t l o s s}} \leq 1 - f \underbrace {\left(\mathbb {E} _ {S \sim P ^ {n}} \frac {1}{n} \sum_ {i = 1} ^ {n} q \left(z _ {i} ; \theta\right)\right)} _ {\text {o n - a v e r a g e t r a i n l o s s}}, \tag {41} +$$ + +where $S = (z_{1},z_{2},\ldots ,z_{n})$ + +Proof. Fix any $z, z' \in \mathbb{D}$ , and $\bar{S} \in \mathbb{D}^{n-1}$ . By Lemma 2.1 and the post-processing property of $f$ -DP, we have: + +$$ +\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} q (z; \theta) \leq 1 - f \left(\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} q (z; \theta)\right) \tag {42} +$$ + +$$ +\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} q (z; \theta) \leq 1 - f \left(\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} q (z; \theta)\right). +$$ + +By using Lemma C.1 after taking the expectation over $z, z' \sim P$ and $\bar{S} \sim P^{n-1}$ of both sides in Eq. (42), we have: + +$$ +\mathbb{E}_{\substack{S\sim P^{n}\\ z\sim \operatorname {Unif}[S]\\ \theta \sim M(S)}}q(z;\theta)\leq 1 - f\left(\mathbb{E}_{\substack{S\sim P^{n}\\ z\sim P\\ \theta \sim M(S)}}q(z;\theta)\right) +$$ + +$$ +\mathbb{E}_{\substack{S\sim P^{n}\\ z\sim P\\ \theta \sim M(S)}}q(z;\theta)\leq 1 - f\left(\mathbb{E}_{\substack{S\sim P^{n}\\ z\sim \operatorname {Unif}[S]\\ \theta \sim M(S)}}q(z;\theta)\right) +$$ + +The forms in Eqs. (40) and (41) are equivalent as $\mathbb{E}_{z\sim \mathrm{Unif}[S]}q(z;\theta) = \frac{1}{n}\sum_{i = 1}^{n}q(z_i;\theta)$ . + +By applying Theorem 3.3, we recover the prior result that $\sup_{q: \mathbb{D} \times \Theta \to [0,1]} |\mathrm{err}_{\mathrm{tr}}(q) - \mathrm{err}_{\mathrm{test}}(q)| \leq \eta$ for $\eta$ -TV algorithms (Kulynych et al., 2022b). Next, we show a related result which covers non-linear queries, i.e., those that do not decompose linearly over the dataset. For this, we make use of the group privacy property of $f$ -DP: + +Proposition E.1 (Dong et al., 2022). Suppose that $M(\cdot)$ satisfies $f$ -DP w.r.t. replace-one relation. Then, the algorithm satisfies $f^{(k)}$ -DP w.r.t. replace-k relation $S \simeq S'$ ( $|S| = |S'|$ but differ by exactly $k$ points), where $f^{(k)} = 1 - (1 - f)^{\circ k}$ , with $f^{\circ k}$ denoting repeated $k$ -fold composition of the function as $f \underbrace{0 \cdots 0}_{k} f(x)$ . The function $f^{(k)}$ is a valid trade-off curve as per Definition A.3. + +We can now show the result for non-linear queries: + +Theorem E.2. Suppose that $M: \mathbb{D}^n \to \Theta$ satisfies $f$ -DP w.r.t. replace-one relation. Then, for any bounded function $R: \mathbb{D}^n \times \Theta \to [0,1]$ , and any probability distribution $P$ over $\mathbb{D}$ , we have: + +$$ +\mathbb {E} _ {\substack {S \sim P ^ {n} \\ \theta \sim M (S)}} R (S; \theta) \leq 1 - f ^ {(n)} \left(\mathbb {E} _ {\substack {S, T \sim P ^ {n} \\ \theta \sim M (S)}} R (T; \theta)\right) \tag{43} +$$ + +$$ +\underset {\theta \sim M (S)} {E _ {S, T \sim P ^ {n}}} R (T; \theta) \leq 1 - f ^ {(n)} \left(\underset {\theta \sim M (S)} {\mathbb {E}} _ {S \sim P ^ {n}} R (T; \theta)\right). \tag {44} +$$ + +Proof. Fix any $S \in \mathbb{D}^n$ and $T \in \mathbb{D}^n$ . By Lemma 2.1 and the group privacy property in Proposition E.1, we have: + +$$ +\mathbb {E} _ {\theta \sim M (S)} R (S; \theta) \leq 1 - f ^ {(n)} \left(\mathbb {E} _ {\theta \sim M (T)} R (S; \theta)\right) \tag {45} +$$ + +$$ +\mathbb {E} _ {\theta \sim M (T)} R (S; \theta) \leq 1 - f ^ {(n)} \left(\mathbb {E} _ {\theta \sim M (S)} R (S; \theta)\right). +$$ + +By using Lemma C.1 after taking the expectation over $S \sim P^n$ , and $T \sim P^n$ of both sides in Eq. (45), we have: + +$$ +\mathbb{E}_{\substack{S\sim P^{n}\\ \theta \sim M(S)}}R(S;\theta)\leq 1 - f^{(n)}\left(\mathbb{E}_{\substack{S,T\sim P^{n}\\ \theta \sim M(T)}}R(S;\theta)\right) +$$ + +$$ +\underset { \begin{array}{c} \theta \sim M (T) \end{array} } {\mathbb {E}} _ {S, T \sim P ^ {n}} R (S; \theta) \leq 1 - f ^ {(n)} \left(\underset {\theta \sim M (S)} {\mathbb {E}} _ {S \sim P ^ {n}} R (S; \theta)\right) +$$ + +We get the desired result by renaming the variables $S$ and $T$ in the $\mathbb{E}_{S,T}[R(S;M(T))]$ terms. + +![](images/5c42cac9da04a5cc3a61502b3cc178bfc50f91616cab6894bae7c234c91de5d5.jpg) + +In Appendix F, we use this result to bound the notion of narcissus resiliency (Cohen et al., 2025) using $f$ -DP. Unfortunately, the privacy guarantees obtained using this approach can quickly become vacuous, as they scale with the dataset size. + +# F Bounds for Other Risk Notions + +In this section, we show additional bounds based on $f$ -DP for other risk notions beyond the strong-adversary notions in Section 3.2. + +Counterfactual memorization and influence. Using the tools in Appendices C and E, we can bound notions of memorization (Feldman, 2019; Zhang et al., 2023). First, we define cross-influence: + +Definition F.1 (Cross-influence). Fix a partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , two records $z, z' \in \mathbb{D}$ , and a bounded loss function $\ell: \mathbb{D} \times \mathbb{D} \to [0,1]$ . We define the cross-influence of $z'$ on $z$ as: + +$$ +\operatorname {x i n f} \left(z \Leftarrow z ^ {\prime}\right) \triangleq \mathbb {E} _ {\theta \sim M \left(\bar {S} \cup \{z ^ {\prime} \}\right)} \left[ \ell (z; \theta) \right] - \mathbb {E} _ {z ^ {\prime \prime} \sim P, \theta \sim M \left(\bar {S} \cup \{z ^ {\prime \prime} \}\right)} \left[ \ell (z; \theta) \right]. \tag {46} +$$ + +When $z = z'$ , we obtain the special case of counterfactual self-influence, i.e., memorization. + +Definition F.2 (Counterfactual memorization). Fix $\bar{S} \in \mathbb{D}^{n-1}$ to be a partial dataset, $z \in \mathbb{D}$ to be a fixed record, $P$ to be a distribution over $\mathbb{D}$ , and a bounded loss function $\ell: \mathbb{D} \times \mathbb{D} \to [0,1]$ . We define the memorization of $z$ as: + +$$ +\operatorname {m e m} (z) \triangleq \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} [ \ell (z; \theta) ] - \mathbb {E} _ {z ^ {\prime} \sim P, \theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} [ \ell (z; \theta) ]. \tag {47} +$$ + +For the special case that $\ell (z;\theta)$ is a decision rule implementing a membership inference attack which aims to infer the membership of $z$ , we can write the SMIA advantage in a replace-one neighbourhood model as follows: + +$$ +\operatorname {a d v} _ {\mathrm {S M I A} ^ {\prime}} (z) \triangleq \underbrace {\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} [ \phi (z ; \theta) ]} _ {\text {T P R o f} \phi} - \underbrace {\mathbb {E} _ {z ^ {\prime} \sim P , \theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} [ \phi (z ; \theta) ]} _ {\text {F P R o f} \phi}. \tag {48} +$$ + +The next result then follows by recognizing that mem recovers the definition of $\mathsf{adv}_{\mathsf{SMIA}'}$ , and that $\mathsf{adv}_{\mathsf{SMIA}'}$ is upper-bounded by the TV privacy parameter: + +Proposition F.1 ( $\eta$ -TV privacy bounds memorization/advantage). Suppose that $M: \mathbb{D}^n \to \Theta$ satisfies $\eta$ -TV privacy w.r.t. the replace-one neighbourhood relation. Then, for any $n \geq 1$ , probability distribution $P$ over $\mathbb{D}$ , partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , any bounded $\ell: \mathbb{D} \times \Theta \to [0,1]$ , and any target record $z \in \mathbb{D}$ , it holds that: + +$$ +\operatorname {m e m} (z) \leq \eta \text {a n d} \operatorname {a d v} _ {S M I A ^ {\prime}} (z) \leq \eta . \tag {49} +$$ + +Proof. Recall that $M$ satisfies $f$ -DP for some $f$ . For any fixed $z, z' \in \mathbb{D}$ , we have by Lemma 2.1: + +$$ +\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} q (z; \theta) \leq 1 - f \left(\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} q (z; \theta)\right), +$$ + +Subsequently, taking the expectation over $z' \sim P$ and applying Lemma 3.1, we get: + +$$ +\mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z \})} q (z; \theta) \leq 1 - f \left(\mathbb {E} _ {z ^ {\prime} \sim P} \mathbb {E} _ {\theta \sim M (\bar {S} \cup \{z ^ {\prime} \})} q (z; \theta)\right), +$$ + +Finally, we obtain the bound in terms of $\eta$ by subtracting $E_{z^{\prime}\sim P\theta \sim M(\bar{S}\cup \{z^{\prime}\})}q(z;\theta)$ from both sides and recalling that $\max_{\alpha \in [0,1]}(1 - f(\alpha) - \alpha)\leq \eta$ by Proposition A.1. + +Note that a similar connection between memorization and the advantage of membership inference attacks in an average-dataset threat model has been observed previously (Kulynych et al., 2022a). + +Unbiased reconstruction robustness. Next, we present a variant of reconstruction robustness with an average baseline. + +Definition F.3 (Unbiased RR, adapted from Guerra-Balboa et al., 2023). For a given $n \geq 1$ , mechanism $M: 2^{\mathbb{D}} \to \Theta$ , data distribution $P$ over $\mathbb{D}$ , partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , loss function $\ell: \mathbb{D} \times \mathbb{D} \to \mathbb{R}$ , threshold $\gamma \in \mathbb{R}$ , and reconstruction attack $\mathcal{A}_{M,\bar{S},\mathcal{D}}: \Theta \to \mathbb{D}$ , we define the unbiased reconstruction robustness (URR) success rate as follows: + +$$ +\mathsf{succ}_{URR}(M,\bar{S},P;\mathcal{A},\ell ,\gamma)\triangleq \operatorname *{Pr}_{\substack{z\sim_{P}\\ \hat{z}\gets \mathcal{A}_{M,\bar{S},P}(M(\bar{S}\cup \{z\}))}}[\ell (z,\hat{z})\leq \gamma ], +$$ + +and the baseline success as: + +$$ +\operatorname{base}_{URR}(P;\ell ,\gamma)\triangleq \operatorname *{Pr}_{\substack{z,z^{\prime}\sim P\\ \hat{z}\gets \mathcal{A}_{M,\bar{S},P}(M(\bar{S}\cup \{z^{\prime}\}))}}[\ell (z,\hat{z})\leq \gamma ]. +$$ + +Theorem F.1. Suppose that the algorithm $M: \mathbb{D}^n \to \Theta$ satisfies $f$ -DP w.r.t. replace-one relation. Then, for any $n \geq 1$ , partial dataset $\bar{S} \in \mathbb{D}^{n-1}$ , data distribution $P$ over $\mathbb{D}$ , loss function $\ell: \mathbb{D} \times \mathbb{D} \to \mathbb{R}$ , threshold $\gamma \in \mathbb{R}$ , and any adversary $A_{M,\bar{S},P}: \Theta \to \mathbb{D}$ , we have: + +$$ +\operatorname {s u c c} _ {U R R} (M, \bar {S}, P; \mathcal {A} _ {M, \bar {S}, P}, \ell , \gamma) \leq 1 - f (\operatorname {b a s e} _ {U R R} (P; \ell , \gamma)). \tag {50} +$$ + +Moreover, + +$$ +\operatorname {s u c c} _ {U R R} (M, \bar {S}, P; \mathcal {A} _ {M, S, P}, \ell , \gamma) - \operatorname {b a s e} _ {U R R} (P; \ell , \gamma) \leq \eta , \tag {51} +$$ + +where $\eta$ is the TV privacy guarantee of the mechanism. + +Proof. We obtain Eq. (50) by applying Lemma C.3 to a mechanism $\mathcal{A}_{M,\bar{S},P}(\theta)$ , which satisfies $f$ -DP by post-processing, and using $q(z;\cdot)$ chosen as in Eq. (35). We immediately get Eq. (51) by applying Proposition A.1 to Eq. (50) as in the proof of Lemma C.4. + +Narcissus resiliency. We present a recent definition of privacy due to Cohen et al. (2025), adapted to our setting: + +Definition F.4 (Narcissus resiliency, adapted from Cohen et al., 2025). For a given $n \geq 1$ , mechanism $M: 2^{\mathbb{D}} \to \Theta$ , data distribution $P$ over $\mathbb{D}$ , an adversary $A_{n,M,P}: \Theta \to \mathbb{V}$ which outputs an element from an arbitrary set $\mathbb{V}$ , and a bounded function $R: \mathbb{D}^n \times \mathbb{V} \to [0,1]$ , we define the narcissus resiliency (NR) success rate as follows: + +$$ +\mathsf{succ}_{NR}(n,M,P;\mathcal{A},R)\triangleq \operatorname *{Pr}_{\substack{S\sim P^{n}\\ p\leftarrow \mathcal{A}_{n,M,P}(M(S))}}[R(S,v)], +$$ + +and the baseline success as: + +$$ +\operatorname{base}_{NR}(n,P;\mathcal{A},R)\triangleq \operatorname *{Pr}_{\substack{S,T\sim P^{n}\\ v\gets \mathcal{A}_{n,M,P}(M(S))}}[R(T,v)]. +$$ + +Our generalization result for non-linear functions in Theorem E.2 immediately implies a bound on its success: + +Theorem F.2. Suppose that $M: \mathbb{D}^n \to \Theta$ satisfies $f$ -DP w.r.t. replace-one neighbourhood relation. Then, for any given $n \geq 1$ , data distribution $P$ over $\mathbb{D}$ , and an adversary $\mathcal{A}_{n,M,P}: \Theta \to \mathbb{Q}$ , we have: + +$$ +\operatorname {s u c c} _ {N R} (n, M, P; \mathcal {A}, R) \leq 1 - f ^ {(n)} (\operatorname {b a s e} _ {N R} (n, P; \mathcal {A}, R)). +$$ + +Proof. After observing that $\mathcal{A}(M(S))$ satisfies $f$ -DP by post-processing, the result is an immediate implication of applying Theorem E.2 to $\mathcal{A}$ as a mechanism. + +Average-dataset predicate singling out. We can show the following bound on PSO based on $f$ -DP: + +Theorem F.3. Suppose that $M: \mathbb{D}^n \to \Theta$ satisfies $f$ -DP w.r.t. replace-one neighbourhood relation. Then, for any given $n > 1$ , data distribution $P$ over $\mathbb{D}$ , and an adversary $\mathcal{A}_{n,M,P}: \Theta \to \mathbb{Q}_{P,w}$ with $\mathbb{Q}_{P,w} \triangleq \{p \mid p: \mathbb{D} \to \{0,1\}, \mathbb{E}_P[p] = w\}$ for any given $w \in [0,1/n]$ , we have: + +$$ +\operatorname {s u c c} _ {P S O} (n, M, P, w; \mathcal {A}) \leq n \cdot (1 - f (w)) \tag {52} +$$ + +Proof. We follow the steps of the proof in Cohen and Nissim (2020). Regardless of the weight of any given predicate $p$ , we can modify it to have weight less than $w$ via: + +$$ +p ^ {*} (x) = \left\{ \begin{array}{l l} p (x) & \quad \text {i f} \mathbb {E} _ {P} [ p ] \leq w \\ 0 & \quad \text {i f} \mathbb {E} _ {P} [ p ] > w \end{array} \right. +$$ + +Note that $p^*$ is exactly $p$ if $p$ 's weight is $\leq w$ , and is trivially always 0 else. So, the weight of $p^*$ is either 0 or $\mathbb{E}_P[p^*]$ . Moreover, by postprocessing we know that $p^*$ is $f$ -DP. We investigate the probability of a successful PSO attack on $S$ , which occurs when $p^*(S) \triangleq \frac{1}{n} \sum_{i=1}^{n} p^*(x_i) = \frac{1}{n}$ and $\mathbb{E}_P[p^*] \leq w$ . The second condition is always satisfied via the construction of $p^*$ , so: + +$$ +\begin{array}{l} \operatorname {s u c c} (n, M, P; \mathcal {A}) = \Pr_ {\substack {S \sim P ^ {n} \\ p \leftarrow M (S)}} [ p (S) = 1 / n \text{and}\mathbb {E} _ {P} [ p ]\leq w ] \\ = \operatorname *{Pr}_{\substack{S\sim P^{n}\\ p\leftarrow M(S)}}[p^{*}(S) = 1 / n] \\ \leq \sum_{i = 1}^{n}\operatorname *{Pr}_{\substack{S\sim P^{n}\\ p\leftarrow M(S)}}\left[p^{*}(z_{i}) = 1\text{and}\forall j\neq i,p^{*}(z_{j}) = 0\right], \\ \end{array} +$$ + +where $S = (z_{1},z_{2},\dots ,z_{n})$ + +Now, as $p^*$ satisfies $f$ -DP, we can apply Lemma 2.1 in conjunction with Lemma C.1: + +$$ +\leq \sum_{i = 1}^{n}1 - f\left(\operatorname *{Pr}_{\substack{S\sim P^{n}\\ z\sim P\\ p\gets M(S_{i\to z})}}[p^{*}(z_{i}) = 1\text{and}\forall i\neq j, p^{*}(z_{j}) = 0]\right), +$$ + +where $i\to z$ denotes substitution of $z_{i}$ by $z$ . We can reparametrize without changing the expectation: + +$$ += \sum_ {i = 1} ^ {n} 1 - f \left(\Pr_ {\substack {S \sim P ^ {n} \\ z \sim P \\ p \leftarrow M (S)}} \left[ p ^ {*} \left(z _ {i}\right) = 1 \text {and} \forall j \neq i, p ^ {*} \left(x _ {j}\right) = 0 \right]\right). \tag{53} +$$ + +Now, we can upper bound the probability inside $f(\cdot)$ by $w$ by Lemma C.2: + +$$ +\begin{array}{l} \leq \sum_ {i = 1} ^ {n} 1 - f (w) \\ = n \cdot (1 - f (w)). \\ \end{array} +$$ + +![](images/e2af29dad3e16172aa39b97bed2eae1684d227a58ed5d1081bf3f8fe818f10d2.jpg) + +Note that, to tighten the bound, we slightly modified the definition of the admissible predicate in Theorem F.3 to only consider predicates of a specific weight. + +![](images/de6cccb1373650d224da6fe3c464252cd162d101f19d2364b4ddd5416c81e7c4.jpg) +Figure 6: Our $f$ -DP based bound enables to perform more statistical queries at the same level of re-identification or other notions of risk. + +# G Additional Experimental Details + +# G.1 Additional Case Studies + +Tight budget analysis in DP query answering in terms of risk. One of the common use cases of DP is answering statistical queries about a dataset (Gaboardi et al., 2020). In real-world instances of such systems, e.g., in healthcare, re-identification risk is a concern (Raisaro et al., 2018). + +To evaluate how our bounds apply to risk measurement in this setting, we simulate the release of multiple queries with added Laplace noise. We compare our bound to the default budget computation procedure of smartnoise software framework (Gaboardi et al., 2020), which is based on optimal composition results for $(\varepsilon, \delta)$ -DP mechanisms (Kairouz et al., 2015). To apply our bounds, we use the direct method from Kulynych et al. (2024) to obtain the $f$ curve of an adaptive composition of Laplace mechanisms. In this simulation, we assume a fixed noise parameter $b = 5.0$ for each query, corresponding to $\varepsilon = 0.2$ pure DP per query. In Fig. 6, we show how our bounds on risk can enable researchers to conduct significantly more queries while satisfying any given risk requirement, in particular, on re-identification. For example, if the requirement is to ensure at most 0.2 attack advantage under the baseline risk of 0.1 (Fig. 6, middle pane), we can issue 15 queries according to our analysis vs. 5 with the standard one. + +Calibrating noise to image reconstruction risk in deep learning. In this case study, as in Section 4, we assume the modeler aims to use DP training for CIFAR-10 image classification (Krizhevsky et al., 2009) to limit such risks to a given threshold. We train multiple convolutional networks using the approach of Tramer and Boneh (2021) (we provide further technical details next). We train with standard DP-SGD (Abadi et al., 2016) and use five different levels of noise. We obtain the $f$ curve under the add-remove relation for each model using the direct method as before (Kulynych et al., 2024), and apply Theorem 3.2 to measure risk. We compare this to the RDP-based analysis from Balle et al. (2022), as described previously. Fig. 7 shows that if we aim calibrate the noise scale to a given level of maximum attack risk, our unifying bound enables to choose a lower noise scale at the same level of risk (left plot), which, in turn, results in better classification accuracy (right plot). E.g., for the risk target of 0.25, we can increase the accuracy from $65\%$ to $68\%$ using our analysis, as opposed to an RDP-based one. + +# G.2 Experiment Details + +We use an Nvidia GeForce RTX 4070 16 GB GPU machine for the deep learning experiments. The experiments take up to four hours to finish. + +Text Sentiment Classification case study details We follow Yu et al. (2021) to finetune a GPT-2 (small) (Radford et al., 2019) using LoRA (Hu et al., 2021) with DP-SGD on the SST-2 sentiment classification task (Socher et al., 2013) from the GLUE benchmark (Wang et al., 2018). We summarize the parameters next: + +![](images/a4a0cfed0ab53449cc0669b5db2cf30847d072e448086d883d9b7c24ef896445.jpg) +Figure 7: Our $f$ -DP based bound enables us to achieve higher classification accuracy for any level of risk. + +![](images/8546e9ac82f44f15fd59190ab3dcf9ad52c71351a1ee090dd0f6de8a2624c75d.jpg) + +
ParameterValues
Poisson subsampling probability≈ 0.004
Expected batch size256
Gradient noise multiplier (σ){0.5715, 0.6072, 0.6366, 0.6945, 0.7498}
Privacy budget (ε) at δ = 10-5{3.95, 3.2, 2.7, 1.9, 1.45}
Training epochs3
Gradient clipping norm (Δ2)1.0
LoRA dimension4
LoRA scaling factor32
+ +Image-classification case study details. We use the method of Tramer and Boneh (2021) to train a convolutional neural network. We use CIFAR-10 (Krizhevsky et al., 2009) image classification dataset with a default split. We summarize the parameters next: + +
ParameterValues
Poisson subsampling probability≈ 0.16
Expected batch size8192
Gradient noise multiplier (σ/Δ2){4,5,6,8,10}
Training epochs≤ 100
Gradient clipping norm (Δ2)0.1
Learning rate4
Momentum (Nesterov)0.9
+ +Software We use the following key open-source software: + +- PyTorch (Paszke et al., 2019) for implementing neural networks. +- opacus (Yousefpour et al., 2021) for training PyTorch neural networks with DP-SGD. +- numpy (Harris et al., 2020), pandas (pandas development team, 2020), and jupyter (Kluyver et al., 2016) for numeric analyses. +- seaborn (Waskom, 2021) for visualizations. + +# H Additional Figures + +Table 1: Comparison of average-dataset vs. strong-adversary threat models. $n$ : dataset size, $P$ : data distribution, $M$ : mechanism, $\bar{S}$ : partial dataset, poisoning cap.: whether an adversary has the capability to insert arbitrary records into the dataset, *: the dataset size is implicitly known from the size of the partial dataset $\bar{S}$ . + +
Threat modelRisk notionReferenceAdv. knowledgePoisoning cap.Bounds from f-DP
nPMS
StrongSPSODefinition 3.2*✓✓✓✓|
SRR (Balle et al., 2022)Definition 3.3*✓✓✓✓Theorem 3.2
SAI (any k)Definition 3.4*✓✓✓✓|
SAI (k=2)Definition 3.4*✓✓✓✓Theorem D.1
URR (Guerra-Balboa et al., 2023)Definition F.3*✓✓✓✓Theorem F.1
Avg. datasetNR (Cohen et al., 2025)Definition F.4✓✓✓Theorem F.2
PSO (Cohen and Nissim, 2020)Definition 3.1✓✓✓Theorem F.3
+ +![](images/dfd80f69464ff9003c253e872abcd08982a73f3bd949f81a14613b7c85d6b18c.jpg) +Figure 8: PSO bounds for Laplace mechanism. See Fig. 2 for details. We do not show the results with the PSO bound based on $f$ -DP, as they are identical to the $(\varepsilon, \delta)$ -based bound for this mechanism. + +![](images/3f68362ba9693efe451f5769d75cefe396a03390cbfd8a78b88bbd47ad29822e.jpg) +Figure 9: The results for US Census under multiple risk baselines. See Fig. 4 for details. + +![](images/b463b466ed2e8a6aa430365f2482a0d5d64840e14be469328414ad228aeb41f7.jpg) + +![](images/5065966765d120d4915db1b429097671fc3fb7508f84e345d937047a2cc13c23.jpg) + +![](images/1062155bfaf1313fadbc596bd2353e70970b5f04f2fc6e57355222e3cdbabc62.jpg) +Method PSO (Cohen and Nissim, via $(\varepsilon ,\delta)$ +PSO (via $f$ -DP) +Unifying (via $f$ -DP) + +![](images/987e735cdf87e07903e597dc6a3bb366af2182109e5f80b586ef6ca92a7fa8f4.jpg) +Figure 10: Result of redoing Fig. 2 (top) and Fig. 8 (bottom) with the improved $f$ -DP bound for PSO derived in Theorem F.3. We observe no significant gain in using this bound. + +![](images/5a60b26f441a5a26564eeb554f9eab2069a2d596da1870dd8bb55f2a5ee365e9.jpg) + +![](images/7b98395c1c0aa7081a42694bb98a2a140f470752ef0e0c6f03c8bcce9300c9a0.jpg) +Method PSO (Cohen and Nissim, via $(\varepsilon ,\delta)$ PSO (via $f$ -DP) Unifying (via $f$ -DP) + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The abstract succinctly summarizes the main claims of the paper. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: The paper discusses the limitations in Section 6. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +# Answer: [Yes] + +Justification: We describe the high-level setting in Section 3.1, as well as clearly note all of the low-level assumptions in Appendix C. We provide proofs of the statements in the main body in Appendix C. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: We detail on the information required to reproduce the results in Section 4 and Appendix G. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. + +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. + +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. + +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. + +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example + +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: We provide the code as a supplementary material, accompanied with instructions for reproducing. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: We detail on the technical details required to reproduce the results in Section 4 and Appendix G. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [No] + +Justification: In the main experiments, we compute theoretical quantities directly, thus do not need to use empirical statistical procedures. + +Guidelines: + +- The answer NA means that the paper does not include experiments. + +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We describe the hardware used in Appendix G. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: Neither the research process itself nor the outcomes of the research carry significant potential for harm. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: In Section 6, we reflect on some of the broader implications of our work, both positive and negative. + +# Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [Yes] + +Justification: In Section 6, we propose measures for preventing the misuse of our methods. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We cite the sources of the datasets, and the sources for the key pieces of software used for the experimental evaluations in Appendix G. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. + +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: [NA] + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: [NA] + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +# Justification: [NA] + +# Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [NA] + +Justification: [NA] + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/images.zip b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..47709a971a5896128b64b430301ee0e76feaeebf --- /dev/null +++ b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c07d3e91cc5e8be8529936e5da7f1ed31428ea6bd53a042948dfd6b405e304c +size 1105272 diff --git a/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/layout.json b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..8744f5b20ae8d6a8742ae9644f7497b9eb6ad7fc --- /dev/null +++ b/NeurIPS/2025/Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b632d0cd88e5e44ff1423971615ffe7388e628556211132b337d975387e826b0 +size 1659883 diff --git a/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/19ece0e9-37a6-4c76-9a8f-7f6596f8e5c8_content_list.json b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/19ece0e9-37a6-4c76-9a8f-7f6596f8e5c8_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..20ffc3c4a2e8ed9437d9161a008ab36133e3f359 --- /dev/null +++ b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/19ece0e9-37a6-4c76-9a8f-7f6596f8e5c8_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fe27c2fa8f0f4cf884a04645e49f9a913733dc4ea3c9e29687b83863eb78924 +size 174064 diff --git a/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/19ece0e9-37a6-4c76-9a8f-7f6596f8e5c8_model.json b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/19ece0e9-37a6-4c76-9a8f-7f6596f8e5c8_model.json new file mode 100644 index 0000000000000000000000000000000000000000..054a8d06cd8510ed109294262fc53080d002a713 --- /dev/null +++ b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/19ece0e9-37a6-4c76-9a8f-7f6596f8e5c8_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:723e8c4dfe1cc4d594a0aef53aea4c2cb742986b739c2e2a5fda367731f1a558 +size 220270 diff --git a/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/19ece0e9-37a6-4c76-9a8f-7f6596f8e5c8_origin.pdf b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/19ece0e9-37a6-4c76-9a8f-7f6596f8e5c8_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..647b3c70d4727cda4b5fe007eaacf6a2e9047aac --- /dev/null +++ b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/19ece0e9-37a6-4c76-9a8f-7f6596f8e5c8_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:444e8c2ba6ef53b3120fc3b63c2ae6a21c407b6d1637a347ed45051e844f7d8f +size 1860365 diff --git a/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/full.md b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/full.md new file mode 100644 index 0000000000000000000000000000000000000000..142e86c7c1054f865165a1944d6948b88bb2e57a --- /dev/null +++ b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/full.md @@ -0,0 +1,787 @@ +# Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification + +Xiaolei Wang $^{1,2}$ Tianhong Dai $^{4}$ Huihui Bai $^{3}$ Yao Zhao $^{3}$ Jimin Xiao $^{1*}$ + +$^{1}$ Xi'an Jiaotong-Liverpool University + +$^{2}$ University of Liverpool + +$^{3}$ Beijing Jiaotong University + +Applied Computing Technologies + +# Abstract + +Due to the difficulty in collecting all unexpected abnormal patterns, One-Class Classification (OCC) has become the most popular approach to anomaly detection (AD). Reconstruction-based AD method relies on the discrepancy between inputs and reconstructed results to identify unobserved anomalies. However, recent methods trained only on normal samples may generalize to certain abnormal inputs, leading to well-reconstructed anomalies and degraded performance. To address this, we constrain reconstructions to remain on the normal manifold using a novel AD framework based on contraction mapping. This mapping guarantees that any input converges to a fixed point through iterations of this mapping. Based on this property, training the contraction mapping using only normal data ensures that its fixed point lies within the normal manifold. As a result, abnormal inputs are iteratively transformed toward the normal manifold, increasing the reconstruction error. In addition, the inherent invertibility of contraction mapping enables flow-based density estimation, where a prior distribution learned from the previous reconstruction is used to estimate the input likelihood for anomaly detection, further improving the performance. Using both mechanisms, we propose a bidirectional structure with forward reconstruction and backward density estimation. Extensive experiments on tabular data, natural image, and industrial image data demonstrate the effectiveness of our method. Code is available at URD. + +# 1 Introduction + +Anomaly detection (AD) focuses on identifying unexpected patterns that deviate from the known normal ones. Due to difficulty of collecting abnormal samples, One-Class Classification (OCC) paradigm [38, 10, 4, 34, 41, 43, 45, 18, 49] has become the primary solution for unsupervised anomaly detection (UAD) tasks. In the OCC paradigm, only normal data is provided during training, and the model is expected to detect previously unseen anomalies during inference. Therefore, the key challenge of the OCC paradigm involves in effectively modeling the normality of the training data to recognize the abnormal pattern. Recently, reconstruction-based [12, 14, 54, 19, 30, 21, 48] and density-estimation-based [39, 26, 55, 10, 58] methods are the two most widely used OCC AD methods. The former relies on the assumption that a model trained solely on normal data will be unable to accurately reconstruct anomalies. In contrast, the latter focuses on fitting a probability distribution over normal data to estimate the likelihood of previously unseen inputs. + +![](images/83038f96efe8a5d7a745649620e49ab475e37a621d9a45dce271806d2890b348.jpg) + +![](images/76c9540022aae914ee3abf6a8b791421ec3852dabc0bf2a300f323be408f70e9.jpg) + +![](images/e9b11e79ba25721b1642ebc9c3f6da17e3ddb48a57ed3d7a84f4b071489c4047.jpg) + +![](images/4df441baffa26dbc8fd07d84fc1afd8f932a837799a4e29ccc28e65fae4376ae.jpg) +Figure 1: (a): Any input converges to a fixed point after several CM iterations. (b): The fixed point of CM trained by normal data is located within the normal manifold. (c): Abnormal inputs (red) are reconstructed into the normal manifold (green) by several iterations of CM. (d) T-SNE visualization of changes in the reconstructed feature manifold on the 'Ionosphere' tabular AD dataset [36]. + +![](images/af851d79bde503a295eda4d383fe2cd8ac6d17873b439259c6423323d9b1dc44.jpg) +$\times$ Normal + Abnormal (d) Changes of Reconstructed Feature Manifold under Different CM Iterations + +![](images/9d96db5718da134449708110006eee94ad8b3366f5be1faa9331a654af9f7a94.jpg) ++ + Reconstructed Result + +Specifically, reconstruction-based methods rely on the discrepancy between the input and its reconstructed output to identify unseen anomalies. However, models trained exclusively on normal data may generalize to certain abnormal inputs, resulting in well-reconstructed anomalies and reduced reconstruction error, which affects the performance. To address this issue, previous AD methods [54, 53] adopt reconstruction strategies based on partially masked data. However, when using handcrafted or random mask strategies, not all abnormal information can be covered, so they still cannot prevent well-reconstructed anomalies and guarantee the effectiveness of all obtained reconstruction discrepancies. Thus, the key question remains: How can reconstruction discrepancies be made sufficiently discriminative for detecting each abnormal input? + +An intuitive way to obtain discriminative reconstruction discrepancy is to constrain reconstructed results of abnormal inputs remain on the normal manifold. To this end, we propose a novel reconstruction network based on contraction mapping (CM). Based on the property of CM [16], any input is theoretically guaranteed to converge to a unique fixed point through iterative applications of a CM (see Fig.1 (a)), and this point depends exclusively on the mapping itself. Inspired by the property of CM, we further observe during training that optimizing our CM-based network with a reconstruction loss on normal data encourages the fixed point to lie within the normal manifold (see Fig.1 (b)). Therefore, given abnormal inputs, we can leverage trained CM iteratively to transform them into the normal manifold (see Fig.1 (c)). T-SNE visualization of real data in Fig.1 (d) also shows that the reconstructed results are constrained to remain on the normal manifold after six iterations of CM, resulting in a significant discrepancy between the abnormal input and its reconstruction. + +On the other hand, our proposed CM structure is inherently invertible. According to the theory of normalizing flow [13, 27], an invertible mapping flow can transform a Gaussian prior into a real data distribution, which enables the estimation of the likelihood of the input. Therefore, our invertible CM flow is leveraged to perform density estimation to further improve the detection performance. In particular, after the reconstruction stage, the reconstructed output is used to learn a prior Gaussian distribution. Then, we leverage the inverse of the contraction mapping flow on the prior distribution to estimate the likelihood of the inputs. To this end, our framework consists of forward reconstruction and backward density estimation, unifying these two popular paradigms to detect unseen anomalies. The main contributions of this paper are summarized as follows: + +(1) To prevent well-reconstructed anomalies, we adopt a novel contraction mapping structure to constrain abnormal inputs onto the normal manifold. (2) A unified framework is introduced that + +combines reconstruction and density estimation using an invertible contraction mapping flow, which bridges two popular paradigms in anomaly detection. (3) Extensive experiments on tabular, natural image, and industrial image data demonstrate the effectiveness of our method. + +# 2 Related Work + +Anomaly Detection Anomaly detection aims to recognize unexpected abnormal patterns in different types of data, such as tabular [53, 9], graph [57], and image data [47, 8, 44]. Since the form and type of anomaly events are unpredictable and cannot be fully collected, One-Class-Classification-based AD paradigm has become the mainstream solution. The key of OCC approaches is to model the normality of training data to detect unseen anomalies. Classic OCC methods [35, 6, 40, 46, 38, 57] learn a profile from normal data, computing the distance between the abnormal input and the center/boundary of the profile as the anomaly score. KNN [35] and LOF [6] directly compute the distance between a test input and its several normal neighbors. OCSVM [40] learn a linear boundary of normal samples to discriminate anomalies. SVDD-based approaches [46, 38, 57] construct hypersphere boundaries to effectively surround normal representations, recognizing abnormal patterns based on the distance between these representations and the center/boundary of the sphere. + +Reconstruction-based Method Reconstruction-based methods rely on the discrepancy of inputs and their reconstructed results to identify unseen anomalies. However, a trained reconstruction network may recover some anomalies well, obtaining a small reconstruction error and failing to detect anomalies. To alleviate this issue, the tabular AD method, MCM[53] adopts a learnable mask to cover partial areas of the original input and learning normal reconstruction from masked data. UniAD [54], a classic visual AD method, defines this issue as 'identical shortcut' and similarly adopts the neighbor mask in attention computation to alleviate well-reconstructed anomalies. The graph-based AD method [22] leverages the denoising autoencoder to learn the reconstruction for the noisy perturbation. In this paper, we consider that as long as the reconstructed output can be constrained within the normal manifold, well-reconstructed anomalies will be avoided. Based on the above idea, we propose to apply contraction mapping to conduct reconstruction. + +Density-Estimation-based Method Density-estimation-based methods [50, 58] apply normal data to fit a Gaussian distribution or its variants to estimate the likelihood of each test input as the anomaly score. However, the real normal data distribution is much more complex than a Gaussian distribution. Therefore, normalizing-flow-based AD methods [51, 39, 55, 17] adopt invertible mapping to transform a prior distribution of latent variables to the distribution of real inputs, better capturing the probability density of each input. In this paper, the introduced contraction mapping flow is designed to be invertible and can directly estimate the likelihood of input based on a learnable Gaussian prior distribution of reconstructed results. Our framework consists of forward reconstruction and backward density estimation, unifying these two main paradigms. + +# 3 Methodology + +Preliminary In the one-class classification (OCC) anomaly detection (AD) task, only normal samples are provided during training, and the goal is to detect previously unseen anomalies in the testing set. Formally, $\mathcal{I} = \mathcal{I}^{\mathrm{train}}\cup \mathcal{I}^{\mathrm{test}}$ is represented as an AD dataset, where the data can be either tabular or image-based. The training set is denoted as $\mathcal{I}^{\mathrm{train}} = \{I_i,y_i\}_{i = 1}^{N_1}$ , where each $I_{i}$ is a normal sample with label $y_{i} = 0$ , and $N_{1}$ is the number of samples. The testing set is denoted as $\mathcal{I}^{\mathrm{test}} = \{I_i^t,y_i^t\}_{i = 1}^{N_2}$ , which contains both normal and abnormal samples, $y_{i}^{t}\in \{0,1\}$ , and $N_{2}$ is the number of testing samples. + +Overview As shown in Fig.2, our proposed framework consists of two main components: 1) forward reconstruction and 2) backward density estimation. This unified design integrates both reconstruction-based and density-based anomaly detection within a single framework, resulting in enhanced detection performance. During training, the normal input $I$ is first passed through a standard neural network to achieve the corresponding representations $\mathbf{x} \in \mathbb{R}^d$ , where $d$ is the dimension of the vector. Next, to mitigate the issues of 'reconstructing anomalies well', a novel contraction mapping (CM) based network $\varphi(\cdot)$ is proposed. This network is trained with a reconstruction loss on + +![](images/3839489b6219a62fc9853f3bffc17587c0d2c9619d8060cfa702c6db6e7a93c6.jpg) +Figure 2: Overview of our proposed method. For a normal input, we first extract its deep representation. Next, we apply contraction mapping flow to reconstruct the obtained representation. Then, reconstructed outputs are used to fit a prior distribution. Finally, the reverse of the mapping flow can transform this prior to the input distribution, enabling likelihood estimation of the original input. + +normal samples to constrain reconstructed results to lie within the normal manifold. Specifically, the contraction mapping is used in a flow-based manner to iteratively constrain the reconstruction within the normal manifold, and the final reconstructed result is denoted as $\mathbf{z} \in \mathbb{R}^d$ . To further exploit the inherently invertibility of CM, we leverage the reverse mapping $\varphi^{-1}(\cdot)$ to estimate the density $p(\mathbf{x})$ of the input $\mathbf{x}$ from a learnable prior distribution over the latent variable $\mathbf{z}$ . Then, the flow-based reverse mapping $\varphi^{-1}(\cdot)$ gradually transforms the prior Gaussian distribution $\pi(\cdot)$ to the density $p(\cdot)$ , which captures the likelihood of the real input $\mathbf{x}$ . During inference, a combination of reconstruction error and likelihood is adopted as the ultimate anomaly score. + +# 3.1 Reconstruction via Contraction Mapping + +Anomaly detection via reconstruction relies on the discrepancy between the input and its reconstruction. Typically, reconstruction-based methods employ the following objective function to train the reconstruction network $\varphi (\cdot)$ : + +$$ +\mathcal {L} _ {\text {r e c}} = \left\| \mathbf {z} - \mathbf {x} \right\| _ {2}, \quad \mathbf {z} = \varphi (\mathbf {x}), \tag {1} +$$ + +where $\mathbf{x}$ is the input feature, $\mathbf{z}$ is the corresponding reconstruction, and $\| \cdot \| _2$ is $\ell_2$ -norm. During inference, the reconstruction error $\| \varphi (\mathbf{x}^t) - \mathbf{x}^t\| _2$ between the input feature $\mathbf{x}$ and its reconstruction is adopted as the anomaly score for the test data. However, as discussed in Section 1, recent methods often generalize to anomaly inputs, producing low reconstruction error and thus failing to identify anomalies efficiently. To address this issue, we model $\varphi (\cdot)$ as a contraction mapping with a flow-based reconstruction process, enforcing that the reconstructed output from any input remains on the normal manifold. This leads to larger reconstruction errors when receiving anomaly inputs. + +# 3.1.1 Theoretical Analysis of Contraction Mapping Reconstruction + +In this section, we provide formal mathematical proofs to demonstrate how the contraction mapping (CM) constrains the reconstruction to remain on the normal manifold. Specifically, we prove two key propositions: 1) training the proposed CM-based network with a reconstruction loss on normal data ensures that the fixed point of the CM lies within the normal manifold, and 2) the trained CM network can transform the reconstruction of abnormal inputs toward the normal manifold. + +First, we introduce the formal definition and the property of the contraction mapping. + +Definition 1 (Contraction Mapping [25]): A mapping $f: \mathbb{R}^d \longrightarrow \mathbb{R}^d$ is called a contraction mapping if there exists a constant $\eta \in [0,1)$ such that $\| f(x_1) - f(x_2)\|_2 \leq \eta \| x_1 - x_2\|_2$ for all $x_1, x_2 \in \mathbb{R}^d$ . The constant $\eta$ is called the Lipschitz constant. + +Lemma 1 (Convergence of Iterations [25]): Let $f(\cdot)$ be a contraction mapping with $\eta \in [0,1)$ . For any initial input $x_0 \in \mathbb{R}^d$ , we define the sequence $\{x_n\}$ by $x_{n+1} = f(x_n)$ for $n = 1, 2, \dots$ . Then $\lim_{n \to \infty} x_n = x^*$ , where $x^*$ is unique and is called a fixed point of $f(\cdot)$ . + +![](images/5df22482ddc3dd23e192c6730d8ee5e0ac38a49a161c8b5a66d7592ad572c253.jpg) +(a) Cardio + +![](images/661da9aeec8e197ba6aade6b52a0fa9ad54f151f7e261bb59f278dc0d1a418b9.jpg) +(b) Pima +Figure 3: T-SNE visualization of the fixed point on four AD datasets. Training $f(\cdot)$ with $\mathcal{L}_{\mathrm{rec}}$ on normal data ensures that the fixed point of $f(\cdot)$ lies within the normal manifold. + +![](images/e3a6cb57d865ad26de15f2973957ebda9cc005ff742de4ed5c3e95f2dc12824d.jpg) +(c) Thyroid + +![](images/d061b34151dfa2f483833d010a7567f75ee268ea4c45d68483a8d6f64ee4ae71.jpg) +(d) Wbc + +Lemma 1 shows that any input will converge to a fixed point after iterative application of a contraction mapping (see Fig.1 (a)), where the point is only related to that mapping itself. Next, the contraction mapping is modeled by a learnable network $f^{\theta}(\cdot)$ , where $\theta$ denotes the parameters. To simplify the notation, $\theta$ is omitted. Empirically, we observe that training $f(\cdot)$ on normal data using reconstruction loss $\mathcal{L}_{\mathrm{rec}} = \| f(\mathbf{x}) - \mathbf{x}\|_2$ result in a fixed point that lies within the normal manifold. To theoretically support this observation, we propose the following proposition: + +Proposition 1 Let $f(\cdot)$ be a contraction mapping with $\eta \in [0,1)$ , and let $\mathbf{x} \in \mathbb{R}^d$ be a normal sample. Under the optimization of the reconstruction loss $\mathcal{L}_{\mathrm{rec}} = \| f(\mathbf{x}) - \mathbf{x}\|_2$ , the fixed point $\mathbf{x}^* \in \mathbb{R}^d$ of $f(\cdot)$ is located within a small neighborhood of the normal input $\mathbf{x}$ , and $\| \mathbf{x}^* - \mathbf{x}\|_2 \leq \frac{\mathcal{L}_{\mathrm{rec}}}{1 - \eta}$ . + +Proof. Let us assume that $f(\cdot)$ is a contraction mapping iteration with $L \in [0,1)$ . According to Definition 1 and Lemma 1, one inequality can be obtained: $\| \mathbf{x}^* - f(\mathbf{x}) \|_2 = \| f(\mathbf{x}^*) - f(\mathbf{x}) \|_2 \leq \eta \| \mathbf{x}^* - \mathbf{x} \|_2$ . Next, using the triangle inequality, we obtain $\| \mathbf{x}^* - \mathbf{x} \|_2 = \| \mathbf{x}^* - f(\mathbf{x}) + f(\mathbf{x}) - \mathbf{x} \|_2 \leq \| \mathbf{x}^* - f(\mathbf{x}) \|_2 + \| f(\mathbf{x}) - \mathbf{x} \|_2$ . Combining the above two inequalities, one can be obtained: $\| \mathbf{x}^* - \mathbf{x} \|_2 \leq \frac{1}{1 - \eta} \| f(\mathbf{x}) - \mathbf{x} \|_2 = \frac{\mathcal{L}_{\mathrm{rec}}}{1 - \eta}$ . When $\mathcal{L}_{\mathrm{rec}}$ is minimized during training, the fixed point $\mathbf{x}^*$ must be in the vicinity of the normal input $\mathbf{x}$ . + +Proposition 1 provides a theoretical analysis of the reconstruction for a single sample. In practice, during training, all normal samples are used to optimize the network $f(\cdot)$ , which drives the fixed point $\mathbf{x}^*$ to converge to the interior of the normal manifold. The empirical visualizations in Fig. 3 on real datasets strongly support this theoretical claim, showing the fixed point landing within the normal data manifold. + +Next, based on Proposition 1 and Lemma 1, any input can be iteratively mapped to a fixed point within the normal manifold by applying $f(\cdot)$ recursively. Therefore, inspired by normalizing flow [13], we adopt a flow-based module $\varphi_K(\cdot) = f_K \circ f_{K-1} \circ \dots \circ f_1(\cdot)$ to model the iterative process of the contraction mapping, where each $f_k(\cdot)$ shares the same structure but has its own parameters $\theta_k$ . Given a test abnormal input $\mathbf{x}^t$ , the flow-based module $\varphi_K(\cdot)$ can transform it toward a fixed point $\mathbf{x}^*$ within the normal manifold, thus inducing a large reconstruction error $\| \varphi_K(\mathbf{x}^t) - \mathbf{x}^t \|_2$ . To theoretically support this perspective, we introduce a key proposition along with a related lemma: + +Lemma 2 Let $\varphi_K(\cdot) = f_K\circ f_{K - 1}\circ \dots f_1(\cdot)$ , where each $f_{k}$ is contraction mapping with $\eta_k\in [0,1)$ , then $\varphi_K(\cdot)$ is a contraction mapping with Lipschitz constant $\eta_{\varphi}\leq \eta_{1}\cdot \eta_{2}\cdot \cdot \cdot \eta_{K}$ . + +Proposition 2 Let $\varphi_K(\cdot) = f_K \circ f_{K-1} \circ \dots \circ f_1(\cdot)$ is a contraction mapping flow trained by reconstruction loss $\mathcal{L}_{\mathrm{rec}} = \|\varphi_K(\mathbf{x}) - \mathbf{x}\|_2$ , where $\mathbf{x}$ is normal. The fixed point $\mathbf{x}^*$ of $\varphi_K(\cdot)$ is located within a small neighborhood of $\mathbf{x}$ . Additionally, for any abnormal input $\mathbf{x}^t$ , as the value of $K$ increases, $\varphi_K(\mathbf{x}^t)$ is closer to the fixed point $\mathbf{x}^*$ , thereby being closer to normal objective $\mathbf{x}$ . + +Proof. According to Lemma 2, $\varphi_K(\cdot)$ is a contraction mapping with Lipschitz constant $\eta_{\varphi}$ , so it also exists a unique fixed point $\mathbf{x}^*$ . According to Proposition 1, under optimization of $\mathcal{L}_{\mathrm{rec}}$ , one inequality can be obtained: $\| \mathbf{x}^* - \mathbf{x} \|_2 \leq \frac{\mathcal{L}_{\mathrm{rec}}}{1 - \eta_\varphi}$ , where $\eta_{\varphi} \leq \eta_1 \cdot \eta_2 \cdots \eta_K < 1$ . Therefore, as minimizing $\mathcal{L}_{\mathrm{rec}}$ the fixed point $\mathbf{x}^*$ must be in the vicinity of normal $\mathbf{x}$ . Next, for an abnormal input $\mathbf{x}^t$ , the distance between its reconstructed result $\varphi_K(\mathbf{x}^t)$ and the fixed point $\mathbf{x}^*$ is: $\| \varphi_K(\mathbf{x}^t) - \mathbf{x}^* \|_2 \leq \eta_{\varphi} \| \mathbf{x}^t - \mathbf{x}^* \|_2$ . Therefore, as $K$ increases, $\eta_{\varphi}$ decreases and $\varphi_K(\mathbf{x}^t)$ is closer to the fixed point. Moreover, according to triangle inequality and above inequality, one can be obtained: $\| \varphi_K(\mathbf{x}^t) - \mathbf{x} \|_2 \leq \| \varphi_K(\mathbf{x}^t) - \mathbf{x}^* \|_2 + \| \mathbf{x}^* - \mathbf{x} \|_2 \leq \eta_{\varphi} \| \mathbf{x}^t - \mathbf{x}^* \|_2 + \frac{\mathcal{L}_{\mathrm{rec}}}{1 - \eta_{\varphi}}$ . As $K$ increases, $\eta_{\varphi}$ decreases, reducing the first term. The second term also decreases due to $1 / (1 - \eta_{\varphi})$ where $\mathcal{L}_{\mathrm{rec}}$ is a small constant through training. + +With the support of Proposition 2, any abnormal input can be transformed into its corresponding normal representation by $\varphi_K(\cdot)$ , resulting in more discriminative reconstruction errors and improved detection performance. Fig.1 (d) shows a T-SNE visualization of the iterative mapping results of $\varphi_K(\cdot)$ for different values of $K$ . Proofs of Lemma 1 and 2 are provided in the appendix. + +Since the mapping $\varphi_K(\cdot)$ is trained for reconstruction by minimizing the loss on normal samples, it effectively behaves as an approximate identity mapping for normal inputs. It also retains its contraction property, pulling abnormal inputs toward the fixed point, which is clearly illustrated in Fig.4. Moreover, in practice, $K$ is kept small to prevent all inputs from converging to the fixed point. + +# 3.1.2 Modeling of Contraction Mapping Iteration + +In this section, based on the above theoretical analysis, a detailed description of the structure of the flow-based contraction mapping $\varphi(\cdot)$ is provided. First, inspired by [3, 1], each contraction mapping unit is represented as $f(\cdot)$ : + +$$ +f (x) = \left(\frac {\mathbf {I d} + \mathbf {G}}{2}\right) ^ {- 1} (x) - x, \tag {2} +$$ + +where $\mathbf{G}$ is designed as a Lipschitz-continuous invertible mapping with Lipschitz constant $\eta < 1$ . For practical implementation, a block-wise approach is used to build $\varphi(\cdot)$ . Specifically, a contraction mapping flow module $F$ is constructed as a composition of $K$ identical mapping units, i.e., $F(\cdot) = f_{K} \circ f_{K-1} \circ \dots \circ f_{1}(\cdot)$ . Finally, the contraction mapping flow $\varphi(\cdot)$ can be written as: + +$$ +\varphi (\cdot) = F _ {R} \circ F _ {R - 1} \dots F _ {1} (\cdot), \tag {3} +$$ + +where $R$ is the number of flow modules. As a reconstruction network, the primary objective is to learn a contraction mapping flow $\varphi(\cdot)$ via Eq.(1), which enables the reconstruction of abnormal inputs toward the normal manifold without forcing full convergence to the final fixed point. Thus, $K$ and $R$ are kept relatively small to avoid full convergence and maintain the detection performance. + +In addition, to implement $\varphi(\cdot)$ , i-DenseNet [33] is applied to parametrize the mapping $\mathbf{G}$ . The basic layer of i-DenseNet can be written as $\psi(\mathbf{W}x + \mathbf{b})$ , where weight $\|\mathbf{W}\|_2 < 1$ , $\|\cdot\|_2$ denotes the spectral norm ( $\mathbf{W}$ is a matrix), and $\psi$ is 1-Lipschitz activation function. The above constraints ensure that the Lipschitz constant of $\mathbf{G}$ is less than 1. More details about the implementation of invertible neural network $\varphi(\cdot)$ are provided in the appendix. + +# 3.2 Density Estimation via Reversed Flow + +Based on Eq.(2), the contraction mapping $f(\cdot)$ is an invertible mapping and $f^{-1}(x) = ((\mathbf{Id} - \mathbf{G}) / 2)^{-1}(x) - x$ (the proof can be found in [1]). Therefore, the flow module $\varphi(\cdot)$ is also invertible and $\varphi^{-1}(\cdot)$ can be written as $\varphi^{-1}(\cdot) = F_1^{-1} \circ F_2^{-1} \cdots F_R^{-1}(\cdot)$ . + +As established in the framework of normalizing flows [13, 27], $\varphi^{-1}(\cdot)$ is able to transform a Gaussian prior distribution into a real data distribution, allowing for estimating the likelihood of the input. In this section, the previous reconstructed output $\mathbf{z}$ is used to learn a Gaussian prior distribution $\pi (\mathbf{z})$ . Then, the reversed flow $\varphi^{-1}(\cdot)$ is applied on the prior distribution $\pi (\mathbf{z})$ to achieve the log-likelihood $\log p(\mathbf{x})$ of the input $\mathbf{x}$ : + +$$ +\log p (\mathbf {x}) = \log \pi (\mathbf {z}) - \sum_ {r = 1} ^ {R} \log | \det \left(\mathbf {J} _ {F _ {r} ^ {- 1}} \left(\mathbf {z} _ {r - 1}\right) \right|, \tag {4} +$$ + +where $|\operatorname{det}(\cdot)|$ is the magnitude of the determinant and $\mathbf{J}_{F_r^{-1}}$ is the Jacobian matrix of each $F_r^{-1}$ , each $\mathbf{z}_r$ is the output of the module $F_r^{-1}$ , i.e., $\mathbf{z}_{r-1} = F_r^{-1}(\mathbf{z}_r)$ , and $\mathbf{z}_R = \mathbf{z}$ . Next, we will show more details of prior distribution $\pi(\cdot)$ and optimization objective. + +Prior Distribution $\pi (\cdot)$ According to Eq.(4), we need to compute $\log \pi (\mathbf{z})$ for the final $\log p(\mathbf{x})$ . Given a reconstructed output $\mathbf{z}$ , the learnable parameters $\mu$ and $\Sigma$ of the prior Gaussian distribution $\pi (\cdot)$ are updated through maximizing $\log \pi (\mathbf{z})$ , where $\mathbf{z}\sim \pi (\mathbf{z})$ . A stop-gradient operation $\mathrm{sg}(\cdot)$ is employed during the optimization of prior distribution $\pi (\cdot)$ , which allows it to be learned independently without affecting the reconstruction training: + +$$ +\mathcal {L} _ {\text {p r i o r}} = \mathbb {E} [ - \log \pi (\operatorname {s g} (\mathbf {z})) ], \tag {5} +$$ + +where $\mathbb{E}[\cdot ]$ represents the mathematical expectation operator. Next, the distribution $p(\mathbf{x})$ is estimated by transforming the prior distribution $\pi (\mathbf{z})$ through $\varphi^{-1}(\cdot)$ + +**Optimization Objective** Based on normalizing flows [13], we adopt maximizing log likelihood to train flow $\varphi(\cdot)$ . According to Eq.(4), $\mathcal{L}_{\mathrm{MLE}}$ implicitly optimizes both the prior distribution $\pi(\cdot)$ and the parameters of our INN $\varphi(\cdot)$ , i.e., + +$$ +\mathcal {L} _ {\mathrm {M L E}} = \mathbb {E} [ - \log p (\mathbf {x}) ] = \mathbb {E} [ - \log \pi (\operatorname {s g} (\mathbf {z})) ] + \mathbb {E} \left[ \sum_ {r = 1} ^ {R} \log | \det \left(\mathbf {J} _ {F _ {r} ^ {- 1}} \left(\mathbf {z} _ {r - 1}\right) \right| \right] \tag {6} +$$ + +Combining Eq.(1) and (6), the ultimate loss function is defined as: + +$$ +\mathcal {L} _ {\text {t o t a l}} = \mathcal {L} _ {\text {r e c}} + \lambda \mathcal {L} _ {\text {M L E}}, \tag {7} +$$ + +where $\lambda$ is a hyper-parameter. The entire framework is trained in an end-to-end manner. + +# 3.3 Inference and Anomaly Score + +During inference, the feature vector $\mathbf{x}^t$ of a given input $I^t$ is obtained through the feature extraction network. Then, in the forward reconstruction, the reconstruction $\mathbf{z}^t$ is achieved by using the contraction mapping flow $\varphi(\cdot)$ to get the reconstruction error. Next, the log-likelihood $\log p(\mathbf{x}^t)$ of the input is computed according to Eq.(4) and $\log \pi(\mathbf{x})$ . Therefore, the final anomaly score is represented as: + +$$ +S \left(\mathbf {x} ^ {t}\right) = \| \varphi \left(\mathbf {x} ^ {t}\right) - \mathbf {x} ^ {t} \| _ {2} - \alpha \log p \left(\mathbf {x} ^ {t}\right), \tag {8} +$$ + +where $\alpha$ is a weight coefficient to control the scale of $\log p(\mathbf{x}^t)$ . + +# 4 Experiment + +Datasets In this paper, our method is evaluated on anomaly detection (AD) tasks across tabular, graph, and image domains. For tabular AD, we select 12 benchmark datasets from OODS [36] and ADBench [20], which include diverse fields, such as healthcare, finance, and social sciences, etc. For visual AD tasks, we conduct experiments on both natural and industrial datasets: CIFAR-10 and MVTec AD [5], respectively. Following previous OCC works [38, 57], only one class in CIFAR-10 is selected as the normal class, while the remaining classes are considered abnormal. + +Evaluation Metrics For tabular data, we adopt the Area Under the Receiver Operating Characteristic Curve (AUROC) and Area Under the Precision-Recall Curve (AP) as evaluation metrics. For image data, image-level AUROC (I-AUROC) is used for anomaly classification and pixel-level AUROC is used for anomaly localization. + +Implementation Details The implementation is based on PyTorch. In the tabular AD task, we use a three-layer Multilayer Perceptron (MLP) with LeakyReLU activation function as a feature extractor. The flow-based structure is modeled using $K = 2$ and $R = 3$ . In particular, the hyperparameters are set to $\lambda = 0.5$ and $\alpha = 0.01$ across 20 tabular datasets. During training, Adam optimizer is used to update the network, where learning rate and weight decay are $1 \times 10^{-5}$ and $1 \times 10^{-7}$ , respectively. For natural image datasets, CIFIAR-10, we use the same convolutional neural network (CNN) as DO2HSC [57] to extract the deep representation of each image. Same as the tabular setting, we set $K = 2$ , $R = 3$ , $\lambda = 0.5$ , and $\alpha = 0.001$ . The learning rate and weight decay are set to $2 \times 10^{-5}$ and $1 \times 10^{-7}$ , respectively. We train the model for 50 epochs with a batch size of 32. For the industrial dataset MVTec, a frozen WideResNet-50 [23] is used as the backbone for both the encoder and decoder. For fair comparison, each image is resized to $224 \times 224$ without any data augmentation. We select $K = 3$ , $R = 3$ , $\lambda = 0.5$ , and $\alpha = 0.001$ in the framework. During training, the learning rate and the weight decay are selected as $5 \times 10^{-4}$ and $1 \times 10^{-6}$ , respectively. We train the model for 100 epochs with a batch size of 16. All experiments are conducted on a single NVIDIA RTX 3090 24GB GPU. More details can be found in the appendix. + +# 4.1 Main Results + +Tabular OCC Task Tab.1 demonstrates that our framework outperforms previous state-of-the-art (SOTA) methods [29, 6, 40, 38, 58, 42, 53] and achieves a competitive performance with an AP of 78.64 and an AUROC of 91.19. Compared to density-estimation-based methods [6, 38, 58], our framework adopts the property of the invertible mapping to compute the log-likelihood of each input + +Table 1: Comparison of AP/AUROC results with the previous methods on 20 different tabular datasets. Following MCM [53], all datasets are implemented with identical dataset partitioning. 'DSVDD' stands for 'DeepSVDD'. The best result is highlighted in bold. + +
DatasetIForest[29]LOF[6]OCSVM[40]DSVDD[38]DGMM[58]ICL[42]MCM[53]Ours
Arrhythmia50.97/77.3452.77/76.8853.39/76.8960.36/79.4046.68/72.8361.55/81.4561.07/81.1459.63/77.56
Breastw94.49/97.1999.23/99.3799.34/99.3899.24/99.2575.84/76.0596.56/97.2599.52/99.5599.33/99.43
Cardio70.18/92.2083.60/95.6286.14/96.5478.80/93.1330.89/69.5180.37/95.1484.89/96.0386.35/96.21
Census13.57/60.1523.43/71.1022.79/71.5815.14/63.2710.66/45.0619.49/68.3124.20/75.8137.68/80.64
Campaign46.08/72.6944.59/70.6147.49/76.2625.29/52.5424.72/57.8545.06/72.4160.40/89.0255.31/84.49
Cardiotoco.60.36/72.4957.32/64.4966.19/75.2246.02/51.4944.40/61.0159.55/64.7869.93/80.0173.34/81.17
Fraud69.39/96.3040.46/95.7334.90/95.4833.20/95.190.99/72.7159.60/91.0751.41/93.5765.48/94.25
Glass9.52/57.719.23/56.208.96/54.809.12/55.6610.19/59.8225.73/83.5019.05/72.2550.67/86.32
Ionosphere97.68/96.8395.91/94.5489.69/87.6586.70/85.5270.46/70.4197.77/97.1098.02/97.2697.96/97.34
Mammo.33.34/82.2040.63/89.2241.78/90.0341.90/88.7911.41/74.1218.94/65.4847.55/90.5354.32/89.87
NSL-KDD75.32/73.8874.50/54.9675.29/57.0779.35/75.5175.04/61.3651.94/16.8490.85/87.8087.20/85.18
Optdigits15.70/82.3943.63/96.656.92/63.3811.59/76.035.36/47.0616.96/7.8788.85/99.4784.32/97.61
Pima66.62/67.3769.70/69.1370.08/71.3371.65/73.4859.56/61.0869.65/67.2773.89/76.3970.51/74.36
Pendigits51.33/96.6678.55/99.0551.78/96.366.16/45.634.41/39.8240.39/91.4282.58/99.1986.43/99.24
Satellite85.83/80.2680.88/73.9177.78/66.6382.17/76.5968.66/72.5987.99/85.4985.32/79.6284.95/82.00
Satimage-288.46/99.3896.92/99.6191.92/98.1794.27/98.8111.42/89.9481.24/97.9298.50/99.9297.54/99.83
Shuttle91.72/99.6196.01/99.8394.88/99.6998.18/99.5248.75/90.4998.11/99.3594.79/99.7598.63/99.92
Thyroid60.55/92.7178.92/98.5681.34/98.5572.82/98.8710.95/71.4965.75/95.1884.17/98.0488.37/99.21
Wbc85.73/97.1584.12/96.7083.91/96.6783.40/96.3329.59/79.9972.18/90.8088.87/98.1494.72/99.24
Wine24.58/65.7112.53/40.8314.24/4 .8514.76/50.6749.07/88.3356.59/91.5093.35/95.3899.99/100.0
Average59.57/83.0163.15/82.1559.94/81.0155.51/77.7834.45/68.0860.27/81.5574.86/90.4478.64/91.19
+ +Table 2: Anomaly classification results (AUROC) on CIFAR-10 datasets and anomaly classification (image-level AUROC) & localization (pixel-level AUROC) results on MVTec AD dataset. The best and second results are highlighted in bold/underline. + +
Normal ClassAirplaneAuto MobileBirdCatDeerDogFrogHorseShipTruckID MethodMVTec AD
DSVDD[38]61.765.950.859.160.965.767.767.375.973.1PSVDD[52]92.1 95.7
OCGAN[32]75.753.164.062.072.362.072.357.582.055.4PaDiM[11]95.8 97.5
DROCC[15]82.164.869.264.472.866.568.667.579.360.6CutPaste[28]96.1 96.0
HRN-L2[24]80.648.264.957.473.361.074.155.579.971.6DRAEM[56]98.0 97.3
HRN[24]77.369.960.664.471.567.477.464.982.577.3RD4AD[12]98.5 97.8
PLAD[7]82.580.868.865.271.671.276.473.580.680.5PatchCore[37]99.1 98.1
DO2HSC[57]81.382.771.371.272.972.883.075.584.482.0CFLOW[17]98.3 98.6
Ours83.178.469.873.475.170.985.276.282.380.2Ours99.5 98.3
+ +from a prior distribution, achieving superior performance. Compared to the reconstruction-based work [53], our method improves AP by $+3.78$ and AUROC by $+0.75$ , benefiting from the proposed forward reconstruction that transforms abnormal inputs toward the normal manifold. + +Visual OCC Task Tab.2 shows the performance of our model on the natural image dataset, CIFAR-10, and the industrial defect detection dataset, MVtec AD. For CIFAR-10, we follow the standard OCC setting, where only one class is selected as the normal one, and the remaining classes are treated as abnormal. Under this setting, our method achieves the best performance compared to previous SOTA methods [38, 32, 15, 24, 7, 57], particularly when 'airplane', 'cat', 'deer', 'frog', and 'horse' are used as the normal class. For industrial data, our method also achieves competitive performance compared to widely used methods [52, 11, 28, 56, 12, 37, 17]. Specifically, compared to the reconstruction-based method [12], our method improves image-level and pixel-level AUROC by $+1.0$ and $+0.5$ , respectively, as the proposed contraction mapping can constrain reconstructed results to the normal manifold to enhance the performance. + +# 4.2 Ablation Study + +In this section, we investigate the contributions of the main components and impact of key hyperparameters of our approach on both tabular and visual datasets. + +Table 3: Ablation study of our method on tabular datasets using AP/AUROC metrics. We show results on 5 selective datasets and mean results on 20 used datasets. 'RE': reconstruction via contraction mapping. 'DE': density estimation via reversed flow. The best result is highlighted in bold. + +
Model ↓REDECardioGlassThyroidWbcMammo.All Tabular Datasets
A--80.84/93.7115.30/71.0882.31/98.1771.21/93.5331.42/87.2167.44/86.52
B✓-84.25/95.1536.77/85.6586.01/99.0888.98/97.1854.02/89.3875.21/90.32
C-✓76.64/92.1139.63/81.8782.83/98.6590.04/98.3552.76/86.6473.59/88.05
D✓✓86.35/96.2150.67/86.3288.37/99.2194.72/99.2454.32/89.8778.64/91.19
+ +Effectiveness of Main Components Tab.3 demonstrates the performance of four model variants: A. the baseline model with a six-layer MLP (equivalent to the number of flow-based iterations for fair comparison) for the reconstruction; B. A reconstruction-only variant using the proposed contraction mapping flow; C. A density-estimation-only variant using the flow structure; D. Our full method combines forward reconstruction and backward density estimation. The model B significantly outperforms the baseline method, which validates the effectiveness of the reconstruction via the contraction mapping. In addition, model C also surpasses the baseline, demonstrating the effectiveness of density estimation via the flow structure. When combining both, our method achieves AP/AUROC by 78.64/91.9, obtaining a gain of +11.2/4.67 compared to our baseline. Tab.4 shows an ablation study on visual data, where our framework improves our baseline by +4.87 on CIFAR-10 and +1.7/1.1. To this end, the effectiveness of our method is demonstrated in the general OCC-based AD task (visual AD and tabular AD tasks). + +Table 4: Ablation study of our method on CIFAR-10 and MVTec AD, where image-level AUROC is used for the former and image/pixel-level AUROC for the latter. The best result is highlighted in bold. + +
Model ↓REDECIFAR-10MVTec AD
A--72.5997.8/97.2
B✓-76.8899.2/97.9
C-✓74.2798.1/97.5
D✓✓77.4699.5/98.3
+ +![](images/2b572f0b6e7a8e05c45d91049f161bb45837035f1e2c4206316e02c9872fb738.jpg) +Figure 4: T-SNE visualization of feature distribution after CM with $R = 3$ and $K = 2$ on 'Ionosphere' (left) and 'Wbc' (right) datasets. + +Table 5: Impact of hyperparameters $K$ & $R$ in our method,where all tabular and MVtec AD datasets are adopted for ablation. AP/AUROC are leveraged for tabular data and image-level/pixel-level AUROC for industrial data. The best result is highlighted in bold. + +
K→R↓K=1K=2K=3K=4Visual AD +Base: 97.8/97.2K=1K=2K=3K=4
R=160.42/78.7564.81/83.2068.87/85.2067.04/85.33R=197.4/96.897.7/97.298.3/97.698.2/97.7
R=264.34/82.1174.89/88.2175.21/88.9573.44/87.59R=298.3/97.498.9/98.099.1/97.999.2/97.9
R=371.21/86.3278.64/91.1976.42/89.9470.87/85.12R=398.4/97.499.3/98.399.5/98.399.1/98.1
R=474.57/89.3677.03/90.5573.14/87.6073.25/86.47R=498.7/97.899.2/98.198.9/97.998.9/97.7
R=575.38/90.2974.08/88.7668.27/84.8863.44/81.09R=598.6/97.799.0/98.098.5/97.598.3/97.3
+ +Impact of Hyperparameters in Contraction Mapping Flow Tab.5 shows the impact of hyperparameters on 20 tabular datasets and MVtec AD. In the tabular AD task, when $R = 1$ and $K = 1$ , due to the limited depth of $\varphi(\cdot)$ results in fewer parameters and insufficient contraction mapping iterations, leading to suboptimal performance. When $K = 2$ and $R = 3$ , our framework achieves the best performance, with an AP/AUROC of 78.64/91.19. However, when $K \times R$ becomes too large, excessive iterations can cause reconstructions to converge too closely to the fixed point, degrading the performance. For the industrial image-based AD task, when $K = 3$ and $R = 3$ , the best performance of 99.5/98.3 in terms of image/pixel-level AUROC is achieved. Both large and small values of $K \times R$ may degrade the anomaly classification and localization. We provide a T-SNE visualization of the feature distribution after CM with $R = 3$ and $K = 2$ in Fig.4, where abnormal representations are constrained within the normal manifold and are prevented from fully converging to the fixed point. + +# 5 Conclusion + +Recent reconstruction-based methods trained only on normal samples may generalize to certain abnormal inputs, leading to well-reconstructed anomalies and degraded detection performance. To address this issue, we propose to apply the contraction mapping structure to conduct reconstruction, in which normal and abnormal inputs are transformed into the normal manifold via iterations of this mapping to increase the reconstruction error. In addition, the contraction mapping is also designed to be invertible, which means it can estimate the likelihood of the original input based on a Gaussian model in the flow form. Based on the above two points, we propose a bidirectional structure with forward reconstruction and backward density estimation. Extensive experiment evaluations on tabular data, natural image data, and industrial image data demonstrate the effectiveness of our method. + +# 6 Acknowledgments + +This work is supported by the National Natural Science Foundation of China (No. 62471405, 62331003, 62301451), Jiangsu Basic Research Program Natural Science Foundation (BK20241814), Natural Science Foundation of Hebei Province (F2024105029), Suzhou Basic Research Program (SYG202316) and XJTLU REF-22-01-010, XJTLU AI University Research Center, Jiangsu Province Engineering Research Center of Data Science and Cognitive Computation at XJTLU and SIP AI innovation platform (YZCXPT2022103). + +# References + +[1] Byeongkeun Ahn, Chiyoon Kim, Youngjoon Hong, and Hyunwoo J Kim. Invertible monotone operators for normalizing flows. In NeurIPS, 2022. +[2] Lynton Ardizzone, Jakob Kruse, Sebastian Wirkert, Daniel Rahner, Eric W Pellegrini, Ralf S Klessen, Lena Maier-Hein, Carsten Rother, and Ullrich Kothe. Analyzing inverse problems with invertible neural networks. arXiv preprint arXiv:1808.04730, 2018. +[3] Jens Behrmann, Will Grathwohl, Ricky TQ Chen, David Duvenaud, and Jorn-Henrik Jacobsen. Invertible residual networks. In ICML, 2019. +[4] Liron Bergman and Yedid Hoshen. Classification-based anomaly detection for general data. arXiv preprint arXiv:2005.02359, 2020. +[5] Paul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. Mvtec ad-a comprehensive real-world dataset for unsupervised anomaly detection. In CVPR, 2019. +[6] Markus M Breunig, Hans-Peter Kriegel, Raymond T Ng, and Jorg Sander. Lof: identifying density-based local outliers. In SIGMOD, 2000. +[7] Jinyu Cai and Jicong Fan. Perturbation learning based anomaly detection. In NeurIPS, 2022. +[8] Yunkang Cao, Xiaohao Xu, Yuqi Cheng, Chen Sun, Zongwei Du, Liang Gao, and Weiming Shen. Personalizing vision-language models with hybrid prompts for zero-shot anomaly detection. IEEE Transactions on Cybernetics, 2025. +[9] Chun-Hao Chang, Jinsung Yoon, Sercan Ö Arik, Madeleine Udell, and Tomas Pfister. Data-efficient and interpretable tabular anomaly detection. In KDD, 2023. +[10] Yuanhong Chen, Yu Tian, Guansong Pang, and Gustavo Carneiro. Deep one-class classification via interpolated gaussian descriptor. In AAAI, 2022. +[11] Thomas Defard, Aleksandr Setkov, Angelique Loesch, and Romaric Audigier. Padim: A patch distribution modeling framework for anomaly detection and localization. In ICPR, 2021. +[12] Hanqiu Deng and Xingyu Li. Anomaly detection via reverse distillation from one-class embedding. In CVPR, 2022. +[13] Laurent Dinh, Jascha Sohl-Dickstein, and Samy Bengio. Density estimation using real nvp. arXiv preprint arXiv:1605.08803, 2016. + +[14] Zheng Fang, Xiaoyang Wang, Haocheng Li, Jiejie Liu, Qiugui Hu, and Jimin Xiao. Fastrecon: Few-shot industrial anomaly detection via fast feature reconstruction. In ICCV, 2023. +[15] Sachin Goyal, Aditi Raghunathan, Moksh Jain, Harsha Vardhan Simhadri, and Prateek Jain. Drocc: Deep robust one-class classification. In ICML, 2020. +[16] Andrzej Granas, James Dugundji, et al. Fixed point theory. Springer, 2003. +[17] Denis Gudovskiy, Shun Ishizaka, and Kazuki Kozuka. Cflow-ad: Real-time unsupervised anomaly detection with localization via conditional normalizing flows. In WACV, 2022. +[18] Jia Guo, Shuai Lu, Lize Jia, Weihang Zhang, and Huiqi Li. Recontrast: Domain-specific anomaly detection via contrastive reconstruction. In NeurIPS, 2023. +[19] Jia Guo, Shuai Lu, Weihang Zhang, Fang Chen, Huiqi Li, and Hongen Liao. Dinomaly: The less is more philosophy in multi-class unsupervised anomaly detection. In CVPR, 2025. +[20] Songqiao Han, Xiyang Hu, Hailiang Huang, Minqi Jiang, and Yue Zhao. Adbench: Anomaly detection benchmark. In NeurIPS, 2022. +[21] Haoyang He, Jiangning Zhang, Hongxu Chen, Xuhai Chen, Zhishan Li, Xu Chen, Yabiao Wang, Chengjie Wang, and Lei Xie. A diffusion-based framework for multi-class anomaly detection. In AAAI, 2024. +[22] Junwei He, Qianqian Xu, Yangbangyan Jiang, Zitai Wang, and Qingming Huang. Ada-gad: Anomaly-denoised autoencoders for graph anomaly detection. In AAAI, 2024. +[23] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. +[24] Wenpeng Hu, Mengyu Wang, Qi Qin, Jinwen Ma, and Bing Liu. Hrn: A holistic approach to one class learning. In NeurIPS, 2020. +[25] EMMETT Keeler and A Meir. A theorem on contraction mappings. J. Math. Anal. Appl, 28(1): 326-329, 1969. +[26] Daehyun Kim, Sungyong Baik, and Tae Hyun Kim. Sanflow: Semantic-aware normalizing flow for anomaly detection. In NeurIPS, 2023. +[27] Durk P Kingma and Prafulla Dhariwal. Glow: Generative flow with invertible 1x1 convolutions. In NeurIPS, 2018. +[28] Chun-Liang Li, Kihyuk Sohn, Jinsung Yoon, and Tomas Pfister. Cutpaste: Self-supervised learning for anomaly detection and localization. In CVPR, 2021. +[29] Fei Tony Liu, Kai Ming Ting, and Zhi-Hua Zhou. Isolation forest. In ICDM, 2008. +[30] Wei Luo, Yunkang Cao, Haiming Yao, Xiaotian Zhang, Jianan Lou, Yuqi Cheng, Weiming Shen, and Wenyong Yu. Exploring intrinsic normal prototypes within a single image for universal anomaly detection. In CVPR, 2025. +[31] Aihua Mao, Biao Yan, Zijing Ma, and Ying He. Denoising point clouds in latent space via graph convolution and invertible neural network. In CVPR, 2024. +[32] Pramuditha Perera, Ramesh Nallapati, and Bing Xiang. Ocgan: One-class novelty detection using gans with constrained latent representations. In CVPR, 2019. +[33] Yura Perugachi-Diaz, Jakub Tomczak, and Sandjai Bhulai. Invertible densenets with concatenated lipswish. In NeurIPS, 2021. +[34] Chen Qiu, Timo Pfrommer, Marius Kloft, Stephan Mandt, and Maja Rudolph. Neural transformation learning for deep anomaly detection beyond images. In ICML, 2021. +[35] Sridhar Ramaswamy, Rajeev Rastogi, and Kyuseok Shim. Efficient algorithms for mining outliers from large data sets. In SIGMOD, 2000. + +[36] Shebuti Rayana. Odds library. Stony Brook University, Department of Computer Sciences, 2016. +[37] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Scholkopf, Thomas Brox, and Peter Gehler. Towards total recall in industrial anomaly detection. In CVPR, 2022. +[38] Lukas Ruff, Robert Vandermeulen, Nico Goernitz, Lucas Deecke, Shoaib Ahmed Siddiqui, Alexander Binder, Emmanuel Müller, and Marius Kloft. Deep one-class classification. In ICML, 2018. +[39] Robin Schirrmeister, Yuxuan Zhou, Tonio Ball, and Dan Zhang. Understanding anomaly detection with deep invertible networks through hierarchies of distributions and features. In NeurIPS, 2020. +[40] Bernhard Schölkopf, John C Platt, John Shawe-Taylor, Alex J Smola, and Robert C Williamson. Estimating the support of a high-dimensional distribution. Neural computation, 13(7):1443-1471, 2001. +[41] Vikash Sehwag, Mung Chiang, and Prateek Mittal. Ssd: A unified framework for self-supervised outlier detection. arXiv preprint arXiv:2103.12051, 2021. +[42] Tom Shenkar and Lior Wolf. Anomaly detection for tabular data with internal contrastive learning. In ICLR, 2022. +[43] Kihyuk Sohn, Chun-Liang Li, Jinsung Yoon, Minho Jin, and Tomas Pfister. Learning and evaluating representations for deep one-class classification. arXiv preprint arXiv:2011.02578, 2020. +[44] Han Sun, Yunkang Cao, Hao Dong, and Olga Fink. Unseen visual anomaly generation. In CVPR, 2025. +[45] Jihoon Tack, Sangwoo Mo, Jongheon Jeong, and Jinwoo Shin. Csi: Novelty detection via contrastive learning on distributionally shifted instances. In NeurIPS, 2020. +[46] David MJ Tax and Robert PW Duin. Support vector data description. Machine learning, 54: 45-66, 2004. +[47] Xiaolei Wang, Xiaoyang Wang, Huihui Bai, Eng Gee Lim, and Jimin Xiao. Cnc: Cross-modal normality constraint for unsupervised multi-class anomaly detection. In AAAI, 2025. +[48] Xiaolei Wang, Xiaoyang Wang, Huihui Bai, Eng Gee Lim, and Jimin Xiao. Decad: Decoupling anomalies in latent space for multi-class unsupervised anomaly detection. In ICCV, 2025. +[49] Xiaolei Wang, Xiaoyang Wang, Huihui Bai, Eng Gee Lim, and Jimin Xiao. ICC: Intra-cluster contraction for pedestrian anomaly detection under one-class classification setting. IEEE Transactions on Artificial Intelligence, 2025. +[50] Xingwei Yang, Longin Jan Latecki, and Dragoljub Pokrajac. Outlier detection with globally optimal exemplar-based gmm. In ICDM, 2009. +[51] Xincheng Yao, Ruoqi Li, Zefeng Qian, Lu Wang, and Chongyang Zhang. Hierarchical gaussian mixture normalizing flow modeling for unified anomaly detection. In ECCV, 2024. +[52] Jihun Yi and Sungroh Yoon. Patch svdd: Patch-level svdd for anomaly detection and segmentation. In ACCV, 2020. +[53] Jiaxin Yin, Yuanyuan Qiao, Zitang Zhou, Xiangchao Wang, and Jie Yang. Mcm: Masked cell modeling for anomaly detection in tabular data. In ICLR, 2024. +[54] Zhiyuan You, Lei Cui, Yujun Shen, Kai Yang, Xin Lu, Yu Zheng, and Xinyi Le. A unified model for multi-class anomaly detection. In NeurIPS, 2022. +[55] Jiawei Yu, Ye Zheng, Xiang Wang, Wei Li, Yushuang Wu, Rui Zhao, and Liwei Wu. Fastflow: Unsupervised anomaly detection and localization via 2d normalizing flows. arXiv preprint arXiv:2111.07677, 2021. + +[56] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draem-a discriminatively trained reconstruction embedding for surface anomaly detection. In ICCV, 2021. +[57] Yunhe Zhang, Yan Sun, Jinyu Cai, and Jicong Fan. Deep orthogonal hypersphere compression for anomaly detection. In ICLR, 2024. +[58] Bo Zong, Qi Song, Martin Renqiang Min, Wei Cheng, Cristian Lumezanu, Daeki Cho, and Haifeng Chen. Deep autoencoding gaussian mixture model for unsupervised anomaly detection. In ICLR, 2018. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: Our contributions are summarized in the Abstract and Introduction sections + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: Justification: Please see Appendix E + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: We provide two propositions with corresponding lemmas, where their proofs can be founded in Methodology and Appendix C + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: Please see the Implementation Details in Section 4 + +Guidelines: + +- The answer NA means that the paper does not include experiments. + +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. + +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. + +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. + +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example + +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [Yes] + +Justification: As mentioned in the Abstract, our code and data will be made publicly available. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: Please see Datasets in Section 4. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [Yes] + +Justification: We report results averaged across 3 independent runs with different random seeds for all experiments. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). + +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: Please see the Implementation Details in Section 4 + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We have read the NeurIPS Code of Ethics and confirm that our research complies with these ethical standards. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: Anomaly detection is an vital part of industrial quality inspection, disease prediction, safety warning and other fields. Our method can be used for all kinds of data, so it has a positive social impact. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: We think that our paper poses no such risks. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: The datasets utilized in this paper are all open-source, and we have cited the corresponding papers accordingly. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. + +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: Our paper introduces a new anomaly detection framework without releasing new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: Our paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: Our paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigourousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: The LLM is used only for editing, and the core method development in our paper does not involve LLMs as any important. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# A More Implementation Details + +In this section, we provide additional implementation details, including the hyperparameters and network architecture for feature extraction. + +Hyperparameters for Tabular Datasets Tab.6 of the Appendix shows details of 20 tabular anomaly detection (AD) datasets used in the experiment, where different datasets contain significantly different numbers of samples and feature dimensions. It is challenging to set global training hyperparameters to achieve optimal performance across all datasets. To ensure good performance while avoiding excessive hyperparameter tuning, we fix the learning rate as well as the dimension of input and output of the CM across all datasets (see Tab.7). Finally, following previous works [53], we only adjust the batch size and epochs during training for datasets with particularly large or small sample sizes to achieve better performance. + +Table 6: Detailed information of 20 tabular datasets. N: the total number of samples, D: the number of attributes in each dataset. + +
DatasetNDAnomalies
Arrhythmia45227466 (14.6%)
Breastw6839239 (34.9%)
Cardio1,83121176 (9.6%)
Census299,28550018,568 (6.2%)
Campaign41,188624,640 (11.2%)
Cardiotocography2,11421466 (22.0%)
Fraud284,80729492 (0.1%)
Glass21499 (4.2%)
Ionosphere35133126 (35.8%)
Mammography11,1836260 (2.3%)
NSL-KDD148,51712277,054 (51.8%)
Optdigits5,21664150 (2.8%)
Pima7688268 (34.8%)
Pendigits6,87016156 (2.2%)
Satellite6,435362,036 (31.6%)
Satimage-25,8033671 (1.2%)
Shuttle49,09793,511 (7.1%)
Thyroid3,772693 (2.4%)
Wbc2783021 (7.5%)
Wine1291310 (7.7%)
+ +Table 7: Traning hyperparameters for 20 tabular data. 'Lr': learning rate. 'BS': batch size. 'C': the dimension of input and output of CM. + +
DatasetLrEpochBSC
Arrhythmia1e-51006432
Breastw1e-51006432
Cardio1e-51006432
Census1e-515051232
Campaign1e-515051232
Cardiotocography1e-51506432
Fraud1e-515051232
Glass1e-51006432
Ionosphere1e-51506432
Mammography1e-510051232
NSL-KDD1e-510051232
Optdigits1e-51506432
Pima1e-51506432
Pendigits1e-51506432
Satellite1e-515025632
Satimage-21e-515025632
Shuttle1e-515025632
Thyroid1e-515025632
Wbc1e-51506432
Wine1e-51506432
+ +Feature Extractor Following previous work [57, 53], we also adopt a three-layer MLP with LeakyReLU activation to extract the deep representation of tabular data (see Fig.5 (a)), where the dimension of the output and input in each layer is consistent with previous work [57]. Next, as shown in Fig.5 (b), we leverage a simple three-layer CNN to extract the deep representation of natural image data, where the setting of the network follows work [57]. + +Network Details for Industrial Defect Detection Industrial defect detection is a primary application area of anomaly detection that has a well-established standard. Therefore, we adopt a baseline model to obtain a baseline performance (see Tab.5 in our main manuscript). The baseline model adopts a frozen encoder and a learnable decoder, which is similar to RD4AD [12]. Unlike RD4AD, we removed the MMF and OCE modules from our baseline framework, resulting in a more fundamental performance. Based on this baseline framework, the contraction mapping flow $\varphi (\cdot)$ is applied after the feature encoder (see Fig.5 (c)). The specific pipeline can be summarized as: given an image $\mathbf{I}\in \mathbb{R}^{H_0\times W_0\times 3}$ , the frozen encoder $\mathcal{E}(\cdot)$ encodes $\mathbf{I}$ into multi-layer features $\{\mathbf{x}_l\}_{l = 1}^L$ , each $\mathbf{x}_l\in \mathbb{R}^{H_l\times W_l\times C_l}$ denotes the $l$ -th layer feature. We select $l_{1}$ -th, $l_{2}$ -th, $l_{3}$ -th layer features as encoded features, denoted by $\{\mathbf{x}_1,\mathbf{x}_2,\mathbf{x}_3\}$ . Next, we down-sample the size of $\mathbf{x}_1,\mathbf{x}_2$ to $H_{l_3}\times W_{l_3}$ . Next, we concatenate encoded features in the channel dimension, denoted by $[\mathbf{x}_1,\mathbf{x}_2,\mathbf{x}_3]\in \mathbb{R}^{H_{l_3}\times W_{l_3}\times (C_{l_1} + C_{l_2} + C_{l_3})}$ , and apply a linear projection $\Phi (\cdot)$ to fuse them, i.e., $\mathbf{x} = \Phi ([\mathbf{x}_1,\mathbf{x}_2,\mathbf{x}_3])\in \mathbb{R}^{H_{l_3}\times W_{l_3}\times C_{l_3}}$ . Then, $\mathbf{x}$ is input to our contraction mapping flow $\varphi (\cdot)$ , obtaining latent variable $\mathbf{z}$ . Under the reconstruction branch, we apply a learnable decoder to decode $\mathbf{z}$ into decoded features $\{\widehat{\mathbf{x}}_1,\widehat{\mathbf{x}}_2,\widehat{\mathbf{x}}_3\}$ . We apply the cosine similarity loss to replace the original $\mathcal{L}_{\mathrm{rec}}$ + +![](images/7026b9a4651db0b609d3835bce3f8064ca4741d4c94fb75533cb2a94362176a3.jpg) +(a) Encoder for Tabular Data +Figure 5: Different feature extractors are used to extract deep representations of different data types. (a): Three-layer MLP with LeakyReLU activation is adopted for tabular data. (b): Three-layer CNN with Batch normalization and ELU activation is used for natural image data. (c): Our proposed method is based on a general baseline method for industrial defect detection. + +![](images/0a81230ea286f2461fd9222e80292a2ba26e3ae184605c09be3ebcb6c58dc6c6.jpg) +(b) Encoder for Natural Image Data + +![](images/37d70bc0c4d85774274f363b3b696dd5b1bd76276cace3e9b0036fe41f3d5e63.jpg) +(c) Framework for Industrial Defect Detection + +(Eq.(1) in the main manuscript), i.e., + +$$ +\mathcal {L} _ {\mathrm {r e c}} = \sum_ {i = 1} ^ {3} \left(1 - \frac {\operatorname {F l a t} \left(\mathbf {x} _ {i}\right) \cdot \operatorname {F l a t} \left(\widehat {\mathbf {x}} _ {i}\right)}{\| \operatorname {F l a t} \left(\mathbf {x} _ {i}\right) \| _ {2} \| \operatorname {F l a t} \left(\widehat {\mathbf {x}} _ {i}\right) \| _ {2}}\right), \tag {9} +$$ + +where $\operatorname{Flat}(\cdot)$ is the flatten operator. The density estimation branch adopts patch embedding features to fit the Gaussian prior distribution $\pi(\cdot)$ and uses $\varphi^{-1}(\cdot)$ to obtain the likelihood of each patch embedding feature. During inference, we adopt a combination of both the cosine distance and the likelihood of each patch embedding feature as the patch-level anomaly score. Through the optimization of Eq. (9), contraction mapping flow $\varphi(\cdot)$ can transform any input $\mathbf{x}$ onto the normal manifold, which ensures that the decoded features $\{\hat{\mathbf{x}}_1, \hat{\mathbf{x}}_2, \hat{\mathbf{x}}_3\}$ are on the normal manifold, increasing the reconstruction error. + +# B More Contraction Mapping Network Details + +According to Section 3.1.2 in the main manuscript, the structure of contraction mapping can be written as: + +$$ +\varphi (\cdot) = F _ {R} \circ F _ {R - 1} \dots F _ {1} (\cdot), +$$ + +where each $F_{r}(\cdot) = f_{K}^{r}\circ f_{K - 1}^{r}\circ \dots f_{1}^{r}(\cdot)$ . Each contraction mapping unit $f_{k}^{r}(\cdot)$ is based on the 1-Lipchitz invertible neural network $\mathbf{G}$ , i.e., + +$$ +f (x) = \left(\frac {\mathbf {I d} + \mathbf {G}}{2}\right) ^ {- 1} (x) - x, +$$ + +where $\mathbf{Id}$ denotes the identity function. We adopt i-DenseNet [33] to parametrize $\mathbf{G}$ . Following [1, 2, 31], $\mathbf{G}$ is designed as a Lipschitz-continuous function with Lipschitz constant $\eta < 1$ , where $\| \mathbf{G}(x_1) - \mathbf{G}(x_2)\|_2 \leq \eta \| x_1 - x_2\|_2$ . Based on $\mathbf{G}$ , $f(\cdot)$ is monotonic with Lipschitz constant $\eta_f < 1$ so $f(\cdot)$ is an invertible mapping according to Banach fixed point theorem [16] (the proof can be found in [1]). Based on $\mathbf{G}$ and Eq. (2), we can model $f_k^r(\cdot)$ , which is named as 'Lipschitz Layer'. We then apply the LipSwish activation function to the output of each $f_k^r(\cdot)$ . The LipSwish function is written as: + +$$ +\operatorname {L i p S w i s h} (x) = \frac {x}{1 . 1 * (1 + \exp (- \beta x))}, +$$ + +# C Supplementary Proof + +In this section, we supplement the detailed proofs of Lemma 1 and Lemma 2 used in our main manuscript. + +Lemma 3 (Convergence of Iterations): Let $f(\cdot)$ be a contraction mapping with $\eta \in [0,1)$ . For any initial input $x_0 \in \mathbb{R}^d$ , we define the sequence $\{x_n\}$ by $x_{n + 1} = f(x_{n})$ for $n = 1,2,\dots$ . Then $\lim_{n\to \infty}x_n = x^*$ , where $x^{*}$ is unique and is called a fixed point of $f(\cdot)$ . + +Proof. We firstly prove that $\{\mathbf{x}_n\}$ is a Cauchy sequence. For any $m > n$ , we have: + +$$ +\begin{array}{l} \left\| x _ {m} - x _ {n} \right\| _ {2} = \left\| x _ {n} - x _ {m} \right\| _ {2} \\ \leq \left\| x _ {n} - x _ {n + 1} \right\| _ {2} + \left\| x _ {n + 1} - x _ {n + 2} \right\| _ {2} + \dots + \left\| x _ {m - 1} - x _ {m} \right\| _ {2}. \\ \end{array} +$$ + +Next, for each term $\| x_{n + k} - x_{n + k + 1}\| _2$ in this sum: + +$$ +\begin{array}{l} \left\| x _ {n + k} - x _ {n + k + 1} \right\| _ {2} = \left\| f \left(x _ {n + k - 1}\right) - f \left(x _ {n + k}\right) \right\| _ {2} \\ \leq \eta \cdot \| x _ {n + k - 1} - x _ {n + k} \| _ {2} \\ \leq \eta^ {2} \cdot \left\| x _ {n + k - 2} - x _ {n + k - 1} \right\| _ {2} \\ \end{array} +$$ + +中 中 + +$$ +\leq \eta^ {n + k} \cdot \| x _ {0} - x _ {1} \| _ {2}. +$$ + +Therefore, based on the above two inequalities, we have: + +$$ +\begin{array}{l} \| x _ {m} - x _ {n} \| _ {2} \leq \sum_ {k = 0} ^ {m - n - 1} \| x _ {n + k} - x _ {n + k + 1} \| _ {2} \leq \sum_ {k = 0} ^ {m - n - 1} \eta^ {n + k} \cdot \| x _ {0} - x _ {1} \| _ {2} \\ = \eta^ {n} \cdot \| x _ {0} - x _ {1} \| _ {2} \cdot \sum_ {k = 0} ^ {m - n - 1} \eta^ {k} = \eta^ {n} \cdot \| x _ {0} - x _ {1} \| _ {2} \cdot \frac {1 - \eta^ {m - n}}{1 - \eta} \\ \leq \eta^ {n} \cdot \| x _ {0} - x _ {1} \| _ {2} \cdot \frac {1}{1 - \eta}. \\ \end{array} +$$ + +As $n \to \infty$ , $\eta^n \to 0$ (since $\eta < 1$ ), so $\| x_m - x_n \| \to 0$ for any $m > n$ as $n \to \infty$ . This proves that $\{x_n\}$ is a Cauchy sequence. Since $\mathbb{R}^d$ with the Euclidean metric is complete, the sequence converges to a certain point $x^* \in \mathbb{R}^d$ , i.e. $\lim_{n \to \infty} x_n = x^*$ . Next, by continuity of $f$ (which follows from the contraction property) and the definition of $\{x_n\}$ : + +$$ +f (x ^ {*}) = f \left(\lim _ {n \rightarrow \infty} x _ {n}\right) = \lim _ {n \rightarrow \infty} f (x _ {n}) = \lim _ {n \rightarrow \infty} x _ {n + 1} = x ^ {*}. +$$ + +To this end, we prove that $f(x^{*}) = x^{*}$ , i.e., $x^{*}$ is a unique fixed point of $f(\cdot)$ . + +Lemma 4 Let $\varphi_K(\cdot) = f_K\circ f_{K - 1}\circ \dots f_1(\cdot)$ , where each $f_{k}$ is contraction mapping with $\eta_k\in [0,1)$ , then $\varphi_K(\cdot)$ is a contraction mapping with Lipschitz constant $\eta_{\varphi}\leq \eta_{1}\cdot \eta_{2}\cdot \cdot \cdot \eta_{K}$ . + +Proof. First of all, let us prove for a base case with $K = 2$ . Let $\varphi_2(\cdot) = f_2 \circ f_1(\cdot)$ be the composition of two contraction mappings. For any two points $x_1, x_2 \in \mathbb{R}^d$ , we have: + +$$ +\left\| \varphi_ {2} \left(x _ {1}\right) - \varphi_ {2} \left(x _ {2}\right) \right\| _ {2} = \left\| f _ {2} \left(f _ {1} \left(x _ {1}\right)\right) - f _ {2} \left(f _ {1} \left(x _ {2}\right)\right) \right\| _ {2}. +$$ + +Since $f_{2}$ is a contraction mapping with constant $\eta_{2}$ : + +$$ +\left\| f _ {2} \left(f _ {1} \left(x _ {1}\right)\right) - f _ {2} \left(f _ {1} \left(x _ {2}\right)\right) \right\| _ {2} \leq \eta_ {2} \| f _ {1} \left(x _ {1}\right) - f _ {1} \left(x _ {2}\right) \| _ {2}. \tag {10} +$$ + +Since $f_{1}$ is a contraction mapping with constant $\eta_{1}$ : + +$$ +\eta_ {2} \| f _ {1} \left(x _ {1}\right) - f _ {1} \left(x _ {2}\right) \| _ {2} \leq \eta_ {2} \cdot \eta_ {1} \| x _ {1} - x _ {2} \| _ {2}. \tag {11} +$$ + +Base on the above Eq. (10) and Eq. (11), we have: + +$$ +\left\| \varphi_ {2} (x _ {1}) - \varphi_ {2} (x _ {2}) \right\| _ {2} \leq \eta_ {2} \cdot \eta_ {1} \left\| x _ {1} - x _ {2} \right\| _ {2}, +$$ + +which proves that $\varphi_{2}(\cdot)$ is contraction mapping with $\eta_{\varphi}\leq \eta_1\cdot \eta_2$ . Next, we apply mathematical induction to prove the general case. We assume the lemma holds for $K - 1$ mappings, i.e., $\varphi_{K - 1}(\cdot) = f_{K - 1}\circ \dots \circ f_1(\cdot)$ is a contraction mapping with Lipschitz constant $\eta_{\varphi_{K - 1}}\leq \eta_1\cdot \eta_2\dots \eta_{K - 1}$ . We consider $\varphi_K(\cdot) = f_K\circ \varphi_{K - 1}(\cdot)$ . For any $x_{1},x_{2}\in \mathbb{R}^{d}$ , we have: + +$$ +\left\| \varphi_ {K} \left(x _ {1}\right) - \varphi_ {K} \left(x _ {2}\right) \right\| _ {2} = \left\| f _ {K} \left(\varphi_ {K - 1} \left(x _ {1}\right)\right) - f _ {K} \left(\varphi_ {K - 1} \left(x _ {2}\right)\right) \right\| _ {2}. \tag {12} +$$ + +Then, based on the inductive hypothesis and the definition of contraction mapping, we have: + +$$ +\eta_ {K} \| \varphi_ {K - 1} (x _ {1}) - \varphi_ {K - 1} (x _ {2}) \| _ {2} \leq \eta_ {K} \left(\eta_ {1} \cdot \eta_ {2} \dots \eta_ {K - 1}\right) \| x _ {1} - x _ {2} \| _ {2}. \tag {13} +$$ + +Combining Eq. (12) and Eq. (13), one inequality can be obtained: + +$$ +\left\| \varphi_ {K} \left(x _ {1}\right) - \varphi_ {K} \left(x _ {2}\right) \right\| _ {2} \leq \left(\eta_ {1} \cdot \eta_ {2} \dots \eta_ {K}\right) \| x _ {1} - x _ {2} \| _ {2}. +$$ + +Since each $\eta_{k}\in [0,1)$ , $\eta_{\varphi}$ must also be in $[0,1)$ , i.e., $0\leq \eta_{1}\cdot \eta_{2}\dots \eta_{K} < 1$ . + +# D Supplementary Experiments + +Sensitivity of Balancing the Loss Terms The hyperparameter $\lambda$ in Eq.(7) of the main manuscript balances the reconstruction loss $\mathcal{L}_{\mathrm{rec}}$ and the maximum likelihood estimation loss $\mathcal{L}_{\mathrm{MLE}}$ . To investigate its impact, we vary $\lambda$ and evaluate the performance, as shown in Tab. 8 of the appendix. For the 20 tabular datasets, $\lambda = 0.5$ yields the best AP/AUROC, 78.64/91.19. Slightly higher ( $\lambda = 0.6$ ) or lower ( $\lambda = 0.4$ ) values show comparable but slightly degraded performance, indicating that the performance is stable around $\lambda = 0.5$ . For the MVtec AD dataset, $\lambda = 0.4$ provides the highest image-level AUROC, while $\lambda = 0.5$ achieves the best pixel-level AUROC. Too small $\lambda$ causes $\varphi^{-1}(\cdot)$ to not fully capture the real distribution of input, degrading the performance of density estimation. Too large a value of $\lambda$ may disturb reconstruction training. Therefore, the choice of $\lambda = 0.5$ (as used for both tabular and MVtec AD in our main experiments) achieves robust performance across both types of datasets. + +Table 8: Anomaly detection results when varying different $\lambda$ values for balancing ${\mathcal{L}}_{\text{rec }}$ and ${\mathcal{L}}_{\mathrm{{MLE}}}$ . We adopt image-level AUROC metric for 20 tabular datasets and image/pixel-level AUROC for industrial MVTec AD datasets. Bold/underline values indicate the best/runner-up. + +
Datasetsλ=0.2λ=0.3λ=0.4λ=0.5λ=0.6λ=0.7λ=0.8
Tabular Data77.86/91.1278.29/91.1678.19/91.1478.64/91.1978.55/91.2178.35/91.0978.13/91.10
MVTec AD99.1/98.199.3/98.199.6/98.299.5/98.399.3/98.299.4/98.398.9/97.9
+ +Sensitivity of Weight Coefficient $\alpha$ The weight coefficient $\alpha$ in the anomaly score (Eq.(8) in the main manuscript) controls the contribution of the log-likelihood term relative to the reconstruction error. We evaluated the effect of different $\alpha$ values, with results presented in Tab. 9 of the Appendix. We note that the scale of reconstruction error is generally a very small value, while the scale of log likelihood is much larger than the reconstruction error. Therefore, using $\alpha$ to control the scale log likelihood is necessary for our unified framework that combines these two different paradigms. For the 20 tabular datasets, an $\alpha$ of 0.01 achieves the optimal performance by 78.64/91.19. Performance degrades if $\alpha$ is too large or too small because of disturbed reconstruction or density estimation. Similarly, for the MVTec AD dataset, $\alpha = 0.001$ also results in the best image-level and pixel-level AUROC. Again, performance drops with much larger or smaller $\alpha$ values. This analysis highlights that the density estimation component, when weighted appropriately by $\alpha$ , significantly contributes to the final anomaly score. An $\alpha$ value of 0.001 appears to be a generally effective choice for both types of datasets according to this ablation. + +Table 9: Anomaly detection results with different weight coefficient $\alpha$ in anomaly score. We adopt the image-level AUROC metric for 20 tabular datasets and the image/pixel-level AUROC for industrial MVTec AD datasets. Bold/underline values indicate the best/runer-up. + +
αα = 1α = 0.5α = 0.1α = 0.05α = 0.01α = 0.005α = 0.001
Tabular Data74.48/88.6276.40/89.7177.26/90.9778.05/91.0978.64/91.1978.21/91.1576.89/90.88
αα = 0.1α = 0.05α = 0.01α = 0.005α = 0.001α = 0.0005α = 0.0001
MVTec AD98.3/97.698.6/97.698.9/98.099.3/98.299.5/98.399.3/98.199.2/98.0
+ +# E Limitations + +While our method shows strong AD performance on tabular and image datasets, its current scope is primarily focused on these common data types. It has not yet been extended to critical domains like graph and time-series data, where optimal AD typically requires specialized network architectures to handle their unique structural and dependency characteristics. Future work will involve adapting our URD framework to these distinct modalities by incorporating tailored design principles, aiming to progress toward a unified anomaly detection model. + +# F Some Questions and Answers regarding Motivation and Methodology + +# F.1 Intuitive Understanding of Proposition 1 + +Proposition 1 mainly focuses on establishing a direct causal link between our optimization and the fixed point's location. The proposition states that $\| \mathbf{x}^* - \mathbf{x}\|_2 \leq \mathcal{L}_{\mathrm{rec}} / (1 - \eta)$ , which directly and rigorously demonstrates that by minimizing the reconstruction loss $\mathcal{L}_{\mathrm{rec}}$ on normal samples $\mathbf{x}$ , we are guaranteed to bound the distance to the fixed point $\mathbf{x}^*$ . + +# F.2 Why Apply LipSwish Activation Function rather than ReLU? + +We note that the choice of LipSwish is deliberate and critical. LipSwish guarantees the reversibility of the entire network, while ReLU cannot guarantee it. In this work, we apply an invertible network $\varphi$ as the foundation, where LipSwish activation function is invertible and ensures the invertibility of $\varphi$ . In contrast, $\operatorname{ReLU}(x) = \operatorname{Max}(0, x)$ maps all negative inputs to zero, which creates a many-to-one mapping that is mathematically non-invertible. We adopt i-DenseNet [33] to parameterize our mapping $\mathbf{G}$ in Eq.(2). According to [33], using LipSwish is a standard and effective choice in this context, providing more expressive power than simpler activations. LipSwish is also smooth, continuously differentiable, and invertible, which are essential properties for stable training of INNs. + +# F.3 How does Our Contraction Mapping Work in Different Data Distributions? + +Since the contraction mapping iteratively transforms data toward a fixed point derived by training the model on normal data, what if the normal data distribution itself is chaotic? Or if the normal data distribution is ring-shaped or U-shaped? Can the fixed point be located in an appropriate position? Will the reconstruction discrepancy identification work well in such cases? + +![](images/ce5e00c7043c436391ba99277f3fab976812e6b89831b0a4b3e1a2e9e7c23c42.jpg) +(a) Cardio (Vanilla) + +![](images/626650075a73be6a1b2ae363839c088a1068ea40b250a7dcf2f2b442c0988957.jpg) +(b) Pima (Disconnected) +Figure 6: T-SNE visualization of data distribution shapes and corresponding fixed point positions for four types of tabular datasets + +![](images/3a8ecbf49bada762c1f277b1320609c2a32f2997b86e3f1a64ebe6e0bb8f8798.jpg) +(c) Thyroid (Ring-shaped) + +![](images/4dcace6987f0866a16da47bff38fcd89f0fadbb98ec96e3ffeff5818304bb3c9.jpg) +(d) Wbc (U-shaped) + +Sometimes, extreme and complex distributions may make the reconstruction-only part ineffective, which is also the reason why we introduce a density estimation process to collaborate with the reconstruction process. Following the above questions, we discussed several situations and provided special cases of difficult reconstruction. + +Vanilla Distribution. In fact, the manuscript visualizes the position of the fixed point in different normal distributions. Generally, the fixed point is not completely located at the geometric center of the distribution, and sometimes, due to different data or training settings, fixed points may even fall on the edges of the distribution (see Fig.6 (a)). + +Disconnected Distribution. As shown in Fig.6 (b), the normal distribution is relatively scattered and chaotic, and the fixed point is located at the edge of one of the sub distributions. However, because the abnormal distribution is far from the normal one, reconstruction error is still an effective criterion, achieving a good performance under a reconstruction-only setting. + +Ring-shaped Distribution. There is currently no typical ring-shaped normal distribution in the used datasets. Fig.6 (b) and (c) show multi-ring and irregular-ring structures, respectively. In fact, through multiple adjustments to the training hyperparameters and random seed, we found that fixed points may be located in some data-free areas (central regions of the ring) or within the distribution (internal regions of the ring). If the anomaly is located in the central area of the ring, this method may theoretically fail, but this situation has not been found in experiments yet. + +U-shaped Distribution. As shown in Fig.6 (d), the normal distribution is U-shaped and the fixed point is located at the bottom of 'U'. We found that after adjusting the random seed or training hyperparameters, the position of the fixed point will change and may not necessarily be located at the bottom position. However, the same thing is true: as long as enough training epochs are set, the fixed point is located inside or at the edge of U. CM will achieve good and stable performance as long as the abnormal data is in a distant external area. + +In the reconstruction-only experiments, we found that if the abnormal data is very close to the normal distribution in terms of spatial position, the reconstruction errors generated by CM for normal and abnormal data are very close, resulting in false negatives and degrading performance. Of course, this is also a challenge for all reconstruction-based methods. In addition, since fixed points may appear at any position on a normal manifold, they may be closer to some anomalies than other normal points, leading to false negatives. Finally, in the most extreme case, our framework will fail when a few anomalies are within the normal distribution. However, it should be noted that almost all existing OCC methods cannot address this type of problem. This combined approach makes our method robust even for complex data distributions. + +# F.4 Trade-off between Convergence to a Fixed Point and Bijectivity via Network Design + +Our method focuses on leveraging a finite number of mapping compositions to simulate iteration of a single contraction mapping, rather than directly using iteration of a single contraction mapping. + +Specifically, according to Proposition 2, we apply $\varphi_K(\cdot) = f_K \circ f_{K-1} \circ \dots \circ f_1(\cdot)$ to simulate a finite number of iterations of $f$ , rather than directly iterating $f$ , where each $f_k$ has its own parameters $\theta_k$ and Lipschitz constant $\eta_k$ . Lipschitz constant $\eta_\varphi \leq \eta_1 \cdot \eta_2 \cdots \eta_K < 1$ ensures contracting anomalies towards the normal distribution. We leverage $\mathcal{L}_{\mathrm{rec}} = \| \varphi_K(\mathbf{x}) - \mathbf{x} \|_2$ to train the entire network $\varphi_K$ , rather than firstly training a single $f$ and then iterating it a few times. From an optimization perspective, $\varphi_K$ optimized by $\mathcal{L}_{\mathrm{rec}}$ tends to restore normal input to normal output instead of contracting all inputs (normal and abnormal) to one fixed point. From a mathematical perspective, a finite and small $K$ value gives $\varphi_K$ the ability to contract the input to the normal manifold. Still, it does not destroy the reversibility of $\varphi_K$ . In summary, selecting $K$ as a finite value, the contraction properties of $\varphi_K$ and the training objective jointly ensure that it can map anomalies to normal manifolds. Still, it will not completely shrink to a very small region or even a point and destroy its reversibility. + +We intentionally keep $K$ and $R$ small in actual experiments to prevent over-contraction. This allows us to benefit from the "pull" of the contraction towards the normal manifold (which increases reconstruction error for anomalies) while not destroying the reversibility of our INN. The trade-off is managed by the choice of $K$ and $R$ , which we study empirically in Table 5. The results show that a moderate number of iterations yields the best performance, validating our handling of this trade-off. + +# F.5 The Risk of CM Network Collapsing to the Identity Mapping + +The degradation towards identity mapping is a critical concern for contraction mapping trained with reconstruction loss. We show two explicit mechanisms to prevent this: one is the structure of the contraction mapping unit, and the other is the regularity of our backward density estimation. + +(1) According to Eq.(2), $f(x) = \left(\frac{\mathbf{Id} + \mathbf{G}}{2}\right)^{-1}(x) - x$ , where $\mathbf{G}$ is invertible and $\mathbf{Id}$ is identity mapping. If $f$ degrades into an identity mapping under reconstruction loss, we have $\left(\frac{\mathbf{Id} + \mathbf{G}}{2}\right)^{-1}(x) - x = x$ , which means $\left(\frac{\mathbf{Id} + \mathbf{G}}{2}\right)^{-1}(x) = 2x$ . Based on the definition of inverse mapping, we must have $\frac{\mathbf{Id} + \mathbf{G}}{2}(2x) = x$ . This means $\mathbf{Id}(2x) + \mathbf{G}(2x) = 2x$ . Then, we can get $\mathbf{G}(2x) = 0$ to make $f(x)$ an identity mapping. Paradoxically, $\mathbf{G}$ is invertible and a one-to-one mapping. Therefore, in terms of the structure of $f$ , it is difficult to degrade into an identity mapping under the optimization of reconstruction loss. +(2) The backward density estimation loss $\mathcal{L}_{\mathrm{MLE}}$ provides a powerful regularizer against identity collapse. In the backward process, $\mathcal{L}_{\mathrm{MLE}}$ pushes $\varphi^{-1}$ to be a mapping that transforms a basic Gaussian distribution $\pi(z)$ to the (typically complex) input distribution $p(x)$ . An identity mapping could only achieve this if $p(x)$ is also a Gaussian distribution, which is never the case. This forces $\varphi^{-1}$ to learn a non-trivial, meaningful transformation. + +# F.6 The Conflict of Optimization Objectives of Reconstruction and Density Estimation + +According to reconstruction loss (1) and MLE loss (6), pushes $\mathbf{z}$ to be close to $\mathbf{x}$ , while $\mathcal{L}_{\mathrm{MLE}}$ pushes the distribution of $\mathbf{z}$ to be a Gaussian distribution. We need to clarify that both forward reconstruction (RE) and backward density estimation (DE) are indispensable, although they may seem contradictory. We have also designed corresponding trade-off schemes in the manuscript. + +When only using RE, if some anomalies are very close to the normal manifold or the obtained fixed point in terms of spatial position, this causes small reconstruction errors and false negatives. In addition, the distribution of normal data may be very complex, chaotic, and disconnected (see Fig.6). In this case, fixed points may fall on the edges of the distribution, or even in areas without data. In this case, reconstruction error cannot be used as a good criterion. To address these issues, we introduce a density estimation process to probabilistically identify anomalies under these special circumstances. DE would assign a high likelihood to points in areas with dense data points and a low likelihood to others with low density. An anomaly is thus an input that is both far from its reconstruction (high reconstruction score) and statistically unlikely to have a high likelihood (low density estimation score). This synergy makes our method robust. As shown in Fig.2 and Eq.5, after forward reconstruction process (RE), we apply a stop-gradient operation $\mathrm{sg}(\cdot)$ in learning of Gaussian distribution $\pi (\mathbf{z})$ , which allows $\pi (\mathbf{z})$ to be learned independently without affecting the reconstruction training. In addition, the hyperparameter $\lambda$ in our total loss $\mathcal{L}_{\mathrm{total}} = \mathcal{L}_{\mathrm{rec}} + \lambda \mathcal{L}_{\mathrm{MLE}}$ explicitly controls this trade-off. Our sensitivity analysis on $\lambda$ in Tab.5 shows that a balanced value $(\lambda = 0.5)$ performs best, validating that the two objectives are complementary rather than purely conflicting. The reconstruction provides an error-based score, while the flow provides a likelihood-based score, and their combination is more powerful than either alone. \ No newline at end of file diff --git a/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/images.zip b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..33e743378d16f3421b1f14efc1549ca93203d44d --- /dev/null +++ b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a030f83b1f5e5364c642c968ea6e577ed864c27670d9cdf16170174c0ccc6957 +size 912729 diff --git a/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/layout.json b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..efc8e850a9b7bd87d005c9b201de2778b38575d2 --- /dev/null +++ b/NeurIPS/2025/Unifying Reconstruction and Density Estimation via Invertible Contraction Mapping in One-Class Classification/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19c5274659d99edf8642af6e99bf60fdd9bc5afdfebcb915bb60c0da7c000a73 +size 1082639 diff --git a/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/2f39e357-fda7-4530-9985-b20f7cf6ea7c_content_list.json b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/2f39e357-fda7-4530-9985-b20f7cf6ea7c_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..2f79813f787373892eb39b2d36b721283ad28b4e --- /dev/null +++ b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/2f39e357-fda7-4530-9985-b20f7cf6ea7c_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:537673ed0989a41785ccbcdc8d63e1ae324ca509814e34bccdb7a96e0775a619 +size 195719 diff --git a/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/2f39e357-fda7-4530-9985-b20f7cf6ea7c_model.json b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/2f39e357-fda7-4530-9985-b20f7cf6ea7c_model.json new file mode 100644 index 0000000000000000000000000000000000000000..cfd0bd08a56edc0362124f3954022d09eaea9967 --- /dev/null +++ b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/2f39e357-fda7-4530-9985-b20f7cf6ea7c_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7d42f815fc89a35906f1b7c6f646a4de5a69036320861563fca265379db6f14 +size 246851 diff --git a/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/2f39e357-fda7-4530-9985-b20f7cf6ea7c_origin.pdf b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/2f39e357-fda7-4530-9985-b20f7cf6ea7c_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..b4a95aebab5062f1c2a616ac731413bcee92ba2d --- /dev/null +++ b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/2f39e357-fda7-4530-9985-b20f7cf6ea7c_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:748b5e0ade9116fb726cf34e88adc780dcb97d952b3d70f3b1822b3a1609f266 +size 1907823 diff --git a/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/full.md b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/full.md new file mode 100644 index 0000000000000000000000000000000000000000..e2355eef819459fc30b1c52d3a9f6d7143543b99 --- /dev/null +++ b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/full.md @@ -0,0 +1,967 @@ +# Unifying Symbolic Music Arrangement: Track-Aware Reconstruction and Structured Tokenization + +Longshen Ou\* Jingwei Zhao\* Ziyu Wangb,Gus Xia Qihao Liang Torin Hopkins Ye Wang + +$^{\natural}$ Sound and Music Computing Lab, School of Computing, NUS + $^{\flat}$ Courant Institute of Mathematical Sciences, New York University + $^{\sharp}$ Music X Lab, MBZUAI + +# Abstract + +We present a unified framework for automatic multitrack music arrangement that enables a single pre-trained symbolic music model to handle diverse arrangement scenarios, including reinterpretation, simplification, and additive generation. At its core is a segment-level reconstruction objective operating on token-level disentangled content and style, allowing for flexible any-to-any instrumentation transformations at inference time. To support track-wise modeling, we introduce $REMI-z$ , a structured tokenization scheme for multitrack symbolic music that enhances modeling efficiency and effectiveness for both arrangement tasks and unconditional generation. Our method outperforms task-specific state-of-the-art models on representative tasks in different arrangement scenarios—band arrangement, piano reduction, and drum arrangement, in both objective metrics and perceptual evaluations. Taken together, our framework demonstrates strong generality and suggests broader applicability in symbolic music-to-music transformation. $^{1}$ + +# 1 Introduction + +Music arrangement is the art of adapting compositions for performance contexts that differ from their original forms [4]. It plays a central role in many music creation process, including professional production, live performance, music education, and digital content creation. Automating this process can expand music accessibility and accelerate music creation. Although arrangement forms vary—e.g., rewriting for different instruments (reinterpretation) [9], simplifying for solo performance (reduction) [29, 30], or adding new tracks (additive generation) [20, 19]—they share a common structure: generating new music tracks conditioned on existing ones under explicit content and instrument constraints. However, prior work typically addresses each task independently [42, 30, 29, 19], using specialized model architectures and training schemes. Such designs lack cross-task generality, increase implementation cost, and fail to leverage the musical knowledge learned by large-scale pre-trained symbolic models that could potentially improve the arrangement quality. + +Meanwhile, generative modeling of symbolic music, i.e., music in notation-based formats, has advanced rapidly with large-scale pre-trained models that capture rich musical styles and structures via autoregressive modeling [17, 8, 23, 37, 32, 22]. Inspired by natural language processing, these models scale to billions of parameters and are trained on vast corpora. Although their unconditional generation quality has improved substantially, their applications in real-world conditional generation remains relatively limited. Prior work primarily targets coarse-level control, such as style [3, 17], structure [40], polyphony level [22], or sentiment [18], while fine-grained conditioning on existing musical content—precisely what arrangement tasks demand—remains underexplored. + +![](images/5431cd975fd71fd9cfa5b2b3af7f957472eaea4d1d3295fad5372d7672e8cd90.jpg) +Figure 1: Overview of the proposed unified framework for each arrangement task. The symbol $\bigoplus$ denotes concatenation of component sequences. Music segments are decomposed into three subsequences: instruments, content, and target-side history. These components form the condition sequence, with the relevant tracks from the original music as the target sequence. The model is trained to reconstruct the music from these components. + +This underexploration is likely not due to the absence of pre-trained models or their representational power, but to the lack of training objectives that support flexible adaptation to the diverse requirements of arrangement tasks. While sequence-to-sequence fine-tuning is conceptually a natural solution, it relies on parallel datasets—collections of the same piece arranged for different instrumentations (e.g., orchestra and piano)—which are extremely scarce. Even when adopting some level of internal parallel data [29, 30], these datasets constrain output directions to fixed mappings (e.g., orchestra to piano). In contrast, real-world arrangement demands far greater flexibility: the ability to transform arbitrary input instrumentations into arbitrary targets—i.e., support any-to-any transformations. + +To address these limitations, we propose a unified framework for symbolic music arrangement that enables a pre-trained symbolic generative model to be fine-tuned across diverse tasks through a single self-supervised training pipeline (Figure 1). This facilitates the transfer of musical knowledge from generative pre-training to improve arrangement quality, while reducing the need for task-specific model design. To achieve this, we designed a context-aware, segment-level reconstruction objective: the model reconstructs multitrack music from its disentangled components, including content (notes executed) and style (instrumentation). We further observe that strictly time-ordered tokenizations (e.g., $\mathrm{REMI} + [31]$ ) introduce redundancy and fragment track content (detailed in §2.2), hindering instrument-level control and modeling. To address this, we propose a structured tokenization scheme that relaxes global time ordering while promoting track-wise continuity, enabling more consistent encoding across musical contexts. Our main contributions are as follows: + +- We propose a unified framework for symbolic music arrangement that supports flexible instrumentation transformation across multiple typical arrangement scenarios, all without requiring parallel data. Central to our approach is a shared reconstruction objective defined over token-level disentangled note properties, which enables a single generative model to adapt through lightweight fine-tuning. +- To support effective learning under the proposed objective, we introduce an efficient and modeling-friendly tokenization scheme for multitrack music that produces shorter sequences with lower complexity, facilitates instrument-level control and modeling that are important for arrangement performance. It further reduces note-level perplexity in unconditional generation, indicating potential utility beyond arrangement tasks. +- Instantiated with a small model and modest-scale pre-training, our system outperforms task-specific SOTA baselines on three representative arrangement tasks, each corresponding to a distinct scenario—band arrangement (reinterpretation), piano reduction (simplification), and drum arrangement (additive generation)—in both objective and subjective evaluations. + +# 2 Related Work + +# 2.1 Automatic Arrangement in Multitrack Symbolic Music + +Symbolic music arrangement encompasses a variety of tasks such as chord progression generation [38], orchestration from lead sheets [34], and instrumentation transfer [42]. In this work, we focus on adapting multitrack music to new instrumentations—a representative setting that requires fine-grained control over musical content and instrumentation. + +Early supervised learning approaches rely on parallel datasets (e.g., piano-to-orchestra [5], band-topiano [29, 30]), which are expensive to construct and inherently constrain the direction of arrangement. Classification-based methods [9] approach the arrangement problem by learning to assign instrument labels to each note from a dataset with fixed instrumentation. However, such models are limited in expressiveness, as they cannot modify musical content—e.g., adding, removing, or altering notes—to suit a target instrument combination. Moreover, their reliance on fixed instrument sets hinders generalization to unseen combinations. + +Recent self-supervised methods [41, 42] avoid these constraints by guiding generation with predefined or autoregressively modeled high-level descriptors (e.g., pitch histogram, note density). While effective for maintaining stylistic coherence, they separate style modeling from content realization. As a result, instrument playing styles are either fixed or modeled independently of input variations. Since musical material often changes between sections, this decoupling can degrade fidelity—causing arrangements to fail to reflect core aspects such as melody or texture, resulting in noticeable perceptual divergence. This suggests a more fidelity-oriented approach: integrating style modeling into the generation process to allow dynamic adaptation to input content. + +Additionally, infilling-based models such asComposer's Assistant [20, 19], although capable of handling additive generation scenarios such as drum arrangement, do not preserve the music essence of the original composition and are thus unsuited for reinterpretation and simplification. + +# 2.2 Symbolic Music Tokenization + +Transformer-based symbolic music modeling requires converting musical data into token sequences, a nontrivial task due to music's inherent multi-stream structure, i.e., multiple instruments playing concurrently. ABC-based notations [23] convert staff-based music into text-like symbolic representations, which are well suited for classical sheet music. While for contemporary music, many existing tokenization schemes operate on MIDI files and adopt a linearized, note-event-based encoding where each musical note is represented as a tuple of attribute tokens (e.g., onset, pitch, duration, velocity, instrument). Some use absolute timing [13, 12, 39, 10], while others use metric durations [26, 14, 31]. Among them, the REMI representation [14], originally designed for single-track music, has been extended to $\mathrm{REMI + }$ [31] for flexible tokenization of multitrack music, by associating each note with an instrument token. + +However, existing time-ordered tokenization schemes such as $\mathrm{REMI + }$ face structural limitations that hinder track-wise control and modeling. By flattening multitrack music into a strictly time-ordered sequence, $\mathrm{REMI + }$ interleaves events from different instruments, resulting in content fragmentation. As illustrated in Figure 3a, notes from the same instrument (e.g., i-29, distorted electric guitar, in orange) are interrupted by those from concurrent instruments (e.g., i-80, synth lead, in red). This leads to two major issues. First, the lack of structured syntax makes it difficult to delineate track boundaries, hindering enforcement of user-specified instrument constraints and often leads to spurious instruments in arrangement outputs. Second, identical track-wise content can be tokenized differently depending on concurrent instrument activity. This context sensitivity reduces the repetition of typical per-instrument patterns in the training data—a key factor for learning accurate "instrument syntax" determined by physical constraints and idiomatic playing patterns of each instrument, important for arrangement quality. While some recent work explores vocabulary-level compression (e.g., Byte Pair Encoding [11]) to reduce sequence length—an approach orthogonal and complementary to tokenization scheme design—it does not address the structural issues discussed above. + +![](images/39ebf885deb27ebdbb941816a38a0c2ba53dc0081d1dec6433ba0c93addf978f.jpg) +Figure 2: An example of the tokenized sequence for the band arrangement task. Special tokens $<\mathrm{SEP}>$ , $<\mathrm{INSTRUMENT}>$ , $<\mathrm{CONTENT}>$ , and $<\mathrm{HISTORY}>$ are used to separate different components. Tokens starting with o-, i-, p-, d- represents the onset, instrument ID, pitch, and duration of notes. + +# 3 Method + +Our goal is to fine-tune a single pre-trained symbolic music generative model across diverse arrangement tasks via a unified pipeline. The core is a segment-level reconstruction objective (§3.1) over token-level disentangled representations of style (instrumentation) and content (musical notes). To support track-wise control and modeling, we introduce a structured tokenization scheme (§3.2) that reduces content fragmentation and enhances learning under this objective. + +# 3.1 Reconstruction from Token-Level Disentangled Multi-Streams with Context Awareness + +Symbolic music offers a unique opportunity for token-level disentanglement: each note is represented as a list of semantically independent tokens, each describing a unique property of the note (e.g., onset, duration, pitch, instrument), allowing content (what is played) and instrumentation (by whom it is played) to be explicitly separated. This level of structural redundancy is rare in natural language, where sub-word tokens are atomic. + +Building on this observation, we formulate arrangement as a self-supervised, segment-level reconstruction task. The input music is decomposed into three token streams—instrument, content, and preceding context—and a pre-trained symbolic music generative model is fine-tuned to reconstruct the desired tracks of the multitrack music from these components. + +Let $y^{(t)}$ denote the $t$ -th segment of a music piece. The fine-tuning objective is defined as: + +$$ +\mathcal {L} (\theta) = - \log p _ {\theta} \left(\mathcal {T} _ {\text {t a s k}} \left(y ^ {(t)}\right) \mid \mathrm {I} \left(\mathcal {T} _ {\text {t a s k}} \left(y ^ {(t)}\right)\right), \mathrm {C} \left(\mathcal {S} _ {\text {t a s k}} \left(y ^ {(t)}\right)\right), \mathcal {T} _ {\text {t a s k}} \left(y ^ {(t - 1)}\right)\right), \tag {1} +$$ + +where $\theta$ represents the model parameters, $\mathrm{I}(\cdot)$ and $\mathrm{C}(\cdot)$ extract instrument and content conditions, $S_{\text {task }}$ and $T_{\text {task }}$ are filters that select task-specific source and target tracks respectively (detailed in $ 3.3), and $y^{(t-1)}$ provides target-side history. Equation 1 is implemented using a standard next-token prediction objective on the sequence [condition][target] (Figure 2), with cross-entropy loss computed only on the target subsequence. + +Instrument condition. The instrument condition specifies the desired instruments to be used in the segment. During training, it includes all instrument tokens from the target sequence. Their order encodes pitch register relationships across tracks: instruments with higher average pitch are placed earlier. At inference, users can specify arbitrary desired instruments (instrument control) and define their relative pitch register ordering (voice control). + +Content condition. The content condition is derived from the original composition, encoded as a content sequence without instrument information. To obtain it, we remove all instrument tokens from the original multitrack sequence, sort notes by onset time, then by descending pitch, and merge duplicates. This yields a clean time-ordered note sequence conveying what is played, independent of how or by whom. + +History condition. The history condition provides musical context from the preceding segment, encouraging inter-segment coherence at inference time. During training, it is provided via teacher-forcing with the complete tokenized previous segment; at inference, it is autoregressively generated. This mechanism helps maintain coherent arrangement style across segments, especially important for long-form (e.g., song-level) arrangement scenarios. + +During training, the instrument, content, and history conditions are derived from the same music being reconstructed. The model thus learns to reinterpret musical content with various instrument combinations under specific contexts, enabling diverse arrangement behaviors. + +Figure 3: REMI+ and REMI-z tokenization for the same bar. Contents of the same instruments are highlighted with the same color. See Appendix A for complete vocabulary. + +# 3.2 REMI-z: Tokenizing Multitrack Music with Track-Wise Continuity + +As discussed in Section 2.2, strictly time-ordered tokenization schemes suffer from content fragmentation, a structural limitation that hinders arrangement performance. To mitigate this issue, we propose REMI-z, a tokenization scheme that heuristically prioritizes track-wise continuity over global time ordering. Specifically, REMI-z processes MIDI files into a list of bar sequences, each containing multiple track sequences, where each track corresponds to a unique instrument. Within each track, note events are sorted by their onset position, then by descending pitch, and grouped under a single instrument token. Tracks within a bar are then ordered by their average pitch (high to low), forming a bar-level token sequence that ends with a special end-of-bar token. The complete vocabulary and tokenization examples are shown in Appendix A. + +This zig-zag organization—reflected in the REMI-z name—offers several modeling advantages: (1) instrument-wise content is locally contiguous (Figure 3b), reducing content fragmentation and enabling clear track boundaries; (2) sequence length is reduced by eliminating redundant instrument tokens; (3) temporal structure is preserved both within individual track sequences and between bars. + +We adopt REMI-z to tokenize all data for both pre-training and fine-tuning. Beyond improving arrangement performance, we also observe that REMI-z produces sequences with lower information entropy and, when used for unconditional generative training, leads to better note-level modeling (see § 5.4). This suggests that its track-continuity design not only benefits arrangement tasks, but may also support general symbolic music modeling. + +# 3.3 Task Instantiations + +We evaluate our method on three representative music arrangement tasks that reflect typical arrangement scenarios, each assessing different capabilities of the model: band arrangement (reinterpretation), piano reduction (simplification), and drum arrangement (additive generation). + +Band Arrangement. This task evaluates the model's ability to reinterpret an existing piece using arbitrary combinations of pitched instruments. The model must learn the properties and idiomatic playing styles of various instruments to reallocate or generate notes appropriately. Both $S_{\text{task}}$ and $T_{\text{task}}$ are identity mappings (i.e., $S_{\text{task}}(y) = T_{\text{task}}(y) = y$ ), and drum tracks are removed from the input. To encourage creative rewriting, we randomly remove a subset of tracks from the content condition $C(S_{\text{task}}(y^{(t)}))$ during training, while ensuring the melody's content is preserved (detailed in Appendix B.2). Duration tokens are also removed from the content stream, allowing the model to infer track-specific note durations, i.e., articulations, suitable for interpreting the content under desired instrumentations. Segment length is set to 1 bar. This setup resembles [42], but differs in its more challenging setting: no track-wise style priors are available to guide the generation process. + +Piano Reduction. This task simplifies ensemble music into solo piano accompaniment, aiming to preserve key harmonic and textural elements while ensuring pianistic playability. The $\mathcal{T}_{\mathrm{task}}$ selects piano tracks, while $S_{\mathrm{task}}$ is the identity mapping. To ensure the reduction is meaningful, we filter training data to keep only segments where the piano part is sufficiently prominent (covering $>40\%$ of the pitch range). Drum tracks are removed from input, and the segment length is set to 1 bar. The setup is similar to [30], but uses original MIDI piano tracks as targets instead of human-composed reductions, and does not include difficulty-level conditioning. + +Drum Arrangement. The goal of this task is to generate a drum track for music that lacks one. Here, $S_{\mathrm{task}}$ extracts all pitched-instrument tracks, while $T_{\mathrm{task}}$ extracts the drum track. We use 4-bar segments since drum patterns often span across multiple bars. The model must recognize the underlying groove and phrase boundaries of the source music, enhance them with coherent and stylistically appropriate rhythmic patterns, and ensure proper transitions across segments—requiring a stronger understanding + +of rhythmic ideas and structural organization. This track infilling setup is similar to [19], but the model is not allowed to condition on future segments. + +# 4 Experiments + +# 4.1 Implementation Details + +Our model, an 80M-parameter decoder-only Transformer, has a hidden dimension of 768, 12 layers, 16-head attention, and a context length of 2048 tokens (around $8 \times$ the longest bar in our dataset). The model first undergoes a standard next-token-prediction pre-training, and then was fine-tuned with the proposed objective. Pre-training used four RTX A5000 GPUs (batch size 12, 1 epoch), while fine-tuning used a single A40 GPU (variable batch size, 3 epochs). Pre-training adopted the Los Angeles MIDI dataset [15] (405K MIDI files, 4.3B tokens after REMI-z tokenization, $2\%$ validation split) and fine-tuning was done with Slakh2100 [21] (1,289 training, 270 validation, 151 test MIDI files), featuring 34 pitched instruments and drums, with $\geq 4$ tracks per piece. Detailed hyperparameter settings are in Appendix B.5. + +# 4.2 Baseline Models + +For each task, we compare our model against a state-of-the-art (SOTA) task-specific baseline. For band arrangement, we adopt Transformer-VAE from [42], the strongest previously reported model for multitrack arrangement without assumptions on track type or number. It combines Transformer-based long-term and inter-track modeling with a VQ-VAE generation module. For piano reduction, we compare with [30] (UNet), the most recent work in this area. For drum arrangement, we adopt Composer's Assistant 2 (CA v2) [19], a SOTA track infilling model capable of handling multitrack inputs and generating drum outputs. Existing drum-specific models (e.g., [2], [6]) are unsuitable for our setting, as they assume a single melody or instrumental track input rather than general multitrack conditioning. Baseline's implementation details are in Appendix B.4. + +To demonstrate the impact of generative pre-training, an ablation variant of our model without pre-training $(\mathbf{w} / \mathbf{o}\mathbf{PT})$ is used as a baseline. Additionally, we include simple rule-based baselines as non-learning references, designed to provide naive solutions with minimal musical knowledge, helping to contextualize the difficulty of arrangement tasks. For band arrangement, Rule-Based distributes notes evenly by pitch across instruments, serving as a naive reinterpretation strategy. For piano reduction, we use Rule-F (a flattened multitrack where the piano plays all notes), which reflects an overcomplete reduction prioritizing coverage, and Rule-O (the original piano track), which provides a playability-guaranteed but musically incomplete reduction. For drum arrangement, the original drum track (Ground Truth) is included anonymously in the human evaluation as an upper bound on perceptual scores. + +# 4.3 Objective Evaluation + +Objective metrics measure similarity between model outputs and target sequences, assuming closer resemblance to human-created music indicates higher naturalness and musicality. Following [19, 30], we use note-level $F1$ to measure similarity between model outputs and target sequences. Specifically, we compute Note F1 (correct onset and pitch) and Note_i F1 (additional correct instrument prediction), both under 16th-note quantization for fair comparison with baselines. + +For piano reduction and drum arrangement, the same models are used in objective and subjective evaluations. For band arrangement, models are separately trained without random track deletion to ensure deterministic outputs. Baseline models are also modified by excluding its prior model to remove long-term context hints, ensuring evaluation fairness. + +In addition to the modifications described above, we introduce three task-specific metrics for band arrangement. First, Instrument Intersection over Union (I-IoU) evaluates the accuracy of instrument control. Second, Voice Error Rate (VER) measures the similarity in voice features between the generated output and the reference, reflecting how well the model follows the voice conditions specified by instrument token ordering. Third, Melody F1 (Mel F1) computes the Note F1 score on melody tracks, estimated as the tracks with the highest average pitch in the output and reference, to + +Table 1: Objective evaluation results for the band arrangement task. Statistical significance is indicated as follows: * for $p < {0.05}, \dagger$ for $p < {0.01}$ ,and $\ddagger$ for $p < {0.001}$ . + +
ModelI-IOU ↑VER ↓Note F1 ↑Notei F1 ↑Mel F1 ↑
Transformer-VAE97.535.049.540.024.7
Transformer w/ REMI+95.018.294.476.068.8
Transformer w/ REMI-z$99.5$9.9$97.8$77.5$77.8
+ Pre-training (Ours)99.87.697.587.084.5
– voice99.617.697.284.381.5
– history100.09.097.677.479.4
+ +assess how well the original melody is preserved—an important factor for perceived fidelity. Detailed definitions and computation procedures are provided in Appendix C.1. + +Among all tasks, band arrangement is a strong testbed for evaluating controllability and generalizability because it requires the highest flexibility without assumptions on target instrument types or counts. Hence it serves two additional purposes: (1) to validate key design choices in our fine-tuning objective, particularly the use of voice-aware instrumentation and segment-level history conditioning; and (2) to prove the effectiveness of the proposed tokenization schemes in arrangement task. When comparing tokenization schemes, statistical significance is computed by Wilcoxon signed rank test [36]. For a broader analysis of tokenization's impact on unconditional generation, see § 5.4. + +# 4.4 Human Evaluation + +To complement similarity-based objective metrics and assess perceptual quality and creativity, we conducted human evaluations. Full-piece arrangements were generated by all models and evaluated on a 5-point scale (1: very low, 5: very high). For band arrangement, models were tested across three instrument combinations with different complexity: string trio (3 tracks), rock band (4 tracks), and jazz band (7 tracks). Three metrics were used across band, piano, and drum arrangement tasks: Coherence, which evaluates the natural flow of the arrangement and the consistency of each instrument's playing style throughout the piece; Creativity, which assesses the degree of innovation in the arrangement under the constraints of the music's content and style; and Musicality, which measures the overall musical appeal and aesthetic quality of the arrangement. Further details on the metrics, ensemble settings, questionnaire, and evaluation process are in Appendix D. + +Task-specific metrics were introduced for the distinct evaluation needs of each arrangement scenario. For band arrangement, Faithfulness measures resemblance to the original in melody and overall feel, while Instrumentation assesses the appropriateness of each instrument's role within the ensemble and their harmony. For piano reduction, Faithfulness is also adopted but without melody preservation requirements, and Playability assesses the feasibility of the generated contents played by human pianists. For drum arrangement, Compatibility measures how well the drum track blends with other instruments, and Phrase Transition assesses the smoothness of transitions between musical phrases. We report mean and standard error of mean in result tables. Significance tests were conducted between our model and the SOTA baselines using within-subject (repeated-measures) ANOVA [28]. + +# 5 Results + +# 5.1 Band Arrangement + +# 5.1.1 Objective Evaluation + +Tokenization impact. Table 1 shows that model adopted REMI-z significantly outperforms that adopted REMI+ across all objective metrics. It enables stronger instrument control (I-IOU: $99.5\%$ vs. $95.0\%$ ) and voice control (VER: $9.9\%$ vs. $18.2\%$ ), aligning outputs better with user-specified conditions. The improvement in Note F1 $(+6.7\%)$ confirms higher reconstruction quality, while the gain in $\mathrm{Note}_i$ F1 $(+1.9\%)$ highlights enhanced instrument-wise modeling. Furthermore, the substantial increase in Mel F1 $(+9.0\%)$ suggests REMI-z enable the model to better identify the melody components from content sequence, which is improtant for arrangement fidelity. + +Table 2: Band arrangement subjective evaluation results. Fa., Co., In., Cr., and Mu. represent Faithfulness, Coherence, Instrumentation, Creativity, and Musicality, respectively. + +
ModelFa. ↑Co. ↑In. ↑Cr. ↑Mu. ↑
Rule-Based3.46±0.143.05±0.132.89±0.143.00±0.123.07±0.13
Transformer-VAE2.65±0.102.70±0.112.72±0.123.00±0.132.72±0.11
Ours‡3.77±0.13‡3.47±0.15‡3.49±0.16*3.40±0.13‡3.47±0.14
w/o PT3.19±0.132.82±0.132.86±0.142.93±0.122.75±0.13
+ +Table 3: Piano reduction results. The Pl. represents Playability score. + +
ModelF1 ↑Fa. ↑Co. ↑Pl. ↑Cr. ↑Mu. ↑
Rule-F-3.93±0.133.59±0.133.14±0.132.96±0.133.34±0.14
Rule-O-2.75±0.133.49±0.134.07±0.122.62±0.142.96±0.14
UNet58.32.97±0.132.90±0.153.47±0.132.82±0.132.78±0.13
Ours85.5‡3.63±0.13‡3.64±0.13*3.86±0.13*3.14±0.12‡3.48±0.14
w/o PT78.42.25±0.132.58±0.163.29±0.152.67±0.152.26±0.14
+ +Pre-training benefit. Pre-training brings clear gains by transferring musical knowledge useful for arrangement. It improves three key aspects: (1) lower VER $(-2.3\%)$ , indicating more effective voice control; (2) higher Note $_i$ F1 $(+9.5\%)$ , reflecting enhanced instrument-wise content modeling; and (3) the highest Mel F1 $(84.5\%)$ , indicating stronger melody preservation. Probing analysis (Appendix E) further shows that pre-training strengthens the alignment between token embeddings and musical concepts useful for arrangement, such as instrument roles and chord progression. + +Comparison with Transformer-VAE. Our model outperforms Transformer-VAE by a wide margin. In particular, it achieves much higher Note F1 (97.5% vs. 49.5%), Note $_i$ F1 (87.0% vs. 40.0%), and Mel F1 (84.5% vs. 24.7%), highlighting the advantage of our context-aware, content- and instrument-conditioned generation approach over the latent inference used in Transformer-VAE. + +Ablation: voice and history conditioning. Removing voice information from instrument conditions degrades voice control (VER: +10.0%), demonstrating the effectiveness of our voice control method. It also lowers per-instrument F1 (Notei: -2.7%) and Mel F1 (-3.0%), indicating that voice-order information serves as a useful hint for inferring instrument roles during arrangement. Excluding history conditioning results in even larger drops in Notei F1 (-9.6%) and Mel F1 (-5.1%), validating that temporal context facilitates accurate reconstruction, laying the foundation for coherent song-level arrangement. + +# 5.1.2 Human Evaluation + +Strong subjective performance. As shown in Table 2, Our model achieves the highest scores across all subjective metrics than all baselines, demonstrating its ability to generate coherent, stylistically appropriate, and musically appealing arrangements while preserving core musical essence. + +Transformer-VAE underperforms. It lags significantly behind our model in every subjective criterion. Notably, its lower Faithfulness score (-1.12) reflects difficulty in preserving core musical content, while low ratings in Instrumentation (-0.77) and Coherence (-0.77) suggest weaker track-wise modeling and non-idiomatic instrument usage, as well as insufficient coherence between segments. Overall Musicality (-0.75) also falls below our model. It even scores lower than the rule-based baseline, though the latter suffers from inherent limitations in musicality and coherence. + +Pre-training improves quality. Removing pre-training reduces scores across all metrics, with notable drops in Faithfulness (-0.58) and Musicality (-0.72), reinforcing the importance of musical knowledge transfer from generative pre-training for content retention and overall perceptual quality. + +# 5.2 Piano Reduction + +Best overall quality. As shown in Table 3, our method obtains the highest ratings in F1 (85.5%), Coherence (3.64), Playability (3.86), and Musicality (3.48), while also maintaining strong scores in Faithfulness (3.63) and Creativity (3.14). It significantly outperforms UNet across all subjective + +Table 4: Drum arrangement results. Comp. and Tr. represent Compatibility and Phrase Transition score respectively. + +
ModelF1 ↑Comp. ↑Co. ↑Tr. ↑Cr. ↑Mu. ↑
Ground Truth100.04.31±0.124.18±0.103.36±0.133.16±0.123.78±0.12
CA v220.33.82±0.134.05±0.122.86±0.122.58±0.113.19±0.12
Ours79.33.91±0.124.03±0.103.77±0.123.27±0.143.57±0.13
w/o PT1.22.49±0.162.19±0.122.21±0.142.82±0.152.05±0.13
+ +Table 5: Tokenization scheme comparison on unconditional generation. + +
TokenizerTbar ↓Tnote ↓Hbar ↓PPLnote ↓PPLtoken ↓
REMI+225.914.0341.68116.203.00
REMI-z (Ours)151.682.7729.4384.114.50
+ +metrics, with especially large margins in Faithfulness $(+0.66)$ , Coherence $(+0.74)$ , and Musicality $(+0.70)$ —indicating better content preservation, cross-segment continuity, and overall musical quality. Pre-training again proves essential: without it (w/o PT), performance drops notably across all metrics. + +Balanced fidelity and playability. Compared to rule-based methods, our model achieves a better trade-off between fidelity and playability. Rule-F preserves original content well (Faithfulness: 3.93) but results in poor playability (3.14), while Rule-O achieves the highest playability (4.07) but at the expense of faithfulness (2.75). In contrast, our method produces reductions with balanced Faithfulness (3.63) and Playability (3.86). + +# 5.3 Drum Arrangement + +Best subjective quality among learned models. As shown in Table 4, our model outperforms CA v2 in all subjective metrics except Coherence (4.03 vs. 4.05), and significantly improves Creativity (3.47 vs. 2.58) and Phrase Transition (3.27 vs. 2.86), which are essential for engaging, structurally-aware drum arrangements. It also achieves the highest Musicality score (3.57), closely approaching ground truth (3.78). Again, the w/o PT variant performs poorly across all metrics. + +Improved phrasing and variation. Compared to CA v2, which often repeats similar drum patterns throughout a piece, our model produces more varied and context-aware rhythms that better reflect musical phrasing. The higher Phrase Transition score (+0.91) supports this observation, demonstrating the model's ability to capture structural changes in music during generation. + +# 5.4 Tokenization Efficiency and General Modeling Advantages + +Additionally, we evaluate REMI-z against $\mathrm{REMI + }$ to assess its efficiency and effectiveness for generative modeling of symbolic multitrack music. We report several metrics to evaluate compactness of tokenization schemes and their unconditional modeling performance: 1) average tokens per bar $(\bar{T}_{\mathrm{bar}})$ , 2) average tokens per note $(\bar{T}_{\mathrm{note}})$ , 3) Shannon entropy of bar-level token sequences $(\bar{H}_{\mathrm{bar}})$ , and 4) note-level perplexity $(\mathrm{PPL}_{\mathrm{note}})$ . Note that $\mathrm{PPL}_{\mathrm{note}}$ is the aggregated conditional probability of all note attribute tokens, normalized by the number of notes, enabling fairer comparison across tokenization schemes. Calculations are detailed in Appendix C.2. + +**Compactness.** Tokenizing Slakh2100 with REMI-z yields a $32.9\%$ reduction in sequence length per bar (151.68 vs 225.91) and fewer tokens per note (2.77 vs 4.03), effectively reducing training and inference computational costs. + +Representational Simplicity. REMI-z also produces lower bar-level Shannon entropy (29.43 vs 41.68 bits/token) on Slakh2100 compared to $\mathrm{REMI + }$ , despite representing the same underlying musical content. This indicates reduced information redundancy, and suggests that REMI-z sequences consist of more predictable tokens, potentially facilitating the learning of generative models. + +Note-Level Modeling Advantage. We train unconditional generation models on Slakh2100 with both tokenizations and compare note-level perplexity with the same architecture as our arrangement models. The model adopting REMI-z achieves substantially lower note-level perplexity (84.11 vs. + +116.20), indicating better modeling of complete musical notes. Since notes form the atomic units of music, improvements in note-level modeling directly contribute to lower uncertainty at modeling bars and full compositions, suggesting utility in general symbolic music modeling beyond arrangement tasks. While $\mathrm{REMI+}$ slightly outperforms in token-level perplexity, this does not translate to better modeling of higher-level structures. + +# 6 Conclusion + +We presented a unified framework for automatic music arrangement, centered around a reconstruction objective that enables diverse arrangement tasks without requiring parallel data, enabling knowledge transfer from generative pre-trained symbolic music models for arrangement tasks. Our approach also integrates a structured tokenization scheme, REMI-z, which convert multitrack music to compact and easy-to-model token sequences. Experimental results on band arrangement, piano reduction, and drum arrangement show that our method consistently outperforms task-specific baselines in both objective and subjective evaluations. These results suggest the potential of our framework as a general solution for symbolic music-to-music transformation. + +# Acknowledgements + +The authors would like to thank Chenfei Kang for providing valuable resources that supported the validation of the proposed idea, and Yisong Miao for insightful comments on training and coherence of language models, which substantially benefited this work. + +# References + +[1] Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016. +[2] Giorgio Barnabò, Giovanni Trappolini, Lorenzo Lastilla, Cesare Campagnano, Angela Fan, Fabio Petroni, and Fabrizio Silvestri. Cycledrums: automatic drum arrangement for bass lines using cyclegan. Discover Artificial Intelligence, 3(1):4, 2023. +[3] Kristy Choi, Curtis Hawthorne, Ian Simon, Monica Dinculescu, and Jesse Engel. Encoding musical style with transformer autoencoders. In International conference on machine learning, pages 1899-1908. PMLR, 2020. +[4] Vince Corozine. Arranging music for the real world: classical and commercial aspects. Mel Bay Publications, 2015. +[5] Léopold Crestel and Philippe Esling. Live orchestral piano, a system for real-time orchestral music generation. arXiv preprint arXiv:1609.01203, 2016. +[6] Rishabh Dahale. Automatic Drum Accompaniment Generation from Melody. PhD thesis, Indian Institute of Technology Bombay, 2022. +[7] Roger B Dannenberg and Sukrit Mohan. Characterizing tempo change in musical performances. In ICMC, 2011. +[8] Hao-Wen Dong, Ke Chen, Shlomo Dubnov, Julian McAuley, and Taylor Berg-Kirkpatrick. Multitrack music transformer. In ICASSP 2023-2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5. IEEE, 2023. +[9] Hao-Wen Dong, Chris Donahue, Taylor Berg-Kirkpatrick, and Julian McAuley. Towards automatic instrumentation by learning to separate parts in symbolic multitrack music. In International Society for Music Information Retrieval Conference, 2021. +[10] Jeffrey Ens and Philippe Pasquier. Mmm : Exploring conditional multi-track music generation with the transformer. ArXiv, abs/2008.06048, 2020. + +[11] Nathan Fradet, Nicolas Gutowski, Fabien Chhel, and Jean-Pierre Briot. Byte pair encoding for symbolic music. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 2001–2020, Singapore, December 2023. Association for Computational Linguistics. +[12] Josh Gardner, Ian Simon, Ethan Manilow, Curtis Hawthorne, and Jesse Engel. Mt3: Multi-task multitrack music transcription. ArXiv, abs/2111.03017, 2021. +[13] Cheng-Zhi Anna Huang, Ashish Vaswani, Jakob Uszkoreit, Noam M. Shazeer, Ian Simon, Curtis Hawthorne, Andrew M. Dai, Matthew D. Hoffman, Monica Dinculescu, and Douglas Eck. Music transformer: Generating music with long-term structure. In International Conference on Learning Representations, 2018. +[14] Yu-Siang Huang and Yi-Hsuan Yang. Pop music transformer: Beat-based modeling and generation of expressive pop piano compositions. In Proceedings of the 28th ACM international conference on multimedia, pages 1180-1188, 2020. +[15] Aleksandr Lev. Los angeles midi dataset: Sota kilo-scale midi dataset for mir and music ai purposes. In GitHub, 2024. +[16] Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461, 2019. +[17] Peiling Lu, Xin Xu, Chenfei Kang, Botao Yu, Chengyi Xing, Xu Tan, and Jiang Bian. Musecoco: Generating symbolic music from text. arXiv preprint arXiv:2306.00110, 2023. +[18] Dimos Makris, Kat R Agres, and Dorien Herremans. Generating lead sheets with affect: A novel conditional seq2seq framework. In 2021 International Joint Conference on Neural Networks (IJCNN), pages 1-8. IEEE, 2021. +[19] Martin Malandro. Composer's Assistant 2: Interactive Multi-Track MIDI Infilling with FineGrained User Control. In Proc. 25th Int. Society for Music Information Retrieval Conf., San Francisco, CA, USA, 2024. +[20] Martin E Malandro.Composer's assistant: An interactive transformer for multi-track midi infilling.arXiv preprint arXiv:2301.12525, 2023. +[21] Ethan Manilow, Gordon Wichern, Prem Seetharaman, and Jonathan Le Roux. Cutting music source separation some slakh: A dataset to study the impact of training data quality and quantity. In 2019 IEEE Workshop on Applications of Signal Processing to Audio and Acoustics (WASPAA), pages 45-49. IEEE, 2019. +[22] Philippe Pasquier, Jeff Ens, Nathan Fradet, Paul Triana, Davide Rizzotti, Jean-Baptiste Rolland, and Maryam Safi. Midi-gpt: A controllable generative model for computer-assisted multitrack music composition. arXiv preprint arXiv:2501.17011, 2025. +[23] Xingwei Qu, Yuelin Bai, Yinghao Ma, Ziya Zhou, Ka Man Lo, Jiaheng Liu, Ruibin Yuan, Lejun Min, Xueling Liu, Tianyu Zhang, et al. Mupt: A generative symbolic music pretrained transformer. arXiv preprint arXiv:2404.06393, 2024. +[24] Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever, et al. Improving language understanding by generative pre-training. 2018. +[25] Colin Raffel. Learning-Based Methods for Comparing Sequences, with Applications to Audi-to-MIDI Alignment and Matching. PhD thesis, Columbia University, USA, 2016. +[26] Yi Ren, Jinzheng He, Xu Tan, Tao Qin, Zhou Zhao, and Tie-Yan Liu. Popmag: Pop music accompaniment generation. In Proceedings of the 28th ACM international conference on multimedia, pages 1198-1206, 2020. +[27] Anna Rogers, Olga Kovaleva, and Anna Rumshisky. A primer in bertology: What we know about how bert works. Transactions of the Association for Computational Linguistics, 8:842-866, 2020. + +[28] Henry Scheffe. The analysis of variance, volume 72. John Wiley & Sons, 1999. +[29] Moyu Terao, Yuki Hiramatsu, Ryoto Ishizuka, Yiming Wu, and Kazuyoshi Yoshii. Difficulty-aware neural band-to-piano score arrangement based on note-and statistic-level criteria. In ICASSP 2022-2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 196-200. IEEE, 2022. +[30] Moyu Terao, Eita Nakamura, and Kazuyoshi Yoshii. Neural band-to-piano score arrangement with stepless difficulty control. In ICASSP 2023-2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1-5. IEEE, 2023. +[31] Dimitri von Rütte, Luca Biggio, Yannic Kilcher, and Thomas Hofmann. Figaro: Controllable music generation using learned and expert features. In The Eleventh International Conference on Learning Representations, 2023. +[32] Yashan Wang, Shangda Wu, Jianhuai Hu, Xingjian Du, Yueqi Peng, Yongxin Huang, Shuai Fan, Xiaobing Li, Feng Yu, and Maosong Sun. Notagen: Advancing musicality in symbolic music generation with large language model training paradigms. arXiv preprint arXiv:2502.18008, 2025. +[33] Ziyu Wang, Ke Chen, Junyan Jiang, Yiyi Zhang, Maoran Xu, Shuqi Dai, Xianbin Gu, and Gus Xia. Pop909: A pop-song dataset for music arrangement generation. arXiv preprint arXiv:2008.07142, 2020. +[34] Ziyu Wang, Lejun Min, and Gus Xia. Whole-song hierarchical generation of symbolic music using cascaded diffusion models. arXiv preprint arXiv:2405.09901, 2024. +[35] Ziyu Wang, Dejing Xu, Gus Xia, and Ying Shan. Audio-to-symbolic arrangement via cross-modal music representation learning. In ICASSP 2022-2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 181-185. IEEE, 2022. +[36] Frank. Wilcoxon. Individual comparisons by ranking methods. Biometrics, 1:196-202, 1945. +[37] Shangda Wu, Yashan Wang, Xiaobing Li, Feng Yu, and Maosong Sun. Melodyt5: A unified score-to-score transformer for symbolic music processing. arXiv preprint arXiv:2407.02277, 2024. +[38] Li Yi, Haochen Hu, Jingwei Zhao, and Gus Xia. Accomontage2: A complete harmonization and accompaniment arrangement system. arXiv preprint arXiv:2209.00353, 2022. +[39] Mingliang Zeng, Xu Tan, Rui Wang, Zeqian Ju, Tao Qin, and Tie-Yan Liu. Musicbert: Symbolic music understanding with large-scale pre-training. ArXiv, abs/2106.05630, 2021. +[40] Xueyao Zhang, Jinchao Zhang, Yao Qiu, Li Wang, and Jie Zhou. Structure-enhanced pop music generation via harmony-aware learning. In Proceedings of the 30th ACM International Conference on Multimedia, pages 1204–1213, 2022. +[41] Jingwei Zhao, Gus Xia, and Ye Wang. Q&a: query-based representation learning for multi-track symbolic music re-arrangement. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, pages 5878–5886, 2023. +[42] Jingwei Zhao, Gus Xia, Ziyu Wang, and Ye Wang. Structured Multi-Track Accompaniment Arrangement via Style Prior Modelling. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. + +# A REMI-z Tokenization + +# A.1 Vocabulary + +Table 6 presents the complete vocabulary of our proposed REMI-z tokenizer, detailing the value ranges for each token type. For instrument tokens, the values correspond to MIDI program numbers (0-127), with 128 specifically designated for the drum set. For pitched instruments, pitch token values directly map to MIDI pitch numbers, while drum set pitches are encoded as MIDI pitch + 128. Both position and duration tokens are quantized in units of a 48th note (one-third of a sixteenth note). Time signature and tempo tokens undergo specific quantization before token mapping; for detailed quantization rules, please refer to our code implementation. All tokens listed in the table were utilized during pre-training, including time signature and tempo tokens serving as bar-level properties, with example REMI-z sequences illustrated in Figure 4b. + +During fine-tuning, we simplified the token set by excluding time signature and tempo tokens. This decision was supported by our analysis of the fine-tuning dataset (Slakh2100 [21]), where $94.8\%$ of songs use 4/4 time signatures. Consequently, we restricted our fine-tuning to 4/4 songs and omitted time signature tokens, following practices in related works [35, 42]. We also excluded tempo tokens since tempo adjustments in digital audio workstations are typically handled as a global parameter, affecting only tempo tokens without altering the any other tokens. This simplification assumes that compositional and performance styles remain consistent across different tempos. However, this assumption may not hold for datasets with significant tempo variations. Therefore, for future research requiring time-signature- or tempo-specific characteristics, we recommend including these tokens during fine-tuning. + +Velocity tokens were excluded from both pre-training and fine-tuning phases. This decision reflects our focus on compositional quality rather than performance naturalism, aligning with previous approaches in band and piano arrangement studies [42, 30]. However, if velocity information is deemed crucial for generation, our model architecture readily accommodates the addition of velocity tokens to each note without introducing content fragmentation issues, if the REMI-z note organization order is maintained. + +# A.2 Example + +We name our tokenization scheme $\text{REMI-z}$ for its distinctive "zig-zag" encoding pattern for musical notes within each bar, as illustrated in Figure 4a. In this scheme, notes are encoded hierarchically: first grouped by tracks (instruments), then organized bar by bar. This track-first approach ensures notes from the same instrument remain clustered together, thereby enhancing the model's ability to learn instrument-specific patterns. The resulting $\text{REMI-z}$ sequence is demonstrated in Figure 4b. In contrast, $\text{REMI+}$ [31] employs a column-wise encoding strategy, strictly ordering notes by their temporal positions. While this approach effectively captures global temporal relationships, it disperses notes from the same instrument throughout the sequence, potentially complicating instrument-specific pattern learning. We leverage such temporal ordering in our content sequence (excluding instrument tokens), as shown in Figure 5. + +Table 6: REMI-z vocabulary with pitch token distinctions + +
MeaningTokenX's range
Instrument typei-X0~128
Note's within-bar positiono-X0~127
Note's pitch (non-drum)p-X0~127
Note's pitch (drum)p-X128~255
Note's durationd-X0~127
End of a barb-1-
Time signatures-X0~253
Tempot-X0~48
+ +![](images/ad9e21e9c14a10eb5f9a86e9bddbb3e1c9728b6c574fdd1001e17a1b5e59533a.jpg) +(a) A 4-bar musical segment with orange arrows illustrating the "zig-zag" encoding order of notes in REMI-z tokenization. + +![](images/ecae2ed627722911b1fe41d587eeac40f6db58a674b6d2a9690e9a15d20d7e1d.jpg) +(b) The REMI-z sequence tokenized from the musical segment above. Track sequences are color-coded by instrument: synth lead (red), clean electric guitar (blue), distorted electric guitar (orange), and electric bass (purple). + +![](images/9fa6db4c8dceca396fb1f4a2c91bfbe085b64161752521fbbb4286c779d6850b.jpg) +Figure 4: An example of REMI-z tokenization. +Figure 5: The content sequence obtained by applying the operator $\mathrm{C}(\cdot)$ to the REMI-z sequence shown in Figure 4b. + +# B Implementation Details + +# B.1 Key Normalization + +Transposition-equivariance is a crucial property in symbolic music: a composition's musicality remains unchanged under global pitch shifts (uniform pitch adjustment across all notes). However, uneven key distribution in datasets can lead to data sparsity during training, potentially causing models to perform inconsistently across different keys. Two approaches address this issue: (1) data augmentation through systematic semitone transpositions $0, \pm 1, \pm 2, \dots$ [19, 42], or (2) normalizing all songs to a common key (e.g., C major and A minor) [17]. We adopt the latter approach, implementing a modified version of [17]'s method. Our implementation uses a key dictionary mapping from each of the 24 keys (12 major and 12 minor) to a 12-dimensional binary vectors, where 1s indicate scale notes. Key detection is performed by computing dot products between these vectors and a song's pitch histogram, with the highest-scoring key determining the transposition needed to normalize to C major or A minor. Further details can be found in the code. + +# B.2 Random Track Deletion + +To encourage creativity in band arrangement and prevent the model from over-relying on direct copying notes from the input, we introduce a random track deletion mechanism during training. The intuition is that a well-trained model should be able to infer suitable instrumental content even if such content does not exist in the original music composition. + +Concretely, given a content sequence with multiple instrument tracks, we randomly delete all notes that belong to a subset of instruments before calculating the content sequences and feeding to the model. The number of instruments to delete is sampled from a Poisson distribution with $\lambda = \max (\lfloor |\mathcal{I}| / 4\rfloor ,1)$ , where $\mathcal{I}$ is the set of non-melodic instruments in the content sequence. The melodic track is estimated by the track with highest average pitch, and does not involve in the track deletion to ensure the melody's content is preserved. Then, the deletion count is clipped to ensure at least one instrument remains. A corresponding number of instruments are uniformly sampled without replacement and all tokens associated with these instruments are removed from the input. Then the content sequence is calculated on this modified music sequence. + +Importantly, the target sequence remains unchanged: it includes all instruments and notes removed from the input. This setup requires the model to reconstruct missing tracks based solely on the remaining musical context. In doing so, the model learns not only to replicate observed content but also to infer plausible notes for desired instruments in a given context. This can be treated as a music specific span infilling denoising objective for sequence-to-sequence learning [16], but we don't explicitly tell the model whether an input is masked and the location of masked spans. + +# B.3 Instrument Quantization + +Band Arrangement While our tokenization scheme supports all MIDI program IDs, many instruments with different IDs share fundamental compositional properties, differing primarily in timbre (e.g., acoustic and electric pianos). To leverage these similarities and reduce instrument distribution sparsity in training data, during fine-tuning, we group similar instruments and assign them the lowest program ID within their group. The instrument grouping rules follow that of [21], leading to 34 different program IDs in total. For multiple tracks of the same instrument type, we merge their notes into a single track. + +Piano Arrangement For piano arrangement, we consolidate all piano-type instruments (MIDI program IDs 0-7, including both acoustic and electric pianos) into a single track to form the target sequence. + +# B.4 Baseline Models + +Band Arrangement For band arrangement, we use the Transformer-VAE model from [42] as our baseline. For human evaluation, we utilized their official implementation without retraining. The model's generation module was trained on Slakh2100 [21] (the same dataset as our fine-tuning), and its prior model leveraged the larger Lakh MIDI Dataset [25], which encompasses Slakh2100. For objective evaluation, we retrained another version of the model on Slakh2100 that did not receive hints from the style prior model for a fair comparison. + +Piano Reduction Piano reductions can be categorized into two types: (1) piano accompaniments where the melody is delegated to a separate lead instrument, focusing solely on preserving harmony and texture (e.g., [41, 33]), which can be effectively handled using self-supervised methods; and (2) complete solo piano arrangements that additionally include the melody, requiring careful human arrangement and band-to-piano parallel datasets for supervised learning (e.g., [30, 29]). Due to the lack of open-source parallel datasets, we focus on the accompaniment arrangement task in this paper and use the term piano reduction interchangeably. However, our methodology is inherently flexible and can also handle the second type of reduction if parallel datasets become available. Additionally, exploring the potential for full solo piano reductions using unsupervised approaches remains a valuable direction for future research. + +For comparison, we reimplemented the UNet baseline from [30] and trained it on Slakh2100 using our data preparation pipeline. Instead of adopting parallel data, we followed the same setting as our model, using the original composition as input and the piano track within the song as output. To + +Table 7: Pre-train hyper-parameter setting. + +
HyperparametersValues
seed42
learning_rate0.0005
weight Decay0.1
train_batch_size12
gradient Accumulation_steps8
total_train_batch_size96
Adam with
optimizerbetas=(0.9,0.999) and epsilon=1e-08
lr_scheduler_typecosine
lr_scheduler_warmup_steps1000
num_epochs1
+ +ensure musical coverage, we selected only piano tracks that span more than $40\%$ of the piece's pitch range. + +Since hand-specific annotations (i.e., left and right hand separation) are unavailable, the entire piano track is generated as a single sequence rather than as separate streams for each hand. We also omitted octave shifts during input preprocessing for two reasons. The first is that, unlike their setup where human-composed piano references may intentionally transpose notes by octaves, our output consistently corresponds to a subset of the input notes without such shifts. The second is empirical: introducing octave shifts during training significantly degraded UNet's performance, reducing note-level F1 from 58.31 to 42.80 and diminishing perceptual quality. + +Drum Arrangement For drum arrangement, we employComposer's Assistant v2 [19] as our baseline, specifically using v2.1.0 from their official repository $^2$ . We use the model without retraining since its original training data (Lakh MIDI Dataset [25]) encompasses our fine-tuning dataset (Slakh2100). + +Tokenization Comparison When comparing the effectiveness of $\mathrm{REMI + }$ and the proposed REMI-z tokenization in §3.2, the model structure used is the same as our arrangement model, but with a simpler training objective—the standard left-to-right next-token-prediction. We did not use time signature tokens, tempo tokens, and velocity tokens in $\mathrm{REMI + }$ for a fair comparison. + +# B.5 Hyperparameter Settings + +The model we adopted is a GPT-2 model comprising 12 Transformer decoder layers with a hidden size of 768. Our setup follows GPT's 12-layer, 768-dim embedding, 3072-dim inner states [24], and our experimental design is also in the same style: a single pretrained model and multiple fine-tuning tasks to show the efficacy of the pretrain–finetune paradigm. We used a slightly higher number of attention heads (16 instead of 12) based on the intuition that the interactions between different music tokens are more critical for musical quality than the value of individual note attributes. We detail the hyperparameter configurations used in our experiments below. + +For pre-training, Table 7 summarizes the pre-training configuration, where hyperparameters were used as-is without optimization. The pre-training was implemented using pytorch and transformers frameworks on a Linux platform, while fine-tuning additionally utilized lightning. + +For fine-tuning, we conducted a simple learning rate search over 1e-5, 5e-5, 1e-4, selecting the optimal value based on validation loss. This resulted in learning rates of 5e-5 for drum arrangement and 1e-4 for band arrangement and piano reduction. The batch sizes and context lengths were configured as follows: band arrangement used a batch size of 24 and context length of 768; piano reduction similarly adopted a batch size of 24 and context length of 768; drum arrangement employed a batch size of 8 and context length of 1536. Across all fine-tuning tasks, we used the AdamW optimizer with + +0.01 weight decay, incorporating a linear learning rate scheduler with 500-step warmup. Training spanned 3 epochs for band, piano, and drum tasks, with early stopping patience of 2 epochs. The best checkpoints were selected based on validation loss. + +For the tokenization comparison, the model is trained from scratch without generative pre-training. The hyperparameter settings remain the same as those used for band arrangement fine-tuning, except for an increased number of epochs (5). + +All experiments were conducted with a fixed random seed of 42. + +# C Objective Metrics + +In this section, we formally define the objective metrics used in the paper. All objective metrics are calculated at the segment level, and arithmetically averaged across the test set. + +# C.1 Arrangement Evaluation + +Most of our objective metrics are based on note-level F1 scores calculated on piano roll of 16-th note quantization. Given the extreme sparsity of note events in the track-wise piano roll (e.g., only $0.12\%$ non-zero elements in the Slakh2100 dataset under 16th-note quantization), F1-based metrics are more suitable than accuracy-based metrics for similarity evaluation. Let $X = \{x_{1},\dots,x_{n}\}$ and $Y = \{y_{1},\dots,y_{m}\}$ be two sequences of note events, where each note event $e$ is defined as a tuple $e = (t,p)$ with onset time $t$ and pitch $p$ . A note event $x_{i} \in X$ is considered to match $y_{j} \in Y$ if and only if: + +$$ +\left| t _ {x _ {i}} - t _ {y _ {j}} \right| < \delta_ {t} \text {a n d} p _ {x _ {i}} = p _ {y _ {j}} \tag {2} +$$ + +where $\delta_t$ is the temporal tolerance threshold (set to one 16th-note duration in our evaluation). + +Let $M(X, Y)$ denote the set of matched note pairs between $X$ and $Y$ . The Note F1 score is defined as: + +$$ +\text {P r e c i s i o n} = \frac {\left| M (X , Y) \right|}{\left| X \right|} \tag {3} +$$ + +$$ +\operatorname {R e c a l l} = \frac {\left| M (X , Y) \right|}{\left| Y \right|} \tag {4} +$$ + +$$ +\text {N o t e F 1} = \frac {2 \cdot \text {P r e c i s i o n} \cdot \text {R e c a l l}}{\text {P r e c i s i o n} + \text {R e c a l l}} \tag {5} +$$ + +The Note $_i$ F1 extends this by considering instrument matching, where each note event becomes $e = (t,p,i)$ with $i$ representing the instrument. The matching criterion becomes: + +$$ +\left| t _ {x _ {i}} - t _ {y _ {j}} \right| < \delta_ {t} \text {a n d} p _ {x _ {i}} = p _ {y _ {j}} \text {a n d} i _ {x _ {i}} = i _ {y _ {j}} \tag {6} +$$ + +Note $i$ F1 is then computed using Equation 5 with this stricter matching criterion. + +For Melody F1 (Mel F1), given a multitrack piece with tracks $T = \{T_1, \dots, T_k\}$ , we first identify the melody track $T_m$ as: + +$$ +T _ {m} = \underset {T _ {i} \in T} {\arg \max } \frac {1}{\left| T _ {i} \right|} \sum_ {e \in T _ {i}} p _ {e} \tag {7} +$$ + +where $|T_i|$ is the number of notes in track $T_i$ and $p_e$ is the pitch of note event $e$ . The Mel F1 score between output and target sequences is then: + +$$ +\operatorname {M e l} \mathrm {F} 1 = \text {N o t e} \mathrm {F} 1 \left(T _ {m} ^ {\text {o u t}}, T _ {m} ^ {\text {t g t}}\right) \tag {8} +$$ + +For instrument control evaluation, Instrument IoU (I-IoU) measures the overlap between instrument sets. Let $\mathcal{I}^{out}$ and $\mathcal{I}^{tgt}$ denote the sets of instruments used in the output and target sequences respectively: + +$$ +\mathrm {I} - \mathrm {I o U} = \frac {\left| \mathcal {I} ^ {\text {o u t}} \cap \mathcal {I} ^ {\text {t g t}} \right|}{\left| \mathcal {I} ^ {\text {o u t}} \cup \mathcal {I} ^ {\text {t g t}} \right|} \tag {9} +$$ + +where an instrument is considered present if there exists at least one note event using it. + +Finally, Voice Error Rate (VER) evaluates the similarity of voice arrangements between two multitrack compositions. For each piece, we derive an ordered voice sequence by: + +1) Computing the average pitch $\bar{p}_i$ for each active instrument $i\in \mathcal{T}^{active}$ : + +$$ +\bar {p} _ {i} = \frac {1}{| T _ {i} |} \sum_ {e \in T _ {i}} p _ {e} \tag {10} +$$ + +2) Constructing a voice sequence $V$ by sorting instruments by descending average pitch: + +$$ +V = \left[ i _ {1}, i _ {2}, \dots , i _ {n} \right] \text {w h e r e} \bar {p} _ {i _ {k}} \geq \bar {p} _ {i _ {k + 1}} \text {f o r} k = 1, \dots , n - 1 \tag {11} +$$ + +The VER between output sequence $V^{out}$ and target sequence $V^{tgt}$ is: + +$$ +\mathrm {V E R} = \frac {S + D + I}{N} \tag {12} +$$ + +where $S$ , $D$ , and $I$ are the minimum number of substitutions, deletions, and insertions required to transform $V^{out}$ into $V^{tgt}$ , and $N = |V^{tgt}|$ is the length of the $V^{tgt}$ . + +Among all the selected objective metrics, the Note $_i$ F1 is the most comprehensive and important one. To achieve a perfect Note $_i$ F1 score, the model need to perform perfectly in all evaluated aspects: instruments, voice, melody, note reconstruction and allocation. + +# C.2 Tokenization Evaluation + +Average tokens per bar $(\bar{T}_{\mathrm{bar}})$ and average tokens per note $(\bar{T}_{\mathrm{note}})$ are computed by first counting the total number of tokens and the number of bars or notes, respectively, across the entire dataset. Specifically, $\bar{T}_{\mathrm{bar}}$ is obtained by dividing the total number of tokens by the number of bars, while $\bar{T}_{\mathrm{note}}$ is obtained by dividing the total number of tokens by the number of notes. + +Bar-level Shannon Entropy $(\bar{H}_{\mathrm{bar}})$ is computed by measuring the Shannon entropy of each bar-level token sequence $H(X)$ : + +$$ +H (X) = - \sum_ {i = 1} ^ {N} P \left(x _ {i}\right) \log_ {2} P \left(x _ {i}\right), \tag {13} +$$ + +where $X$ is the token distribution within a bar. Then we average it across all bars in the dataset to obtain $\bar{H}_{\mathrm{bar}}$ . + +Note-level Perplexity $(\mathrm{PPL}_{\mathrm{note}})$ aggregates probabilities over all tokens representing a musical note (e.g., instrument, pitch, position, duration), and normalizes by the number of notes: + +$$ +\mathrm {P P L} _ {\text {n o t e}} = \exp \left(- \frac {1}{M} \sum_ {j = 1} ^ {M} \log P \left(n _ {j} \mid n _ {1: j - 1}\right)\right), \tag {14} +$$ + +where $M$ is the number of notes in a bar. + +Finally, token-level Perplexity (PPLtoken) measures the standard autoregressive perplexity over all tokens. While commonly reported in language modeling, it serves as an auxiliary metric here, as it does not directly reflect the model's ability to model note events, which are basic units of music. + +# D Subjective Evaluation + +# D.1 Subjective Metrics + +These metrics are based on listeners' auditory experiences and their subjective feelings while listening to the music. Since they are subjective, they cannot be easily defined using mathematical equations. However, we detail the evaluation criteria through the prompt questions provided in the questionnaire, which participants answered after listening to the demos. Each metric is assessed on a 5-point scale, ranging from 1 (very low) to 5 (very high). + +- Coherence: Does the arrangement flow naturally and smoothly? How consistent is each instrument's performance and style throughout the piece? + +- Creativity: How creative is the arrangement while maintaining faithfulness and naturalness? +- Musicality: What is the overall musical quality? +- Faithfulness (band): How closely does the arrangement resemble the original piece in terms of melody and overall feel? +- Faithfulness (piano): How closely does the arrangement capture the overall feel of the original piece? +- Instrumentation (band-only): Does each instrument fulfill its appropriate role within the band, and do they harmonize effectively? +- Playability (piano-only): How well is the piece suited for piano? How likely is it that a human pianist could perform this accompaniment? +- Compatibility (drum-only): Is the drum beat compatible with the other instruments? +- Phrase Transition (drum-only): How effectively does the drum arrangement handle transitions between phrases? + +# D.2 Human Evaluation Details + +Survey Design. We conducted subjective evaluations using audio clips arranged by different models across three tasks: band arrangement, piano reduction, and drum arrangement. For band arrangement, we used out-of-domain test songs with novel compositions and instrument groups; for the other two tasks, test set songs were used to allow comparison with the original piano (Rule-O) or drum (ground truth) tracks. Each model was tasked with arranging the full song, and we selected a 15-30 second chorus phrase—the most representative segment—for evaluation. In total, we prepared 6 songs for band arrangement, 5 for piano reduction, and 5 for drum arrangement. + +Each sample group includes the original music to be arranged and the anonymized outputs from all compared models (plus the ground truth for the drum task). Each sample is 8-16 bars long, rendered to audio in Cubase AI 13 using the default soundfont and the original MIDI's BPM. We collected 56, 73, and 77 evaluation groups for band, piano, and drum tasks respectively. The mean time spent per session was approximately 30 minutes. Figure 6 shows the sample survey interface and instructions. + +Participant Background A total of 26 participants joined the study, 5 of whom work in the music industry. Among all evaluators, $73.1\%$ have over 10 years of experience in music composition or performance. We conducted t-tests comparing these raters with those having $\leq 10$ years of experience (using piano reduction ratings on our model), and found no significant differences in the means between the two groups ( $p > 0.2$ across all metrics). This suggests that musical background did not systematically bias the results. + +Evaluation Protocol. Participants first listened to the original music clip, followed by model outputs presented in random order. For each arranged clip, participants rated multiple aspects using a 5-point Likert scale, based on task-specific questions in the previous subsection. The evaluation groups were randomly distributed to participants to ensure unbiased feedback. Each rater evaluated a subset of groups, where one group = one song (input) with multiple model outputs. On average, raters evaluated 2.15 groups for band, 2.80 for piano, and 2.96 for drum — corresponding to 8.6, 14.0, and 11.8 samples respectively. + +Band Arrangement Settings. To evaluate generalization, we designed three distinct instrumentation settings: (1) string trio (violin, viola, cello), (2) rock band (synth lead, clean electric guitar, distorted electric guitar, electric bass), and (3) jazz band (saxophone, violin, brass section, clean electric guitar, piano, string ensemble, electric bass). Each setting was applied to two different songs, covering six songs in total. The input content was drawn from both piano arrangements (3 songs) and band arrangements (3 songs), testing the model's ability to adapt to varying content and target instrument groups. + +# D.3 Discussion on Evaluation Scheme + +Our experiments primarily adopt a 5-point scale for subjective evaluation, which is the most commonly used protocol in prior music arrangement works [42, 35, 38]. However, we observe a growing trend toward using A/B testing to evaluate overall quality in the broader music generation literature [32, + +# The Tasks + +Now, we will present five arrangement versions, where the arranged accompaniments have been mixed with the original melody, which is played by the original lead instrument. If melody did not present in the original song, the new arrangements will only contain the piano part. Please evaluate the music quality of each sample with the following criteria (1~5 points, 5: highest quality, 1: lowest quality): + +- Faithfulness: How closely does the arrangement resemble the original piece in overall feel? (NOTE: faithfulness does not mean copy every note) +- Coherence: Does the arrangement flow naturally and feels smooth? How consistent is the piano's performance and style throughout the arrangement? +- Playability: How likely this is a piece composed for a piano? How likely a human pianist can play this accompaniment? +- Creativity: How creative is the arrangement, without loss of faithfulness or naturalness? +- Musicality: Overall musical quality. + +# Arrangement 1 + +![](images/eff805f7f1191279a2ea6d310918579b10c45e267fe68cd88c78cd1c44ee4a9d.jpg) + +# Please evaluate + +# Faithfulness + +# Coherence + +# Playability + +# Creativity + +# Musicality + +1 + +4 + +1 + +( + +(1) + +( + +(1) + +( + +(1) + +( + +(1) + +(1) + +(1) + +( + +(1) + +(1) + +(1) + +( + +( + +(1) + +(1) + +( + +(1) + +uple of the piano reduction task. + +# The Tasks + +Now, we will present four arrangement versions, where the arranged drum track has been mixed with the original piece. Please evaluate the music quality of each sample with the following criteria (1-5 points, 5: highest quality, 1: lowest quality): + +- Compatibility: Is the drum beat compatible with the other instruments being played? +- Coherence: Does the arrangement flow naturally and feels smooth, like a human drummer? +- Phrase Transition: How well does the drum arrangement handle transitions between phrases? +- Creativity: How creative is the arrangement without loss of naturalness? (NOTE: fail to generate drum notes does not count as creativity). +Musicality: Overall musical quality. + +# Arrangement 1 + +![](images/30016893859c7dfff90aaf833c9f27c9b52110ed6768d694dc081b375870c6fa.jpg) + +# Please evaluate + +1 + +2 + +3 + +4 + +5 + +# Compatibility + +O + +O + +( + +O + +O + +# Coherence + +O + +O + +( + +C + +O + +# Phrase + +# + +# + +C + +# + +# + +# Transition + +O + +# + +C + +# + +# + +# Creativity + +O + +O + +C + +。 + +O + +# Musicality + +O + +O + +( + +C + +O + +(b) An example of the drum arrangement task. + +[23, 37]. We encourage future research to consider combining both approaches to obtain more comprehensive and convincing evaluation results. + +# E Probing Analysis of Pre-Training Impact + +Knowledge probing techniques are used to explore what a model has learned within its hidden representations [27]. A widely adopted method is linear probing, where the pre-trained model is frozen and a simple linear classifier is trained on top of the hidden representations to predict specific properties, thereby revealing the extent to which particular knowledge is encoded in the model [1]. This technique is particularly useful in our context for evaluating what the model has internalized during pre-training. + +We have shown in the paper that the proposed models outperform the baseline models that do not undergo the pre-training stage on the generation quality. In this section, we further analyze the reason. Specifically, we conduct probing experiments to assess whether pre-training enhances the acquisition of musical knowledge to facilitate understanding content conditions in fine-tuning. + +We focus on two probing tasks: (1) classifying instrument types from content sequences that contain only position, pitch, and duration tokens, and (2) recognizing chord progression sequences from content sequences. To determine whether instrument or chord information is linearly accessible within the model's sequence embeddings, we employ linear classifier probes. In these probing experiments, the average pooling of the Transformer's output embeddings across all tokens in a sequence is fed into the classifier. The model parameters are kept frozen, and only the linear classifiers are trained. We compare the knowledge captured by different models: a randomly initialized Transformer, a model that has undergone pre-training only (PT only), a model trained on the band arrangement task + +Table 8: Instrument probing results. + +
ModelAcc@1Acc@3Acc@5
Random guess2.948.8214.71
Random initialized38.9861.7174.22
FT only41.5064.9376.53
PT only46.1469.3079.61
PT + FT45.8968.9679.47
+ +Table 9: Chord probing results. + +
ModelChord RootChord quality
Acc@1Acc@3Acc@1Acc@3
Random guess8.3325.0011.1133.33
Random initialized48.8678.7638.0577.97
FT only50.0980.2339.2679.03
PT only62.9389.4250.0985.58
PT + FT58.0585.9344.9282.48
+ +without pre-training (FT only), and a model that has undergone both pre-training and fine-tuning (PT + FT). + +For the probing experiments, the batch size was set to 12 for chord probing and 64 for instrument probing. The learning rates were 5e-4 for chord probing and 1e-4 for instrument probing. Both experiments shared the same remaining hyperparameters: training for 10 epochs, using a linear learning rate scheduler, a 500-step warmup, and a weight decay of 0.01. + +# E.1 Instrument Type Probing + +In this task, we use a linear probe to estimate the instrument type from a single-track music sequence without providing instrument tokens. The goal is to predict which instrument is most likely to play the given note sequence. The performance is evaluated using top-1, top-3, and top-5 prediction accuracy metrics. + +As shown in Table 8, a model initialized with random weights shows notable improvement after fine-tuning, suggesting that the ability to discern instrument styles is the requirement for performing well in music arrangement tasks. However, the gains in accuracy are modest, likely due to the limited number of training samples, which may constrain the model's ability to acquire such knowledge through fine-tuning alone. Interestingly, models that underwent pre-training exhibit the highest accuracy in predicting instrument types. This indicates that substantial knowledge of instrument styles can be acquired effectively during the pre-training phase. Moreover, the proposed models that are both pre-trained and fine-tuned (PT+FT) maintained high accuracy levels, demonstrating that the knowledge about instruments styles are useful for the arrangement task. + +# E.2 Chord Progression Probing + +In this task, we use linear probes to predict chord progressions from a 2-bar music content sequence without instrument tokens. Eight linear probes are trained simultaneously to predict the chord roots and qualities for a total of four chords (two chords per bar). This tasks is used to evaluate whether the model contains position-specific chord information. Similarly, we use top-1 and top-3 prediction accuracy metrics. + +As shown in Table 9, the model with only fine-tuning (FT only) indicates a foundational grasp of chord knowledge for this complex music analysis tasks. However, similar to instrument prediction, the knowledge of recognizing chord progression does not significant gain, until the pre-training is also introduced into the model, confirming that pre-training establishes a robust basis for better understanding of content sequence, which may potentially help with the quality of arrangement. + +# F Broader Impact + +This work presents a unified framework for symbolic music arrangement using pretrained generative models, achieved by a reconstruction fine-tuning objective and a structured tokenization scheme. By enabling high-quality arrangement generation under flexible control, our approach has the potential to make music creation more accessible to non-experts, reduce the technical burden for composers, and support educational and assistive tools for learning music theory, orchestration, or instrumentation. It may also benefit creative professionals by streamlining workflows in game audio, film scoring, and digital content production. + +Many other conditional generation tasks could similarly benefit from this training objective design. For instance, one can construct a conditional sequence derived from a partial or aspect-wise decomposition of the target, concatenate it with the original target tokens, and then perform segment-level generation using a pretrained model with historical context-awareness to fine-tune existing generative models. Examples include bar-level infilling (e.g., removing and rewriting one bar), melody generation conditioned on chords, variation generation from a given melody, counter-melody generation, or harmonizing a melody with chords. All of these tasks share the same music-conditioned generation pattern and may benefit from a strong generative pretrained model. + +Beyond arrangement tasks, the proposed tokenization scheme may have broader implications for symbolic music modeling in general. By restructuring musical data into continuous track sequences, it facilitates learning over reusable musical phrases. This may improve both conditional and unconditional generation quality across tasks such as continuation, accompaniment generation, and reharmonization. Moreover, we anticipate that structured representations like REMI-z could benefit music understanding tasks, including symbolic transcription from audio, by facilitating the modeling of instrument-wise playing styles during decoding. Additionally, one may consider applying sequence compression techniques—such as Byte Pair Encoding (BPE) or variational autoencoders (VAE)—on top of this base tokenization to enhance compactness, which could further support long-range modeling essential for full-song generation. We encourage future work to explore these directions. + +Beyond arrangement tasks, the proposed tokenization scheme may have broader implications for symbolic music modeling in general. By restructuring musical data into locally coherent, instrument-consistent sequences, it facilitates learning over meaningful musical units. This could improve both conditional and unconditional generation quality across tasks such as continuation, accompaniment generation, or reharmonization. Moreover, we anticipate that structured representations like REMI-z may benefit music understanding tasks, including symbolic transcription from audio, by facilitating modeling of instrument-wise playing styles when decoding. Also, you can consider combine sequence compression techniques, maybe BPE, maybe VAE, on top of that, to further enhance the compactness, which may facilitate long-range modeling that are important to full-song generation. We encourage future work to explore these directions. + +However, there are potential risks. As with other generative models, the misuse of automatic arrangement systems could devalue human artistry if deployed without appropriate attribution or transparency. The system may also reflect and amplify stylistic biases present in the training data, which primarily consists of western popular music. This could marginalize underrepresented musical traditions or reinforce narrow definitions of musical aesthetics. We encourage future researchers and practitioners to consider ethical deployment strategies, such as transparent model labeling, dataset diversification, and collaborative workflows where AI augments rather than replaces human creativity. + +# G Limitations + +Fine-tuning dataset focused on pop genres. While our framework is designed to be genre-agnostic, our fine-tuning and evaluation primarily focus on pop-style arrangements. Future work can further explore the generalizability across a wider range of genres such as classical, jazz, or non-Western traditions. + +Strict structural alignment assumption. Our framework assumes that the input and output music share identical musical structure, which enables a segment-to-segment reconstruction formulation. While effective, this simplification does not fully reflect the broader musicological concept of + +arrangement, which often involves modifying the musical form or phrase structure. This constraint is not unique to our method—most prior works also rely on such structural alignment—but relaxing this assumption remains an important direction for future research. + +Lack of instrument planning. Although our system allows users to specify the instruments and their voice relationships for each segment during inference, the global planning of these assignments is not addressed. In practice, achieving a musically satisfying arrangement often requires deliberate instrument planning across segments—e.g., rotating lead instruments, or changing instrument combinations between sections. This work focuses on controllability at the segment level and leaves high-level planning strategies for future exploration. + +Melody retention in piano reduction is not guaranteed. While our piano reduction method captures harmonies and textures from ensemble music, it often fails to retain the melody. This is largely because the original piano track in multitrack data typically does not carry the main melodic line, and our current training setup does not include any explicit melody supervision. Solving this may require incorporating human-created piano arrangements or explicitly modeling melodic salience, which we leave for future work. + +Handling of Time Signature and Tempo. Our current model does not explicitly model time signature or tempo tokens during fine-tuning. As a result, it is limited to handling music with a fixed 4/4 time signature and stable tempo. This design choice follows common practice in prior arrangement research [42, 35, 30], where similar assumptions are made to simplify modeling. Empirically, approximately $95\%$ of the fine-tuning data is in 4/4 time (see Appendix A), and stable tempo is generally the norm in modern music [7]. Nevertheless, extending the framework to handle non-4/4 time signatures and dynamic tempo variations remains an important direction for future work. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: We ensure the claims in abstract and introduction accurately reflect our contributions and supported by experiments. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: Limitations are summarized in Appendix G. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: Our paper does not include theoretical results. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: We introduced our experimental settings in $\S 4.1$ and provide details of hyperparameter settings necessary for reproduction in Appendix B. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [Yes] + +Justification: All datasets used in this work are open-source. Please refer to the code in the supplementary material, which will be released upon acceptance. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: We introduced our experimental settings in $\S 4.1$ and provide details of hyperparameter settings necessary for reproduction in Appendix B. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [Yes] + +Justification: We adopted within-subject (repeated-measures) ANOVA significance test for subjective evaluation, and presented mean and standard error in the tables. For objective evaluation, we used Wilcoxon signed rank test to support the major claim (tokenization advantage). + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). + +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: The compute resources are stated in § 4.1 and detailed in Appendix B. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: The authors have reviewed and conformed in every respect with the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: We discuss both positive and negative impacts of our work in Appendix F. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. + +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: All datasets used in this paper are open-source datasets with minimum risk of misuse, and so are the models trained on them. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We use two datasets for model training: Los Angeles MIDI Dataset is licensed under Apache-2.0 License, and Slakh2100 is licensed under CC BY 4.0. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URI. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. + +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +Justification: The code in the supplementary material is well documented. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [Yes] + +Justification: We provide crowdsourcing details including screenshots in Appendix D.2. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [Yes] + +Justification: The human study in our experiment is based on online crowdsourcing, which bears minimum risk. Participants are informed that participation in our study is entirely voluntary and that they may choose to stop participating at any time without any negative consequences. No personally identifying information is collected in the human study. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. + +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: We only used LLM for writing and formatting of the manuscript. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/images.zip b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..669eea3c5105c7fb53097b3ff3f170eefb906db0 --- /dev/null +++ b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d12dbb9214815f0b125b09310b7454c18336535bcdb7b9e66326c670115aa39 +size 568826 diff --git a/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/layout.json b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..422f43d8fef6cf8132ccbb9fcf359dbd408a565b --- /dev/null +++ b/NeurIPS/2025/Unifying Symbolic Music Arrangement_ Track-Aware Reconstruction and Structured Tokenization/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:376038a78e3e6b706d39a096c244cd81a437ec7282b61d83511a6cb63ff9db40 +size 951186 diff --git a/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/92684f64-208e-43ee-bf74-de175bddcdd1_content_list.json b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/92684f64-208e-43ee-bf74-de175bddcdd1_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..6a4fdfb0e466eb15710e69dcb001ac6280157c0b --- /dev/null +++ b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/92684f64-208e-43ee-bf74-de175bddcdd1_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20d6cfee31f64fe38ef3881afd59fa06c7bf9b9257300824821dbb76aa6f2f73 +size 238436 diff --git a/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/92684f64-208e-43ee-bf74-de175bddcdd1_model.json b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/92684f64-208e-43ee-bf74-de175bddcdd1_model.json new file mode 100644 index 0000000000000000000000000000000000000000..96bfe78e1c59a2ca29374d3ff24c0399f49d24bf --- /dev/null +++ b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/92684f64-208e-43ee-bf74-de175bddcdd1_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c57cc3387fa990ea10c77b672b98dec854cbf5f006e67bbc8fee1fd5f9f3e27e +size 301584 diff --git a/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/92684f64-208e-43ee-bf74-de175bddcdd1_origin.pdf b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/92684f64-208e-43ee-bf74-de175bddcdd1_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..404ed60b7f1dd857b7e41f7922dd4eedd5975f7a --- /dev/null +++ b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/92684f64-208e-43ee-bf74-de175bddcdd1_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bcff1c4fa5b623b0c156605885ca3129b616e7aca00579c7fd2476b190cd00d +size 3928652 diff --git a/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/full.md b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/full.md new file mode 100644 index 0000000000000000000000000000000000000000..f31d0e112fa8300b374fbfd88b786722cf4222cb --- /dev/null +++ b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/full.md @@ -0,0 +1,1046 @@ +# Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models + +Siwei Zhang $^{1}$ , Yun Xiong $^{1*}$ , Yateng Tang $^{3}$ , Jiarong Xu $^{2}$ , Xi Chen $^{1}$ , Zehao Gu $^{1}$ , Xuehao Zheng $^{3}$ , Zian Jia $^{1}$ , Jiawei Zhang $^{4}$ + +$^{1}$ Shanghai Key Laboratory of Data Science, School of Computer Science, Fudan University $^{2}$ School of Management, Fudan University $^{3}$ Tencent Weixin Group $^{4}$ IFM Lab, University of California, Davis + +{swzhang24, x_chen21, guzh22, 24110240035}@m.fudan.edu.cn jiawei@ifmlab.org {yunx, jiarongxu}@fudan.edu.cn {fredyttang, xuehaozheng}@tencent.com + +# Abstract + +Temporal graph neural networks (TGNNs) have shown remarkable performance in temporal graph modeling. However, real-world temporal graphs often possess rich textual information, giving rise to temporal text-attributed graphs (TTAGs). Such combination of dynamic text semantics and evolving graph structures introduces heightened complexity. Existing TGNNs embed texts statically and rely heavily on encoding mechanisms that biweekly prioritize structural information, overlooking the temporal evolution of text semantics and the essential interplay between semantics and structures for synergistic reinforcement. To tackle these issues, we present CROSS, a flexible framework that seamlessly extends existing TGNNs for TTAG modeling. CROSS is designed by decomposing the TTAG modeling process into two phases: (i) temporal semantics extraction; and (ii) semantic-structural information unification. The key idea is to advance the large language models (LLMs) to dynamically extract the temporal semantics in text space and then generate cohesive representations unifying both semantics and structures. Specifically, we propose a Temporal Semantics Extractor in the CROSS framework, which empowers LLMs to offer the dynamic semantic understanding of node's evolving contexts of textual neighborhoods, facilitating semantic dynamics. Subsequently, we introduce the Semantic-structural Co-encoder, which collaborates with the above Extractor for synthesizing illuminating representations by jointly considering both semantic and structural information while encouraging their mutual reinforcement. Extensive experiments show that CROSS achieves state-of-the-art results on four public datasets and one industrial dataset, with $24.7\%$ absolute MRR gain on average in temporal link prediction and $3.7\%$ AUC gain in node classification of industrial application. + +# 1 Introduction + +Temporal graphs are crucial for modeling dynamic interaction data, where objects are represented as nodes and timestamped interactions are depicted as edges [1, 2]. Unlike static graphs, temporal graphs continuously evolve over time [3]. To capture the temporal dependencies and realize representation learning for such graphs, extensive research has developed temporal graph neural networks (TGNNs) [4, 5, 6, 7, 8]. These works typically adopt structural encoding mechanisms [9, 10] to encapsulate the dynamics of graph structures [11], thus enabling representations for downstream tasks. + +Meanwhile, besides the dynamically evolving graph structures, real-world temporal graphs are also often accompanied by rich text attributes, giving rise to temporal text-attributed graphs (TTAGs) [12]. As shown in Fig. 1(a), in e-commerce networks, nodes may encompass elaborate text descriptions such as user profile or product introduction, while timestamped edges can attach transaction details + +![](images/f6f91b2b13bddd2922b7885540267b798d6c95efd3890d488a84cba9471d42c7.jpg) +(a) An illustrative example of semantic dynamics in TTAGs. + +![](images/3e3d18e4593c2e7e3cb8cb18ca3303f6f4256cd9be46c518a2ea76f22704e61e.jpg) +(b) Comparison between existing TGNNs and our framework. +Figure 1: (a) An illustrative example of semantic dynamics in TTAGs. Temporal text-attributed graphs (TTAGs) inherently exhibit semantic dynamics, where text semantics around nodes dynamically evolve across temporal dimensions. (b) Comparison between existing TGNNs and our framework. Going beyond existing TGNNs that biasedly focus on structural dynamics, our framework seamlessly unifies text semantics and graph structures of TTAGs, promoting both dynamic semantic understanding and semantic-structural reinforcement. + +including price, transaction type, review, etc. Representation learning in TTAGs presents unique challenges due to the intricate combination of dynamic text semantics and evolving graph structures, which remains largely under-explored in the community. Despite the success of existing TGNNs, they still encounter two fundamental limitations that hinder their accommodation to TTAG modeling. + +Limitation (i): Neglect of semantic dynamics. Text semantics arise from the textual attributes of a node and its surrounding neighborhoods. These semantics exhibit changes across timestamps due to the temporal evolution of neighborhood contexts within TTAGs. For example, as depicted in Fig. 1(a), the term "apple" may take on different meanings according to user preferences (driven by its neighborhoods), such as "smartphone" when focused on technology while "fruit" when turning to daily life. Such characteristics necessitate a temporal-aware design for extracting text semantics over time. However, existing TGNNs always use pre-trained language models, e.g., MiniLM [13], to statically embed texts as pre-processed features, failing to adapt to such dynamic semantic shifts and leading to suboptimal representations for effectively capturing the semantic dynamics. + +Limitation (ii): Ineffective encoding for semantic-structural reinforcement. Another limitation of existing TGNNs is the rigid reliance on their structural encoding mechanisms, which predominantly focus on topological information without adequately incorporating semantic considerations. We argue that the semantics and structures of TTAGs can mutually reinforce each other, making a biased encoding mechanism that solely emphasizes structures untenable. This hypothesis is reasonable due to the inherent complementarity between textual content and structural connectivity [14, 15] (also empirically validated in Sec. A). For instance, product recommendations are shaped not only by goods' descriptions but also by users' historical behaviors [16]. Existing TGNN encoding mechanisms do not account for such nuanced semantic-structural reinforcement in TTAGs, resulting in insufficient representations that are overly reliant on simplistic (or sometimes noisy) structural information. + +On the other hand, recent surveys [17, 18] reveal that large language models (LLMs), e.g., DeepSeeks v2/3 [19], exhibit notable capabilities in semantic understanding and generation, which have been successfully leveraged in graph modeling through text augmentation [20, 21]. However, LLMs employed in these methods are typically limited by static corpora input for reasoning, making them ill-suited to capture the fine-grained dynamics of TTAGs. This limitation inspires us to ask: Can we advance LLMs for TTAG modeling as a promising solution to the aforementioned limitations of existing TGNNs? + +Key innovation. Beyond existing TGNNs that solely prioritize structural dynamics, in this paper, we tackle above issues by decoupling the TTAG modeling process into two phases: (i) temporal semantics extraction; and (ii) semantic-structural information unification. By extracting both dynamic semantics and evolving structures of TTAGs, we cohesively unify them to harness their dual-strengths for more informative representations. Consequently, as shown in Fig. 1(b), the key idea of this work is to elevate LLMs with dynamic reasoning capability to extract semantic dynamics, which subsequently allows for a unified, integrated, and non-biased encoding mechanism obeying semantic-structural reinforcement. + +Present work. We extend existing TGNNs for TTAG modeling and introduce CROSS (Cohesive Representations Of Semantics and Structures), a novel framework that seamlessly unifies text + +![](images/457a64b3d62375e2a7ff2ed994c49dc31fa61209860ebca0866cf543844abfe9.jpg) +Figure 2: Technical difference comparison from the perspective of LLM utilization and modality fusion. + +semantics and graph structures coupled with LLMs. CROSS can significantly boost existing TGNNs, and it comprises two main components: (i) Temporal Semantics Extractor, and (ii) Semantic-structural Co-encoder. To capture the semantic dynamics for nodes within TTAGs, we propose a Temporal Semantics Extractor, which empowers the LLMs with the dynamic semantic summarization reasoning capability for TTAG modeling. It automatically detects semantic dynamics by constructing a temporal reasoning chain to dynamically prompt the LLMs to summarize the textualized, evolving neighborhoods of nodes, thus revealing the linguistic nuances across temporal dimensions. Besides the Extractor, to effectively achieve semantic-structural reinforcement, we further propose the Semantic-structural Co-encoder that simultaneously exploits both semantic and structural information through an iterative, multi-layer design. Each layer in the proposed Co-encoder bidirectionally transfers the cross-modal information between semantics and structures, allowing both modalities to blend deeply and fully illuminate each other. By performing such a unification, we can generate modal-cohesive representations that are both semantic-enriched and structural-informed. + +The main contributions of this paper are summarized as follows: + +- We address an under-explored problem of temporal text-attributed graph (TTAG) modeling and propose CROSS. To the best of our knowledge, CROSS is the first framework designed to unify text semantics and graph structures with LLMs for TTAG modeling. +- We design a temporal-aware LLM prompting paradigm for TTAG modeling and develop Temporal Semantics Extractor. It enhances LLMs with dynamic reasoning capability to offer the evolving semantics of nodes' neighborhoods, effectively detecting semantic dynamics. +- We introduce a modal-cohesive co-encoding architecture for TTAG modeling and propose Semantic-structural Co-encoder, which jointly propagates semantic and structural information, facilitating mutual reinforcement between both modalities. +- We conduct extensive experiments on four public datasets and one practical e-commerce industrial dataset. CROSS outperforms baselines with $24.7\%$ absolute MRR gain on average in temporal link prediction and $3.7\%$ AUC gain in node classification of industrial application. + +# 2 Preliminaries and Related Work + +# 2.1 Preliminaries + +Definition 1. Temporal Text-attributed Graph. Given a set of nodes $\mathcal{V}$ , node text attributes $\mathcal{D}$ , and edge text attributes $\mathcal{R}$ , a temporal text-attributed graph (TTAG) can be represented as a sequence of interactions $\mathcal{G} = \{(u,v,t)\}$ , where $u, v \in \mathcal{V}$ and $t \geq 0$ . Each node $u \in \mathcal{V}$ is associated with a node text attribute $d_u \in \mathcal{D}$ and each interaction $(u,v,t) \in \mathcal{G}$ attaches an edge text attribute $r_{u,v,t} \in \mathcal{R}$ . We use $\mathcal{H}_u(t) = \{(u,v,\tau) | \tau < t\} \cup \{(v,u,\tau) | \tau < t\}$ to denote the set of historical interactions involving node $u$ before time $t$ . + +Definition 2. Temporal Text-attributed Graph Modeling. Given node $u$ , time $t$ , and all available historical interactions before $t$ , $\{(u', v', \tau) | \tau < t\}$ , temporal text-attributed graph modeling aims to learn a mapping function $f: (u, t) \mapsto \mathbf{z}_u(t)$ , where $\mathbf{z}_u(t) \in \mathbb{R}^d$ denotes the representation of node $u$ at time $t$ , and $d$ is the vector dimension. + +Definition 3. Language Model vs. Large Language Model. We clearly distinguish between pretrained language models (LMs) and large language models (LLMs). LMs, e.g., MiniLM, are relatively smaller models designed to embed texts from the text space into the feature space; and LLMs refer to significantly larger models far surpassing the linguistic capabilities of LMs, like DeepSeek-v2/3. + +# 2.2 Related Works + +We provide two groups of related works: TGNNs and LLM-for-Graph-Text-Augmentation (LLM4GTAug) methods. As illustrated in Fig. 2, we summarize these methods from the perspective of LLM utilization and modality fusion. A discussion of related works is detailed in Sec. E. + +TGNNs. LLM utilization within TGNNs remains limited. Existing TGNNs [12] typically pre-embed the raw texts as input features and rely on their structural encoders [9] to capture the dynamics of + +![](images/fdfd8c3dc15dd1a52ad5b4c5f9c220bd10605e01d52c18b65c00538c6540cc93.jpg) +Figure 3: Architecture of the proposed framework, CROSS. Our Temporal Semantics Extractor constructs the temporal reasoning chain to empower the LLMs with dynamic reasoning capability to dynamically provide the semantic understanding of nodes' neighborhoods, thereby extracting semantic dynamics in text space. Subsequently, the Semantic-structural Co-encoder iteratively mixes and consolidates both semantic and structural information, ensuring their mutual reinforcement for effectively generating modal-cohesive representations. + +graph structures. These methods overlook the temporal evolution of text semantics within TTAGs. Besides, they integrate semantic and structural information only at the input stage, resulting in shallow modality fusion that occurs before encoding. + +LLM4GTAug methods. Existing LLM4GTAug methods [20, 21] are designed for static graphs and employ LLMs through static, one-off reasoning for each node. This makes them ill-suited for capturing the temporal dynamics of TTAGs. In addition, they mix structural and semantic representations only at the output stage, leading to shallow fusion after encoding. + +As summarized in Tab. 1, in this paper, our CROSS aims to (i) enhance LLMs with dynamic reasoning capabilities to capture semantic dynamics; and (ii) facilitate hierarchical modality fusion throughout the entire encoding process. Our proposed method fundamentally opens new avenues for future research in TTAG modeling. + +Table 1: Summary of related works. + +
TGNNsLLM4GTAugCROSS
Structural Dynamics✘✓✓
Semantic Dynamics✘✘✓
LLM Utilizationstaticno LLMdynamic
Modality Fusionshallow at output(after encoding)shallow at input(before encoding)hierarchical(during encoding)
+ +# 3 Methodology + +As mentioned before, unifying text semantics and graph structures for TTAG modeling requires considering both semantic dynamics and semantic-structural reinforcement. To this end, as depicted in Fig. 3, the proposed CROSS framework comprises two stages, i.e., the Temporal Semantics Extractor first detects the dynamic text semantics for nodes' evolving neighborhoods; then the Semantic-structural Co-encoder jointly unifies both semantic and structural information to ensure cross-modal reinforcement. We will introduce these two stages in the following subsections. + +# 3.1 Temporal Semantics Extractor + +In this section, we propose the temporal reasoning chain to advance the LLMs with dynamic reasoning capability to extract semantic dynamics for TTAG modeling. It will be described below. + +Temporal Reasoning Chain. Existing LLM utilization paradigm within LLM4GTAug methods are ill-suited for semantic extraction in TTAGs, as it fails to effectively capture the dynamics of node's semantic contexts. To address this challenge, we design a novel temporal reasoning chain that empowers the LLMs with the dynamic semantic summarization reasoning capability across temporal dimensions, discerning the evolving linguistic nuances along timestamps. However, performing LLM reasoning at every timestamp remains computationally impractical. To ensure scalability and stability, for each node among TTAGs, we strategically sample reasoning timestamps at equal interaction intervals. This strategy enables CROSS to constrain the number of LLM calls and guarantee that each LLM reasoning step accesses a balanced set of interactions, striking a delicate balance between temporal granularity and cost efficiency. + +Formally, for node $u$ , we first derive the set of its interaction timestamps $\mathcal{T}_u = \{t_1, t_2, \dots, t_n\}$ , where $t_1 \leq t_2 \dots \leq t_n$ and $n$ is the node degree. Then we sample the reasoning timestamps at intervals of $\left\lceil \frac{n}{m} \right\rceil$ among $\mathcal{T}_u$ with a predefined maximum reasoning count $m$ as follows: + +$$ +\hat {\mathcal {T}} _ {u} = \left\{\hat {t} _ {i} \mid \hat {t} _ {i} = \left\{ \begin{array}{l l} t _ {i. \lceil \frac {n}{m} \rceil}, & i = 1, \dots , m - 1, \\ t _ {n}, & i = m \end{array} \right. \in \mathcal {T} _ {u} \right\}. \tag {1} +$$ + +Here, $\hat{\mathcal{T}}_u\subseteq \mathcal{T}_u$ depicts the LLM reasoning timestamps to summarize text semantics around node $u$ , and we will also analyze the dataset-specific hyper-parameter $m$ in Sec. I of the Appendix. + +Summarization. To align with the dynamics of semantic contexts within TTAGs, we facilitate the LLMs to dynamically summarize nodes' neighborhoods across different timestamps. Specifically, we perform multi-turn calling with the LLMs along the previously sampled reasoning timestamps. For node $u$ at reasoning time $\hat{t} \in \hat{T}_u$ , we first obtain its neighborhood by retrieving $u$ 's historical interactions $\mathcal{H}_u(\hat{t}) = \{(u,v,\tau) | \tau < \hat{t}\} \cup \{(v,u,\tau) | \tau < \hat{t}\}$ , and then we prompt the LLMs to generate neighborhood summaries and semantic details for that time. This can be represented by: + +$$ +\hat {d} _ {u} (\hat {t}) = \operatorname {L L M} \left(d _ {u}, \hat {t}, \{r _ {*} \} _ {* \in \mathcal {H} _ {u} (\hat {t})}; \text {P R O M P T}\right). \tag {2} +$$ + +$\mathrm{LLM}(\cdot ;\mathrm{PROMPT})$ denotes the LLM calling with the prompt, which comprises a fixed template alongside variable pieces, including node $u$ 's raw text $d_{u}$ , time $\hat{t}$ , and the neighborhood $\{r_{*}\}_{* \in \mathcal{H}_{u}(\hat{t})}.\hat{d}_{u}(\hat{t})$ is the LLM-generated text, denoting the semantic summary for $u$ 's contexts at time $\hat{t}$ . We present a simplified example of PROMPT for clarity, and the complete version is given in Sec. F of the Appendix. + +# A simplified example of PROMPT + +Goal: [Request to summarize the current neighborhoods and emphasize the response format.] + +Descriptions: [Provide the text attribute of node $d_u$ .] + +Current time: [Specify the reasoning timestamp $\hat{t}$ .] + +Historical interactions: [List textualized neighborhoods using recent interactions $\{r_{*}\}_{* \in \mathcal{H}_u(t)}$ .] + +After performing all reasoning, we can obtain a set of LLM-generated textual summaries for each node $u$ . We represent them as $\hat{\mathcal{D}}_u = \{\hat{d}_u(\hat{t}) \mid \hat{t} \in \hat{\mathcal{T}}_u\}$ . Notably, to incorporate the raw texts in TTAGs, we set $\hat{d}_u(0) = d_u$ . These summaries encapsulate the evolving semantics around nodes derived from the dynamically-enhanced LLMs, promoting semantic dynamics for TTAG modeling. + +# 3.2 Semantic-structural Co-encoder + +As mentioned in the Introduction, existing TGNNs solely account for structural dynamics, overlooking the necessary consideration of semantic dynamics and the reinforcement between these two modalities. To address this issue, our Semantic-structural Co-encoder performs iterative integration of semantics and structures at the layer level. Each layer of the proposed Co-encoder comprises three types of encoding components: (i) the semantic layer that encodes the text semantics from LLM-generated summaries to produce semantic representations; (ii) the structural layer that encodes the graph structures from neighborhood information to capture structural representations; and (iii) the cross-modal mixer that facilitates transformation between these two unimodal representations to cheer their mutual reinforcement. We will discuss them in detail below. + +Semantic Layer. To better incorporate the semantic modality, we implement our semantic layer using a Transformer encoder [22] due to its widespread usage in textual modeling. From the ablation results in Tab. 3, such a design effectively harnesses the full potential of text semantics for TTAG modeling, demonstrating clear advantages over purely structural encoding mechanisms. + +We first prepare the inputs for the semantic layer. For node $u$ at time $t$ , the inputs of the semantic layer are the corresponding LLM-generated summaries before $t$ from our Extractor. We represent them as $\hat{\mathcal{D}}_u(t) = \{\hat{d}_u(t_k) \mid t_k < t\}$ , where $t_1 \leq \dots \leq t_k$ . We then use a pre-trained LM, such as MiniLM [13], to embed the texts into the $d$ -dimensional semantic features, which is depicted as $\hat{\mathbf{s}}_u(t_k) = \mathrm{LM}\left(\hat{d}_u(t_k)\right) \in \mathbb{R}^d$ . To capture the temporal differences, we subsequently concatenate time information into these semantic features as follows: + +$$ +\mathbf {x} _ {u} \left(t _ {k}\right) = \hat {\mathbf {s}} _ {u} \left(t _ {k}\right) \| \Phi (t - t _ {k}) \in \mathbb {R} ^ {2 d}. \tag {3} +$$ + +Here, $\Phi (\cdot)$ is the time encoding function introduced by [23], which is widely used in recent TGNNs [9]. These enriched features then feed into the $L$ -layer Transformer encoder blocks to derive the semantic representations for node $u$ at time $t$ . We have: + +$$ +\tilde {\mathbf {e}} _ {u} ^ {(l)} \left(t _ {1}\right), \dots , \tilde {\mathbf {e}} _ {u} ^ {(l)} \left(t _ {k}\right) = \operatorname {T R M} ^ {(l)} \left(\mathbf {e} _ {u} ^ {(l - 1)} \left(t _ {1}\right), \dots , \mathbf {e} _ {u} ^ {(l - 1)} \left(t _ {k}\right)\right), \tag {4} +$$ + +where $\tilde{\mathbf{e}}_u^{(l)}(t)\in \mathbb{R}^{2d}$ corresponds to the pre-mixed semantic representation at the $l$ -th layer and $\mathbf{e}_u^{(0)}(t_1),\ldots ,\mathbf{e}_u^{(0)}(t_k) = \mathbf{x}_u(t_1),\ldots ,\mathbf{x}_u(t_k)$ . As we will mention below, the latest semantic representation of node $u$ , $\mathbf{e}_u^{(l - 1)}(t_k)$ , has integrated information from its structural representation in the previous layer. This allows the $l$ -th semantic layer to receive the information from graph structures, achieving deep fusion and promoting their synergistic reinforcement. + +Structural Layer. Meanwhile, we conduct our structural layer to encode the graph structures around node $u$ at time $t$ , $\mathcal{G}_u(t)$ , using the structural encoding block in TGNNs. Such a design renders our framework inherently TGNN-agnostic and flexibly integrable with any TGNN backbone. + +Formally, the $l$ -th structural layer aggregates the neighborhood information of node $u$ from current layer $\mathbf{H}_u^{(l)}(t)$ and its structural representation from the previous layer $\mathbf{h}_u^{(l-1)}(t)$ with a 2-layer Multi-Layer Perceptron (MLP). This can be expressed as: + +$$ +\tilde {\mathbf {h}} _ {u} ^ {(l)} (t) = \operatorname {M L P} ^ {(l)} \left(\mathbf {h} _ {u} ^ {(l - 1)} (t) \| \operatorname {A G G} \left(\mathbf {H} _ {u} ^ {(l)} (t)\right)\right). \tag {5} +$$ + +Here, $\tilde{\mathbf{h}}_u^{(l)}(t)$ is the pre-mixed structural representation at the $l$ -th layer and $\|\cdot\|$ denotes concatenation. $\mathrm{AGG}(\cdot)$ is a pooling function to aggregate the neighborhood information matrix into a $d$ -dimensional vector, with specific implementations (e.g., mean, sum) varying across various TGNNs [4, 5, 7]. + +The neighborhood information $\mathbf{H}_u^{(l)}(t)$ is derived using a temporal attention mechanism [4] via message passing from the $l$ -th layer neighborhood. This process assigns attention weights to scale the contribution and importance of neighbors $\mathcal{N}_u(t)$ for node $u$ as follows: + +$$ +\mathbf {H} _ {u} ^ {(l)} (t) = \operatorname {S o f t m a x} \left(\mathbf {a} _ {u} ^ {(l)} (t)\right) \cdot \mathbf {V} _ {u} ^ {(l)} (t), \tag {6} +$$ + +where $\mathbf{a}_u^{(l)}(t) = [a_{uv}^{(l)}(t)]_{v\in \mathcal{N}_u(t)}$ represents the attention weight vector, and the matrix $\mathbf{V}_u^{(l)}(t) = [\mathbf{v}_v^{(l)}(t)]_{v\in \mathcal{N}_u(t)}$ condenses the messages from $u$ 's $l$ -th layer neighborhood. Each element $a_{uv}^{(l)}(t)$ in $\mathbf{a}_u^{(l)}(t)$ is the attention weight for node $u$ to its neighbor $v\in \mathcal{N}_u(t)$ , and each row $\mathbf{v}_v^{(l)}(t)$ from $\mathbf{V}_u^{(l)}(t)$ is the message carried from $u$ 's neighboring node $v$ . These can be computed by: + +$$ +a _ {u v} ^ {(l)} (t) = \frac {f _ {\mathrm {q}} \left(\mathbf {h} _ {u} ^ {(l - 1)} (t)\right) f _ {\mathrm {k}} \left(\mathbf {h} _ {v} ^ {(l - 1)} (t)\right) ^ {T}}{\sqrt {d ^ {(k)}}}, \tag {8} +$$ + +In Eqs. 7 & 8, $f_{*}(\cdot)(\ast \in \{\mathrm{q}, \mathrm{k}, \mathrm{v}\})$ denote the encoding functions for queries, keys, and values, respectively [22]. These functions may be implemented differently across various TGNNs [4, 5, 7, 9], and we do not discuss their details as they are beyond the scope of our work. + +As we explain in the next paragraph, the structural representations from the previous layer, $\mathbf{h}_u^{(l - 1)}(t)$ , have integrated with the semantic representations. Consequently, the message-passing aggregation in Eq. 5 enables the propagation between both types of information, effectively facilitating semantic-structural reinforcement during encoding. + +Cross-modal Mixer. Finally, to enable the deep unification between the semantic and structural modalities for TTAG modeling, we introduce a novel and interesting cross-modal mixer that automatically transfers and integrates the bimodal information at a layer-wise granularity. + +For node $u$ at the $l$ -th layer, the inputs of our cross-modal mixer are the most recent pre-mixed semantic representation $\tilde{\mathbf{e}}_u^{(l)}(t_k)$ and the corresponding pre-mixed structural representation $\tilde{\mathbf{h}}_u^{(l)}(t)$ . This means that the remaining historical semantic representations, i.e., $\tilde{\mathbf{e}}_u^{(l)}(t_1), \ldots, \tilde{\mathbf{e}}_u^{(l)}(t_{k-1})$ , will be not involved in the mixture process. Such a design is driven by: (i) efficiency consideration; (ii) temporal-awareness consideration that the latest semantic representation carries the most contextually relevant information; and (iii) empirical consideration that mixing all semantic representations does not necessarily lead to better performance (See Sec. 4.5). Therefore, we concatenate $\tilde{\mathbf{e}}_u^{(l)}(t_k)$ with + +$\tilde{\mathbf{h}}_u^{(l)}(t)$ , then pass through our cross-modal mixer, and finally split the fused representation to derive the post-mixed semantic and structural representations. These processes can be formulated as follows: + +$$ +\mathbf {e} _ {u} ^ {(l)} \left(t _ {k}\right); \mathbf {h} _ {u} ^ {(l)} (t) = \operatorname {M i x e r} ^ {(l)} \left(\tilde {\mathbf {e}} _ {u} ^ {(l)} \left(t _ {k}\right) \| \tilde {\mathbf {h}} _ {u} ^ {(l)} (t)\right). \tag {9} +$$ + +We implement $\mathbf{Mixer}^{(l)}(\cdot)$ using a 2-layer MLP, and it can be alternatively conducted in other fusion components. By iteratively performing such a mixture operation, we can deeply unify both text semantics and graph structures, enabling cohesive representations for TTAG modeling. + +# 3.3 Training CROSS + +Cohesive Representations. For node $u$ at time $t$ , its representation is derived from: (i) semantic outputs from the $L$ -th semantic layer with mean pooling, $\mathbf{z}_u^{\mathrm{sem}}(t) = \mathrm{Mean}\left(\tilde{\mathbf{e}}_u^{(L)}(t_1),\dots ,\tilde{\mathbf{e}}_u^{(L)}(t_k)\right)$ ; (ii) structural outputs from the $L$ -th structural layer, $\mathbf{z}_u^{\mathrm{str}}(t) = \tilde{\mathbf{h}}_u^{(L)}(t)$ ; and (iii) the unified outputs from the cross-modal mixer, $\mathbf{z}_u^{\mathrm{mix}}(t) = \mathbf{e}_u^{(L)}(t_k)\parallel \mathbf{h}_u^{(L)}(t)$ . This can be denoted as: + +$$ +\mathbf {z} _ {u} (t) = \mathrm {M L P} _ {\text {o u t}} \left(\mathbf {z} _ {u} ^ {\text {s e m}} (t) \| \mathbf {z} _ {u} ^ {\text {s t r}} (t) \| \mathbf {z} _ {u} ^ {\text {m i x}} (t)\right), \tag {10} +$$ + +where $\mathbf{z}_u(t) \in \mathbb{R}^d$ and $\mathrm{MLP}_{\mathrm{out}}(\cdot)$ is a 2-layer MLP that maps the dimension of the input vector to $d$ . Loss Function. We adopt the temporal link prediction task [7] as training signals for TTAG modeling. For link $(u, v, t)$ , we compute its occurrence probability $\hat{p}_{uv}(t)$ by feeding the concatenated representations of nodes $u$ and $v$ , $\mathbf{z}_u(t) \parallel \mathbf{z}_v(t)$ , into a 2-layer MLP. Cross-entropy loss is then applied: + +$$ +\mathcal {L} = - \sum_ {(u, v, t) \in \mathcal {G}} \left[ \log \hat {p} _ {u v} (t) + \log \left(1 - \hat {p} _ {u v ^ {\prime}} (t)\right) \right]. \tag {11} +$$ + +The $v'$ denotes the randomly sampled negative destination node. Additionally, we will also present the theoretical analysis to prove the effectiveness of CROSS in Sec. B. + +# 4 Experiments + +# 4.1 Experimental Settings + +Datasets. We implement experiments with five datasets, including four public datasets and one industrial dataset from real-world e-commerce systems. The four public datasets - Enron, GDELT, ICEWS1819, and GoogleMap_CT - are recently collected and released by [12]. Besides, the industrial dataset is constructed with three months of transaction data sampled from a private e-commerce trading network in WeChat $^2$ Mobile Payment. $^3$ Details of these datasets are summarized in Sec. D.1 due to page limitations. All datasets are chronologically split by $60\%$ , $20\%$ , and $20\%$ for training, validation, and testing, respectively. + +Baselines. We select eleven existing methods as our baselines, including JODIE [24], DyRep [25], TGAT [4], TGN [5], CAWN [26], PINT [27], TCL [28], GraphMixer [29], DyGFormer [7], LKD4DyTAG [30], and FreeDyG [10]. We also select powerful DeepSeek-v2 [19] and evaluate its zero-shot and one-shot performance as LLM baselines, denoted as $\mathrm{LLM}_{\mathrm{zero / one}}$ . Detailed descriptions of all baselines are provided in Sec. D.2. Moreover, we choose three representative TGNN models, i.e., TGAT, TGN, and DyGFormer, as the backbones of CROSS due to their superiority. For simplicity, we employ the well-established MiniLM [13] to embed texts into feature space. Additionally, we adopt DeepSeek-v2 as the default LLM. We also report the results with other LLM backbones in Sec. 4.5. We evaluate the learned representations using two downstream tasks, i.e., temporal link prediction and node classification in an industrial application of financial risk management. + +# 4.2 Temporal Link Prediction + +We begin our experimental evaluation by comparing the temporal link prediction performance of our model with baselines. We conduct this under two settings: (i) transductive setting, which predicts links between nodes that have appeared during training; and (ii) inductive setting, where predictions are performed with unseen nodes. Implementation details can be found in Sec. D.3 of the Appendix. + +The results are presented in Tab. 2. Clearly, our CROSS framework significantly improves the performance of all three TGNN backbones across all datasets in both transductive and inductive + +Table 2: MRR results (\%) for temporal link prediction in transductive and inductive settings. The results for $\mathbf{L}\mathbf{M}_{\mathrm{zero / one}}$ represent the zero-/one-shot performance of the LLM DeepSeek-v2 [19]. Results highlighted with a blue background indicate the performance and corresponding improvements of our CROSS framework using various TGNN backbones. The best results are highlighted in bold. + +
Transductive settingInductive setting
EnronGDELTICEWS1819Googlemap_CTIndustrialEnronGDELTICEWS1819Googlemap_CTIndustrial
JODIE66.69 ± 2.048.81 ± 1.171.47 ± 4.056.72 ± 0.749.75 ± 1.253.41 ± 2.537.90 ± 2.457.75 ± 7.155.21 ± 1.030.38 ± 0.3
DyRep58.85 ± 7.945.61 ± 2.863.13 ± 3.649.04 ± 2.236.49 ± 0.942.95 ± 8.342.23 ± 3.150.42 ± 2.847.44 ± 2.525.47 ± 1.8
TCL71.16 ± 0.759.49 ± 0.587.58 ± 0.368.98 ± 0.450.87 ± 0.555.28 ± 1.547.13 ± 1.077.06 ± 0.266.26 ± 0.233.42 ± 0.5
CAWN74.56 ± 0.657.00 ± 0.282.93 ± 0.165.34 ± 0.263.58 ± 0.861.58 ± 2.043.56 ± 0.670.65 ± 0.162.11 ± 0.253.42 ± 0.5
PINT74.82 ± 2.852.71 ± 2.583.81 ± 0.972.94 ± 0.753.51 ± 0.656.38 ± 3.931.82 ± 4.163.16 ± 2.870.02 ± 0.639.72 ± 0.6
GraphMixer62.68 ± 1.353.33 ± 0.480.69 ± 0.353.11 ± 0.250.50 ± 0.543.75 ± 1.541.18 ± 0.367.09 ± 0.551.36 ± 0.234.06 ± 0.7
FreeDyG81.52 ± 1.868.27 ± 0.786.31 ± 0.678.82 ± 1.275.91 ± 0.770.38 ± 0.152.71 ± 0.374.16 ± 0.466.01 ± 2.856.48 ± 0.6
LKD4DyTAG73.18 ± 0.357.28 ± 1.980.62 ± 4.277.11 ± 0.577.73 ± 0.767.45 ± 1.945.75 ± 2.073.81 ± 0.360.73 ± 1.057.91 ± 1.0
LLMzero24.187.9933.6830.3011.2717.7310.0832.2638.212.62
LLMone46.2728.9150.8248.7930.2948.1428.9144.6943.8320.28
TGAT66.06 ± 0.156.73 ± .0485.81 ± 0.263.13 ± 0.546.74 ± 3.947.80 ± 0.842.01 ± 0.574.10 ± 0.260.96 ± 0.230.04 ± 3.0
TGAT+95.58 ± 0.781.63 ± 1.793.05 ± 1.699.91 ± 0.086.97 ± 2.881.52 ± 2.064.56 ± 1.882.25 ± 2.091.59 ± 0.062.22 ± 2.1
Avg.↑26.59↑29.52↑24.90↑7.24↑36.78↑40.23↑33.72↑22.55↑8.15↑30.63↑32.18
TGN73.05 ± 1.754.28 ± 1.684.79 ± 0.671.35 ± 0.554.46 ± 3.054.98 ± 2.337.48 ± 2.869.69 ± 0.867.88 ± 0.238.28 ± 4.1
TGN+95.84 ± 0.477.95 ± 2.894.74 ± 5.799.92 ± 0.094.26 ± 0.882.38 ± 1.256.65 ± 3.884.01 ± 9.292.68 ± 0.183.23 ± 2.6
Avg.↑25.45↑22.79↑23.67↑9.95↑28.57↑39.80↑27.40↑19.17↑14.32↑24.80↑44.02
DyGFormer79.93 ± 0.161.35 ± 0.387.51 ± 0.354.82 ± 2.774.45 ± 0.766.86 ± 0.150.61 ± 0.278.14 ± 0.352.98 ± 2.554.20 ± 0.4
DyGFormer+95.31 ± 2.881.28 ± 4.495.77 ± 0.399.82 ± 0.094.78 ± 1.486.01 ± 4.966.37 ± 4.487.80 ± 0.691.74 ± 0.182.30 ± 1.2
Avg.↑22.03↑15.38↑19.93↑8.26↑44.99↑20.33↑19.15↑15.76↑9.66↑38.76↑28.10
+ +settings. Meanwhile, CROSS achieves SOTA performance with a substantial margin over the best baseline. This observation proves the effectiveness of unifying text semantics and graph structures in TTAG modeling. Although LLM's zero/one-shot performance is suboptimal, CROSS still performs well. This suggests that LLMs may struggle to directly comprehend the dynamics of graph structures in TTAG modeling, but our proposed CROSS framework helps them to resolve this issue effectively. Moreover, our framework tends to result in closer performance across different TGNN backbones. We infer that this is due to the robustness of text semantics, which successfully reduces model reliance on simplistic structural information. Inspired by this, we detail a robustness study in Sec. 4.4. + +# 4.3 Industrial Application + +We conduct another downstream task using node classification in a real-world industrial application of financial risk management on Industrial, where we predict whether nodes are involved in fraudulent activities. DyGFormer [7] is used as the backbone, and details can be seen in Sec. D.3 of the Appendix. CROSS achieves the best performance as shown in Fig. 4, indicating that the learned representations of CROSS are also effective for node-level tasks. CROSS's success on Industrial demonstrates its scalability for large industrial-scale TTAGs. We will also provide scalability clarification in Sec. G. + +![](images/e45122403f44299e7496f5fdd23f37ce9ccd57a2208216ad2d70c8ded4ff1e9d.jpg) +Figure 4: AUC results $(\%)$ for node classification of a real-world industrial application in financial risk management, which predicts whether nodes are involved in fraudulent activities on Industrial. + +# 4.4 Robustness Study + +Robustness for noise. To empirically validate the assumption of noisy structural information mentioned in Sec. 1, we strategically introduce noise into graph structures with perturbation rates of $p \in \{10\%, 20\%, 30\%, 40\%, 50\% \}$ . Implementation details are put in Sec. J due to page limitations. To further investigate the impact of noise during encoding, we randomly select a subset of nodes and visualize the attention weights of their perturbed neighbors using box plots under $p = 50\%$ . + +![](images/1d66934f91306d7b3f90326364411c1494819b2de51261966d125d2919fbd4e9.jpg) +Figure 5: Robustness study for noise on Enron and ICEWS1819 with different perturbation rates. + +![](images/a0d08ebe16bb45120352b055f631dac106d5c3cf5495998f94186845634c6b01.jpg) + +![](images/68ae920505bc3ba7c23af3134ceadd858405980b0f3e7676d65d32b1531e661f.jpg) + +![](images/c18c47f6bad2755b33e9047b68a2317bca6f036bebd79987eb9a70400211d2d2.jpg) + +Table 3: Ablation study for the raw texts and LLM-generated texts. Semantic/Structural Encoding refers to the encoding mechanisms that independently perform semantic/structural layers in Sec. 3.2; imprv. indicates the performance improvements of LLM-generated texts $\mathbf{{Text}}_{\mathbf{{LLM}}}$ over the raw texts ${\mathbf{{Text}}}_{\mathbf{{raw}}}$ . Our proposed co-encoding mechanism unlocks the full potential of LLM-generated texts and achieves the best performance. + +
DatasetsMethodsSemantic EncodingStructural EncodingSemantic-structural Co-encoding
TextrawTextLLMimprv.TextrawTextLLMimprv.TextrawTextLLM (ours)imprv.
TransductiveEnronTGAT49.73 ± 0.863.07 ± 0.5↑13.3466.06 ± 0.163.65 ± 1.7↓2.4170.27 ± 0.295.58 ± 0.7↑25.31
TGN49.73 ± 0.863.07 ± 0.5↑13.3473.05 ± 1.772.36 ± 4.0↓0.6974.28 ± 0.995.84 ± 0.4↑21.56
DyGFormer49.73 ± 0.863.07 ± 0.5↑13.3479.93 ± 0.180.46 ± 0.5↑0.5380.91 ± 0.195.31 ± 2.8↑14.40
ICEWS1819TGAT77.45 ± 0.585.04 ± 1.5↑7.5985.81 ± 0.286.12 ± 0.1↑0.3187.33 ± 1.093.05 ± 1.6↑5.72
TGN77.45 ± 0.585.04 ± 1.5↑7.5984.79 ± 0.685.69 ± 0.4↑0.9085.96 ± 0.894.74 ± 5.7↑8.78
DyGFormer77.45 ± 0.585.04 ± 1.5↑7.5987.51 ± 0.388.11 ± 0.5↑0.6086.72 ± 0.495.77 ± 0.3↑9.05
InductiveEnronTGAT31.94 ± 0.745.24 ± 1.1↑13.3047.80 ± 0.845.01 ± 1.3↓2.7953.26 ± 1.081.52 ± 2.0↑28.26
TGN31.94 ± 0.745.24 ± 1.1↑13.3054.98 ± 2.353.93 ± 4.0↓1.0558.92 ± 1.482.38 ± 1.2↑23.46
DyGFormer31.94 ± 0.745.24 ± 1.1↑13.3066.86 ± 0.167.64 ± 1.4↑0.7868.27 ± 0.186.01 ± 4.9↑17.74
ICEWS1819TGAT60.63 ± 0.871.45 ± 0.6↑10.8274.10 ± 0.274.12 ± 0.2↑0.0275.19 ± 0.282.25 ± 2.0↑7.06
TGN60.63 ± 0.871.45 ± 0.6↑10.8269.69 ± 0.870.39 ± 1.2↑0.7070.01 ± 0.684.01 ± 9.2↑13.99
DyGFormer60.63 ± 0.871.45 ± 0.6↑10.8278.14 ± 0.377.70 ± 0.8↓0.4479.79 ± 0.487.80 ± 0.6↑8.01
+ +We report the results in Figs. 5 and 6. Our CROSS framework consistently performs best and exhibits remarkable robustness even under high perturbation rates. This may be due to CROSS's ability to effectively harness the valuable temporal semantic information, which aids in mitigating the adverse impact of structural noise attacks. Furthermore, the results of attention weights reveal that the CROSS framework can effectively down-weight the noisy neighbors + +![](images/d8c4f1f2bab1b9ced5fd261d1afc26b741f92389dea68bee6080da2a5120e01a.jpg) +Figure 6: Attention weights from randomly selected nodes to their perturbed neighbors on GDELT with the perturbation rate of $50\%$ . + +during encoding. This may be the key reason why CROSS could achieve superior performance and exceptional robustness. Building on this observation, we conduct a case study to visualize the attention weights and the learned representations during encoding in Sec. A. + +Robustness for encoding layers. Next, we study the model robustness to the number of encoding layers. Specifically, we conduct a series of experiments with varying numbers of encoding layers $L = \{1,2,3,4,5\}$ . A larger number of encoding layers facilitates a deeper integration of the cross-modal information. Other details are provided in Sec. J of the Appendix. + +The results are depicted in Fig. 7. Our CROSS framework also reveals outstanding robustness to the encoding layers, where the performance improvements over their respective backbones become more pronounced as the number of layers increases. Such robustness likely stems from the invaluable semantic information and the sufficient fusion between semantics and struc + +![](images/b765f73a09028f1a1b7cd1f76247d74c4872fb3091901ab116eb37aa4c932b40.jpg) +(a) TGAT as the backbone. + +![](images/34b4ef5abfc5eb9b460fd66a413a453c3b3bf89da812f4f4b91baf48192c34c4.jpg) + +![](images/bad9cfa16802aac2ff8af82537806b58093aca2b2835fb0423595a2c00515509.jpg) +Figure 7: Robustness study for encoding layers on Enron. + +![](images/e78ece02bca396564d0fe0c50b9ae0f118fc022a357b181d3f6c8de3d215c352.jpg) +(b) TGN as the backbone. + +tures, whereas graph structures alone may carry high-order irrelevant or spurious information. We also find that the CROSS framework always achieves peak performance with a larger $L$ . This can be attributed to the deeper information exchange of our cross-modal mixer, which fully amplifies the mutual reinforcement between semantics and structures. + +# 4.5 Ablation Study + +We conduct three groups of ablation experiments, including model components, textual inputs and their encoding strategies, as well as the choice of LLMs. + +Ablation for model components. We start the ablation study by evaluating the contributions of the key components of our model. Detailed information for each variant is provided in Sec. K of Appendix. The results are detailed in Fig. 8. We can see that incorporating all components results in the best performance, while the removal of any single component leads to a performance drop. This highlights the effectiveness of each + +![](images/e89742c7064f6168ac96eaa890ca186f50a0d3e7806d24f0bf60c144329796d0.jpg) +Figure 8: Ablation study for model components using TGN model as the backbone. + +component in CROSS. Notably, mixing all semantic representations does not improve model performance. This may be attributed to the unexpected inclusion of overly outdated semantic information when passing through our cross-modal mixer, thus hindering the quality of final representations. + +Ablation for raw texts and LLM-generated texts. We then conduct an ablation study to compare the raw texts (i.e., the original text attributes in TTAGs) with the LLM-generated texts (i.e., neighborhood summaries produced by the LLMs) using various encoding mechanisms. We present the results in Tab. 3 and other details can be seen in Sec. K. Firstly, our framework outperforms all other variants, reaffirming its effectiveness. Besides, the results under semantic encoding prove the validity and expressiveness of the pure LLM-generated texts. Interestingly, the performance of LLM-generated texts yields only marginal improvements or even slight degradation when performing structural encoding. We infer that this occurs because the structural encoding introduces excessively irrelevant information from high-order relations, whereas the other two encodings directly capitalize on the node's own LLM-generated texts, thus integrating more focused and relevant information. This strongly demonstrates the necessity and superiority of the design of our co-encoding mechanism. + +Ablation for different LLMs. We extend our ablation study with various LLMs, including DeepSeek-v2 [19] (default), GPT4o [31], Llama3-8b [32], Vicuna-7b [33], and Mistral-7b [34]. Details and results are put in Sec. K and Fig. 9, respectively. We find that DeepSeek-v2 performs best and all variants outperform their corresponding TGNN backbones, reaffirming the effectiveness of the proposed CROSS framework. + +![](images/92f0c62234bc5381f0fb183c90f4d5cc034634eb642dfdeac0b05f155401fe05.jpg) +Figure 9: Ablation study for different LLMs on GDELT. + +# 5 Conclusion and Future Work + +In this paper, we focus on the under-explored problem of TTAG modeling and propose CROSS, which extends existing TGNNs to effectively unify text semantics and graph structures with LLMs. By introducing the Temporal Semantics Extractor, we can enhance the LLMs to dynamically extract the text semantics within nodes' neighborhoods. The Semantic-structural Co-encoder then integrates semantic and structural information, enabling bidirectional reinforcement between both modalities. As for future work, we will consider more complex designs of our cross-modal mixer for achieving better representation fusion, such as using the time decay mechanism. + +# Acknowledgments + +This work is funded in part by the NSFC under grant No. 62372013 and No. 62206056, the NSF through grant IIS-2106972, the CIPSC-SMP-Zhipu Large Model Cross-Disciplinary Fund, and also supported by Tencent Wechat Group. The authors would like to express their gratitude to the reviewers for their feedback, which has improved the clarity and contribution of the paper. The first author, Dr. Zhang, also wants to thank Yifeng Wang for his efforts and support in this work. + +# References + +[1] Seyed Mehran Kazemi, Rishab Goel, Kshitij Jain, Ivan Kobyzev, Akshay Sethi, Peter Forsyth, and Pascal Poupart. Representation learning for dynamic graphs: A survey. Journal of Machine Learning Research, 21(70):1-73, 2020. +[2] Guotong Xue, Ming Zhong, Jianxin Li, Jia Chen, Chengshuai Zhai, and Ruochen Kong. Dynamic network embedding survey. Neurocomputing, 472:212-223, 2022. +[3] Tao Zou, Yuhao Mao, Junchen Ye, and Bowen Du. Repeat-aware neighbor sampling for dynamic graph learning. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 4722-4733, 2024. +[4] Da Xu, Chuanwei Ruan, Evren Korpeoglu, Sushant Kumar, and Kannan Achan. Inductive representation learning on temporal graphs. arXiv preprint arXiv:2002.07962, 2020. + +[5] Emanuele Rossi, Ben Chamberlain, Fabrizio Frasca, Davide Eynard, Federico Monti, and Michael Bronstein. Temporal graph networks for deep learning on dynamic graphs. arXiv preprint arXiv:2006.10637, 2020. +[6] Yao Zhang, Yun Xiong, Yongxiang Liao, Yiheng Sun, Yucheng Jin, Xuehao Zheng, and Yangyong Zhu. Tiger: Temporal interaction graph embedding with restarts. In ACM Web Conference, 2023. +[7] Le Yu, Leilei Sun, Bowen Du, and Weifeng Lv. Towards better dynamic graph learning: New architecture and unified library. arXiv preprint arXiv:2303.13047, 2023. +[8] Shenyang Huang, Farimah Poursafaei, Jacob Danovitch, Matthias Fey, Weihua Hu, Emanuele Rossi, Jure Leskovec, Michael Bronstein, Guillaume Rabusseau, and Reihaneh Rabbany. Temporal graph benchmark for machine learning on temporal graphs. Advances in Neural Information Processing Systems, 36, 2024. +[9] Siwei Zhang, Xi Chen, Yun Xiong, Xixi Wu, Yao Zhang, Yongrui Fu, Yinglong Zhao, and Jiawei Zhang. Towards adaptive neighborhood for advancing temporal interaction graph modeling. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 4290-4301, 2024. +[10] Yuxing Tian, Yiyan Qi, and Fan Guo. Freedyg: Frequency enhanced continuous-time dynamic graph model for link prediction. In The Twelfth International Conference on Learning Representations, 2024. +[11] Xiaodong Lu, Leilei Sun, Tongyu Zhu, and Weifeng Lv. Improving temporal link prediction via temporal walk matrix projection. arXiv preprint arXiv:2410.04013, 2024. +[12] Jiasheng Zhang, Jialin Chen, Menglin Yang, Aosong Feng, Shuang Liang, Jie Shao, and Rex Ying. Dtgb: A comprehensive benchmark for dynamic text-attributed graphs. Advances in Neural Information Processing Systems, 2024. +[13] Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. Minilm: Deep self-attention distillation for task-agnostic compression of pre-trained transformers. Advances in Neural Information Processing Systems, 33:5776–5788, 2020. +[14] Wenting Zou, Xiao Hu, Zilong Pan, Chenglu Li, Ying Cai, and Min Liu. Exploring the relationship between social presence and learners' prestige in mooc discussion forums using automated content analysis and social network analysis. Computers in Human Behavior, 115:106582, 2021. +[15] Jun Hao, Lili Pei, Yongxi He, Zhenzhen Xing, and Yuhan Weng. Tckgcn: Graph convolutional network for aspect-based sentiment analysis with three-channel knowledge fusion. Neurocomputing, 600:128163, 2024. +[16] Xubin Ren, Wei Wei, Lianghao Xia, Lixin Su, Suqi Cheng, Junfeng Wang, Dawei Yin, and Chao Huang. Representation learning with large language models for recommendation. In Proceedings of the ACM on Web Conference 2024, pages 3464-3475, 2024. +[17] Zhikai Chen, Haitao Mao, Hang Li, Wei Jin, Hongzhi Wen, Xiaochi Wei, Shuaiqiang Wang, Dawei Yin, Wenqi Fan, Hui Liu, et al. Exploring the potential of large language models (llms) in learning on graphs. ACM SIGKDD Explorations Newsletter, 25(2):42-61, 2024. +[18] Haoyu Wang, Shikun Liu, Rongzhe Wei, and Pan Li. Model generalization on text attribute graphs: Principles with large language models. arXiv preprint arXiv:2502.11836, 2025. +[19] Aixin Liu, Bei Feng, Bin Wang, Bingxuan Wang, Bo Liu, Chenggang Zhao, Chengqi Dengr, Chong Ruan, Damai Dai, Daya Guo, et al. Deepseek-v2: A strong, economical, and efficient mixture-of-experts language model. arXiv preprint arXiv:2405.04434, 2024. +[20] Xiaoxin He, Xavier Bresson, Thomas Laurent, Adam Perold, Yann LeCun, and Bryan Hooi. Harnessing explanations: Llm-to-lm interpreter for enhanced text-attributed graph representation learning. arXiv preprint arXiv:2305.19523, 2023. + +[21] Yi Fang, Dongzhe Fan, Daochen Zha, and Qiaoyu Tan. Gaugllm: Improving graph contrastive learning for text-attributed graphs with large language models. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 747–758, 2024. +[22] Ashish Vavwani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. +[23] Seyed Mehran Kazemi, Rishab Goel, Sepehr Eghbali, Janahan Ramanan, Jaspreet Sahota, Sanjay Thakur, Stella Wu, Cathal Smyth, Pascal Poupart, and Marcus Brubaker. Time2vec: Learning a vector representation of time. arXiv preprint arXiv:1907.05321, 2019. +[24] Srijan Kumar, Xikun Zhang, and Jure Leskovec. Predicting dynamic embedding trajectory in temporal interaction networks. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, pages 1269-1278, 2019. +[25] Rakshit Trivedi, Mehrdad Farajtabar, Prasenjeet Biswal, and Hongyuan Zha. Dyrep: Learning representations over dynamic graphs. In International conference on learning representations, 2019. +[26] Yanbang Wang, Yen-Yu Chang, Yunyu Liu, Jure Leskovec, and Pan Li. Inductive representation learning in temporal networks via causal anonymous walks. arXiv preprint arXiv:2101.05974, 2021. +[27] Amauri Souza, Diego Mesquita, Samuel Kaski, and Vikas Garg. Provably expressive temporal graph networks. Advances in Neural Information Processing Systems, 35:32257-32269, 2022. +[28] Lu Wang, Xiaofu Chang, Shuang Li, Yunfei Chu, Hui Li, Wei Zhang, Xiaofeng He, Le Song, Jingren Zhou, and Hongxia Yang. Tcl: Transformer-based dynamic graph modelling via contrastive learning. arXiv preprint arXiv:2105.07944, 2021. +[29] Weilin Cong, Si Zhang, Jian Kang, Baichuan Yuan, Hao Wu, Xin Zhou, Hanghang Tong, and Mehrdad Mahdavi. Do we really need complicated model architectures for temporal networks? arXiv preprint arXiv:2302.11636, 2023. +[30] Amit Roy, Ning Yan, and Masood Mortazavi. Llm-driven knowledge distillation for dynamic text-attributed graphs. arXiv preprint arXiv:2502.10914, 2025. +[31] OpenAI. Gpt-4o system card, May 2024. Available online. +[32] AI@Meta. Llama 3 model card, 2024. Available online. +[33] Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E Gonzalez, et al. Vicuna: An open-source chatbot impressing gpt-4 with $90\%$ * chatgpt quality. See https://vicuna.lmsys.org (accessed 14 April 2023), 2(3):6, 2023. +[34] Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. Mistral 7b. arXiv preprint arXiv:2310.06825, 2023. +[35] Xi Chen, Yongxiang Liao, Yun Xiong, Yao Zhang, Siwei Zhang, Jiawei Zhang, and Yiheng Sun. Speed: Streaming partition and parallel acceleration for temporal interaction graph embedding. arXiv preprint arXiv:2308.14129, 2023. +[36] Zhihao Wen and Yuan Fang. Trend: Temporal event and node dynamics for graph representation learning. In Proceedings of the ACM Web Conference 2022, pages 1159-1169, 2022. +[37] Sheng Xiang, Mingzhi Zhu, Dawei Cheng, Enxia Li, Ruihui Zhao, Yi Ouyang, Ling Chen, and Yefeng Zheng. Semi-supervised credit card fraud detection via attribute-driven graph representation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 14557-14565, 2023. + +[38] Kuo Yang, Zhengyang Zhou, Qihe Huang, Limin Li, Yuxuan Liang, and Yang Wang. Improving generalization of dynamic graph learning via environment prompt. Advances in Neural Information Processing Systems, 37:70048-70075, 2024. +[39] Yannis Karmim, Marc Lafon, Raphaël Fournier-S'Niehotta, and Nicolas Thome. Supra-laplacian encoding for transformer on dynamic graphs. Advances in Neural Information Processing Systems, 37:17215-17246, 2024. +[40] Jintang Li, Ruofan Wu, Xinzhou Jin, Boqun Ma, Liang Chen, and Zibin Zheng. State space models on temporal graphs: A first-principles study. Advances in Neural Information Processing Systems, 37:127030-127058, 2024. +[41] Katherine Tieu, Dongqi Fu, Yada Zhu, Hendrik Hamann, and Jingrui He. Temporal graph neural tangent kernel with graphon-guaranteed. Advances in Neural Information Processing Systems, 37:94568-94606, 2024. +[42] Xingtong Yu, Zhenghao Liu, Xinming Zhang, and Yuan Fang. Node-time conditional prompt learning in dynamic graphs, 2025. +[43] Ke Cheng, Linzhi Peng, Pengyang Wang, Heng Chang, Junchen Ye, and Bowen Du. On the scalability of temporal relative positional encoding for dynamic link prediction. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2, pages 298-309, 2025. +[44] Ke Cheng, Peng Linzhi, Junchen Ye, Leilei Sun, and Bowen Du. Co-neighbor encoding schema: A light-cost structure encoding method for dynamic link prediction. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, page 421–432, 2024. +[45] Yuanyuan Xu, Wenjie Zhang, Xuemin Lin, and Ying Zhang. Unidyg: A unified and effective representation learning approach for large dynamic graphs. IEEE Transactions on Knowledge and Data Engineering, pages 4373-4388, 2025. +[46] Yuanyuan Xu, Wenjie Zhang, Ying Zhang, Xuemin Lin, and Xiwei Xu. Unlocking multi-modal potentials for link prediction on dynamic text-attributed graphs, 2025. +[47] Xi Chen, Yun Xiong, Siwei Zhang, Jiawei Zhang, Yao Zhang, Shiyang Zhou, Xixi Wu, Mingyang Zhang, Tengfei Liu, and Weiqiang Wang. Dtformer: A transformer-based method for discrete-time dynamic graph representation learning, 2024. +[48] Palash Goyal, Sujit Rokka Chhetri, and Arquimedes Canedo. dyngraph2vec: Capturing network dynamics using dynamic graph representation learning. Knowledge-Based Systems, 187:104816, 2020. +[49] Ryan A. Rossi, Rong Zhou, and Nesreen K. Ahmed. Deep inductive graph representation learning. IEEE Transactions on Knowledge and Data Engineering, 32(3):438-452, 2020. +[50] Xiaofu Chang, Xuqin Liu, Jianfeng Wen, Shuang Li, Yanming Fang, Le Song, and Yuan Qi. Continuous-time dynamic graph learning via neural interaction processes. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management, pages 145–154, 2020. +[51] Aldo Pareja, Giacomo Domeniconi, Jie Chen, Tengfei Ma, Toyotaro Suzumura, Hiroki Kanezashi, Tim Kaler, Tao Schardl, and Charles Leiserson. Evolvegen: Evolving graph convolutional networks for dynamic graphs. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 5363-5370, 2020. +[52] Yiwei Wang, Yujun Cai, Yuxuan Liang, Henghui Ding, Changhu Wang, and Bryan Hooi. Time-aware neighbor sampling for temporal graph networks. arXiv preprint arXiv:2112.09845, 2021. +[53] Ziwei Fan, Zhiwei Liu, Jiawei Zhang, Yun Xiong, Lei Zheng, and Philip S Yu. Continuous-time sequential recommendation with temporal graph collaborative transformer. In Proceedings of the 30th ACM international conference on information & knowledge management, pages 433-442, 2021. + +[54] Jianfei Gao and Bruno Ribeiro. On the equivalence between temporal and static equivariant graph representations. In International Conference on Machine Learning, pages 7052-7076. PMLR, 2022. +[55] Yizhou Chen, Anxiang Zeng, Qingtao Yu, Kerui Zhang, Cao Yuanpeng, Kangle Wu, Guangda Huzhang, Han Yu, and Zhiming Zhou. Recurrent temporal revision graph networks. Advances in Neural Information Processing Systems, 36, 2024. +[56] Zeyang Zhang, Xin Wang, Ziwei Zhang, Haoyang Li, Yijian Qin, and Wenwu Zhu. Llm4dyg: Can large language models solve spatial-temporal problems on dynamic graphs? In Conference on Knowledge Discovery and Data Mining (ACM SIGKDD), 2024. +[57] Siwei Zhang, Yun Xiong, Yao Zhang, Xixi Wu, Yiheng Sun, and Jiawei Zhang. ilore: Dynamic graph representation with instant long-term modeling and re-occurrence preservation. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, pages 3216–3225, 2023. +[58] Yiwei Wang, Yujun Cai, Yuxuan Liang, Henghui Ding, Changhu Wang, Siddharth Bhatia, and Bryan Hooi. Adaptive data augmentation on temporal graphs. Advances in Neural Information Processing Systems, 34:1440-1452, 2021. +[59] Xuhong Wang, Ding Lyu, Mengjian Li, Yang Xia, Qi Yang, Xinwen Wang, Xinguang Wang, Ping Cui, Yupu Yang, Bowen Sun, et al. Apan: Asynchronous propagation attention network for real-time temporal graph embedding. In Proceedings of the 2021 international conference on management of data, pages 2628-2638, 2021. +[60] Unai Alvarez-Rodriguez, Federico Battiston, Guilherme Ferraz de Arruda, Yamir Moreno, Matjaž Perc, and Vito Latora. Evolutionary dynamics of higher-order interactions in social networks. Nature Human Behaviour, 5(5):586-595, 2021. +[61] Hongkuan Zhou, Da Zheng, Israt Nisa, Vasileios Ioannidis, Xiang Song, and George Karypis. Tgl: A general framework for temporal gnn training on billion-scale graphs. arXiv preprint arXiv:2203.14883, 2022. +[62] Yuhong Luo and Pan Li. Neighborhood-aware scalable temporal network representation learning. In Learning on Graphs Conference, pages 1-1. PMLR, 2022. +[63] Siwei Zhang, Yun Xiong, Yao Zhang, Yiheng Sun, Xi Chen, Yizhu Jiao, and Yangyong Zhu. Rdgsl: Dynamic graph representation learning with structure learning. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, pages 3174-3183, 2023. +[64] Xi Chen, Yateng Tang, Jiarong Xu, Jiawei Zhang, Siwei Zhang, Sijia Peng, Xuehao Zheng, and Yun Xiong. Rethinking time encoding via learnable transformation functions, 2025. +[65] Yanchao Tan, Zihao Zhou, Hang Lv, Weiming Liu, and Carl Yang. Walklm: A uniform language model fine-tuning framework for attributed graph embedding. Advances in Neural Information Processing Systems, 36, 2024. +[66] Jianan Zhao, Meng Qu, Chaozhuo Li, Hao Yan, Qian Liu, Rui Li, Xing Xie, and Jian Tang. Learning on large-scale text-attributed graphs via variational inference. arXiv preprint arXiv:2210.14709, 2022. +[67] Michihiro Yasunaga, Jure Leskovec, and Percy Liang. Linkbert: Pretraining language models with document links. arXiv preprint arXiv:2203.15827, 2022. +[68] Junhan Yang, Zheng Liu, Shitao Xiao, Chaozhuo Li, Defu Lian, Sanjay Agrawal, Amit Singh, Guangzhong Sun, and Xing Xie. Graphformers: Gnn-nested transformers for representation learning on textual graph. Advances in Neural Information Processing Systems, 34:28798-28810, 2021. +[69] Xikun Zhang, Antoine Bosselut, Michihiro Yasunaga, Hongyu Ren, Percy Liang, Christopher D Manning, and Jure Leskovec. Greaselm: Graph reasoning enhanced language models for question answering. arXiv preprint arXiv:2201.08860, 2022. + +[70] Bowen Jin, Yu Zhang, Qi Zhu, and Jiawei Han. Heterformer: Transformer-based deep node representation learning on heterogeneous text-rich networks. In Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 1020-1031, 2023. +[71] Bowen Jin, Yu Zhang, Yu Meng, and Jiawei Han. Edgeformers: Graph-empowered transformers for representation learning on textual-edge networks. arXiv preprint arXiv:2302.11050, 2023. +[72] Bowen Jin, Wentao Zhang, Yu Zhang, Yu Meng, Xinyang Zhang, Qi Zhu, and Jiawei Han. Patton: Language model pretraining on text-rich networks. arXiv preprint arXiv:2305.12268, 2023. +[73] Yun Zhu, Yaoke Wang, Haizhou Shi, and Siliang Tang. Efficient tuning and inference for large language models on textual graphs. arXiv preprint arXiv:2401.15569, 2024. +[74] Xixi Wu, Yifei Shen, Caihua Shan, Kaitao Song, Siwei Wang, Bohang Zhang, Jiarui Feng, Hong Cheng, Wei Chen, Yun Xiong, and Dongsheng Li. Can graph learning improve planning in llm-based agents? In Proceedings of Neural Information Processing Systems, 2024. +[75] Xixi Wu, Yifei Shen, Fangzhou Ge, Caihua Shan, Yizhu Jiao, Xiangguo Sun, and Hong Cheng. When do llms help with node classification? a comprehensive analysis, 2025. +[76] Yijun Tian, Huan Song, Zichen Wang, Haozhu Wang, Ziqing Hu, Fang Wang, Nitesh V Chawla, and Panpan Xu. Graph neural prompting with large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19080-19088, 2024. +[77] Jiabin Tang, Yuhao Yang, Wei Wei, Lei Shi, Lixin Su, Suqi Cheng, Dawei Yin, and Chao Huang. Graphgpt: Graph instruction tuning for large language models. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 491-500, 2024. +[78] Jiapu Wang, Sun Kai, Linhao Luo, Wei Wei, Yongli Hu, Alan Wee-Chung Liew, Shirui Pan, and Baocai Yin. Large language models-guided dynamic adaptation for temporal knowledge graph reasoning. Advances in Neural Information Processing Systems, 37:8384-8410, 2024. +[79] Yutai Duan, Jie Liu, Shaowei Chen, Liyi Chen, and Jianhua Wu. G-prompt: Graphon-based prompt tuning for graph classification. Information Processing & Management, 61(3):103639, 2024. +[80] Xiaoxin He, Yijun Tian, Yifei Sun, Nitesh V Chawla, Thomas Laurent, Yann LeCun, Xavier Bresson, and Bryan Hooi. G-retriever: Retrieval-augmented generation for textual graph understanding and question answering. arXiv preprint arXiv:2402.07630, 2024. +[81] Xin Li, Dongze Lian, Zhihe Lu, Jiawang Bai, Zhibo Chen, and Xinchao Wang. Graphadapter: Tuning vision-language models with dual knowledge graph. Advances in Neural Information Processing Systems, 36, 2024. +[82] Zhuofeng Li, Zixing Gou, Xiangnan Zhang, Zhongyuan Liu, Sirui Li, Yuntong Hu, Chen Ling, Zheng Zhang, and Liang Zhao. Teg-db: A comprehensive dataset and benchmark of textual-edge graphs, 2024. + +![](images/8d937a3d95bb9ea99371129b7eb9ddb70706c0f6f88d2e38b27fe8fd8c52d626.jpg) +Figure 10: Case study for text semantics and graph structures. Thicker edges denote higher attention weights during encoding. CROSS exhibits exceptional prediction performance and robustness by successfully unifying text semantics and graph structures within TTAGs, which enables the model to adaptively adjust the attention weights to concentrate on more relevant neighbors, thereby achieving improved prediction performance. + +# A Case Study + +In this section, we conduct a case study to qualitatively investigate the effectiveness of CROSS. + +Case study for text semantics and graph structures. As illustrated in Fig. 10, we select a representative node from GoogleMap_CT and visualize its raw texts, the LLM-generated texts from Temporal Semantics Extractor, the attention weights assigned among neighborhoods by both the TGAT backbone and CROSS during encoding, as well as the prediction probability. The value of prediction probability refers to the predicted probability for the corresponding positive edges as defined in Eq. 11, where higher values indicate better performance. We find that CROSS demonstrates a remarkable capability to unify semantics and structures, which allows the model to adaptively adjust attention weights to concentrate on more relevant neighbors during encoding, thereby achieving improved prediction performance. For instance, CROSS effectively detects the semantic shift in preferences for the target node "Ryan Blanck" across temporal dimensions, which is from "restaurant" to "shopping" ( $t_2 \rightarrow t_3$ ). Subsequently, it automatically reduces the attention weights of neighbors assigned to restaurant nodes (e.g., "Frank Pepe Pizzeria Naporetana") while increasing the weight for store-related neighbors (e.g., "Stafford Thrift Shop"). This highlights the complementarity of semantics and structures, enabling CROSS to prioritize preferred neighbors with semantic contexts. + +# Case study for the learned representations. + +We further conduct a case study for the learned representations directly. Specifically, we extract semantic and structural representations of a selected node among GDELT, visualize their distributions using Kernel Density Estimation (KDE), and compare the differences between CROSS and the backbone. As shown in Tab. 11, CROSS redistributes the feature space and produces more cohesive representations between semantics and structures. This + +![](images/52c9e18ccaf67083799c1dede2207bb068a026a4b5d88c23dc924da720305fd2.jpg) +Figure 11: Case study for the learned representations. CROSS effectively synthesizes more cohesive, unified representations between semantics and structures. + +can be attributed to our co-encoding architecture, which facilitates synergistic reinforcement between + +modalities. Additionally, we find that semantic and structural representations from backbones have different distributions. This directly proves the complementarity of the two modalities, as each captures distinct information that contributes to the final representations. As a result, CROSS effectively integrates them and leads to unified representations that incorporate the most salient features of both. + +# B Theoretical Analysis + +CROSS is designed from the extraction and unification of semantics and structures within TTAGs. In this section, we present a theoretical analysis for this idea to prove the effectiveness of CROSS, showing that unifying text semantics and graph structures yields more expressive information than existing TGNNs that rely solely on graph structures. This holds under two key conditions: + +- Integrity: Text semantics can accurately reflect the graph structures among the neighborhoods of the target node, as they are derived from the LLM-generated texts enriched by the dynamically-informed LLMs' parameterized knowledge. +- Complementarity: Text semantics complement the graph structures among the neighborhoods of the target node, providing additional contextual cues that help distinguish subtle relationships. + +# Theorem 1. Consider the conditions as follows: + +1) Integrity: $Z_{T}$ serves as a reliable proxy for $Z_{G}$ , thus we have + +$$ +H \left(Z _ {G} \mid Z _ {T}\right) = \epsilon , \quad \epsilon > 0. \tag {12} +$$ + +2) Complementarity: $Z_{T}$ encapsulates orthogonal information that is not captured by $Z_{G}$ , and that is + +$$ +H \left(y \mid Z _ {G}, Z _ {T}\right) = H \left(y \mid Z _ {G}\right) - \epsilon^ {\prime}, \quad \epsilon^ {\prime} > \epsilon . \tag {13} +$$ + +Under these conditions, it follows that: + +$$ +H \left(y \mid Z _ {G}, Z _ {T}\right) < H \left(y \mid Z _ {G}\right), \tag {14} +$$ + +where $Z_{G}$ denotes the information derived from graph structures, $Z_{T}$ represents the information captured from text semantics, $y$ is the target for prediction, and $H(\cdot|\cdot)$ depicts the condition entropy. + +We also provide an alternative theoretical analysis to prove the model effectiveness, showing that unifying text semantics and graph structures instead of solely considering graph structures is bounded. + +Theorem 2. Given the target $y$ , there exists a constant $\beta \in (0,1]$ such that: + +$$ +I \left(Z _ {G}, Z _ {T}; y\right) \geq I \left(Z _ {G}; y\right) + \beta \min \left\{H \left(y \mid Z _ {G}\right), H \left(Z _ {T} \mid Z _ {G}\right) \right\}, \tag {15} +$$ + +where $Z_{G}$ denotes the information derived from graph structures, $Z_{T}$ represents the information captured from text semantics, $I(\cdot|\cdot)$ denotes mutual information, and $H(\cdot|\cdot)$ depicts the condition entropy. + +Proof of Theorem 1. We aim to prove that the conditional entropy of $y$ unifying both graph structures $Z_{G}$ and text semantics $Z_{T}$ , i.e., $H(y|Z_{G}, Z_{T})$ , is strictly less than the conditional entropy of $y$ solely based on $Z_{G}$ , i.e., $H(y|Z_{G})$ . + +We begin with: + +$$ +H (y \mid Z _ {G}, Z _ {T}). \tag {16} +$$ + +Next, we decompose this using the properties of entropy into two phases: + +$$ +H (y \mid Z _ {G}, Z _ {T}) = H (y \mid Z _ {G}, Z _ {M}, Z _ {T}) + I (y; Z _ {M} \mid Z _ {G}, Z _ {T}), \tag {17} +$$ + +where $Z_{M}$ denotes the information arising from the mixed representations of text semantics and graph structures. + +We then apply the following upper bound on conditional mutual information as follows: + +$$ +\begin{array}{l} I \left(y; Z _ {M} \mid Z _ {G}, Z _ {T}\right) = H \left(Z _ {M} \mid Z _ {G}, Z _ {T}\right) - H \left(Z _ {M} \mid y, Z _ {G}, Z _ {T}\right) \tag {18} \\ \leq H \left(Z _ {M} \mid Z _ {G}, Z _ {T}\right). \\ \end{array} +$$ + +Here, the first equality follows from the definition of mutual information, and the inequality holds due to the nonnegativity of conditional entropy. + +By substituting Eq. 18 into Eq. 17, we obtain: + +$$ +H (y | Z _ {G}, Z _ {T}) \leq H (y | Z _ {G}, Z _ {M}, Z _ {T}) + H (Z _ {M} | Z _ {G}, Z _ {T}). \tag {19} +$$ + +Since conditional entropy increases when conditioning on fewer variables, it follows that: + +$$ +H \left(y \mid Z _ {G}, Z _ {M}, Z _ {T}\right) + H \left(Z _ {M} \mid Z _ {G}, Z _ {T}\right) \leq H \left(y \mid Z _ {G}, Z _ {T}\right) + H \left(Z _ {G} \mid Z _ {T}\right). \tag {20} +$$ + +By applying the "Integrity" and "Complementarity" conditions, we arrive at: + +$$ +H \left(y \mid Z _ {G}, Z _ {M}\right) + H \left(Z _ {M} \mid Z _ {T}\right) \leq H \left(y \mid Z _ {G}\right) - \epsilon^ {\prime} + \epsilon . \tag {21} +$$ + +Finally, since $\epsilon' > \epsilon$ , we conclude: + +$$ +H \left(y \mid Z _ {G}\right) - \epsilon^ {\prime} + \epsilon < H \left(y \mid Z _ {G}\right). \tag {22} +$$ + +Consequently, we have proven that: + +$$ +H \left(y \mid Z _ {G}, Z _ {T}\right) < H \left(y \mid Z _ {G}\right). \tag {23} +$$ + +This completes the proof. + +![](images/3484021dc840e2839aab0ea4d3db83e1e16fcdeb096e401c8262d68ffa6618cc.jpg) + +Proof of Theorem 2. We aim to prove that the mutual information of $y$ unifying both graph structures $Z_{G}$ and text semantics $Z_{T}$ , i.e., $I(Z_{G}, Z_{T}; y)$ , is lower bounded by the mutual information of $y$ solely based on $Z_{G}$ , i.e., $I(Z_{G}; y)$ . + +We begin with: + +$$ +I \left(Z _ {G}, Z _ {T}; y\right). \tag {24} +$$ + +Using the chain rule of mutual information, $I(Z_{G}, Z_{T}; y)$ can be decomposed as: + +$$ +I \left(Z _ {G}, Z _ {T}; y\right) = I \left(Z _ {G}; y\right) + I \left(Z _ {T}; y \mid Z _ {G}\right), \tag {25} +$$ + +where $I(Z_{G};y)$ quantifies the contribution of graph structures $Z_{G}$ about $y$ , and $I(Z_{T};y\mid Z_{G})$ reflects the additional information provided by text semantics $Z_{T}$ conditioned on $Z_{G}$ . + +Then, we compute the lower bound for the term $I(Z_{T};y\mid Z_{G})$ . Based on the fundamental properties of entropy, we can obtain: + +$$ +\begin{array}{l} I \left(Z _ {T}; y \mid Z _ {G}\right) = H \left(y \mid Z _ {G}\right) - H \left(y \mid Z _ {T}, Z _ {G}\right) \\ = H \left(Z _ {T} \mid Z _ {G}\right) - H \left(Z _ {T} \mid y, Z _ {G}\right). \tag {26} \\ \end{array} +$$ + +Here, the conditional mutual information $I(Z_{T};y\mid Z_{G})$ could be as high as the minimum of the conditional entropies $H(y\mid Z_G)$ and $H(Z_{T}\mid Z_{G})$ . Considering any unavoidable loss in information during the unification process, there exists a constant $\beta \in (0,1]$ , such that: + +$$ +I \left(Z _ {T}; y \mid Z _ {G}\right) \geq \beta \min \left\{H \left(y \mid Z _ {G}\right), H \left(Z _ {T} \mid Z _ {G}\right) \right\}. \tag {27} +$$ + +Substituting the lower bound from Eq. 27 into Eq. 25, we obtain the final bound: + +$$ +\begin{array}{l} I (Z; y) = I \left(Z _ {G}; y\right) + I \left(Z _ {T}; y \mid Z _ {G}\right) \\ \geq I \left(Z _ {G}; y\right) + \beta \min \left\{H \left(y \mid Z _ {G}\right), H \left(Z _ {T} \mid Z _ {G}\right) \right\}. \\ \end{array} +$$ + +This completes the proof. + +![](images/06b0788cddcadeb6117d008bcb15e9831cafedcce75ccf120975d46c010c5d4c.jpg) + +# C Notations and Algorithms + +We provide the important notations used in this paper and their corresponding descriptions as shown in Tab. 4. Additionally, for clarity, we present the pseudo-codes of CROSS in Algorithm 1. + +# D Details of Experimental Setting + +# D.1 Datasets + +In this paper, we select four public datasets [12] from different domains and one real-world industrial dataset. We present their detailed descriptions below, and their statistics are summarized in Tab. 5. + +Algorithm 1: Training CROSS (one epoch). +Input: A node set $\mathcal{V}$ ; A TTAG $\mathcal{G} = \{(u,v,t)\}$ with node text attributes $\mathcal{D}$ and edge text attributes $\mathcal{R}$ ; The maximum reasoning count $m$ ; The number of encoding layer $L$ . +1 Initialize all model parameters and prepare the LLMs; // Temporal Semantics Extractor +2 foreach $u \in \mathcal{V}$ do +3 Derive reasoning timestamps $\hat{\mathcal{T}}_u$ with $m$ by Eq. 1; +4 Summarize $u$ 's textualized neighborhood at $\hat{t} \in \hat{\mathcal{T}}_u$ with LLM by Eq. 2; +5 end +// Semantic-structural Co-encoder +6 foreach batch $(u,v,t) \subseteq \mathcal{G}$ do +7 foreach $l = 1,2,\ldots,L$ do +8 Retrieve text semantics from generated summaries and graph structures from neighborhoods for nodes $u/v$ ; +9 Compute pre-mixed semantic representations $\tilde{\mathbf{e}}_{u/v}^{(l)}(t_k)$ with semantic layer by Eqs. 3-4; +10 Compute pre-mixed structural representations $\tilde{\mathbf{h}}_{u/v}^{(l)}(t)$ with structural layer by Eqs. 5-8; +11 Mix and propagate cross-modal representations by Eq. 9; +12 end +13 Derive the final representations $\mathbf{z}_{u/v}(t)$ by Eq. 10; +14 Compute loss $\mathcal{L}$ by Eq. 11 and backward; +15 end + +Table 4: Important notations and descriptions. + +
NotationsDescriptions
duRaw text attribute of node u
ru,v,tRaw text attribute of edge (u, v, t)
hatu(t)LLM-generated text summary for u's neighborhood at reasoning time t
ˆu(l)(t)Pre-mixed semantic representation for node u at time t in the l-th layer
eu(l)(t)Post-mixed semantic representation for node u at time t in the l-th layer
ˆh(l)(t)Pre-mixed structural representation for node u at time t in the l-th layer
hu(l)(t)Post-mixed structural representation for node u at time t in the l-th layer
zu(t)Final representation for node u at time t
+ +- Enron4 originates from a collection of email exchanges among employees of the ENRON energy corporation spanning three years (1999–2002). In this dataset, nodes represent employees, and edges correspond to emails exchanged between them. Each node has text attributes that are derived from the employee's department and role if such information is available. Each edge attaches text attributes consisting of the raw content of the emails. Edges are sequentially ordered based on the e-mail sending timestamps. +- GDELT5 originates from the Global Database of Events, Language, and Tone, a project aimed at cataloging political behaviors across nations worldwide. In this dataset, nodes represent political entities, such as "Egypt" or "Kim Jong Un". The textual attributes of nodes are directly taken from the names of these entities. Edges capture the relationships between entities (e.g., "Make Empathetic Comment" or "Provide Aid"), with the textual attributes of edges being derived from the descriptions of these relationships. Edges are sequentially ordered based on the event-occurring timestamps. +- ICEWS18196 is sourced from the Integrated Crisis Early Warning System project, which serves as a larger temporal knowledge graph for tracking political events compared to Enron. + +This dataset is built using events occurring between January 1, 2018, and December 31, 2019. The textual attributes of nodes include the name, sector, and nationality of each political entity, while the textual attributes of edges represent descriptions of the political relationships. All edges are sequentially ordered based on the event-occurring timestamps. + +- GoogleMap_CT7 is sourced from the Google Local Data project, which compiles review data from Google Maps along with user and business information in the United States up to September 2021. This dataset specifically focuses on business entities located in Connecticut. Nodes represent users and businesses, while edges correspond to user reviews of businesses. Textual attributes are assigned exclusively to business nodes, encompassing the business name, address, category, and self-introduction. All edges are sequentially ordered based on the review timestamps. +- Industrial is sourced from real-world e-commerce transaction records sampled from a mobile payment company, spanning March to June 2024. Nodes in this dataset represent users or merchants while edges denote their transaction records. Each node is enriched with text attributes, such as the user/merchant name and affiliation. Text attributes of each edge include textual details such as price, transaction type, and user review. Besides, all edges are sequentially ordered based on the transaction timestamps, and each node is assigned a label indicating whether it is fraudulent. + +Table 5: Detailed statistics of datasets. + +
Datasets# Nodes# Links# TimesDurationDomainsTime Granularity
Enron42,711797,9071,0063 yearsE-mailone day
GDELT6,7861,339,2452,5912 yearsknowledge graph15 minutes
ICEWS181931,7691,100,0717302 yearsknowledge graph24 hours
Googleimap_CT111,1681,380,62355,521-RecommendationUnix Time
Industrial1,112,0943,196,008903 monthsE-commerceone day
+ +# D.2 Baselines + +We evaluate the performance and discuss the capabilities of eleven existing TGNN methods. The details of these methods are as follows: + +- JODIE [24] is designed to manage temporal graphs in bipartite user-item settings. It employs two Recurrent Neural Networks (RNNs), one for updating the user states and another for the item states. To prevent the issue of outdated node representations, a projection layer is added to track the evolution of the embeddings over time. +- DyRep [25] incorporates neighborhood information by utilizing a temporal attention-based aggregation mechanism. This approach helps capture the evolving structural features of nodes' local environments in the temporal graph, allowing for more accurate dynamic representations. +- TGAT [4] leverages a temporal attention model to aggregate data from temporal-topological neighbors, facilitating the creation of temporal node embeddings. It also introduces a trainable time encoding function that ensures each temporal step is distinctly represented, a concept widely adopted in later TGN architectures. +- TGN [5] builds upon earlier methodologies by introducing a memory system that stores a state vector for each node. This memory is refreshed whenever a node participates in an interaction. The model also features modules for processing messages, updating memory states, and embedding temporal features, which collectively enable the generation of dynamic node representations. +- CAWN [26] creates node embeddings using temporal walks. It generates multiple anonymous random walks starting from a target node and encodes them using a Recurrent Neural Network. These encoded walks are then combined to form the final temporal representation, which is particularly effective for predicting temporal links. + +- TCL [28] uses a breadth-first search to form temporal dependency sub-graphs, extracting sequences of interactions for analysis. A Transformer encoder is applied to integrate temporal and structural information, enabling central node representation learning. Additionally, TCL incorporates a cross-attention mechanism within the Transformer to capture interdependencies between interacting node pairs. +- PINT [27] applies injective message passing with a temporal focus and incorporates relative positional encoding to improve the model's capability in capturing dynamic patterns within neighborhoods. +- GraphMixer [29] employs a link encoder inspired by the MLP-Mixer framework to create temporal embeddings for nodes. Its design includes a fixed time encoding scheme, which demonstrates superior performance compared to traditional learnable approaches. The model also utilizes a node encoder with mean-pooling to aggregate link-based information. +- DyGFormer [7] relies on information from 1-hop neighbors to learn temporal graph representations. A Transformer encoder with a patching method is used to capture long-range dependencies across nodes. To preserve correlations between source and target nodes, DyGFormer integrates a Neighbor Co-occurrence Feature. +- LKD4DyTAG [30] conducts a preliminary exploration of dynamic text-attributed graphs. It leverages LLMs as text embedders and introduces an auxiliary knowledge distillation loss to enhance model performance. +- FreeDyG [10] delves the temporal graph modeling into the frequency domain and proposes a node interaction frequency encoding module that both effectively models the proportion of the re-occurred neighbors and the frequency of corresponding interactions of the node pair. + +In addition to the above existing deep learning-based TGNNs, we also explore the performance of the LLMs for TTAG modeling. We employ the widely adopted and well-performing LLM, DeepSeek-v2 $^{8}$ [19], an open-source project released by DeepSeek, Inc. $^{9}$ . DeepSeek-v2 is a strong, economical, and efficient mixture-of-experts language model. For comparison, we test its zero-shot and one-shot performance for temporal link prediction, which is denoted as $\mathbf{LLM}_{\mathrm{zero}}$ and $\mathbf{LLM}_{\mathrm{one}}$ , respectively. Similar to our temporal reasoning chain in Sec. 3.1, we design a task-specific prompt to call with LLMs. Specifically, given the historical interactions of two nodes, we prompt DeepSeek-v2 to directly predict whether these two nodes will interact at a specific future timestamp. + +# D.3 Implementation Details + +Tasks and Metrics. We follow [6] and conduct temporal link prediction under two settings: (i) transductive setting, which predicts links between nodes that have appeared during training; and (ii) inductive setting, where predictions are performed with unseen nodes. During training, we sample an equal number of negative destination nodes as described in Eq. 11. Inspired by [8], we employ Mean Reciprocal Rank (MRR) as the evaluation metric with 100 negative links per positive link during evaluation. We also report the AP and AUC results in Tabs. 7 & 8. Additionally, we further conduct the node classification task in a practical industrial application for financial risk management using the Industrial dataset from the e-commerce domain. The objective of this task is to predict whether a node is involved in fraudulent activity. Specifically, we follow [6] and pass the learned representations through a two-layer MLP to get the probabilities of fraudulent activity for each node. We adopt the Area Under the Receiver Operating Characteristic Curve (AUC) as the evaluation metric for this task. + +Model Configurations. For the training and evaluation, we follow [12] and train all models for 50 epochs and adopt the early stopping strategy under the patience of 5 with an evaluation interval of 5. The learning rate and the batch size across all models and datasets are set to 0.0001 and 256, respectively. We repeat the experiments for 3 runs with seeds ranging from 0 to 2 to ensure evaluation reliability and report the averaged performance with the corresponding standard deviations. All training is performed on a single server with 72 cores, 128GB memory, and four Nvidia Tesla V100 GPUs. As for the hyper-parameters, the representation dimensions across all models and datasets are consistently set to 384, and the introduced hyper-parameter, maximum reasoning count $m$ , is set to 8 for all datasets by default. Other hyper-parameters among baselines follow the critical + +![](images/0c92ab06decf8dbe98eed51a4ced75c8822d2efa33ed2d43a5015ded16268c9d.jpg) +Figure 12: Robustness study for noise on GDELT and Googlemap_CT with different perturbation rates. (Supplementary results for Fig. 5.) + +![](images/ef01dbcf91b562a764bfc26d797152ba3f381def3b94fbc9608c1964b2a82105.jpg) + +![](images/75bb64998f71c8496a5b18da9cf9bb6e48753620e61a8e0189b8d9ebebbaaf2a.jpg) + +![](images/6ee2a4f55fcf3174f070f0065a5fbfd0b263c4fc52d87b96d3d3472df15ac663.jpg) + +Table 6: Ablation study for the raw texts and LLM-generated texts. Semantic/Structural Encoding refers to the encoding mechanisms that independently perform semantic/structural layers in Sec. 3.2; imprv. indicates the performance improvements of LLM-generated texts $\mathbf{{Text}}_{\mathbf{{LLM}}}$ over the raw texts ${\mathbf{{Text}}}_{\mathbf{{raw}}}$ . (Supplementary results for Tab. 3.) + +
DatasetsMethodsSemantic EncodingStructural EncodingStructural-Structural Co-encoding
TextrawTextLLMimprv.TextrawTextLLMimprv.TextrawTextLLM(ours)imprv.
TransductiveGDELTTGAT49.64 ± 0.952.02 ± 8.8↑ 2.3856.73 ± .0457.01 ± 0.3↑ 0.2858.29 ± 0.281.63 ± 1.7↑ 23.34
TGN49.64 ± 0.952.02 ± 8.8↑ 2.3854.28 ± 1.655.58 ± 1.0↑ 1.3056.27 ± 1.277.95 ± 2.8↑ 21.68
DyGFormer49.64 ± 0.952.02 ± 8.8↑ 2.3861.35 ± 0.362.54 ± 0.1↑ 1.1962.73 ± 0.581.28 ± 4.4↑ 18.55
Google map_CTTGAT47.03 ± 0.298.38 ± 0.4↑ 51.3563.13 ± 0.568.69 ± 0.1↑ 5.5665.46 ± 0.299.92 ± 0.0↑ 34.46
TGN47.03 ± 0.298.38 ± 0.4↑ 51.3571.35 ± 0.581.60 ± 1.0↑ 10.2572.64 ± 0.899.92 ± 0.0↑ 27.28
DyGFormer47.03 ± 0.298.38 ± 0.4↑ 51.3554.82 ± 2.761.76 ± 0.1↑ 6.9457.02 ± 0.499.82 ± 0.0↑ 42.80
IndustrialTGAT24.47 ± 0.573.15 ± 1.8↑ 48.6846.74 ± 3.953.33 ± 2.7↑ 6.5947.62 ± 2.086.97 ± 2.8↑ 39.35
TGN24.47 ± 0.573.15 ± 1.8↑ 48.6854.46 ± 3.053.20 ± 1.0↓ 1.2655.45 ± 0.594.26 ± 0.8↑ 38.81
DyGFormer24.47 ± 0.573.15 ± 1.8↑ 48.6874.45 ± 0.774.05 ± 0.4↓ 0.4075.23 ± 0.194.78 ± 1.4↑ 19.55
InductiveGDELTTGAT27.98 ± 0.737.72 ± 9.5↑ 9.7442.01 ± 0.545.79 ± 0.4↑ 3.7841.02 ± 0.364.56 ± 1.8↑ 23.54
TGN27.98 ± 0.737.72 ± 9.5↑ 9.7437.48 ± 2.834.61 ± 3.1↓ 2.8738.81 ± 1.056.65 ± 3.8↑ 17.84
DyGFormer27.98 ± 0.737.72 ± 9.5↑ 9.7450.61 ± 0.252.33 ± .04↑ 1.7252.19 ± 0.366.37 ± 4.4↑ 14.18
Google map_CTTGAT44.43 ± 0.289.53 ± 0.7↑ 45.1060.96 ± 0.266.98 ± 0.2↑ 6.0262.17 ± 0.291.59 ± 0.0↑ 29.42
TGN44.43 ± 0.289.53 ± 0.7↑ 45.1067.88 ± 0.278.08 ± 1.0↑ 10.2068.17 ± 0.292.68 ± 0.1↑ 24.51
DyGFormer44.43 ± 0.289.53 ± 0.7↑ 45.1052.98 ± 2.559.67 ± 0.1↑ 6.6953.81 ± 0.691.74 ± 0.1↑ 37.93
IndustrialTGAT20.71 ± 0.546.34 ± 2.3↑ 25.6330.04 ± 3.033.86 ± 1.2↑ 3.8234.19 ± 1.262.22 ± 2.1↑ 28.03
TGN20.71 ± 0.546.34 ± 2.3↑ 25.6338.28 ± 4.134.41 ± 1.4↓ 3.8740.17 ± 2.083.23 ± 2.6↑ 43.06
DyGFormer20.71 ± 0.546.34 ± 2.3↑ 25.6354.20 ± 0.454.18 ± 0.2↓ 0.0255.37 ± 2.782.30 ± 1.2↑ 26.93
+ +hyper-parameters in the widely-used library DyGLib $^{10}$ [7], which has performed an exhaustive grid search to identify the optimal hyper-parameters across different models. For the details of LLM calls, in addition to the ablation study on different LLMs of Sec. 4.5, we adopt DeepSeek-v2 as the default LLM. All LLM calls on DeepSeek-v2 are performed in a Language Model as a Service (LMaaS)-compatible manner via its official Application Programming Interface $(\mathrm{API})^{11}$ . + +# E Related Work + +Temporal Graph Neural Networks (TGNNs). Temporal graph neural networks (TGNNs) [35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46] are designed to generate node representations in temporal graphs, where they typically develop various structural encoding mechanisms to summarize the dynamic graph structures among neighborhoods of the target node [47, 48, 49, 50, 51, 52, 53, 54, 55, 56]. Based on how these mechanisms operate, existing TGNNs can be broadly categorized into two types: message-encoding TGNNs (ME-TGNNs) and walk-encoding TGNNs (WE-TGNNs). ME-TGNNs [57, 58, 59, 60, 61, 62, 63, 64] capture changing graph structures via message passing mechanisms, where node representation is refined by aggregating messages from neighbors through various aggregation functions [9]. In contrast, WE-TGNNs [26, 27] incorporate temporal structural information into node representations in a different way. They typically sample multiple temporal walks originating from the target node and encode these walks based on node occurrence information. Despite their success, above existing TGNNs focus solely on biased encoding mechanisms that prioritize topological dynamics, neglecting the rich text semantics present in temporal text-attributed graphs (TTAGs) [12]. + +For completeness, we note the existence of a very recent work [30] that conducts a preliminary exploration of TTAG modeling, where LLMs are used to embed texts into features, and a distillation + +Table 7: AP results (%) for temporal link prediction in transductive and inductive settings. Results highlighted with a blue background indicate the performance and corresponding improvements of our CROSS framework using various TGNN backbones. The best results are highlighted in bold. + +
Transductive settingInductive setting
EnronGDELTICEWS1819Google map_CTIndustrialEnronGDELTICEWS1819Google map_CTIndustrial
JODIE97.26 ± 0.294.87 ± 0.297.62 ± 0.684.28 ± 0.193.70 ± 0.293.91 ± 0.491.47 ± 0.294.40 ± 1.782.33 ± 0.282.57 ± 0.5
DyRep95.99 ± 1.393.76 ± 0.596.04 ± 0.477.21 ± 1.287.64 ± 0.290.99 ± 2.791.00 ± 0.791.76 ± 0.574.44 ± 1.677.23 ± 0.4
TCL97.43 ± 0.196.16 ± 0.099.23 ± 0.089.80 ± 0.294.33 ± 0.293.49 ± 0.492.80 ± 0.198.17 ± 0.088.09 ± 0.082.98 ± 0.3
CAWN97.74 ± 0.095.50 ± 0.198.90 ± 0.088.41 ± 0.196.37 ± 0.194.48 ± 0.291.19 ± 0.297.31 ± 0.086.29 ± 0.089.14 ± 0.1
PINT98.28 ± 0.196.26 ± 0.297.33 ± 0.190.20 ± 0.296.00 ± 0.295.82 ± 0.492.28 ± 0.498.11 ± 0.187.25 ± 0.190.91 ± 0.2
GraphMixer96.27 ± 0.294.96 ± 0.198.60 ± 0.080.12 ± 0.394.18 ± 0.190.40 ± 0.690.79 ± 0.196.60 ± 0.177.43 ± 0.182.66 ± 0.2
FreeDyG97.26 ± 0.195.02 ± 0.199.08 ± 0.184.20 ± 0.496.22 ± 0.392.46 ± 0.891.87 ± 0.297.29 ± 0.379.22 ± 0.184.44 ± 0.3
LKD4DyTAG98.42 ± 0.196.26 ± 0.399.17 ± 0.284.88 ± 0.197.20 ± 0.193.02 ± 0.291.19 ± 0.498.21 ± 0.080.63 ± 0.285.88 ± 0.5
TGAT96.94 ± 0.195.70 ± 0.199.10 ± 0.087.11 ± 0.393.60 ± 0.691.98 ± 0.291.57 ± 0.197.81 ± 0.085.40 ± 0.281.25 ± 0.9
TGAT+99.67 ± 0.198.11 ± 0.299.64 ± 0.199.97 ± 0.097.51 ± 0.297.44 ± 0.294.38 ± 0.398.63 ± 0.297.23 ± 0.193.41 ± 0.5
Avg. ↑ 5.55↑ 2.73↑ 2.41↑ 0.54↑ 12.86↑ 3.91↑ 5.46↑ 2.81↑ 0.82↑ 11.83↑ 12.16
TGN97.98 ± 0.295.35 ± 0.399.05 ± 0.191.52 ± 0.195.00 ± 0.694.58 ± 0.590.23 ± 0.797.48 ± 0.190.00 ± 0.085.48 ± 1.5
TGN+99.71 ± 0.198.07 ± 0.399.73 ± 0.399.98 ± 0.097.90 ± 0.397.60 ± 0.393.36 ± 0.798.74 ± 0.797.45 ± 0.194.69 ± 0.1
Avg. ↑ 4.06↑ 1.73↑ 2.72↑ 0.68↑ 8.46↑ 2.90↑ 3.02↑ 3.13↑ 1.26↑ 7.45↑ 9.21
DyGFormer97.90 ± 0.296.43 ± 0.099.17 ± 0.081.16 ± 2.197.56 ± 0.194.99 ± 0.393.45 ± 0.198.13 ± 0.078.74 ± 2.489.81 ± 0.1
DyGFormer+99.63 ± 0.398.50 ± 0.399.78 ± 0.099.97 ± 0.098.79 ± 0.198.25 ± 0.695.83 ± 0.599.09 ± 0.097.25 ± 0.195.90 ± 0.1
Avg. ↑ 5.57↑ 1.73↑ 2.07↑ 0.61↑ 18.81↑ 1.23↑ 3.26↑ 2.38↑ 0.96↑ 18.51↑ 6.09
+ +Table 8: AUC results (%) for temporal link prediction in transductive and inductive settings. Results highlighted with a blue background indicate the performance and corresponding improvements of our CROSS framework using various TGNN backbones. The best results are highlighted in bold. + +
EnronTransductive settingIndustrialEnronGDELTInductive setting
GDELTICEWS1819Googlemap_CTICEWS1819Googlemap_CTIndustrial
JODIE97.50 ± 0.295.55 ± 0.297.56 ± 0.685.25 ± 0.394.34 ± 0.293.93 ± 0.391.41 ± 0.293.68 ± 2.082.83 ± 0.480.55 ± 0.7
DyRep96.56 ± 0.994.63 ± 0.295.83 ± 0.378.02 ± 0.587.97 ± 0.391.60 ± 2.190.71 ± 0.490.60 ± 0.574.60 ± 1.074.25 ± 0.7
TCL97.52 ± 0.296.32 ± 0.099.18 ± 0.0189.75 ± 0.294.97 ± 0.293.20 ± 0.492.69 ± 0.198.04 ± 0.0287.95 ± 0.080.58 ± 0.5
CAWN97.76 ± 0.095.62 ± 0.098.86 ± 0.0188.51 ± 0.196.57 ± 0.194.07 ± 0.190.92 ± 0.197.15 ± 0.0486.39 ± 0.187.17 ± 0.1
PINT98.00 ± 0.496.27 ± 0.299.01 ± 0.189.36 ± 0.198.11 ± 0.395.35 ± 0.792.52 ± 0.198.27 ± 0.588.24 ± 0.287.25 ± 0.3
GraphMixer96.42 ± 0.295.26 ± 0.097.27 ± 0.180.08 ± 0.394.81 ± 0.189.99 ± 0.790.69 ± 0.195.27 ± 0.176.57 ± 0.280.01 ± 0.4
FreeDyG97.72 ± 0.196.32 ± 0.299.08 ± 0.0184.37 ± 0.295.29 ± 0.195.27 ± 0.992.23 ± 0.197.92 ± 0.180.58 ± 0.184.29 ± 0.2
LKD4DyTAG97.01 ± 0.197.22 ± 0.198.00 ± 0.183.29 ± 0.196.44 ± 0.092.82 ± 0.493.73 ± 0.196.62 ± 0.178.76 ± 0.282.98 ± 0.1
TGAT97.17 ± 0.195.93 ± 0.199.05 ± 0.087.17 ± 0.494.43 ± 0.492.09 ± 0.391.74 ± 0.197.67 ± 0.185.33 ± 0.278.88 ± 0.6
TGAT+99.69 ± 0.0498.17 ± 0.299.62 ± 0.199.97 ± 0.097.04 ± 0.297.53 ± 0.194.28 ± 0.398.54 ± 0.397.20 ± 0.192.15 ± 0.4
Avg. ↑ 5.47↑ 2.52↑ 2.24↑ 0.57↑ 12.80↑ 2.61↑ 5.44↑ 2.54↑ 0.87↑ 11.87↑ 13.27
TGN98.15 ± 0.295.67 ± 0.399.02 ± 0.191.96 ± 0.195.49 ± 0.494.86 ± 0.590.53 ± 0.597.47 ± 0.090.50 ± 0.083.51 ± 1.6
TGN+99.70 ± 0.198.14 ± 0.399.73 ± 0.399.97 ± 0.097.69 ± 0.797.48 ± 0.493.69 ± 0.798.72 ± 0.797.42 ± 0.093.17 ± 0.2
Avg. ↑ 3.86↑ 1.55↑ 2.47↑ 0.71↑ 8.01↑ 2.20↑ 2.62↑ 3.16↑ 1.25↑ 6.92↑ 9.66
DyGFormer97.78 ± 0.496.52 ± 0.099.08 ± 0.0280.96 ± 2.297.61 ± 0.194.24 ± 0.693.12 ± 0.197.93 ± 0.077.99 ± 2.787.89 ± 0.2
DyGFormer+99.60 ± 0.398.53 ± 0.399.75 ± 0.0399.97 ± 0.098.24 ± 0.198.03 ± 0.795.57 ± 0.598.99 ± 0.197.24 ± 0.194.70 ± 0.1
Avg. ↑ 5.75↑ 1.82↑ 2.01↑ 0.67↑ 19.01↑ 0.63↑ 3.79↑ 2.45↑ 1.06↑ 19.25↑ 6.81
+ +loss is applied to transfer knowledge from LLMs to a TGNN model. However, this method still suffers from the limitations of neglecting both semantic dynamics and semantic-structural reinforcement, as it continues to rely on the TGNN encoding mechanism during inference (empirically validated in Tab. 2). Instead, our proposed CROSS tackles these issues by unifying text semantics and graph structures, which effectively generates cohesive representations that are both context- and structure-aware. + +Text-attributed Graphs (TAGs). Text-attributed graphs (TAGs) have been widely adopted in numerous real-world applications [16, 65]. To enable representation learning in such graphs, existing methods often combine graph learning approaches with language modeling techniques. Early works focus on integrating pre-trained language models (LMs) with graph neural networks (GNNs). Some of them [66, 67] conduct cascaded architecture. They first use LMs to independently embed texts as node features, which are then fed into GNNs for representations. Unlike these pipelines, other methods [68, 69, 70, 71, 72, 73] adopt a hybrid GNN-LM architecture to jointly detect both semantic and structural information. Unfortunately, all these methods overlook the potential temporal information inherent in graphs, limiting their applicability to TTAG modeling. Moreover, they cannot be directly applied to TTAGs, as TTAGs and TAGs differ technically. For instance, TTAGs involve a sequence of timestamped interactions with both node and edge attributes, while TAGs typically rely on adjacency matrices with only node attributes. + +Large Language Models (LLMs) for Graph Text Augmentation (LLM4GTAug). In recent years, the rising prominence of large language models (LLMs) [18, 74, 75], such as DeepSeek-v2/3 [19], has underscored their exceptional potential to revolutionize graph modeling [76, 77, 78]. They typically harness the prompt response of LLMs as the external knowledge to fortify overall model performance, either for text augmentation [20, 79, 80] or for structure refinement [21, 81]. However, all the above methods focus on static text-attributed graphs. LLMs used in these methods are typically limited by static corpora input for reasoning, making them ill-suited to capture the temporal dynamics of TTAGs. In this paper, we propose to enhance LLMs with dynamic semantic summarization reasoning capability, effectively detecting semantic dynamics for TTAG modeling. + +# F Prompt Template + +In Sec. 3.1, we provide a simplified example of the prompts used to construct the temporal reasoning chain within our Temporal Semantics Extractor. Here, we present a complete example of the prompts applied to the Googlemap_CT dataset as depicted in Fig. 13. Only minor keyword adjustments are required for the prompts when applied to other datasets. Specifically, for the Enron dataset, the terms "item" and "review" are replaced with "user" and "email". Similarly, for the GDELT and ICEWS1819 datasets, these terms are substituted with "entity" and "relation". For the industrial datasets, "item" and "review" are replaced with "user" and "transaction". + +# Goal #: Summarize the historical reviews of user 'Maureen Sobel' at the current timestamp and provide your semantic understanding for them. # Descriptions #: xxx + +Current timestamp #: 27639 + +Recent reviews of user 'Maureen Sobel' #: + +0. timestamp: 27630 | item: 'Name: xxx. Description: xxx' | review: 'Had my hair cut and permed by a very experienced and...' + +1. timestamp: 27246 | item: 'Name: xxx.Description: xxx' | review: 'Always clean and monitored. Have a good selection of machines ... + +2. timestamp: 26880 | item: 'Name: xxx.Description: xxx' | review: 'Basic auto parts store with lackadaisical stereotype staff who ... + +3. ... + +Provide the summary STRICTLY in this form: Summary: xxx. + +Figure 13: An example of the prompt used to query the LLMs on Googleimap_CT. + +# G Scalability Clarification of LLM Usage + +In this section, we provide a scalability clarification of LLM usage within the CROSS framework, including presenting cost statistics and outlining the strategies employed to improve efficiency. + +Cost statistics of LLM usage. DeepSeek-v2 [19] is renowned for its exceptional performance and cost-efficiency, which provides an excellent balance between quality and affordability. Therefore, we select DeepSeek-v2 as the default LLM in our CROSS framework. Here, we present the cost statistics for calling DeepSeek-v2 API across the five datasets in Tab. 9 for reference. Additionally, we want to emphasize that the DeepSeek-v2 API imposes no theoretical rate limits. During practical implementation, we leverage multithreading techniques to conduct multiple network requests simultaneously under 80 concurrent processes, enhancing program parallelism and optimizing response time consumption. As for the money cost, DeepSeek-v2 prices at $0.00027 per 1,000 input tokens and$ 0.0011 per 1,000 output tokens at the time of our experiments. + +Table 9: Cost statistics of LLM usage. + +
Datasets# Input Tokens# Output Tokens# Time Consumption (s)# Money Cost ($)
Enron20,640,4234,471,7654,52810.49
GDELT4,194,4901,049,8424,1452.29
ICEWS181921,844,7995,410,1456,51711.85
Googlemap_CT144,712,37621,214,48121,58162.41
Industrial296,273,27130,294,17241,729113.3
+ +Strategies to improve the efficiency of LLM usage. It is important to highlight that we have implemented several strategies to enhance the efficiency of LLM usage as follows: (i) The frequency of LLM calls for each node is carefully constrained. We introduce a maximum reasoning count $m$ to + +constrain the number of reasoning steps for each node as described in Eq. 1. This design reduces the computational complexity of LLM calls from $\mathcal{O}(|\mathcal{E}|)$ to $\mathcal{O}(|\mathcal{V}|)$ , where $|\mathcal{E}|$ and $|\mathcal{V}|$ represent the total number of edges and nodes respectively. (ii) Smaller LLMs can serve as cost-effective alternatives. Smaller LLMs within the CROSS framework still demonstrate notable performance as shown in Sec. 4.5, providing a more cost-effective alternative to larger LLMs like DeepSeek-v2 or GPT-4o. (iii) The LLM-generated texts are consistently reused to avoid repeated querying. Our method requires only a single query to the LLMs, with the summaries being stored for subsequent use. These LLM-generated texts can be reused for other tasks or integrated into other methods. We will make the LLM-generated texts publicly available if this paper can be accepted. + +Based on the clarifications above, we argue that the proposed CROSS framework is applicable and effective for large industrial-scale TTAGs. This is because CROSS's success on our Industrial dataset from real-world e-commerce systems has demonstrated its practical scalability, and the scale of this dataset surpasses that of many common domains [82]. We will also provide the complexity analysis for CROSS's components in Sec. L.4. + +# H Efficiency Study + +In this section, we conduct an efficiency study by comparing model performance and training time per epoch. The results are presented in Fig. 14, where the top-left indicates better performance with higher efficiency. From the results, we observe that CROSS strikes a better trade-off between effectiveness and efficiency, achieving the best performance while maintaining a moderate, acceptable computational cost. These results further highlight the scalability and practicality of our proposed framework, making it well-suited for large-scale and industrial applications. + +![](images/012b2ccb8c483e004d2976e3d2b16d6310ff976e232ec04b6c750b13d5885ec0.jpg) +(a) Enron. + +![](images/2a76373e0d5e9d89ece2d59ebe3e3283afabf3974f7cf9f8c1b0a2af22013059.jpg) +(b) GDELT. +Figure 14: Comparison between model performance and training time per epoch. CROSS exhibits a better trade-off between effectiveness and efficiency, achieving the best performance while maintaining a moderate, acceptable computational cost. + +![](images/04702aaa6b23b1c6a56687bc92c63460fd478ea1002427b74dc3c14ba495ef6e.jpg) +(c) ICEWS1819. + +![](images/4968bf8ae3488404f67ecb8abbc74aac3c7a259cc77ece9394aaa72ba746c247.jpg) +(d) Googlemap_CT. + +# I Parameter Study + +To balance granularity and efficiency, we set a maximum reasoning count ( $m$ in Eq. 1) to constrain the number of LLM reasoning steps. Now we study how this hyper-parameter impacts performance and plot the results with varying $m$ in Fig. 15. Reasoning too infrequently (small $m$ ) may make the LLMs cannot effectively comprehend the semantic dynamics around nodes and thus result in degraded performance, while reasoning too frequently + +(large $m$ ) may cause the LLMs to fail to capture long-term semantic shifts. It is also worth noting that different models exhibit varying sensitivities, and $m = 8$ seems to be a generally sweet choice. + +![](images/4481c0b980a1eb2963b1b1e79382d3963f997915d99f0b187034a46999215b9c.jpg) +(a) TGAT as the backbone. +Figure 15: Parameter study with different maximum reasoning count $m$ on GDELT. Results of w/o TSE are also presented for reference. + +![](images/904975b03a4f53f12c96a17da922892f513285b98160aaff4ac5a3b7e591b578.jpg) +(b) TGN as the backbone. + +# J Details for Robustness Study + +Robustness study for noise. As stated in Sec. 1, the learned representations from existing TGNNs may rely solely on noisy structural information. To empirically validate this assumption, we strategically introduce noise into graph structures surrounding a target node by replacing its neighbors + +with randomly sampled nodes at perturbation rates of $p \in \{10\%, 20\%, 30\%, 40\%, 50\% \}$ . To further investigate the impact of noise and assess the model ability to handle such conditions, we randomly select a subset of nodes and visualize the attention weights of their perturbed neighbors during encoding using box plots under $p = 50\%$ . + +Robustness study for encoding layers. Next, we study the model robustness to the number of encoding layers. Specifically, we conduct a series of experiments with varying numbers of encoding layers $L = \{1,2,3,4,5\}$ . A larger number of encoding layers facilitates a deeper integration of the cross-modal information. We employ TGAT and TGN as the backbones. Unlike previous experiments, we set the neighbor sampling size in each layer to 5 in this group of experiments due to computational constraints. Other hyper-parameters remain set to their default values detailed in Sec. D.3. + +![](images/7c46c22db8712726147074ce2428c80e90760f5139311781a1b78e171bf3f5ab.jpg) +Figure 16: Attention weights from randomly selected nodes to their perturbed neighbors on Enron with the perturbation rate of $50\%$ . (Supplementary results for Fig. 6.) + +![](images/0ec00e92c433f6713689227ea7ff5348fb12c611d979ca35eb1aa695d03cbb0d.jpg) +Figure 18: Ablation study for model components using TGAT model as the backbone. Results of the backbone are also included for reference. (Supplementary results for Fig. 8.) + +![](images/7e6ee855576c41950deb8b83ac7324f4a0e3118ead5f897547403d4bbd514af2.jpg) +(a) TGAT as backbone. (b) TGN as backbone. Figure 17: Robustness study for encoding layers on ICEWS1819. (Supplementary results for Fig. 7.) + +![](images/02b45160f34efc8905c396f66c78371d8b21e3b99ac5dbe965e23a893d221fc3.jpg) +(a) TGAT as backbone. (b) TGN as backbone. Figure 19: Parameter study with different maximum reasoning count $m$ on Enron. Results of w/o TSE are shown for reference. (Supplementary results for Fig. 15.) + +# K Details for Ablation Study + +Ablation study for model components. We start the ablation study by evaluating the contributions of the key components of our model, including the Temporal Semantics Extractor (TSE) in Sec. 3.1, the Semantic-structural Co-encoder (SC) in Sec. 3.2, and the Cross-modal Mixer (CM) in Eq. 9. We remove each component individually, resulting in three variants: $\mathbf{w} / \mathbf{o}$ TSE, $\mathbf{w} / \mathbf{o}$ SC, and $\mathbf{w} / \mathbf{o}$ CM. Moreover, we disrupt the Temporal Reasoning Chain constructed by the TSE component via scrambling the chronological order in $\hat{T}_u$ among Eq. 1, which results in a variant named w/o TRC. Additionally, to validate the rationale behind the design of our Cross-modal Mixer, we present results where all semantic representations are indiscriminately mixed. This variant is referred to as $\mathbf{w} / \mathbf{CM}_{\mathrm{all}}$ . + +Ablation study for raw texts and LLM-generated texts. We then conduct an ablation study to compare the raw texts in TTAGs (i.e., the original node or edge text attributes) with the LLM-generated texts (i.e., neighborhood summaries produced by LLM-based Temporal Semantics Extractor). Experiments are performed using three encoding mechanisms, including the semantic encoding that performs semantic layers for semantic representations described in Sec. 3.2, the structural encoding that conducts semantic layers for structural representations described in Sec. 3.2, and the semantic-structural co-encoding that is used to generate final representations in CROSS. These combinations lead to six variants. + +Ablation study for different LLMs. We further extend our ablation study with different LLMs. In addition to the default LLM DeepSeek-v2 within the CROSS framework, we conduct experiments using various LLMs with the GDELT dataset, including GPT-4o [31], Llama3-8b [32], Vicuna-7b [33], and Mistral-7b [34]. Specifically, GPT-4o is a proprietary large language model developed + +by OpenAI $^{12}$ , built upon the GPT-4 architecture and optimized for multimodal comprehension and generation. We also invoke it via its official API $^{13}$ . Llama3-8b is an open-source auto-regressive language model with an improved transformer structure. Its tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align with human preferences for helpfulness and safety. Vicuna-7b is built on Llama 2 and fine-tuned using supervised instruction. Its training data comes from user-shared conversations found online. Mistral-7b uses grouped-query attention (GQA) for faster processing and sliding window attention (SWA) to handle long sequences more efficiently, reducing the cost of inference. + +From the results in Fig. 9, we can find that DeepSeek-v2 performs best, demonstrating its effectiveness. Additionally, it is worth noting that all variants significantly outperform their corresponding backbones and the performance differences across variants are relatively minimal. This demonstrates the robustness of the CROSS framework. + +# L Discussions + +# L.1 Empirical Analysis for Semantic Dynamics + +In this subsection, we provide an empirical analysis for the semantic dynamics in TTAGs. To achieve this, we conduct an empirical experiments with three additional variants, including: + +- w/ FTI (Fixed Time Interval): Instead of the timestamp sampling using fixed interaction intervals in Eq. 1, for each node, we compute its interaction time span and uniformly sample timestamps to enable the LLM to summarize at fixed time intervals. +- w/ RN (Recent Neighbors): For each node at each timestamp, we directly instruct the LLM to summarize the most recent 20 neighbors. +- w/o TE (Time Encoding): We directly remove the time encoding mentioned in Eq. 3. + +The results are presented in Tab. 10. From the results, we find that the w/o TE exhibits only a marginal performance drop. This indicates that time encoding alone captures limited temporal dynamics. Instead, our prompting paradigm guides LLMs to capture the semantic evolution over time, effectively facilitating text-driven dynamics for TTAG modeling. Furthermore, either summarizing at fixed time intervals or recent interactions yields suboptimal results. This strongly validates the importance of semantic dynamics. + +Table 10: MRR results (%) for temporal link prediction on Enron with TGAT and TGN backbones. + +
TransductiveInductive
TGATTGNTGATTGN
w/ FTI82.4785.2070.2171.77
w/ RN78.4683.3865.6068.87
w/o TE92.8793.6281.4080.33
CROSS95.5895.8481.5282.38
+ +# L.2 Extension to Edge Classification + +CROSS can be easily extended to edge classification. For completeness, we evaluate two edge classification settings: (i) Supervised setting where models are trained directly using edge labels, and (ii) zero-shot setting where models are first trained on temporal link prediction, and a 2-layer MLP is subsequently fine-tuned on top of the frozen encoder for edge classification. Both implementation and model configurations follow DTGB [12], with DyGFormer adopted as the backbone. From the results, we find that CROSS still achieves the best performance in both supervised and zero-shot edge classification, proving its strong generalization and transferability across tasks. Additionally, all models exhibit a performance drop in the zero-shot setting. This highlights the presence of a transfer learning challenge in TTAG modeling, which warrants future research. + +Table 11: Precision, Recall, and F1 (\%) results for supervised and zero-shot edge classification on Enron. We omit some baselines, as they have shown inferior performance [12]. + +
Supervised Edge ClassificationZero-shot Edge Classification
JODIEDyRepGraphMixerDyGFormerCROSSJODIEDyRepGraphMixerDyGFormerCROSS
Precision65.6866.2563.1366.0178.6247.5250.2844.2852.8265.28
Recall64.7263.9057.3558.0672.7440.2546.9142.8247.3660.22
F164.7864.3255.0756.0470.9142.8844.5843.6645.2058.29
+ +# L.3 When Handling Conflicting Modalities + +CROSS is developed from the unification of text semantics and graph structures with the assumption of complementarity between both information, which is discussed in Sec. 1 and validated in Sec. A. While building upon this, we argue that CROSS remains effective even in the presence of potential cross-modal conflicts. This claim is supported by: + +Quantitative results. Noise can reduce alignment and amplify conflicts between semantics and structures. Our robustness study for noise in Sec. 4.4 simulates these inconsistencies, and the results show that CROSS consistently performs best and exhibits strong robustness. This validates CROSS's ability to effectively handle such cross-modal conflicts. + +Qualitative results. Similar to our case study in Sec. A, we also visualize the learned representations of a representative node on GDELT as shown in Fig.20. The completely disjoint representations from backbones confirm the presence of cross-modal conflicts, and CROSS effectively narrows the feature space to produce relatively more unified representations. Such capabilities to handle conflicts can be attributed to our co-encoding mechanism, which adaptively facilitates synergistic alignment between modalities. + +![](images/5af8f38898df7492da284b623dd7aa3d6c48c8123d515eb613ed30b48c823a33.jpg) +Figure 20: Case study for the learned representations when handling conflicting modalities. + +# L.4 Complexity Analysis + +Now, we provide a theoretical complexity analysis of the two main components of CROSS. Let $|\mathcal{V}|$ represent the number of nodes, $D$ denote the average degree of the node, $L$ indicate the number of encoding layers, and $m$ depict the maximum reasoning count. To simplify the calculations, we assume that the input, hidden, and output dimensions are uniformly set to $d$ . In the Temporal Semantics Extractor, we construct a temporal reasoning chain with a maximum reasoning count of $m$ for each node, resulting in a computational complexity of $\mathcal{O}(m|\mathcal{V}|)$ . For the Semantic-structural Co-encoder, we utilize various existing TGNN encoding blocks as the structural layers. Therefore, our complexity analysis focuses on the additional cost introduced by the semantic layers. As mentioned in Sec. 3.2, these layers employ a series of standard Transformer layers for each node, thus leading to a total complexity of $\mathcal{O}\left(L|\mathcal{V}|D^2d + L|\mathcal{V}|d\right)$ . + +# L.5 Limitation + +One potential limitation of CROSS is that we only focus on 1-hop historical interactions of a specific node as input to the LLMs within our Temporal Semantics Extractor. While effective in many cases, this approach may be suboptimal for scenarios where high-order temporal semantics are critical. However, directly incorporating multi-hop textual neighborhoods into LLM could substantially escalate computational costs and dilute the model ability to capture relevant semantic information. Future work could explore innovative methods to efficiently and effectively capture nodes' high-order semantics, unlocking further potential for improved TTAG modeling. + +Another issue could be that LLM-generated texts do not always perform optimally under different encoding mechanisms. Although LLMs are renowned for their powerful text generation and understanding capabilities, it is crucial to explore effective encoding mechanisms that can fully maximize the potential of LLM-generated texts, such as the proposed Semantic-structural Co-encoder. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: We clearly mentioned our contributions and scope in both the Abstract and Introduction sections. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We have outlined the potential limitations of the proposed CROSS in Sec. L.5. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: We have provided a theoretical analysis in Sec. B to prove the effectiveness of the proposed CROSS framework with full set of assumptions and a complete proof. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: We have provided the descriptions of the datasets in Sec. D.1, model architecture in Sec. 3, training procedures in Alg. 1, and the implementation details in Sec. D.3. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: We have provided the codes and data in the supplemental material, as well as at https://anonymous.4open.science/r/CROSS4review. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: We have provided the detailed information of data splits in Sec. 4.1, and both hyper-parameters and type of optimizer in Sec. D.3. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [Yes] + +Justification: As mentioned in Sec. D.3, we repeat the experiments for 3 runs with seeds ranging from 0 to 2 to ensure evaluation reliability and report the averaged performance with the corresponding standard deviations. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. + +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: As mentioned in Sec. D.3, all training is performed on a single server with 72 cores, 128GB memory, and four Nvidia Tesla V100 GPUs. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: Our work conforms to the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [NA] + +Justification: We focus on the problem of TTAG modeling, which has no societal impact. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. + +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: Our paper does not pose a risk of misuse. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We have cited the original paper that produced the code package or dataset used in our paper. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URI. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. + +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +Justification: The new assets such as the code introduced in the paper are well documented, and will be provided after the publication. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. + +We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +# Answer: [Yes] + +Justification: Our work enhances LLMs with dynamic reasoning capability to extract semantic dynamics for TTAG modeling. We have described the usage of LLMs in several parts, including the introduced prompting paradigm in Sec. 3.1, prompt template in Sec. F, implementation details of LLM calls in Sec. D.3, scalability clarifications of LLM usage in Sec. G, as well as the experimental results with different LLMs in Sec. 4.5. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. \ No newline at end of file diff --git a/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/images.zip b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..27e741ba7326cfd6e05e4b22db3e9782ccf5228b --- /dev/null +++ b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca2a625fbf180ac91ac49064466012c580055a44466fe251cea0604019987819 +size 1752990 diff --git a/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/layout.json b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..29c40c5d5ecd564739cb86cd6b8222b5588dcdb2 --- /dev/null +++ b/NeurIPS/2025/Unifying Text Semantics and Graph Structures for Temporal Text-attributed Graphs with Large Language Models/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76dc9458e0328fe6d9c4973cba2a37aca5ac3b86f90eae5e035b1c78b4ae0339 +size 1209460 diff --git a/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/95087162-82a5-4cff-97bc-747df739338e_content_list.json b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/95087162-82a5-4cff-97bc-747df739338e_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..7a836951d0b399d59c35e5cc53166c7b9beae4af --- /dev/null +++ b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/95087162-82a5-4cff-97bc-747df739338e_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2614c59d8f5e3554caef9ca6ac6b788d43de9d6c00c1523bd6e40c0daa7761e +size 225405 diff --git a/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/95087162-82a5-4cff-97bc-747df739338e_model.json b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/95087162-82a5-4cff-97bc-747df739338e_model.json new file mode 100644 index 0000000000000000000000000000000000000000..ccb537568b2ce3d3c08ea79a811d7d01670c605d --- /dev/null +++ b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/95087162-82a5-4cff-97bc-747df739338e_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ff803556e8eb254f1e6028918b41ee6c13953a1f433a67f2556c5a294529265 +size 284644 diff --git a/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/95087162-82a5-4cff-97bc-747df739338e_origin.pdf b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/95087162-82a5-4cff-97bc-747df739338e_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..dc967723c8955fe8f9e621aa0d97fabb566dab20 --- /dev/null +++ b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/95087162-82a5-4cff-97bc-747df739338e_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c604d49a3c07e7bf28a233a6ad2583994eeeb70a10f7440bb736ec6814f1539 +size 4699731 diff --git a/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/full.md b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/full.md new file mode 100644 index 0000000000000000000000000000000000000000..226b8d1ee0997f2c97a76449d0df2a320884a7c8 --- /dev/null +++ b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/full.md @@ -0,0 +1,1260 @@ +# Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework + +Yujie Xing $^{1}$ , Xiao Wang $^{2*}$ , Bin Wu $^{1}$ , Hai Huang $^{1}$ , Chuan Shi $^{1*}$ + +1Beijing University of Posts and Telecommunications, China + +2Beihang University, China + +{yujie-xing,wb789,hhuang,shichuan}@bupt.edu.cn,xiao_wang@buaa.edu.cn + +# Abstract + +Graph Transformers (GTs) have emerged as a powerful paradigm for graph representation learning due to their ability to model diverse node interactions. However, existing GTs often rely on intricate architectural designs tailored to specific interactions, limiting their flexibly. To address this, we propose a unified hierarchical mask framework that reveals an underlying equivalence between model architecture and attention mask construction. This framework enables a consistent modeling paradigm by capturing diverse interactions through carefully designed attention masks. Theoretical analysis under this framework demonstrates that the probability of correct classification positively correlates with the receptive field size and label consistency, leading to a fundamental design principle: An effective attention mask should ensure both a sufficiently large receptive field and a high level of label consistency. While no single existing mask satisfies this principle across all scenarios, our analysis reveals that hierarchical masks offer complementary strengths—motivating their effective integration. Then, we introduce $\mathbf{M}^3\mathrm{D}$ phormer, a Mixture-of-Experts based Graph Transformer with Multi-Level Masking and Dual Attention Computation. $\mathbf{M}^3$ Dphormer incorporates three theoretically grounded hierarchical masks and employs a bi-level expert routing mechanism to adaptively integrate multi-level interaction information. To ensure scalability, we further introduce a dual attention computation scheme that dynamically switches between dense and sparse modes based on local mask sparsity. Extensive experiments across multiple benchmarks demonstrate that $\mathbf{M}^3\mathrm{D}$ phormer achieves state-of-the-art performance, validating the effectiveness of our unified framework and model design. The source code is available for reproducibility at: https://github.com/null-xyj/M3Dphormer. + +# 1 Introduction + +As a fundamental data structure, graphs have been widely used to model complex and diverse interactions in real-world systems, such as social networks and brain networks. To learn high-quality node representations, a variety of Graph Neural Networks (GNNs) have been proposed [23, 38, 16]. However, their performance is inherently constrained by the message-passing mechanism, which imposes a strong locality inductive bias. Inspired by the success of Transformers [37] across various machine learning domains [12, 13], adapting Transformer architectures to graphs has emerged as a promising direction, owing to their strong capability to model interactions over a broader range. + +Graph Transformers (GTs) leverage the core component of the Transformer architecture, Multi-Head Attention (MHA), to adaptively model diverse node interactions and learn expressive representations. One prominent line of research treats the entire graph as fully connected and applies attention mechanisms to capture pairwise node dependencies [42, 43, 11]. Another line constructs a token + +sequence for each node, typically via node sampling or feature aggregation, and adopts a Transformer to capture multi-scale interactions. [5, 15, 41]. Besides, several studies leverage graph partitioning to enable efficient interaction modeling and learn high-quality representations. [18, 20, 44]. + +While many GTs have been proposed, they often rely on intricate architectural design tailored to specific types of node interactions, which limits their ability to model other important interactions. This raises a natural question: Does there exist a unified perspective of GTs that allows for flexible modeling of diverse node interactions? To address this question, we propose a unified hierarchical mask framework, developed through a thorough analysis of existing GTs. Our analysis reveals that various GT architectures inherently model interactions at different levels—local, cluster, and global—corresponding to the hierarchical organization of relational patterns in graphs. Furthermore, we find that these hierarchical interactions can be uniformly modeled through the design of appropriate attention masks, and that many existing GTs can be interpreted as implicitly corresponding to specific masks. This unified perspective reveals an underlying equivalence between model architecture and mask construction, offering a more flexible approach to GT design. + +Under this unified framework, diverse node interactions can be modeled in a consistent manner through the construction of appropriate attention masks, avoiding the need to design intricate network architectures as in traditional methods. Moreover, it facilitates theoretical analysis, proving that both the lower and upper bounds of the probability of correct classification correlate positively with the size of the receptive field and the degree of label consistency. This leads to a fundamental design principle for attention masks: An effective attention mask should ensure a sufficiently large receptive field and a high level of label consistency. Further analysis of masks derived from existing GTs shows that no single mask consistently satisfies this principle across all scenarios. However, hierarchical masks exhibit complementary strengths in node classification, suggesting that integrating multi-level masks provides a natural and effective way to adhere to this principle. + +Then, we conduct experiments on real-world datasets to investigate the effectiveness of combining masks across multiple levels. Specifically, we construct three GTs, each designed to capture a single level of interaction—local, cluster, or global—using a corresponding attention mask. We then apply three ensemble strategies to integrate their outputs: Mean, Max, and an idealized Oracle. The node classification results show that: 1) The Oracle strategy significantly outperforms all other models, demonstrating the potential of comprehensively leveraging multi-level interactions. 2) Naive ensemble methods (Mean and Max) often underperform than the best individual-mask model, highlighting a core challenge in effectively integrating hierarchical information. In addition, the excessive memory usage on medium-scale graphs further reveals a key efficiency challenge in GTs. + +In this paper, we propose M $^3$ Dphormer, a novel Mixture-of-Experts based Graph Transformer with Multi-Level Masking and Dual Attention Computation. Specifically, M $^3$ Dphormer employs three theoretically grounded attention masks for comprehensive modeling of hierarchical interactions, including local, cluster, and global associations. To effectively integrate information across these interaction levels, we design a bi-level expert routing mechanism, where each expert is a multi-head attention module associated with a specific mask. Furthermore, a dual attention computation strategy is introduced to enhance scalability and computational efficiency. + +Our main contributions are summarized as follows: + +- We propose a unified hierarchical mask framework that reveals an underlying equivalence between model architecture and attention mask construction, enabling diverse node interactions to be consistently modeled through carefully designed masks. +- Theoretical analysis within this framework reveals that the probability of correct classification is positively correlated with both the receptive field size and label consistency. This leads to a guiding principle for designing attention masks: an effective mask should ensure a sufficiently large receptive field and a high level of label consistency. +- We propose $\mathbf{M}^3$ Dphormer, a novel Graph Transformer that captures hierarchical interactions comprehensively and efficiently through multi-level masking, bi-level expert routing, and dual attention computation, thereby adhering to the proposed design principle. +- We perform extensive experiments on 9 benchmark datasets, showing that $\mathbf{M}^3$ Dphormer consistently outperforms 15 strong baselines, demonstrating its effectiveness. + +# 2 Preliminary + +We denote an attributed graph as $\mathcal{G} = (\mathcal{V},\mathcal{E},\mathbf{X})$ , where $\mathcal{V} = \{0,1,\dots ,N - 1\}$ is the set of $N$ nodes, $\mathcal{E}$ is the set of $E$ edges, and $\mathbf{X} = [\mathbf{x}_u]\in \mathbb{R}^{N\times d_{in}}$ is the node feature matrix, with $\mathbf{x}_u\in \mathbb{R}^{d_{in}}$ representing the $d_{in}$ -dimensional feature vector of node $u$ . The adjacency matrix is denoted as $\mathbf{A} = [a_{uv}]\in \{0,1\}^{N\times N}$ , where $a_{uv} = 1$ if there exists an edge from node $u$ to node $v$ , and $a_{uv} = 0$ otherwise. For node classification, we define the set of labels as $\mathcal{V}$ , and represent the node labels by $\mathbf{Y} = [\mathbf{y}_u]\in \{0,1\}^{N\times |\mathcal{V}|}$ , where $\mathbf{y}_u\in \{0,1\}^{|\mathcal{V}|}$ is the one hot label of node $u$ . The whole node set can be divided into the training set $\mathcal{V}_{train}$ , the valid set $\mathcal{V}_{valid}$ , and the test set $\mathcal{V}_{test}$ . + +Graph transformers: The core component of GTs is the MHA, formulated as follows: + +$$ +\operatorname {h e a d} _ {i} (\mathbf {H}, \mathbf {M}) = \operatorname {S o f t m a x} \left(\operatorname {M a s k} \left(\hat {\mathbf {A}} ^ {(i)}, \mathbf {M}\right)\right) \mathbf {V} ^ {(i)}, \quad i = 1, \dots , H +$$ + +$$ +\hat {\mathbf {A}} ^ {(i)} = \frac {\mathbf {Q} ^ {(i)} \mathbf {K} ^ {(i)} {} ^ {\top}}{\sqrt {d _ {h}}}, \quad \mathbf {Q} ^ {(i)} = \mathbf {H} \mathbf {W} _ {Q} ^ {(i)}, \quad \mathbf {K} ^ {(i)} = \mathbf {H} \mathbf {W} _ {K} ^ {(i)}, \quad \mathbf {V} ^ {(i)} = \mathbf {H} \mathbf {W} _ {V} ^ {(i)} \tag {1} +$$ + +$$ +\operatorname {M a s k} (\hat {\mathbf {A}} ^ {(i)}, \mathbf {M}) = \left\{ \begin{array}{l l} \hat {\mathbf {A}} _ {u, v} ^ {(i)}, & \text {i f} \mathbf {M} _ {u, v} = 1 \\ - \infty , & \text {i f} \mathbf {M} _ {u, v} = 0 \end{array} \right. +$$ + +Here, $\mathbf{H} \in \mathbb{R}^{N \times d}$ denotes the input representations, where $N$ is the number of nodes and $d$ is the representation dimension. $\mathbf{W}_Q^{(i)}, \mathbf{W}_K^{(i)}, \mathbf{W}_V^{(i)} \in \mathbb{R}^{d \times d_h}$ are trainable projection matrices specific to the $i$ -th head, and $d_h$ is the hidden dimension of each head. The attention score matrix $\hat{\mathbf{A}}^{(i)}$ is masked by $\mathbf{M} \in \{0,1\}^{N \times N}$ , where $\mathbf{M}_{u,v} = 1$ indicates the validity of the attention from node $u$ to node $v$ . During masking, attention scores corresponding to invalid positions are set to $-\infty$ , ensuring that their contribution becomes zero after the Softmax operation. The outputs of all heads are concatenated to produce the final output: $\mathrm{MHA}(\mathbf{H},\mathbf{M}) = \mathrm{Concat}(\mathrm{head}_1,\dots,\mathrm{head}_H)$ . + +# 3 Revisiting GTs through a unified hierarchical mask framework + +Interactions in graphs typically exhibit a hierarchical organization, including local connectivity, cluster relations, and global associations. Each level provides essential information for effective graph representation learning. An illustrative example for the importance of hierarchical interactions is provided in Figure 1, where node labels are indicated by different colors. Due to local homophily, node $u_{1}$ can be accurately classified, as most of its neighbors share the same label. However, such local interactions are insufficient for classifying nodes $u_{2}$ and $u_{3}$ . By + +![](images/c421ae856d417fdec8e98581b7f352867d93fab0efcec66c426500beb9cb7f71.jpg) +Figure 1: Hierarchical interactions. + +leveraging cluster interactions, node $u_{2}$ can be correctly identified, as it lies within a coherent cluster (the blue region). Furthermore, assuming that nodes labeled green follow a representation distribution distinct from the blue and yellow ones, global interactions-represented by the dotted lines—can be adaptively learned to further enhance the classification of $u_{3}$ . Here, we propose a unified hierarchical mask framework that enables GTs to consistently model such multi-level interactions. + +# 3.1 The unified hierarchical mask framework for Graph Transformers + +To formalize this framework, we categorize node interactions into three types: (1) N-N: interactions between individual nodes; (2) N-S: interactions between a node and a node set; and (3) S-S: interactions between node sets. For N-N, we directly set $\mathbf{M}_{u,v} = 1$ to indicate a connection from node $u$ to $v$ . For N-S and S-S, we treat each node set as a virtual super node $v'$ , and extend the node set as $\mathcal{V} = \mathcal{V} \cup \{v'\}$ . This allows both N-S and S-S to be equivalently modeled as N-N, enabling a unified and flexible mask design across different interaction levels. Based on this unified framework, we further illustrate how existing GTs implicitly design their attention masks to model hierarchical interactions across local, cluster, and global levels. A summary table is provided in Table 4. + +Local interactions: Modeling local interactions typically involves capturing information from $K$ -hop neighborhoods. GOAT explicitly models N-N interactions between a target node and its $K$ -hop + +neighbors, which corresponds to the mask $\mathbf{M}^{l1} = \mathbf{A}^K$ [24]. GNN-Transformer hybrid architectures implicitly adopt the mask $\mathbf{M}^{l2} = \mathbf{A}$ through their GNN modules, and aggregating $K$ -hop information recursively across layers [43, 11, 44]. Some tokenized GTs aggregate node features at multiple hops as input tokens of a Transformer, effectively applying a set of masks $\{\mathbf{A}^k:1\leq k\leq K\}$ [5, 15, 6]. + +Cluster interactions: Several recent GTs have focused on capturing cluster-level interactions by partitioning the graph into disjoint clusters with METIS[22]. We define the partition function $\mathcal{P}(u) = p$ to denote the cluster index assigned to node $u$ and the reverse partition function $\mathcal{P}^{-1}(p) = \{u : \mathbf{C}_{u,p} = 1\}$ to denote the set of nodes belong to cluster $p$ . By treating each cluster as a virtual super node, we denote the set of such nodes as $\mathcal{V}^p$ . Graph ViT [18] models interactions between clusters (S-S interactions), which corresponds to applying a mask $\mathbf{M}^{c1}$ , where $\mathbf{M}_{u,v}^{c1} = 1$ if $u, v \in \mathcal{V}^p$ . Cluster-GT [20] models more fine-grained N-S interactions, where each cluster attends to all real nodes. This leads to a mask $\mathbf{M}^{c2}$ , defined as $\mathbf{M}_{u,v}^{c2} = 1$ if $u \in \mathcal{V}^p$ and $v \in \mathcal{V}$ . To differentiate contributions from different clusters, attention scores are further modulated by the connectivity between clusters and refined via cluster attention implicitly induced by $\mathbf{M}^{c1}$ . CoBFormer [44] focuses on N-N interactions within each cluster by implicitly applying a mask $\mathbf{M}^{c3}$ , where $\mathbf{M}_{u,v}^{c3} = 1$ if $u, v \in \mathcal{V}$ and $\mathcal{P}(u) = \mathcal{P}(v)$ . It additionally applies $\mathbf{M}^{c1}$ to capture inter-cluster interactions. + +Global interactions: A common strategy for capturing global N-N interactions is to treat the entire graph as fully connected, corresponding to a global mask $\mathbf{M}^{g1} = \mathbf{1}^{N\times N}$ [42, 43, 11]. In contrast, Exphormer [34] approximates global dependencies through an N-S interaction scheme by introducing a set of virtual super nodes $\nu^g$ , each connected bidirectionally to all real nodes. This yields a global mask $\mathbf{M}^{g2}$ , where $\mathbf{M}_{u,v}^{g2} = 1$ if $u\in \mathcal{V}$ and $v\in \mathcal{V}^g$ , or $u\in \mathcal{V}^g$ and $v\in \mathcal{V}$ . + +# 3.2 Theoretical analysis + +To investigate the distinct contributions of hierarchical masks to node classification, we develop a theoretical framework based on a class-conditional representation model. Specifically, let $\mathcal{G}$ be a graph with label set $\mathcal{V}$ , and assume a uniform label distribution across nodes. The initial representation of a node with label $c$ is sampled from a $d$ -dimensional Gaussian distribution: $z \sim \mathcal{N}(\boldsymbol{\mu}_c, \sigma_c^2\mathbf{I})$ , where $|\boldsymbol{\mu}_c|_2^2 = 1$ , and the class prototypes are assumed to be orthogonal, i.e., $\boldsymbol{\mu}_c^\top \boldsymbol{\mu}_{c'} = 0$ for all $c \neq c'$ . + +Let node $u$ have ground-truth label $c$ , and its receptive field be specified by the mask vector $\mathbf{M}_{u,c}$ , which contains $k$ non-zero entries. Define $\rho_{c'}$ as the fraction of nodes labeled $c'$ within this receptive field, and $\alpha_{c'}$ as the average attention weight assigned to those nodes. Let $\hat{z}_u$ denote the attention-updated representation of node $u$ . We consider a similarity-based classifier that predicts label $c$ correctly if $\hat{\boldsymbol{z}}_u^\top \boldsymbol{\mu}_c \geq \delta_c$ , where $\delta_c$ is a decision threshold implicitly learned by models. + +Theorem 3.1. The updated representation of node $u$ follows a Gaussian distribution: + +$$ +\hat {z} _ {u} \sim \mathcal {N} \left(\sum_ {i = 1} ^ {| \mathcal {C} |} k \rho_ {i} \alpha_ {i} \boldsymbol {\mu} _ {i}, \sum_ {i = 1} ^ {| \mathcal {C} |} k \rho_ {i} \alpha_ {i} ^ {2} \sigma_ {i} ^ {2} \mathbf {I}\right) \tag {2} +$$ + +Assume the classifier is well-trained such that $\delta_c - k\rho_c\alpha_c \leq 0$ , and the attention weights satisfy the constraint $0 \leq \alpha_{c'} \leq \frac{1}{k} \leq \alpha_c \leq \frac{1}{k\rho_c}$ . Then, the probability that node $u$ is correctly classified by a similarity-based classifier is bounded as: + +$$ +1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2} + \frac {1 - \rho_ {c}}{k} \cdot \sigma_ {m} ^ {2}}}\right) \leq P \left(\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \geq \delta_ {c}\right) \leq 1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2}}}\right), \tag {3} +$$ + +where $\Phi(\cdot)$ denotes the cumulative distribution function (CDF) of the standard normal distribution, and $\sigma_m^2 = \max_{i \neq c} \sigma_i^2$ is the maximum variance among non-target classes. + +Both the lower and upper bounds are monotonically increasing with respect to $k$ , $\rho_c$ , and $\alpha_c$ , and decreasing with respect to the set of class-wise variances $\{\sigma_i : 1 \leq i \leq |\mathcal{V}|\}$ . + +The proof can be found in Appendix A. Theorem 3.1 shows that the probability of correct classification primarily depends on the factors: $k$ , $\rho_c$ , $\alpha_c$ , and the set of variances $\{\sigma_i : 1 \leq i \leq |\mathcal{Y}|\}$ . Since $\alpha_c$ and $\sigma_i$ are affected by the training dynamics and input distribution, respectively, we focus our analysis on $k$ and $\rho_c$ , which are determined by the attention mask. Theorem 3.1 demonstrates that larger + +values of $k$ and $\rho_{c}$ lead to higher lower and upper bounds on the probability of correct classification. This gives rise to a fundamental principle for mask construction: An effective attention mask should ensure a sufficiently large receptive field and a high level of label consistency. + +Building on this theorem, we further analyze the applicability of hierarchical masks derived from existing GTs under several representative scenarios: 1) For nodes with strong local homophily, using local masks (e.g., $\mathbf{M}^{l1}$ , $\mathbf{M}^{l2}$ ) is effective due to their typically large $\rho_c$ . 2) For nodes near cluster boundaries, local homophily weakens as some neighbors belong to other clusters. In such cases, cluster masks (e.g., $\mathbf{M}^{c3}$ ) can yield higher $\rho_c$ and a larger $k$ , potentially leading to improved classification performance, assuming the partitioning is accurate. 3) For heterophilic nodes with minority labels in their cluster, local or cluster masks may result in very small $\rho_c$ , even below $\frac{1}{|\mathcal{V}|}$ . Here, the global mask $\mathbf{M}^{g1}$ is preferable, as it ensures $\rho_c = \frac{1}{|\mathcal{V}|}$ and provides a large $k = N$ . By contrast, the use of $\mathbf{M}^{g2}$ may be less effective, as the global virtual nodes lack explicit label semantics. 4) Some prior works approximate global interactions through inter-cluster attention (e.g., via $\mathbf{M}^{c1}$ ). However, as shown in Equation 2, cluster-level representations are dominated by the majority label. During inter-cluster aggregation, this bias is further amplified, increasing the risk of misclassifying minority-label nodes as the dominant class. 5) For nodes belonging to classes with well-defined representation distributions (i.e., small variance $\sigma_c$ ), the attention weights $\alpha_c$ can be effectively learned to approximate $\frac{1}{k\rho_c}$ , leading to a higher probability of correct classification regardless of the specific mask employed. + +The above analysis suggests that no single mask consistently satisfies the proposed principle across all scenarios. However, hierarchical masks at different levels offer complementary strengths in node classification, and their integration provides a natural means of aligning with the principle. + +Table 1: Accuracy comparison of individual masks, ensemble strategies, and the oracle case. + +
DatasetLocalClusterGlobalMeanMaxOracle
Cora87.71±1.3082.10±1.5373.03±1.5386.41±1.7286.82±2.3293.41±1.38
Citeseer77.02±2.1071.43±2.3972.94±2.1076.16±2.1075.73±2.0884.32±2.10
Pubmed89.77±0.4687.96±0.3587.51±0.4289.31±0.2889.19±0.3593.68±0.25
Photo94.25±0.4694.26±1.0685.61±4.2695.14±0.5294.77±0.7497.50±0.40
Computer91.57±0.6389.33±0.7982.78±1.2191.41±0.9290.45±0.7395.59±0.37
Squirrel38.67±1.7238.03±1.1038.64±1.6838.53±1.1638.78±1.3453.72±1.30
Chameleon41.97±3.9042.24±3.3543.50±2.9742.96±4.2942.60±4.5864.57±4.05
+ +# 3.3 Experimental analysis + +To further investigate whether combining masks across multiple interaction levels yields benefits in real-world scenarios, we construct three GTs trained separately with the local mask $\mathbf{M}^{l2}$ , cluster mask $\mathbf{M}^{c3}$ , and global mask $\mathbf{M}^{g1}$ on seven node classification datasets. Then we apply three ensemble strategies to integrate their outputs: Mean: averaging the predicted probabilities; Max: selecting the maximum predicted probability; and Oracle: an idealized upper bound where the best prediction is always selected. The performance of individual models and ensemble methods is reported in Table 1, with three key observations: 1) The strong performance of Oracle indicates that properly integrating complementary information from multiple interaction levels can yield substantial performance gains. 2) Naive ensemble methods, such as Mean and Max, underperform the best single-mask model on 5 out of 7 datasets, revealing a key challenge for Graph Transformers: How to effectively integrate multi-level interaction information? + +Moreover, our experiments reveal a significant efficiency issue: even a 2-layer Transformer with 2 heads and a single mask, consumes 21 GB of GPU memory on the PubMed. Although several efficient Transformer variants—such as kernel-based linear attention methods [8, 35] and FlashAttention [9]—have been proposed to alleviate the $O(N^2)$ complexity, their applicability to graphs remains limited due to the irregular and diverse patterns of graph masks [39]. This leads to another key challenge: How to efficiently implement GTs with irregular masks on large-scale graphs? + +# 4 Method + +In this section, we propose M $^3$ Dphormer, a novel Mixture-of-Experts based Graph Transformer with Multi-Level Masking and Dual Attention Computation. The overall framework is illustrated + +![](images/3bed2a3eb49972a4b3cc8abf406dc840d23de5e9aab84c11db5741687a76141a.jpg) +Figure 2: Overview of the $\mathbf{M}^3$ Dphormer with Pre-RMSNorm [48] and ReLU[1]: a) The overall network architecture. b) The bi-level expert routing mechanism. c) The theorem-guided hierarchical mask design strategy. Self-connections are added for nodes in local and cluster masks. Nodes 2, 4, 5 and 8 are included in the training set. d) The dual attention computation scheme. + +![](images/47d7e9f5a9f2c0c80cf1b1e2beff212dc7588d30567cda1b24f49c32239dee57.jpg) + +in Figure 2. Guided by theoretical analysis, we first design three hierarchical attention masks to comprehensively model multi-level interactions (part c). To adaptively integrate information across these interaction levels, we introduce a bi-level attention expert routing mechanism, where each expert is a MHA module associated with a specific mask (part b). Additionally, a dual attention computation scheme is incorporated to ensure computational efficiency (part d). + +# 4.1 Overall architecture of $\mathbf{M}^3$ Dphormer + +We first present the overall architecture of $\mathbf{M}^3\mathrm{D}$ phormer. The initial representation is given by $\mathbf{H}^0 = \mathbf{X}\mathbf{W}_{in}$ , where $\mathbf{W}_{in} \in \mathbb{R}^{d_{in} \times d}$ is a learnable linear projection. The model then applies $L$ stacked $\mathbf{M}^3\mathrm{D}$ phormer layers, with the computation in the $l$ -th layer defined as: + +$$ +\mathbf {H} ^ {l} = \operatorname {A C T} \left(\operatorname {B i M o E} ^ {l} \left(\operatorname {N o r m} ^ {l} \left(\mathbf {H} ^ {l - 1}\right), \boldsymbol {\mathcal {M}}\right)\right) + \mathbf {H} ^ {l - 1} \mathbf {W} _ {r e s} ^ {l}, \tag {4} +$$ + +where $\mathbf{H}^{l-1}$ is the input from the previous layer, $\mathbf{W}_{res}^l$ is the residual projection matrix following [26], $\mathrm{Norm}^l(\cdot)$ is the normalization function, and $\mathrm{ACT}(\cdot)$ is the activation function. The bi-level attention expert routing mechanism BiMoE $^l(\cdot)$ integrates information from multiple interaction levels based on the hierarchical mask set $\mathcal{M}$ . After $L$ layers, a linear classifier is applied to obtain the final prediction: $\hat{\mathbf{Y}} = \mathbf{H}^L\mathbf{W}_{cls}$ , where $\mathbf{W}_{cls}$ is the classifier weight matrix. The model is optimized using cross-entropy loss computed over both the training nodes $\mathcal{V}_{train}$ and the label-specific global virtual nodes $\mathcal{V}^g$ , which are introduced in the following subsection. + +# 4.2 Theorem-guided hierarchical mask design strategy + +To enable comprehensive modeling of multi-level node interactions, we propose a theoretically grounded design strategy for the hierarchical mask set $\mathcal{M} = \{\mathbf{M}^{l^2},\mathbf{M}^{c^4},\mathbf{M}^{g^3}\}$ . + +Local mask design: We adopt $\mathbf{M}^{l2} = \mathbf{A}$ as the local mask due to its several advantages over $\mathbf{M}^{l1} = \mathbf{A}^{K}$ : 1) As observed in CoBFormer[44], the homophily ratio $\rho_{c}$ tends to decline rapidly with increasing hop size $K$ . A lower $\rho_{c}$ may lead to reduced classification probability, as indicated by Theorem 3.1. 2) $\mathbf{M}^{l1}$ ignores distance information between the target node and its $K$ -hop neighbors, thus requiring explicit distance-aware position encoding[24]. In contrast, $\mathbf{M}^{l2}$ can capture such distance implicitly through recursive aggregation across layers. 3) $\mathbf{M}^{l2}$ is sparser than $\mathbf{M}^{l1}$ , enabling more efficient computation under the dual attention scheme introduced later. + +Cluster mask design: We first partition the graph into $P$ disjoint clusters using METIS[22], and introduce a set of cluster-level virtual nodes $\mathcal{V}^p = \{N + i : 0 \leq i < P\}$ . We then define a new cluster mask $\mathbf{M}^{c4}$ , where $\mathbf{M}_{u,v}^{c4} = 1$ if either (i) $u \in \mathcal{V}$ and $v \in \{u, N + \mathcal{P}(u)\}$ , or (ii) $u \in \mathcal{V}^p$ and $v \in \mathcal{P}^{-1}(u - N)$ . The functions $\mathcal{P}(\cdot)$ and $\mathcal{P}^{-1}(\cdot)$ denote the partition and reverse-partition function defined in Section 3.1. This formulation restricts attention to node-cluster pairs within the same partition. The feature of each virtual node in $\mathcal{V}^p$ is computed by averaging the features of the real nodes in its corresponding cluster. Compared to $\mathbf{M}^{c3}$ , the proposed $\mathbf{M}^{c4}$ significantly reduces the + +non-zero ratio from $\frac{1}{P}$ to $\frac{3N}{(N + P)^2}$ since $P\ll N$ , making it more efficient. Moreover, as demonstrated in Proposition 4.1, the interactions captured by $\mathbf{M}^{c3}$ can be effectively approximated using $\mathbf{M}^{c4}$ . + +Proposition 4.1. Cluster interactions modeled by a single Graph Transformer layer using $\mathbf{M}^{c3}$ can be equivalently modeled by two consecutive layers using $\mathbf{M}^{c4}$ . + +The proof is given in Appendix A.4. Although this requires an additional layer, the reduction in sparsity still leads to substantial computational savings by our dual attention computation scheme. + +Global mask design: We introduce a new global mask $\mathbf{M}^{g^3}$ , which extends $\mathbf{M}^{g^2}$ by explicitly incorporating label semantics. Specifically, we add $|\mathcal{V}|$ global virtual nodes, indexed as $\mathcal{V}^g = \{N + P + i : 0 \leq i < |\mathcal{V}|\}$ , each associated with a distinct class label. The mask $\mathbf{M}_{u,v}^{g^3}$ is set to 1 if either: (i) $u \in \mathcal{V}$ and $v \in \mathcal{V}^g$ , or (ii) $u \in \mathcal{V}^g$ and $v \in \{t \in \mathcal{V}_{\mathrm{train}} : \mathbf{y}_t = \mathbf{y}_u\}$ . This structure enables each real node to attend to all global nodes, while each global node aggregates information only from training nodes with a specific label. Similar to $\mathcal{V}^p$ , the features of nodes in $\mathcal{V}^g$ are obtained by averaging the features of training nodes with the corresponding label. Let $g_c$ denote the global virtual node for class $c$ , and $n_c$ be the number of training nodes with label $c$ . By Equation 2, the updated representation satisfies: $\hat{\boldsymbol{z}}_{g_c} \sim \mathcal{N}(\boldsymbol{\mu}_c, \frac{\sigma^2}{n_c} \mathbf{I})$ , since $\rho_c = 1$ , $\rho_{c'} = 0$ for $c' \neq c$ , and $\alpha_i = \frac{1}{n_c}$ . The reduced variance $\frac{\sigma^2}{n_c}$ indicates that it is more concentrated around the class mean. According to Theorem 3.1, this leads to improved bounds for the probability of correct classification. + +# 4.3 Bi-level attention expert routing mechanism + +To adaptively integrate information from different interaction levels, we propose the bi-level attention expert routing mechanism—the core component of $\mathbf{M}^3$ Dphormer. Each expert corresponds to an MHA module equipped with a specific attention mask. Motivated by the observation in Table 1 that the local mask yields the best performance in most cases, we prioritize the local expert at the first routing level. The second level then refines the selection among the cluster and global experts. The bi-level routing mechanism is formally defined as: + +$$ +\operatorname {B i M o E} (\mathbf {H}, \boldsymbol {\mathcal {M}}) = \mathbf {g} _ {1} \cdot \operatorname {M H A} ^ {D} (\mathbf {H}, \mathbf {M} ^ {l 2}) + \mathbf {g} _ {2} \cdot \operatorname {M H A} ^ {D} (\mathbf {H}, \mathbf {M} ^ {c 4}) + \mathbf {g} _ {3} \cdot \operatorname {M H A} ^ {D} (\mathbf {H}, \mathbf {M} ^ {g 3}) +$$ + +$$ +\mathbf {g} _ {1} = \boldsymbol {\beta} _ {1}, \quad \mathbf {g} _ {2} = (1 - \boldsymbol {\beta} _ {1}) \cdot \boldsymbol {\beta} _ {2}, \quad \mathbf {g} _ {3} = (1 - \boldsymbol {\beta} _ {1}) \cdot (1 - \boldsymbol {\beta} _ {2}) \tag {5} +$$ + +$$ +\beta_ {1} = \operatorname {S i g m o i d} \left(\mathbf {H W} _ {G} ^ {1}\right), \quad \beta_ {2} = \operatorname {S i g m o i d} \left(\mathbf {H W} _ {G} ^ {2}\right) +$$ + +Here, $\mathcal{M}$ denotes the hierarchical mask set. $\mathrm{MHA}^D (\cdot ,\cdot)$ denotes our proposed dual attention computation scheme. $\mathbf{W}_G^1,\mathbf{W}_G^2\in \mathbb{R}^{d\times 1}$ are learnable gating parameters for the first- and secondlevel expert selection. The sigmoid function constrains the gating values $\beta_{1}$ and $\beta_{2}$ within [0, 1]. To emphasize the empirical importance of local interactions, both $\mathbf{W}_G^1$ and $\mathbf{W}_G^2$ are initialized as zero vectors, yielding initial routing weights of [0.5, 0.25, 0.25] for each node, which prioritizes local attention in the early training stage. Inspired by the observation in Table 1 that all interaction levels contribute significantly to the classification, we aggregate outputs from all experts using the learned routing weights $\mathbf{g}_1,\mathbf{g}_2$ ,and $\mathbf{g}_3$ , without applying top- $k$ selection. + +# 4.4 Dual attention computation scheme + +Finally, we introduce the dual attention computation scheme to enhance computational efficiency. While the irregularity of graph masks hinders the application of efficient attention variants[8, 9, 39], their inherent sparsity enables a new optimization route—sparse attention computation[34]. Unlike standard dense attention (Equation 1), which constructs the full attention matrix $\hat{\mathbf{A}}$ before applying the binary mask $\mathbf{M}$ , sparse attention computes attention scores only for valid node pairs $(u,v)$ where $\mathbf{M}_{u,v} = 1$ . A detailed analysis of the sparse attention implementation in Algorithm 2 reveals a space complexity of $O(6mHd_h)$ , where $m$ is the number of non-zero entries in $\mathbf{M}$ , $H$ is the number of attention heads, and $d_h$ is hidden dimension of each head. Although this method significantly reduces the complexity from $O(N^2)$ to $O(m)$ , the constant factor $6Hd_h$ remains non-negligible in practice. + +To further improve efficiency, we propose a dual attention computation scheme that dynamically switches between dense and sparse computation based on the local sparsity of the attention mask. Specifically, we partition the attention mask $\mathbf{M}$ into $K$ disjoint regions $\mathcal{R} = \{\mathcal{R}_i\}_{i=1}^K$ , each $\mathcal{R}_i$ is defined by a query set $\mathcal{Q}_i$ and the corresponding key set $\mathcal{K}_i = \cup_{u \in \mathcal{Q}_i} \{v : \mathbf{M}_{u,v} = 1\}$ . For each region, the optimal computation mode is selected according to Proposition 4.2. + +Table 2: Node classification results $\left( {\% }_{\pm \sigma }\right)$ . ROC-AUC for Minesweeper; accuracy for the rest. + +
ModelsDatasets
CoraCiteseerPubmedComputerPhotoSquirrelChameleonMinesweeperArxiv
GCN86.53±1.6175.97±1.9388.51±0.2889.83±0.6493.07±0.4842.19±2.1042.87±2.7893.47±0.4772.55±0.21
GAT86.53±1.2774.31±1.2587.42±0.4390.45±0.8793.79±0.2836.59±1.8841.52±4.7893.25±0.4272.10±0.33
SAGE87.62±1.7374.79±1.5989.20±0.5390.14±0.7394.27±0.6436.16±1.4642.06±3.0193.64±0.3972.32±0.13
GCN*87.74±1.6676.83±1.9489.48±0.5691.70±0.5395.10±0.6042.59±2.1443.77±2.4797.39±0.3073.18±0.21
GAT*87.59±1.3376.42±1.8189.12±0.4791.70±0.7395.73±0.6338.38±1.2542.69±5.1197.35±1.1272.67±0.14
SAGE*87.71±1.9175.99±1.2189.49±0.2991.52±0.6095.37±0.8939.28±2.9043.23±2.7897.39±0.8072.75±0.14
GPRGNN88.21±1.2977.02±1.8188.49±0.4490.70±0.5394.80±0.3736.80±1.7141.26±4.2289.05±0.4368.44±0.21
FAGCN88.36±1.5076.78±1.2989.31±0.5890.07±0.7295.23±0.3840.90±2.0442.78±3.5189.95±0.6266.83±0.20
NAGphormer87.68±1.8076.21±2.7289.35±0.2091.22±0.6595.12±0.3638.67±1.4741.61±2.6490.08±0.4671.38±0.20
Exphormer87.03±1.7076.18±1.5088.55±0.4790.76±0.8095.19±0.4937.20±2.5640.27±1.6395.32±0.9372.24±0.21
SGFormer87.86±1.1275.85±2.0488.75±0.4191.52±0.6895.10±0.3238.60±0.9543.77±3.0291.59±0.2872.44±0.28
CoBFormer88.15±1.4777.05±1.6988.50±0.5991.64±0.4195.58±0.5539.03±1.3543.50±1.3595.63±0.5273.17±0.18
PolyNormer87.83±1.9476.93±2.1689.48±0.4391.85±0.5795.44±0.7139.32±1.4544.30±2.0496.98±0.4673.27±0.38
Mowst87.92±1.1776.52±1.4188.71±0.2591.32±0.5093.70±0.3241.72±2.3344.30±2.5793.00±0.6873.03±0.29
GCN-MoE86.17±1.1175.20±1.7088.80±0.2488.75±0.5893.19±0.3243.02±2.1444.57±2.0092.63±0.4073.16±0.21
M3Dphormer88.48±1.9477.53±1.5689.96±0.4992.09±0.4695.91±0.6844.34±1.9447.09±4.0598.27±0.2073.54±0.30
+ +Proposition 4.2. Let $\kappa_{\mathcal{R}_i}$ denote the non-zero rate within region $\mathcal{R}_i$ . The sparse attention scheme is more efficient than the dense scheme when $\kappa_{R_i} < \frac{1}{3d_h}$ . + +The proof is provided in Appendix A.5. This result guides the selection of sparse computation when local sparsity is high and dense computation when the region becomes sufficiently dense. Based on this guidance, we formulate the dual attention computation scheme as: + +$$ +\mathrm {M H A} ^ {D} (\mathbf {H}, \mathbf {M}) = \operatorname {C o m b} _ {i} ^ {K} \left(\operatorname {S e l e c t M o d e} \left(\mathcal {R} _ {i}\right) \left(\mathbf {H}, \mathcal {R} _ {i}\right)\right) \tag {6} +$$ + +Here, $\operatorname{SelectMode}(\mathcal{R}_i)$ denotes the selection between sparse and dense computation modes for region $\mathcal{R}_i$ , and $\operatorname{Comb}_i^K (\cdot)$ aggregates the attention outputs from all $K$ partitioned regions. + +# 5 Experiments + +Experiment setups. We evaluate $\mathbf{M}^3$ Dphormer on nine datasets, including six homophilic graphs (Cora, CiteSeer, Pubmed [45], Computer, Photo [33], and Ogbn-Arxiv [19]) and three heterophilic graphs (Squirrel, Chameleon, and Minesweeper [31]). Dataset statistics and splitting protocols are detailed in Appendix D. We select 15 baselines spanning five categories: 1) Classic GNNs: GCN [23], GAT [38], and GraphSAGE [16]. 2) Enhanced Classic GNNs: GCN*, GAT*, and SAGE*. 3) Advanced GNNs: GPRGNN[7] and FAGCN [3]. 4) SOTA Graph Transformers: NAGphormer [5], Exphormer [34], SGFormer [43], CoBformer [44], and PolyNormer [11]; 5) MoE-based GNNs: Mowst [47] and GCN-MoE [40]. Descriptions of the baselines are provided in Appendix E, and implementation details can be found in Appendix F. + +Node classification results. Table 2 presents the node classification results. Key observations include: 1) $\mathbf{M}^3$ Dphormer consistently outperforms all baselines across 9 datasets, highlighting its superior interaction modeling capacity. 2) Compared to traditional and MoE-based GNNs, $\mathbf{M}^3$ Dphormer demonstrates clear advantages by comprehensively capturing hierarchical interactions. 3) Compared to GT baselines, $\mathbf{M}^3$ Dphormer shows notable improvements, verifying both the benefit of comprehensive interaction modeling and the effectiveness of the bi-level attention expert routing mechanism in adaptively integrating multi-level information. + +Ablation studies. We perform ablation studies to evaluate $\mathbf{M}^3$ Dphormer in terms of effectiveness and efficiency. Firstly, we construct five ablated variants by: 1) Removing individual experts; 2) Disabling + +Table 3: Node classification results of various ${\mathrm{M}}^{3}$ Dphormer variants + +
CoraCiteseerPubmedComputerPhotoSquirrelChameleonMinesweeperOgbn-Arxiv
Full Model88.48±1.9477.53±1.5689.96±0.4992.09±0.4695.91±0.6844.34±1.9447.09±4.0598.27±0.2073.54±0.30
W/O Local82.84±2.1574.09±1.4688.75±0.4888.99±0.9493.83±0.4439.61±1.5142.60±4.4157.55±0.7867.24±0.23
W/O Cluster87.83±1.8376.73±2.0089.69±0.4691.59±0.7095.22±0.5342.48±2.1344.93±3.2198.03±0.4173.40±0.23
W/O Global87.95±2.0376.33±1.8489.76±0.3491.89±0.5095.62±0.5941.58±1.6045.47±5.0498.02±0.2473.41±0.11
W/O Route87.65±2.3976.25±0.9189.48±0.4691.76±0.7195.59±0.8742.05±1.2143.95±1.9897.72±0.1773.31±0.19
W/O Bi-Level87.74±2.2177.12±1.5989.79±0.2591.68±0.3795.70±0.5042.41±1.9644.39±4.4497.84±0.3473.50±0.17
+ +![](images/644a34f3eb751252d7aee2465f97d965e0216b12cb76485ed7f25953f410324e.jpg) +Memory Usage Across Datasets with Different Computation Schemes +Figure 3: Memory usage of different schemes. + +the attention expert routing mechanism; 3) Replacing the bi-level attention routing mechanism with a single-level gating scheme. Results in Table 3 show that: 1) Removing any individual expert consistently degrades performance, underscoring the necessity of comprehensively modeling hierarchical interactions. 2) Disabling the routing mechanism leads to substantial degradation, suggesting that simple aggregation is insufficient for effectively integrating multi-level interactions. 3) The performance gap between the single-level routing variant and $\mathbf{M}^3\mathrm{D}$ phormer demonstrates the advantage of the proposed bi-level attention expert routing mechanism. Then, we report the GPU memory usage of $\mathbf{M}^3\mathrm{D}$ phormer and its two variants employing sparse and dense computation schemes in Figure 3. As shown, the dense scheme incurs the highest memory consumption and leads to out-of-memory (OOM) errors on four datasets. While the sparse scheme substantially reduces memory usage, it still fails to run on Ogbn-Arxiv. In contrast, our dual attention scheme achieves superior memory efficiency and successfully scales to all evaluated graphs. + +![](images/67e12692ca5859a6d40e1b24f38504cb733631039682c59780f26155dc7e5f88.jpg) + +![](images/cbc5ab2e305beaf66e2dc27eeec505316b879b209b0fe8bb8c97c0ee8860af6d.jpg) + +![](images/841c57a31fac9a891e9b0b63c351b6189797f306daa6d65e7c526f4d08835434.jpg) + +![](images/96d6da9fc0263e211438c20e6f0dbbffc0a458a28f19b0f41867426c88bee47e.jpg) + +![](images/185cc5bb16ece497f6d22b7d7975509261b874d26b784ea603a9bbb9d53dbde1.jpg) + +![](images/a1e9b2887306ba8900199caa9ef993298cb9ca2145398922aebe5310175bb9ec.jpg) +Figure 4: Test accuracy vs. $P$ + +![](images/064e03da5242ffc5d33adceddc3dfd1495aaf179226042081e1d3d32c49df104.jpg) + +![](images/178c48012bc9d3f289ef71fe03aea9ecb8cd0d2dc31182638b046b9ecc55ae30.jpg) + +Parameter analysis. The only key hyperparameter in $\mathbf{M}^3\mathrm{D}$ phormer is the number of clusters $P$ which affects the quality of the cluster mask $\mathbf{M}^{c4}$ . For each dataset, we select an appropriate range of $P$ values according to its size. Figure 4 presents the model's performance under varying $P$ . Overall, $\mathbf{M}^3\mathrm{D}$ phormer demonstrates strong robustness to the choice of $P$ on most datasets. An exception is Chameleon—a small graph with only 890 nodes—where variations in $P$ substantially impact the quality of partitioning, resulting in more significant performance fluctuations. + +Visualization. We plot the accuracy and loss curves of $\mathrm{M}^3\mathrm{D}$ phormer and GCN*[23, 26] in Figure 5. Across the training, validation, and test sets, $\mathrm{M}^3\mathrm{D}$ phormer consistently achieves faster convergence and higher accuracy than GCN* during the training process, demonstrating the effectiveness of our method. A similar trend is also observed in the comparison with PolyNormer [11] in Appendix G.4. A visualization of the learned gate weights is provided in Appendix G.5. + +![](images/0a596c3f0af9deb518a8c8e3cf40ee1fe5f7aa768c1a25f2bf4ce6eee7dde95e.jpg) +Figure 5: Comparison of accuracy and loss curves between $\mathbf{M}^3$ DFormer and GCN* on Ogbn-Arxiv. + +![](images/17159e6eaaaece665d051f3bb1eb3b3e8de8e29c78549ff8210c14fcd599cce0.jpg) + +# 6 Related Work + +Graph neural networks. Classic GNNs, such as GCN [23], SAGE [16], and GAT [38], rely on message-passing mechanisms that recursively aggregate information from local neighbors at each layer. To move beyond the widely adopted homophily assumption—that nodes of the same class are more likely to be connected [28]—advanced GNNs such as GPRGNN [7] and FAGCN [3] have been proposed to improve performance on heterophilic graphs. More recently, a benchmark study demonstrated that carefully tuning the hyperparameters of classic GNNs and enhancing them with advanced training techniques—such as residual connections [17] and normalization methods [48, 2, 21]—can lead to substantial improvements in node classification performance. While GNNs have proven effective in many scenarios, they still suffer from a fundamental limitation: message passing primarily captures local interactions, often neglecting informative signals from broader, long-range dependencies. + +Graph transformers. Recently, Graph Transformers have emerged as a promising paradigm for graph representation learning. By leveraging the multi-head self-attention mechanism originally introduced in Transformer [37], they aim to adaptively model diverse and complex interactions from a broader perspective. A primary line of research treats the entire graph as fully connected and computes attention scores between all node pairs [46, 32, 43, 11]. However, a recent study has revealed the over-globalizing problem in such methods, which may lead to a significant decrease in performance [44]. Another line of work constructs a token sequence for each node based on the graph structure and feeds these sequences into a Transformer to learn node representations [49, 5, 15, 6, 41]. These methods often rely on expert-designed tokenization strategies, which tend to capture local information while overlooking larger-scale interactions. In addition, several recent approaches focus on modeling cluster-level interactions, which have shown promising results in capturing mid-level structural patterns for graph representation learning [18, 20, 44]. + +# 7 Conclusion + +In this paper, we propose a unified hierarchical mask framework for Graph Transformers. A fundamental design principle and two core challenges are identified under this framework. We then introduce M $^3$ Dphormer, a novel Mixture-of-Experts based Graph Transformer with Multi-Level Masking and Dual Attention Computation, designed to efficiently, comprehensively and adaptively capture hierarchical interactions. Extensive experiments demonstrate its effectiveness. + +Limitations and broader impacts. In this paper, we focus our theoretical and empirical analyses on the node classification task under the proposed unified hierarchical mask framework, as it is a fundamental and extensively studied problem in the graph learning community. Extending our theoretical insights to graph-level and edge-level tasks represents a promising direction for future work. Apart from this, we do not expect any direct negative societal impacts. + +# Acknowledgments and Disclosure of Funding + +This work is supported in part by the National Natural Science Foundation of China (No. U20B2045, 62322203, 62172052, 62192784, U22B2038). + +# References + +[1] Abien Fred Agarap. Deep learning using rectified linear units (relu). arXiv preprint arXiv:1803.08375, 2018. +[2] Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. +[3] Deyu Bo, Xiao Wang, Chuan Shi, and Huawei Shen. Beyond low-frequency information in graph convolutional networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 3950-3957, 2021. +[4] Shaked Brody, Uri Alon, and Eran Yahav. How attentive are graph attention networks? arXiv preprint arXiv:2105.14491, 2021. +[5] Jinsong Chen, Kaiyuan Gao, Gaichao Li, and Kun He. Nagphormer: A tokenized graph transformer for node classification in large graphs. In The Eleventh International Conference on Learning Representations, 2022. +[6] Jinsong Chen, Hanpeng Liu, John Hopcroft, and Kun He. Leveraging contrastive learning for enhanced node representations in tokenized graph transformers. Advances in Neural Information Processing Systems, 37:85824-85845, 2024. +[7] Eli Chien, Jianhao Peng, Pan Li, and Olgica Milenkovic. Adaptive universal generalized pagerank graph neural network. In International Conference on Learning Representations, 2021. +[8] Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, et al. Rethinking attention with performers. arXiv preprint arXiv:2009.14794, 2020. +[9] Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in neural information processing systems, 35:16344-16359, 2022. +[10] Andreea Deac, Marc Lackenby, and Petar Velicković. Expander graph propagation. In Learning on Graphs Conference, pages 38-1. PMLR, 2022. +[11] Chenhui Deng, Zichao Yue, and Zhiru Zhang. Polynormer: Polynomial-expressive graph transformer in linear time. In The Twelfth International Conference on Learning Representations, 2024. +[12] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. +[13] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021. +[14] Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with pytorch geometric. arXiv preprint arXiv:1903.02428, 2019. +[15] Dongqi Fu, Zhigang Hua, Yan Xie, Jin Fang, Si Zhang, Kaan Sancak, Hao Wu, Andrey Malevich, Jingrui He, and Bo Long. Vcr-graphormer: A mini-batch graph transformer via virtual connections. In The Twelfth International Conference on Learning Representations, 2024. +[16] Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. Advances in neural information processing systems, 30, 2017. +[17] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. +[18] Xiaoxin He, Bryan Hooi, Thomas Laurent, Adam Perold, Yann LeCun, and Xavier Bresson. A generalization of vit/mlp-mixer to graphs. In International conference on machine learning, pages 12724-12745. PMLR, 2023. + +[19] Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. Advances in neural information processing systems, 33:22118-22133, 2020. +[20] Siyuan Huang, Yunchong Song, Jiayue Zhou, and Zhouhan Lin. Cluster-wise graph transformer with dual-granularity kernelized attention. Advances in Neural Information Processing Systems, 37:33376-33401, 2024. +[21] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International conference on machine learning, pages 448-456. pmlr, 2015. +[22] George Karypis and Vipin Kumar. A fast and high quality multilevel scheme for partitioning irregular graphs. SIAM Journal on scientific Computing, 20(1):359-392, 1998. +[23] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations, 2017. +[24] Kezhi Kong, Jiuhai Chen, John Kirchenbauer, Renkun Ni, C Bayan Bruss, and Tom Goldstein. Goat: A global transformer on large-scale graphs. In International Conference on Machine Learning, pages 17375-17390. PMLR, 2023. +[25] Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper insights into graph convolutional networks for semi-supervised learning. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018. +[26] Yuankai Luo, Lei Shi, and Xiao-Ming Wu. Classic gnns are strong baselines: Reassessing gnns for node classification. arXiv preprint arXiv:2406.08993, 2024. +[27] Yuankai Luo, Lei Shi, and Xiao-Ming Wu. Can classic gnu's be strong baselines for graph-level tasks? simple architectures meet excellence. In Forty-second International Conference on Machine Learning, 2025. +[28] Miller McPherson, Lynn Smith-Lovin, and James M Cook. Birds of a feather: Homophily in social networks. Annual review of sociology, 27:415-444, 2001. +[29] Hoang Nt and Takanori Maehara. Revisiting graph neural networks: All we have is low-pass filters. arXiv preprint arXiv:1905.09550, 2019. +[30] Kenta Oono and Taiji Suzuki. Graph neural networks exponentially lose expressive power for node classification. In International Conference on Learning Representations, 2020. +[31] Oleg Platonov, Denis Kuznedev, Michael Diskin, Artem Babenko, and Liudmila Prokhorenkova. A critical look at the evaluation of gnns under heterophily: Are we really making progress? In The Eleventh International Conference on Learning Representations, 2023. +[32] Ladislav Rampášek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu, Guy Wolf, and Dominique Beaini. Recipe for a general, powerful, scalable graph transformer. Advances in Neural Information Processing Systems, 35:14501-14515, 2022. +[33] Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Gunnemann. Pitfalls of graph neural network evaluation. arXiv preprint arXiv:1811.05868, 2018. +[34] Hamed Shirzad, Ameya Velingker, Balaji Venkatachalam, Danica J Sutherland, and Ali Kemal Sinop. Exphormer: Sparse transformers for graphs. In International Conference on Machine Learning, pages 31613-31632. PMLR, 2023. +[35] Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing, 568:127063, 2024. +[36] Jake Topping, Francesco Di Giovanni, Benjamin Paul Chamberlain, Xiaowen Dong, and Michael M Bronstein. Understanding over-squashing and bottlenecks on graphs via curvature. arXiv preprint arXiv:2111.14522, 2021. +[37] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. +[38] Petar Velicković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. In International Conference on Learning Representations, 2018. + +[39] Guoxia Wang, Jinle Zeng, Xiyuan Xiao, Siming Wu, Jiabin Yang, Lujing Zheng, Zeyu Chen, Jiang Bian, Dianhai Yu, and Haifeng Wang. Flashmask: Efficient and rich mask extension of flashattention. arXiv preprint arXiv:2410.01359, 2024. +[40] Haotao Wang, Ziyu Jiang, Yuning You, Yan Han, Gaowen Liu, Jayanth Srinivasa, Ramana Kompella, Zhangyang Wang, et al. Graph mixture of experts: Learning on large-scale graphs with explicit diversity modeling. Advances in Neural Information Processing Systems, 36:50825-50837, 2023. +[41] Limei Wang, Kaveh Hassani, Si Zhang, Dongqi Fu, Baichuan Yuan, Weilin Cong, Zhigang Hua, Hao Wu, Ning Yao, and Bo Long. Learning graph quantized tokenizers for transformers. arXiv preprint arXiv:2410.13798, 2024. +[42] Qitian Wu, Wentao Zhao, Zenan Li, David P Wipf, and Junchi Yan. Nodeformer: A scalable graph structure learning transformer for node classification. Advances in Neural Information Processing Systems, 35:27387-27401, 2022. +[43] Qitian Wu, Wentao Zhao, Chenxiao Yang, Hengrui Zhang, Fan Nie, Haitian Jiang, Yatao Bian, and Junchi Yan. Simplifying and empowering transformers for large-graph representations. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. +[44] Yujie Xing, Xiao Wang, Yibo Li, Hai Huang, and Chuan Shi. Less is more: on the over-globalizing problem in graph transformers. In International Conference on Machine Learning, pages 54656-54672. PMLR, 2024. +[45] Zhilin Yang, William Cohen, and Ruslan Salakhudinov. Revisiting semi-supervised learning with graph embeddings. In International conference on machine learning, pages 40-48. PMLR, 2016. +[46] Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng, Guolin Ke, Di He, Yanming Shen, and Tie-Yan Liu. Do transformers really perform badly for graph representation? Advances in Neural Information Processing Systems, 34:28877-28888, 2021. +[47] Hanqing Zeng, Hanjia Lyu, Diyi Hu, Yinglong Xia, and Jiebo Luo. Mixture of weak and strong experts on graphs. In The Twelfth International Conference on Learning Representations, 2024. +[48] Biao Zhang and Rico Sennrich. Root mean square layer normalization. Advances in Neural Information Processing Systems, 32, 2019. +[49] Wenhao Zhu, Tianyu Wen, Guojie Song, Xiaojun Ma, and Liang Wang. Hierarchical transformer for scalable graph learning. In Edith Elkind, editor, Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI-23, pages 4702-4710. International Joint Conferences on Artificial Intelligence Organization, 8 2023. Main Track. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: In the abstract and introduction, we highlight that existing Graph Transformers can be unified under a hierarchical masking framework, which simplifies model design to the construction of appropriate masks and offers a principled foundation grounded in theoretical analysis. Building on this framework, we further propose a novel Graph Transformer that achieves state-of-the-art performance on node classification tasks. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: In Section 7. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: We provide full assumptions in Section 3.2 and proofs in Appendix A. + +Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: In Section 5 and Appendix F. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example + +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: The access details of the datasets are provided in Appendix D, and the GitHub repositories of baselines are listed in Appendix F. Partial implementation of our method is included in the supplemental materials. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: In Section 5, Appendix D and Appendix F. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [Yes] + +Justification: The mean and standard deviation across five independent runs with different seeds are reported. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. + +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: In Appendix F. All experiments are conducted on a single NVIDIA GPU with 24 GB memory. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: I have reviewed the NeurIPS Code of Ethics and believe that the research presented in this paper fully complies with it in all respects. + +Guidelines: + +The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: In Section 7. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. + +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: The paper poses no such risks. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [No] + +Justification: We have cited the original papers in Section 5, Appendix E and provided URLs of the baselines in Appendix F. However, we were unable to locate the license information for the assets used. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. + +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: The paper does not release new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. + +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: The core method development in this research does not involve LLMs as any important, original, or non-standard components + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# A Theorem Proofs + +We begin by decomposing Theorem 3.1 into two theorems and one proposition, and then prove them individually. + +Theorem A.1. The updated representation of node $u$ follows a Gaussian distribution: + +$$ +\hat {z} _ {u} \sim \mathcal {N} \left(\sum_ {i = 1} ^ {| \mathcal {C} |} k \rho_ {i} \alpha_ {i} \boldsymbol {\mu} _ {i}, \sum_ {i = 1} ^ {| \mathcal {C} |} k \rho_ {i} \alpha_ {i} ^ {2} \sigma_ {i} ^ {2} \mathbf {I}\right) \tag {7} +$$ + +Accordingly, the probability that node $u$ is correctly classified by a similarity-based classifier is: + +$$ +P \left(\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \geq \delta_ {c}\right) = 1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {\sum_ {i = 1} ^ {| C |} k \rho_ {i} \alpha_ {i} ^ {2} \sigma_ {i} ^ {2}}}\right) \tag {8} +$$ + +where $\Phi (\cdot)$ denotes the cumulative distribution function (CDF) of the standard normal distribution. + +Theorem A.2. Assuming the classifier is well trained, i.e., $\delta_c - k\rho_c\alpha_c \leq 0$ , and the attention weights satisfy $0 \leq \alpha_{c'} \leq \frac{1}{k} \leq \alpha_c \leq \frac{1}{k\rho_c}$ , then the classification probability is bounded as: + +$$ +1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2} + \frac {1 - \rho_ {c}}{k} \cdot \sigma_ {m} ^ {2}}}\right) \leq P (\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \geq \delta_ {c}) \leq 1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2}}}\right), \tag {9} +$$ + +where $\sigma_{m}^{2} = \max_{c^{\prime}\neq c}\sigma_{c^{\prime}}^{2}$ is the largest representation variance among non-target classes. + +Proposition A.3. In Equation 9, both the lower and upper bounds are monotonically increasing with respect to $k$ , $\rho_c$ , and $\alpha_c$ , and decreasing with respect to the set of variances $\{\sigma_i:1\leq i\leq |\mathcal{Y}|\}$ . + +# A.1 Proof of Theorem A.1 + +Proof. Let node $u$ have ground-truth label $c$ , and denote its receptive field by the mask vector $\mathbf{M}_{u,:}$ which includes $k$ nodes in total. Let $\rho_{i}$ be the proportion of class- $i$ nodes in the receptive field, and let $\alpha_{i}$ denote the average attention weight assigned to these nodes. + +The updated representation of node $u$ is given by: + +$$ +\hat {\boldsymbol {z}} _ {u} = \sum_ {i = 1} ^ {k} \alpha_ {i} \boldsymbol {z} _ {i} \tag {10} +$$ + +Each node representation $z_{i}$ with class label $c'$ is generated using the reparameterization trick: + +$$ +\boldsymbol {z} _ {i} ^ {(c ^ {\prime})} = \boldsymbol {\mu} _ {c ^ {\prime}} + \sigma_ {c ^ {\prime}} \cdot \boldsymbol {\xi} _ {i}, \quad \text {w h e r e} \boldsymbol {\xi} _ {i} \sim \mathcal {N} (\mathbf {0}, \mathbf {I}) \tag {11} +$$ + +Regrouping the neighbors by class, we rewrite the update as: + +$$ +\hat {\boldsymbol {z}} _ {u} = \sum_ {i = 1} ^ {| \mathcal {Y} |} \sum_ {j = 1} ^ {k \rho_ {i}} \alpha_ {i} \boldsymbol {z} _ {j} ^ {(i)} = \sum_ {i = 1} ^ {| \mathcal {Y} |} k \rho_ {i} \alpha_ {i} \boldsymbol {\mu} _ {i} + \sum_ {i = 1} ^ {| \mathcal {Y} |} \sigma_ {i} \alpha_ {i} \sum_ {j = 1} ^ {k \rho_ {i}} \boldsymbol {\xi} _ {j} \tag {12} +$$ + +Since the sum of i.i.d. standard Gaussian vectors satisfies: + +$$ +\sum_ {j = 1} ^ {k \rho_ {i}} \boldsymbol {\xi} _ {j} \sim \mathcal {N} (\mathbf {0}, k \rho_ {i} \mathbf {I}), \tag {13} +$$ + +we have: + +$$ +\sigma_ {i} \alpha_ {i} \sum_ {j = 1} ^ {k \rho_ {i}} \boldsymbol {\xi} _ {j} \sim \mathcal {N} (\mathbf {0}, \sigma_ {i} ^ {2} \alpha_ {i} ^ {2} k \rho_ {i} \mathbf {I}) \tag {14} +$$ + +Hence, the updated representation $\hat{z}_u$ follows a multivariate Gaussian distribution: + +$$ +\hat {z} _ {u} \sim \mathcal {N} \left(\sum_ {i = 1} ^ {| \mathcal {Y} |} k \rho_ {i} \alpha_ {i} \boldsymbol {\mu} _ {i}, \sum_ {i = 1} ^ {| \mathcal {Y} |} \sigma_ {i} ^ {2} \alpha_ {i} ^ {2} k \rho_ {i} \mathbf {I}\right) \tag {15} +$$ + +Define the total variance scalar: + +$$ +\zeta_ {u} := \sqrt {\sum_ {i = 1} ^ {| \mathcal {Y} |} \sigma_ {i} ^ {2} \alpha_ {i} ^ {2} k \rho_ {i}} \tag {16} +$$ + +Using the reparameterization trick again, we can rewrite $\hat{z}_u$ as: + +$$ +\hat {\boldsymbol {z}} _ {u} = \sum_ {i = 1} ^ {| \mathcal {Y} |} k \rho_ {i} \alpha_ {i} \boldsymbol {\mu} _ {i} + \zeta_ {u} \cdot \hat {\boldsymbol {\xi}}, \quad \text {w h e r e} \hat {\boldsymbol {\xi}} \sim \mathcal {N} (\mathbf {0}, \mathbf {I}) \tag {17} +$$ + +Now consider the inner product with the class prototype $\pmb{\mu}_{c}$ : + +$$ +\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} = \left(\sum_ {i = 1} ^ {| \mathcal {Y} |} k \rho_ {i} \alpha_ {i} \boldsymbol {\mu} _ {i}\right) ^ {\top} \boldsymbol {\mu} _ {c} + \left(\zeta_ {u} \cdot \hat {\boldsymbol {\xi}}\right) ^ {\top} \boldsymbol {\mu} _ {c} \tag {18} +$$ + +By orthogonality of class means $(\pmb{\mu}_i^\top \pmb{\mu}_c = 1$ if $i = c$ , and 0 otherwise), the first term simplifies to $k\rho_c\alpha_c$ . Since $\hat{\xi} \sim \mathcal{N}(\mathbf{0},\mathbf{I})$ , the second term becomes a linear combination of i.i.d. standard Gaussians: + +$$ +\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} = k \rho_ {c} \alpha_ {c} + \zeta_ {u} \sum_ {i = 1} ^ {d} \mu_ {c, i} \hat {\xi} _ {i}, \quad \hat {\xi} _ {i} \sim \mathcal {N} (0, 1) \tag {19} +$$ + +Because $\| \pmb{\mu}_c\| _2^2 = 1$ , the sum $\sum_{i = 1}^{d}\mu_{c,i}\hat{\xi}_i$ is distributed as $\mathcal{N}(0,1)$ . Thus: + +$$ +\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \sim \mathcal {N} \left(k \rho_ {c} \alpha_ {c}, \zeta_ {u} ^ {2}\right) \tag {20} +$$ + +To compute the classification probability, we consider a similarity-based classifier that predicts correctly if: + +$$ +\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \geq \delta_ {c} \tag {21} +$$ + +Since $\hat{z}_u^\top \mu_c$ is Gaussian distributed, we apply the cumulative distribution function of the normal distribution. For $X\sim \mathcal{N}(\mu ,\sigma^2)$ , we have: + +$$ +P (X \geq a) = 1 - \Phi \left(\frac {a - \mu}{\sigma}\right) \tag {22} +$$ + +Applying this to our case: + +$$ +P \left(\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \geq \delta_ {c}\right) = 1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\zeta_ {u}}\right) = 1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {\sum_ {i = 1} ^ {| \mathcal {Y} |} \sigma_ {i} ^ {2} \alpha_ {i} ^ {2} k \rho_ {i}}}\right) \tag {23} +$$ + +which concludes the proof. + +![](images/26d3cad09eb03d0afb4e2b8fa3be32a740460db2db5749f8dd8df257843f11b6.jpg) + +# A.2 Proof of Theorem A.2 + +Proof. From Theorem A.1, we know: + +$$ +\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \sim \mathcal {N} \left(k \rho_ {c} \alpha_ {c}, \sum_ {i = 1} ^ {| \mathcal {Y} |} k \rho_ {i} \alpha_ {i} ^ {2} \sigma_ {i} ^ {2}\right) \tag {24} +$$ + +and the classification probability is: + +$$ +P \left(\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \geq \delta_ {c}\right) = 1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {\sum_ {i = 1} ^ {| y |} k \rho_ {i} \alpha_ {i} ^ {2} \sigma_ {i} ^ {2}}}\right) \tag {25} +$$ + +Let us denote the variance as: + +$$ +\operatorname {V a r} := \sum_ {i = 1} ^ {| \mathcal {Y} |} k \rho_ {i} \alpha_ {i} ^ {2} \sigma_ {i} ^ {2} = k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2} + \sum_ {i \neq c} k \rho_ {i} \alpha_ {i} ^ {2} \sigma_ {i} ^ {2} \tag {26} +$$ + +Let $\sigma_{m}^{2} := \max_{i \neq c} \sigma_{i}^{2}$ . Since $\alpha_{i} \leq \frac{1}{k}$ for $i \neq c$ , we have $\alpha_{i}^{2} \leq \frac{1}{k^{2}}$ , and hence: + +$$ +\sum_ {i \neq c} k \rho_ {i} \alpha_ {i} ^ {2} \sigma_ {i} ^ {2} \leq \sum_ {i \neq c} k \rho_ {i} \cdot \frac {1}{k ^ {2}} \cdot \sigma_ {m} ^ {2} = \frac {\sigma_ {m} ^ {2}}{k} \sum_ {i \neq c} \rho_ {i} = \frac {1 - \rho_ {c}}{k} \cdot \sigma_ {m} ^ {2} \tag {27} +$$ + +Therefore: + +$$ +\operatorname {V a r} \leq k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2} + \frac {1 - \rho_ {c}}{k} \cdot \sigma_ {m} ^ {2} \tag {28} +$$ + +We now use the fact that the Gaussian CDF $\Phi(z)$ is strictly increasing. Under the assumption that $\delta_c - k\rho_c\alpha_c < 0$ , the numerator is negative. In this case, increasing the denominator (i.e., the variance) reduces the absolute value of $z$ , making $z$ less negative. As a result, $\Phi(z)$ increases, and the classification probability $1 - \Phi(z)$ decreases. + +This gives the lower bound: + +$$ +P \left(\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \geq \delta_ {c}\right) \geq 1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2} + \frac {1 - \rho_ {c}}{k} \cdot \sigma_ {m} ^ {2}}}\right) \tag {29} +$$ + +To obtain the upper bound, we lower bound the total variance by dropping the non-negative cross-class terms: + +$$ +\sum_ {i \neq c} k \rho_ {i} \alpha_ {i} ^ {2} \sigma_ {i} ^ {2} \geq 0 \tag {30} +$$ + +which leads to: + +$$ +\operatorname {V a r} \geq k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2} \tag {31} +$$ + +Since the CDF $\Phi(z)$ is increasing and the numerator is negative, a smaller denominator results in a more negative standardized score, and hence a larger classification probability $1 - \Phi(z)$ . Therefore, this yields the following upper bound: + +$$ +P \left(\hat {\boldsymbol {z}} _ {u} ^ {\top} \boldsymbol {\mu} _ {c} \geq \delta_ {c}\right) \leq 1 - \Phi \left(\frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2}}}\right) \tag {32} +$$ + +Combining both bounds gives the result. + +![](images/1ed12aab09d2fdda515120228e77acf940c02d8e4b63550561df9a63b245388d.jpg) + +# A.3 Proof of Proposition A.3 + +Proof. We analyze the monotonicity of both the upper and lower bounds in Equation 9 by taking partial derivatives of the normalized score with respect to each variable. Let the standardized score be denoted as $f(\cdot)$ . + +Upper bound: + +$$ +f _ {\mathrm {u p p e r}} (x) = \frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2}}} +$$ + +(1) With respect to $k$ : Let $C_1 = \delta_c$ , $C_2 = \rho_c\alpha_c$ , $C_3 = \rho_c\alpha_c^2\sigma_c^2$ . Then: + +$$ +f _ {\text {u p p e r}} (k) = \frac {C _ {1} - k C _ {2}}{\sqrt {k C _ {3}}}, \quad f _ {\text {u p p e r}} ^ {\prime} (k) = \frac {- k C _ {2} C _ {3} - C _ {1} C _ {3}}{2 \left(k C _ {3}\right) ^ {3 / 2}} < 0 \tag {33} +$$ + +(2) With respect to $\rho_c$ : Let $C_2 = k\alpha_c$ , $C_3 = k\alpha_c^2\sigma_c^2$ . Then: + +$$ +f _ {\text {u p p e r}} \left(\rho_ {c}\right) = \frac {C _ {1} - \rho_ {c} C _ {2}}{\sqrt {\rho_ {c} C _ {3}}}, \quad f _ {\text {u p p e r}} ^ {\prime} \left(\rho_ {c}\right) = \frac {- \rho_ {c} C _ {2} C _ {3} - C _ {1} C _ {3}}{2 \left(\rho_ {c} C _ {3}\right) ^ {3 / 2}} < 0 \tag {34} +$$ + +(3) With respect to $\alpha_{c}$ : Let $C_2 = k\rho_c$ , $C_3 = k\rho_c\sigma_c^2$ . Then: + +$$ +f _ {\text {u p p e r}} \left(\alpha_ {c}\right) = \frac {C _ {1} - C _ {2} \alpha_ {c}}{\alpha_ {c} \sqrt {C _ {3}}}, \quad f _ {\text {u p p e r}} ^ {\prime} \left(\alpha_ {c}\right) = \frac {- C _ {1}}{\alpha_ {c} ^ {2} \sqrt {C _ {3}}} < 0 \tag {35} +$$ + +Lower bound: + +$$ +f _ {\mathrm {l o w e r}} (x) = \frac {\delta_ {c} - k \rho_ {c} \alpha_ {c}}{\sqrt {k \rho_ {c} \alpha_ {c} ^ {2} \sigma_ {c} ^ {2} + \frac {1 - \rho_ {c}}{k} \sigma_ {m} ^ {2}}} +$$ + +(1) With respect to $k$ : + +Let $C_1 = \delta_c$ , $C_2 = \rho_c\alpha_c$ , $C_3 = \rho_c\alpha_c^2\sigma_c^2$ , and $C_4 = (1 - \rho_c)\sigma_m^2$ . Then the lower bound becomes: + +$$ +f _ {\text {l o w e r}} (k) = \frac {C _ {1} - k C _ {2}}{\sqrt {k C _ {3} + \frac {C _ {4}}{k}}} \tag {36} +$$ + +Let $D(k) = \sqrt{kC_3 + \frac{C_4}{k}}$ . Then, using the quotient and chain rule, we obtain: + +$$ +f _ {\text {l o w e r}} ^ {\prime} (k) = \frac {- 2 C _ {2} D ^ {2} (k) - \left(C _ {3} - \frac {C _ {4}}{k ^ {2}}\right) \left(C _ {1} - k C _ {2}\right)}{2 D ^ {3} (k)} \tag {37} +$$ + +Now we simplify the numerator: + +$$ +\begin{array}{l} - 2 C _ {2} D ^ {2} (k) - \left(C _ {3} - \frac {C _ {4}}{k ^ {2}}\right) \left(C _ {1} - k C _ {2}\right) \\ = - 2 C _ {2} \left(k C _ {3} + \frac {C _ {4}}{k}\right) - \left(C _ {3} - \frac {C _ {4}}{k ^ {2}}\right) \left(C _ {1} - k C _ {2}\right) \\ = - k C _ {2} C _ {3} - \frac {3 C _ {2} C _ {4}}{k} - C _ {1} C _ {3} + \frac {C _ {1} C _ {4}}{k} \\ = - k C _ {2} C _ {3} - C _ {1} C _ {3} + \frac {C _ {4} \left(C _ {1} - 3 k C _ {2}\right)}{k} \tag {38} \\ \end{array} +$$ + +Under the assumption that the classifier is well-trained, we have: + +$$ +C _ {1} - 3 k C _ {2} = \delta_ {c} - 3 k \rho_ {c} \alpha_ {c} < \delta_ {c} - k \rho_ {c} \alpha_ {c} < 0 +$$ + +Hence, each term in Equation (38) is negative, and the overall numerator is negative. Since the denominator $2D^3(k) > 0$ , we conclude: + +$$ +f _ {\text {l o w e r}} ^ {\prime} (k) < 0 \tag {39} +$$ + +which means the normalized score decreases with $k$ , and thus the classification probability increases. + +(2) With respect to $\rho_c$ : + +Let $C_1 = \delta_c$ , $C_2 = k\alpha_c$ , $C_3 = k\alpha_c^2\sigma_c^2$ , and $C_4 = \sigma_m^2$ . Then the lower bound becomes: + +$$ +f _ {\text {l o w e r}} \left(\rho_ {c}\right) = \frac {C _ {1} - C _ {2} \rho_ {c}}{\sqrt {C _ {3} \rho_ {c} + \frac {C _ {4} \left(1 - \rho_ {c}\right)}{k}}} \tag {40} +$$ + +Let $D(\rho_c) \coloneqq \sqrt{C_3\rho_c + \frac{C_4(1 - \rho_c)}{k}}$ . Then using the chain rule, the derivative is: + +$$ +f _ {\text {l o w e r}} ^ {\prime} \left(\rho_ {c}\right) = \frac {- 2 C _ {2} D ^ {2} \left(\rho_ {c}\right) - \left(C _ {3} - \frac {C _ {4}}{k}\right) \left(C _ {1} - C _ {2} \rho_ {c}\right)}{2 D ^ {3} \left(\rho_ {c}\right)} \tag {41} +$$ + +We now simplify the numerator: + +$$ +\begin{array}{l} - 2 C _ {2} D ^ {2} \left(\rho_ {c}\right) - \left(C _ {3} - \frac {C _ {4}}{k}\right) \left(C _ {1} - C _ {2} \rho_ {c}\right) \\ = - 2 C _ {2} \left(C _ {3} \rho_ {c} + \frac {C _ {4} (1 - \rho_ {c})}{k}\right) - \left(C _ {3} - \frac {C _ {4}}{k}\right) \left(C _ {1} - C _ {2} \rho_ {c}\right) \\ = - 2 C _ {2} C _ {3} \rho_ {c} - \frac {2 C _ {2} C _ {4} (1 - \rho_ {c})}{k} - C _ {3} C _ {1} + \frac {C _ {4} C _ {1}}{k} + C _ {2} \rho_ {c} C _ {3} - \frac {C _ {2} \rho_ {c} C _ {4}}{k} \\ = - C _ {2} C _ {3} \rho_ {c} - C _ {1} C _ {3} - \frac {2 C _ {2} C _ {4}}{k} + \frac {C _ {2} \rho_ {c} C _ {4}}{k} + \frac {C _ {1} C _ {4}}{k} \tag {42} \\ \end{array} +$$ + +Hence the full numerator is: + +$$ +- C _ {2} C _ {3} \rho_ {c} - C _ {1} C _ {3} + \frac {C _ {4} \left(C _ {2} \rho_ {c} + C _ {1} - 2 C _ {2}\right)}{k} \tag {43} +$$ + +We now verify its sign. Under the assumption that the classifier is well-trained, i.e., + +$$ +C _ {1} - C _ {2} \rho_ {c} = \delta_ {c} - k \rho_ {c} \alpha_ {c} < 0 \Rightarrow C _ {1} < C _ {2} \rho_ {c} +$$ + +which implies: + +$$ +C _ {1} + C _ {2} \rho_ {c} < 2 C _ {2} \rho_ {c} < 2 C _ {2} \Rightarrow C _ {1} + C _ {2} \rho_ {c} - 2 C _ {2} < 0 +$$ + +Thus the entire numerator is negative, and since $D(\rho_c) > 0$ , we conclude: + +$$ +f _ {\text {l o w e r}} ^ {\prime} \left(\rho_ {c}\right) < 0 \tag {44} +$$ + +That is, the normalized score decreases as $\rho_{c}$ increases, and hence the classification probability increases. + +# (3) With respect to $\alpha_{c}$ : + +Let $C_1 = \delta_c$ , $C_2 = k\rho_c$ , $C_3 = k\rho_c\sigma_c^2$ , and $C_4 = \frac{1 - \rho_c}{k}\sigma_m^2$ . Then the lower bound becomes: + +$$ +f _ {\text {l o w e r}} \left(\alpha_ {c}\right) = \frac {C _ {1} - C _ {2} \alpha_ {c}}{\sqrt {C _ {3} \alpha_ {c} ^ {2} + C _ {4}}} \tag {45} +$$ + +Let $D(\alpha_c) \coloneqq \sqrt{C_3\alpha_c^2 + C_4}$ . Applying the quotient and chain rule, we obtain: + +$$ +f _ {\text {l o w e r}} ^ {\prime} \left(\alpha_ {c}\right) = \frac {- C _ {2} D ^ {2} \left(\alpha_ {c}\right) - C _ {3} \alpha_ {c} \left(C _ {1} - C _ {2} \alpha_ {c}\right)}{D ^ {3} \left(\alpha_ {c}\right)} \tag {46} +$$ + +We now expand the numerator: + +$$ +\begin{array}{l} - 2 C _ {2} \left(C _ {3} \alpha_ {c} ^ {2} + C _ {4}\right) - C _ {3} \alpha_ {c} \left(C _ {1} - C _ {2} \alpha_ {c}\right) \\ = - 2 C _ {2} C _ {3} \alpha_ {c} ^ {2} - 2 C _ {2} C _ {4} - C _ {1} C _ {3} \alpha_ {c} + C _ {2} C _ {3} \alpha_ {c} ^ {2} \\ = - C _ {2} C _ {3} \alpha_ {c} ^ {2} - 2 C _ {2} C _ {4} - C _ {1} C _ {3} \alpha_ {c} \tag {47} \\ \end{array} +$$ + +All three terms in the numerator are negative, and the denominator is strictly positive. Therefore: + +$$ +f _ {\text {l o w e r}} ^ {\prime} \left(\alpha_ {c}\right) < 0 \tag {48} +$$ + +This implies that the normalized score decreases as $\alpha_{c}$ increases, and hence the classification probability increases. + +# (4) With respect to variances $\sigma_{c}$ and $\sigma_{m}$ : + +In both bounds, $\sigma_{c}$ and $\sigma_{m}$ appear only in the denominator. Increasing either of them increases the total variance, which increases the normalized score $f(x)$ (i.e., makes it less negative), and hence decreases the classification probability $1 - \Phi(f(x))$ . + +Conclusion: In both upper and lower bounds, the classification probability is monotonically increasing with respect to $k$ , $\rho_{c}$ , and $\alpha_{c}$ , and monotonically decreasing with respect to $\{\sigma_i\}_{i=1}^{|\mathcal{Y}|}$ . + +# A.4 Proof of Proposition 4.1 + +Proof. Let $u, v \in \mathcal{V}$ belong to the same cluster, i.e., $\mathcal{P}(u) = \mathcal{P}(v) = p$ . In the dense attention setting defined by mask $\mathbf{M}^{c3}$ , the attention weight from $u$ to $v$ is given by: + +$$ +\alpha_ {u v} ^ {(c 3)} = \frac {\exp (\langle \mathbf {q} _ {u} , \mathbf {k} _ {v} \rangle)}{\sum_ {v ^ {\prime} \in \mathcal {P} ^ {- 1} (p)} \exp (\langle \mathbf {q} _ {u} , \mathbf {k} _ {v ^ {\prime}} \rangle)} +$$ + +Now consider the two-layer attention structure using mask $\mathbf{M}^{c^4}$ . In the second layer, node $u$ attends to: + +- Itself, with attention score $\alpha_{uu}^{(2)}$ +- Its virtual cluster node $p$ , with attention score ${\alpha }_{up}^{\left( 2\right) }$ + +The virtual node $p$ in the first layer aggregates from all nodes in cluster $p$ , including $v$ , with attention score $\alpha_{pv}^{(1)}$ . + +Therefore, the total contribution of node $v$ to node $u$ through the two-layer structure can be approximated as: + +$$ +\alpha_ {u v} ^ {(c 3)} \approx \left\{ \begin{array}{l l} \alpha_ {u u} ^ {(2)} + \alpha_ {u p} ^ {(2)} \cdot \alpha_ {p v} ^ {(1)}, & \text {i f} u = v \\ \alpha_ {u p} ^ {(2)} \cdot \alpha_ {p v} ^ {(1)}, & \text {i f} u \neq v \end{array} \right. +$$ + +This formulation shows that the dense cluster-wise attention score can be decomposed into a mixture of self-attention and two-hop attention via the cluster-level virtual node. This completes the proof. $\square$ + +# A.5 Proof of Proposition 4.2 + +Proof. As detailed in Appendix B, the space complexity of the dense attention computation is $O(2hN^2)$ , while that of the sparse computation is $O(6hmd_h)$ . By comparing the two, we conclude that the sparse scheme is more memory-efficient when: + +$$ +\frac {m}{N ^ {2}} < \frac {1}{3 d _ {h}} \quad \Leftrightarrow \quad \kappa_ {\mathcal {R} _ {i}} < \frac {1}{3 d _ {h}} +$$ + +where $\kappa_{\mathcal{R}_i} \coloneqq \frac{m}{N^2}$ denotes the relative sparsity of the receptive field. This completes the proof. + +# B Efficiency Comparison of Attention Computation Schemes + +We provide the pseudocode for masked multi-head attention with dense computation scheme in Algorithm 1. As illustrated, the primary memory overhead stems from storing the raw attention scores $\mathbf{S}$ and the normalized attention weights $\mathbf{A}$ , both of which have a space complexity of $O(hN^2)$ . In total, the algorithm requires $O(2hN^2)$ memory. In terms of time complexity, the main cost comes from three parts: (1) the linear transformations for generating the QKV matrices, which require $O(3Nd^2)$ ; (2) the computation of the attention matrix, $O(N^2d)$ ; and (3) the multiplication between the attention matrix and the value matrix, $O(N^2d)$ . Summing up, the total time complexity of standard MHA is $O(3Nd^2 + 2N^2d)$ . + +# Algorithm 1 Masked Multi-Head Attention + +Require: Input $\mathbf{Z} \in \mathbb{R}^{N \times d_{\mathrm{model}}}$ , number of heads $h$ , projection matrices $\mathbf{W}_Q, \mathbf{W}_K, \mathbf{W}_V$ , binary attention mask $\mathbf{M} \in \{0,1\}^{N \times N}$ + +Ensure: Output $\mathbf{Y} \in \mathbb{R}^{N \times d_{\mathrm{model}}}$ + +1: Project input to queries, keys, values: + +$$ +\mathbf {Q}, \mathbf {K}, \mathbf {V} = \mathbf {Z W} _ {Q}, \mathbf {Z W} _ {K}, \mathbf {Z W} _ {V} \in \mathbb {R} ^ {N \times d _ {\text {m o d e l}}} +$$ + +2: Reshape and split into $h$ heads: + +$$ +\mathbf {Q}, \mathbf {K}, \mathbf {V} \in \mathbb {R} ^ {h \times N \times d _ {h}} \quad \text {w h e r e} d _ {h} = d _ {\text {m o d e l}} / h +$$ + +3: Compute raw attention scores (per head): + +$$ +\mathbf {S} = \frac {\mathbf {Q K} ^ {\top}}{\sqrt {d _ {h}}} \in \mathbb {R} ^ {h \times N \times N} +$$ + +4: Apply attention mask: + +$$ +\mathbf {S} _ {i, j} = \left\{ \begin{array}{l l} \mathbf {S} _ {i, j}, & \text {i f} \mathbf {M} _ {i, j} = 1 \\ - \infty (\text {o r a l a r g e n e g a t i v e c o n s t a n t}), & \text {i f} \mathbf {M} _ {i, j} = 0 \end{array} \right. +$$ + +5:Normalize via Softmax: + +$$ +\mathbf {A} = \operatorname {s o f t m a x} (\mathbf {S}) \in \mathbb {R} ^ {h \times N \times N} +$$ + +6: Apply attention weights: + +$$ +\mathbf {H} = \mathbf {A V} \in \mathbb {R} ^ {h \times N \times d _ {h}} +$$ + +7: Concatenate heads as the final output: + +$$ +\mathbf {Y} = \operatorname {C o n c a t} _ {\text {h e a d}} (\mathbf {H}) \in \mathbb {R} ^ {N \times d _ {\text {m o d e l}}} +$$ + +# 8: return Y + +The sparse attention computation for head $i$ can be formulated as: + +$$ +\operatorname {h e a d} _ {i} (\mathbf {H}, \mathbf {M}) _ {u} = \sum_ {v \in \mathcal {M} _ {u}} \frac {\exp \left((\mathbf {H} _ {u} \mathbf {W} _ {Q} ^ {(i)}) (\mathbf {H} _ {v} \mathbf {W} _ {K} ^ {(i)}) ^ {\top}\right)}{\sum_ {t \in \mathcal {M} _ {u}} \exp \left((\mathbf {H} _ {u} \mathbf {W} _ {Q} ^ {(i)}) (\mathbf {H} _ {t} \mathbf {W} _ {K} ^ {(i)}) ^ {\top}\right)} \mathbf {H} _ {v} \mathbf {W} _ {V} ^ {(i)} \tag {49} +$$ + +where $\mathcal{M}_u = \{v:\mathbf{M}_{u,v} = 1\}$ denote the key set of node $u$ , $\mathbf{H}_u,\mathbf{H}_v\in \mathbb{R}^{1\times d}$ denote the representations of node $u,v$ , and $\mathbf{W}_Q^{(i)},\mathbf{W}_K^{(i)},\mathbf{W}_V^{(i)}\in \mathbb{R}^{d\times d_h}$ are the projection matrices for the $i$ -th head. The outputs of all heads are concatenated to produce the final output: $\mathrm{MHA}^S (\mathbf{H},\mathbf{M}) =$ $\mathrm{Concat(head_1,\ldots,head_H)}$ + +Next, we present the pseudocode for Sparse Multi-Head Attention in Algorithm 2. The dominant memory consumption arises from storing intermediate variables $\mathbf{Q}'$ , $\mathbf{K}'$ , $\mathbf{S}'$ , $\mathbf{V}'$ , and $\mathbf{H}'$ , each contributing to a space complexity of $O(mhd_h)$ , resulting in a total of $O(5mhd_h)$ . Additionally, computing the output $\mathbf{H}$ involves a $\mathrm{Scatter}_{\mathrm{sum}}(\cdot)$ operation, which requires an auxiliary buffer of size $O(mhd_h)$ . Therefore, the overall space complexity of Sparse Multi-Head Attention is $O(6mhd_h)$ . Regarding time complexity, sparse MHA consists of three main parts: (1) feature transformations, $O(3Nd^2)$ ; (2) sparse attention score computation (Step 4), $O(2md)$ ; and (3) output computation (Step 6), $O(2md)$ . Therefore, the total time complexity is $O(3Nd^2 + 4md)$ . A direct comparison indicates that sparse MHA outperforms standard MHA when $\frac{m}{N^2} < \frac{1}{2}$ . + +According to our "Dual Attention Computation Scheme" in Section 4.4 and Proposition 4.2, we apply sparse attention computation in most regions, except for attention from global nodes to the origin node, which involves a dense attention region (where $\frac{m}{N^2} = 1$ , as shown in Figure 2). This hybrid design allows our method to achieve lower overall time complexity than both standard and sparse MHA, i.e., $\min(O(3Nd^2 + 2N^2d), O(3Nd^2 + 4md))$ . + +# Algorithm 2 Sparse Multi-Head Attention + +Require: Input representation matrix $\mathbf{Z} \in \mathbb{R}^{N \times d_{\mathrm{model}}}$ , sparse index mask $\mathbf{M} \in \mathbb{Z}_{+}^{2 \times m}$ , where $m$ is the number of non-zero entries; projection matrices $\mathbf{W}_Q, \mathbf{W}_K, \mathbf{W}_V \in \mathbb{R}^{d_{\mathrm{model}} \times d_{\mathrm{model}}}$ ; number of heads $h$ + +Ensure: Output $\mathbf{Y} \in \mathbb{R}^{N \times d_{\mathrm{model}}}$ + +1: Linear projections: + +$$ +\mathbf {Q} = \mathbf {Z} \mathbf {W} _ {Q}, \quad \mathbf {K} = \mathbf {Z} \mathbf {W} _ {K}, \quad \mathbf {V} = \mathbf {Z} \mathbf {W} _ {V} \in \mathbb {R} ^ {N \times d _ {\text {m o d e l}}} +$$ + +2: Reshape for multi-head: + +$$ +\mathbf {Q}, \mathbf {K}, \mathbf {V} \in \mathbb {R} ^ {N \times h \times d _ {h}}, \quad d _ {h} = d _ {\text {m o d e l}} / h +$$ + +3: Index via sparse mask: + +$$ +\mathbf {Q} ^ {\prime} = \mathbf {Q} [ \mathbf {M} _ {0} ], \quad \mathbf {K} ^ {\prime} = \mathbf {K} [ \mathbf {M} _ {1} ] \quad \in \mathbb {R} ^ {m \times h \times d _ {h}} +$$ + +4: Sparse attention score computation: + +$$ +\mathbf {S} ^ {\prime} = \mathbf {Q} ^ {\prime} \cdot \mathbf {K} ^ {\prime} \in \mathbb {R} ^ {m \times h \times d _ {h}} +$$ + +$$ +\mathbf {S} = \operatorname {S U M} \left(\mathbf {S} ^ {\prime}, \dim = - 1\right) \in \mathbb {R} ^ {m \times h} +$$ + +5: Apply softmax normalization: + +$$ +\tilde {\mathbf {S}} = \exp (\mathbf {S}) \in \mathbb {R} ^ {m \times h} +$$ + +$$ +\tilde {\mathbf {S}} _ {\text {s u m}} = \operatorname {S c a t t e r} _ {\text {s u m}} (\tilde {\mathbf {S}}, \mathbf {M} _ {0}, \dim = 0) \in \mathbb {R} ^ {N \times h} +$$ + +$$ +\mathbf {A} = \tilde {\mathbf {S}} / \tilde {\mathbf {S}} _ {\mathrm {s u m}} [ \mathbf {M} _ {0} ] \in \mathbb {R} ^ {m \times h} +$$ + +6: Aggregate weighted values: + +$$ +\mathbf {V} ^ {\prime} = \mathbf {V} [ \mathbf {M} _ {1} ] \in \mathbb {R} ^ {m \times h \times d _ {h}} +$$ + +$$ +\mathbf {H} ^ {\prime} = \mathbf {A} \cdot \mathbf {V} ^ {\prime} \in \mathbb {R} ^ {m \times h \times d _ {h}} +$$ + +$$ +\mathbf {H} = \operatorname {S c a t t e r} _ {\mathrm {s u m}} \left(\mathbf {H} ^ {\prime}, \mathbf {M} _ {0}, \dim = 0\right) \in \mathbb {R} ^ {N \times h \times d _ {h}} +$$ + +7: Concatenate heads as the final output: + +$$ +\mathbf {Y} = \operatorname {C o n c a t} _ {\text {h e a d}} (\mathbf {H}) \in \mathbb {R} ^ {N \times d _ {\text {m o d e l}}} +$$ + +8: return Y + +# C The Summary Table of GTs and Hierarchical Attention Masks + +We summarize many Graph Transformers and their corresponding hierarchical attention masks mentioned in Section 3 in Table 4. + +Table 4: Summary of Graph Transformers and their corresponding hierarchical attention mask. + +
Mask TypeMask NotationRepresentative Graph Transformers
Local MasksMl1GOAT[24], NAGphormer[5], VCR-Graphormer[15], GCFormer[6]
Ml2NodeFormer[42], SGFormer[43], PolyNormer[11], CoBFormer[44], NAGphormer[5], VCR-Graphormer[15], and GCFormer[6]
Cluster MasksMc1Graph ViT[18], Cluster-GT[20], CoBFormer[44]
Mc2Cluster-GT[20]
Mc3CoBFormer[44]
Global MasksMg1NodeFormer[42], SGFormer[43], PolyNormer[11]
Mg2Exphormer[34]
+ +# D Dataset + +Table 5: The detailed dataset statistics. + +
Dataset#Nodes#Edges#FeatsEdge hom#Classes
Cora2,7085,4291,4330.837
CiteSeer3,3274,7323,7030.726
PubMed19,71744,3385000.793
Photo7,650119,0817450.838
Computer13,752245,8617670.7810
Squirrel2,22346,9982,0890.215
Chameleon8908,8542,3250.245
Minesweeper10,00039,40270.682
Ogbn-Arxiv169,3431,166,3431280.6340
+ +# D.1 Dataset Statistics + +The detailed dataset statistics are listed in Table 5. The edge homophily is defined as: + +$$ +h = \frac {\left| u , v : \mathbf {y} _ {u} = \mathbf {y} _ {v} \right|}{E} +$$ + +The Cora, CiteSeer, PubMed [45], Photo, and Computer [33] datasets are available through PyG [14], while Ogbn-Arxiv can be accessed via the OGB platform [19]. The Chameleon, Squirrel, and Minesweeper datasets are provided in the official repository of [31]. + +# D.2 Dataset Splitting Protocol + +For Computer and Photo, we follow the splitting protocol in [11, 15], randomly dividing nodes into training, validation, and test sets with a $60\%:20\%$ : $20\%$ ratio over five runs. For Ogbn-Arxiv, we adopt the official split provided in [19]. The remaining datasets are split into $50\%$ : $25\%$ : $25\%$ train/validation/test sets, repeated five times following [42, 31]. + +# E Baselines + +We compare $\mathbf{M}^3$ Dphormer against 15 baselines spanning multiple model families: + +# 1) Classic GNNs: + +- GCN [23] adopts a spectral-based convolution that aggregates and transforms features from immediate neighbors using a normalized adjacency matrix. It can be interpreted as a form of Laplacian smoothing. +- GAT [38] introduces a self-attention mechanism to assign learnable weights to different neighbors, enabling adaptive and context-aware feature aggregation. +- SAGE [16] is an inductive framework that samples a fixed-size neighborhood and aggregates features through functions such as mean, LSTM, or pooling, allowing generalization to unseen nodes and efficient training on large graphs. + +2) Enhanced Classic GNNs: GCN*, GAT*, and SAGE* are strong baselines proposed in [26], a benchmark study showing that classic GNNs can achieve significantly better performance on node classification tasks by careful hyperparameter tuning and the incorporation of advanced training techniques, such as residual connections [17] and normalization methods [48, 2, 21]. + +3) Advanced GNNs: To move beyond the widely adopted homophily assumption—that nodes of the same class are more likely to be connected [28]—advanced GNNs such as GPRGNN [7] and FAGCN [3] have been proposed to improve performance on heterophilic graphs. + +- GPRGNN [7] employs a generalized PageRank (GPR) propagation scheme, which allows flexible and learnable weighting over multi-hop neighborhood information. This design enables the model to adapt to both homophilic and heterophilic graph structures. + +- FAGCN [3] introduces a frequency adaptive mechanism that modulates the importance of low- and high-frequency components in the spectral domain. By learning a task-specific filter, FAGCN effectively balances local smoothness and discriminative power, making it suitable for graphs with varying levels of heterophily. + +# 4) SOTA Graph Transformers: + +- NAGphormer [5] tokenizes multi-hop neighborhoods into fixed-length sequences using a Hop2Token module, enabling scalable and efficient node classification on large graphs. +- Exphormer [34] designs a sparse Transformer using expander graphs and virtual global nodes, achieving linear complexity and strong performance on large-scale graphs. +- SGFormer [43] simplifies the Transformer architecture by adopting a shallow attentive propagation without positional encodings, ensuring efficient all-pair interactions. +- CoBFormer [44] mitigates over-globalization by combining coarse-grained and fine-grained paths, improving the model's balance between global and local information. +- **PolyNormer** [11] captures complex structures using polynomial-expressive attention with linear time complexity, and performs well on both homophilic and heterophilic graphs. + +# 5) MoE-based GNNs: + +- Mowst [47] introduces a Mixture of Experts (MoE) framework that combines a weak expert (MLP) and a strong expert (GNN). A confidence-based gating mechanism determines whether to activate the strong expert for each node, enabling adaptive computation and improved performance across diverse graph structures. +- GCN-MoE [40] applies the MoE paradigm to GCNs by incorporating multiple experts with varying neighborhood aggregation ranges. A gating function dynamically selects the appropriate expert for each node, enhancing the model's capacity to handle graphs with diverse structural patterns. + +# F Experimental Details + +This section provides the detailed experimental setup corresponding to the results reported in the main paper. + +# F.1 Training Strategy + +We follow the training protocol used in the official implementation of NAGphormer and train it using a mini-batch strategy on all datasets. For all other baselines and our proposed $\mathbf{M}^3$ Dphormer, we adopt a full-batch training scheme. The Adam Optimizer is used for optimization. + +# F.2 $\mathbf{M}^3$ Dphormer Configuration + +We implement $\mathbf{M}^3\mathrm{D}$ phormer by stacking multiple $\mathbf{M}^3\mathrm{D}$ phormer layers. All hyperparameters are selected via grid search over the following search space: + +- Learning rate: $\{5 \times 10^{-4}, 10^{-3}, 5 \times 10^{-3}\}$ +Number of $\mathbf{M}^3$ Dphormer layers: + +- Cora, Citeseer, Pubmed, Chameleon, Photo: {2, 3, 4} +- Squirrel, Computer, Ogbn-Arxiv: $\{5, 6, 7\}$ +-Minesweeper: $\{10,12,15\}$ + +Number of attention heads: $\{1,2,4,8\}$ +- Hidden dimension: $\{64, 128, 256\}$ +- Weight decay: $\{0, 10^{-4}, 5 \times 10^{-4}, 10^{-3}, 5 \times 10^{-3}\}$ +- Dropout rate: $\{0.3, 0.5, 0.7\}$ +- Attention dropout rate: $\{0.1, 0.3, 0.5\}$ + +Number of clusters: + +- Cora, Citeseer, Squirrel, Minesweeper: {96, 128, 160, 192} +- Pubmed, Photo, Computer: {160, 192, 224, 256} +- Ogbn-Arxiv: {2048} +- Chameleon: $\{32, 64, 96, 128\}$ + +We apply Pre-RMSNorm [48] before the bi-level expert routing mechanism in each $\mathbf{M}^3$ Dphormer layer for most datasets. For Ogbn-Arxiv, however, we adopt Post-BatchNorm due to its superior convergence behavior. We adopt GAT-style attention for the local expert due to its computational efficiency, and standard multi-head attention (MHA) for the cluster and global experts. This choice is motivated by the observation in [4] that GAT-style attention suffers from a static attention problem, which can significantly degrade the performance of cluster and global experts. + +# F.3Baselines + +We implement GCN, SAGE, GAT, GPRGNN, and FAGCN using PyG [14]. For all other baselines, we use the official implementations. The corresponding repositories are listed below: + +- GCN*, GAT*, SAGE*: https://github.com/LUOyk1999/tunedGNN +- NAGphormer: https://github.com/JHL-HUST/NAGphormer +- Exphormer: https://github.com/hamed1375/Exphormer +- SGFormer: https://github.com/qitianwu/SGFormer +- CoBFormer: https://github.com/null-xyj/CoBFormer +- PolyNormer: https://github.com/cornell-zhang/Polynormer +- Mowst: https://github.com/facebookresearch/mowst-gnn +- GCN-MOE: https://github.com/VITA-Group/Graph-Mixture-of-Experts + +We follow the official training protocols and perform hyperparameter tuning for each model on every dataset. The search space is defined as follows: + +- Learning rate: $\{5 \times 10^{-4}, 10^{-3}, 5 \times 10^{-3}\}$ +- Hidden dimension: $\{64, 128, 256\}$ +- Dropout rate: $\{0.3, 0.5, 0.7\}$ +- Weight decay: $\{0, 10^{-4}, 5 \times 10^{-4}, 10^{-3}, 5 \times 10^{-3}\}$ + +For models with additional key hyperparameters, we further tune them as follows: + +- Attention-based models: number of heads $\in$ {1, 2, 4, 8} +- NAGphormer: number of hops $\in$ {3, 5, 7, 10, 15} +- SGFormer: $\alpha \in \{0.5, 0.8\}$ +- CoBFormer: $\alpha \in \{0.9, 0.8, 0.7\}$ ; $\tau \in \{0.9, 0.7, 0.5, 0.3\}$ +GCN-MOE: number of experts $\in$ {3, 4, 5} +- FAGCN: $\epsilon \in \{0.3, 0.5, 0.7\}$ +- GPRGNN: $\alpha \in \{0.1, 0.3, 0.5\}$ + +All models are trained on a single NVIDIA GPU with 24GB memory. We run each method 5 times and report the mean and standard deviation of the results. + +Table 6: Performance and runtime comparison across datasets. + +
CoraCiteseerPubmedPhotoComputerChameleonSquirrel
Dual5.62s4.92s6.41s5.34s10.86s5.58s12.29s
Dense6.69s7.28sOOM7.25sOOM6.28s16.45s
Sparse6.28s5.67s7.16s6.01s15.56s7.60s14.38s
Polynormer3.59s2.76s3.60s6.02s4.16s3.88s5.53s
+ +# G More Experimental Results + +# G.1 Runtime Comparison + +We report the training time of our method over 200 epochs, and compare it against its sparse and dense variants as well as PolyNormer [11]. The results are summarized in Table 6. We observe that the proposed "Dual Attention Computation Scheme" achieves faster training than both sparse and dense MHA variants. Although it is marginally slower than PolyNormer, the additional cost arises from employing three MHA experts, which are crucial for attaining higher accuracy. Furthermore, our model converges within 200 epochs on most datasets, rendering the time overhead acceptable. + +# G.2 Graph Classification Performance + +We extend our method to graph-level tasks by incorporating edge features and Laplacian positional encodings. To assess the effectiveness of this extension, we conduct experiments on two graph classification datasets: OGBG-MOLBACE and OGBG-MOLBBBP. We compare our approach with three widely-used GNN baselines—GCN, GAT, and GINE—which are recognized as strong performers on graph-level benchmarks [27]. The results are summarized in Table 7. + +Table 7: Graph classification performance $\left( {\% \pm \sigma }\right)$ ,measured by ROC-AUC. + +
Methodogbg-baceogbg-bbbp
M3Dphormer0.80432±0.010400.68232±0.00632
GCN*0.75680±0.016760.65146±0.01184
GAT*0.78149±0.019000.65175±0.01221
GINE*0.74799±0.010140.65095±0.01143
+ +As shown in the Table 7, our extended model outperforms the baselines on both datasets, demonstrating its strong potential for graph-level tasks. + +# G.3 Ablation Study on FFN Variants + +In our method, the standard Transformer Feed-Forward Network (FFN) module is replaced with a single linear layer followed by an activation function, such as ReLU [1]. To investigate the impact of the FFN module on node classification performance, we compare $\mathbf{M}^3$ Dphormer with its FFN variants. The results are summarized in Table 8. + +Table 8: Node classification results of M3Dphormer and its FFN variant. + +
CoraCiteSeerPubmedPhotoComputerChameleonSquirrel
M3Dphormer88.48±1.9477.53±1.5689.96±0.4995.91±0.6892.09±0.4647.09±4.0544.34±1.94
+FFN86.50±1.8775.53±2.1989.28±0.3095.37±0.5491.28±0.7244.22±2.8141.36±1.82
+ +As observed, incorporating the FFN module often results in a noticeable performance drop, particularly on datasets such as Cora, Citeseer, Chameleon, and Squirrel. We attribute this to the relatively simple and easily learnable node features in these datasets. In such cases, capturing complex node interactions becomes more critical, a task that is more effectively handled by the Multi-Head Attention + +(MHA) module. While MHA is commonly regarded as the core of Transformer architectures, it is important to note that the standard FFN module typically contains twice as many parameters as MHA (e.g., with a projection of $d \to 4d \to d$ ). Since meaningful structural interactions are primarily modeled through attention, it is natural to allocate greater capacity to the MHA module. + +In addition to the observed performance improvement, reducing or simplifying the FFN module can significantly enhance computational and memory efficiency, making the model more lightweight and scalable. + +# G.4 Loss and Accuracy Curves For PolyNormer + +We plot the accuracy and loss curves of $\mathbf{M}^3$ Dphormer and PolyNormer[11] in Figure 6. Across the training, validation, and test sets, $\mathbf{M}^3$ Dphormer consistently achieves faster convergence and higher accuracy than PolyNormer during the training process, demonstrating the effectiveness of our method. + +![](images/77055e561b6bee9cfe54fe2f3f5c64b2f6fcf651822cb86b72963d7240cd84c9.jpg) +Figure 6: Comparison of accuracy and loss curves between $\mathbf{M}^3\mathrm{D}$ former and PolyNormer on Arxiv. + +![](images/bb3355b3f51409b61051a7bc2650afa3e7c6b7c081f6e1eb0d2fdff03f03200a.jpg) + +# G.5 More Visualization Results + +We visualize the distribution of learned gate weights across node degree bins on Ogbn-Arxiv in Figure 7. Several observations can be made: 1) In the first layer, the gate weights remain close to the initialization [0.5, 0.25, 0.25], suggesting that all types of interactions are considered at the early stage. 2) In the second layer, the weights for local and cluster experts increase, indicating a shift in focus toward capturing structural information at local and mid-range levels. 3) In the third and fourth layers, local experts consistently dominate across all degree bins. Meanwhile, the gate weights for cluster and global experts exhibit a decreasing trend with increasing node degree, reflecting the tendency of low-degree nodes—often located near cluster boundaries with low local homophily—to rely more on broader contextual information. 4) In the final layer, we observe a notable shift: the weights assigned to local experts decrease as node degree increases, while those for global experts increase. This trend may be attributed to the fact that high-degree nodes have already aggregated sufficient local information, and further local aggregation may lead to over-smoothing [25, 29, 30] or over-squashing [36, 10]. + +![](images/f2e6652a7aeebbdae8741e3f3681ae6d05a08d7cafadd1d75e7eed3bae24ec72.jpg) + +![](images/72416fbc6cbe7da025f014dbbe4cd574866f9ed9bcf0ad8f5b68dec31efec035.jpg) +(a) Layer 0 + +![](images/231a97df319836d6ac8dbdddffbce3343fa1f8ee6818f7a109dcd757ddb8514b.jpg) +(b) Layer 1 + +![](images/f604e4e81e9a645fddc0aa65dde51b5cb1c06c03fab7b98036beba4e8b255c97.jpg) +(c) Layer 2 + +![](images/ada42acebafc15f966aeeed2db07a65d466c9ff60c25ed5f250797b86ccc9d54.jpg) +(d) Layer 3 +(e) Layer 4 +Figure 7: Gate weight distribution across node degree bins for different layers. \ No newline at end of file diff --git a/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/images.zip b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..a8e53befe12e14746617ddd2f6aab4ab476fd8d6 --- /dev/null +++ b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8746c1a180fbbbc43f422d97c2dd7707ea38b8923fb16c5e97999348f1959f99 +size 1442139 diff --git a/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/layout.json b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..bc8efd089b173c062f12856760c2aaa8a5747b09 --- /dev/null +++ b/NeurIPS/2025/Unifying and Enhancing Graph Transformers via a Hierarchical Mask Framework/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0fc313134300f3d84d3e467738434d166333809f1949ff83810fa8ecc9fd5f6 +size 1387580 diff --git a/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/09954a8e-7672-4db4-a3c0-adbbcf58179a_content_list.json b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/09954a8e-7672-4db4-a3c0-adbbcf58179a_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..7adb9da511cd766b47826e68539adc2e0cbf5c27 --- /dev/null +++ b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/09954a8e-7672-4db4-a3c0-adbbcf58179a_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa0a7efbf60227f93b2e469c2044d20fc20eb10d1aa76eda02c20825760519ea +size 169130 diff --git a/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/09954a8e-7672-4db4-a3c0-adbbcf58179a_model.json b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/09954a8e-7672-4db4-a3c0-adbbcf58179a_model.json new file mode 100644 index 0000000000000000000000000000000000000000..db67d8b4a511a1e6aa7b061272d7dd6c2805828f --- /dev/null +++ b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/09954a8e-7672-4db4-a3c0-adbbcf58179a_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:457edf6389cf93b885f2da585c3a5f746f2f3a2af58f6b6d46dafe4a4aa181d9 +size 212151 diff --git a/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/09954a8e-7672-4db4-a3c0-adbbcf58179a_origin.pdf b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/09954a8e-7672-4db4-a3c0-adbbcf58179a_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..988e52ad0cfb2a3d6057d8efd78ac8993cebb9b6 --- /dev/null +++ b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/09954a8e-7672-4db4-a3c0-adbbcf58179a_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8094b89303e2fefe757e6798d3375b969518be546b134d874901e11986524aff +size 4898315 diff --git a/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/full.md b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/full.md new file mode 100644 index 0000000000000000000000000000000000000000..9c404d38f0de3750e1dd5885b77d235cccabba8c --- /dev/null +++ b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/full.md @@ -0,0 +1,776 @@ +# UniteFormer: Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems + +Dian Meng $^{1,5}$ + +Zhiguang Cao + +Jie Gao + +Yaoxin $\mathbf{W}\mathbf{u}^4$ + +Yaqing Hou1,5* + +$^{1}$ School of Computer Science and Technology, Dalian University of Technology (DUT) + +$^{2}$ School of Computing and Information Systems, Singapore Management University + +$^{3}$ Department of Transport and Planning, Delft University of Technology + +$^{4}$ Department of Industrial Engineering and Innovation Sciences, Eindhoven University of Technology + +5Key Laboratory of Social Computing and Cognitive Intelligence (DUT), Ministry of Education, China mengdian@mail.dlut.edu.cn, zhiguangcao@outlook.com, J.Gao-1@tudelft.nl, wyxacc@hotmail.com, houyq@dlut.edu.cn + +# Abstract + +Neural solvers for the Vehicle Routing Problem (VRP) have typically relied on either node or edge inputs, limiting their flexibility and generalization in real-world scenarios. We propose UniteFormer, a unified neural solver that supports node-only, edge-only, and hybrid input types through a single model trained via joint edge-node modalities. UniteFormer introduces: (1) a mixed encoder that integrates graph convolutional networks and attention mechanisms to collaboratively process node and edge features, capturing cross-modal interactions between them; and (2) a parallel decoder enhanced with query mapping and a feed-forward layer for improved representation. The model is trained with REINFORCE by randomly sampling input types across batches. Experiments on the Traveling Salesman Problem (TSP) and Capacitated Vehicle Routing Problem (CVRP) demonstrate that UniteFormer achieves state-of-the-art performance and generalizes effectively to TSPLib and CVRPLib instances. These results underscore UniteFormer's ability to handle diverse input modalities and its strong potential to improve performance across various VRP tasks. + +# 1 Introduction + +Vehicle Routing Problems (VRPs) are fundamental in logistics [21], navigation systems [12], and drone delivery [45], with significant theoretical and practical relevance. Recent advances have seen increasing interest in deep learning-based neural solvers for VRPs, offering strong generalization and improved computational efficiency over traditional exact and heuristic algorithms [14, 3, 4]. These methods include both autoregressive models that learn construction policies from data [24, 10, 31], as well as learning-based improvement solvers that enhance classical optimization procedures. However, many of these models, particularly construction-based ones, make an overly simplifying assumption: they rely solely on either node coordinates or edge distances as input. This leads to several limitations. First, training separate models for each input modality (node or edge) is inflexible and impractical for real-world applications. Second, switching between different input types requires retraining from scratch, incurring substantial computational costs. Third, such single-modality training neglects the complementary information between node and edge inputs, preventing the model from learning transferable features and reducing its capacity to discover high-quality solutions. + +We argue that hybrid training with both node and edge information offers a more general and informative representation of the problem. While existing methods train only on a single modality, our approach allows joint encoding and interaction across modalities, leading to better-informed policies and improved solution quality. To this end, we propose UniteFormer, a unified neural solver for VRPs that supports hybrid training and generalizes across input modalities. Unlike conventional solvers, UniteFormer is trained once and can handle node-only, edge-only, or mixed edge-node inputs without retraining. This makes it more flexible and applicable to diverse real-world scenarios. + +Specifically, UniteFormer consists of a mixed encoder and a parallel-attention decoder. The mixed encoder includes two sub-encoders: edge-aware sub-encoder and node-focused sub-encoder. The edge-aware sub-encoder integrates residual gated graph convolutional networks (GCNs) with self-attention to jointly process node and edge features, facilitating cross-modality interaction. The node-focused sub-encoder encodes node features independently using attention mechanisms, thereby further enhancing the ability to encode node information. Together, they produce rich global embeddings that capture complementary structural information. The decoder features a parallel architecture and nonlinear query mechanisms, incorporating query mapping and a feed-forward (FF) layer to enhance its representational capacity. Our contributions are outlined as follows: + +- We present UniteFormer, the first unified neural solver capable of solving VRPs with node-only, edge-only, or hybrid inputs using a single trained model. +- We introduce a novel mixed encoder that combines residual gated GCNs with attention mechanisms, which can effectively and jointly process node and edge features to capture cross-modal interactions between them. +- We design a decoder with a parallel-attention architecture and nonlinear query mechanisms, which enhance the expressiveness of the policy network. +- Experiments on TSP and CVRP with all three input types show that UniteFormer achieves state-of-the-art results. It also generalizes well to real-world TSPLib and CVRPLib benchmarks, and supports applications such as the Asymmetric TSP (Appendix F). + +# 2 Related Work + +Modality-Specific Neural Solvers for VRPs. Neural approaches have emerged as powerful alternatives for solving VRPs by leveraging advances in deep learning and neural combinatorial optimization [3, 35, 32, 47, 26, 27, 17]. The introduction of pointer networks [42] and the Transformer architecture [40] laid the foundation for early neural VRP solvers such as in [2] and [34]. + +1) Node-based models: Most existing neural solvers focus on node coordinate inputs. Notable examples include AM [22], POMO [24], and Sym-NCO [19], which significantly improved solution quality for classical VRPs. More recent works have advanced training strategies. For instance, Bdeir et al. [1], Drakulic et al. [10], and Luo et al. [31] applied dynamic input re-encoding during training to enhance generalization. Among them, Drakulic et al. [10] introduced Bisimulation Quotienting (BQ) to reformulate the MDP for more robust generalization. Luo et al. [31] proposed a light encoder heavy decoder (LEHD) model trained via supervised learning on partially reconstructed 100-node instances. These methods are all fundamentally built on node coordinate inputs, capturing spatial structure through positional embeddings. +2) Edge-based models: Edge-centric models are a more recent development. Kwon et al. [23] introduced MatNet, a matrix encoding network that operates on pairwise distance matrices, and demonstrated strong performance on the asymmetric traveling salesman (ATSP) and flexible flow shop (FFSP) problems. Lischka et al. [28] proposed GREAT, a sparse graph edge attention model that constructs high-quality solutions by exploiting sparse edge relationships. Building on this, Meng et al. [33] proposed an efficient edge-based EFormer, which further extends and optimizes edge-based problems and achieves excellent results on the TSP and CVRP. +3) Hybrid edge-node models: A smaller body of work explores models that jointly use node and edge information. Joshi et al. [18] proposed a GCN-based edge probability predictor that uses both node coordinates and edge weights to guide beam search. Wang et al. [44] developed a distance-aware reshaping method (DAR) that biases attention mechanisms using Euclidean distances. Zhou et al. [49] introduced an instance-conditional adaptive model (ICAM) that integrates both node and edge features to improve adaptability across instance sizes. + +![](images/d0b680d0d0e7b927692440e25620a685b11c934314244eb1f84613ec21ec2c03.jpg) +Figure 1: Overview of the UniteFormer framework. + +Unified Neural Solvers for VRPs. Unified models that generalize across VRP variants have gained attention due to their versatility and practicality. Wang and Yu [43] proposed a multi-task neural solver using a multi-armed bandit framework to train across multiple combinatorial optimization problems. Drakulic et al. [9] introduced GOAL, a supervised learning-based agent capable of solving diverse COPs. Within the VRP domain, Ruis et al. [37] used attribute composition for zero-shot generalization across multiple VRP variants. Liu et al. [29] extended the reinforcement learning-based POMO model to a multi-task setting (POMO-MTL), and Zhou et al. [50] further proposed MVMOE, a mixture-of-experts model to improve generalization. Building on this, Liu et al.. [30] proposed a curvature-aware pre-training framework that effectively improved their performance. Federico et al. [5] introduced RouteFinder, a modular baseline framework for VRP variant modeling. Our work aligns with this line of research but focuses on input-modality unification rather than task-level generalization. UniteFormer is the first model that simultaneously processes VRPs defined by node, edge, or hybrid representations in a single framework, offering strong generalization, improved efficiency, and broad applicability to real-world VRPs. + +# 3 UniteFormer + +Transformer-based neural VRP solvers typically adopt light decoder architectures [22, 24], where the decoder uses static node embeddings as keys and values throughout the attention layers. In contrast, we replace these static embeddings with two context-aware embeddings that encode both edge relationships and node coordinates, and process them in parallel within the decoder. To effectively encode heterogeneous input modalities, we introduce a novel mixed encoder architecture that combines residual gated GCNs with attention mechanisms. The mixed encoder includes two sub-encoders: an edge-aware sub-encoder and a node-focused sub-encoder, collaboratively processing node and edge features to capture cross-modal interactions between them. In addition, we enhance the parallel-attention decoder with query mapping and a feed-forward layer to form our proposed UniteFormer. The overall architecture of UniteFormer is illustrated in Figure 1. In the following, we first present three input modalities in UniteFormer, then introduce the two sub-encoders of the mixed encoder in detail, and finally report the specific implementation of the decoder. + +# 3.1 Input Modalities in UniteFormer + +A VRP instance is defined over a graph $G = \{X, E\}$ , where $X = \{x_i\}_{i=0}^N$ denotes the nodes (with $x_0$ as the depot), and $e(x_i, x_j) \in E$ represents the edge between nodes $x_i$ and $x_j$ . UniteFormer + +![](images/5342363db14fe536d04de193ca1a60b0b7e2868801ebff880804edc499b2851e.jpg) +(a) + +![](images/7d9e686a75d50c5f1e9501a68d308ebd90d1e5a6f2d1bbf984da3851e72e9e45.jpg) +(b) + +![](images/740d58d80bfb5296a9b50e2f4c7811aa118b977945e99449ee8312485166b0ab.jpg) +(c) +Figure 2: Three input modalities for UniteFormer: (a) Edge-only input. (b) Node-only input. (c) Hybrid input. The Mixed Encoder includes: Edge-aware (left) and Node-focused Sub-encoder (right). + +supports three input modalities: edge-only input, where only edge weights $E$ are provided; node-only input, where only node coordinates $X$ are provided; hybrid input, where both node coordinates $X$ and edge weights $E$ are available. + +The three input configurations are shown in Figure 2. Different input types activate different branches of the edge-aware sub-encoder (left) and the node-focused sub-encoder (right). A single unified model is trained, with encoder components dynamically adapted to each input type. Specifically, Edge-only input (Figure 2(a)): The node-focused sub-encoder is disabled (i.e., replaced with a zero embedding), and only the edge-aware sub-encoder processes edge features; Node-only input (Figure 2(b)): Without edge weights, node features are passed to the GCNs directly, while the edge features are set to zero embeddings. Hybrid input (Figure 2(c)): Both node and edge features are used. The mixed-score Multi-Head Attention (mixed-score MHA) is bypassed, and the GCNs receive the raw edge and node features. + +# 3.2 Edge-aware Sub-encoder: Efficient Fusion of GCNs and Attention Mechanisms + +To simultaneously capture edge and node information, we propose a novel sub-encoder architecture, i.e., the Edge-aware Sub-encoder, that integrates GCNs with attention mechanisms. When edge information is provided, we apply a mixed-score MHA block to derive intermediate node features. Across all three input modalities, we then apply residual gated GCNs to jointly process edge and node features in a unified representation space. Finally, we introduce an additional self-attention layer, which proves especially effective in edge-based settings. + +Mixed-Score Attention Layer. Inspired by [23], we adopt a multi-head mixed-score attention mechanism to encode the edge weight matrix. This module follows the structure of standard Transformer attention [40], but replaces the traditional scaled dot-product computation with a mixed-score formulation (see Appendix A). Inputs to this block include: a zero vector $h_0$ , a randomly selected one-hot vector $h_v$ from a predefined pool, and the edge weight matrix $D_{ij}$ . This setup allows dynamic embedding generation and facilitates instance-level augmentation by feeding the same instance multiple times with varying vector combinations. The zero vector can optionally be replaced by another one-hot vector, though we default to using the zero vector. The encoded relation matrix $h_i^{(\bar{P})}$ is computed only when edge inputs are present: + +$$ +\hat {h} _ {i} ^ {(P)} = \operatorname {N O R M} \left(h _ {0} + \text {m i x e d - s c o r e M H A} \left(h _ {0}, h _ {v}, D _ {i j}\right)\right), \tag {1} +$$ + +$$ +h _ {i} ^ {(P)} = \operatorname {N O R M} \left(\hat {h} _ {i} ^ {(P)} + \operatorname {F F} \left(\hat {h} _ {i} ^ {(P)}\right)\right), \tag {2} +$$ + +where mixed-scoreMHA( $\cdot$ ) denotes the mixed-score attention layer, $\mathrm{FF}(\cdot)$ is a feed-forward network with one hidden layer and ReLU activation, and $\mathrm{NORM}(\cdot)$ denotes batch normalization [16]. + +Residual Gated Graph Convolution Layer. We next feed node and edge features into residual gated GCNs. Node coordinates $x_{i}$ are embedded as $h$ -dimensional vectors. The edge weight matrix $D_{ij}$ and the edge adjacency matrix $\Theta_{ij}^{\mathrm{knn}}$ are embedded as $\frac{h}{2}$ -dimensional vectors: + +$$ +\alpha_ {i} = \omega_ {1} x _ {i} + b _ {1}, \tag {3} +$$ + +$$ +\beta_ {i j} = \omega_ {2} D _ {i j} + b _ {2} \| \omega_ {3} \cdot \Theta_ {i j} ^ {\mathrm {k n n}}, \tag {4} +$$ + +where $\omega_{1} \in \mathbb{R}^{h}, \omega_{2}, \omega_{3} \in \mathbb{R}^{\frac{h}{2}}, b_{1}, b_{2}$ are biases, and $||$ denotes vector concatenation. The input node and edge embeddings for the GCN are adaptively initialized according to input types. Particularly, 1) Edge-only: $y_{i}^{0} = h_{i}^{(P)}$ , $e_{ij}^{0} = \beta_{ij}$ ; 2) Node-only: $y_{i}^{0} = \alpha_{i}$ , $e_{ij}^{0} = h_{0}$ ; 3) Edge and Node: $y_{i}^{0} = \alpha_{i}$ , $e_{ij}^{0} = \beta_{ij}$ . We denote node and edge embeddings at layer $l$ as $y_{i}^{l}$ and $e_{ij}^{l}$ , respectively. Following [6], we apply ReLU activation and residual connections to obtain the next-layer embeddings: + +$$ +y _ {i} ^ {l + 1} = y _ {i} ^ {l} + \operatorname {R e L U} \left(\operatorname {N O R M} \left(W _ {1} ^ {l} y _ {i} ^ {l} + \phi_ {i j} ^ {l} \odot W _ {2} ^ {l} y _ {j} ^ {l}\right)\right), \text {w i t h} \phi_ {i j} ^ {l} = \sum_ {j \sim i} \frac {\sigma \left(e _ {i j} ^ {l}\right)}{\sum_ {j ^ {\prime} \sim i} \sigma \left(e _ {i j ^ {\prime}} ^ {l}\right) + \xi}, \tag {5} +$$ + +$$ +e _ {i j} ^ {l + 1} = e _ {i j} ^ {l} + \operatorname {R e L U} \left(\operatorname {N O R M} \left(W _ {3} ^ {l} e _ {i j} ^ {l} + W _ {4} ^ {l} y _ {i} ^ {l} + W _ {5} ^ {l} y _ {j} ^ {l}\right)\right), \tag {6} +$$ + +where $W_{*}^{l}$ are learnable weight matrices, $\sigma$ is the sigmoid function, $\xi$ is a small constant for numerical stability, and $\odot$ denotes element-wise multiplication. This formulation enables anisotropic information diffusion on graphs by incorporating learned edge attention maps $\phi_{ij}^{l}$ . To further process the node embeddings, we apply the MLP to the GCN output $y_{i}^{l}$ , yielding values $m_{i}^{l} = \mathrm{MLP}(y_{i}^{l})$ constrained to $[0,1]^{2}$ . + +Self-Attention Layer. To enhance the model's capacity for global context encoding, we introduce an additional self-attention layer after the MLP. This is particularly important in the edge-only setting, where the node-focused sub-encoder is disabled. In such cases, this layer significantly improves the model's ability to propagate and transform information across the graph: + +$$ +h _ {L} ^ {M} = \text {s e l f - a t t e n t i o n} \left(m ^ {L}\right), \tag {7} +$$ + +where $m^L$ is the MLP output, and $h_L^M$ is the final output of the edge-aware sub-encoder. The detailed computational process in self-attention layer is provided in Appendix A. + +# 3.3 Node-focused Sub-encoder: Expressive Encoding of Node Information + +The edge-aware sub-encoder, which is built on GCNs and augmented with a self-attention layer for encoding, offers a significant boost for edge-based input. However, it falls short in handling node features compared to the conventional encoder mechanism [24]. Therefore, we introduce the classic attention mechanism (i.e., Node-focused Sub-encoder) to make up for this deficiency, which can effectively improve the performance of node-based input. The node-focused sub-encoder consists of $L$ stacked layers, each comprising two sublayers: a multi-Head attention (MHA) sublayer and a feed-forward (FF) sublayer. Each sublayer incorporates residual connections [13] and layer normalization [16]. Let $h_i^{(l)}$ denote the embedding of node $i$ at layer $l$ , and let $H^{(l)} = \{h_1^{(l)}, h_2^{(l)}, \dots, h_n^{(l)}\}$ represent the node embeddings at layer $l$ . The forward computation at the $l$ -th layer is given by: + +$$ +\hat {h} _ {i} ^ {(l)} = \operatorname {N O R M} \left(h _ {i} ^ {(l - 1)} + \mathrm {M H A} \left(h _ {i} ^ {(l - 1)}, H ^ {(l - 1)}\right)\right), \tag {8} +$$ + +$$ +h _ {i} ^ {(l)} = \operatorname {N O R M} \left(\hat {h} _ {i} ^ {(l)} + \operatorname {F F} \left(\hat {h} _ {i} ^ {(l)}\right)\right), \tag {9} +$$ + +where $\mathrm{MHA}(\cdot)$ denotes the multi-head attention, $\mathrm{FF}(\cdot)$ is a feed-forward network, and $\mathrm{NORM}(\cdot)$ applies layer normalization. This structure allows the sub-encoder to capture complex dependencies between nodes in a permutation-invariant manner. $H^{(L)}$ represents the final output of the $L$ -th attention layer. Specifically, when the input consists of edges only, the sub-encoder is deactivated, and its output is set as $h_{L}^{N} = h^{(0)}$ ; when the input includes nodes, the output is taken as $h_{L}^{N} = H^{(L)}$ . + +# 3.4 Decoder: Parallel-Attention Decoding with Enhanced Query Representation + +A critical component of the decoder is the context query vector $q$ , which is used to compute attention scores over node embeddings and generate the probability distribution for the next node. In prior + +works, $q$ is often constructed as a linear combination of node embeddings, which limits its representational capacity due to its inherent linearity [15]. To better capture contextual dependencies, we design a decoder architecture with two key enhancements: (1) a parallel-attention architecture that separately computes attention scores using two sets of encoded embeddings, and (2) a nonlinear query mechanism that increases the expressive power of the query vector. Specifically, we apply query mapping and a feed-forward network with residual connections following the MHA layers. + +Parallel-Attention Decoding. The edge-aware sub-encoder and node-focused sub-encoder produce two global embeddings, denoted as $h_{L}^{M}$ and $h_{L}^{N}$ , where the superscripts $M$ and $N$ indicate the edge-aware and node-focused encoding paths, respectively. During decoding, these embeddings are processed in parallel to obtain the decoder context vectors at decoding step $t$ , given by $H_{c}^{M} = [h_{1}^{M}, h_{t}^{M}]$ and $H_{c}^{N} = [h_{1}^{N}, h_{t}^{N}]$ . These vectors are used to form temporary queries: + +$$ +q ^ {M} = W _ {1} ^ {M} h _ {1} ^ {M} + W _ {2} ^ {M} h _ {t} ^ {M}, \tag {10} +$$ + +$$ +q ^ {N} = W _ {1} ^ {N} h _ {1} ^ {N} + W _ {2} ^ {N} h _ {t} ^ {N}, \tag {11} +$$ + +$$ +q = q ^ {M} + q ^ {N}, \tag {12} +$$ + +where $W_1^M, W_2^M, W_1^N$ and $W_2^N$ are learnable matrices that transform the start node embeddings $h_1^M, h_1^N$ and current node embeddings $h_t^M, h_t^N$ , respectively. Next, we apply MHA [24] separately to each set of context embeddings to obtain two intermediate outputs: + +$$ +A ^ {M} = \operatorname {M H A} \left(q, k ^ {M}, v ^ {M}\right), \tag {13} +$$ + +$$ +A ^ {N} = \operatorname {M H A} \left(q, k ^ {N}, v ^ {N}\right), \tag {14} +$$ + +where $k^M$ , $v^M$ and $k^N$ , $v^N$ are the keys and values derived from $h_L^M$ and $h_L^N$ , respectively. These outputs are linearly projected and aggregated: + +$$ +A ^ {2} = W _ {3} ^ {M} A ^ {M} + W _ {3} ^ {N} A ^ {N}, \tag {15} +$$ + +where $W_3^M$ and $W_3^N$ are learnable matrices. + +Query Mapping and Feed-Forward Layer. To further enrich the query representation, we introduce a query mapping transformation and a feed-forward layer with residual connection: + +$$ +q ^ {\prime} = A ^ {2} + \operatorname {Q M T} (q), \tag {16} +$$ + +$$ +q ^ {A} = q ^ {\prime} + \operatorname {F F} \left(q ^ {\prime}\right), \tag {17} +$$ + +where $\mathrm{QMT}(\cdot)$ is a linear projection that maps $q$ to the same dimensionality as $A^2$ , defined as: + +$$ +\operatorname {Q M T} (q) = \delta^ {\mathrm {Q M T}} q. \tag {18} +$$ + +Here, $\delta^{\mathrm{QMT}}$ is a learnable weight matrix. Given the final context vector $q^{A}$ , we compute a score $\gamma_{j}$ for each node $j$ using a masked single-head attention mechanism: + +$$ +\gamma_ {j} = \left\{ \begin{array}{l l} C \cdot \tanh \left(\frac {q ^ {A} \left(k _ {j} ^ {M} + k _ {j} ^ {N}\right)}{\sqrt {d _ {k}}}\right), & \text {i f j u n v i s i t e d} \\ - \infty , & \text {o t h e r w i s e} \end{array} \right. \tag {19} +$$ + +where $d_{k}$ is the dimensionality of the key vectors, and $C$ is a scaling constant. The final selection probability for node $j$ is computed via the softmax function: + +$$ +\rho_ {j} = \operatorname {s o f t m a x} \left(\gamma_ {j}\right). \tag {20} +$$ + +At each decoding step, a node $\tau_{j}$ is sampled according to $\rho_{j}$ . Repeating this process for $n$ steps yields the full solution $\tau = (\tau_{1},\dots,\tau_{n})^{T}$ . In addition, we report the training algorithm in Appendix B. + +# 4 Experiments + +We evaluate the performance of UniteFormer on synthetic TSP and CVRP instances of varying sizes, under three input settings: node-only, edge-only, and hybrid. We also report results on standard real-world benchmarks from TSPLib and CVRPLib. The code is publicly available1. + +Baselines. 1) Traditional Solvers: Concorde [8], LKH3 [14], OR-Tools [25], and HGS [41]. 2) Learning-based Solvers: MatNet [23], GREAT [28], POMO [24], LEHD [31], GCN-BS [18], DAR [44] and ICAM [49]. In order to compare POMO with UniteFormer on edge-base input, we re-implement POMO using edge-only inputs (denoted as POMO-edge). More detailed descriptions of these baselines are presented in Appendix D. + +Problem Setting. We follow the standard data generation procedures from prior work [24] to create training and testing datasets for TSP and CVRP with $n = 20, 50, 100$ , where $n$ denotes the number of nodes. The problem setups and implementation details are presented in Appendix C. + +Model Setting. The edge-aware sub-encoder consists of one layer of mixed-score MHA, three layers of GCN and MLP, and one self-attention layer. The node-focused sub-encoder consists of three attention layers. In each attention layer, the head number of MHA is set to 16, the embedding dimension is set to 256, and the feed-forward layer dimension is set to 512. + +Training and Inference. We use the REINFORCE algorithm [46], training each model for 1,010 epochs with 100,000 instances per epoch. The Adam [20] optimizer is used with an initial learning rate of $4e^{-4}$ and weight decay is set to $1e^{-6}$ . We adopt the POMO inference algorithm [24] and report both the optimality gap and inference time. A separate set of 10,000 uniformly generated instances is used for testing. All experiments were conducted on a single Tesla V100-SXM2-32GB GPU. More experiment setup details are presented in Appendix D. + +# 4.1 Experimental Results + +We train a single unified model capable of handling three input types: edge-only, node-only, and hybrid input. Table 1 reports the performance of UniteFormer on uniformly distributed TSP and CVRP instances across various problem sizes and input modalities. UniteFormer consistently outperforms existing learning-based methods in both greedy $(\times 1)$ and instance-augmented $(\times 8)$ inference, while maintaining competitive inference times. Additionally, following MatNet [23], we also report results under large-scale augmentation $(\times 128)$ for edge-based input. + +TSP. For edge-based input, UniteFormer significantly outperforms both POMO-edge, MatNet and GREAT across all sizes studied. Notably, its performance with $\times 8$ augmentation exceeds that of MatNet's $\times 128$ augmentation, highlighting the efficiency of the UniteFormer. For node-based input, UniteFormer achieves superior results over node-based neural solvers, including POMO and even the strong LEHD model, in both greedy and $\times 8$ inference. For hybrid edge-node input, UniteFormer also surpasses methods such as GCN-BS, DAR, and ICAM across all scales studied. The advantage is particularly evident on TSP100, where UniteFormer achieves the lowest optimality gap of just $0.0589\%$ among all neural baselines in Table 1. Furthermore, our edge-based UniteFormer even outperforms not only node-based models like POMO, but also hybrid models like DAR and ICAM, demonstrating its strong generalization and representational capacity. + +CVRP. Similarly, for CVRP, UniteFormer exhibits robust performance across all input types. In the edge-based setting, UniteFormer outperforms both POMO-edge and MatNet in greedy and instance-augmented inference. Its performance with $\times 8$ augmentation even exceeds MatNet's $\times 128$ augmentation results. In the node-based and hybrid settings, UniteFormer again achieves the best results among all compared neural solvers. Specifically, on CVRP100, the hybrid-input version of UniteFormer achieves the lowest average optimality gap of $0.5963\%$ . Notably, in the edge-only setting, UniteFormer even surpasses several node-based or hybrid methods, including POMO, DAR, and ICAM. These results comprehensively demonstrate the effectiveness, robustness, and versatility of UniteFormer across a range of problem sizes and input modalities. + +# 4.2 Ablation Study + +Edge only vs. Node only vs. Edge and Node only vs. UniteFormer. Table 2 presents the results of our ablation study comparing UniteFormer with three training variants. At test time, we evaluate models under three input configurations: Input-edge (only edge features are provided), Input-node (only node features are provided), and Input-XE (both edge and node features are available). The first variant, denoted as w.o. UF-Edge, is trained exclusively with edge inputs. The second variant, + +Table 1: Experimental results on TSP and CVRP with uniformly distributed instances. The results of methods with an asterisk (#) are directly obtained from the original paper. BS: Beam search, BS*: Beam search and shortest tour heuristic. UniteFormer-E: Our UniteFormer takes edge as input; '-X': the UniteFormer takes node as input; '-XE': the UniteFormer takes edge and node as input. + +
MethodTSP20TSP50TSP100
Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)
Concorde3.8310.0004.435.6910.00023.537.7630.00066.45
LKH33.8310.0002.785.6910.00017.217.7630.00049.56
OR-Tools3.8640.8641.165.8512.79510.758.0573.78239.05
edgePOMO-edge3.8370.1640.105.7190.4820.247.9192.0031.34
MatNet(x1)3.8320.0440.115.7090.3030.137.8360.9400.52
MatNet(x8)3.8310.0020.225.6940.0501.247.7950.4105.28
MatNet(x128)3.8310.0005.715.6920.01316.477.7760.17060.11
GREAT(x1)#------7.8501.2102.00
GREAT(x8)#------7.8200.81018.00
UniteFormer-E(x1)3.8310.0200.115.6970.0950.327.7890.3321.61
UniteFormer-E(x8)3.8310.0000.225.6920.0041.057.7700.0865.12
UniteFormer-E(x128)3.8310.0002.745.6910.00019.677.7650.01965.21
nodePOMO(x1)3.8310.0180.085.6980.1190.247.7920.3641.03
POMO(x8)3.8310.0010.115.6930.0240.457.7740.1422.01
LEHD Greedy3.8670.9610.145.7210.5190.247.8080.5771.37
UniteFormer-X(x1)3.8310.0110.115.6960.0720.327.7880.3161.62
UniteFormer-X(x8)3.8310.0000.225.6920.0041.047.7700.0855.15
edge+nodeGCN3.8550.6500.255.9013.6781.218.4138.3736.25
GCN-BS3.8350.1280.815.7100.3174.627.9312.15517.73
GCN-BS*3.8310.00021.255.6940.04137.637.8691.36858.34
DAR(x1)3.8310.0210.085.7020.1810.267.8030.5121.12
DAR(x8)3.8310.0010.125.6941.0400.527.7790.2011.72
ICAM(x1)3.8310.0220.075.7010.1720.227.8060.550.99
ICAM(x8)3.8310.0020.115.6940.4170.487.7800.221.34
UniteFormer-XE(x1)3.8310.0090.115.6950.0550.327.7820.2431.62
UniteFormer-XE(x8)3.8310.0000.225.6920.0031.067.7680.0595.19
MethodCVRP20CVRP50CVRP100
Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)
LKH36.1170.0002.15h10.3470.0008.52h15.6470.00013.46h
HGS6.112-0.0791.48h10.347-0.0014.67h15.584-0.4016.54h
OR-Tools6.4144.8632.3711.2198.43019.3517.1729.7492.61h
edgePOMO-edge6.1600.7000.1210.5251.7250.3515.9431.8931.53
MatNet(x1)6.1720.9070.1210.7874.2530.2116.2804.4011.02
MatNet(x8)6.1460.4690.5810.6352.7871.2316.1173.3564.65
MatNet(x128)6.1310.2299.9310.5381.84717.9315.9892.53069.05
UniteFormer-E(x1)6.1460.4860.0610.4711.2040.5615.8681.4161.95
UniteFormer-E(x8)6.1250.1400.2310.4160.6681.2915.7660.7656.01
UniteFormer-E(x128)6.1190.0363.4710.3870.38419.4415.7050.37476.43
nodePOMO(x1)6.1600.6980.0610.5331.7990.1815.8371.2160.64
POMO(x8)6.1320.2540.2010.4370.8750.4815.7540.6892.11
LEHD Greedy6.4625.6470.0710.8725.0750.1816.2173.6480.55
UniteFormer-X(x1)6.1450.4540.0610.4721.2100.5615.8561.3351.95
UniteFormer-X(x8)6.1260.1550.2210.4190.6941.2615.7530.6726.05
edge+nodeDAR(x1)6.1610.7150.0810.5371.8420.1915.9061.6591.02
DAR(x8)6.1320.2400.1310.4410.9070.4915.7830.8732.23
ICAM(x1)6.1600.7030.0810.5021.5040.1315.9551.9720.62
ICAM(x8)6.1320.2460.1210.4390.8860.3915.8331.1921.77
UniteFormer-XE(x1)6.1430.4300.0610.4651.1390.5615.8371.2191.95
UniteFormer-XE(x8)6.1260.1460.2210.4150.6601.2815.7400.5966.05
+ +w.o. UF-Node, is trained only with node inputs. The third variant, w.o. UF-XE, is trained solely on combined edge-node inputs. In contrast, our full UniteFormer model is trained using a hybrid strategy, where the input type (edge, node, or both) is randomly selected for each batch during training. As shown in Table 2, each variant performs well on its respective training input type but shows significant performance drops on other types. In contrast, UniteFormer consistently performs well in all input settings, demonstrating its ability to generalize effectively regardless of the input + +Table 2: Ablations of three input variants of UniteFormer on uniformly distributed instances. + +
TSP50w.o. UF-Edgew.o. UF-Nodew.o. UF-XEUniteFormer
Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)
Concorde5.6910.00023.535.6910.00023.535.6910.00023.535.6910.00023.53
edgeinput-edge(x1)5.6940.0410.3211.922109.4790.3212.349116.9760.325.6970.0950.32
input-edge(x8)5.6920.0021.0510.03376.2781.0510.16178.5241.045.6920.0041.05
nodeinput-node(x1)8.42448.0100.325.6980.1210.325.9514.5660.325.6960.0720.32
input-node(x8)7.47331.2931.045.6920.0111.055.8011.9291.055.6920.0041.04
X+Einput-XE(x1)6.62016.3160.325.7260.6040.325.6950.0690.325.6950.0550.32
input-XE(x8)6.2259.3701.045.6960.0851.045.6920.0031.045.6920.0031.04
CVRP50w.o. UF-Edgew.o. UF-Nodew.o. UF-XEUniteFormer
Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)
LKH310.3470.0008.52h10.3470.0008.52h10.3470.0008.52h10.3470.0008.52h
edgeinput-edge(x1)10.4571.0690.5632.755216.5670.5628.768178.0410.5610.4711.2040.56
input-edge(x8)10.4120.6331.2631.360203.0921.2627.555166.3171.2710.4160.6681.26
nodeinput-node(x1)24.763139.3320.5610.4551.0480.5611.2809.0180.5610.4721.2060.56
input-node(x8)17.78071.8401.2610.4100.6141.2610.9665.9871.2610.4190.6941.26
X+Einput-XE(x1)12.49120.7200.5610.4551.0480.5610.4490.9910.5610.4651.1390.56
input-XE(x8)11.57611.8771.2610.4100.6141.2610.4070.5771.2710.4150.6601.26
+ +Table 3: Experimental results on TSPLIB and CVRPLIB. + +
MethodTSPLIB1-100TSPLIB101-300TSP301-500
Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)
OPT19499.5830.000-56902.8000.000-35772.5000.000-
edgePOMO-edge26434.49338.1770.1186680.09452.5570.1366931.09685.8990.24
MatNet(x1)20222.3584.9480.0963182.8229.0610.1950811.85441.9480.28
MatNet(x8)19748.7072.1190.1661892.6517.4260.2649611.24938.6780.37
UniteFormer-E(x1)20263.1714.4190.0962497.07011.3220.1249688.93138.3590.21
UniteFormer-E(x8)19723.7571.6210.1758916.9753.0280.2542414.25118.3080.35
nodePOMO(x1)19625.7371.0690.0859779.1033.4050.1148074.88233.9550.10
POMO(x8)19552.9370.7810.1459595.0072.8380.2345171.93126.2000.11
LEHD Greedy19891.0012.3820.1158443.2612.3820.2439391.62910.6300.32
UniteFormer-X(x1)20079.5254.3160.0958632.5372.6780.1239599.27110.8070.22
UniteFormer-X(x8)19549.6640.6140.1857726.7701.0920.2638983.6579.2520.35
edge+nodeDAR(x1)19767.7801.9810.0858354.6242.0140.1141488.96715.8560.21
DAR(x8)19616.9851.1230.1457948.5451.4470.2339834.71712.3760.33
ICAM(x1)19657.9841.0660.0859456.4233.1250.1141754.69116.5070.21
ICAM(x8)19622.8400.8430.1458512.7892.0040.2340771.39613.9230.31
UniteFormer-XE(x1)19916.7072.5850.1058051.0561.9190.1240213.12212.4820.21
UniteFormer-XE(x8)19567.8800.6530.1857848.5451.2380.2439775.66711.1110.35
MethodCVRPLIB1-100CVRP101-300CVRP301-500
Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)
OPT915.5740.000-33184.4830.000-97160.0000.000-
edgePOMO-edge1787.38394.6930.2161150.353108.3370.23195349.248135.1740.45
MatNet(x1)990.1868.3550.1641257.80827.9620.25119378.47224.9760.42
MatNet(x8)974.0156.4850.2237060.39112.7660.32111725.10716.3380.68
UniteFormer-E(x1)968.4875.7830.1940601.85323.2990.25112460.49118.1920.45
UniteFormer-E(x8)942.3923.0400.2336259.0839.4850.38110828.85914.6570.72
nodePOMO(x1)980.1377.8930.1136514.5789.2600.18113101.59417.0370.35
POMO(x8)953.5644.7270.2236004.9307.5610.26110642.21114.4880.45
LEHD Greedy1411.7055.5170.2843841.53211.7340.45116158.49015.1940.77
UniteFormer-X(x1)953.2034.2660.1935784.0848.9450.26112799.94313.8970.45
UniteFormer-X(x8)934.1852.1160.2234971.0755.3530.38105541.7087.8550.73
edge+nodeDAR(x1)959.2785.0600.1835482.0627.4260.26109347.0259.4490.44
DAR(x8)937.2612.5680.2434990.4185.5300.37104165.2437.7580.62
ICAM(x1)960.9425.2720.1738232.51111.4890.25117786.20915.7710.42
ICAM(x8)940.8823.0030.2435881.7807.3380.39110088.65510.8230.67
UniteFormer-XE(x1)951.3863.9940.1936184.1857.3060.25107177.9818.7980.45
UniteFormer-XE(x8)932.6981.9400.2234989.5075.1460.38104911.9956.8890.72
+ +modality. This result highlights the strength of our unified training approach in producing a robust and versatile model. + +Further architectural ablation studies of the three components of the UniteFormer architecture are reported in Appendix E. These experimental results also demonstrate their positive contribution to the UniteFormer, proving the effectiveness and indispensability of each component. + +# 4.3 Generalization + +Table 3 summarizes the results on real-world TSPLIB [36] and CVRPLIB [39] instances of various sizes and distributions. We categorize them into three groups by size: $N = 1 - 100$ , $N = 101 - 300$ , and $N = 301 - 500$ . Generalization results show that the UniteFormer performs best on instances with no more than 100 nodes and slightly less effectively on 101-300 node instances. Overall, UniteFormer shows excellent generalization ability on both TSPLIB and CVRPLIB. For TSP, UniteFormer generalizes better with node-only input. For CVRP, it performs exceptionally well with hybrid input. + +Additionally, to demonstrate UniteFormer's strong generalization and scalability, we extend our investigation to the Asymmetric Traveling Salesman Problem (ATSP). Due to the asymmetric nature of ATSP, we can naturally solve it using the edge-based UniteFormer framework, which also exhibits superior performance. The detailed experimental results are shown in Appendix F. + +# 5 Conclusion, Limitation and Future work + +Conclusion: In this work, we propose UniteFormer, a unified neural solver that supports three input types through a single model trained via joint edge-node modalities. We propose a mixed encoder that integrates GCNs and attention mechanisms to collaboratively process node and edge features, capturing cross-modal interactions. Furthermore, we implement a parallel decoding strategy and enhance the decoder's representation ability by adding query mapping and nonlinear layers. Extensive experimental comparisons with other modality-specific models demonstrate UniteFormer's promising performance. Due to the efficiency and practicality of UniteFormer, we believe it can provide valuable insights and inspire follow-up work to explore more powerful unified neural solvers for edge-node modalities. + +Limitation and Future Work: Although our UniteFormer performs well on all three input types, its heavy encoder results in high training and equipment demands, making large-scale problem training challenging. Trimming UniteFormer into a lightweight model for large-scale VRPs [48] is a worthwhile direction for future research. Another promising future work is to extend UniteFormer to solve multi-task VRPs [50, 5] with joint modalities. + +# Acknowledgments + +This work was supported in part by the National Natural Science Foundation of China under Grant 62372081, the Young Elite Scientists Sponsorship Program by CAST under Grant 2022QNRC001, the Liaoning Provincial Natural Science Foundation Program under Grant 2024010785-JH3/107, the Dalian Science and Technology Innovation Fund under Grant 2024JJ12GX020, the Dalian Major Projects of Basic Research under Grant 2023JJ11CG002 and the 111 Project under Grant D23006. This research/project is supported by the National Research Foundation, Singapore under its AI Singapore Programme (AISG Award No: AISG3-RP-2022-031). + +# References + +[1] Ahmad Bdeir, Jonas K Falkner, and Lars Schmidt-Thieme. “Attention, filling in the gaps for generalization in routing problems”. In: Joint European Conference on Machine Learning and Knowledge Discovery in Databases. 2022, pp. 505–520. +[2] Irwan Bello et al. "Neural Combinatorial Optimization with Reinforcement Learning". In: 5th International Conference on Learning Representations, ICLR, Toulouse, France, Workshop Track Proceedings. 2017. +[3] Yoshua Bengio, Andrea Lodi, and Antoine Prouvost. "Machine learning for combinatorial optimization: a methodological tour d'horizon". In: European Journal of Operational Research 290.2 (2021), pp. 405-421. +[4] Federico Berto et al. "RL4CO: an Extensive Reinforcement Learning for Combinatorial Optimization Benchmark". In: Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 2025. +[5] Federico Berto et al. "RouteFinder: Towards Foundation Models for Vehicle Routing Problems". In: Transactions on Machine Learning Research (2025). ISSN: 2835-8856. + +[6] Xavier Bresson and Thomas Laurent. "Residual gated graph convnets". In: arXiv preprint arXiv:1711.07553 (2017). +[7] Jill Cirasella et al. "The asymmetric traveling salesman problem: Algorithms, instance generators, and tests". In: Workshop on algorithm engineering and experimentation. Springer. 2001, pp. 32-59. +[8] William J Cook et al. The traveling salesman problem: a computational study. Princeton university press, 2011. +[9] Darko Drakulic, Sofia Michel, and Jean-Marc Andreoli. “GOAL: A Generalist Combinatorial Optimization Agent Learner”. In: The Thirteenth International Conference on Learning Representations, ICLR. 2025. +[10] Darko Drakulic et al. "BQ-NCO: Bisimulation Quotienting for Efficient Neural Combinatorial Optimization". In: Advances in Neural Information Processing Systems, NeurIPS. 2023. +[11] Vijay Prakash Dwivedi and Xavier Bresson. "A Generalization of Transformer Networks to Graphs". In: AAAI Workshop on Deep Learning on Graphs: Methods and Applications (2021). +[12] Mouhcine Elgarej, Mansouri Khalifa, and Mohamed Youssfi. "Optimized path planning for electric vehicle routing and charging station navigation systems". In: Research Anthology on Architectures, Frameworks, and Integration Strategies for Distributed and Cloud Computing. IGI Global, 2021, pp. 1945-1967. +[13] Kaiming He et al. “Deep residual learning for image recognition”. In: Proceedings of the IEEE conference on computer vision and pattern recognition. 2016, pp. 770–778. +[14] Keld Helsgaun. "An extension of the Lin-Kernighan-Helsgaun TSP solver for constrained traveling salesman and vehicle routing problems". In: Roskilde: Roskilde University 12 (2017), pp. 966-980. +[15] Ziwei Huang et al. "Rethinking Light Decoder-based Solvers for Vehicle Routing Problems". In: The Thirteenth International Conference on Learning Representations, ICLR. 2025. +[16] Sergey Ioffe and Christian Szegedy. "Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift". In: Proceedings of the 32nd International Conference on Machine Learning, ICML. Vol. 37. 2015, pp. 448-456. +[17] Xia Jiang et al. “DRoC: Elevating large language models for complex vehicle routing via decomposed retrieval of constraints”. In: 13th international Conference on Learning Representations, ICLR. 2025. +[18] Chaitanya K Joshi, Thomas Laurent, and Xavier Bresson. "An efficient graph convolutional network technique for the travelling salesman problem". In: arXiv preprint arXiv:1906.01227 (2019). +[19] Minsu Kim, Junyoung Park, and Jinkyoo Park. "Sym-NCO: Leveraging Symmetricity for Neural Combinatorial Optimization". In: Advances in Neural Information Processing Systems, NeurIPS. Vol. 35. 2022, pp. 1936-1949. +[20] Diederik P. Kingma and Jimmy Ba. "Adam: A Method for Stochastic Optimization". In: 3rd International Conference on Learning Representations, ICLR. 2015. +[21] Grigorios D Konstantakopoulos, Sotiris P Gayialis, and Evripidis P Kechagias. "Vehicle routing problem and related algorithms for logistics distribution: A literature review and classification". In: Operational research 22.3 (2022), pp. 2033-2062. +[22] Wouter Kool, Herke Van Hoof, and Max Welling. “Attention, learn to solve routing problems!” In: the 6th International Conference on Learning Representations, ICLR. 2019. +[23] Yeong-Dae Kwon et al. "Matrix encoding networks for neural combinatorial optimization". In: Advances in Neural Information Processing Systems, NeurIPS. Vol. 34. 2021, pp. 5138-5149. +[24] Yeong-Dae Kwon et al. “POMO: Policy Optimization with Multiple Optima for Reinforcement Learning”. In: Advances in Neural Information Processing Systems, NeurIPS. Vol. 33. 2020, pp. 21188-21198. +[25] Laurent Perron and Vincent Furnon. Or-tools. https://developers.google.com/optimization/. 2023. +[26] Qi Li et al. "Diversity Optimization for Travelling Salesman Problem via Deep Reinforcement Learning". In: Proceedings of the 31th ACM SIGKDD Conference on Knowledge Discovery & Data Mining. 2025. + +[27] Zhuoyi Lin et al. "Cross-problem learning for solving vehicle routing problems". In: Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI. 2024, pp. 6958–6966. +[28] Attila Lischka et al. “A GREAT Architecture for Edge-Based Graph Problems Like TSP”. In: arXiv preprint arXiv:2408.16717 (2024). +[29] Fei Liu et al. "Multi-task learning for routing problem with cross-problem zero-shot generalization". In: Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 2024, pp. 1898-1908. +[30] Suyu Liu et al. “A Mixed-Curvature based Pre-training Paradigm for Multi-Task Vehicle Routing Solver”. In: International Conference on Machine Learning, ICML. 2025. +[31] Fu Luo et al. "Neural Combinatorial Optimization with Heavy Decoder: Toward Large Scale Generalization". In: Advances in Neural Information Processing Systems, NeurIPS. Vol. 36. 2023, pp. 8845-8864. +[32] Nina Mazyavkina et al. "Reinforcement learning for combinatorial optimization: A survey". In: Computers & Operations Research 134 (2021), p. 105400. +[33] Dian Meng et al. "EFormer: An Effective Edge-based Transformer for Vehicle Routing Problems". In: Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI. 2025, pp. 8582-8590. +[34] MohammadReza Nazari et al. "Reinforcement Learning for Solving the Vehicle Routing Problem". In: Advances in Neural Information Processing Systems, NeurIPS. 2018, pp. 9861-9871. +[35] Yun Peng, Byron Choi, and Jianliang Xu. "Graph learning for combinatorial optimization: a survey of state-of-the-art". In: Data Science and Engineering 6.2 (2021), pp. 119-141. +[36] Gerhard Reinelt. "TSPLIB—A traveling salesman problem library". In: ORSA journal on computing 3.4 (1991), pp. 376-384. +[37] Frank Ruis, Gertjan J. Burghouts, and Doina Bucur. "Independent Prototype Propagation for Zero-Shot Compositionality". In: Advances in Neural Information Processing Systems, NeurIPS. Vol. 34. 2021, pp. 10641-10653. +[38] Quinlan Sykora, Mengye Ren, and Raquel Urtasun. "Multi-agent routing value iteration network". In: International Conference on Machine Learning, ICML. 2020, pp. 9300-9310. +[39] Eduardo Uchoa et al. "New benchmark instances for the capacitated vehicle routing problem". In: European Journal of Operational Research 257.3 (2017), pp. 845-858. +[40] Ashish Vaswani et al. "Attention is all you need". In: Advances in neural information processing systems, NeurIPS 30 (2017). +[41] Thibaut Vidal. "Hybrid genetic search for the CVRP: Open-source implementation and SWAP* neighborhood". In: Computers & Operations Research 140 (2022), p. 105643. +[42] Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. “Pointer Networks”. In: Advances in Neural Information Processing Systems, NeurIPS. 2015, pp. 2692–2700. +[43] Chenguang Wang et al. "Efficient Training of Multi-task Neural Solver for Combinatorial Optimization". In: Transactions on Machine Learning Research 2025 (2023). +[44] Yang Wang et al. "Distance-Aware Attention Reshaping for Enhancing Generalization of Neural Solvers". In: IEEE Transactions on Neural Networks and Learning Systems PP (July 2025). +[45] Zheng Wang and Jiuh-Biing Sheu. "Vehicle routing problem with drones". In: Transportation research part B: methodological 122 (2019), pp. 350-364. +[46] Ronald J Williams. "Simple statistical gradient-following algorithms for connectionist reinforcement learning". In: Machine learning 8 (1992), pp. 229-256. +[47] Yaoxin Wu et al. "Learning improvement heuristics for solving routing problems". In: IEEE transactions on neural networks and learning systems 33.9 (2021), pp. 5057-5069. +[48] Haoran Ye et al. “Glop: Learning global partition and local construction for solving large-scale routing problems in real-time”. In: Proceedings of the AAAI conference on artificial intelligence. 2024, pp. 20284–20292. +[49] Changliang Zhou et al. "Instance-conditioned adaptation for large-scale generalization of neural combinatorial optimization". In: arXiv preprint arXiv:2405.01906 (2024). +[50] Jianan Zhou et al. "MVMoE: Multi-Task Vehicle Routing Solver with Mixture-of-Experts". In: Forty-first International Conference on Machine Learning, ICML. 2024. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The claims presented in the abstract and introduction of this article clearly reflect the contribution of the paper and are consistent with the experimental results. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: The limitations of our method is addressed in the conclusion, Limitation and Future (Section 5). + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +# Answer: [NA] + +Justification: The paper does not include theoretical results. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: Our experiments are reproducible, as we clearly articulate our methodology in the manuscript. In Section 3, we provide the architecture of the main model, and in Section 4 and Appendix D, we detail the experimental settings including parameters, optimizers, and other configurations. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. + +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. + +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. + +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. + +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example + +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [No] + +Justification: Due to certain corporate restrictions, we are unable to release the code at this time, but it will be made available publicly upon acceptance. The implementation methods and detailed descriptions of the experiments can be found in Section 3 and Section 4, as well as in Appendix C and Appendix D. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: We provided the all experimental settings in Section 4 and Appendix D. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [Yes] + +Justification: The experimental results are obtained by testing a set of 10,000 uniformly generated instances from different problems, and we report relevant metrics, such as path length and gap, to evaluate the performance. Our model follows the POMO training algorithm [24], which has been subjected to t-test. + +Guidelines: + +- The answer NA means that the paper does not include experiments. + +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: The GPU used in our experiments is detailed in Section 4. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We have thoroughly examined the NeurIPS Code of Ethics to ensure that our submission adheres to the anonymization requirements and does not include any identifying details that could compromise the double-blind review process. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: Both potential positive and negative societal impacts of our work are analyzed in Section 5 and Appendix G. + +# Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [No] + +Justification: The data we utilize consists of node coordinates, detailed in Section 4 and Appendix C. Additionally, the unified Neural Solver is employed to construct tours for VRPs. We assess that there are no significant risks of misuse associated with our paper. + +# Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We have cited the original paper of the assets. + +# Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. + +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: We will make our source code publicly available upon the acceptance of this paper. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: The core method development in this research does not involve LLMs as any important, original, and non-standard components. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# A Details of Attention Computation + +# A.1 Mixed-Score Attention + +To incorporate external relational priors—such as graph adjacency or edge distances—alongside content-based similarity scores, we replace each head's standard scaled dot-product attention with a mixed-score attention mechanism, while preserving the remaining components of the Transformer's multi-head attention block (as in MatNet [23]). The original scaled dot-product attention computes attention weights by applying SoftMax to the pairwise scaled dot-products of queries and keys and then uses those weights to form a weighted sum of the value vectors. By contrast, the mixed-score attention supplements these internal attention scores with externally given relationship scores for every query-key pair. Specifically, the mixed-score attention mechanism mixes the internal attention scores and the external relationship scores before passing them to the next "SoftMax" stage. Similar mixing strategies have been explored by [38] and [11]. + +Formally, by defining dimensions $d_k$ and $d_v$ , we compute the key $k_i \in \mathbb{R}^{d_k}$ , value $v_i \in \mathbb{R}^{d_v}$ , and query $q_i \in \mathbb{R}^{d_k}$ for each node by projecting the embedding $h_i$ : + +$$ +q _ {i} = W ^ {Q} h _ {i}, \quad k _ {i} = W ^ {K} h _ {i}, \quad v _ {i} = W ^ {V} h _ {i}, \tag {21} +$$ + +where $W^{Q} \in \mathbb{R}^{d_{k} \times d_{h}}$ , $W^{K} \in \mathbb{R}^{d_{k} \times d_{h}}$ , and $W^{V} \in \mathbb{R}^{d_{v} \times d_{h}}$ are learnable weight matrices. + +Internal and External Scores: Afterwards, we compute the internal attention scores $S_{ij}^{\mathrm{int}}$ by taking the scaled dot-products of each query-key pair and derive the external relationship scores $S_{ij}^{\mathrm{ext}}$ from the edge weight matrix $D_{ij}$ : + +$$ +S _ {i j} ^ {\text {i n t}} = \frac {q _ {i} ^ {T} k _ {j}}{\sqrt {d _ {k}}}, \quad S _ {i j} ^ {\text {i n t}} \in \mathbb {R} ^ {n \times n}, \tag {22} +$$ + +$$ +S _ {i j} ^ {\text {e x t}} = g _ {\theta} \left(D _ {i j}\right), \quad S _ {i j} ^ {\text {e x t}} \in \mathbb {R} ^ {n \times n}, \tag {23} +$$ + +where $S_{ij}^{\mathrm{int}}$ denotes internal attention scores, $S_{ij}^{\mathrm{ext}}$ denotes the external relationship scores, $D_{ij} \in \mathbb{R}^{n \times n}$ encodes a known relationship (edge weight matrix) between positions $(i,j)$ , and $g_{\theta}$ is an optional learnable scalar or nonlinear mapping applied element-wise. + +Mixed Score via Element-Wise MLP: For each attention head $h$ , we employ a compact two-layer perceptron $f_{\phi_h}:\mathbb{R}^2\to \mathbb{R}$ , parameterized by $\phi_h = \{W_1^h,b_1^h,W_2^h,b_2^h\}$ , to fuse the internal and external scores on an element-wise basis: + +$$ +S _ {i j} ^ {\operatorname {m i x}} = f _ {\phi_ {h}} \left(S _ {i j} ^ {\operatorname {i n t}}, S _ {i j} ^ {\operatorname {e x t}}\right) = W _ {2} ^ {h} \sigma \left(W _ {1} ^ {h} \left[ S _ {i j} ^ {\operatorname {i n t}}, S _ {i j} ^ {\operatorname {e x t}} \right] ^ {\top} + b _ {1} ^ {h}\right) + b _ {2} ^ {h}, \tag {24} +$$ + +where $\sigma$ is the ReLU function, and $S_{ij}^{\mathrm{mix}}$ denotes the mixed scores. + +Softmax Normalization: Then, we perform softmax normalization on the mixed scores $S_{ij}^{\mathrm{mix}}$ : + +$$ +\alpha_ {i j} ^ {h} = \frac {\exp \left(S _ {i j} ^ {\operatorname* {m i x}}\right)}{\sum_ {j ^ {\prime} = 1} ^ {n} \exp \left(S _ {i j ^ {\prime}} ^ {\operatorname* {m i x}}\right)}, \tag {25} +$$ + +Subsequently, the attention vector $\alpha_{ij}^{h}$ is transformed into a convex combination of the messages $v_{j}^{h}$ , and the specific-head attention output $z_{i}^{h}$ is obtained: + +$$ +z _ {i} ^ {h} = \sum_ {j = 1} ^ {n} \alpha_ {i j} ^ {h} v _ {j} ^ {h}, \quad \mathbf {Z} ^ {h} = \left[ z _ {1} ^ {h}, \dots , z _ {n} ^ {h} \right] \in \mathbb {R} ^ {d _ {h} \times d _ {v}}. \tag {26} +$$ + +# A.2 Self-Attention + +Self-attention is a mechanism that dynamically assigns weights to each position within a sequence, capturing global dependencies by allowing each element in the sequence to interact with itself and other elements. We interpret the attention mechanism in [40] as a weighted message-passing algorithm between nodes in a graph. The weight of the message value that a node receives from + +its neighbors depends on the compatibility of its query with the keys of its neighbors. Formally, we define dimensions $d_{k}$ and $d_v$ and compute the key $k_{i}\in \mathbb{R}^{d_{k}}$ , value $v_{i}\in \mathbb{R}^{d_{v}}$ and query $q_{i}\in \mathbb{R}^{d_{k}}$ for each node by projecting the embedding $h_i$ : + +$$ +q _ {i} = W ^ {Q} h _ {i}, \quad k _ {i} = W ^ {K} h _ {i}, \quad v _ {i} = W ^ {V} h _ {i}, \tag {27} +$$ + +where $W^{Q} \in \mathbb{R}^{d_{k} \times d_{h}}$ , $W^{K} \in \mathbb{R}^{d_{k} \times d_{h}}$ , and $W^{V} \in \mathbb{R}^{d_{v} \times d_{h}}$ are learnable weight matrices. From the queries and keys, we compute the compatibility $u_{ij} \in \mathbb{R}$ of the query $q_{i}$ of node $i$ with the key $k_{j}$ of node $j$ as the (scaled) dot product: + +$$ +u _ {i j} = \left\{ \begin{array}{l l} \frac {q _ {i} ^ {T} k _ {j}}{\sqrt {d _ {k}}}, & \text {i f i a d j a c e n t t o j} \\ - \infty . & \text {o t h e r w i s e} \end{array} \right. \tag {28} +$$ + +From the compatibilities $u_{ij}$ , we compute the attention weights $a_{ij} \in [0,1]$ using a softmax function: + +$$ +a _ {i j} = \frac {e ^ {u _ {i j}}}{\sum_ {j ^ {\prime}} e ^ {u _ {i j ^ {\prime}}}}. \tag {29} +$$ + +After that, the vector $h_i'$ that is received by node $i$ is the convex combination of messages $v_j$ : + +$$ +h _ {i} ^ {\prime} = \sum_ {j} a _ {i j} v _ {j}. \tag {30} +$$ + +Finally, we normalize the vector $h_i$ and use the feed-forward sublayer to compute the node-by-node projection: + +$$ +\hat {h} _ {i} ^ {\prime} = \operatorname {N O R M} \left(h _ {i} + h _ {i} ^ {\prime}\right), \tag {31} +$$ + +$$ +h _ {i} ^ {c} = \operatorname {N O R M} \left(\hat {h} _ {i} ^ {\prime} + \operatorname {F F} \left(\hat {h} _ {i} ^ {\prime}\right)\right), \tag {32} +$$ + +where, $\mathrm{FF}(\cdot)$ is a feed-forward layer, and $\mathrm{NORM}(\cdot)$ applies batch normalization. The feed-forward sublayer computes node-wise projections using a hidden (sub)sublayer with dimension $d_{\mathrm{ff}} = 512$ and a ReLU activation. We use batch normalization with learnable $d_h$ -dimensional affine parameters $w^{\mathrm{bn}}$ and $b^{\mathrm{bn}}$ . The two sublayers are defined in detail as follows: + +$$ +\operatorname {F F} \left(\hat {h} _ {i}\right) = W ^ {\mathrm {f f}, 1} \cdot \operatorname {R e L U} \left(W ^ {\mathrm {f f}, 0} \hat {h} _ {i} + b ^ {\mathrm {f f}, 0}\right) + b ^ {\mathrm {f f}, 1}, \tag {33} +$$ + +$$ +\mathrm {B N} \left(h _ {i}\right) = w ^ {\mathrm {b n}} \odot \overline {{\mathrm {B N}}} \left(h _ {i}\right) + b ^ {\mathrm {b n}}. \tag {34} +$$ + +Here, $\odot$ denotes the element-wise product and $\overline{\mathrm{BN}}$ refers to batch normalization without affine transformation. + +# B Training Details + +We adopt the same reinforcement learning framework as POMO [24], using the REINFORCE algorithm [46] to train the UniteFormer. At each training step, we sample a set of $n$ solution trajectories $\{\tau^1,\dots ,\tau^n\}$ , compute their corresponding rewards $f(\tau^i)$ , and apply approximate gradient ascent to maximize the expected return $\mathcal{L}$ . The gradient of the objective $\mathcal{L}(\theta)$ with respect to model parameters $\theta$ is estimated as: + +$$ +\nabla_ {\theta} \mathcal {L} (\theta) \approx \frac {1}{n} \sum_ {i = 1} ^ {n} \left[ \left(f \left(\tau^ {i}\right) - b ^ {i} (s)\right) \nabla \log p _ {\theta} \left(\tau^ {i} | s\right) \right], \tag {35} +$$ + +where $b^{i}(s)$ is a baseline used to reduce variance in the gradient estimate. Following common practice, we use a shared baseline defined as the average reward across the sampled trajectories: + +$$ +b ^ {i} (s) = b _ {\text {s h a r e d}} (s) = \frac {1}{n} \sum_ {i = 1} ^ {n} f \left(\tau^ {i}\right), \tag {36} +$$ + +and the probability of a trajectory $\tau^i$ under the policy is factorized as: + +$$ +p _ {\theta} \left(\tau^ {i} \mid s\right) = \prod_ {t = 2} ^ {M} p _ {\theta} \left(a _ {t} ^ {i} \mid s, a _ {1: t - 1} ^ {i}\right), \tag {37} +$$ + +where $a_{t}^{i}$ denotes the action at step $t$ in trajectory $\tau^i$ , and $M$ is the length of the solution. + +Table 4: Experiment Hyperparameters. + +
HyperparameterValueHyperparameterValue
ModelTraining
Embedding dimension dh256Input choice ψcedge/node/edge+node
Number of attention heads Mh16Batch size1024/256/64
Number of encoder layers L_e3OptimizerAdam
Number of GCN layers L_g3Learning rate (LR)4e-4
Number of MLP layers L_m3Weight decay1e-6
K-nearest neighbors20LR schedulerMultiStepLR
Feedforward hidden dimension df512LR milestones[901,1001]
Feedforward activationReLULR gamma0.1
Tanh clipping ξ10.0Train data per epoch100,000
NormalizationBatchTraining epochs1010
+ +# C Implementation Details for TSP and CVRP + +# C.1 Problem Setup + +TSP. Solving a TSP instance with $n$ nodes requires finding the shortest loop that visits each node exactly once and eventually returns to the first visited node, where the distance between two nodes is the Euclidean distance. We generate TSP instances following AM [22], where the coordinates of $n$ nodes are randomly and uniformly sampled from the unit square. + +CVRP. The CVRP instance involves $n$ customer nodes and one depot node, where the coordinates of the customer nodes and the depot node are uniformly sampled from the unit square. Each customer node $i$ has a normalized demand $\hat{\delta}_i = \delta_i / D$ , where $\delta_i$ is sampled from the discrete set $\{1, 2, \dots, 9\}$ and the vehicle capacity $D = 30, 40, 50$ for problem sizes $N = 20, 50, 100$ , respectively. A delivery vehicle with unit capacity makes round trips starting and ending at the depot, delivering goods to customer nodes according to their demands and replenishing inventory at the depot, where each customer node is only allowed to be visited once. Our objective is to determine the shortest feasible set of routes that visits all nodes while respecting the vehicle's capacity constraint $D$ . + +# C.2 Implementation Details + +For a TSP/CVRP instance $G = \{X, E\}$ , the node features $\{x_1, \dots, x_n\}$ are the 2D-coordinates of the $n$ nodes in the graph, and the edge features $e(x_i, x_j) \in E$ are the edges between nodes $x_i$ and $x_j$ in the graph $G$ . Our UniteFormer supports three input modalities: 1) Edge-only input, where only edge weights $E$ are provided; 2) Node-only input, where only node coordinates $X$ are provided; 3) Hybrid input, where both node coordinates $X$ and edge weights $E$ are available. + +To formalize this, we introduce a modality-selection function $\psi_c \in \{0,1,2\}$ , where + +$$ +\psi_ {c} = \left\{ \begin{array}{l l} 0, & \text {e d g e - o n l y i n p u t}, \\ 1, & \text {n o d e - o n l y i n p u t}, \\ 2, & \text {h y b r i d i n p u t}. \end{array} \right. \tag {38} +$$ + +During training, we employ the REINFORCE algorithm to randomly select $\psi_c$ at each batch. This stochastic modality sampling encourages the model to learn robust representations under all three input scenarios. + +# D Experimental Details for UniteFormer + +# D.1 Experiment Baselines + +1) Traditional Solvers: For TSP, we use the non-learning solvers Concorde [8], LKH3 [14], and OR-Tools [25], which are known for providing strong results on TSP. Consistent with prior works [24, + +Table 5: Ablations of three key components of UniteFormer on uniformly distributed instances. + +
TSP50w.o. self-attentionw.o. node-focused subw.o. edge-aware sub-EUniteFormer
Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)
Concorde5.6910.00023.535.6910.00023.535.6910.00023.535.6910.00023.53
edgeinput-edge(x1)5.6990.1260.325.6970.0970.346.40212.4900.325.6970.0950.32
input-edge(x8)5.6920.0071.015.6920.0041.155.7651.2941.065.6920.0041.05
nodeinput-node(x1)5.6970.0980.315.6950.0690.345.69780.1110.335.6960.0720.32
input-node(x8)5.6920.0091.025.6920.0041.145.6920.0061.065.6920.0041.04
X+Einput-XE(x1)5.6950.0680.315.6950.0540.355.6970.1050.355.6950.0550.32
input-XE(x8)5.6920.0041.025.6920.0031.165.6920.0051.085.6920.0031.04
CVRP50w.o. self-attentionw.o. node-focused subw.o. edge-aware sub-EUniteFormer
Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)
LKH310.3470.0008.52h10.3470.0008.52h10.3470.0008.52h10.3470.0008.52h
edgeinput-edge(x1)10.4831.3120.5410.5291.7630.5815.11146.0430.5610.4711.2040.56
input-edge(x8)10.4260.7701.2410.4340.8411.3214.20337.2661.2910.4160.6681.26
nodeinput-node(x1)10.4901.3790.5410.5441.9090.5810.6773.1920.5610.4721.2060.56
input-node(x8)10.4210.7211.2410.4611.1031.2610.5371.8351.2810.4190.6941.26
X+Einput-XE(x1)10.4701.1920.5610.5311.7810.5910.6603.0280.5610.4651.1390.56
input-XE(x8)10.4170.6801.2510.4531.0281.3510.5261.7341.2810.4150.6601.26
+ +31], we calculate the performance gap relative to Concorde. For CVRP, we use the non-learning solvers LKH3 [14], HGS [41], and OR-Tools [25]. We calculate the performance gap relative to LKH3. + +2) Learning-based Solvers: Edge-only input: We compare with the current state-of-the-art MatNet [23] and GREAT [28], both of which use edge relationships as input for the problems. Among them, MatNet is retrained and evaluated on symmetric instances according to the original model design. Since GREAT has not published the code and data, the results are taken from their paper. Additionally, to fairly compare POMO-based models with UniteFormer, we also re-implemented POMO using edge-only input (denoted as POMO-edge). Node-only input: We use the public models of the classic node-based POMO [24] and LEHD [31] for comparative testing. Hybrid input: GCNBS [18], DAR [44] and ICAM [49] all use edge and node as model input. Since the codes of DAR and ICAM are unavailable, we re-implement and retrain DAR and ICAM according to the official settings, and the number of training epochs and data sets are consistent with our UniteFormer. + +# D.2 Experimental Hyperparameters + +We report the hyperparameter details common across the main experiments in Table 4. In the table, "Input choice" indicates that during training we randomly select one of the three input modalities for each batch. We employ three layers for the GCN, the MLP, and the node-focused sub-encoder. All normalization operations within the model are implemented using batch normalization [16]. + +# E Ablation Study of UniteFormer Architecture + +Table 5 reports ablation studies comparing UniteFormer against three structural variants to isolate the contributions of each component. One may ask: why incorporate self-attention into the edge-aware sub-encoder? Why disable the node-focused sub-encoder when edge-only input is used? And what if the edge-aware sub-encoder were to operate solely on edge features, ignoring node attributes? + +To answer these questions, we design three ablations: The first variant removes self-attention from the edge-aware sub-encoder (denoted by w.o. self-attention). The second variant adds the node-focused sub-encoder, transferring temporary node features to it when edge is as input (denoted by w.o. node-focused sub). The third variant feeds only edge features into the edge-aware sub-encoder, setting node features to zero embeddings (denoted as w.o. edge-aware sub-E). Across all input modalities, each variant trails the full UniteFormer configuration, as shown in Table 5. These results confirm that (a) self-attention in the edge-aware encoder is crucial for capturing edge-node interactions, (b) adding the node-focused sub-branch under edge-only input degrades performance, and (c) jointly leveraging both node and edge features yields superior representations. Overall, the ablation study demonstrates each component's positive contribution to the model and validates the effectiveness and design rationality of the UniteFormer architecture. + +Table 6: Experimental results on 10,000 instances of ATSP. + +
MethodATSP20ATSP50ATSP100
Len.Gap(%)Time(m)Len.Gap(%)Time(m)Len.Gap(%)Time(m)
CPLEX1.5400.00012.141.5590.00060.031.5710.0005.01h
Nearest Neighbor2.01030.390-2.10134.610-2.14036.100-
Nearest Insertion1.80016.560-1.95025.160-2.05030.790-
Furthest Insertion1.71011.230-1.84018.220-1.94023.370-
LKH31.5400.0000.121.5600.0000.241.5700.0001.12
MatNet(x1)1.5480.5330.061.5801.3500.151.6223.2420.62
MatNet(x8)1.5420.0840.311.5660.4721.231.6032.0864.24
MatNet(x128)1.5400.0124.721.5610.14416.551.5900.93461.03
UniteFormer(x1)1.5430.2450.151.5730.9170.241.6213.1700.76
UniteFormer(x8)1.5400.0430.361.5640.3391.221.6001.8415.07
UniteFormer(x128)1.5400.0014.011.5610.12918.091.5850.8801.32h
+ +# F Asymmetric Traveling Salesman Problem (ATSP) + +# F.1 Problem Setup + +In the classic TSP, the objective is to determine a tour over $N$ nodes that minimizes the total round-trip distance. For any two nodes $x_{i}$ and $x_{j}$ , the edge distance satisfies $d(x_{i},x_{j}) = d(x_{j},x_{i})$ , yielding an $N\times N$ symmetric distance matrix. To demonstrate UniteFormer's strong generalization and scalability beyond this symmetric setting, we extend our investigation to the Asymmetric Traveling Salesman Problem (ATSP). In ATSP, one seeks the shortest Hamiltonian circuit in a directed, weighted graph that visits each vertex exactly once and returns to the start. Unlike the classic TSP, the ATSP's distance matrix is non-symmetric, with edge weights satisfying $d(x_{i},x_{j})\neq (x_{j},x_{i})$ . Thus, it must accommodate both directional and weight asymmetries. + +Our edge-only UniteFormer framework naturally accommodates these asymmetric instances without modification and continues to exhibit excellent performance. Following MatNet's experimental protocol, we evaluate on tmat class ATSP instances that satisfy the triangle inequality and are widely used in the operations-research (OR) community [7]. We solve three problem sizes $(N = 20, 50, \text{and} 100)$ and confirm that UniteFormer retains its robustness and scalability under the more general ATSP setting. + +# F.2 Experiment Results + +Our UniteFormer is able to take edge-only information as input and can be easily extended to solve ATSP. We use randomly generated asymmetric distance matrices as input. Both the training and test datasets follow the data generation method of MatNet. + +Table 6 reports the performance of our trained model compared with other representative baseline algorithms on 10,000 test instances of tmat class ATSP. For each method, we report the average tour length (shown in units of $10^{6}$ ) and the percentage gap relative to CPLEX's optimal solutions. One of the key baselines compared in the table is the MatNet, which is an edge-based construction method designed for solving ATSP. + +The results in Table 6 demonstrate that UniteFormer consistently outperforms MatNet under both greedy inference $(\times 1)$ and instance augmentation $(\times 8, \times 128)$ inference, while maintaining relatively reasonable inference times. In particular, on the largest ATSP100 instances, our UniteFormer attains a modest performance advantage, albeit with a slightly increased runtime. These experiments confirm that our edge-driven UniteFormer achieves competitive performance on ATSP, showcasing its extensive adaptability and strong generalization. Collectively, they validate the effectiveness of the UniteFormer architecture for a broad spectrum of optimization challenges. + +# G Broader impacts + +The paper introduces UniteFormer, a unified neural solver for VRPs that flexibly accommodates three distinct input modalities through joint edge-node training. This design significantly enhances the practicality of neural solvers for real-world applications. Moreover, the underlying techniques generalize beyond VRPs, opening the door to a wide array of combinatorial optimization tasks. + +Our experiments demonstrate that, compared to state-of-the-art neural solvers trained on a single input modality, UniteFormer consistently delivers superior performance across diverse VRP variants. This unified approach not only streamlines training by eliminating the need for separate models per modality but also reduces overall engineering complexity. Nonetheless, the heavy encoder underpinning UniteFormer demands substantial computational resources, which poses a challenge for scaling to very large problem instances. Future work will focus on architecting more lightweight yet expressive models to bridge this gap. \ No newline at end of file diff --git a/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/images.zip b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..d9572cb7d93d16d3988c09df31924f2db8a85c54 --- /dev/null +++ b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67ff3849660823b75c7e2cee69f0b9b437dc3c9467ad785b13008785a5321486 +size 1380057 diff --git a/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/layout.json b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..82b45b085cb5bae3ccd189a935fcab583a9d6f4d --- /dev/null +++ b/NeurIPS/2025/UniteFormer_ Unifying Node and Edge Modalities in Transformers for Vehicle Routing Problems/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee3e599815a0db647876315ad2580299203a52571bcd79e7edc65f20583d83da +size 852014 diff --git a/NeurIPS/2025/Universal Causal Inference in a Topos/2458b4ce-39e3-403d-aa8c-8588f25fd50d_content_list.json b/NeurIPS/2025/Universal Causal Inference in a Topos/2458b4ce-39e3-403d-aa8c-8588f25fd50d_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..e563ea995267fc1abf3635bbcbd98f24691f4bc4 --- /dev/null +++ b/NeurIPS/2025/Universal Causal Inference in a Topos/2458b4ce-39e3-403d-aa8c-8588f25fd50d_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae83f633303cbb48e1b37e7108f55dd41ee142ab35a731d75c606f44b683e3db +size 231402 diff --git a/NeurIPS/2025/Universal Causal Inference in a Topos/2458b4ce-39e3-403d-aa8c-8588f25fd50d_model.json b/NeurIPS/2025/Universal Causal Inference in a Topos/2458b4ce-39e3-403d-aa8c-8588f25fd50d_model.json new file mode 100644 index 0000000000000000000000000000000000000000..1af58779602678d77adce8b65165e52ad4b7c6ab --- /dev/null +++ b/NeurIPS/2025/Universal Causal Inference in a Topos/2458b4ce-39e3-403d-aa8c-8588f25fd50d_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:286e59a2bf73e5d50134bfef2cec95d9433718bf5edb1f22871195ff6cd06745 +size 296106 diff --git a/NeurIPS/2025/Universal Causal Inference in a Topos/2458b4ce-39e3-403d-aa8c-8588f25fd50d_origin.pdf b/NeurIPS/2025/Universal Causal Inference in a Topos/2458b4ce-39e3-403d-aa8c-8588f25fd50d_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..c405bfc0c5620c13f38e470be0e88da5700a70d5 --- /dev/null +++ b/NeurIPS/2025/Universal Causal Inference in a Topos/2458b4ce-39e3-403d-aa8c-8588f25fd50d_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f930d48e598a9507ae0f61dbdec369c64f55a0e9590f9a9496e3f7e5ac9d2df5 +size 846491 diff --git a/NeurIPS/2025/Universal Causal Inference in a Topos/full.md b/NeurIPS/2025/Universal Causal Inference in a Topos/full.md new file mode 100644 index 0000000000000000000000000000000000000000..90b8dbec42d05d1835a2b15b6e05bd0bfcefb02e --- /dev/null +++ b/NeurIPS/2025/Universal Causal Inference in a Topos/full.md @@ -0,0 +1,1175 @@ +# Universal Causal Inference in a Topos + +Sridhar Mahadevan* + +Adobe Research + +San Jose, CA + +smahadev@adobe.com + +# Abstract + +In this paper, we explore the universal properties underlying causal inference by formulating it in terms of a topos. More concretely, we introduce topos causal models (TCMs), a strict generalization of the popular structural causal models (SCMs). A topos category has several properties that make it attractive: a general theory for how to combine local functions that define "independent causal mechanisms" into a consistent global function building on the theory of sheaves in a topos; a generic way to define causal interventions using a subobject classifier in a topos category; and finally, an internal logical language for causal and counterfactual reasoning that emerges from the topos itself. A striking characteristic of subobject classifiers is that they induce an intuitionistic logic, whose semantics is based on the partially ordered lattice of subobjects. We show that the underlying subobject classifier for causal inference is not Boolean in general, but forms a Heyting algebra. We define the internal Mitchell-Bénabou language, a typed local set theory, associated with causal models, and its associated Kripke-Joyal intuitionistic semantics. We prove a universal property of TCM, namely that any causal functor mapping decomposable structure to probabilistic semantics factors uniquely through a TCM representation. + +# 1 Introduction + +In recent years, there has been significant interest in categorical models of causality, based on symmetric monoidal categories [Fong, 2012, Fritz and Klingler, 2023, Cho and Jacobs, 2019, Jacobs et al., 2018], as well as simplicial sets and higher-order categories [Mahadevan, 2023]. Markov categories [Fritz, 2020] define a broad unifying framework for probabilistic inference and statistics using symmetric monoidal categories, where each object is additionally equipped with a comonoidal "copy-delete" operation. It enables carrying out rigorous proofs using an elegant string diagrammatic language [Selinger, 2010]. Any causal model based on graphs [Pearl, 2009, Forre and Mooij, 2017, Spirtes et al., 2000] or other algebraic formalisms, such as integer-valued multisets [Studeny, 2010], can be translated into a string diagram over a symmetric monoidal category, or a simplicial set. Operations on causal models, such as interventions, can be modeled as functors on the objects of the associated symmetric monoidal category or simplicial set. Categorical approaches to causality also extend to the potential outcomes counterfactual framework [Imbens and Rubin, 2015]. + +Categorical approaches fundamentally differ from past work in causality in their focus on the elucidation of universal properties. In our previous work [Mahadevan, 2023, 2025c], we introduced the framework of universal causality based on the notion of universal properties + +![](images/0183119fe1e0deb7c6df95196c89a2591a60db417cbba8a66f0cf0cbe3afeb0a.jpg) +Figure 1: Topos causal models (TCMs) are defined as a category $\mathcal{C}_{\mathcal{TCM}}$ whose objects $c \in C_{\mathcal{TCM}}$ are causal models, and whose arrows $\mathcal{C}_{\mathcal{TCM}}(c, c')$ are commutative diagrams between models $c$ and $c'$ . A specific object $c$ defining a model can be conceptualized as a DAG (left, where information flows from top to bottom), or a string diagram in a Markov category (middle, where information flows from bottom to top), or in terms of its induced unique "blackbox" function mapping exogenous variables to endogenous variables (right). + +in category theory [Riehl, 2017]: a causal property is universal if it can be defined in terms of an initial or final object in a category of causal diagrams, or in terms of a causal representable functor using the Yoneda Lemma. For example, a structural causal model (SCM) [Pearl, 2009] is defined as a (deterministic) mapping from a collection of exogenous variables into a collection of endogenous variables, derived by "collating" local functions that serve as independent causal mechanisms [Galles and Pearl, 1988, Parascandolo et al., 2017]. However, SCMs can be further analyzed in terms of their universal properties, such as categorical product, coproduct, limits and colimits, equalizers and coequalizers etc. These latter properties can be shown formally to be initial or final objects in a category of diagrams [Riehl, 2017], or as representable functors through the Yoneda Lemma [MacLane, 1971]. + +Our main contribution in this paper is to present a topos-theoretic view of causality, and in particular, introduce topos causal models (TCMs) that strictly generalize structural causal models (SCMs) [Pearl, 2009]. A topos is a type of category [MacLane, 1971], which is particularly well-suited to modeling operations that are "set-like" [MacLane and leke Moerdijk, 1994]. It also features an internal logical language [Goldblatt, 2006]. We claim that a topos provides three universal properties that make it natural as a category to do causal inference in: it provides a general theory for how to combine local functions, which can be viewed as "independent causal mechanisms" [Parascandolo et al., 2017], into a consistent global function building on the theory of sheaves in a topos [Mac Lane and Moerdijk, 1992]. It enables a generic way to define causal interventions using a subobject classifier in a topos category [Johnstone, 2014]. Finally, it gives an internal logical language for causal and counterfactual reasoning [Bell, 1988]. + +As Figure 1 illustrates, the objects in a TCM category can be conceptualized in multiple ways. First, each object can be a causal graphical model [Pearl, 1989, Spirtes et al., 2000]. Each object can also be a functor: for example, directed graphs form a topos functor category [Vigna, 2003]. TCMs can also be defined in terms of string diagrams in a symmetric monoidal Markov category [Fritz, 2020], where we restrict ourselves to the Markov subcategory defined through deterministic morphisms. For example, the arrow $h : \text{Traffic} \otimes \text{Agricultural Fires} \to \text{Pollution}$ defines a deterministic mapping specifying the two potential causes of Pollution. For exogenous variables, the arrow $\psi : I \to \text{Overpopulation}$ defines the marginal distribution on Overpopulation, where $I$ is the terminal object in the Markov category. Finally, we can view a TCM object as a "blackbox" function that maps some collection of exogenous variables (e.g., "Overpopulation", or "Farming Practices" into some set of endogenous variables, e.g., "Asthma" or "Pollution"). + +# 2 Principles of Universal Causality + +We give a brief overview of the fundamentals of universal causality (UC) [Mahadevan, 2023, 2025c] before delving into the specific details of the TCM framework. As with other work in categorical causality [Fong, 2012, Jacobs et al., 2018, Fritz and Klingler, 2023], UC uses category theory [MacLane, 1971] to define causality. A category $C$ is a collection of abstract objects $c \in C$ . Anything technically can count as an object, from a variable in a causal model to an entire model itself. Each category $C$ is additionally specified by a set of arrows or morphisms $C(c,d)$ between each pair of objects $c$ and $d$ . There is an identity arrow $1_c \in C(c,c)$ . Arrows compose in the obvious way, inducing a function $C(c,d) \times C(d,e) \to C(c,e)$ . An initial object $c$ in category $C$ defined as one inducing a unique arrow from $c$ to every object in category $C$ . A terminal object, usually denoted by $\mathbf{1}$ , is one that defines a unique arrow from every object $c$ in category $C$ into $\mathbf{1}$ . An object $c$ is isomorphic to another object $d$ , denoted $c \simeq d$ , if two arrows $f : c \to d$ and $g : d \to c$ exist, such that $g \circ f = 1_c$ , and $f \circ g = 1_d$ . A functor $F : C \to D$ between two categories $C$ and $D$ is specified by an object function mapping each $c \in C$ to $Fc \in D$ , and an arrows function mapping each arrow $f \in C(c,d)$ to $Ff \in D(Fc,Fd)$ . Functors come in two varieties - covariant and contravariant - the latter acts on the domain category by reversing the arrows. Given any two functors $F : C \to D$ and $G : C \to D$ between the same pair of categories, we can define a mapping between $F$ and $G$ that is referred to as a natural transformation. These are defined through a collection of mappings, one for each object $c$ of $C$ , thereby defining a morphism in $D$ for each object in $C$ . + +![](images/edcf30caa15abeeac0435f5eb16f09c86183f7a8eba1f14ad64cc5f21ad35ea0.jpg) + +# 2.1 Yoneda Lemma and the Causal Reproducing Property + +UC rests on the Yoneda Lemma – any object in a category can be defined by the interactions it makes with other objects (upto isomorphism). In the setting of causal inference, it means that objects in a TCM category can be ascribed “meaning” through studying the arrows of the category, without having to “look inside” the object. The Yoneda Lemma states that the set of all morphisms into an object $d$ in a category $C$ , sometimes denoted as $\mathbf{Hom}_C(-,d)$ , or as $C(-,d)$ , denoted as the presheaf, is sufficient to define $d$ up to isomorphism. The category of all presheaves forms a category of functors, and is denoted $\hat{C} = \mathbf{Set}^{C^{\mathrm{op}}}$ . This category forms a topos, and will be fundamental to the TCM framework. + +Lemma 1. [MacLane, 1971, Riehl, 2017] Yoneda lemma: For any functor $F: C \to \mathbf{Set}$ , whose domain category $C$ is "locally small" (meaning that the collection of morphisms between each pair of objects forms a set), and any object $c$ in $C$ , there is a bijection $\mathrm{Hom}(C(-,c),F) \simeq Fc$ that associates a natural transformation $\alpha: C(-,c) \Rightarrow F$ to the element $\alpha_{c}(1_{c}) \in Fc$ . This correspondence is natural in both $c$ and $F$ . + +Definition 1. [Riehl, 2017] A universal property of an object $c \in C$ in a category $C$ is expressed by a representable functor $F$ together with a universal element $x \in Fc$ that defines a natural isomorphism $C(-,c) \simeq F$ . The collection of morphisms $C(-,c)$ into an object $c$ is called the presheaf, and from the Yoneda Lemma, forms a universal representation of the object. + +# 2.2 Diagrams and Universal Constructions + +A key distinguishing feature of category theory is the use of diagrammatic reasoning. However, diagrams are also viewed more abstractly as functors mapping from some indexing category to the actual category. Diagrams are useful in understanding universal constructions, such as limits and colimits. Briefly, a diagram $F: \mathcal{I} \to \mathcal{C}$ is a functor $F$ from some finite category $\mathcal{I}$ into a category of interest, $\mathcal{C}$ . For example, $\mathcal{I} = \bullet \to \bullet \leftarrow \bullet$ is an example of a "pullback" diagram. Here the $\bullet$ refer to abstract objects that are mapped into concrete objects in $\mathcal{C}$ by the functor $F$ . What we want to know whether a particular diagram + +$F$ or an entire class of diagrams is "solvable". What this means is whether its limit or colimit exists, that is, is the category complete or co-complete? For any object $c \in C$ and any category $J$ , the constant functor $c: J \to C$ maps every object $j$ of $J$ to $c$ and every morphism $f$ in $J$ to the identity morphisms $1_c$ . We can define a constant functor embedding as the collection of constant functors $\Delta: C \to C^J$ that send each object $c$ in $C$ to the constant functor at $c$ and each morphism $f: c \to c'$ to the constant natural transformation, that is, the natural transformation whose every component is defined to be the morphism $f$ . + +Definition 2. [Riehl, 2017] A cone over a diagram $F: J \to C$ with the summit or apex $c \in C$ is a natural transformation $\lambda: c \Rightarrow F$ whose domain is the constant functor at $c$ . The components $(\lambda_j: c \to Fj)_{j \in J}$ of the natural transformation can be viewed as its legs. Dually, a cone under $F$ with nadir $c$ is a natural transformation $\lambda: F \Rightarrow c$ whose legs are the components $(\lambda_j: F_j \to c)_{j \in J}$ . + +![](images/e24fbb8a14b62e01891a2f46d50554777285007c02ad31f07e8b19c098faba54.jpg) + +![](images/1ac41af67a9bb46918b214d575c3e09aed095cd0eec549d7302e39f5047ec5e7.jpg) + +Cones under a diagram are referred to usually as cocones. Using the concept of cones and cocones, we can now formally define the concept of limits and colimits more precisely. + +Definition 3. [Riehl, 2017] For any diagram $F: J \to C$ , there is a functor $\operatorname{Cone}(-,F): C^{op} \to \operatorname{Set}$ which sends $c \in C$ to the set of cones over $F$ with apex $c$ . Using the Yoneda Lemma, a limit of $F$ is defined as an object $\lim F \in C$ together with a natural transformation $\lambda: \lim F \to F$ , which can be called the universal cone defining the natural isomorphism $C(-,\lim F) \simeq \operatorname{Cone}(-,F)$ . Dually, for colimits, we can define a functor $\operatorname{Cone}(F,-): C \to \operatorname{Set}$ that maps object $c \in C$ to the set of cones under $F$ with nadir $c$ . A colimit of $F$ is a representation for $\operatorname{Cone}(F,-)$ . Once again, using the Yoneda Lemma, a colimit is defined by an object $\operatorname{Colim}F \in C$ together with a natural transformation $\lambda: F \to \operatorname{colim}F$ , which defines the colimit cone as the natural isomorphism $C(\operatorname{colim}F,-) \simeq \operatorname{Cone}(F,-)$ . + +Limit and colimits of diagrams over arbitrary categories can often be reduced to the case of their corresponding diagram properties over sets. + +# 2.3 The Universality of Diagrams and the Causal Reproducing Property + +We state two key results that underly UC [Mahadevan, 2023]. While both these results follow directly from basic theorems in category theory, their significance for causal inference is what makes them particularly noteworthy. The first result pertains to the notion of diagrams as functors, and shows that for the functor category of presheaves, which is a universal representation of causal inference, every presheaf object can be represented as a colimit of representables through the Yoneda Lemma. This result can be seen as a generalization of the very simple result in set theory that each set is a union of one element sets. The second result is the causal reproducing property, which shows that the set of all causal effects between two objects is computable from the presheaf functor objects defined by them. Both these results are abstract, and apply to any category representation of a causal model. + +Theorem 1. [MacLane and leke Moerdijk, 1994, Mahadevan, 2023] Universality of Diagrams in UC: In the functor category of presheaves $\mathsf{Set}^{C^{\mathrm{op}}}$ , every functor object $F$ is the colimit of a diagram of representable objects, in a canonical way. + +To explain the significance of this result for causal inference, note that UC represents causal diagrams as functors from an indexing category of diagrams to an actual causal model. The theorem above tells us that every presheaf object can be represented as a colimit of (simple) representable objects, namely functor objects of the form $\mathbf{Hom}_C(-,c)$ . + +Theorem 2. [MacLane, 1971, Mahadevan, 2023] Causal Reproducing Property: All causal influences between any two objects $c$ and $d$ can be derived from its presheaf functor objects, namely + +$$ +\mathbf {H o m} _ {C} (c, d) \simeq \mathbf {N a t} (\mathbf {H o m} _ {C} (-, c), \mathbf {H o m} _ {C} (-, d)) +$$ + +Any causal influence of an object $c$ upon any other object $d$ can be represented as a natural transformation (a morphism) between two functor objects in the presheaf category $\hat{C}$ . + +# 3 Topos Causal Models + +A topos [Johnstone, 2014] is a "set-like" category which generalizes all common operations on sets. Thus, the generalization of subset is a subobject classifier in a topos. To help build some intuition, consider how to define subsets without "looking inside" a set. Essentially, a subset $S$ of some larger set $T$ can be viewed as a "monic arrow" (an injective function). Monic arrows generalize injective functions. + +Definition 4. [Goldblatt, 2006] An arrow $f: a \to b$ in a category $C$ is called monic if given any parallel arrows $g, h: c \rightarrow a$ , the equality $f \circ g = f \circ h$ implies that $g = h$ , namely $f$ is "left-cancellable". + +Our approach builds on this abstraction to define a category $C_{\mathcal{TCM}}$ whose objects are causal models, such as SCMs or Markov categories, and a submodel $M_x$ of an SCM $M$ is simply a monic arrow $f_x: M_x \hookrightarrow M$ . + +Definition 5. A category $C$ has binary products if for every pair of objects, $c$ and $d$ , there exists a third object, $e \simeq c \times d$ , along with two projection arrows, $p_1 : e \to c$ and $p_2 : e \to d$ , such that for any other object $a$ and arrows $f : a \to c$ and $g : a \to d$ , there exists a unique morphism $u : a \to e$ satisfying $p_1 \circ u = f$ and $p_2 \circ u = g$ . + +Definition 6. [MacLane and leke Moerdijk, 1994] A category $C$ with binary products has exponential objects if for each pair of objects $c, d$ in $C$ , there exists an object $c^d$ that defines the following bijection: + +$$ +C (e \times d, c) \simeq C (e, c ^ {d}) +$$ + +Definition 7. [MacLane and leke Moerdijk, 1994] A category $C$ is Cartesian closed if it has binary products, a terminal object $\mathbf{1}$ , and exponential objects. + +Definition 8. [MacLane and leke Moerdijk, 1994] In a category $C$ with finite limits, a subobject classifier is a $C$ -object $\Omega$ , and a $C$ -arrow true: $1 \to \Omega$ , such that to every monic arrow $S \hookrightarrow X$ in $C$ , there is a unique arrow $\phi$ that forms the following pullback square: + +![](images/23889c4d31991baae749195809a599e33bda233a2722f214d5c884d58648463b.jpg) + +This commutative diagram enforces the constraint that every monic arrow $m$ (i.e., every $1 - 1$ function) that maps a subobject $S$ to an object $X$ must be characterizable in terms of a "pullback", a particular type of universal property that is a special type of a limit. In the special case of the category of sets, subobject classifiers are defined through the characteristic (Boolean-valued) function $\phi$ that defines subsets. In general, as we show below, the subobject classifier $\Omega$ for causal models is not Boolean-valued, and requires using intuitionistic logic through a Heyting algebra. This definition can be rephrased as saying that the subobject functor is representable. In other words, a subobject of a causal model $X$ in category $C_{\mathcal{TCM}}$ is an equivalence class of monic arrows $m: S \hookrightarrow X$ . + +Definition 9. MacLane and leke Moerdijk [1994] An elementary topos is a category $C$ that is Cartesian closed and has a subobject classifier. + +For example, the category of sets forms a topos. Limits exist because one can define Cartesian products of sets, and colimits correspond to forming set unions. Exponential objects correspond to the set of all functions between two sets. Finally, the subobject classifier is simply the subset function, which induces a boolean-valued characteristic function. + +Definition 10. The category $C_{\mathcal{TCM}}$ of topos causal models is defined as a collection of objects $c \in C_{\mathcal{TCM}}$ , each of which is a triple $\langle U, V, F \rangle$ where $V = \{V_1, \ldots, V_n\}$ is a set of endogenous + +variables, $U$ is a set of exogenous variables, and $F$ is a function from $U$ to $V$ . The arrows $C_{\mathcal{TCM}}(c,d)$ are defined through commutative diagrams as illustrated below, where $f$ and $f'$ are the global functions induced by the TCM objects $c$ and $d$ , respectively. + +![](images/6be860df975c8ee29c13da30e2823ee4ff64d819c6e58da847f00b75addd1030.jpg) + +A submodel $c' = \langle U', V', F' \rangle$ of $c$ is any subobject of $c$ . The effect of an intervention on $c$ is given by some submodel $c'$ . Finally, let $Y$ be a variable in $V$ , and let $X$ be a subset of $V$ . The potential outcome in response to an intervention on $X$ modeled by a submodel $c' \hookrightarrow c$ is the solution of $Y$ in the submodel $c'$ . + +A commutative diagram, as the term suggests, is a structure showing the equivalence of two paths. Here, the diagram asserts that $g \circ f = f' \circ h$ . In the context of our category $C_{\mathit{SCM}}$ , the arrow $f: U \to V$ is simply an SCM $M$ , and $f$ is its induced mapping from exogenous to endogenous variables. Similarly, $f'$ is also the induced function mapping exogenous to endogenous variables for another SCM $M'$ . The morphisms $h$ and $g$ are functions on SCMs, which transform one causal model into another. In the specific case we are interested in, these functions define causal interventions, but in general, they may be arbitrary functions. + +For completeness, we define a category $C_{\mathrm{SCM}}$ whose objects are indeed SCMs. + +Definition 11. The category $\mathcal{C}_{\mathrm{SCM}}$ of structural causal models is defined as a collection of objects, each of which is a triple $\langle U, V, F \rangle$ where $V = \{V_1, \ldots, V_n\}$ is a set of endogenous variables, $U$ is a set of exogenous variables, $F$ is a set $\{f_1, \ldots, f_n\}$ of "local functions" $f_i: U \cup (V \setminus V_i) \to V_i$ whose composition induces a unique function $F$ from $U$ to $V$ . Let $X$ be a subset of variables in $V$ , and $x$ be a particular realization of $X$ . A submodel $M_x = \langle U, V, F_x \rangle$ of $M$ is the causal model $M_x = \langle U, V, F_x \rangle$ , where $F_x = \{f_i : V_i \notin X\} \cup \{X = x\}$ . The effect of an action $do(X = x)$ on $M$ is given by the submodel $M_x$ . Finally, let $Y$ be a variable in $V$ , and let $X$ be a subset of $V$ . The potential outcome of $Y$ in response to an action $do(X = x)$ , denoted $Y_x(u)$ , is the solution of $Y$ for the set of equations $F_x$ . + +The set of arrows or morphisms between two objects $c$ and $d$ in the category $\mathcal{C}_{\mathrm{SCM}}$ , denoted $\mathcal{C}_{\mathrm{SCM}}(c,d)$ , represent ways of transitioning from SCM object $c$ to $d$ . For example, if $d$ is a submodel of $c$ , then the arrow defines a do calculus causal intervention. + +# 4 Causal Inference in a Topos Category + +We show in this section that a TCM category whose objects are defined as SCMs, and whose arrows correspond to commutative diagrams defining operations on causal models does define a topos. In the next section, we generalize from SCMs to consider more complex causal models over functor categories. Now, we can state the first key result of this paper. + +Theorem 3. The category $C_{\mathit{SCM}}$ forms a topos. + +Proof: Since we have previously defined the objects and arrows of the $C_{\mathcal{SCM}}$ category, to show it forms a topos, we need to construct its subobject classifier. First, we need to define what a "subobject" is in the category $C_{\mathcal{SCM}}$ . Since SCMs can abstractly be defined as functions, let us assume that the SCM $c$ that defines $f$ is a submodel of the SCM $c'$ that induces $g$ . We can denote that by defining a commutative diagram as shown below. Let us stress the difference between the commutative diagram shown below Definition 10 for arbitrary functions $g$ and $h$ vs. the one below, where $i$ and $j$ are monic arrows. + +![](images/26cb2200ea9475f028fa6ec1a2496593a8820883768690e9322d60aea1c6980b.jpg) + +![](images/110fd591803f20f7a1de96bd1a730764f2bf587ecbde89ebff9c6581f27b67b2.jpg) +Figure 2: Left: diagram showing that $C_{SCM}$ has pullbacks. Right: The subobject classifier $\Omega$ for the topos category $C_{SCM}$ is displayed on the bottom face of this cube. + +![](images/393193c240fcfeb50d155c46ff8d60a8cfc0106b610aa98e476f05e810dcfc34.jpg) + +An element $x \in U'$ , which is a particular realization of the exogenous variables in $U'$ , can be classified in three ways by defining a characteristic function $\psi$ : + +1. $x\in U$ - here we set $\psi (x) = 1$ +2. $x \notin U$ but $g(x) \in V$ -here we set $\psi(x) = \frac{1}{2}$ . +3. $x \notin U$ and $g(x) \notin V$ - we denote this by $\psi(x) = 0$ . + +The subobject classifier is illustrated as the bottom face of the cube shown on the right in Figure 2: + +true $(0) = t^{\prime}(0) = 1$ +- $\mathbf{t}:\{0,\frac{1}{2},\mathbf{1}\} \to \{0,\mathbf{1}\}$ , where $\mathbf{t}(\mathbf{0}) = \mathbf{0},\mathbf{t}(\mathbf{1}) = \mathbf{t}(\frac{1}{2}) = \mathbf{1}$ . +- $\chi_V$ is the characteristic function of the exogenous variable set $V$ . +- The base of the cube in Figure 2 displays the subobject classifier $\mathbf{T}:\mathbf{1}\to \mathbf{\Omega},$ where $\mathbf{T} = \langle \mathbf{t}^{\prime},\mathbf{true}\rangle$ that maps $\mathbf{1} = \mathbf{id}_{\{0\}}$ to $\Omega = \mathbf{t}:\{0,\frac{1}{2},1\} \rightarrow \{0,1\}$ + +This proves that the subobject classifier for the category $C_{SCM}$ does not have Boolean semantics, but intuitionistic semantics as its subobject classifier $\Omega$ has multiple degrees of "truth", corresponding to the three types of classifications of monic arrows (in regular set theory, there are only two classifications). Moving on to show the other properties of a topos are satisfied, note that the terminal object is simply the identity function $\mathbf{id}_0: \{0\} \to \{0\}$ . Now, it remains to show that $C_{SCM}$ has pullbacks and exponential objects. + +Pullbacks in $C_{\mathit{SCM}}$ : Consider the cube shown on the left in Figure 2. Here, $f, g,$ and $h$ can be interpreted as three SCMs, each mapping some exogenous variables to some endogenous variables. The arrows $i, j$ ensure that the bottom face of the cube is a commutative diagram, and the arrows $p, q$ ensures the right face of the cube is a commutative diagram. The arrow from $P$ to $Q$ exists because looking at the front face of the cube, $Q$ is the pullback of $i$ and $q$ , which must exist because we are in the category of Sets, which has all pullbacks. Similarly, the back face of the cube is a pullback of $j$ and $p$ , which is again a pullback in Sets. Summarizing, $\langle u, v \rangle$ and $\langle m, n \rangle$ are the pullbacks of $\langle i, j \rangle$ and $\langle p, q \rangle$ . + +Exponential objects in $C_{\mathit{SCM}}$ : Now it only remains to check that the category has exponential objects. Let $f: U \to V$ and $g: U' \to V'$ be two functions induced by SCM models $M$ and $N$ . Then, we need to define the meaning of $g^f$ in $C_{\mathit{SCM}}$ , which we can define as $g^f: X \to Y$ , where $Y = V'^V$ , which must exist since Sets is a Cartesian closed category that has exponential objects (i.e., $Y$ is simply the set of all functions from $V$ to $V'$ ). Also, $X$ is the set of all arrows in $C_{\mathit{SCM}}$ from SCM $M$ to SCM $N$ , which is the pair of functions $\langle h, k \rangle$ in the commutative diagram shown below. This finally proves that $C_{\mathit{SCM}}$ is a topos. + +# 5 Causal Models Over a Topos of Sheaves + +We now describe a more general categorical framework for defining causal models as a topos by using the property that Yoneda embeddings of presheaves forms a topos [MacLane and leke Moerdijk, 1994]. To ensure consistent extension into a unique global function, we build on the theory of sheaves [Mac Lane and Moerdijk, 1992], which ensures local functions can be "collated" together to yield a unique global function. In our setting, we will construct sheaves from categories over causal models through the Yoneda embedding $\mathcal{X}(x): \mathcal{C} \to \mathbf{Sets}^{C^{\mathrm{op}}}$ and impose a Grothendieck topology. + +# 5.1 Grothendieck Topology on Sites + +Definition 12. A sieve for any object $x$ in any (small) category $C$ is a subobject of its Yoneda embedding $\mathfrak{X}(x) = C(-,x)$ . If $S$ is a sieve on $x$ , and $h: y \to x$ is any arrow in category $C$ , then + +$$ +h ^ {*} (S) = \{g \mid c o d (g) = D, h g \in S \} +$$ + +Definition 13. [Mac Lane and Moerdijk, 1992] A Grothendieck topology on a category $C$ is a function $J$ which assigns to each object $x$ of $C$ a collection $J(x)$ of sieves on $x$ such that + +1. the maximum sieve $t_x = \{f| \text{cod}(f) = x\}$ is in $J(x)$ . +2. If $S \in J(x)$ then $h^{*}(S) \in J(y)$ for any arrow $h: y \to x$ . +3. If $S \in J(x)$ and $R$ is any sieve on $x$ , such that $h^*(R) \in J(y)$ for all $h : y \to x$ , then $R \in J(C)$ . + +We can now define categories with a given Grothendieck topology as sites. + +Definition 14. A site is defined as a pair $(C, J)$ consisting of a small category $C$ and a Grothendieck topology $J$ on $C$ . + +Definition 15. The subobject classifier $\Omega$ is defined on any topos Sets $^{C^{\mathrm{op}}}$ as subobjects of the representable functors: + +$$ +\Omega (x) = \{S | S i s a s u b o j e c t o f C (-, x) \} +$$ + +and the morphism true: $1 \to \Omega$ is true(x) = x for any representable $x$ . + +# 5.2 Universal Property of TCM over Functor Categories + +Causal models, like SCMs, must represent both decomposable structure and (probabilistic) semantics. To capture this richer structure, we define TCM over functor categories, where every object is a functor that maps structure to semantics. For example, the category of Bayesian networks can be modeled as a functor category [Jacobs et al., 2018, Fritz and Klingler, 2023] from a Markov category to the category FinStoch of finite stochastic processes. + +Theorem 4. Given a causal functor $A: \mathcal{C} \to \mathcal{E}$ , such as the Bayesian network functor $F_{\mathsf{CDU}}$ , from a small category $\mathcal{C}$ (e.g., a symmetric monoidal category such as a Markov category) to a cocomplete category $\mathcal{E}$ (e.g., the category $\mathbf{Prob}$ of probability spaces (see Theorem 6)), the functor $R$ from $\mathcal{E}$ to presheaves, given by (where $c \in \mathcal{C}$ and $E \in \mathcal{E}$ ) + +$$ +R (E): c \mapsto \mathbf {H o m} _ {\mathcal {E}} (A (c), E) +$$ + +has a left adjoint $L: \mathbf{Sets}^{C^{\mathrm{op}}} \to \mathcal{E}$ defined for each presheaf $P$ in $C^{\mathrm{op}}$ as the colimit + +$$ +L (P) = \operatorname {C o l i m} \left(\int_ {\mathcal {C}} P \xrightarrow {\pi_ {P}} \mathcal {C} \xrightarrow {A} \mathcal {E}\right) +$$ + +where $\int_{C} P$ is the category of elements, whose objects are pairs $(c, p)$ , where $c$ is an object of $C$ and $p$ is an element of $P(C)$ (recall $P$ is a presheaf, i.e., a set-valued functor that maps each element $c$ into a set), and its arrows are $(c', p') \to (c, p)$ for any morphism $f: c' \to c$ such that $pc = p'$ . + +Proof: Essentially, Theorem 4 is stating that there is a pair of adjoint functors $L \vdash R$ , defined as: + +$$ +L: \mathbf {S e t s} ^ {C o p} \xleftarrow {\rightharpoonup} \mathcal {E}: R +$$ + +As defined earlier, a natural transformation between two functors $\tau : P \to R(E)$ is a family $\{\tau_c\}$ of maps indexed by the objects $c \in C$ , where each map $\tau_c$ is defined as the mapping: + +$$ +\tau_ {c}: P (C) \mapsto \mathbf {H o m} _ {\mathcal {E}} (A (C), E) +$$ + +which is natural in $c$ . $\tau$ can also be defined as a set of arrows of $\mathcal{E}$ as $\{\tau_c(p):A(c)\to E\}_{(c,p)}$ that is indexed by the objects $(c,p)$ of the category $\int_{C}P$ of elements of $P$ . This fact implies that there is a bijection + +$$ +N a t (P, R (E)) \simeq \mathbf {H o m} _ {\mathcal {E}} (L P, E) +$$ + +This bijection being natural in $P$ and in $E$ proves that $L$ is a left adjoint functor to $R$ . + +Now, let us define a general causal functor as mapping from a decomposable symmetric monoidal category (e.g., a Markov category) to the symmetric monoidal category of probability spaces. + +Definition 16. A causal functor $F: C \to \mathbf{Prob}$ maps from a general symmetric monoidal category $C$ with a comonoidal "copy-delete" structure (e.g., a CDU category [Jacobs et al., 2018] or a Markov category [Fritz, 2020]) to the category of probability spaces $\mathbf{Prob}$ , where each object $(\Omega, \mathcal{F}, \mathbb{P})$ is a probability space, and the arrows are measure-preserving maps, namely $\mathbf{Prob}(c, d)$ , where $c = (\Omega_c, \mathcal{F}_c, \mathbb{P}_c)$ and $d = (\Omega_d, \mathcal{F}_d, \mathbb{P}_d)$ , where $f \in \mathbf{Prob}(c, d)$ is such that $\mathbb{P}_c(f^{-1}(A)) = \mathbb{P}_d(A)$ for all $A \in \mathcal{F}_d$ . + +Theorem 5. For each causal functor $A: C \to \mathcal{E}$ from a small category $C$ defining the structure of a causal model to a cocomplete category $\mathcal{E}$ defining its (probabilistic) semantics, there exists a colimit preserving functor $L: \mathbf{Sets}^{C^{\mathrm{op}}} \to \mathcal{E}$ such that $A = L \circ \mathfrak{X}$ , where $\mathfrak{X}$ is the Yoneda embedding. + +Proof: The proof is just a special case of Corollary 4 on page 43 in [MacLane and leke Moerdijk, 1994]. To emphasize the importance of the co-completeness condition on $\mathcal{E}$ , we use the following result from [van Belle, 2024] that the category of probability spaces is co-complete. $\square$ + +Theorem 6. [van Belle, 2024] The symmetric monoidal category $\mathbf{Prob}$ has all colimits of non-empty diagrams. + +Proof: The proof, given in [van Belle, 2024], shows that Prob has coproducts and coequalizers. Thus, we can choose Prob as our cocomplete category $\mathcal{E}$ in Theorem 4. $\square$ + +We can finally state the two central results of our paper, the first (Theorem 7) establishes the universal property underlying TCMs, and the second (Theorem 8) shows that causal interventions define a Heyting algebra whose logic is intuitionistic. + +Theorem 7. Any causal functor $F: C \to \mathcal{E}$ from a structural causal category $C$ (such as a Markov category) to a semantic cocomplete category $\mathcal{E}$ (such as Prob) factors uniquely through a TCM structure defined by the Yoneda embedding, as given in Theorem 5. + +Proof: The proof follows directly from Theorem 4, Theorem 5, Theorem 6, and Definition 16. $\square$ + +Definition 17. A Heyting algebra is a poset with all finite products and coproducts, which is Cartesian closed. That is, a Heyting algebra is a lattice, including bottom and top elements, denoted by $\mathbf{0}$ and $\mathbf{1}$ , respectively, which associates to each pair of elements $x$ and $y$ an exponential $y^x$ . The exponential is written $x \Rightarrow y$ , and defined as an adjoint functor: + +$$ +z \leq (x \Rightarrow y) i f a n d o n l y i f z \wedge x \leq y +$$ + +In other words, $x \Rightarrow y$ is a least upper bound for all those elements $z$ with $z \wedge x \leq y$ . As a concrete example, for a topological space $X$ the set of open sets $O(X)$ is a Heyting algebra. The "law of the excluded middle", meaning $\neg x \vee x = \text{true}$ , does not always hold in a Heyting algebra. + +Theorem 8. For any TCM category defined as $\hat{C} = \mathbf{Sets}^{C^{\mathrm{op}}}$ by the Yoneda embedding $\mathfrak{L}(c)$ of a small causal category $C$ , the partially ordered set $\operatorname{Sub}_{\hat{C}}(P)$ of subobjects generated by causal interventions on any causal functor defined by the presheaf $P$ is a Heyting algebra. + +Proof: This result follows directly from the corresponding result for any category of presheaves (see [MacLane and leke Moerdijk, 1994]), and is based on constructing the complete lattice $\operatorname{Sub}(P)$ of all subfunctions of $P$ using a pointwise operation for each object $c \in C$ , which can be shown to satisfy an infinite distributive law. $\square$ + +# 6 Causal Mitchell-Bénabou Language and its Kripke-Joyal Semantics + +The Causal Mitchell-Bénabou language (CMBL) is a typed local set theory [Bell, 1988] whose syntax and semantics is defined using the arrows of the $C_{\mathcal{TCM}}$ topos. The types of CMBL as causal model objects $M$ of $C_{\mathcal{TCM}}$ . For each type $M$ , we assume the existence of variables $x_M, y_M, \ldots$ , where each such variable has as its interpretation the identity arrow $\mathbf{1}: M \to M$ . We can construct product objects, such as $A \times B \times C$ , where terms like $\sigma$ that define arrows are given the interpretation $\sigma: A \times B \times C \to D$ . + +- Each variable $x_{M}$ of type $M$ is a term of type $M$ , and its interpretation is the identity $x_{M} = 1: M \to M$ . Here, $M$ may represent an entire SCM, an individual variable such as Overpopulation in Figure 1, or a causal functor mapping a Markov category to the cocomplete Prob category. +- Terms $\sigma$ and $\tau$ of types $C$ and $D$ that are interpreted as $\sigma : A \to C$ and $\tau : B \to D$ can be combined to yield a term $\langle \sigma, \tau \rangle$ of type $C \times D$ , whose joint interpretation is given as $\langle \sigma p, \tau q \rangle : X \to C \times D$ , where $X$ has the required projections $p : X \to A$ and $q : X \to B$ . A causal intervention modeled as an arrow $f : X \to Y$ in $C_{TCM}$ can be composed with a term $\sigma : U \to X$ to yield a term of type $Y$ as $f \circ \sigma : U \xrightarrow{\sigma} X \xrightarrow{f} Y$ . +- Terms of type $\Omega$ are defined as formulae of CMBL and can be combined with the usual logical connectives $\land, \lor, \Rightarrow, \neg$ and quantifiers $\forall, \exists$ to obtain further terms again of type $\Omega$ . An expression such as $\forall x \psi(x, y)$ is interpreted by an arrow $Y \rightarrow \Omega$ (since $x$ is not a free variable). A formula $\psi(x, y)$ in the topos $C_{TCM}$ is defined to be universally valid in the topos if the corresponding arrow $\psi(x, y): X \times Y \rightarrow \Omega$ factors through true: $1 \rightarrow \Omega$ . A formula $\psi$ without free variables is interpreted as an arrow $\psi: 1 \rightarrow \Omega$ and is valid if it coincides with the arrow true: $1 \rightarrow \Omega$ . +- Indirect proofs (i.e., reductio ad absurdum) cannot be used in CMBL because the rule of the excluded middle $\psi \lor \neg \psi$ is not in general valid, nor is the axiom of choice generally true. Instead, the rules of intuitionistic predicate calculus need to be used, as illustrated by de Araujo Fernandes and Haeusler [2009]. +- The Kripke-Joyal semantics for CMBL is specified using generalized elements. We define an element of a causal model by the morphism $x: \mathbf{1} \to M$ . Thus, a generalized element $\alpha: N \to M$ represents the "stage of definition" of $M$ by $N$ . We specify the semantics of how an TCM model $N$ supports any formula $\phi(\alpha)$ , denoted by $N \Vdash \phi(\alpha)$ by $N \Vdash \phi(\alpha)$ if and only if $\operatorname{Im} \alpha \leq \{x | \phi(x)\}$ . Stated in the form of a commutative diagram, this "forcing" relationship holds if and only if $\alpha$ factors through $\{x | \phi(x)\}$ . See [MacLane and leke Moerdijk, 1994, Bell, 1988] for additional details. + +![](images/9a50376760e0866924ca3cdfb84a57d92d0155b2f386a70cd3e199e092d1af0d.jpg) + +# 7 Limitations and Future Work + +There are significant limitations of our TCM framework, which we are currently investigating. We have recently developed an intuitionistic generalization of Pearl's do-calculus termed $j$ -stable causal inference, which uses the Lawvere-Tierney topology on a topos defined by a modal operator $j$ on the subobject classifier $\Omega$ [Mahadevan, 2025a]. In this paper, we define an intuitionistic logic called $j$ -do-calculus, where we replace global truth with local truth defined by Kripke-Joyal semantics. We are currently working on another paper [Mahadevan, 2025b] that implements $j$ -do-calculus with well-known causal discovery procedures (e.g., score-based and constraint-based methods) [Zanga and Stella, 2023], and will include experimental results on how to (i) form data-driven $j$ -covers (via regime/section constructions), (ii) compute chartwise conditional independences after graph surgeries, and (iii) glue them to certify the premises of the $j$ -do rules in practice. + +# 8 Acknowledgments + +This research has been funded by Adobe Corporation. + +# References + +J. L. Bell. Toposes and Local Set Theories. Dover, 1988. +Dimitri Bertsekas. Reinforcement Learning and Optimal Control. Athena Scientific, 2019. +Kenta Cho and Bart Jacobs. Disintegration and bayesian inversion via string diagrams. Mathematical Structures in Computer Science, 29(7):938-971, March 2019. ISSN 1469-8072. doi: 10.1017/s0960129518000488. URL http://dx.doi.org/10.1017/S0960129518000488. +Ricardo Queiroz de Araujo Fernandes and Edward Hermann Haeusler. A topos-theoretic approach to counterfactual logic. Electronic Notes in Theoretical Computer Science, 256: 33-47, 2009. ISSN 1571-0661. doi: https://doi.org/10.1016/j.entcs.2009.11.004. URL https://www.sciencedirect.com/science/article/pii/S157106610900454X. Proceedings of the Fourth Workshop on Logical and Semantic Frameworks, with Applications (LSFA 2009). +Brendan Fong. Causal theories: A categorical perspective on bayesian networks. Master's thesis, Oxford University, 2012. +Brendan Fong, David I. Spivak, and Rémy Tuyeras. Backprop as functor: A compositional perspective on supervised learning. In 34th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2019, Vancouver, BC, Canada, June 24-27, 2019, pages 1-13. IEEE, 2019. doi: 10.1109/LICS.2019.8785665. URL https://doi.org/10.1109/LICS.2019.8785665. +Patrick Forre and Joris M. Mooij. Markov properties for graphical models with cycles and latent variables, 2017. +James Fox. Universal Coalgebras. Dissertation, McGill University, 1976. +Tobias Fritz. A synthetic approach to markov kernels, conditional independence and theorems on sufficient statistics. Advances in Mathematics, 370:107239, August 2020. ISSN 0001-8708. doi: 10.1016/j.aim.2020.107239. URL http://dx.doi.org/10.1016/j.aim.2020.107239. +Tobias Fritz and Andreas Klingler. The d-separation criterion in categorical probability. Journal of Machine Learning Research, 24(46):1-49, 2023. URL http://jmlr.org/papers/v24/22-0916.html. +David Galles and Judea Pearl. An axiomatic theory of counterfactuals. Foundations of Science, 3:151-182, 1988. +Robert Goldblatt. Topoi: The Categorical Analysis of Logic. Dover Press, 2006. +Paul Halmos.Measure Theory.Springer,1974. +Chris Heunen and Jamie Vicary. *Categories for Quantum Theory: An Introduction*. Oxford University Press, November 2019. doi: 10.1093/oso/9780198739623.001.0001. +Guido W. Imbens and Donald B. Rubin. Causal Inference for Statistics, Social, and Biomedical Sciences: An Introduction. Cambridge University Press, USA, 2015. ISBN 0521885884. +Bart Jacobs, Aleks Kissinger, and Fabio Zanasi. Causal inference by string diagram surgery, 2018. URL https://arxiv.org/abs/1811.08338. +Peter T Johnstone. *Topos Theory*. Dover Publications, 2014. +David Lewis. Counterfactuals and comparative possibility. J. Philos. Log., 2(4):418-446, 1973. doi: 10.1007/BF00262950. URL https://doi.org/10.1007/BF00262950. + +Saunders Mac Lane and Ieke Moerdijk. Sheaves in Geometry and Logic a First Introduction to Topos Theory. Springer New York, New York, NY, 1992. ISBN 9781461209270 1461209277. URL http://link.springer.com/book/10.1007/978-1-4612-0927-0. +Saunders MacLane. Categories for the Working Mathematician. Springer-Verlag, New York, 1971. Graduate Texts in Mathematics, Vol. 5. +Saunders MacLane and leke Moerdijk. Sheaves in Geometry and Logic: A First Introduction to Topos Theory. Springer, 1994. +Sridhar Mahadevan. Universal causality. Entropy, 25(4):574, 2023. doi: 10.3390/E25040574. URL https://doi.org/10.3390/e25040574. +Sridhar Mahadevan. Intuitionistic $j$ -do-calculus in topos causal models, 2025a. URL https://arxiv.org/abs/2510.17944. +Sridhar Mahadevan. $j$ -stable causal discovery in sites, 2025b. In Preparation. +Sridhar Mahadevan. Higher algebraic k-theory of causality. Entropy, 27(5), 2025c. ISSN 1099-4300. doi: 10.3390/e27050531. URL https://www.mdpi.com/1099-4300/27/5/531. +J.P. May. Simplicial Objects in Algebraic Topology. University of Chicago Press, 1992. +Leland McInnes, John Healy, and James Melville. Umap: Uniform manifold approximation and projection for dimension reduction, 2018. URL https://arxiv.org/abs/1802.03426. +Giambattista Parascandolo, Mateo Rojas-Carulla, Niki Kilbertus, and Bernhard Scholkopf. Learning independent causal mechanisms. CoRR, abs/1712.00961, 2017. URL http://arxiv.org/abs/1712.00961. +Judea Pearl. *Probabilistic reasoning in intelligent systems - networks of plausible inference*. Morgan Kaufmann series in representation and reasoning. Morgan Kaufmann, 1989. +Judea Pearl. Causality: Models, Reasoning and Inference. Cambridge University Press, USA, 2nd edition, 2009. ISBN 052189560X. +B. Richter. From Categories to Homotopy Theory. Cambridge Studies in Advanced Mathematics. Cambridge University Press, 2020. ISBN 9781108479622. URL https://books.google.com/books?id=pnzUDwAAQBAJ. +E. Riehl. Category Theory in Context. Aurora: Dover Modern Math Originals. Dover Publications, 2017. ISBN 9780486820804. URL https://books.google.com/books?id=6B9MDgAAQBAJ. +P. Selinger. A survey of graphical languages for monoidal categories. In New Structures for Physics, pages 289-355. Springer Berlin Heidelberg, 2010. doi: 10.1007/978-3-642-12821-9_4. URL https://doi.org/10.1007%2F978-3-642-12821-9_4. +Peter Spirtes, Clark Glymour, and Richard Scheines. Causation, Prediction, and Search, Second Edition. Adaptive computation and machine learning. MIT Press, 2000. ISBN 978-0-262-19440-2. +M. Studeny. Probabilistic Conditional Independence Structures. Information Science and Statistics. Springer London, 2010. ISBN 9781849969482. URL https://books.google.com.gi/books?id=bGFRcgAACAAJ. +Ruben van Belle. Kan Extensions in Probability Theory. PhD thesis, University of Edinburgh, 2024. +Sebastiano Vigna. A guided tour in the topos of graphs, 2003. URL https://arxiv.org/abs/math/0306394. +Alessio Zanga and Fabio Stella. A survey on causal discovery: Theory and practice, 2023. URL https://arxiv.org/abs/2305.10032. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The abstract and introduction clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We include the limitation discussion in the paper in Section 7. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: We give the assumptions and complete proofs in the main body of the paper. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [NA] + +Justification: The paper does not include experiments. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [NA] + +Justification: The paper does not include experiments. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [NA] + +Justification: The paper does not include experiments. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [NA] + +Justification: The paper does not include experiments. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. + +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [NA] + +Justification: The paper does not include experiments. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: All authors have reviewed and confirmed that the research conducted in the paper conforms, in every respect, with the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: We include the broader impacts discussion in the paper in Section F. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: The paper does not include experiments and poses no such risks. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [NA] + +Justification: The paper does not use existing assets. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. + +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: The paper does not release new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: The paper does not involve crowdsourcing nor research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. + +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigourousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: The core method development in this research does not involve LLMs as any important, original, or non-standard components. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# Appendix: Category Theory Background + +We give an introduction to categories and functors in Section A. Section B gives a brief overview of the theory of sheaves over toposes. Section C defines local set theories, another way to characterize the internal language of a topos. Section E contains an overview of affine CDU and Markov categories, which have been previously studied as categorical models of causality and probability [Jacobs et al., 2018, Fritz and Klingler, 2023]. + +# A Categories and Functors + +![](images/395e0249dbcefa28b5e0e28902f9a5a10868d66c4cf9db0ce9adc4f55b524a80.jpg) +Figure 3: Categories are collections of objects, with a collection of arrows defined between each pair. A functor must map both objects and arrows from a domain category into a co-domain category. + +Category theory is perhaps the most transformative rethinking of mathematics since antiquity. Rather than focus on the internals of an object, like the elements of a set, it focuses on the arrows or morphisms that define the interactions between objects. Applied to causal models, it suggests that we can construct languages where individual causal models can be defined as variables in a logical language with intuitionistic semantics. The Yoneda Lemma, one of the most celebrated results in pure mathematics of the 20th century, states that objects are completely defined up to isomorphism purely in terms of their interactions. Applied to SCMs, its implications are nonetheless startling. SCMs in effect can be defined not just in terms of their internal structure, but in terms of how they interact with other SCMs in a category of such objects. Being conditioned to think in terms of internal structure, this statement may seem counterintuitive. But, as category theory has shown in numerous cases, such as in algebraic topology May [1992], we can often understand deep properties of complex objects such as topological spaces by modeling them as combinatorial objects and analyzing their interactions. Our framework builds on the theory of categories, functors, and natural transformations [MacLane, 1971, Riehl, 2017] (see Figure 3 and Figure 4). Many common mathematical structures – groups, rings, modules, measurable spaces, topological spaces etc. – form categories. More interesting categories for AI are those associated with compositional machine learning models, such as deep learning [Fong et al., 2019], where a symmetric monoidal category Learn is defined that combines an Implement routine that maps an input $A$ into some output $B$ parameterized by some parameter $P$ , and an Update routine that given an input-output pair $A, B$ and a parameter $P$ , returns a new parameter $P$ . Causal models, such as DAGs, structural equation models etc. can be straightforwardly mapped into categories. + +More formally, a category $C$ is a collection of abstract objects $c \in C$ . Anything technically can count as an object, from a variable in a causal model to an entire model itself. Each category $C$ is additionally specified by a set of arrows or morphisms $C(c,d)$ between each pair of objects $c$ and $d$ . There is an identity arrow $1_c \in C(c,c)$ . Arrows compose in the obvious way, inducing a function $C(c,d) \times C(d,e) \to C(c,e)$ . An initial object $c$ in category $C$ defined as one inducing a unique arrow from $c$ to every object in category $C$ . A terminal object, usually denoted by $\mathbf{1}$ , is one that defines a unique arrow from every object $c$ in category $C$ into $\mathbf{1}$ . An object $c$ is isomorphic to another object $d$ , denoted $c \simeq d$ , if two arrows $f : c \to d$ and $g : d \to c$ exist, such that $g \circ f = 1_c$ , and $f \circ g = 1_d$ . A functor $F : C \to D$ between two categories $C$ and $D$ is specified by an object function mapping each $c \in C$ to $Fc \in D$ , and an arrows function mapping each arrow $f \in C(c,d)$ to $Ff \in D(Fc,Fd)$ . Functors come in two varieties - covariant and contravariant - the latter acts on the domain category by reversing the arrows. Given + +
Set theoryTopos theory
setobject
subsetsubobject
truth values {0,1}subobject classifier Ω
power set P(A) = 2Apower object P(A) = ΩA
bijectionisomorphims
injectionmonic arrow
surjectionepic arrow
singleton set {*} +empty set∅terminal object 1
initial object 0
elements of a set Xmorphism f: 1 → X
-functors, natural transformations
-limits, colimits, adjunctions
+ +any two functors $F: C \to D$ and $G: C \to D$ between the same pair of categories, we can define a mapping between $F$ and $G$ that is referred to as a natural transformation. These are defined through a collection of mappings, one for each object $c$ of $C$ , thereby defining a morphism in $D$ for each object in $C$ . + +![](images/b5aa269ec9bd24379611d713b423c89ab1bc1dc65a8b4d0c6764ba3aaa9939c7.jpg) +Figure 4: A topos is a category that generalizes set theory: subsets become subobjects and the characteristic function for a subset, which is Boolean, turns into a subobject classifier that may have multiple "degrees of truth". + +The celebrated Yoneda Lemma [MacLane, 1971] states that any set-valued functor $F: C \to \mathbf{Sets}$ can be modeled in terms of natural transformations between $F$ and the Yoneda embedding $C(x, -)$ (or $C(-, x)$ ) of a representable functor. In essence the action of a set valued functor $F$ on an object $x$ is completely determined by its natural transformations with $C(-, x)$ . What are natural transformations? These specify how functors interact, much like how objects interact through arrows. A remarkable property of category theory is that the set of all sets is not a set, but the category of all categories is indeed a category, where the arrows are functors, and the objects are categories. + +Definition 18. Given categories $C$ and $D$ , and functors $F, G: C \to D$ , a natural transformation $\alpha: F \Rightarrow G$ is defined by the following data: + +- an arrow $\alpha_{c}: Fc \to Gc$ in $D$ for each object $c \in C$ , which together define the components of the natural transformation. +- For each morphism $f: c \to c'$ , the following commutative diagram holds true: + +![](images/ddbc6ae1948137a7687fcc2e4cbd15bd8e298cf36536f629a4496e576308f961.jpg) + +A natural isomorphism is a natural transformation $\alpha : F \Rightarrow G$ in which every component $\alpha_{c}$ is an isomorphism. + +# A.1 Yoneda Lemma + +The Yoneda Lemma states that the set of all morphisms into an object $d$ in a category $C$ , denoted as $\mathbf{Hom}_C(-, d)$ and called the contravariant functor (or presheaf), is sufficient to define $d$ up to isomorphism. The category of all presheaves forms a category of functors, and is denoted $\hat{C} = \mathbf{Set}^{C^{\mathrm{op}}}$ . The Yoneda lemma plays a crucial role in this paper because it defines the concept of a universal representation in category theory. We first show that associated with universal arrows is the corresponding induced isomorphisms between $\mathbf{Hom}$ sets of morphisms in categories. This universal property then leads to the Yoneda lemma. + +$$ +\begin{array}{c} D (r, r) \xrightarrow {\phi_ {r}} C (c, S r) \\ \Biggl \downarrow^ {D (r, f ^ {\prime})} \\ D (r, d) \xrightarrow {\phi_ {d}} C (c, S d) \end{array} +$$ + +As the two paths shown here must be equal in a commutative diagram, we get the property that a bijection between the Hom sets holds precisely when $\langle r, u : c \to Sr \rangle$ is a universal arrow from $c$ to $S$ . Note that for the case when the categories $C$ and $D$ are small, meaning their Hom collection of arrows forms a set, the induced functor $\mathbf{Hom}_{\mathbb{C}}(c, S-)$ to $\mathbf{Set}$ is isomorphic to the functor $\mathbf{Hom}_D(r, -)$ . This type of isomorphism defines a universal representation, and is at the heart of the causal reproducing property (CRP) defined below. + +Lemma 2. Yoneda lemma: For any functor $F: C \to \mathbf{Set}$ , whose domain category $C$ is "locally small" (meaning that the collection of morphisms between each pair of objects forms a set), any object $c$ in $C$ , there is a bijection + +$$ +H o m (C (c, -, F) \simeq F c +$$ + +that defines a natural transformation $\alpha : C(c, -) \Rightarrow F$ to the element $\alpha_{c}(1_{c}) \in Fc$ . This correspondence is natural in both $c$ and $F$ . + +There is of course a dual form of the Yoneda Lemma in terms of the contravariant functor $C(-,c)$ as well using the natural transformation $C(-,c)\Rightarrow F$ . A very useful way to interpret the Yoneda Lemma is through the notion of universal representability through a covariant or contravariant functor. + +Definition 19. A universal representation of an object $c \in C$ in a category $C$ is defined as a contravariant functor $F$ together with a functorial representation $C(-,c) \simeq F$ or by a covariant functor $F$ together with a representation $C(c, -) \simeq F$ . The collection of morphisms $C(-,c)$ into an object $c$ is called the presheaf, and from the Yoneda Lemma, forms a universal representation of the object. + +# A.2 Universal Properties in Categories + +A fundamental principle of category theory is to characterize objects by universal properties. Take the Cartesian product of two sets. The conventional way to define this product of two sets is as the set of ordered pairs, one drawn from each set. But this definition does not specify its universal property. We explain how to define universal properties below, which will be essential to understanding a topos. A key distinguishing feature of category theory is the use of diagrammatic reasoning. However, diagrams are also viewed more abstractly as functors mapping from some indexing category to the actual category. Diagrams are useful in understanding universal constructions, such as limits and colimits of diagrams. To make this somewhat abstract definition concrete, let us look at some simpler examples of universal properties, including co-products and quotients (which in set theory correspond to disjoint unions). Coproducts refer to the universal property of abstracting a group of elements into a larger one. + +Before we formally the concept of limit and colimits, we consider some examples. These notions generalize the more familiar notions of Cartesian products and disjoint unions in the category of Sets, the notion of meets and joins in the category Preord of preorders, as well + +as the least upper bounds and greatest lower bounds in lattices, and many other concrete examples from mathematics. + +Example 1. If we consider a small "discrete" category $\mathcal{D}$ whose only morphisms are identity arrows, then the colimit of a functor $\mathcal{F}:\mathcal{D}\to \mathcal{C}$ is the categorical coproduct of $\mathcal{F}(D)$ for $D$ , an object of category $D$ , is denoted as + +$$ +\operatorname {C o l i m i t} _ {\mathcal {D}} F = \bigsqcup_ {D} \mathcal {F} (D) +$$ + +In the special case when the category $C$ is the category $\mathbf{Sets}$ , then the colimit of this functor is simply the disjoint union of all the sets $F(\check{D})$ that are mapped from objects $D \in \mathcal{D}$ . + +Example 2. Dual to the notion of colimit of a functor is the notion of limit. Once again, if we consider a small "discrete" category $\mathcal{D}$ whose only morphisms are identity arrows, then the limit of a functor $\mathcal{F}:\mathcal{D}\to C$ is the categorical product of $\mathcal{F}(D)$ for $D$ , an object of category $D$ , is denoted as + +$$ +l i m i t _ {\mathcal {D}} F = \prod_ {D} \mathcal {F} (D) +$$ + +In the special case when the category $C$ is the category Sets, then the limit of this functor is simply the Cartesian product of all the sets $F(D)$ that are mapped from objects $D \in \mathcal{D}$ . + +Category theory relies extensively on universal constructions, which satisfy a universal property. One of the central building blocks is the identification of universal properties through formal diagrams. Before introducing these definitions in their most abstract form, it greatly helps to see some simple examples. We can illustrate the limits and colimits in diagrams using pullback and pushforward mappings. + +![](images/4b94c9a02a835b65c86baf84a5255df5f99e50ddb10171af806dbf86268d3ef5.jpg) + +An example of a universal construction is given by the above commutative diagram, where the coproduct object $X \sqcup Y$ uniquely factorizes any two mappings $h: X \to R$ and $i: Y \to R$ , such that any mapping $i: Y \to R$ , so that $h = r \circ f$ , and furthermore $i = r \circ g$ . Co-products are themselves special cases of the more general notion of co-limits. Figure 5 illustrates the fundamental property of a pullback, which along with pushforward, is one of the core ideas in category theory. The pullback square with the objects $U, X, Y$ and $Z$ implies that the composite mappings $g \circ f'$ must equal $g' \circ f$ . In this example, the morphisms $f$ and $g$ represent a pullback pair, as they share a common co-domain $Z$ . The pair of morphisms $f', g'$ emanating from $U$ defines a cone, because the pullback square "commutes" appropriately. Thus, the pullback of the pair of morphisms $f, g$ with the common co-domain $Z$ is the pair of morphisms $f', g'$ with common domain $U$ . Furthermore, to satisfy the universal property, given another pair of morphisms $x, y$ with common domain $T$ , there must exist another morphism $k: T \to U$ that "factorizes" $x, y$ appropriately, so that the composite morphisms $f' k = y$ and $g' k = x$ . Here, $T$ and $U$ are referred to as cones, where $U$ is the limit of the set of all cones "above" $Z$ . If we reverse arrow directions appropriately, we get the corresponding notion of pushforward. So, in this example, the pair of morphisms $f', g'$ that share a common domain represents a pushforward pair. For any set-valued functor $\delta: S \to \mathbf{Sets}$ , the Grothendieck category of elements $\int \delta$ can be shown to be a pullback in the diagram of categories. Here, Set* is the category of pointed sets, and $\pi$ is a projection that sends a pointed set $(X, x \in X)$ to its underlying set $X$ . + +We can now proceed to define limits and colimits more generally. We define a diagram $F$ of shape $J$ in a category $C$ formally as a functor $F: J \to C$ . We want to define the somewhat abstract concepts of limits and colimits, which will play a central role in this paper in defining + +![](images/7f3e60eecfa23eb5cb1bbdd29e1687ac57b6f8bee0b5e234e5a2a9ee729dba90.jpg) +Figure 5: (Left) Universal Property of pullback mappings. (Right) The Grothendieck category of elements $\int \delta$ of any set-valued functor $\delta : S \to \mathbf{Set}$ can be described as a pullback in the diagram of categories. Here, $\mathbf{Set}_*$ is the category of pointed sets $(X, x \in X)$ , and $\pi$ is the "forgetful" functor that sends a pointed set $(X, x \in X)$ into the underlying set $X$ . + +a topos. A convenient way to introduce these concepts is through the use of universal cones that are over and under a diagram. + +For any object $c \in C$ and any category $J$ , the constant functor $c: J \to C$ maps every object $j$ of $J$ to $c$ and every morphism $f$ in $J$ to the identity morphisms $1_{c}$ . We can define a constant functor embedding as the collection of constant functors $\Delta: C \to C^{J}$ that send each object $c$ in $C$ to the constant functor at $c$ and each morphism $f: c \to c'$ to the constant natural transformation, that is, the natural transformation whose every component is defined to be the morphism $f$ . + +Definition 20. A cone over a diagram $F: J \to C$ with the summit or apex $c \in C$ is a natural transformation $\lambda: c \Rightarrow F$ whose domain is the constant functor at $c$ . The components $(\lambda_j: c \to Fj)_{j \in J}$ of the natural transformation can be viewed as its legs. Dually, a cone under $F$ with nadir $c$ is a natural transformation $\lambda: F \Rightarrow c$ whose legs are the components $(\lambda_j: F_j \to c)_{j \in J}$ . + +![](images/5afb7aa251576f99e439690b006225add03d1a55a6beb7bdad38d2362e847391.jpg) + +![](images/01032b110066af2e57d6cf48769058f489900c2f1595ed71b7576402cbc6b9ec.jpg) + +Cones under a diagram are referred to usually as cocones. Using the concept of cones and cocones, we can now formally define the concept of limits and colimits more precisely. + +Definition 21. For any diagram $F: J \to C$ , there is a functor + +$$ +C o n e (-, F): C ^ {o p} \rightarrow \mathbf {S e t} +$$ + +which sends $c \in C$ to the set of cones over $F$ with apex $c$ . Using the Yoneda Lemma, a limit of $F$ is defined as an object $\lim F \in C$ together with a natural transformation $\lambda : \lim F \to F$ , which can be called the universal cone defining the natural isomorphism + +$$ +C (-, \lim F) \simeq C o n e (-, F) +$$ + +Dually, for colimits, we can define a functor + +$$ +C o n e (F, -): C \to \mathbf {S e t} +$$ + +that maps object $c \in C$ to the set of cones under $F$ with nadir $c$ . A colimit of $F$ is a representation for $\operatorname{Cone}(F, -)$ . Once again, using the Yoneda Lemma, a colimit is defined by an object $\operatorname{Colim} F \in C$ together with a natural transformation $\lambda : F \to \operatorname{colim} F$ , which defines the colimit cone as the natural isomorphism + +$$ +C (\operatorname {c o l i m} F, -) \simeq C o n e (F, -) +$$ + +Limit and colimits of diagrams over arbitrary categories can often be reduced to the case of their corresponding diagram properties over sets. One important stepping stone is to understand how functors interact with limits and colimits. + +Definition 22. For any class of diagrams $K: J \to C$ , a functor $F: C \to D$ + +- preserves limits if for any diagram $K: J \to C$ and limit cone over $K$ , the image of the cone defines a limit cone over the composite diagram $FK: J \to D$ . +- reflects limits if for any cone over a diagram $K: J \to C$ whose image upon applying $F$ is a limit cone for the diagram $FK: J \to D$ is a limit cone over $K$ +- creates limits if whenever $FK: J \to D$ has a limit in $D$ , there is some limit cone over $FK$ that can be lifted to a limit cone over $K$ and moreover $F$ reflects the limits in the class of diagrams. + +To interpret these abstract definitions, it helps to concretize them in terms of a specific universal construction, like the pullback defined above $c' \to c \gets c''$ in $C$ . Specifically, for pullbacks: + +- A functor $F$ preserves pullbacks if whenever $p$ is the pullback of $c' \to c \leftarrow c''$ in $C$ , it follows that $Fp$ is the pullback of $Fc' \to Fc \leftarrow Fc''$ in $D$ . +- A functor $F$ reflects pullbacks if $p$ is the pullback of $c' \to c \gets c''$ in $C$ whenever $Fp$ is the pullback of $Fc' \to Fc \gets Fc''$ in $D$ . +- A functor $F$ creates pullbacks if there exists some $p$ that is the pullback of $c' \to c \leftarrow c''$ in $C$ whenever there exists a $d$ such that $d$ is the pullback of $Fc' \to Fc \leftarrow Fc''$ in $F$ . + +# A.3 Symmetric Monoidal Categories + +Categorical models of causality [Fong, 2012, Fritz and Klingler, 2023, Jacobs et al., 2018, Mahadevan, 2023] are usually defined over symmetric monoidal categories, which we briefly review now [MacLane, 1971, Richter, 2020]. + +Definition 23. A monoidal category is a category $C$ together with a functor $\otimes : C \times C \to C$ , an identity object $e$ of $C$ and natural isomorphisms $\alpha, \lambda, \rho$ defined as: + +$$ +\alpha_ {C _ {1}, C _ {2}, C _ {3}}: C _ {1} \otimes (C _ {2} \otimes C _ {3}) \cong (C _ {1} \otimes C _ {2}) \otimes C _ {2}, +$$ + +$$ +\lambda_ {C}: e \otimes C \cong C, +$$ + +$$ +\begin{array}{c c c} \rho : C \otimes e & \cong & C, \end{array} +$$ + +The natural isomorphisms must satisfy coherence conditions called the "pentagon" and "triangle" diagrams [MacLane, 1971]. An important result shown in [MacLane, 1971] is that these coherence conditions guarantee that all well-formed diagrams must commute. There are many natural examples of monoidal categories, the simplest one being the category of finite sets, termed FinSet in [Fritz, 2020], where each object $C$ is a set, and the tensor product $\otimes$ is the Cartesian product of sets, with functions acting as arrows. Deterministic causal models can be formulated in the category FinSet. Other examples include the category of sets with relations as morphisms, and the category of Hilbert spaces [Heunen and Vicary, 2019]. Markov categories [Fritz and Klingler, 2023] are monoidal categories, where the identity element $e$ is also a terminal object, meaning there is a unique "delete" morphism $d_{e}: X \to e$ associated with each object $X$ . [Fritz, 2020] shows they form a unifying foundation for probabilistic and statistical reasoning. + +Definition 24. A symmetric monoidal category is a monoidal category $(C, \otimes, e, \alpha, \lambda, \rho)$ together with a natural isomorphism + +$$ +\tau_ {C _ {1}, C _ {2}}: C _ {1} \otimes C _ {2} \cong C _ {2} \otimes C _ {1}, f o r a l l o b e c t s C _ {1}, C _ {2} +$$ + +where $\tau$ satisfies the additional conditions: for all objects $C_1, C_2$ $\tau_{C_2,C_1} \circ \tau_{C_1,C_2} \cong 1_{C_1 \otimes C_2}$ , and for all objects $C, \rho_C = \lambda_C \circ \tau_{C,e}: C \otimes e \cong C$ . + +An additional hexagon axiom is required to ensure that the $\tau$ natural isomorphism is compatible with $\alpha$ . The $\tau$ operator is called a "swap" in Markov categories [Fritz, 2020]. In most cases of interest in AI, the symmetric monoidal categories are enriched over some convenient base category $\mathcal{V}$ , including vector spaces, or preorders such as the unit interval [0,1], where the unique morphism from $a \to b$ exists if and only if $a \leq b$ . 5 + +Definition 25. A V-enriched category consists of a regular category $C$ , such that for each pair of objects $x$ and $y$ in $C$ , the morphisms $C(x, y) \in \mathcal{V}$ , often referred to as a $\mathcal{V}$ -hom object. For the case when $(\text{cal}V, \leq, \otimes, 1)$ is a commutative monoidal preorder, we have the following conditions + +- $1 \leq C(x, x)$ +- $C(y,z) \otimes C(x,y) \leq C(x,z)$ + +# A.4 Topos Category + +To help build intuition for a topos, let's understand why sets are special as a category. They have all limits and colimits, meaning that one can always construct the categorical product of two sets as the Cartesian product, and the disjoint union as the coproduct. They have all pullbacks, which are commutative diagrams that define in essence a categorical definition of products and coproducts. In terms of the Yoneda Lemma, a universal property is either an initial or final property in a category of diagrams (functors). The product is the final object in a category of diagrams, and the coproduct is the initial object. Every concept in category theory essentially reduces down to these simple notions. Sets also have exponential objects: the set of all functions between two sets is once again a set! They also have a subobject classifier: each set has subsets, defining its parts, which correspond to a characteristic function that evaluates to true for elements in the subset. Topos theory generalizes all these properties to categories. It is important to causal inference because a causal intervention defines a subobject of an arbitrary object. A causal intervention on an SCM produces a subobject of that SCM object. + +To define a topos, we need to go through a few more definitions. + +Definition 26. An object $x$ in a category $C$ is called initial if there is a unique morphism $f: x \to y$ to every other object $y$ in the category. Dually, an object is called final if there is a unique morphism $f: y \to x$ into $x$ . + +In the category Sets, the null or empty set $\emptyset$ is the initial and the single element set $\{*\}$ is the final object. From an empty set, there is only one function possible to any other set, namely the empty function. From any set there is exactly one function into the single element set. A topos generalizes the property of subobject classifiers in Sets. Given any subset $S \subset X$ , we can define $S$ as the monic arrow $S \hookrightarrow X$ defined by the inclusion of $S$ in $X$ , or as the characteristic function $\phi_S$ that is equal to 1 for all elements $x \in X$ that belong to $S$ , and takes the value 0 otherwise. We can define the set $2 = \{0,1\}$ and treat true as the inclusion $\{1\}$ in 2. The characteristic function $\phi_S$ can then be defined as the pullback of true along $\phi_S$ . + +![](images/0a9c6949bdb20969b1a39f006faacbb6364d08e5cd2f27679411531c0d77332b.jpg) + +We can now define subobject classifiers in a category $C$ as follows. + +Definition 27. In a category $C$ with finite limits, a subobject classifier is a monic arrow true: $1 \to \Omega$ , such that to every other monic arrow $S \hookrightarrow X$ in $C$ , there is a unique arrow $\phi$ that forms the following pullback square: + +![](images/68dff6b7303e4c9b39ccad02f7ea86291701f6afe2f3cfc348de47c914152766.jpg) + +This definition can be rephrased as saying that the subobject functor is representable. In other words, a subobject of an object $x$ in a category $C$ is an equivalence class of monic arrows $m: S \hookrightarrow x$ . + +Definition 28. A topos is a category $\mathcal{E}$ with + +1. A pullback for every diagram $X \to B \leftarrow Y$ . +2. A terminal object 1. +3. An object $\Omega$ and a monic arrow true: $1 \to \Omega$ such that any monic $m : S \hookrightarrow B$ , there is a unique arrow $\phi : B \to \Omega$ in $\mathcal{E}$ for which the following square is a pullback: + +![](images/9b7b7bdd66ef73ea74e7b3cb754d0e5dc91f12501083f3fd00caa86488b07355.jpg) + +4. To each object $x$ an object $Px$ and an arrow $\epsilon_x: x \times Px \to \Omega$ such that for every arrow $f: x \times y \to \Omega$ , there is a unique arrow $g: y \to Px$ for which the following diagrams commute: + +![](images/8c680fd1a219bc14ddf66df09a6be2e32de908b8e07447c4b3caa263a4a207ec.jpg) + +Let us understand these definitions in the category of Sets. Clearly, the single point set $\{\bullet\}$ is a terminal object for Sets, because there is a unique function from any set $S$ to a single element set $\bullet$ , and the categorical product of two sets $A \times B$ is just the Cartesian product. Furthermore, given two sets $A$ and $B$ , we can define $B^A$ as the exponential object representing the set of all functions $f: A \to B$ . We can define exponential objects in any category more generally as follows. + +Definition 29. Given any category $C$ with products, for a fixed object $x$ in $C$ , we can define the functor + +$$ +x \times - \colon \rightarrow C +$$ + +If this functor has a right adjoint, which can be denoted as + +$$ +(-) ^ {x}: \mathcal {C} \to \mathcal {C} +$$ + +then we say $x$ is an exponentiable object of $C$ . + +Definition 30. A category $C$ is Cartesian closed if it has finite products (which is equivalent to saying it has a terminal object and binary products) and if all objects in $C$ are exponentiable. + +![](images/71cf89853dbb0e424236f69a5c25b4de903af2da98f6243c85aa6957db5ec272.jpg) +Graphs as a Topos + +![](images/32c2dfa682bc2f5b30366c96573de247f51f6bada942197eac65394f8382ffa7.jpg) +G(V)={a,b,c} + +![](images/f2f0d17c8981c1d4785c0ddec069fbe55dd7c09b41b9e48c485606de99e745f8.jpg) +H(V)={0,1} + +![](images/cbd4d1679b3277a355d83e72a241f2a91d739c25cac3a0e2eb28e7c080bf3145.jpg) +Figure 6: Causal models over arbitrary directed graphs define a topos. The subobject classifier is illustrated on the right. + +# A.5 The Topos of Causal Graphs + +To begin with a relatively elementary construction involving sheaves, Figure 6 illustrates how directed graphs, widely used in causal modeling, can be modeled as a topos that only has two objects: a generic "vertex" object $V$ , representing an abstract causal variable, and a generic "edge" object $E$ , denoting an abstract causal path. Any actual graph, such as the two shown in the figure, are covariant functors from $C_{\Gamma}$ , the graph topos, to the actual graphs (we can treat graphs equivalently as contravariant functors by reversing the edges from $V$ to $E$ ). Sample object mappings of $V$ for the two graphs are shown. For the topos category $C_{\Gamma}$ , the "representable functor" is defined as the presheaf $C_{\Gamma}(-, c)$ for each object $c$ in the category $\Gamma$ , which means the set of all morphisms going into object $c$ . Let us calculate the representable functors for the topos of graphs $C_{\Gamma}$ . Since $C_{\Gamma}$ has only two objects, $V$ and $E$ , the representable functors are given as the sets: + +$$ +\begin{array}{c c} \mathcal {C} _ {\Gamma} (-, V), & \mathcal {C} _ {\Gamma} (-, E) \end{array} +$$ + +Since $C_{\Gamma}$ has no arrows from object $E$ to object $V$ , we can easily check that the representable functor $C_{\Gamma}(-,V)$ is given as: + +$$ +\mathcal {C} _ {\Gamma} (V, V) = \{1 _ {V} \}, \quad \mathcal {C} _ {\Gamma} (E, V) = \emptyset +$$ + +where $1_V$ is the self-loop arrow that maps object $V$ to itself. On the other hand, the representable functor $C_{\Gamma}(-,E)$ is defined as: + +$$ +\mathcal {C} _ {\Gamma} (V, E) = \{s, t \}, \quad \mathcal {C} _ {\Gamma} (E, E) = \{1 _ {E} \} +$$ + +Additional details, like constructing exponential objects $H^G$ for the $C_{\Gamma}$ category, are given in [Vigna, 2003]. For the subobject classifier, the idea is as follows. For any causal model $N$ represented as a submodel of a more complex causal model $M$ , defined by a monic arrow $m: N \hookrightarrow M$ , the generalization of the usual set-theoretic characteristic function is the classifying map $\chi_m: N \to \Omega$ . As in Theorem 3, $\Omega$ is not Boolean, but has multiple "degrees of truth" (see Figure 6): + +1. Causal variables not in $N$ are mapped to $O_V$ . +2. Causal variables in $N$ are mapped to $V$ . +3. If an edge is not in $N$ , four cases emerge: + +(a) An arc whose source and target are not in $N$ is mapped to $0_{E}$ . +(b) An arc whose source is in $N$ , but target is not, is mapped to an edge $s$ . +(c) An arc whose target is in $N$ , but source is not, is mapped to an edge $t$ . +(d) An arc having both source and target in $N$ is mapped to $\binom{s}{t}^2$ . + +# B Sheaves and Toposes: Categories of Functors + +A general way to construct a topos category is through covariant Yoneda embeddings $\mathfrak{X}:C\to \mathbf{Set}^{\mathcal{C}}$ , or contravariant Yoneda embeddings $\mathfrak{X}:C\to \mathbf{Set}^{C^{\mathrm{op}}}$ . In simpler terms, + +each object $x$ in the category $C$ is either mapped to the functor $C(x, -): C \to \mathbf{Sets}$ or $C(-, x): C^{op} \to \mathbf{Sets}$ . These structures are called presheaves or copresheaves. To construct a proper sheaf, we need to include an additional condition that is illustrated in Figure 7. The sheaf condition plays an important role in many applications of machine learning, from dimensionality reduction [McInnes et al., 2018] to causal inference [Mahadevan, 2023]. Mac Lane and Moerdijk [1992] provides an excellent overview of sheaves and topoi, and how remarkably they unify much of mathematics, from geometry to logic and topology. For causal inference, the structure of causality shapes the arrows in a causal model, such as a Markov category, and that imposes a Grothendieck topology with an associated internal logic. Logic and causality are interwoven in this sense. + +![](images/450c909b7bbe51f055450a980b53a13b61f79e2969a37991e41ee263b4653d24.jpg) +Figure 7: Two applications of sheaf theory in AI: (top) minimizing travel costs in weighted graphs satisfies the sheaf principle, one example of which is the Bellman optimality principle in reinforcement learning [Bertsekas, 2019] (bottom): Approximating a function over a topological space must satisfy the sheaf condition. + +![](images/148c0a0c341789a180b8d34c17548b13c10ed25ad177da50d4e92639d3cfc78a.jpg) + +Figure 7 gives two concrete examples of sheaves (in both cases, these are enriched sheaves). In a minimum cost transportation problem, say reinforcement learning [Bertsekas, 2019], any optimal solution has the property that any restriction of the solution must also be optimal. In RL, this sheaf principle is codified by the Bellman equation, and leads to the fundamental principle of dynamic programming [Bertsekas, 2019]. Consider routing candy bars from San Francisco to New York city. If the cheapest way to route candy bars is through Chicago, then the restriction of the overall route to the (sub) route from Chicago to New York City must also be optimal, otherwise it is possible to find a shortest overall route by switching to a lower cost route. Similarly, in function approximation with real-valued functions $F: C \to \mathbb{R}$ , where $C$ is the category of topological spaces, the (sub)functions $F(A), F(B)$ and $F(C)$ restricted to the open sets $A, B$ and $C$ must agree on the values they map the elements in the intersections $A \cap B, A \cap C, A \cap B \cap C$ and so on. + +Sheaves can be defined over arbitrary categories, and we introduce the main idea by focusing on the category of sheaves over Sets. + +Definition 31. [Mac Lane and Moerdijk, 1992] A sheaf of sets $F$ on a topological space $X$ is a functor $F: O^{op} \to \mathbf{Sets}$ such that each open covering $U = \bigcup_{i} U_{i}, i \in I$ of an open set $O$ of $X$ yields an equalizer diagram + +![](images/1cdec9406c15e3d83a1442634170e97c978bdeeb1600c1fa1a751e5867ccb7fd.jpg) +Figure 8: Sieves are subobjects of $\mathfrak{L}(x)$ Yoneda embeddings of a category $C$ , which generalizes the concept of sheaves over sets in Figure 7. + +$$ +F U \xrightarrow {e} \prod_ {i} F U _ {i} \xrightarrow [ q ]{\frac {p}{\longrightarrow}} \prod_ {i, j} F (U _ {i} \cap U _ {j}) +$$ + +The above definition succinctly generalizes the idea in SCMs of combining local functions to get a unique global function. + +Definition 32. The category $Sh(X)$ of sheaves over a space $X$ is a full subcategory of the functor category $\mathsf{Sets}^{O(X)^{\mathrm{op}}}$ . + +# B.1 Grothendieck Topologies + +We can generalize the notion of sheaves to arbitrary categories using the Yoneda embedding $\mathfrak{L}(x) = C(-,x)$ . We explain this generalization in the context of a more abstract topology on categories called the Grothendieck topology defined by sieves. A sieve can be viewed as a subobject $S\subseteq \mathfrak{L}(x)$ in the presheaf Sets $^{C^{\mathrm{op}}}$ , but we can define it more elegantly as a family of morphisms in $C$ , all with codomain $x$ such that + +$$ +f \in S \Longrightarrow f \circ g \in S +$$ + +Figure 8 illustrates the idea of sieves. A simple way to think of a sieve is as a right ideal. We can define that more formally as follows: + +Definition 33. If $S$ is a sieve on $x$ , and $h: D \to x$ is any arrow in category $C$ , then + +$$ +h ^ {*} (S) = \{g \mid c o d (g) = D, h g \in S \} +$$ + +Definition 34. [Mac Lane and Moerdijk, 1992] A Grothendieck topology on a category $C$ is a function $J$ which assigns to each object $x$ of $C$ a collection $J(x)$ of sieves on $x$ such that + +1. the maximum sieve $t_x = \{f|cod(f) = x\}$ is in $J(x)$ . +2. If $S \in J(x)$ then $h^*(S) \in J(D)$ for any arrow $h: D \to x$ . +3. If $S \in J(x)$ and $R$ is any sieve on $x$ , such that $h^{*}(R) \in J(D)$ for all $h: D \to x$ , then $R \in J(C)$ . + +We can now define categories with a given Grothendieck topology as sites. + +Definition 35. A site is defined as a pair $(C, J)$ consisting of a small category $C$ and a Grothendieck topology $J$ on $C$ . + +An intuitive way to interpret a site is as a generalization of the notion of a topology on a space $X$ , which is defined as a set $X$ together with a collection of open sets $O(X)$ . The sieves on a category play the role of "open sets". + +# B.2 Mitchell-Bénabou Language + +We define the Mitchell-Bénabou language (MBL), a typed local set theory (see Section C) associated with a causal topos. Given the topos category $C_{\Omega}$ , we define the types of MBL as causal model objects $M$ of $C_{\Omega}$ . For each type $M$ (e.g., an SCM), we assume the existence of variables $x_{M}, y_{M}, \ldots$ , where each such variable has as its interpretation the identity arrow $\mathbf{1}: M \to M$ . We can construct product objects, such as $A \times B \times C$ , where terms like $\sigma$ that define arrows are given the interpretation $\sigma: A \times B \times C \to D$ . We can inductively define the terms and their interpretations in a topos category as follows (see [Mac Lane and Moerdijk, 1992] for additional details): + +- Each variable $x_{M}$ of type $M$ is a term of type $M$ , and its interpretation is the identity $x_{M} = \mathbf{1}: M \to M$ (e.g., $M$ may be an SCM or a causal model on a Markov category). +- Terms $\sigma$ and $\tau$ of types $C$ and $D$ that are interpreted as $\sigma : A \to C$ and $\tau : B \to D$ can be combined to yield a term $\langle \sigma, \tau \rangle$ of type $C \times D$ , whose joint interpretation is given as + +$$ +\langle \sigma p, \tau q \rangle : X \to C \times D +$$ + +where $X$ has the required projections $p:X\to A$ and $q:X\to B$ + +- Terms $\sigma : A \to B$ and $\tau : C \to B$ of the same type $B$ yield a term $\sigma = \tau$ of type $\Omega$ , interpreted as + +$$ +(\sigma = \tau): W \xrightarrow {\langle \sigma p , \tau q \rangle} B \times B \xrightarrow {\delta_ {B}} \Omega +$$ + +where $\delta_B$ is the characteristic map of the diagonal functor $\Delta B\to B\times B$ . These diagonal maps correspond to the "copy" procedure in Markov categories [Fritz, 2020]. + +- Arrows $f: A \to B$ and a term $\sigma: C \to A$ of type $A$ can be combined to yield a term $f \circ \sigma$ of type $B$ , whose interpretation is naturally a composite arrow: + +$$ +f \circ \sigma : C \xrightarrow {\sigma} A \xrightarrow {f} B +$$ + +- For exponential objects, terms $\theta : A \to B^C$ and $\sigma : D \to C$ of types $B^C$ and $C$ , respectively, combine to give an "evaluation" map of type $B$ , defined as + +$$ +\theta (\sigma): W \to B ^ {C} \times C \xrightarrow {e} B +$$ + +where $e$ is the evaluation map, and $W$ defines a map $\langle \theta p, \sigma q \rangle$ , where once again $p: W \to A$ and $q: W \to D$ are projection maps. + +- Terms $\sigma : A \to B$ and $\tau : D \to \Omega^B$ combine to yield a term $\sigma \in \tau$ of type $\Omega$ , with the following interpretation: + +$$ +\sigma \in \tau : W \xrightarrow {\langle \sigma p , \tau q \rangle} B \times \Omega^ {B} \xrightarrow {e} \Omega +$$ + +- Finally, we can define local functions as $\lambda$ objects, such as + +$$ +\lambda x _ {C} \sigma : A \to B ^ {C} +$$ + +where $x_{C}$ is a variable of type $C$ and $\sigma : C \times A \to B$ . + +We combine terms $\alpha, \beta$ etc. of type $\Omega$ using logical connectives $\land, \lor, \Rightarrow, \neg$ , as well as quantifiers, to get composite terms, where each of the logical connectives is now defined over the subobject classifier $\Omega$ . + +- $\wedge : \Omega \times \Omega \to \Omega$ is interpreted as the meet operation in the partially ordered set of subobjects (given by the Heyting algebra). +- $\vee : \Omega \times \Omega \to \Omega$ is interpreted as the join operation in the partially ordered set of subobjects (given by the Heyting algebra). This operation gives the definition of a disjunction of two properties. + +- $\Rightarrow$ : $\Omega \times \Omega \to \Omega$ is interpreted as an adjoint functor, as defined previously for a Heyting algebra. Thus, the property of implication over SCMs is modeled as an adjoint functor. + +We can combine these logical connectives with the term interpretation as arrows, relegating some details to [Mac Lane and Moerdijk, 1992]. We now turn to the Kripke-Joyal semantics of this language. + +# B.3 Kripke-Joyal Semantics for a Causal Topos + +We now define the Kripke-Joyal semantics for the Mitchell-Bénabou language of a causal topos. Any free variable $x$ must have some causal model $X$ of $C_{\Omega}$ as its type. For any causal model $M$ in $C_{\Omega}$ , define a generalized element as a morphism $\alpha : N \to M$ . To understand this definition, note that we can define an element of a causal model by the morphism $x : \mathbf{1} \to M$ . Thus, a generalized element $\alpha : N \to M$ represents the "stage of definition" of $M$ by $N$ . We specify the semantics of how an SCM $N$ supports any formula $\phi(\alpha)$ , denoted by $N \Vdash \phi(\alpha)$ , as follows: + +$$ +N \Vdash \phi (\alpha) \quad \text {i f a n d o n l y i f} \quad \operatorname {I m} \alpha \leq \{x | \phi (x) \} +$$ + +Stated in the form of a commutative diagram, this "forcing" relationship holds if and only if $\alpha$ factors through $\{x|\phi (x)\}$ , where $x$ is a variable of type $M$ (recall that objects $M$ of a topos form its types), as shown in the following commutative diagram. + +![](images/5fcec4e8a8cab252906afc962ec67e03f17ae66c551625f36988e736336326eb.jpg) + +This diagram provides an interesting way to define causal interventions in a causal topos, because it defines submodels of $M$ . Building on this definition, if $\alpha, \beta : N \to M$ are parallel arrows, we can give semantics to the formula $\alpha = \beta$ by the following statement: + +$$ +N \xrightarrow {\langle \alpha , \beta \rangle} M \times M \xrightarrow {\delta_ {M}} \Omega +$$ + +following the definitions in the previous section for the composite $\langle \alpha, \beta \rangle$ and $\delta_X$ in the Mitchell-Bénabou language. We can extend the previous commutative diagram to show that $U \Vdash \alpha = \beta$ holds if and only if $\langle \alpha, \beta \rangle$ factors through the diagonal map $\Delta$ : + +![](images/0054258cd530fffedc0c1dd3f8c506701489927104206d31ecfe800b8ef159c4.jpg) + +- Monotonicity: If $U \Vdash \phi(x)$ , then we can pullback the interpretation through any arrow $f : U' \to U$ in a topos $C$ to obtain $U' \Vdash \phi(\alpha \circ f)$ . + +![](images/e916f060343bbb0b64af6fd8a3a63218efd4468dac79ea40af0679077063a2fa.jpg) + +- Local character: Analogously, if $f: U' \to U$ is an epic arrow, then from $U' \Vdash \phi(\alpha \circ f)$ , we can conclude $U \Vdash \phi(x)$ . + +Theorem 9. If $\alpha : N \to M$ is a generalized element of causal model $M$ , and $\phi(x)$ and $\psi(x)$ are formulas with a free variable $x$ of type $M$ , we can conclude that + +1. $N \Vdash \phi(\alpha) \land \psi(\alpha)$ holds if $N \Vdash \phi(\alpha)$ and $N \Vdash \psi(\alpha)$ . +2. $N \Vdash \phi(x) \lor \psi(x)$ holds if there are morphisms $p: O \to N$ and $q: P \to N$ such that $p + q: N + O \to M$ is an epic arrow, and $N \Vdash \phi(\alpha p)$ and $O \Vdash \phi(\alpha q)$ . +3. $N \Vdash \phi(\alpha) \Rightarrow \psi(\alpha)$ if it holds that for any morphism $p: N \to M$ , where $N \Vdash \phi(\alpha p)$ , the assertion $N \Vdash \phi(\alpha p)$ also holds. +4. $N \Vdash \neg \phi(\alpha)$ holds if whenever the morphism $p: M \to N$ satisfies the property $N \Vdash \phi(\alpha p)$ , then $N \cong \mathbf{0}$ . +5. $M \Vdash \exists \phi(x, y)$ holds if there exists an epic arrow $p: N \to M$ and generalized elements $\beta: V \to Y$ such that $M \Vdash \phi(\alpha p, \beta)$ . +6. $M \Vdash \forall y\phi(x, y)$ holds if for every structural causal model $N$ , and every arrow $p: N \to M$ , and every generalized element $\beta: N \to O$ , it holds that $V \Vdash \phi(\alpha p, \beta)$ . + +Proof: The proof follows readily from the general result on Kripke-Joyal semantics for the Mitchell-Bénabou languages of any topos [Mac Lane and Moerdijk, 1992] The Kripke-Joyal semantics takes on a simpler form when using a Grothendieck topology on a topos, and we postpone the details to the Supplementary Materials. $\square$ + +# B.4 Kripke-Joyal Semantics for Sheaves + +In the main paper, we introduced Kripke-Joyal semantics for any topos. These semantics can be specialized to a topos equipped with a Grothendieck topology, that is a site. This specialized structure captures how causal inference is woven in the fabric of the internal logic of a causal topos. Define $\mathrm{Sh}(C,\mathcal{T})$ be a topos of sheaves with a specified Grothendieck topology $\mathcal{T}$ , defined by the following diagram: + +$$ +\mathcal {C} \stackrel {\text {上}} {\rightarrow} \mathcal {P} (\mathcal {C}) \stackrel {a} {\rightarrow} \operatorname {S h} (\mathcal {C}, \mathcal {J}) \cong \mathcal {C} +$$ + +where we know that the Yoneda embedding $\mathfrak{L}$ creates a full and faithful copy of the original category $C$ . Let us define the semantics for a sheaf element $\alpha \in X(C)$ , where $X(C) = \mathrm{Sh}(C, J)(\bar{C}(-, C), X)$ . Since we know that $\{x|\phi(x)\}$ is a subsheaf, and given an arrow $f: D \to C$ of $C$ , and $\alpha \in X(C)$ , then if $\alpha$ is one of the elements that satisfies the property that $\{x|\phi(x)\}$ , the monotonicity property stated above implies that $\alpha \circ f \in \{x|\phi(x)\}(D) \subseteq X(D)$ . Also, the local character condition stated above implies that if $\{f_i: C_i \to C\}$ is a cover in the Grothendieck topology $\mathcal{I}$ such that $C_i | \mathbb{H} \phi(\alpha \circ f_i)$ for all $i$ , then $C \mathbb{H} \phi(\alpha)$ . + +With these assumptions, we can restate the Kripke-Joyal semantics for the topos category of sheaves as follows: + +1. $C \Vdash \phi(\alpha) \land \psi(\alpha)$ if it holds that $C \Vdash \phi(\alpha)$ and $C \Vdash \psi(\alpha)$ . +2. $C \Vdash \phi(\alpha) \lor \psi(\alpha)$ if there is a covering $\{f_i : C_i \to C\}$ such that for each $i$ , either $C_i \Vdash \phi(\alpha)$ or $C_i \Vdash \psi(\alpha)$ . +3. $C \Vdash \phi(\alpha) \to \psi(\alpha)$ if for all $f: D \to C$ , and $D \Vdash \phi(\alpha \circ f)$ , it holds that $D \Vdash \psi(\alpha \circ f)$ . +4. $C \Vdash \neg \phi(\alpha)$ holds if for all arrows $f: D \to C$ in $C$ , if $D \Vdash \phi(\alpha \circ f)$ holds, then the empty family is a cover of $D$ . +5. $C \Vdash \exists y \phi(x, y)$ holds if there is a covering $\{f_i : C_i \to C\}$ and elements $\beta_i \in Y(C_i)$ such that $C_i \Vdash \phi(\alpha \circ f_i, \beta_i)$ holds for each $i$ . +6. Finally, for universal quantification, $C \Vdash \forall y \phi(x, y)$ holds if for all arrows $f: D \to C$ in the category $C$ , and all $\beta \in Y(D)$ , it holds that $D \Vdash \phi(\alpha \circ f, \beta)$ . + +# C Local Set Theory + +The Mitchell-Bénabou language is an example of a "local set theory" Bell [1988]. Formally, the Mitchell-Bénabou language for the Generalized Do-Calculus is a local set theory, defined + +by a set of types that correspond to each structural causal model $M$ object in $C_{\Omega}$ . A local set theory [Bell, 1988] is defined as a language $\mathcal{L}$ specified by the following classes of symbols: + +1. Symbols 1 and $\Omega$ representing the unity type and truth-value type symbols. +2. A collection of symbols $\mathbf{A},\mathbf{B},\mathbf{C},\ldots$ called ground type symbols. +3. A collection of symbols $\mathbf{f},\mathbf{g},\mathbf{h},\ldots$ called function symbols. + +To instantiate this definition for our paper, the ground types will be SCMs, each of which will be interpreted as a primitive type in Section B.2. We will use the topos-theoretical constructions to construct composite types. We can use an inductive procedure to recursively construct type symbols of $\mathcal{L}$ as follows: + +1. Symbols 1 and $\Omega$ are type symbols (the terminal object and the subobject classifier in a causal topos). +2. Any ground type symbol is a type symbol. For a causal topos, each SCM is a ground type symbol. +3. If $\mathbf{A}_1, \ldots, \mathbf{A}_n$ are type symbols, so is their product $\mathbf{A}_1 \times \ldots \mathbf{A}_n$ , where for $n = 0, \ldots, n$ the type of $\prod_{i=1}^{n} \mathbf{A}_i$ is $\mathbf{1}$ . The product $\mathbf{A}_1 \times \ldots \mathbf{A}_n$ has the product type symbol. These constructs allow defining an algebra of causal models. +4. If $\mathbf{A}$ is a type symbol, so is $\mathbf{PA}$ . The type $\mathbf{PA}$ is called the power type. We thus can give meaning to concept of a "powerset" of a causal model, where we interpret the subobject classifier as defining the abstract semantics of a powerset for each SCM. + +Thus, a product of SCMs will define product types. Given an SCM $M$ , we can define its power type as well, which is an abstract notion of the "power set" of a causal model (if you interpret this in the context of subobject classifiers, it means that we are defining a family of submodels). For each type symbol $\mathbf{A}$ , the language $\mathcal{L}$ contains a set of variables $x_{\mathbf{A}}, y_{\mathbf{A}}, z_{\mathbf{A}}, \ldots$ . In addition, $\mathcal{L}$ contains the distinguished * symbol. Each function symbol in $\mathcal{L}$ is assigned a signature of the form $\mathbf{A} \rightarrow \mathbf{B}$ .5 We can define the terms of the local set theory language $\mathcal{L}$ recursively as follows: + +$\bullet$ \* is a term of type 1. +- for each type symbol $\mathbf{A}$ , variables $x_{\mathbf{A}}, y_{\mathbf{A}}, \ldots$ are terms of type $\mathbf{A}$ . +- if $\mathbf{f}$ is a function symbol with signature $\mathbf{A} \rightarrow \mathbf{B}$ , and $\tau$ is a term of type $\mathbf{A}$ , then $\mathbf{f}(\tau)$ is a term of type $\mathbf{B}$ . +- If $\tau_{1},\ldots ,\tau_{n}$ are terms of types $\mathbf{A}_1,\dots ,\mathbf{A}_n$ , then $\langle \tau_1,\dots \tau_n\rangle$ is a term of type $\mathbf{A}_1\times \dots \mathbf{A}_n$ where if $n = 0$ , then $\langle \tau_1,\dots \tau_n\rangle$ is of type *. +- If $\tau$ is a term of type $\mathbf{A}_1 \times \mathbf{A}_n$ , then for $1 \leq i \leq n$ , $(\tau)_i$ is a term of type $\mathbf{A}_i$ . +- if $\alpha$ is a term of type $\Omega$ , and $x_{\mathbf{A}}$ is a variable of type $\mathbf{A}$ , then $\{x_{\mathbf{A}} : \alpha\}$ is a term of type $\mathbf{PA}$ . +- if $\sigma, \tau$ are terms of the same type, $\sigma = \tau$ is a term of type $\Omega$ . +- if $\sigma, \tau$ are terms of the types $\mathbf{A}, \mathbf{P}\mathbf{A}$ , respectively, then $\sigma \in \tau$ is a term of type $\Omega$ . + +A term of type $\Omega$ is called a formula. The language $\mathcal{L}$ does not yet have defined any logical operations, because in a typed language, logical operations can be defined in terms of the types, as illustrated below. + +- $\alpha \Leftrightarrow \beta$ is interpreted as $\alpha = \beta$ . +- true is interpreted as $* = *$ . +- $\alpha \wedge \beta$ is interpreted as $\langle \alpha, \beta \rangle = \langle \text{true}, \text{false} \rangle$ . +- $\alpha \Rightarrow \beta$ is interpreted as $(\alpha \land \beta) \Leftrightarrow \alpha$ + +- $\forall x\alpha$ is interpreted as $\{x:\alpha \} = \{x:\mathbf{true}\}$ +- false is interpreted as $\forall \omega \omega$ . +- $\neg \alpha$ is interpreted as $\alpha \Rightarrow$ false. +- $\alpha \vee \beta$ is interpreted as $\forall \omega[(\alpha \Rightarrow \omega \land \beta \Rightarrow \omega) \Rightarrow \omega]$ +- $\exists x\alpha$ is interpreted as $\forall \omega [\forall x(\alpha \Rightarrow \omega) \Rightarrow \omega]$ + +Finally, we have to specify the inference rules, which are given in the form of sequents. We will just sketch out a few, and the rest can be seen in [Bell, 1988]. A sequent is a formula $\Gamma : \alpha$ where $\alpha$ is a formula, and $\Gamma$ is a possibly empty finite set of formulae. The basic axioms include $\alpha : \alpha$ (tautology), $x_1 = *$ (unity), a rule for forming projections of products, a rule for equality, and another for comprehension. Finally, the inference rules are given in the form: + +Thinning: + +$$ +\frac {\Gamma : \alpha}{\beta , \Gamma : \alpha} +$$ + +Cut: + +$$ +\begin{array}{c} \Gamma : \alpha , \alpha , \Gamma : \beta \\ \hline \Gamma : \beta \end{array} +$$ + +- Equivalence: + +$$ +\frac {\alpha , \Gamma : \beta \beta , \Gamma : \alpha}{\Gamma : \alpha \Leftrightarrow \beta} +$$ + +A full list of inference rules with examples of proofs is given in [Bell, 1988]. Now that we have the elements of a local set theory defined as shown above, we need to connect its definitions with a causal topos. That is the topic of the next section. + +# C.1 Counterfactuals using Topos Categories + +de Araujo Fernandes and Haeusler [2009] describe an intuitionistic logic for Lewis' [Lewis, 1973] theory of counterfactuals, where the neighborhood system of possible worlds is governed by the graph topos $C_{\Gamma}$ illustrated in Figure 6. However, as Galles and Pearl [1988] argued, many counterfactuals have causal meaning. For example, the well-known counterfactual "If Kangaroos had no tails, they would fall over" attains causal meaning as the logic of counterfactuals proposed by Lewis evaluates its truth in the nearest possible worlds, where the laws of physics are the same as our world, except for a "kangaroo surgery". Lewis introduces two counterfactual connectives, and we illustrate how to model one of them in our framework: + +- $\alpha \square \rightarrow \beta$ is true in a world $u$ according to a neighborhood system $C_{\Omega}$ , if either for no world $w$ in $C_{\Omega}(u)$ , $\models_w \alpha$ , or there is some neighborhood $N$ in $C_{\Omega}(u)$ that has a world $w$ such that $\models_w \alpha$ and $\models_v \alpha \Rightarrow \beta$ in every world $v$ of $N$ . + +Crucially, unlike the case for de Araujo Fernandes and Haeusler [2009], our TCM framework imposes a causal structure on the neighborhood system. + +# D Intuitionistic $j$ -Do-Calculus on Sites + +In a recent paper, we have developed an intuitionistic generalization of Pearl's do-calculus on sites [Mahadevan, 2025a]. A site $(C, \mathcal{I})$ is a small category $C$ whose objects index regimes (e.g., labs, contexts) and a Grothendieck topology $\mathcal{I}$ that specifies which families $\{u_i \to u\}$ "cover" a stage $u$ . The topos $\mathbf{S}_{\mathcal{I}}(C)$ of $\mathcal{I}$ -sheaves behaves like a universe of sets varying over regimes. A formula $\varphi$ is $\mathcal{I}$ -stable at $u$ iff it holds on a cover of $u$ (Kripke-Joyal semantics). Intuitively: truth is verified locally and then glued. Random variables and probabilities live + +internally (as objects/morphisms of $\mathbf{Sh}_{\mathcal{I}}(C)$ ). When $\mathcal{I}$ is trivial, these reduce to the classical notions. + +Pearl's do-calculus [Pearl, 2009] is a complete axiom system for interventional identification in acyclic causal models under classical (Boolean) logic. In [Mahadevan, 2025a], we generalize it to $j$ -stable causal inference inside a topos of sheaves $\mathbf{Sh}_{\mathcal{I}}(C)$ , where regimes form a site $(C, \mathcal{I})$ and observations/interventions are sheaves on that site. We define $j$ -stability for conditional independences and interventional claims as local truth in the internal logic of $\mathbf{Sh}_{\mathcal{I}}(C)$ . We give three inference rules that mirror Pearl's insertion/deletion and action/observation exchange, and we characterize their soundness using the Kripke-Joyal semantics. In a companion paper [Mahadevan, 2025b], which is currently in preparation, we provide concrete algorithms for $j$ -stable causal discovery on sites, and compare a number of popular causal discovery procedures (score-based and constraint-based) [Zanga and Stella, 2023] with their $j$ -stable variants. + +# E Affine CDU and Markov Categories + +In this section, we review previous work on affine CDU ("copy-delete-uniform") categories [Cho and Jacobs, 2019] and Markov categories [Fritz, 2020], which have been proposed as a unifying categorical model for causal inference, probability and statistics. They are symmetric monoidal categories, which we reviewed above, combined with a comonoidal structure on each object. Importantly, Markov categories are semi-Cartesian because they do not use uniform copying, but contain a Cartesian subcategory defined by deterministic morphisms (see below). We give a brief review of Markov categories, and significant additional details that are omitted can be found in [Cho and Jacobs, 2019, Fritz, 2020, Fritz and Klingler, 2023]. The equations are written in the diagrammatic language of string diagrams, which can be shown to represent a formal language that is equivalent to writing down algebraic equations [Selinger, 2010]. + +Definition 36. A Markov category $C$ [Fritz, 2020] is a symmetric monoidal category in which every object $X \in C$ is equipped with a commutative comonoid structure given by a comultiplication $\mathsf{copy}_X : X \to X \otimes X$ and a counit $\mathsf{del}_X : X \to I$ , depicted in string diagrams as + +$$ +\operatorname {c o p y} _ {X} = \bigcup_ {\bullet} \quad \operatorname {d e l} _ {X} = \bigcirc \tag {1} +$$ + +and satisfying the commutative comonoid equations, + +$$ +\bigcup_ {\bullet} \bigcup = \bigcup_ {\bullet} \bigcup \tag {2} +$$ + +$$ +\biguplus = \Big | = \biguplus \quad \overbrace {\biguplus} = \biguplus \tag {3} +$$ + +as well as compatibility with the monoidal structure, + +$$ +\biguplus_ {X \otimes Y} ^ {\bullet} = \biguplus_ {X} ^ {\bullet} \biguplus_ {Y} ^ {\bullet} \quad \biguplus_ {X \otimes Y} ^ {X \otimes Y X \otimes Y} = \biguplus_ {X} ^ {X Y} \biguplus_ {Y} ^ {X Y} \tag {4} +$$ + +and naturality of del, which means that + +$$ +\boxed {f} = \boxed {\bullet} \tag {5} +$$ + +for every morphism $f$ . + +Let us briefly explain these definitions. The $\mathrm{del}_X: X \to I$ is essentially like integrating over a probability distribution, which always yields 1. Hence, $I$ , the unit of the tensor product, is the terminal object in affine CDU and Markov categories. Bayes rule turns into a disintegration rule [Cho and Jacobs, 2019], which is only available in Markov categories with conditionals (i.e., where one can categorically refine $P(y|x)$ conditional distributions). Note that in the continuous case of random variables defined as measurable functions on real numbers, one has to take considerable care in defining conditioning [Halmos, 1974]. The $\mathrm{copy}_X$ procedure is uniform, and deterministic, meaning if you take the tensor product of two variables $X \otimes Y$ and then copy the resulting object, that's exactly the same as first copying $X$ into $X \otimes X$ and $Y$ into $Y \otimes Y$ , and then taking the tensor product, along with a swap operation (see Equation 4). Only $\mathrm{del}_X$ acts "uniformly", meaning that if you process a variable $X$ using some function $f$ and then delete $f(X)$ (meaning marginalize it), that's equivalent to simply deleting $X$ . However, $\mathrm{copy}_X$ is not defined this way, and we discuss that subtlety below, as it will be important in understanding why Markov categories are semi-Cartesian. To convert them into a topos, we need the result to be Cartesian closed, which is why we need to use the Yoneda Lemma to construct the category of presheaves to guarantee obtaining a topos. + +# E.1 Cartesian Structure in Markov Categories + +We now discuss a subcategory of Cartesian categories within Markov that involves uniform $\mathrm{copy}_X$ and $\mathrm{del}_X$ morphisms. One fundamental property of Markov categories is that they are semi-Cartesian, as the unit object is also a terminal object. But, a subtlety arises in how these copy and delete operators are modeled, as we discuss below. + +Definition 37. A symmetric monoidal category $C$ is Cartesian if the tensor product $\otimes$ is the categorical product. + +If $C$ and $\mathcal{D}$ are symmetric monoidal categories, then a functor $F: C \to \mathcal{D}$ is monoidal if the tensor product is preserved up to coherent natural isomorphisms. $F$ is strictly monoidal if all the monoidal structures are preserved exactly, including $\otimes$ , unit object $I$ , symmetry, associative and unit natural isomorphisms. Denote the category of symmetric monoidal categories with strict functors as arrows as MON. Let us review the basic definitions given by Heunen and Vicary [2019], which will give some further clarity on the Cartesian structure in affine CDU and Markov categories. + +Definition 38. The subcategory of comonoids coMON in the ambient category MON of all symmetric monoidal categories is defined for any specific category $C$ as a collection of "coalgebraic" objects $(X, \mathrm{copy}_X, \mathrm{del}_X)$ , where $X$ is in $C$ , and arrows defined as comonoid homomorphisms from $(X, \mathrm{copy}_X, \mathrm{del}_X)$ to $(Y, \mathrm{copy}_Y, \mathrm{del}_Y)$ that act uniformly, in the sense that if $f: X \to Y$ is any morphism in $C$ , then: + +$$ +(f \otimes f) \circ c o p y _ {X} = c o p y _ {Y} \circ f +$$ + +$$ +d e l _ {Y} \circ f = d e l _ {X} +$$ + +Heunen and Vicary [2019] define the process of "uniform copying and deleting" in the category coMON, which we now relate to Markov categories. A subtle difference worth emphasizing with Definition 36 is that in Markov categories, only $\mathrm{del}_X$ is "uniform", but not $\mathrm{copy}_X$ in the sense defined by Heunen and Vicary [2019]. This distinction can be modeled in a cPROP category that is semi-Cartesian like Markov categories by suitably modifying the definition of the associated PROP map for copying. + +Definition 39. [Heunen and Vicary, 2019] A symmetric monoidal category $C$ admits uniform deleting if there is a natural transformation $e_X: X \xrightarrow{e_X} I$ for all objects in the subcategory $C_{\mathrm{coMON}}$ of comonoidal objects, where $e_I = id_I$ , as shown in Equation 5. + +This condition was referred to by Cho and Jacobs [2019] as a causality condition on the arrow $e_{X}$ . Essentially, it states that if you process some object and then discard it, it's equivalent to discarding it without processing. + +Theorem 10. [Heunen and Vicary, 2019] A symmetric monoidal category $C$ has uniform deleting if and only if $I$ is terminal. + +This property holds for Markov categories, as noted in [Fritz, 2020], and a simple diagram chasing proof is given in [Heunen and Vicary, 2019]. + +Definition 40. [Heunen and Vicary, 2019] A symmetric monoidal category $C$ has uniform copying if there is a natural transformation $\mathrm{copy}_X: X \to X \otimes X$ such that $\mathrm{del}_I = \rho_I^{-1}$ satisfying Equation 2 and Equation 3. + +We can now state an important result proved in [Heunen and Vicary, 2019] (Theorem 4.28), which relates to the more general results shown earlier by Fox [1976]. + +Theorem 11. [Fox, 1976, Heunen and Vicary, 2019] The following conditions are equivalent for a symmetric monoidal category $C$ . + +- The category $C$ is Cartesian with tensor products $\otimes$ given by the categorical product and the tensor unit is given by the terminal object. +- The symmetric monoidal category $C$ has uniform copying and deleting, and Equation 2 holds. + +As noted by Fritz [2020], not all Markov categories are Cartesian, because their $\mathbf{copy}_X$ is not uniform, but only $\mathbf{del}_X$ is. For example, consider the category FinStoch, where a joint distribution is specified by the morphism $\psi : I \to X \otimes Y$ . In this case, the marginal distributions can be formed as the composite morphisms + +$$ +\begin{array}{l} I \xrightarrow {\psi} X \otimes Y \xrightarrow {\operatorname {d e l} _ {Y}} X \\ I \xrightarrow {\psi} X \otimes Y \xrightarrow {\operatorname {d e l} _ {X}} Y \\ \end{array} +$$ + +But to require that in this case $\otimes$ is the categorical product implies that the marginal distributions defined as the above composites must be in bijection with the joint distribution. + +# F Social Impact + +Causal inference addresses real-world problems with significant social impact, including healthcare, education, climate change, and economics. Discovering causal models has enormous potential for improving human lives in all these areas. However, our paper is largely a theoretical study of the universal properties that underlie causality. It does not address concrete algorithmic questions, and is complementary to the empirical literature in the field. \ No newline at end of file diff --git a/NeurIPS/2025/Universal Causal Inference in a Topos/images.zip b/NeurIPS/2025/Universal Causal Inference in a Topos/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..922039aa983e88b1ee4e01e8dbbacd8968530293 --- /dev/null +++ b/NeurIPS/2025/Universal Causal Inference in a Topos/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a7bd59cbf172c9187af30c6c31ce41b9d09af86c3109d624bbffce681d6f42f +size 487106 diff --git a/NeurIPS/2025/Universal Causal Inference in a Topos/layout.json b/NeurIPS/2025/Universal Causal Inference in a Topos/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..9a69cde045b689ba8413f37fb91790fb9c58da3f --- /dev/null +++ b/NeurIPS/2025/Universal Causal Inference in a Topos/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72e8e87264012d11dde008edba11362b6377ddac26554634049c0684cc93a12f +size 2143456 diff --git a/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/c6a0704c-08ac-4dac-9f74-8622de2878af_content_list.json b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/c6a0704c-08ac-4dac-9f74-8622de2878af_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..992dea58c95d450d2819c9688d90ce08573655ec --- /dev/null +++ b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/c6a0704c-08ac-4dac-9f74-8622de2878af_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a66dee3b083e96c7eb0057f2df7445cc453fa7c27e14855ec25720eb009dc045 +size 195303 diff --git a/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/c6a0704c-08ac-4dac-9f74-8622de2878af_model.json b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/c6a0704c-08ac-4dac-9f74-8622de2878af_model.json new file mode 100644 index 0000000000000000000000000000000000000000..8d4a51d00bc7e1fa8bcc7c37d9d478b3739f788c --- /dev/null +++ b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/c6a0704c-08ac-4dac-9f74-8622de2878af_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:724984de8d7f702b5267dcd5151f9a2bc1c05c12a89c02c7c3ca0836910d7738 +size 242124 diff --git a/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/c6a0704c-08ac-4dac-9f74-8622de2878af_origin.pdf b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/c6a0704c-08ac-4dac-9f74-8622de2878af_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..4d37bcc0bd852c0045e6d63adcd6d19b9a3d9759 --- /dev/null +++ b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/c6a0704c-08ac-4dac-9f74-8622de2878af_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5a3959ba215ba44603ee9b1a4ad6428a08b263cfe9e55cbecf81e1d6c2dff2d +size 1360119 diff --git a/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/full.md b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/full.md new file mode 100644 index 0000000000000000000000000000000000000000..c1dc2dc8d301ae60a2000097fed20f42dce2e70b --- /dev/null +++ b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/full.md @@ -0,0 +1,702 @@ +# Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching + +Benjamin Minixhofer $^{0 \times 43}$ Ivan Vulic $^{0 \times 43}$ Edoardo M. Ponti $^{0 \times 45,0 \times 43}$ $^{0 \times 43}$ University of Cambridge $^{0 \times 45}$ University of Edinburgh + +# Abstract + +Distillation has shown remarkable success in transferring knowledge from a Large Language Model (LLM) teacher to a student LLM. However, current distillation methods require similar tokenizers between the teacher and the student, restricting their applicability to only a small subset of teacher-student pairs. In this work, we develop a principled cross-tokenizer distillation method to solve this crucial deficiency. Our method is the first to enable effective distillation across fundamentally different tokenizers, while also substantially outperforming prior methods in all other cases. We verify the efficacy of our method on three distinct use cases. First, we show that viewing tokenizer transfer as self-distillation enables unprecedently effective transfer across tokenizers, including rapid transfer of subword models to the byte-level. Transferring different models to the same tokenizer also enables assembling to boost performance. Secondly, we distil a large maths-specialised LLM into a small general-purpose model with a different tokenizer, achieving competitive maths problem-solving performance. Thirdly, we use our method to train state-of-the-art embedding prediction hypernetworks for training-free tokenizer transfer. Our results unlock an expanded range of teacher-student pairs for distillation, enabling new ways to adapt and enhance interaction between LLMs. + +# 1 Introduction + +Even the latest, most powerful Large Language Models (LLMs) still operate on tokens, and therefore require a tokenizer — a manually designed component which turns text into a sequence of tokens. Most currently available language models use subword tokenization (Sennrich et al., 2016; Kudo & Richardson, 2018), where each token is a word, or part of a word. Even though subword tokenizers are currently dominant, they are heterogeneously implemented: when a model is released, it often comes with its own tokenizer which has distinct properties such as the actual tokens it comprises (its vocabulary) and which method is used to segment text into these tokens (its tokenization function). Furthermore, there has been a recent trend away from subwords toward models using vocabularies consisting of characters (Tay et al., 2022; Nawrot et al., 2023) or bytes (e.g. Xue et al., 2022; Yu et al., 2023; Pagnoni et al., 2024). This exemplifies the wildly diverse landscape of tokenization. + +On the other hand, distillation (Bucilua et al., 2006; Hinton et al., 2015) has emerged as a powerful paradigm for creating effective language models by training them based on the signal from another model. However, existing distillation methods require similar tokenizers between the teacher and the student. In particular, most prior methods require the teacher and student to represent their input in the same way, i.e., that their tokenizer is equivalent (e.g., Gu et al., 2024; Ko et al., 2024). Some recent methods relax this requirement by developing heuristics to incorporate information from the teacher alongside a main objective (e.g., next-token prediction), making progress toward enabling distillation across similar (but not equivalent) tokenizers (Zhang et al., 2024b; Wan et al., 2024; Boizard et al., 2025). Nonetheless, this requirement still limits their applicability to a rather small subset of the possible teacher-student pairs. In this work, we develop a cross-tokenizer distillation method to solve + +![](images/b1895b521972e352009e0b2aa865345be3c367b1435069701780a9d3b40591d5.jpg) +Figure 1: We propose a cross-tokenizer distillation method which identifies comparable chunks of tokens, then minimizes the differences between their likelihoods (c.f. Section 3). + +this problem. Our principled objective enables distillation across highly dissimilar tokenizers for the first time (e.g., distilling from a subword tokenizer to a byte-level tokenizer), while also unlocking pure distillation — training to purely match the teachers' behaviour, instead of matching the teachers' behaviour as an auxiliary objective, which can lead to further empirical improvements. + +In a nutshell, given some text, we first tokenize it with the teacher and the student tokenizers and compute the next-token likelihoods of all tokens under both models. We then find aligned chunks of tokens (the chunks encoding the same portions of text) between the two sequences. Now, to compare the chunk likelihoods of the aligned chunks (e.g., via their KL-divergence), we would need to know the likelihoods of all possible outcomes. This is not an issue in the same-tokenizer distillation case since we can compute the likelihoods of all tokens in the vocabulary in a single forward pass. However, in our case, we would have to compute the likelihoods of all multi-token chunks, which is impossible since their number is infinite. We thus approximate the chunk likelihood difference via a binarised $f$ -divergence (Section 3). Together with optional debiasing (Section 3.1) and distillation of the hidden states (Section 3.2), this leads to an effective and universal cross-tokenizer distillation method, which we refer to as Approximate Likelihood Matching (ALM), sketched in Figure 1. + +We test ALM on three use cases. First, we propose a novel viewpoint of tokenizer transfer as cross-tokenizer self-distillation (Use Case 1). This enables transferring subword-based LLMs to a different subword tokenizer while largely retaining performance, and achieves rapid and effective Subword $\rightarrow$ Byte transfer for the first time. This allows us to create a competitive byte-level model at a fraction of the cost of training it from scratch. We further show that transferring different models to the same subword tokenizer enables assembling their predictions (e.g., via averaging their token-level probabilities) which substantially boosts performance over the individual parts. Secondly, we show that ALM outperforms prior methods at distillation of a large math-specialised model into a much smaller general-purpose model with a different tokenizer (Use Case 2). Thirdly, we plug-in ALM as objective to train embedding predictions hypernetworks as introduced by Minixhofer et al. (2024), achieving a new state-of-the-art in tokenizer transfer without ever training on the target tokenizer (i.e., Zero-Shot Tokenizer Transfer, Use Case 3). In summary, our work greatly expands the number of possible teacher-student pairs for distillation, improving reusability, composability and transferability of language models. Our code and models are available at github.com/bminixhofer-tokenkit. + +# 2 Preliminaries and Background + +# 2.1 Tokenizers + +Definition. Tokenizers map the input text to a sequence of tokens. Formally, they operate on finite sequences $\Sigma^{\star}$ over the alphabet $\Sigma$ . For simplicity and since it is not vital to our method, we presume $\Sigma$ to be the set of bytes $\{0, \dots, 255\}$ and $\Sigma^{\star}$ a string represented as bytes via the UTF-8 standard (Yergeau, 2003). This does not lose generality, since although some tokenizers operate on units built on top of UTF-8 bytes (e.g., Unicode characters; Kudo & Richardson, 2018), they can be transformed to operate on bytes instead (Minixhofer et al., 2024). Following prior work (Uzan et al., 2024; Feher et al., 2024), we denote the tokenizer as the tuple $(\mathcal{V}, T)$ comprising (i) the vocabulary $\mathcal{V}$ which determines the set of all possible tokens and (ii) the tokenization function $T: \Sigma^{\star} \to \mathcal{V}^{\star}$ which determines the sequence of tokens any given text is mapped to. + +Tokenization functions fuse bytes into larger (e.g., subword) tokens without loss of information. Consider the tokens $\{t_1, t_2, \ldots, t_n\} = T(\pmb{x})$ . Then $t_1 \odot t_2 \odot \ldots \odot t_n = \pmb{x}$ (where $\odot$ is the concatenation operator). This has multiple useful implications. All elements in the vocabulary $\mathcal{V}$ are sequences of bytes $\Sigma^{\star}$ . Furthermore, $T$ is injective so there exists a left inverse $D$ such that $\pmb{x} = D(T(\pmb{x})) \forall \pmb{x}$ . We call $D$ the detokenization function. Importantly, $D$ is only a left inverse, i.e., there may exist a token sequence $\pmb{t}$ such that $\pmb{t} \neq T(D(\pmb{t}))$ since $T$ is not necessarily bijective. + +Tokenization Bias. Subword tokenizers suffer from what has been termed tokenization bias (Phan et al., 2024): sequences of tokens can implicitly leak information about the future content of the text they tokenize. For example, assuming a vocabulary of English words, the token sequence \{_Hello, _Wor\} leaks that there is no 'ld' after '\_Worl', otherwise the text would have been tokenized as \{_Hello, _World\} instead (see also Vieira et al., 2024). + +# 2.2 Generative Language Models + +Generative language models are auto-regressive next-token predictors. Given a sequence of tokens, a generative language model $\theta$ defines a probability distribution $p_{\theta}(t_i|t_{:i})^3$ over the next token. To compute the probability of a multi-token sequence conditioned on $\pmb{t}_i$ , we can compute $p_{\theta}(\pmb{t}_{i:j}|t_{:i}) = p_{\theta}(t_i|\pmb{t}_{:i})\cdot \ldots \cdot p_{\theta}(t_{j - 1}|\pmb{t}_{:j - 1})$ . To auto-regressively sample from the model, we continuously sample $u\sim p_{\theta}(u|\pmb{t}_{:i})$ and append the sampled $u$ to the sequence. However, the token level is not an intuitive interface to language models. To obtain a text level interface, we need to wrap the language model with tokenization and detokenization. We can compute the probability of a text $\pmb{y}$ conditioned on the text $\pmb{x}$ via $p_{\theta}(T(\pmb{y})|T(\pmb{x}))$ . We can auto-regressively generate a text $\pmb{y}$ conditioned on $\pmb{x}$ by sampling $u_{i}\sim p_{\theta}(u_{i}|T(\pmb{x})\odot \pmb{u}_{:i})$ for $i\in \{0,\dots ,n\}$ , then detokenizing to obtain $\pmb{y} = D(u_0,\dots,u_n)$ . However, for tokenization and detokenization not to introduce any bias, $T(\pmb {x})\odot T(\pmb {y}) = T(\pmb {x}\odot \pmb {y})$ must hold. This is not always the case due to tokenization bias (see above). + +# 2.3 Distillation + +Pure Distillation vs. Hybrid Distillation. The general idea behind distillation is to transfer knowledge from a teacher model $\phi$ to a student model $\theta$ , where the student model has some desirable properties (e.g., being more efficient; Bucilua et al., 2006; Hinton et al., 2015).4 We denote the teacher likelihoods $p_T \coloneqq p_\phi$ and the student likelihoods $p_S \coloneqq p_\theta$ . A key distinction can be drawn between pure distillation, where the primary objective is for the student predictions $p_S(\boldsymbol{y}|\boldsymbol{x})$ to match the teachers' predictions $p_T(\boldsymbol{y}|\boldsymbol{x})$ and hybrid distillation, where the main task is to model some ground-truth $p(\boldsymbol{y}|\boldsymbol{x})$ , and a distillation objective is used in addition to the main objective (e.g., next-token prediction) to increase performance on the main task. Hybrid distillation can be useful to avoid potential issues arising from the pure setup, e.g. teacher hacking (Tiapkin et al., 2025) and a detrimental student-teacher capacity gap (Busbridge et al., 2025). On the other hand, pure distillation can be highly effective at preserving the student's knowledge when it has the same backbone as the teacher (self-distillation); a setting where hybrid distillation can be destructive (c.f. Section 4). + +Distillation Objectives. To encourage the student predictions to match the teachers', we need some measure of distance between $p_S(\boldsymbol{y}|\boldsymbol{x})$ and $p_T(\boldsymbol{y}|\boldsymbol{x})$ . The typical choice is the Kullback-Leibler divergence $D_{\mathrm{KL}}(p_T\parallel p_S) = \sum_{t_i\in \mathcal{V}}p_T(t_i|\boldsymbol{t}_{:i})\log \frac{p_T(t_i|\boldsymbol{t}_{:i})}{p_S(t_i|\boldsymbol{t}_{:i})}$ (Kullback & Leibler, 1951). However, other objectives have been argued to be more suitable for distillation (Gu et al., 2024; Ko et al., 2024); many of them are instances of $f$ -divergences of the form $D_{\mathrm{f}}(p_T\parallel p_S) = \sum_{t_i\in \mathcal{V}}f(p_T(t_i|\boldsymbol{t}_{:i})\| p_S(t_i|t_{:i}))$ where $f(p_{T}(x)\| p_{S}(x)) = p_{S}(x)g(\frac{p_{T}(x)}{p_{S}(x)})$ and $g$ is convex and non-negative (Rényi, 1961).5 + +Cross-Tokener Distillation. Recent work has begun investigating ways to distill across different tokenizers, proposing ULD (Boizard et al., 2025), MinED (Wan et al., 2024) and DSKD (Zhang et al., 2024b). We provide a detailed overview of these prior cross-tokenizer distillation methods in Appendix G. They have in common that they heuristically incorporate some information from the teacher. These heuristics are imperfect; prior methods thus strictly operate in the hybrid distillation setup, lacking the properties necessary to form a pure distillation objective (e.g., the loss being minimised iff $p_S(\boldsymbol{y}|\boldsymbol{x}) = p_T(\boldsymbol{y}|\boldsymbol{x}) \forall \boldsymbol{x}, \boldsymbol{y}$ ). Our key contribution is introducing a principled cross-tokenizer distillation objective which enables distillation across fundamentally different tokenizers (e.g., Subword → Byte) for the first time, while also unlocking pure-cross tokenizer distillation. + +# 3 Methodology + +Our key goal is for the student likelihood $p_S(T_S(\boldsymbol{z})|T_S(\boldsymbol{y}))$ to be equal to the teacher likelihood $p_T(T_T(\boldsymbol{z})|T_T(\boldsymbol{y}))$ for every comparable $^6$ prefix $\boldsymbol{y} \in \Sigma^\star$ and continuation $\boldsymbol{z} \in \Sigma^\star$ . To this end, we start by computing the next-token probabilities $p_T(T_T(\boldsymbol{x})_i|T_T(\boldsymbol{x})_{:i})$ and $p_S(T_S(\boldsymbol{x})_i|T_S(\boldsymbol{x})_{:i})$ . This can be done in a single forward pass over both language models. We can now enumerate the starting and ending positions of the aligned token chunks between the teacher and the student sequences. $^7$ + +$$ +A _ {c} (\boldsymbol {x}) = \left\{(i, j, k, l) \in \mathbb {Z} ^ {4} \left| \begin{array}{l} D (T _ {T} (\boldsymbol {x}) _ {: i}) = D (T _ {S} (\boldsymbol {x}) _ {: k}) = \boldsymbol {y}, \\ D (T _ {T} (\boldsymbol {x}) _ {i: j}) = D (T _ {S} (\boldsymbol {x}) _ {k: l}) = \boldsymbol {z}, \\ c (i, j, k, l) \quad \text {h o l d s} \end{array} \right. \right\} \quad \text {(A l i g n m e n t I n d i c e s)} +$$ + +Here, $c(i,j,k,l)$ can optionally constrain the alignment to chunks which are amenable to comparison (more on this later in Section 3.1). For now, we define the chunk-level probabilities $p(\boldsymbol{x},i:j)$ as + +$$ +p (\boldsymbol {x}, i: j) := p (T (\boldsymbol {x}) _ {i: j} \mid T (\boldsymbol {x}) _ {i: i}). \quad \text {(C h u n k - L e v e l P r o b a b i l i t y)} +$$ + +This lets us define our final objective minimising a divergence between the chunk-level probabilities: + +$$ +\mathcal {L} _ {S, T} ^ {\mathrm {A L M}} (\boldsymbol {x}) = \sum_ {i, j, k, l \in A _ {c} (\boldsymbol {x})} f \left(p _ {T} (\boldsymbol {x}, i: j) ^ {\frac {1}{\tau}} \mid \mid p _ {S} (\boldsymbol {x}, k: l) ^ {\frac {1}{\tau}}\right) + f \left(1 - p _ {T} (\boldsymbol {x}, i: j) ^ {\frac {1}{\tau}} \mid \mid 1 - p _ {S} (\boldsymbol {x}, k: l) ^ {\frac {1}{\tau}}\right) +$$ + +(ALM Objective) + +where $\tau$ is a temperature scaling hyperparameter and $f$ is a function inducing an $f$ -divergence (Rényi, 1961). Typically, with identical tokenizers, the sum of the $f$ -divergence would range over all tokens in the vocabulary; however, when comparing chunk-level probabilities there is an infinite amount of possible outcomes since there is an infinite amount of possible byte sequences, whose probability cannot be estimated in a finite time. We thus resort to computing the $f$ -divergence over the binarised possibilities $\{p(\boldsymbol{x}, i:j), 1 - p(\boldsymbol{x}, i:j)\}$ given a sample $\boldsymbol{x} \sim \mathcal{D}$ . This constitutes an upper bound to the true $f$ -divergence and preserves its crucial properties (e.g., being minimal iff $p_S = p_T$ ; see Appendix E for further analysis). + +# 3.1 Outcome Chunk Debiasing + +Our formulation for the Chunk-Level Probability is only approximate since the conditions $T(\pmb{x})_{i}$ and the outcomes $T(\pmb{x})_{i:j}$ could exhibit different tokenization biases across the teacher and the student. We can avoid the bias stemming from the outcome chunk by modifying the chunk probability to + +$$ +p ^ {\text {d e b i a s e d}} (\boldsymbol {x}, i: j) := p (T (\boldsymbol {x}) _ {i: j} | T (\boldsymbol {x}) _ {: i}) \cdot \sum \left\{p (e | T (\boldsymbol {x}) _ {: j}) \mid e \in \mathcal {V}, e \text {s t a r t s w i t h a n y} b \in \mathcal {B} \right\} +$$ + +(Outcome-Debiased Chunk-Level Probability) + +![](images/29f0d9855b333539647f2a2811acbe67ebb667abbc259caeffa4fdb5c2b01ac2.jpg) +Figure 2: Outcome chunk debiasing removes tokenization bias. For example, the low probability of the subword token _Wor would be matched to the high-probability byte sequence $\{., W, o, r\}$ in naive subword $\rightarrow$ byte transfer. We can debias by multiplying by the marginal probability of a pretoken-boundary byte occurring after the chunk. In this example, $\{\backslash n, !\} \subseteq \mathcal{B}$ and $s \notin \mathcal{B}, 1 \notin \mathcal{B}$ where $\mathcal{B}$ is the set of shared pretoken-boundary bytes across the teacher and the student. + +Here, $\mathcal{B}$ is the set of pretoken-boundary bytes; these are bytes which never occur within a token. In practice, this can be e.g. whitespace such as the bytes corresponding to the $\backslash \mathfrak{n},\backslash \mathfrak{t}$ and the space character. Going back to our example from Section 2.1, let $t = \{\_ \mathrm{Hello},\_ \mathrm{Wor}\}$ . By computing $p(t)\cdot (p(\{\_)|t) + (p(\{\backslash \mathfrak{n}\} |t) + \dots)$ , we explicitly exclude the possibility that $t$ is followed by the letters 'ld', which, assuming every chosen ending token $e$ starts with a byte in $\mathcal{B}$ , removes tokenization bias (otherwise, the sequence would still be biased since there could exist a single token encoding $D(t\odot \{e\})$ ). This debiasing has been first introduced by Pimentel & Meister (2024) in the context of correctly computing the conditional probability of a word under an autoregressive language model. See Figure 2 for an illustration of this example. Debiasing is only feasibly applicable to the outcome chunks since the required probabilities are computable 'for free' within a single forward pass. There is, however, one remaining complication: if the debiasing probability is very low, the multiplication with $p(T(x)_{i:j}|T(x)_{i:i})$ will 'erase' the chunk probability to an extremely low value, making meaningful comparison between chunk probabilities difficult. To address this issue, we set the alignment constraint (c.f. Equation Alignment Indices): + +$$ +c (i, j, k, l) := \sum \left\{p _ {T} \left(e \mid T _ {T} (\boldsymbol {x}) _ {: j}\right) \mid e \in \mathcal {V} _ {T}, e \text {s t a r t s w i t h a n y} b \in \mathcal {B} \right\} \geq \gamma +$$ + +We ablate the impact of outcome chunk debiasing in Appendix A.3, finding that it substantially improves performance, with a slight further improvement by choosing a nonzero threshold $\gamma$ . + +# 3.2 Distilling Hidden States across Tokenizers + +A limitation of our method is that, since we match 32-bit floating point chunk probabilities, the teacher signal has $|A_{c}| \times 32$ bit per text, while it typically has $\mathcal{O}(|V|)$ more at $|T(\boldsymbol{x})| \times |\mathcal{V}| \times 32$ bit when the teacher and the student have the same tokenizer (i.e., KL divergence between the teacher and the student next-token distributions). To make up for this sparsity of the signal, we optionally add an auxiliary loss maximizing the similarity of aligned hidden states between the two models. + +$$ +\mathcal {L} _ {S, T} ^ {\text {h i d d e n}} (\boldsymbol {x}) = \sum_ {l _ {T}, l _ {S} \in L _ {T, S}} \sum_ {i, j, k, l \in \boldsymbol {A} (\boldsymbol {x})} \| H _ {T} (T _ {T} (\boldsymbol {x})) _ {j} ^ {l _ {T}} - \operatorname {p r o j} (H _ {S} (T _ {S} (\boldsymbol {x})) _ {l} ^ {l _ {S}}) \| +$$ + +(Hidden State Alignment Objective) + +where $H_{\star}(\ldots)_i^l$ are the language models' hidden states at layer $l$ and index $i$ in the sequence and $L_{T,S}\in \mathbb{Z}^2$ are layer-wise alignments between the teacher and the student (e.g., indicating that the last + +Table 1: Results of transferring the Gemma2 2B IT and Llama3.2 3B IT LLMs to the Qwen2 tokenizer and to byte-level tokenization. original denotes the original model without transfer. ${ARC} - C$ refers to Arc-Challenge. AGI-EN and AGI-ZH refer to the English and Chinese splits of AGIEval. + +
ModelTokenizer MethodBenchmarkAvg.
PiQAARC-CBoolQMMLUAGI-ENAGI-ZHIFEval
Gemma2 2B IToriginal79.650.483.856.942.130.762.558.0
SFT75.843.577.749.831.428.754.251.6
DSKD74.041.479.750.433.028.953.651.6
MinED76.744.379.651.833.028.857.153.0
ALM + SFT77.048.082.553.436.431.455.754.9
ALM76.849.082.753.638.931.653.255.1
SFT70.734.767.943.127.630.051.546.5
DSKD70.535.670.242.327.530.455.047.4
MinED69.435.872.842.928.729.950.247.1
ALM + SFT71.538.280.551.035.630.451.951.3
ALM72.040.681.151.036.029.344.350.6
Llama3.2 3B IToriginal76.943.978.862.436.640.276.659.3
SFT76.444.080.060.733.929.665.655.7
DSKD72.037.278.345.932.530.960.751.1
MinED77.144.282.460.935.829.471.057.3
ALM + SFT77.044.479.961.837.132.074.158.0
ALM77.345.679.061.637.133.376.358.6
SFT75.239.876.851.531.532.660.852.6
DSKD71.136.065.848.032.030.357.948.7
MinED73.238.778.651.133.132.359.652.4
ALM + SFT73.639.876.657.035.733.358.853.5
ALM73.740.176.055.935.733.249.252.0
+ +layer hidden states of the two models should be aligned). $\mathrm{proj}(\star):\mathbb{R}^{d_S}\to \mathbb{R}^{d_T}$ is a learnt projection function mapping the student hidden states to the teachers' dimensionality. We use greedy alignments (without any constraint $c$ ) as the hidden state alignments $\pmb {A}(\pmb {x})$ . The auxiliary loss enriches the signal from the teacher by $|\pmb {A}|\times d_T\times 32$ bit. We find it to be particularly useful in some cases when the teacher and the student have the same underlying architecture (c.f. Section 4). + +# 3.3 Combining Loss Components + +As per above, we have two distillation loss components $\mathcal{L}_{S,T}^{\mathrm{ALM}}(\pmb{x})$ and $\mathcal{L}_{S,T}^{\mathrm{hidden}}(\pmb{x})$ . We can also combine the distillation loss with a next-token prediction objective (making it hybrid distillation; c.f. Section 2.3). The question, then, is how to combine these losses into one? Prior work (Zhang et al., 2024b; Wan et al., 2024, among others) aggregates losses via their arithmetic sum, where the contribution of each loss is optionally modulated by factors $\beta_{1}, \beta_{2}, \dots, \beta_{n}$ . Although this allows choosing $\beta$ such that the losses have approximately equal magnitudes, this does not mean that they contribute equally: they only contribute equally if their gradients have equal magnitudes. These two quantities are not necessarily related: for example, forward KL-divergence and cross-entropy have different values but equivalent gradients w.r.t. the predicted probabilities. To solve this problem, GradNorm (Chen et al., 2018) introduces an auxiliary loss to learn task weights such that the per-task gradients $G_W^i$ of the last layer weights $W$ have similar magnitudes across tasks (enumerated by $i$ ). We take a simpler approach: We compute per-task gradients for the last layer, then set the weight for the task $i$ to $1 / \| G_W^i\|$ (normalised to sum to one). Instead of optimizing a loss toward similar last-layer gradient magnitudes, we thus directly solve for equal last-layer gradient magnitudes, choosing only the last layer gradients to maintain minimal overhead. This method (which we refer to as GradMag) performs on par or better than GradNorm while being easier to implement (see Appendix A.4). + +# 4 Experiments + +We experimentally verify our method on three distinct use cases. First, we observe that self-distillation across tokenizers enables unprecedentedly effective transfer of a pre-trained language model to a different tokenizer, which we explore in Use Case 1. Secondly, we find that ALM improves over prior cross-tokenizer distillation objectives at distilling a large maths-specialised model into a much smaller model (Use Case 2). Thirdly, we plug in ALM as a replacement for the next-token prediction objective of Minixhofer et al. (2024)'s hypernetwork training procedure, achieving a new state-of-the-art in Zero-Shot Tokenizer Transfer across a range of tasks (Use Case 3). + +# Use Case 1: Tokenizer Transfer via Self-Distillation + +Tokenizer transfer is the problem of transferring a pretrained language model to a different tokenizer which typically has some desirable properties (c.f. Rust et al., 2021). We observe that tokenizer transfer can be treated as cross-tokenizer self-distillation: the teacher is the language model with the original tokenizer, and the student is the same language model with the new tokenizer. We investigate two particular applications of tokenizer transfer via self-distillation. First, we transfer multiple language models to the same (subword) tokenizer; this enables token-level ensembling, improving their performance. Second, we transfer subword-based language models to byte-level tokenization, fundamentally changing their token granularity. This may be an attractive way of creating byte-level models instead of expensively training from scratch. + +Models. We use the instruction-tuned Gemma2 2B IT (Gemma Team et al., 2024) and the instruction-tuned Llama 3.2 3B IT (Grattafori et al., 2024) as the models for self-distillation. We transfer these models to the Qwen2 tokenizer; this enables assembling the models with models of the Qwen series, for which we choose Qwen2.5 1.5B IT (Qwen et al., 2025). We examine the choice of the pivot and the related subtle decision whether to keep or to transfer the special tokens in Appendix H. + +Baseline Methods. We compare against initialising the new token embeddings using a heuristic (e.g. Tran, 2020; Minixhofer et al., 2022; Gee et al., 2022; Dobler & de Melo, 2023), then training on next-token prediction – the current standard methodology for tokenizer transfer. We refer to this baseline as SFT. We use FVT (Gee et al., 2022) as the initialisation heuristic following Minixhofer et al. (2024). We choose DSKD Zhang et al. (2024b) and MinED (Wan et al., 2024) as cross-tokenizer distillation baselines. $^9$ DSKD and MinED add cross-tokenizer distillation to the next-token prediction objective, so they need to train jointly on SFT and distillation; this is not the case for ALM. We thus also experiment with our objective plus next-token prediction $(ALM + SFT)$ . + +Training. We train on the Tulu3 instruction-tuning dataset (Lambert et al., 2025) with LoRA (Hu et al., 2022), sweeping over the learning rate per method (see Appendix A.1) and using GradMag to combine loss components (c.f. Section 3.3); see Appendix B for training details. For transfer to bytes, we make additional adjustments to account for this fundamental change discussed in Appendix C. + +Evaluation & Transfer Results. We evaluate on a standard set of natural language benchmarks consisting of PiQA (Bisk et al., 2020), ARC-Challenge (Clark et al., 2018), BoolQ (Clark et al., 2019), MMLU (Hendrycks et al., 2021), AGIEval (Zhong et al., 2023) $^{10}$ and IFEval (Zhou et al., 2023). We use lm-eval (Gao et al., 2024) for all evaluations. Table 1 shows tokenizer transfer results. On transfer to the subword-level Qwen2 tokenizer, MinED leads to consistent improvements over SFT, and ALM and ALM+SFT consistently improve over MinED. Here, pure ALM (without SFT) performs better than ALM+SFT, which may be the case due to better preserving the original model's behaviour. The byte-transfer case is substantially harder: in general, we expect the difficulty of cross-tokenizer distillation to correlate with the difference in vocabulary size between the teacher and the student. The vocabulary size difference is extreme for transfer to bytes. In this case, prior cross-tokenizer distillation methods do not achieve consistent improvements over SFT. In constraint, ALM and ALM+SFT achieve substantial and consistent improvements. We hypothesize ALM+SFT outperforms ALM here since naïve transfer to bytes is necessarily strongly destructive since the model has to adapt to a vastly different granularity, so preserving the original model's behaviour + +Table 2: Results of ensembling (transferred) Gemma2 and Llama3 with a Qwen2.5 model. $p$ and logp denote taking the arithmetic mean of the probabilities and the log probabilities, respectively. MinED denotes the ensembling baseline based on heuristically aligning token probabilities. + +
Size ID ModelBenchmarkAvg.
PiQAARC-CBoolQMMLUAGI-ENAGI-ZHIFEval
Original +Models2.6BGGemma2 2B IT79.650.483.856.942.130.762.558.0
3.2BLLlama3.2 3B IT76.943.978.862.436.640.276.659.3
1.5BQQwen2.5 1.5B IT76.343.277.960.145.054.246.357.6
Transfers2.4BG'G→Q Tok.76.849.082.753.638.931.653.255.1
3.3BL'L→Q Tok.77.345.679.061.637.133.376.358.6
Ensembles7.3BQ+G+L (MinED-logp)75.746.884.662.642.034.567.259.1
7.3BQ+G+L (MinED-p)76.946.283.264.140.639.465.959.5
7.2BQ+G'+L' (logp)77.748.483.962.244.246.861.160.6
7.2BQ+G'+L' (p)77.548.083.463.043.645.764.360.8
Larger +Models7.6BLlama3.1 8B IT81.653.985.468.447.347.181.766.5
8.0BQwen2.5 7B IT80.454.386.471.757.672.676.671.4
+ +is less crucial. For transfer to bytes, a gap with respect to the original model remains in all cases. There are multiple avenues toward closing this gap: it may be beneficial to add a distillation phase on pretraining data, to add more layers to close the gap in effective parameter count, to retrofit the model into an hourglass architecture with token merging as in DTP (Nawrot et al., 2023) or BLT (Pagnoni et al., 2024), and/or to add multi-byte prediction (Gloeckle et al., 2024). + +Ensembling Results. Table 2 shows the results of ensembling Qwen with the transferred Gemma and Llama models $(\mathcal{Q} + \mathcal{G}' + \mathcal{L}')$ . Following Huang et al. (2024), we compare against a MinED ensemble: this applies the same heuristic as the corresponding distillation method to map tokens in the respective vocabularies to the pivot vocabulary (in this case, Qwen). $^{11}$ The ensemble exhibits two notable characteristics: (i) on tasks where all constituents perform at a similar level, the ensemble improves over the performance of each individual model (e.g., PiQA, BoolQ, MMLU) and (ii) on tasks were either one of the constituents performs exceptionally well, the ensemble moves the needle toward this level of performance, although it doesn't reach it (e.g., ARC-C, AGIEval, IFEval). These improvements stem from naively averaging the models' predictions. We believe they open the door toward more sophisticated inter-model combination via improved ensembling (e.g., Ormazabal et al., 2023), routing (e.g., Shen et al., 2024) and/or merging (e.g., Sharma et al., 2024). + +Cost of Distillation. We report the FLOPS and memory requirements as well as the task performance across methods in Figure 3. DSKD requires substantially more TFLOPs than the other methods since there is an extra cross-attention step between the teacher and the student sequences which can incur substantial costs. This is further exacerbated with longer contexts (e.g., when transferring to bytes). MinED needs substantially more memory since the $|T(\boldsymbol{x})| \times |V|$ matrix of logits needs to be aligned with the student along the sequence and vocabulary dimensions. ALM suffers from neither of these constraints and reduces the gap to the teacher by an additional $34\%$ over the best prior method. + +# Use Case 2: Large-to-Small Distillation Across Tokenizers + +To investigate the efficacy of our method in a large-to-small distillation setting, we scale up from the evaluation setups used in prior work on cross-tokenizer distillation to a realistic larger-scale setup: distilling the maths-specialised OpenMath2-Llama3.1-8B (Toshniwal et al., 2024) into Gemma2 2B. As in Use Case 1, we compare our method against training with SFT, DSKD, and MinED. + +Training. We use the OpenMathInstruct-2 dataset (which the teacher has been trained on; Toshniwal et al., 2024) and follow the training setup from Use Case 1, apart from increasing the sequence length to 1024 to allow for longer chain-of-thought traces, doubling the batch size to 64, and accordingly reducing the training steps to 5k to train for an equivalent total amount of tokens. We also found it beneficial to train the full model and reduce the learning rate to 5e-6 in preliminary experiments. + +![](images/8eaaec28755a704330375cf74135d0e1b87a88facae7be49214efffe95426065.jpg) +Figure 3: Efficiency and task performance metrics of cross-tokenizer distillation methods, measured via worst-case performance across transfer of Gemma2 to Qwen2 and byte-level tokenizers. SFT denotes the required FLOPs and memory as well as the task performance of the SFT baseline. + +Table 3: Results of cross-tokenizer distilling the large math-specialized OpenMath2-Llama3.1-8B into the small Gemma2 2B language model. All results are zero-shot CoT. + +
ModelMethodGSM8KMATHAvg.
OpenMath2-Llama3.1-8B88.9 ±0.8660.2 ±0.6974.6 ±0.55
Gemma2 2B IT6.1 ±0.6611.3 ±0.458.7 ±0.40
Gemma2 2BSFT67.2 ±1.2936.2 ±0.6851.7 ±0.73
DSKD65.7 ±1.3134.9 ±0.6750.3 ±0.74
MinED64.9 ±1.3134.6 ±0.6749.8 ±0.74
ALM + SFT70.2 ±1.2636.4 ±0.6853.3 ±0.72
ALM68.5 ±1.2836.7 ±0.6852.6 ±0.72
+ +Evaluation & Results. We report zero-shot accuracy on GSM8K (Cobbe et al., 2021) and the MATH benchmark (Hendrycks et al., 2021) in Table 3. Notably, the SFT baseline is competitive, surpassing both MinED and DSKD. However, ALM and ALM + SFT do consistently outperform SFT, leading to an improvement of up to $3\%$ points while greatly surpassing the general-purpose Gemma2 2B IT and achieving 53.3 / 74.6 of the teachers' average performance at 4x fewer parameters. + +# Use Case 3: Improving Zero-Shot Tokenizer Transfer Hypernetworks via Self-Distillation + +As a final use case, we apply ALM to Zero-Shot Tokenizer Transfer (ZeTT) hypernetworks (Minixhofer et al., 2024). In a nutshell, the idea is training a hypernetwork on a distribution of randomly sampled tokenizers such that, after training, the hypernetwork can predict embeddings for any arbitrary tokenizer. The tokenizer transfer effort is thus shifted to a hypernetwork training stage, making subsequent tokenizer transfer easier (or even possible in zero-shot). Minixhofer et al. (2024) train the hypernetworks via a next-token prediction objective, i.e., to predict embeddings which minimize the cross-entropy of the next-token prediction. We instead plug in the ALM loss, training the hypernetwork to produce embeddings which mimic the behaviour of the original model, instead of merely predicting embeddings which perform well at next-token prediction. $^{12}$ Results are shown in Table 4. ALM outperforms SFT for hypernetwork training (e.g. $67.5 \rightarrow 74.0$ on BoolQ for zero-shot transfer to the Mistral v2 tokenizer). In general, we expect direct tokenizer transfer self-distillation via ALM as in Use Case 1 to be the most efficient if the goal is transferring to a single target tokenizer. However, if the goal is to potentially transfer to up to $N$ different tokenizers, there is some threshold of $N$ where we expect it would become more efficient to train a ZeTT hypernetwork once, then have a brief additional training phase per tokenizer, instead of separately transferring to the $N$ tokenizers individually. ZeTT hypernetwork training also demonstrates another advantage of our method: while MinED needs an expensive pre-computation step to compute the Levenshtein distance between every pair of tokens, ALM does not require any pre-computation: it can operate in online settings such as hypernetwork training where a new tokenizer is sampled at every training step. + +Table 4: Performance of a Gemma2 2B hypernetwork trained with SFT vs. ALM on zero-shot transfer to the GPT2 (Radford et al., 2019), Mistral v2 (Mistral AI, 2025) and Llama3 tokenizers. $^{14}$ + +
TokenizerMethodBenchmarkAvg.
PiQAARC-EARC-CBoolQMMLUAGI-ENAGI-ZHHS
original79.678.250.483.856.942.130.772.661.8
0-shot GPT2SFT74.663.140.173.240.826.727.868.951.9
ALM76.167.241.471.645.026.127.269.753.0
0-shot Mistral v2SFT73.661.637.767.537.725.229.364.549.6
ALM75.266.340.574.038.526.328.666.051.9
0-shot Llama3SFT74.260.938.468.037.624.929.264.349.7
ALM75.566.040.374.338.625.628.865.951.9
+ +Table 5: Results of transferring Gemma3 12B IT to the Qwen2 tokenizer (c.f. Table 1). + +
ModelMethodBenchmarkAvg.
PiQAARC-CBoolQMMLUAGI-ENAGI-ZHIFEval
Gemma3 12B IT → Qwen2 Tok.original78.260.187.571.560.057.483.371.2
SFT81.456.783.767.246.243.573.464.6
ALM78.859.986.970.757.653.676.769.2
+ +# 4.1 Scaling ALM to Larger Models + +We ran additional experiments on tokenizer transfer of Gemma3 12B (Gemma Team et al., 2025) to the Qwen2 tokenizer (also used by Qwen3) via ALM self-distillation to verify that our method scales to larger models. Results are shown in Table 5. Crucially, the transfer-original gap reduction due to ALM scales favourably with model size both in terms of absolute numbers and relative improvements over SFT $(3.5 / 6.4\approx 55\%$ reduction for Gemma2 $2\mathrm{B}\rightarrow \mathrm{Qwen2}$ Tok. vs. $4.6 / 6.6\approx 70\%$ reduction for Gemma3 $12\mathrm{B}\rightarrow \mathrm{Qwen2}$ Tok.) in this experiment. We leave scaling to truly large models to future work, but note that we expect no fundamental obstacles in doing so (c.f. also Appendix I on an efficient implementation of ALM). + +# 5 Conclusion + +We have introduced ALM, a principled cross-tokenizer distillation method which outperforms prior heuristic methods across a diverse set of use cases while also enabling distillation across fundamentally different tokenizers for the first time, as evidenced by effective distillation of subword-based models to the byte-level (Use Case 1). We have also shown that ALM is effective at conventional large-to-small distillation (Use Case 2) and enables state-of-the-art zero-shot tokenizer transfer (Use Case 3). Overall, our work vastly expands the number of possible teacher-student pairs for distillation. In addition to enabling a range of new applications, this provides a basis for further enhancements such as more sophisticated combinations of tokenizer-transferred models via enhanced ensembling/routing/merging and using ALM to retrofit subword-based models into dedicated byte-level architectures. + +# 6 Limitations + +Due to computational constraints, we have trained on comparably few tokens $(\approx 0.6\mathrm{B})$ . It is not yet clear how ALM compares to SFT and other distillation methods in regimes with larger amounts of training tokens. Furthermore, we only explore one instantiation of cross-tokenizer transfer via minimising a chunk-level $f$ -divergence, leaving other instantiations (e.g., a categorical instead of binary divergence) to subsequent explorations. Along the same lines, it is not clear whether our chunk selection strategy is optimal and the space of possible chunk selection strategies is large, including overlapping or non-consecutive chunks. Finally, we have restricted ourselves to the seminal Supervised KD setup (Hinton et al., 2015), leaving applications of ALM to more intricate distillation using e.g. Rejection Sampling (as in Touvron et al., 2023) or On-Policy Distillation (as in Gu et al., 2024; Agarwal et al., 2024) to future work. + +# Acknowledgments and Disclosure of Funding + +This work is supported by the ERC Starting Grant AToM-FM (101222956) awarded to Edoardo M. Ponti and the Royal Society University Research Fellowship 'Inclusive and Sustainable Language Technology for a Truly Multilingual World' (no 221137; 2022-) awarded to Ivan Vulić. Research supported by the Google Cloud Research Credits program with the award GCP329647813. Research supported with Cloud TPUs from Google's TPU Research Cloud (TRC). We would like to thank Andreas Grivas, Giwon Hong and Hannah Sterz for their helpful feedback on the paper draft. + +# References + +Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=3zKtaqxLhW. +Federico Barbero, Álvaro Arroyo, Xiangming Gu, Christos Perivolaropoulos, Michael Bronstein, Petar Velicković, and Razvan Pascanu. Why do llms attend to the first token?, 2025. URL https://arxiv.org/abs/2504.02732. +Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: Reasoning about Physical Commonsense in Natural Language. In Thirty-Fourth AAAI Conference on Artificial Intelligence, 2020. +Nicolas Boizard, Kevin El Haddad, Celine Hudelot, and Pierre Colombo. Towards cross-tokenizer distillation: the universal logit distillation loss for LLMs. Transactions on Machine Learning Research, 2025. ISSN 2835-8856. URL https://openreview.net/forum?id=bwRxXiG09A. +Cristian Bucilua, Rich Caruana, and Alexandru Niculescu-Mizil. Model compression. In Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, KDD '06, pp. 535-541, New York, NY, USA, August 2006. Association for Computing Machinery. ISBN 978-1-59593-339-3. doi: 10.1145/1150402.1150464. URL https://dl.acm.org/doi/10.1145/1150402.1150464. +Dan Busbridge, Amitis Shidani, Floris Weers, Jason Ramapuram, Etai Littwin, and Russ Webb. Distillation Scaling Laws, February 2025. URL http://arxiv.org/abs/2502.08606. arXiv:2502.08606 [cs]. +Zhao Chen, Vijay Badrinarayanan, Chen-Yu Lee, and Andrew Rabinovich. Gradnorm: Gradient normalization for adaptive loss balancing in deep multitask networks. In International conference on machine learning, pp. 794-803. PMLR, 2018. +Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions. In Jill Burstein, Christy Doran, and Thamar Solorio (eds.), Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 2924–2936, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1300. URL https://aclanthology.org/N19-1300. +Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv:1803.05457v1, 2018. +Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021. +Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv:1810.04805 [cs], May 2019. URL http://arxiv.org/abs/1810.04805. arXiv:1810.04805. +Konstantin Dobler and Gerard de Melo. FOCUS: Effective Embedding Initialization for Monolingual Specialization of Multilingual Models. In Houda Bouamor, Juan Pino, and Kalika Bali (eds.), Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 13440-13454, Singapore, December 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.emnlp-main.829. URL https://aclanthology.org/2023.emnlp-main.829. +Darius Feher, Ivan Vulić, and Benjamin Minixhofer. Retrofitting large language models with dynamic tokenization, 2024. URL https://arxiv.org/abs/2411.18553. + +Yao Fu, Hao Peng, Litu Ou, Ashish Sabharwal, and Tushar Khot. Specializing smaller language models towards multi-step reasoning. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett (eds.), Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 10421-10430. PMLR, 23-29 Jul 2023. URL https://proceedings.mlr.press/v202/fu23d.html. +Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac'h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. A framework for few-shot language model evaluation, 07 2024. URL https://zenodo.org/records/12608602. +Leonidas Gee, Andrea Zugarini, Leonardo Rigutini, and Paolo Torroni. Fast Vocabulary Transfer for Language Model Compression. In Yunyao Li and Angeliki Lazaridou (eds.), Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing: Industry Track, pp. 409-416, Abu Dhabi, UAE, December 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.emnlp-industry.41. URL https://aclanthology.org/2022.emnlp-industry.41. +Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, et al. Gemma 2: Improving open language models at a practical size, 2024. URL https://arxiv.org/abs/2408.00118. +Gemma Team, Aishwarya Kamath, Johan Ferret, Shreya Pathak, et al. Gemma 3 technical report, 2025. URL https://arxiv.org/abs/2503.19786. +Fabian Gloeckle, Badr Youbi Idrissi, Baptiste Roziere, David Lopez-Paz, and Gabriel Synnaeve. Better & faster large language models via multi-token prediction. In *Forty-first International Conference on Machine Learning*, 2024. URL https://openreview.net/forum?id=pEWAcejiU2. +Aaron Grattafori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, et al. The llama 3 herd of models, 2024. URL https://arxiv.org/abs/2407.21783. +Dirk Groeneveld, Iz Beltagy, Evan Walsh, Akshita Bhagia, et al. OLMo: Accelerating the science of language models. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 15789-15809, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.841. URL https://aclanthology.org/2024.acl-long.841/. +Yuxian Gu, Li Dong, Furu Wei, and Minlie Huang. MiniLLM: Knowledge distillation of large language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=5h0qf7IBZZ. +Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2), 2021. URL https://openreview.net/forum?id=7Bywt2mQsCe. +Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the Knowledge in a Neural Network, March 2015. URL http://arxiv.org/abs/1503.02531.arXiv:1503.02531 [stat]. +Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=nZeVKeeFYf9. +Yichong Huang, Xiaocheng Feng, Baohang Li, Yang Xiang, Hui Wang, Ting Liu, and Bing Qin. Ensemble learning for heterogeneous large language models with deep parallel collaboration. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL https://openreview.net/forum?id=7arAADUK6D. +Leonid V Kantorovich. Mathematical methods of organizing and planning production. Management science, 6 (4):366-422, 1960. +Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Yoshua Bengio and Yann LeCun (eds.), 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. URL http://arxiv.org/abs/1412.6980. +Jongwoo Ko, Sungnyun Kim, Tianyi Chen, and Se-Young Yun. DistiLLM: Towards streamlined distillation for large language models. In *Forty-first International Conference on Machine Learning*, 2024. URL https://openreview.net/forum?id=1sHZNNoC7r. + +Taku Kudo and John Richardson. SentencePiece: A simple and language independent subword tokenizer and tokenizer for Neural Text Processing. In Eduardo Blanco and Wei Lu (eds.), Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pp. 66-71, Brussels, Belgium, November 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-2012. URL https://aclanthology.org/D18-2012. +Solomon Kullback and Richard A Leibler. On information and sufficiency. The annals of mathematical statistics, 22(1):79-86, 1951. +Nathan Lambert, Jacob Morrison, Valentina Pyatkin, Shengyi Huang, et al. Tulu 3: Pushing frontiers in open language model post-training, 2025. URL https://arxiv.org/abs/2411.15124. +VI Levenshtein. Binary codes capable of correcting deletions, insertions, and reversals. Proceedings of the Soviet physics doklady, 1966. +Costas Mavromatis, Petros Karypis, and George Karypis. Pack of llms: Model fusion at test-time via perplexity optimization, 2024. URL https://arxiv.org/abs/2404.11531. +Benjamin Minixhofer, Fabian Paischer, and Navid Rekabsaz. WECHSEL: Effective initialization of subword embeddings for cross-lingual transfer of monolingual language models. Technical Report arXiv:2112.06598, arXiv, May 2022. URL http://arxiv.org/abs/2112.06598. arXiv:2112.06598 [cs] type: article. +Benjamin Minixhofer, Edoardo Maria Ponti, and Ivan Vulić. Zero-shot tokenizer transfer, 2024. URL https://arxiv.org/abs/2405.07883. +Mistral AI. Mistral small 3.1, March 2025. URL https://mistral.ai/news/mistral-small-3-1. Accessed: 2025-05-08. +Piotr Nawrot, Jan Chorowski, Adrian Lancucki, and Edoardo Maria Ponti. Efficient Transformers with Dynamic Token Pooling. In Anna Rogers, Jordan Boyd-Graber, and Naoaki Okazaki (eds.), Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 6403-6417, Toronto, Canada, July 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.acl-long.353. URL https://aclanthology.org/2023.acl-long.353. +Saul B Needleman and Christian D Wunsch. A general method applicable to the search for similarities in the amino acid sequence of two proteins. Journal of molecular biology, 48(3):443-453, 1970. +Aitor Ormazabal, Mikel Artetxe, and Eneko Agirre. CombLM: Adapting black-box language models through small fine-tuned models. In Houda Bouamor, Juan Pino, and Kalika Bali (eds.), Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 2961-2974, Singapore, December 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.emnlp-main.180. URL https://aclanthology.org/2023.emnlp-main.180/. +Artidoro Pagnoni, Ram Pasunuru, Pedro Rodriguez, John Nguyen, Benjamin Muller, Margaret Li, Chunting Zhou, Lili Yu, Jason Weston, Luke Zettlemoyer, Gargi Ghosh, Mike Lewis, Ari Holtzman, and Srinivasan Iyer. Byte Latent Transformer: Patches Scale Better Than Tokens, December 2024. URL http://arxiv.org/abs/2412.09871.arXiv:2412.09871 [cs]. +Buu Phan, Brandon Amos, Itai Gat, Marton Havasi, Matthew Muckley, and Karen Ullrich. Exact Byte-Level Probabilities from Tokenized Language Models for FIM-Tasks and Model Ensembles, October 2024. URL http://arxiv.org/abs/2410.09303.arXiv:2410.09303 [cs]. +Tiago Pimentel and Clara Meister. How to compute the probability of a word. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (eds.), Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 18358-18375, Miami, Florida, USA, November 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.emnlp-main.1020. URL https://aclanthology.org/2024.emnlp-main.1020/. +Qwen, :, An Yang, Baosong Yang, Beichen Zhang, et al. Qwen2.5 technical report, 2025. URL https://arxiv.org/abs/2412.15115. +Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language Models are Unsupervised Multitask Learners. 2019. +Alfréd Rényi. On measures of entropy and information. In Proceedings of the fourth Berkeley symposium on mathematical statistics and probability, volume 1: contributions to the theory of statistics, volume 4, pp. 547-562. University of California Press, 1961. + +Phillip Rust, Jonas Pfeiffer, Ivan Vulic, Sebastian Ruder, and Iryna Gurevych. How Good is Your Tokenizer? On the Monolingual Performance of Multilingual Language Models. arXiv:2012.15613 [cs], June 2021. URL http://arxiv.org/abs/2012.15613.arXiv:2012.15613. +Victor Sanh, Lysandre Debut, Julien Chaumont, and Thomas Wolf. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter, 2020. URL https://arxiv.org/abs/1910.01108. +Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural Machine Translation of Rare Words with Subword Units. In Katrin Erk and Noah A. Smith (eds.), Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1715-1725, Berlin, Germany, August 2016. Association for Computational Linguistics. doi: 10.18653/v1/P16-1162. URL https://aclanthology.org/P16-1162. +Ekansh Sharma, Daniel M. Roy, and Gintare Karolina Dziugaite. The non-local model merging problem: Permutation symmetries and variance collapse, 2024. URL https://arxiv.org/abs/2410.12766. +Zejiang Shen, Hunter Lang, Bailin Wang, Yoon Kim, and David Sontag. Learning to decode collaboratively with multiple language models. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar (eds.), Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12974–12990, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.acl-long.701. URL https://aclanthology.org/2024.acl-long.701/. +Yi Tay, Vinh Q. Tran, Sebastian Ruder, Jai Gupta, Hyung Won Chung, Dara Bahri, Zhen Qin, Simon Baumgartner, Cong Yu, and Donald Metzler. Charformer: Fast Character Transformers via Gradient-based Subword Tokenization. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=JtBRnrl0EFN. +Daniil Tiapkin, Daniele Calandriello, Johan Ferret, Sarah Perrin, Nino Vieillard, Alexandre Ramé, and Mathieu Blondel. On Teacher Hacking in Language Model Distillation, February 2025. URL http://arxiv.org/abs/2502.02671.arXiv:2502.02671 [cs]. +Shubham Toshiwal, Wei Du, Ivan Moshkov, Branislav Kisacanin, Alexan Ayrapetyan, and Igor Gitman. Openmathinstruct-2: Accelerating ai for math with massive open-source instruction data. arXiv preprint arXiv:2410.01560, 2024. +Hugo Touvron, Louis Martin, Kevin Stone, et al. Llama 2: Open Foundation and Fine-Tuned Chat Models, 2023. _eprint: 2307.09288. +Ke Tran. From English To Foreign Languages: Transferring Pre-trained Language Models. Technical Report arXiv:2002.07306, arXiv, April 2020. URL http://arxiv.org/abs/2002.07306. arXiv:2002.07306 [cs] type: article. +Omri Uzan, Craig W. Schmidt, Chris Tanner, and Yuval Pinter. Greed is All You Need: An Evaluation of Tokenizer Inference Methods, 2024. _eprint: 2403.01289. +Tim Vieira, Ben LeBrun, Mario Giulianielli, Juan Luis Gastaldi, Brian DuSell, John Terilla, Timothy J. O'Donnell, and Ryan Cotterell. From Language Models over Tokens to Language Models over Characters, December 2024. URL http://arxiv.org/abs/2412.03719.arXiv:2412.03719 [cs]. +Fanqi Wan, Xinting Huang, Deng Cai, Xiaojun Quan, Wei Bi, and Shuming Shi. Knowledge fusion of large language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=jiDsk12qcz. +Xiaohan Xu, Ming Li, Chongyang Tao, Tao Shen, Reynold Cheng, Jinyang Li, Can Xu, Dacheng Tao, and Tianyi Zhou. A survey on knowledge distillation of large language models, 2024. URL https://arxiv.org/abs/2402.13116. +Linting Xue, Aditya Barua, Noah Constant, Rami Al-Rfou, Sharan Narang, Mihir Kale, Adam Roberts, and Colin Raffel. ByT5: Towards a token-free future with pre-trained byte-to-byte models. arXiv:2105.13626 [cs], March 2022. URL http://arxiv.org/abs/2105.13626. arXiv: 2105.13626. +François Yergeau. Utf-8, a transformation format of iso 10646. Technical report, 2003. +Lili Yu, Daniel Simig, Colin Flaherty, Armen Aghajanyan, Luke Zettlemoyer, and Mike Lewis. MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=JTm02V9Xpz. + +Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. HellaSwag: Can a machine really finish your sentence? In Anna Korhonen, David Traum, and Lluis Márquez (eds.), Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 4791-4800, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1472. URL https://aclanthology.org/P19-1472/. +Peiyuan Zhang, Guangtao Zeng, Tianduo Wang, and Wei Lu. Tinyllama: An open-source small language model, 2024a. +Songming Zhang, Xue Zhang, Zengkui Sun, Yufeng Chen, and Jinan Xu. Dual-Space Knowledge Distillation for Large Language Models. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (eds.), Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 18164-18181, Miami, Florida, USA, November 2024b. Association for Computational Linguistics. doi: 10.18653/v1/2024.emnlp-main.1010. URL https://aclanthology.org/2024.emnlp-main.1010/. +Wanjun Zhong, Ruixiang Cui, Yiduo Guo, Yaobo Liang, Shuai Lu, Yanlin Wang, Amin Saied, Weizhu Chen, and Nan Duan. Agieval: A human-centric benchmark for evaluating foundation models, 2023. +Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911, 2023. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The claims made in the abstract and Section 1 match the results in Section 4. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: We discuss limitations in Section 6. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: We provide proofs around the binarised $f$ -divergence in Appendix E. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: Appendix B states our common experiment setup, and various sections throughout the paper state how we adjust this setup for any particular experiment. Together, this provides the full details to reproduce our experiments. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [No] + +Justification: Code is not submitted alongside this paper but will be provided upon publication. + +Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: We provide training details in Appendix B and details on hyperparameters and how they were chosen in Appendix A. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [Yes] + +Justification: We report the standard error of the mean in the experiments on Use Case 2. For Use Case 1 and Use Case 3, we perceive quantifying statistical significance not to be necessary due to the magnitude and consistency of improvements over prior methods. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. + +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: Compute resources and execution times are specified in Appendix B. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: We adhere to all applicable points of the Code of Ethics. + +Guidelines: + +The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [Yes] + +Justification: We discuss our methods' positive impact on enhancing reusability and composability of LLMs in Section 1. We do not believe our method leads to any particular negative societal impact beyond the potential negative impact of increased LLM adoption. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. + +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: We do not release any standalone models; released fine-tuned models are bound to the model checkpoints there were fine-tuned from, including being bound to the safeguards put on the fine-tuning starting point. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: Asset creators are credited, were applicable, throughout the paper. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. + +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [No] + +Justification: We will release fine-tuned model checkpoints created via training with our method upon publication alongside our code. These assets are not vital to our method itself, and we thus do not make them part of this submission. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: There are no human subjects involved in the experiments. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: There are no human subjects involved in the experiments. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. + +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: Our work does not involve applying LLMs in any way. + +Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# A Ablations & Sensitivity Analyses + +# A.1 Sensitivity to the Learning Rate + +We analyse the impact of different choices for the learning rate across all methods in Table 6. The different methods are generally robust to settings for the learning rate within the range of $2e - 6$ to $5e - 5$ , although we occasionally observed loss spikes when choosing high learning rates within this range in preliminary experiments. Accordingly, we set the learning rate to $1e - 5$ for all methods in our main experiments. + +Table 6: Sensitivity of different methods to the learning rate on transfer of Gemma 2 2B IT to the Qwen2 Tokenizer by training for 5k steps (and otherwise matching the experiments in Use Case 1). + +
Method Learning RateBenchmarkAvg.
PiQAARC-CBoolQMMLUAGI-ENAGI-ZHIFEval
SFT2e-676.141.881.150.434.529.946.851.5
1e-576.342.280.350.233.429.851.852.0
5e-576.142.778.550.531.528.554.951.8
DSKD2e-675.841.775.649.533.430.542.749.9
1e-574.640.980.049.033.129.852.251.4
5e-574.041.480.351.632.329.454.852.0
MinED2e-676.041.178.152.035.930.052.652.2
1e-576.644.081.952.236.329.757.554.0
5e-576.343.880.151.732.828.558.153.1
ALM2e-675.746.083.453.740.132.957.455.6
1e-576.848.083.153.839.332.055.555.5
5e-576.849.181.953.838.930.954.855.2
+ +# A.2 Impact of the Choice for the Distance Function $f$ and the Temperature $\tau$ + +The distance function $f$ and the temperature $\tau$ are two crucial hyperparameters of our method. We analyse two choices of $f$ , the KL-Divergence $f_{\mathrm{KL}}(p^{1 / \tau}\| q^{1 / \tau}) = p^{1 / \tau}\log \frac{p^{1 / \tau}}{q^{1 / \tau}}$ and the total variation distance $f_{\mathrm{TVD}}(p^{1 / \tau}\| q^{1 / \tau}) = |p^{1 / \tau} - q^{1 / \tau}|$ across a range of temperatures. Figures 4 and 5 show the gradients with respect to $\log q$ over the binarised outcomes of $f_{\mathrm{KL}}$ and $f_{\mathrm{TVD}}$ , respectively. For + +![](images/88cb1e52b877da4d7dd25c754283df7bd8d3e5759634eee00019a935c502250b.jpg) +Figure 4: The KL-Divergence gradients $\frac{\delta f_{\mathrm{KL}}(p^{1 / \tau}\}||q^{1 / \tau}) + \delta f_{\mathrm{KL}}(1 - p^{1 / \tau}\}||1 - q^{1 / \tau})}{\delta\log q}$ over $\tau$ + +![](images/3d34cace266dbcde37ccd2fd80e6d10e14a32405de0cfe20ea6323d54053a8b1.jpg) + +![](images/67ce1eecd263bb8498a8ad901767b3f014763dcd396774886fd8350bfd33be80.jpg) + +![](images/d7a0ceccf2f333d5bd6755bdbeff308f87d7b30ddd011c1e029c7d95572ee00f.jpg) + +![](images/baeebfbce446c029ed243611b2c3c0dc45986d1099d24d5003754775d00bb8e7.jpg) +Figure 5: The Total Variation Distance gradients $\frac{\delta f_{\mathrm{TVD}}(p^{1 / \tau}\|q^{1 / \tau}) + \delta f_{\mathrm{TVD}}(1 - p^{1 / \tau}\|1 - q^{1 / \tau})}{\delta\log q}$ over $\tau$ . + +![](images/9c886af56f9a86e10633d5fffd7355c48d47d550cbe3c73ffe1efa04dd93bed5.jpg) + +![](images/d4e8684bc219852fd8dfc42fa165d2cabbeb960fd89f5cae6a67551370629421.jpg) + +![](images/14e6d48157ad2927f726aa7e18021c9c9a2b076184e9421ef21283b2f74ac671.jpg) + +small temperatures (e.g., $\tau = 1$ ), the gradient vanishes as $\log p$ or $\log q$ decreases. In general, this expected behaviour: mismatches in higher $p$ or $q$ should generally result in a higher contribution to the loss gradients than mismatches when $p$ and $q$ are both low. However, importantly, our method operates on chunks of tokens and the likelihood of a chunk multiplicatively decreases as the length of the chunk increases (since the likelihood of any token is always less than 1); this means that the contribution of longer chunks to the loss vanishes if the temperature $\tau$ is low. The value of $\tau$ thus defines a trade-off: low $\tau$ leads to focusing on high-likelihood chunks. Increasing $\tau$ leads to increased focus on lower-likelihood/longer chunks. $^{15}$ We also observe notable behaviour of the KL-Divergence and Total Variation Distance as $\tau \to \infty$ , and that the gradients as $\tau \to \infty$ can be computed in closed form. Specifically, $f_{\mathrm{KL}}(p^{1/\tau} \| q^{1/\tau}) + f_{\mathrm{KL}}(1 - p^{1/\tau} \| 1 - q^{1/\tau}) \approx C((\log p - \log q) + \log(p) \log(\frac{\log q}{\log p})$ and $f_{\mathrm{TVD}}(p^{1/\tau} \| q^{1/\tau}) + f_{\mathrm{TVD}}(1 - p^{1/\tau} \| 1 - q^{1/\tau}) \approx C| \log p - \log q|$ as $\tau \to \infty$ . To show this, we will use the fact that $\exp(x) \approx 1 + x$ for small enough $x$ and let $a = \log p^{1/\tau} = \log(p)/\tau$ and $b = \log q^{1/\tau} = \log(q)/\tau$ , both of which are close to zero since $\tau \to \infty$ . We have + +$$ +\begin{array}{l} f _ {\mathrm {K L}} (p ^ {1 / \tau} \| q ^ {1 / \tau}) = p ^ {1 / \tau} \log \frac {p ^ {1 / \tau}}{q ^ {1 / \tau}} \\ = \exp (a) (\log \exp (a) - \log \exp (b)) \\ = \exp (a) (a - b) \\ \approx (1 + a) (a - b) \quad \text {s i n c e} \tau \rightarrow \infty \\ = a + a ^ {2} - b - a b \\ = \log (p) / \tau + \log (p) ^ {2} / \tau^ {2} - \log (q) / \tau - \log (p) \log (q) / \tau^ {2} \\ \approx (\log (p) - \log (q)) / \tau \quad \text {s i n c e} 1 / \tau \gg 1 / \tau^ {2} \\ = C (\log p - \log q) \quad \text {w h e r e} C = 1 / \tau \\ \end{array} +$$ + +and + +$$ +\begin{array}{l} f _ {\mathrm {K L}} \left(1 - p ^ {1 / \tau} \| 1 - q ^ {1 / \tau}\right) = \left(1 - p ^ {1 / \tau}\right) \log \frac {\left(1 - p ^ {1 / \tau}\right)}{\left(1 - q ^ {1 / \tau}\right)} \\ = (1 - \exp (a)) (\log (1 - \exp (a)) - \log (1 - \exp (b))) \\ \approx - a \left(\log (- a) - \log (- b)\right) \quad \text {s i n c e} \tau \rightarrow \infty \\ = \log (p) (\log (- \log q) - \log (- \log p)) / \tau \\ = C \left(\log (p) \log \left(\frac {\log q}{\log p}\right)\right) \quad \text {w h e r e} C = 1 / \tau \\ \end{array} +$$ + +Analogously, for the Total Variation Distance we have + +$$ +\begin{array}{l} f _ {\mathrm {T V D}} \left(p ^ {1 / \tau} | | q ^ {1 / \tau}\right) = f _ {\mathrm {T V D}} \left(1 - p ^ {1 / \tau} \| 1 - q ^ {1 / \tau}\right) = \left| p ^ {1 / \tau} - q ^ {1 / \tau} \right| \\ = | \exp (a) - \exp (b) | \\ \approx | (1 + a) - (1 + b) | \quad \text {s i n c e} \tau \rightarrow \infty \\ = | a - b | \\ = | \log (p) / \tau - \log (q) / \tau | \\ = C | \log (p) - \log (q) | \quad \text {w h e r e} C = 1 / \tau \\ \end{array} +$$ + +Empirically, both KL-divergence and Total Variation Distance perform well, and $\tau > 1$ is beneficial (Table 7). We opt for the KL-divergence for our main experiments and set the temperature $\tau = 100$ .16 + +Table 7: Sensitivity to the distance function $f$ and temperature $\tau$ on transfer of Gemma 2 2B IT to the Qwen2 Tokenizer by training for 5k steps (and otherwise matching the experiments in Use Case 1). + +
Distance function fTemperature τBenchmarkAvg.
PiQAARC-CBoolQMMLUAGI-ENAGI-ZHIFEval
f=fKLτ=176.447.283.053.640.031.461.156.1
τ=576.547.683.353.739.732.360.756.3
τ=10076.848.083.153.839.332.055.555.5
τ→∞76.347.783.253.639.032.454.455.2
f=fTVDτ=175.846.883.553.941.532.058.956.1
τ=575.647.983.253.740.032.161.056.2
τ=10076.348.982.953.639.232.255.655.5
τ→∞76.148.482.953.738.632.952.955.1
+ +# A.3 Ablating Outcome Chunk Debiasing, the threshold $\gamma$ and Hidden States Distillation + +We ablate the impact of Outcome Chunk Debiasing (Section 3.1) as well as the associated threshold and the Hidden State Distillation Loss (Section 3.2) in Table 8. Notably, the hidden state loss is slightly detrimental to Subword $\rightarrow$ Subword transfer, but highly beneficial to Subword $\rightarrow$ Byte transfer. Outcome Chunk Debiasing is consistently highly beneficial, and can be marginally further improved via a threshold $\gamma >0$ . + +# A.4 Comparing Loss Combination Strategies: Fixed $\beta$ vs. GradNorm vs. GradMag + +We compare the different loss combination strategies discussed in Section 3.3 in Table 9. GradMag performs on par or slightly better than GradNorm across methods, and both perform vastly better than different fixed combination coefficients $\beta$ , while exhibiting only a small overhead from the additional per-task back-propagation through the last layer. Notably, GradNorm requires an extra optimizer (and tuning the associated hyperparameters), which our method does not. + +Table 8: Effect of varying the bias threshold $\gamma$ on transfer of Gemma 2 2B IT to the Qwen2 Tokenizer and Llama 3 3B IT to byte-level tokenization, training for 5k steps and otherwise matching the experiments in Use Case 1. $D$ denotes the addition of Outcome Chunk Debiasing (Section 3.1) and $H$ denotes the addition of the Hidden State Loss (Section 3.1). + +
Model → TokenizerALM SettingBenchmarkAvg.
PiQAARC-CBoolQMMLUAGI-ENAGI-ZHIFEval
Gemma2 → Qwen2γ = 0.10, D (default)76.848.383.153.638.932.256.055.6
γ = 0.99, D77.148.083.053.739.332.653.755.4
γ = 0.50, D76.647.983.453.539.833.249.654.9
γ = 0.00, D76.447.283.153.639.031.458.055.5
γ = 0.00, D, H76.648.082.854.036.631.555.855.0
γ = 0.0076.248.083.053.639.032.446.754.1
Llama3 → Byteγ = 0.10, D, H (default)73.238.977.655.834.032.718.047.2
γ = 0.99, D, H73.139.878.256.135.331.817.347.4
γ = 0.50, D, H73.138.876.355.933.431.617.746.7
γ = 0.00, D, H73.538.877.156.534.430.917.747.0
γ = 0.00, D73.240.375.152.530.029.316.945.3
γ = 0.0073.441.274.052.530.031.00.243.2
+ +Table 9: Analysis of the efficacy of (i) different fixed coefficients $\beta$ (ii) GradNorm (Chen et al., 2018) and (iii) GradMag (Section 3.3) at transfer of Gemma 2 2B IT to the Qwen2 Tokenizer by training for 5k steps and otherwise matching the experiments in Use Case 1. + +
MethodDistill. Coef. βBenchmarkAvg.
PiQAARC-CBoolQMMLUAGI-ENAGI-ZHIFEval
SFT76.342.280.350.233.429.851.852.0
DSKDβ = 1/375.542.279.949.132.731.652.852.0
β = 175.239.880.747.732.330.349.350.8
β = 372.535.581.346.631.630.947.949.5
GradNorm75.341.679.749.032.830.351.351.4
GradMag (ours)74.640.980.049.033.129.852.251.4
MinEDβ = 1/376.542.580.449.833.429.451.852.0
β = 176.342.780.350.033.428.450.951.7
β = 376.343.180.550.433.629.051.252.0
GradNorm76.344.581.250.936.029.653.853.2
GradMag (ours)76.644.081.952.236.329.757.554.0
ALM + SFTβ = 1/376.342.379.949.834.029.352.052.0
β = 176.442.679.550.134.429.452.252.1
β = 376.342.280.050.434.730.052.652.3
GradNorm77.146.083.253.738.732.261.656.1
GradMag (ours)76.746.082.853.437.932.158.855.4
+ +# B Training Details + +Across experiments, unless specified otherwise, we use a batch size of 64 texts and a sequence length of 512 tokens for both student and teacher. We use Adam (Kingma & Ba, 2015) without weight decay following the adaptations settings of Groeneveld et al. (2024). We choose a default peak learning rate of $1e - 5$ based on the findings in Appendix A.1, training for 20k steps with linear warmup over 2k steps, then linear decay to zero. We use GradMag (c.f. Section 3.3) to balance loss components. We use LoRA (Hu et al., 2022) with $\alpha = r = 64$ . For ALM, we use a threshold $\gamma = 0.1$ , the temperature $\tau = 100$ , and set $f$ to $f_{\mathrm{KL}}(p_T\| p_S) = p_T\log \frac{p_T}{p_S}$ to recover the KL-divergence, analysing the impact of these choices in Appendix A.2. We conduct all experiments on a cluster of 40 v3 TPU chips and 64 v4 TPU chips. The largest individual experiments run on a pod of 32 v4 TPU chips and take $\approx 24$ hours for transfer of Llama3 to byte-level tokenization, $\approx 12$ hours for transfer of Gemma2 to byte-level tokenization, $\approx 2$ days for Gemma2 hypernetwork training and $\approx 5$ to 10 hours individually per remaining experiment. + +# C Adjustments for Transfer to Bytes in Use Case 1 + +For the transfer to bytes, we start from the hyperparameters described in Use Case 1, with the following modifications. We quadruple the student sequence length to 2048, $^{17}$ halve the batch size to 32 texts, increase the learning rate to 3e-5 and train the full model. Adding the hidden state distillation loss leads to consistent improvements (while results are mixed in the subword case, c.f. Appendix A.3), so we add it here and do not add it for subword-to-subword transfer. We also untie the embedding matrices since sharing the input and output embedding parameters has negligible impact on the parameter count when the vocabulary just consists of the 255 possible bytes. Transfer to bytes substantially decreases the parameter count due to shrinking the embedding matrix (which can make up a considerable portion of the total parameters). Thus, to make it less destructive, we devise a strategy to re-incorporate the subword embedding parameters: for every byte position, we backtrack to find the longest matching subword token ending at this position. We then add the embedding of this token to the byte embedding. This is akin to BLT's strategy of adding n-gram embeddings Pagnoni et al. (2024), where in our case the vocabulary is given by the subword-based model. This strategy only accounts for the parameter mismatch at the input layer, not at the output layer, so we might still expect decreased performance. + +# D Hypernetwork Architecture Modifications for Use Case 3 + +We simplify the hypernetwork training procedure introduced by Minixhofer et al. (2024) to only require a single stage instead of the original two-stage training procedure and remove the necessity of the auxiliary embedding similarity loss. While Minixhofer et al. (2024) predict the target embeddings as $E^{\mathrm{out}} = H_{\theta}(E^{\mathrm{in}})$ , we switch to a residual formulation $E^{\mathrm{out}} = E^{\mathrm{in}}[0] + H_{\theta}(E^{\mathrm{in}})$ where $H_{\theta}$ is the hypernetwork and $E^{\mathrm{in}}$ is the input embedding sequence. This way, the hypernetwork (i) does not need to initially learn to mimic the input embeddings for sequences of length 1 (the purpose of the original stage one) and (ii) is less prone to catastrophically drifting in embedding space throughout training (enabling removing the auxiliary loss). We first reproduce Minixhofer et al. (2024)'s results on the TinyLlama model (Zhang et al., 2024a), then test the impact of switching to our residual formulation in Table 10. Based on these findings, we use a residual hypernetwork without auxiliary loss for our main experiments. + +Table 10: Performance of a TinyLlama hypernetwork trained with Minixhofer et al. (2024) setting, vs. our residual setting. While removing the auxiliary loss is catastrophic in Minixhofer et al. (2024)'s setting, our residual setting allows removing it at only a minor performance degradation. We exclude BoolQ and MMLU from this comparison since TinyLlama performance is not better than random. + +
MethodTokenizerBenchmarkAvg.
PiQAARC-EARC-CAGI-ENAGI-ZHHS
original73.155.230.723.327.859.144.9
Minixhofer et al. (2024) (reproduced)0-shot GPT270.948.828.322.927.555.942.4
0-shot Mistral v270.650.328.821.927.954.042.2
0-shot Llama370.549.728.221.927.153.841.9
Average70.649.628.422.227.554.542.2
SFT (Residual + Lex.)0-shot GPT271.450.130.421.526.656.442.7
0-shot Mistral v270.350.329.721.227.154.742.2
0-shot Llama371.049.829.620.826.554.242.0
Average70.950.129.921.226.755.142.3
SFT (Residual)0-shot GPT270.449.228.921.826.255.942.1
0-shot Mistral v269.449.629.121.526.853.841.7
0-shot Llama370.049.528.522.126.553.541.7
Average69.949.428.821.826.554.441.8
+ +# E Relation of the Binarised $f$ -divergence to the Categorical $f$ -divergence + +Recall that we define the divergence induced by $f$ as $D_{f}(p\| q) = \sum_{x\sim D}f\big(p(x)\| q(x)\big)$ . Here, $f$ must be writeable as $f(p(x)\| q(x)) = q(x)g\left(\frac{p(x)}{q(x)}\right)$ where $g$ is convex and non-negative by the definition of $f$ -divergence (Rényi, 1961). The binarised $f$ -divergence is $D_{f}^{\mathrm{binarised}}(p\| q) = f(p(x)\| q(x)) + f(1 - p(x)\| 1 - q(x))$ for some $x\sim D$ . We will show that the binarised $f$ -divergence is a lower bound to the categorical $f$ -divergence. We have + +$$ +D _ {f} (p \| q) = \sum_ {x \sim D} f (p (x) \| q (x)) +$$ + +$= f(p(x)\| q(x)) + \sum_{x^{\prime}\sim D\setminus \{x\}}f\bigl (p(x^{\prime})\| q(x^{\prime})\bigr)$ splitting the divergence into two parts + +Since the first term of the split $D_{f}$ and $D_{f}^{\mathrm{binarised}}$ is the same, it remains to show that + +$$ +f (1 - p (x) \| 1 - q (x)) \leq \sum_ {x ^ {\prime} \sim D \backslash \{x \}} f \big (p (x ^ {\prime}) \| q (x ^ {\prime}) \big) +$$ + +We expand $1 - p(x)$ and $1 - q(x)$ and insert $q(x)g\left(\frac{p(x)}{q(x)}\right) = f(p(x)\| q(x))$ + +$$ +g \left(\frac {\sum_ {x ^ {\prime} \sim D \backslash \{x \}} p \left(x ^ {\prime}\right)}{\sum_ {x ^ {\prime} \sim D \backslash \{x \}} q \left(x ^ {\prime}\right)}\right) \cdot \sum_ {x ^ {\prime} \sim D \backslash \{x \}} q \left(x ^ {\prime}\right) \leq \sum_ {x ^ {\prime} \sim D \backslash \{x \}} g \left(\frac {p \left(x ^ {\prime}\right)}{q \left(x ^ {\prime}\right)}\right) q \left(x ^ {\prime}\right) +$$ + +which is true by Jensen's inequality since $g$ is convex. + +Alternatively, it follows from the data processing inequality that the binarised $f$ -divergence is a lower bound to the categorical $f$ -divergence since post-processing (by merging all but two options) can only decrease the divergence. Since $D_f^{\mathrm{binarised}}(p\| q)$ is an $f$ -divergence, the important properties that $D_f^{\mathrm{binarised}}(p\| q) = 0$ iff $p = q$ and $D_f^{\mathrm{binarised}}(p\| q) > 0$ otherwise also hold. + +# F A Variant of ALM Which Explicitly Takes Tokenization Bias into Account + +We initially experimented with a version of ALM which explicitly selects chunks with low approximate differences in tokenization bias. This was intended to make the likelihood comparison more accurate by minimizing spurious differences caused by differing tokenization biases between the teacher and the student sequences. We did not end up choosing this formulation since it requires a pre-computation step like MinED, which results in additional complexity and prevents online applications such as Use Case 3 while performing roughly equally well. Nonetheless, we believe this previous formation and the associated formalisms may be useful to the community, and thus provide a description in the following, starting with some additional preliminaries. + +Measuring Tokenization Bias. We can measure tokenization bias via the notion of cover encodings (Phan et al., 2024). The cover encodings of a sequence of tokens $\pmb{t} = T(\pmb{x})$ are all sequences of tokens $\pmb{u}$ such that (i) decoding and re-encoding the sequence leads to the same token sequence $T(D(\pmb{u})) = \pmb{u}$ (this has been referred to as validity), (ii) $\pmb{x}$ is a prefix of $D(\pmb{u})$ and (iii) $\pmb{x}$ is not a prefix of $D(\pmb{u}_{0:|\pmb{u}| - 1})$ (i.e., the last token in $\pmb{u}$ covers a part of $\pmb{x}$ ).18 We denote the set of all cover encodings as $\text{cover}(t)$ . Note that $t \in \text{cover}(t)$ . We further define the set of implied exclusions $\mathcal{X}(t) = \{D(\pmb{u}) \mid \pmb{u} \in \text{cover}(t), \pmb{u} \neq t\}$ . $|\mathcal{X}(t)|$ is a concrete measure of the tokenization bias of any particular token sequence $t$ . If we observe the token sequence $t = T(\pmb{x})_{:i}$ , we know that $\pmb{x} \notin \mathcal{X}(t)$ . Otherwise, $\pmb{x}$ would have been tokenized differently. In our previous example, _Hello_World $\in \mathcal{X}(\{\_Hello, \_Wor\})$ . + +Choosing Chunks with Low Approximate Tokenization Bias Difference. We would now like to constrain chunk alignment such that the prefix and continuation are biased in the same way, i.e., $\mathcal{X}(T_S(\boldsymbol{y})) = \mathcal{X}(T_T(\boldsymbol{y}))$ and $\mathcal{X}(T_S(\boldsymbol{z})) = \mathcal{X}(T_T(\boldsymbol{z}))$ . Unfortunately, this requirement is prohibitively stringent in practice: for example, if the student tokenizer is unbiased while the teacher tokenizer is not, it might rarely (if ever) be fulfilled. We thus define a relaxation which lets us define the alignment constraint $c(i,j,k,l)$ (c.f. Equation Alignment Indices) such that the chunk bias differences are small enough, but not necessarily zero. To this end, we introduce a precomputable scalar approximation of the difference in tokenization bias between two sequences. Let us consider arbitrary language models $A$ and $B$ (not necessarily a teacher and a student). We first define $(\mathcal{X}_A \setminus \mathcal{X}_B)(\boldsymbol{x})$ to be the set difference of implied exclusions $\mathcal{X}$ on some text $\boldsymbol{x}$ between the token sequences of the two i.e. $(\mathcal{X}_A \setminus \mathcal{X}_B)(\boldsymbol{x}) = \mathcal{X}(T_A(\boldsymbol{x})) \setminus \mathcal{X}(T_B(\boldsymbol{x}))$ . We can then quantify a scalar difference $b_{A\parallel B}(\boldsymbol{x})$ in tokenization bias between the two sequences. + +$$ +b _ {B | | A} (\boldsymbol {x}) = \sum_ {\boldsymbol {d} \in \left(\mathcal {X} _ {A} \backslash \mathcal {X} _ {B}\right) (\boldsymbol {x})} p _ {A} \left(T _ {A} (\boldsymbol {d})\right) +$$ + +If $(\mathcal{X}_A \setminus \mathcal{X}_B)(\pmb{x}) = \emptyset$ , $T_A(\pmb{x})$ is biased to a lesser or equal extent as $T_B(\pmb{x})$ and $b_{B\parallel A}(\pmb{x}) = 0$ . If not, $b_{B\parallel A}(\pmb{x})$ will be high if any text $\pmb{d}$ which $T_A$ is biased against but $T_B$ is not is assigned a high probability by the language model $A$ . Instead, if a text $\pmb{d} \in (\mathcal{X}_A \setminus \mathcal{X}_B)(\pmb{x})$ is assigned a low likelihood, it affects the bias difference to a lesser extent. We can use the symmetrised bias $b_{A,B}(\pmb{x}) = \max(b_{B\parallel A}(\pmb{x}), b_{A\parallel B}(\pmb{x}))$ as a measure of the 'biasedness' of any text. However, computing $b_{B\parallel A}(\pmb{x})$ is prohibitively expensive since we need to compute the cover encodings of every text $\pmb{x}$ under both tokenization functions, as well as the likelihood assigned by the language model to every text $\pmb{d}$ in the difference between implied exclusions $(\mathcal{X}_A \setminus \mathcal{X}_B)(\pmb{x})$ . Therefore, we make two key approximations to estimate $\hat{b}_{B\parallel A}(\pmb{x}) \approx b_{B\parallel A}(\pmb{x})$ (and analogously $\hat{b}_{B\parallel A}(\pmb{x}) \approx b_{B\parallel A}(\pmb{x})$ ) at nearly zero computational overhead. + +Approximating $\mathcal{X}(T(\pmb{x}))$ via $\mathcal{X}(T(\pmb{x})_n)$ . We approximate the implied exclusions of $T(\pmb{x})$ via the implied exclusions of the last token $T(\pmb{x})_n$ in $T(\pmb{x})$ . + +$$ +\hat {\mathcal {X}} (T (\boldsymbol {x})) = \left\{D \left(T (\boldsymbol {x}) _ {< n}\right) \odot \boldsymbol {u} \mid \boldsymbol {u} \in \mathcal {X} \left(T (\boldsymbol {x}) _ {n}\right) \right\} \quad \text {(B i a s A p p r o x . 1)} +$$ + +This makes it possible to precompute the implied exclusions $\mathcal{X}(t)$ for all $t\in \mathcal{V}$ . + +Approximating $p(T(\pmb{x}))$ via $p_{\mathrm{unigram}}(T(\pmb{x})_n)$ . We approximate the language model likelihood $p(T(\pmb{x}))$ via the unigram likelihood $p_{\mathrm{unigram}}(T(\pmb{x})_n)$ computed via the token counts of a text corpus. + +$$ +\hat {p} (T (\boldsymbol {x})) = p _ {\text {u n i g r a m}} (T (\boldsymbol {x}) _ {n}) \quad \left(\text {B i a s A p p r o x .} 2\right) +$$ + +This approximation is crude by necessity since it is distinctly intractable to run every token sequence $\pmb{d} \in (\mathcal{X}_A \setminus \mathcal{X}_B)(\pmb{x})$ through a large language model. However, we show later in Section 4 that it performs well in practice. Bias Approx. 1 and Bias Approx. 2 together make the bias only depend on the last token in the sequence. Going back to our distillation setup, the above approximations allow precomputing the bias difference $\hat{b}_{S,T}(\pmb{x})$ for any text by enumerating all possible last token pairs $(t_S, t_T) \in \mathcal{V}_S \times \mathcal{V}_T$ and storing the result in a sparse matrix in $\mathbb{R}^{|\mathcal{V}_S| \times |\mathcal{V}_T|}$ . This achieves our goal of defining an efficiently computable scalar metric to measure the difference in tokenization bias between two token sequences, and lets us set the alignment constraint to $c(i,j,k,l) := \max(\hat{b}_{S,T}(D(T_T(\pmb{x})_{:i})), \hat{b}_{S,T}(D(T_T(\pmb{x})_{i:j}))) \leq \gamma$ where $\gamma$ is a manually defined bias difference threshold. Together, these approximations give a result in a viable alternative formulation of ALM, although one which requires pre-computation. See Table 11 for a minimal comparison of this variant with our main method. + +# G Overview of Existing Cross-Tokenizer Distillation Methods + +ULD (Boizard et al., 2025) trains the student via next-token prediction plus a Wasserstein distance loss (Kantorovich, 1960) between the teacher logits and the student logits at every step. This ensures that the absolute difference between the sorted teacher logits and sorted student logits at every position is small. + +Table 11: Comparing a variant of ALM which explicitly aims to take tokenization bias into account (Appendix F) with the main ALM version on transfer of Gemma2 2B IT to the Qwen tokenizer as in Use Case 1, but training for 5k steps instead. + +
ALM SettingBenchmarkAvg.
PiQAARC-CBoolQMMLUAGI-ENAGI-ZHIFEval
ALM76.848.383.153.638.932.256.055.6
ALM – Appendix F Variant76.946.883.153.639.431.552.954.9
+ +Table 12: Ensembling results across Qwen and Llama pivots and across keeping/transferring the special tokens. We adjust our notation as follows: $\mathcal{X}_{\rightarrow \mathcal{Y}'}$ now denotes transferring to tokenizer $\mathcal{V}$ while preserving the special tokens of $\mathcal{X}$ (the default in Table 2). $\mathcal{X}_{\rightarrow \mathcal{Y}}$ denotes transferring regular and special tokens to tokenizer $\mathcal{V}$ . We also explicitly denote the pivot used by the MinED baseline. + +
SizeIDModelBenchmarkAvg.
PiQAARC-CBoolQMMLUAGI-ENAGI-ZHIFEval
Original +Models2.6BGGemma2 2B IT79.650.483.856.942.130.762.558.0
3.2BLLlama3.2 3B IT76.943.978.862.436.640.276.659.3
1.5BQQwen2.5 1.5B IT76.343.277.960.145.054.246.357.6
Transfers2.4BG→Q'G→Q Tok.76.849.082.753.638.931.653.255.1
2.4BG→QG→Q Tok. + Special Tok.68.032.071.339.631.728.853.146.4
3.3BL→Q'L→Q Tok.77.345.679.061.637.133.376.358.6
3.3BL→QL→Q Tok. + Special Tok.75.546.078.460.136.832.374.057.6
2.4BG→LC'G→LC Tok.77.148.483.053.739.232.053.855.3
2.4BG→LCG→LC Tok. + Special Tok.77.148.082.953.738.931.848.554.4
1.5BQ→LC'Q→LC Tok.76.345.978.459.644.741.945.956.1
1.5BQ→LCQ→LC Tok. + Special Tok.76.144.977.759.344.245.744.756.1
Ensembles7.3BQ+G+L (MinED-p, Q pivot)76.946.283.264.140.639.465.959.5
7.3BL+G+Q (MinED-p, L pivot)76.947.283.164.238.537.754.957.5
7.2BQ+G→Q+L→Q(p)75.645.677.362.142.044.949.156.6
7.2BL+G→L+Q→L(p)77.548.783.762.943.342.564.860.5
7.2BQ+G→Q'+L→Q'(p)77.548.083.463.043.645.764.360.8
7.2BL+G→LC'+Q→LC'(p)77.648.084.163.243.643.362.360.3
Larger +Models7.6BLlama3.1 8B IT81.653.985.468.447.347.181.766.5
8.0BQwen2.5 7B IT80.454.386.471.757.672.676.671.4
+ +MinED (Wan et al., 2024) aligns the student and teacher logits by greedily aligning every token in the students' vocabulary with the teacher token which has the minimal Levenshtein distance (Levenshtein, 1966) to the student token. The main objective is again minimizing cross-entropy of the next-token prediction. The KL-divergence between the student logits and aligned teacher logits is added at every position where there is a one-to-one alignment between the elements of the two sequences. + +DSKD (Zhang et al., 2024b) projects the student representations to the teacher sequence and the teacher representations to the student sequence via a cross-attention mechanism, then adds the KL-divergence between the teacher predictions and the student-to-teacher projected predictions (and vice versa) to the next-token prediction loss. + +# H Analysing the Choice of Ensemble Pivot & Special Tokens + +For our main ensembling results (Table 2), we have chosen to transfer to the Qwen tokenizer, i.e., to use Qwen as the 'pivot'. The question arises, then, of how the choice of pivot impacts performance. We additionally transfer Gemma2 2B and Qwen2.5 1.5B to the Llama3 tokenizer and ensemble with the (non-transferred) Llama3 3B to answer this question. Results are shown in Table 12. We find that, at an average score of 60.8 with Qwen as the pivot and 60.3 with Llama as the pivot, the ensemble of transferred models is robust to the choice of pivot. This is, however, not true for the MinED baseline: here, using Llama as the pivot catastrophically degrades the ensemble to perform on average worse than the individual ensemble constituents. + +We use this opportunity to additionally study a related subtle choice: whether to keep the special tokens (such as $\langle \text{bos} \rangle$ , $\langle \text{eos} \rangle$ , etc.) of the original tokenizer, or to use the special tokens of the new + +tokenizer upon transfer. Different special tokens do not pose a problem for sequence alignment since they can be easily detected and manually aligned. The same holds true for autoregressive generation, where it is fairly trivial to maintain separate running token sequences for the different models, which each insert their own special tokens as needed when one is generated. Nonetheless, this does result in implementation overhead, and for some use cases it may be convenient to achieve $100\%$ parity with the target tokenizer by transferring the special tokens as well. Alongside the aforementioned assembling results, Table 12 also shows the performance of models which had their special tokens transferred and ensembles of these models. For the Llama pivot, transferring the special tokens completely preserves performance. However, for the Qwen pivot, transferring the special tokens catastrophically degrades performance (especially the performance of the Gemma2 2B constituent). This is the case since Qwen2 does not use a beginning-of-sequence token. In models which do use a token, this token is often heavily attended to, behaving as an 'attention sink' (Barbero et al., 2025). The models transferred to the Qwen2 special tokens thus have to relearn to distribute attention from the (now absent) to different tokens in the sequence. Evidently, Llama3 is able to cope with this situation better than Gemma2; more training of Gemma2 may fix this problem. Based on these findings, we preserve the special tokens in our main experiments since it is in general the safer choice, and the only downside for our purpose is additional implementation complexity. + +# I Implementing ALM + +ALM is simple to implement efficiently by making changes to the data preparation and the loss computation. + +Data preparation. Alongside tokenizing all example texts in the current batch, data preparation must include computing aligned chunks of tokens between the teacher and the student. To implement the chunk alignment algorithm, we can take advantage of the fact that both token sequences encode the same bytes. It is thus possible to compute alignments in a single pass via indices $(i,k)$ , where $i$ is increased as long as the token at position $i$ in one sequence ends earlier than the token at position $j$ in the other sequence, and vice versa, and indices are stored if both tokens end at the same byte position. This is in contrast to more complex approaches used in prior work (Fu et al., 2023; Wan et al., 2024): they minimize edit distance between alignments via variants of the Needleman-Wunsch algorithm (Needleman & Wunsch, 1970). This is not necessary if the tokenizers have first been converted to the byte level. We can represent the computed chunks via binary matrices $M\in \{0,1\}^{b\times m\times k}$ and $N\in \{0,1\}^{b\times n\times k}$ where $b,m,n$ are the batch size, the student sequence length and the teacher sequence length, respectively and $k = \min (m,n)$ is the maximum amount of chunks (i.e. the minimum of the student and teacher sequence lengths). M and N have entries one if the i-th token is part of the j-th chunk and zero otherwise. The above can be done in a separate data-loading thread to avoid blocking the main process. + +Loss computation. Loss computation involves computing the student and teacher next-token log probabilities over input tokens $\log p_S(\pmb{y}|\pmb{x}) \in \mathbb{R}^{b \times m}$ and $\log p_T(\pmb{y}|\pmb{x}) \in \mathbb{R}^{b \times n}$ where $\pmb{y}$ are the input tokens shifted by one as in the causal language modelling objective. We can then compute chunk log-probabilities $C_S := (\log p_S(\pmb{y}|\pmb{x}))M$ and $C_T := (\log p_T(\pmb{y}|\pmb{x}))N$ . We then apply the chunk-level $f$ -divergence element-wise to $C_S$ and $C_T$ and take the mean to compute the loss. In the simplest case where $f = f_{\mathrm{TVD}}$ and $\tau \to \infty$ , this reduces to $\mathcal{L}_{S,T}^{\mathrm{ALM}}(\pmb{x}) = \frac{1}{b \cdot k} \sum_{i,j} |(C_S)_{i,j} - (C_T)_{i,j}|$ . All of the above results in negligible overhead compared to the forward and backward pass over the Transformer backbone (two gathers, two matrix multiplications, and some element-wise comparisons). Alignment constraints $c(i,j,k,l)$ (c.f. Equation Alignment Indices) and chunk debiasing (c.f. Equation Outcome-Debiased Chunk-Level Probability) add some implementation complexity to the above but are cheap to compute and, in principle, optional. \ No newline at end of file diff --git a/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/images.zip b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..9be2a6d1bc06c72b73872de8b3a87c7b24096f96 --- /dev/null +++ b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a556de526a8e27754a815b6f5051744e64b4b31b78a9bf54c3e8ff5bc7d60bb6 +size 1192053 diff --git a/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/layout.json b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..845391b51b8537e7b8dfe6bc6d007479018a88fb --- /dev/null +++ b/NeurIPS/2025/Universal Cross-Tokenizer Distillation via Approximate Likelihood Matching/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63b1413985f13bad1fcb0228beca8e08dbe8999589dfb3c30740f5c517b7f243 +size 1016677 diff --git a/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/bfc7ff85-009a-4c5b-ac53-50f225ad0b77_content_list.json b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/bfc7ff85-009a-4c5b-ac53-50f225ad0b77_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..013240ffd7b29ac4eb7e14f69513b99ff781ca78 --- /dev/null +++ b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/bfc7ff85-009a-4c5b-ac53-50f225ad0b77_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:947b93e7cb97dfdcd439254fa655d80e41e5003a5bf280e499d157f8fbca1d9d +size 197071 diff --git a/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/bfc7ff85-009a-4c5b-ac53-50f225ad0b77_model.json b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/bfc7ff85-009a-4c5b-ac53-50f225ad0b77_model.json new file mode 100644 index 0000000000000000000000000000000000000000..891729d24ceab20242347dcf1a4f6f7a3d0694c3 --- /dev/null +++ b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/bfc7ff85-009a-4c5b-ac53-50f225ad0b77_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1782821e5771fad6a98bf185c677b5bdeeb48cb7510dd194848d92a2bf6b394 +size 246675 diff --git a/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/bfc7ff85-009a-4c5b-ac53-50f225ad0b77_origin.pdf b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/bfc7ff85-009a-4c5b-ac53-50f225ad0b77_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..11160d613a12166bc3980c81350d9a771332820d --- /dev/null +++ b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/bfc7ff85-009a-4c5b-ac53-50f225ad0b77_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32f938570fe64a571dbf6ec4b301c40b0954edd4f3677f49aaca7b13f4ffa4bb +size 19934023 diff --git a/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/full.md b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/full.md new file mode 100644 index 0000000000000000000000000000000000000000..47295fff56002aeb6808f7a72c9e0ce1aa992052 --- /dev/null +++ b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/full.md @@ -0,0 +1,1007 @@ +# Universal Few-Shot Spatial Control for Diffusion Models + +Kiet T. Nguyen Chanhyuk Lee Donggyun Kim Dong Hoon Lee Seunghoon Hong KAIST + +{kietngt00, chan3684, kdgyun425, donghoonlee, seunghoon.hong}@kaist.ac.kr + +![](images/738b5c7cad2cb3d398392518288b36e8d2648728a96de3dc716336113e25e9d2.jpg) +HED + +![](images/9d37245bac3cb8e2fa8e9a85c97e1590985caad048296d0b226a6eb8407abb96.jpg) +A {photo/painting} of two roses in a small vase with water + +![](images/069d165d1bdb83969c7e7ae4de3e0568be75e61253ad933d048fcd1572990ed4.jpg) + +of two roses in a small. +fish water + +![](images/28e6f6e3fc73f3c48c77faee0c19e87ae25409c24005e0277edf9d0d6fee55a7.jpg) +Normal + +![](images/69231c6479a1485e8e2a603200716ae71c2b1325caacc085aa47028331d0e98b.jpg) +A (horse/zebra) standing in the gates area + +![](images/22cf008dfb68bd8082a1f72d1cb4cb1203d89401a43d4c371d0137efdf3638d7.jpg) +Depth + +![](images/9a83602ab7955e36f74f86c4e672f40e28fe206e60b28b730010c1ec8ddda34d.jpg) +Two glass bowls of {oranges/apples} add up to more than enough + +![](images/b9b5f49523864559bbaa8b3520375601afac14ced4e71eab3163f40a953a2702.jpg) + +wo glass bowls of {oranges/apples} add up to more than enough + +![](images/b0c934881e6d9fa03ece557418b7a2da7250da66739ccb8100a092ce517d6473.jpg) +Pose + +![](images/1ac388e24c8c4122082ec502c78a20e383955a5647af8e2df4f83d10ea1ce92c.jpg) +A man dressed in a {lab coat/suit} + +![](images/1bdbdecf6069a7af63d76e6568a263cf2fb4016e3dab18ad4a1eee44db9aa413.jpg) + +![](images/74eb0e698f3d6b0b434fbfac5cf7b569c457fb2ada0904bff690f77fb9472105.jpg) + +![](images/cce2109ef998a583ca01228bf21652f893dd37fdc1e5c5c694cf375fb7cd8450.jpg) +Canny +Figure 1: Results of our method learned with 30 examples on unseen spatial conditions. The proposed control adapter guides the pre-trained T2I models in a versatile and data-efficient manner. + +![](images/c992ddada22dcb957a71b0e8af43ed98f87cbed09bd2490cbee44fa2902377b5.jpg) +A tower with a clock on it during the {daytime/night} + +![](images/80349052a3ee62a9368ee3e6698989c64eb1fa22b0b8442de2918313d3826e13.jpg) + +![](images/3ee4ff1e3d378d65721581717b04e7904e93cd4e8db24a561f8fb1690e75a9a5.jpg) +Densepose + +![](images/5d62108d73a576f3b086e3c583561df6be95734c5e6d4eea8375292d7d545e43.jpg) + +![](images/f9f619c3af6990d56b624e0f456c223046322a0fb4c83a9472689ba108089ccf.jpg) +A {woman/boy} talking on the phone looks in the distance. + +# Abstract + +Spatial conditioning in pretrained text-to-image diffusion models has significantly improved fine-grained control over the structure of generated images. However, existing control adapters exhibit limited adaptability and incur high training costs when encountering novel spatial control conditions that differ substantially from the training tasks. To address this limitation, we propose Universal Few-Shot Control (UFC), a versatile few-shot control adapter capable of generalizing to novel spatial conditions. Given a few image-condition pairs of an unseen task and a query condition, UFC leverages the analogy between query and support conditions to construct task-specific control features, instantiated by a matching mechanism and an update on a small set of task-specific parameters. Experiments on six novel spatial control tasks show that UFC, fine-tuned with only 30 annotated examples of novel tasks, achieves fine-grained control consistent with the spatial conditions. Notably, when fine-tuned with $0.1\%$ of the full training data, UFC achieves competitive performance with the fully supervised baselines in various control tasks. We also show that UFC is applicable agnostically to various diffusion backbones and demonstrate its effectiveness on both UNet and DiT architectures. Code is available at https://github.com/kietngt00/UFC. + +# 1 Introduction + +Text-to-Image (T2I) diffusion models [11, 41, 38, 43, 8, 7, 25], trained on large-scale datasets, have achieved remarkable success in generating high-quality, semantically aligned images from natural language prompts. While language-based control offers intuitive and flexible guidance, it often lacks the precision needed for fine-grained visual control, such as specific object positions, shapes, or scene layouts. To overcome this, recent works [19, 35, 28, 58, 27, 39, 59, 53] incorporate explicit spatial signals—like edge maps, depth maps, and segmentation masks to control diffusion models. + +To enable spatial control while preserving the generative quality of pre-trained diffusion models, existing methods typically employ control adapters [58, 35, 28] that inject spatial signals into a frozen T2I model. However, these adapters are usually trained independently for each spatial control task, requiring substantial computational resources and extensive labeled data for a new task. Alternatively, reusing pre-trained multi-task adapters - either directly [39, 53] or with minimal updates [59]- struggle to generalize to tasks that differ from their training distribution, and often show poor adaptability. + +In this work, we aim to address these limitations by proposing a universal few-shot learning framework, named Universal Few-shot Control (UFC), that efficiently controls diffusion models with novel spatial conditions using only a small number of labeled examples at test time (e.g., dozens of image and condition pairs). Developing such a method would substantially enhance the practicality and flexibility of spatial control methods, but also poses two main challenges. First, significant domain discrepancies across diverse spatial signals make it difficult to learn a consistent, shared representation of control signals that facilitate generalization to novel conditions. Second, in real-world settings where new control tasks may arise dynamically and labeled data is limited, the model must be capable of efficient test-time adaptation from only a few annotated examples. + +To overcome these challenges, UFC introduces a universal control adapter that represents novel spatial conditions by adapting the interpolation of visual features of images in a small support set, rather than directly encoding task-specific conditions. The interpolation is guided by patch-wise similarity scores between the query and support conditions, modeled by a matching module [23]. Since image features are inherently task-agnostic, this interpolation-based approach naturally provides a unified representation, enabling effective adaptation across diverse spatial tasks. Furthermore, to facilitate rapid and data-efficient updates, UFC combines episodic meta-learning on a multi-task dataset with a small set of task-specific parameters, enabling effective adaptation under few-shot settings. + +Extensive experiments across diverse spatial control modalities, including edge maps, depth maps, normal maps, human pose, and segmentation masks for human body, demonstrate that UFC outperforms prior approaches in few-shot settings by large margins. Notably, UFC achieves fine-grained spatial control using only 30 shots, and even on par with some fully supervised baselines on Normal, Depth, and Canny with just 150 support examples (0.1% of the training data). Furthermore, UFC is compatible with both UNet [42] and DiT [36] backbones, ensuring applicability across recent T2I diffusion architectures. To our knowledge, we propose the first method for few-shot spatial control in text-to-image diffusion models, which enables spatial control image generation with novel conditions at test time using minimal annotated data. + +# 2 Related Works + +Controllable Image Diffusion Models Text-to-Image diffusion models [11, 41, 38, 43, 8, 7, 25] have gained widespread adoption for their ability to generate high-quality, semantically aligned images from text prompts. To enable finer control over image structure, various methods [35, 58, 28, 27, 39, 59, 53, 48, 52] proposed incorporating additional spatial control inputs such as edge maps, segmentation masks, or human poses, etc., into diffusion models. ControlNet [58] augments a pretrained T2I diffusion model with a control adapter, initialized from the model itself, to encode spatial conditions and inject them into the frozen diffusion model. Uni-ControlNet [59] extends this by adding lightweight feature extractors to support multiple condition types. Prompt Diffusion [53], built on ControlNet, introduces a vision-language prompting mechanism to enable in-context learning for handling a diverse set of tasks. However, these prior methods are limited to tasks seen during training. To address this limitation, training-free methods [2, 57, 34, 29] have been proposed; but, they often rely on a long process of latent optimization, which substantially increases generation time while providing only limited controllability. Consequently, few-shot adaptation with more fine-grain controllability without incurring significant generation-time overhead remains unexplored. + +Few-shot Diffusion Models To extend diffusion models to unseen tasks, several works [5, 60, 55, 46, 12, 26, 20] have explored few-shot learning for image generation. For example, D2C [46] trains a variational autoencoder [24] on a few labeled examples to produce latent representations that condition a diffusion model to generate images in the target domain. Similarly, FSDM [12] uses visual features extracted from a small support set to guide image generation toward unseen classes. While these approaches demonstrate promising few-shot generation capabilities, they primarily focus on domain or class transfer, and are not designed to generalize across diverse spatial control tasks. + +Analogy Image Generation. Several recent works [13, 56] leverage the analogy between a query source and a support source-target pair to enable generalization in diffusion models on diverse tasks with visual instruction. Analogist [13] treats visual instruction as an inpainting task, arranging query-support pairs in a $2 \times 2$ grid and using a diffusion model to complete the missing cell. This training-free method generalizes well to tasks like colorization, deblurring, and editing. While we also leverage query-support analogy in few-shot settings, our goal differs: prior work preserves the support image's appearance, whereas we aim to generate diverse content guided by spatial conditions. + +# 3 Background + +A text-to-image diffusion model generates an image $x$ conditioned on a text prompt $c_{\mathrm{text}}$ by iteratively denoising a sequence of latent variables. Specifically, the model learns a finite-length Markov chain $\{z_{T - t}\}_{t = 0}^{T}$ that starts from standard Gaussian noise $z_{T} \sim \mathcal{N}(0,I)$ , where each transition $z_{t + 1} \rightarrow z_t$ progressively removes noise. The final clean variable $z_0$ can be either the image itself or a latent representation $z = E(x)$ , which is decoded back to the image by $x = D(z)$ , where $(E,D)$ denotes an auto-encoder [41, 38]. The chain is the time-reversal of a diffusion process $\{z_t\}_{t = 0}^T$ that gradually corrupts the data by adding small Gaussian noise until it becomes pure noise at $z_{T}$ [47]. To learn each denoising transition, the diffusion network $\mathcal{E}_{\phi}$ is trained to predict the added noise $\epsilon$ at timestep $t$ : + +$$ +\min _ {\phi} \mathbb {E} _ {\left(z _ {0}, c _ {\text {t e x t}}\right) \sim \mathcal {D} _ {\text {t r a i n}}, t, \epsilon} \left[ \| \epsilon - \mathcal {E} _ {\phi} \left(z _ {t}, c _ {\text {t e x t}}, t\right) \| ^ {2} \right], \tag {1} +$$ + +where $(z_0, c_{\mathrm{text}})$ is drawn from the training dataset $\mathcal{D}_{\mathrm{train}}$ and $t$ is uniformly sampled from $\{1, \dots, T\}$ . $z_t$ can be computed in closed form from $z_0$ and $t$ using the properties of Gaussian variables [16]. After training, an image is generated by running the learned Markov chain from $z_T$ down to $z_0$ . + +Although text-to-image diffusion models control the overall content of an image, a text prompt alone is limited in steering the fine-grained spatial structures. Spatial control approaches [35, 58, 28, 48] address this limitation by introducing an additional spatial condition $y_{\tau}$ , typically a dense map describing the target image (e.g., edges, depth, or semantic masks). For each condition type (or task) $\tau$ , an auxiliary control adapter $\mathcal{G}_{\theta_{\tau}}(y_{\tau})^{1}$ is trained and injected into a frozen, pre-trained diffusion backbone $\mathcal{E}_{\phi}$ , while keeping the backbone parameters $\phi$ fixed to preserve their learned priors: + +$$ +\min _ {\theta_ {\tau}} \mathbb {E} _ {\left(z _ {0}, c _ {\text {t e x t}}, y _ {\tau}\right) \sim \mathcal {D} _ {\text {t r a i n}}, t, \epsilon} \left[ \| \epsilon - \mathcal {E} _ {\phi} \left(z _ {t}, c _ {\text {t e x t}}, t, \mathcal {G} _ {\theta_ {\tau}} \left(y _ {\tau}\right)\right) \| ^ {2} \right], \tag {2} +$$ + +However, learning a dedicated adapter for each task $\tau$ usually requires thousands of labeled data to achieve reasonable performance [58]. This can be costly if we want to condition the pre-trained model on a novel task $\tau_{\mathrm{novel}}$ . On the other hand, reusing an adapter trained on a fixed task(s) for novel tasks often suffers from limited adaptation performance, especially when the new tasks are substantially different from training [59]. Therefore, designing a versatile control adapter that can accommodate arbitrary unseen spatial conditions with a small amount of data remains a key challenge for data-efficient steering of text-to-image diffusion models. + +# 4 Method + +# 4.1 Problem Setup + +Our goal is to build a universal few-shot framework that steers a frozen text-to-image diffusion model with arbitrary novel spatial conditions, given only a handful of annotated examples (typically a few dozen). To this end, we introduce a universal control adapter $\mathcal{I}(y_{\tau};S_{\tau})$ that can inject any type of spatial conditions into the frozen diffusion model by directly incorporating the given data as follows: + +$$ +\hat {\epsilon} = \mathcal {E} _ {\phi} \left(z _ {t}, t, c _ {\text {t e x t}}, \mathcal {I} \left(y _ {\tau}; S _ {\tau}\right)\right), \tag {3} +$$ + +where $S_{\tau} = \{(x^{i},y_{\tau}^{i})\}_{i\leq N}$ denotes a support set comprising $N$ image-condition pairs for task $\tau$ . We focus exclusively on the design of the adapter $\mathcal{I}$ while the remaining components, such as loss function, diffusion architecture, and injection strategy, are independent to the adapter and can be freely chosen from existing spatial control approaches [35, 58, 28]. + +Unlike a task-specific adapter $\mathcal{G}_{\theta_{\tau}}$ (Eq. (2)), the universal adapter $\mathcal{I}$ must address two key challenges. + +1. Heterogeneous input formats. Spatial conditions vary widely—from extremely sparse cues such as human-posed keypoints to dense maps such as depth or segmentation. The adapter must transform these disparate inputs into the unified control features that the frozen diffusion model can consume reliably. +2. Severe data scarcity. For a new task, we assume only a few dozen labeled examples. To handle distribution shifts without over-fitting the tiny support set, the adapter needs an adaptation mechanism that is both flexible and efficient. + +# 4.2 Universal Few-Shot Control Adapter + +We propose Universal Few-shot Control (UFC), a universal control adapter that addresses the challenges outlined in Section 4.1 by (1) unifying heterogeneous spatial conditions with image features, and (2) adapting to new tasks through patch-wise matching and parameter-efficient finetuning. An overview is shown in Figure 2. + +To obtain control features that remain consistent across diverse condition types, UFC leverages task-agnostic visual patches extracted from support images via patch-wise matching. Specifically, given a query condition $y_{\tau}^{q}$ and a support set $S_{\tau} = \{(x^{i},y_{\tau}^{i})\}_{i\leq N}$ , UFC encodes images and conditions into spatial feature maps with encoders $f$ and $g_{\tau}$ , respectively. The control feature for $k$ -th query patch is then constructed by + +$$ +\mathcal {I} \left(y _ {\tau} ^ {q, k}; \mathcal {S} _ {\tau}\right) = \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {M} \sigma \left(g _ {\tau} \left(y _ {\tau} ^ {q, k}\right), g _ {\tau} \left(y _ {\tau} ^ {i, j}\right)\right) \cdot f \left(x ^ {i, j}\right), \tag {4} +$$ + +where $\sigma : \mathbb{R}^d \times \mathbb{R}^d \to [0,1]$ is a patch-wise similarity function, $M$ is the number of spatial patches per image, and $k, j \leq M$ denote the patch indices. Intuitively, the patch embeddings of the support images $f(x^{i,j})$ form task-agnostic bases of query conditions, while task-specific weights—computed from the conditions—select the relevant entries. + +The patch-wise matching formulation in Eq. 4, inspired by few-shot dense prediction methods [23, 22], offers several advantages for the universal control problem. First, since the task-specific conditions are only used to determine the weights for the task-agnostic visual features, the resulting control features $\mathcal{I}(y_{\tau}^{q};S_{\tau})$ reside in a unified visual feature space regardless of the task $\tau$ . This ensures consistent guidance of the diffusion model and robust generalization to unseen tasks. Second, by composing the control features patch-wise, it can exploit the locality inductive bias on the image-condition pairs and amplify the effective number of support patches (i.e., bases) for each query patch. This provides sufficient representational power to model complex spatial controls from just a few support images. Finally, the general matching rule can wrap any control adapter $G_{\theta_{\tau}}$ by treating it as a condition encoder $g_{\tau}$ and adding an image encoder $f$ . UFC can therefore inherit advances in adapter architectures and injection mechanisms developed for spatial control. + +To adapt rapidly to a new task without over-fitting, UFC introduces only a small set of task-specific parameters $\theta_{\tau}$ while sharing the remainder. Starting from a pre-trained visual backbone $g(\cdot ;\theta)$ , we obtain a condition encoder + +$$ +g _ {\tau} \left(y _ {\tau}\right) = g \left(y _ {\tau}; \theta , \theta_ {\tau}\right), \tag {5} +$$ + +where $\theta$ is shared across tasks and $\theta_{\tau}$ is lightweight (e.g., bias [3] or LoRA [18] parameters). After meta-training on a fixed task set (Section 4.4), $\theta$ is frozen and only $\theta_{\tau}$ is fine-tuned for each novel task $\tau$ . The image encoder $f$ , also initialized from a pre-trained visual backbone, remains frozen throughout to preserve task-agnostic visual features. Leveraging strong priors of large-scale visual pre-training and modern parameter-efficient tuning techniques, UFC generalizes to unseen tasks with minimal task-specific parameters. + +![](images/6829f530bef7e669667db49a78a6fb53a17582f4ed20da89e35f2cdf8156d76d.jpg) +Figure 2: Overview of the proposed framework. The control adapter $\mathcal{I}$ consists of an image encoder $f$ , a condition encoder $g_{\tau}$ , and a matching module implementing Eq. 4. The support image-condition pairs and the query conditions are encoded to extract multi-layer features. The matching module at each layer is applied to produce control features. The features are then injected into the generation process following the mechanism in Section 4.3 to control the structure of images. + +# 4.3 Architecture + +The formulation of UFC's control adapter in Eq. (4) is general and can be incorporated into various diffusion backbones and adapter architectures. In this section, we describe the instantiation of UFC within the ControlNet framework [58] due to its popularity and strong performance. For clarity, we consider the pre-trained Stable Diffusion [41, 11] with UNet backbone [41] in this section, while the one with DiT backbone [11] is described in Appendix D. + +We initialize the condition encoder $g_{\tau}$ and image encoder $f$ as separate copies of the UNet encoder of the pre-trained diffusion model, where the image encoder is kept frozen. For the task-specific parameters $\theta_{\tau}$ of the condition encoder, we adopt bias-tuning [3], which has been proven to be flexible for few-shot learning in dense visual prediction [23, 22]. The matching module is implemented as a multi-head cross-attention block [50], where the timestep embedding is fused through adaptive layer normalization [37, 36] inside the attention mechanism. More implementation details about the matching module can be found in Appendix A.1. + +To flexibly control the diffusion model, we perform patch-wise matching (Eq. (4)) at multiple levels of the UNet encoders $g_{\tau}$ and $f$ using $L$ separate matching modules, where $L$ denotes the number of UNet encoder layers. The extracted features from $g_{\tau}$ and $f$ at each encoder layer $l$ are passed through the $l$ -th matching module to obtain the corresponding control features $\mathcal{I}^{l}(y_{\tau};S_{\tau})$ . These control features pass through a zero-initialized linear projection layer $\mathcal{Z}^l$ and are added to the original features of the target diffusion model: + +$$ +e _ {c} ^ {l} = e ^ {l} + \mathcal {Z} ^ {l} \left(\mathcal {I} ^ {l} \left(y _ {\tau}; \mathcal {S} _ {\tau}\right)\right), \tag {6} +$$ + +where $e^l$ is the output from the $l$ -th layer of the diffusion encoder. Finally, the resulting feature $e_c^l$ replaces the activation $e^l$ and is integrated via skip connections into the corresponding UNet decoder layer of the diffusion model. + +# 4.4 Training and Inference + +To equip UFC with few-shot learning capabilities, we adopt the standard episodic meta-training protocol, wherein each training iteration is an episode that mirrors the test-time procedure. In each episode, we first sample a specific control task $\tau$ from a meta-training dataset $D_{\mathrm{train}}$ that consists of multiple tasks. The sampled task $\tau$ supplies a support set $S_{\tau}$ and a query set $Q_{\tau}$ , where the model exploits the support set to control the diffusion model with the query condition. The model is optimized using the standard denoising loss [16] (or its flow-matching variant [31]): + +$$ +\min _ {\theta , \theta_ {\tau}, \sigma , \mathcal {Z}} \mathbb {E} _ {\mathcal {S} _ {\tau}, Q _ {\tau} \sim \mathcal {D} _ {\text {t r a i n}}} \mathbb {E} _ {(z _ {0}, y _ {\tau}, c _ {\text {t e x t}}) \sim Q _ {\tau}, t, \epsilon} \left[ \| \epsilon - \mathcal {E} _ {\phi} (z _ {t}, c _ {\text {t e x t}}, t, \mathcal {I} (y _ {\tau} ^ {q}; \mathcal {S} _ {\tau})) \| ^ {2} \right]. \tag {7} +$$ + +During meta-training, the parameters $\theta$ and $\theta_{\tau}$ in the condition encoder, the matching modules $\sigma$ and the projection layers $\mathcal{Z}$ are updated while the pre-trained diffusion model $\mathcal{E}_{\phi}$ and the image encoder $f$ remain frozen. By repeatedly training on the few-shot learning episodes, the model learns a generalizable mapping from the query condition and the support set to the unified control features. + +For an unseen task $\tau_{\mathrm{novel}}$ , we perform fine-tuning using its support set $S_{\tau_{\mathrm{novel}}}$ . To this end, we randomly partition the support set into two disjoint subsets $S_{\tau_{\mathrm{novel}}} = \tilde{S} \cup \tilde{\mathcal{Q}}$ , where $\tilde{S}$ and $\tilde{\mathcal{Q}}$ act as the pseudo-support and the query sets, respectively. Then the universal control adapter is fine-tuned with an objective similar to the meta-training: + +$$ +\min _ {\theta_ {\tau}, \sigma , \mathcal {Z}} \mathbb {E} _ {\tilde {S}, \tilde {\mathcal {Q}} \sim S _ {\tau_ {\text {n o v e l}}}} \mathbb {E} _ {(z _ {0}, y _ {\tau}, c _ {\text {t e x t}}) \sim \tilde {\mathcal {Q}}, t, \epsilon} \left[ \| \epsilon - \mathcal {E} _ {\phi} (z _ {t}, c _ {\text {t e x t}}, t, \mathcal {I} (y _ {\tau}; \tilde {S})) \| ^ {2} \right]. \tag {8} +$$ + +Fine-tuning a small number of parameters $\theta_{\tau}, \sigma, \mathcal{Z}$ , while freezing the shared parameters $\theta$ , makes the model robust to over-fitting to the few-shot support set. After fine-tuning, UFC can produce a control feature for unseen condition types $\tau_{\mathrm{novel}}$ using the support set $S_{\tau_{\mathrm{novel}}}$ as described in Section 4.2. + +# 5 Experiments + +# 5.1 Experimental setup + +Model settings For experiments using the UNet architecture, we adopt Stable Diffusion v1.5 [41] as the diffusion backbone. Spatial conditions and support images are first projected into the latent space using the pre-trained VAE [24] from the diffusion model, then processed by respective encoders. When encoding these inputs, we fix the denoising timestep to zero, provide empty text prompts, and omit the noisy latent input in order to focus solely on spatial information. Detailed model setting using DiT backbone is provided in the Appendix D. + +Datasets To enable episodic meta-training, we sample 300K text-image pairs from LAION-400M [45], with 150K containing humans (for Pose and Densepose) and 150K randomly sampled. Images are resized to the resolution $512 \times 512$ . Spatial conditions are extracted using pretrained off-the-shelf models. We consider six condition modalities that cover diverse semantics: Canny edge [4], HED edge [54], MiDaS Depth and surface Normal [40], human Pose [6], and human Densepose [14]. We consider Densepose as a control signal for semantic segmentation to constrain all segmentation classes to be included in the support set. During the training process, we maintain the setting that the models will be trained on 150K image-condition pairs for each task. + +To evaluate the performance over novel conditions, the six tasks are grouped into three disjoint splits: (Canny, HED), (Normal, Depth), and (Pose, Densepose). Models are trained on two splits and evaluated on the remaining one. These splits ensure test tasks differ significantly from training tasks, providing a robust measure of few-shot generalization. To simulate few-shot learning, we randomly sample support sets and evaluate the performance on the remaining ones, with the exception of human pose tasks (Pose and DensePose), for which we manually select support examples to ensure coverage of diverse human poses. + +Implementation details We train UFC (UNet diffusion backbone) for 12.5K iterations with a batch size of 96 on 8 NVIDIA RTX 3090 GPUs, using AdamW [33] with a learning rate of $1 \times 10^{-5}$ . During inference with the UNet backbone, we adopt the PNDM sampler [32] with 50 denoising steps, classifier-free guidance (CFG) [17] scale of 7.5, and seed 42. For testing, we fine-tune UFC using all image-condition pairs in the support set, but use only a subset of them as conditions during inference to accommodate memory constraints and reduce generation-time overhead. + +Baselines We compare our method in the main experiment against three types of baselines: + +- Fully-supervised baselines ControlNet [58] and Uni-ControlNet [59] are both trained in a fully-supervised manner on the entire dataset (150K images for each task). ControlNet is trained separately for each condition type, while Uni-ControlNet is jointly trained with all conditions. +- Few-shot baselines As the first to tackle spatial control in diffusion models under a few-shot setting, we adapt existing methods, Uni-ControlNet and Prompt Diffusion [53], to align with our few-shot adaptation. For Uni-ControlNet, as mentioned in the original paper, we extend the input layer with additional channels for novel conditions and few-shot fine-tune this layer. For Prompt Diffusion, we evaluate both the zero-shot setup as proposed in the original paper and the full fine-tuning setup. For fair comparison, these few-shot methods are pre-trained using the same meta-training dataset as our method and fine-tuned on the same few-shot data. + +Table 1: Controllability measurement on COCO 2017. Few-shot baselines are fine-tuned with 30 shots for evaluation on novel tasks. + +
Baseline TypeMethodCanny SSIM (↑)HED SSIM (↑)Depth MSE (↓)Normal MAE (↓)Pose AP50 (↑)Densepose mIoU (↑)
Fully-supervisedControlNet [58]0.35980.597289.0914.140.5250.4824
Uni-ControlNet [59]0.33780.580892.6014.590.3400.4695
Training-freeCtrl-X [29]0.29010.300298.1019.380.0050.1352
Few-shotPrompt Diffusion [53]0.21200.288798.8120.340.0120.2266
Uni-ControlNet + FT [59]0.22220.291799.2120.360.0100.2687
Prompt Diffusion + FT [53]0.27730.481095.6418.040.0340.3548
UFC (Ours - UNet)0.32390.512194.3815.090.2290.4340
+ +Table 2: FID evaluation on COCO 2017. Few-shot baselines are fine-tuned with 30 shots for evaluation on novel tasks. + +
Baseline TypeMethodCannyHEDDepthNormalPoseDensepose
Fully-supervisedControlNet [58]21.0617.1520.1621.7344.3334.72
Uni-ControlNet [59]16.7916.7620.3519.5947.1336.77
Training-freeCtrl-X [53]29.8330.1830.3230.3556.6045.88
Few-shotPrompt Diffusion [53]24.8523.0024.0723.2843.6034.15
Uni-ControlNet [59] + FT24.5825.4824.7725.1247.8236.06
Prompt Diffusion [53] + FT20.5719.8624.5624.3045.9436.83
UFC (Ours - UNet)19.2420.5821.0421.6047.9137.79
+ +- Training-free baselines We also compare our method with training-free methods, Ctrl-X [29] and FreeControl [34], which directly employ the frozen T2I diffusion models for spatial control. We consider Ctrl-X as our main evaluation but leave comparisons with FreeControl in Appendix B using a smaller evaluation set due to its slow inference speed. + +Evaluation Protocol We quantitatively evaluate all methods on COCO 2017 [30] validation split, which contains 5,000 images with associated captions. All images and their corresponding conditions are resized to $512 \times 512$ . For tasks Pose and Densepose, we restrict evaluation to images containing humans. To assess image generation quality, we report the Fréchet Inception Distance (FID) [15]. To evaluate controllability, we extract spatial conditions from the generated images using the same pre-trained networks used for dataset construction and compare them with the query conditions using task-specific metrics. Specifically, we use the Structural Similarity Index (SSIM) for Canny and HED, Average Precision $(\mathrm{AP}^{50})$ computed using Object Keypoint Similarity for human Pose, Mean Squared Error (MSE) for Depth prediction, Mean Angular Error (MAE) for surface Normal, and mean Intersection over Union (mIoU) for human segmentation in Densepose. + +# 5.2 Main Results + +Quantitative Results We report the 30-shot performance of our model with UNet backbone [41] in terms of two aspects: controllability (Table 1) and image quality (Table 2). Despite using only a few annotated examples, UFC achieves comparable image quality and over $90\%$ of the controllability performance of fully supervised baselines across most conditions. We observe that dense condition maps benefit more from the matching mechanism, as fine-grained similarity modeling enables more effective control features. This is reflected in the smaller relative performance gap with fully supervised baselines on Densepose compared to Pose. + +UFC consistently outperforms all few-shot and training-free methods in controllability while maintaining equal or better image quality. Among the few-shot baselines, Uni-ControlNet shows clear underfitting, and zero-shot Prompt Diffusion fails to generalize, both having weak controllability and FID. Compared to fine-tuned (FT) Prompt Diffusion, UFC has significant gains in both metrics on Canny, Depth, and Normal, with up to $16.8\%$ improvement in controllability. For Densepose and HED, our method achieves similar FID scores but significantly exceeds FT Prompt Diffusion in controllability. On Pose, although FT Prompt Diffusion yields lower FID, its structural control is ineffective $(\mathrm{AP}^{50}\approx 0)$ , while UFC achieves 0.229. + +![](images/7296e39ab7c2c1d0c85fdd118e92ec0bf1f41ce118edb13b8c8a3b90411193ea.jpg) +Figure 3: Qualitative comparison across six spatial control tasks. Our method (highlighted in black boxes), fine-tuned with 30-shot on unseen tasks, demonstrates competitive controllability with fully supervised baselines. In contrast, other baselines struggle to follow the spatial guidance accurately. + +UFC's strong few-shot performance stems from two factors. First, it effectively handles the large discrepancy between condition modalities by adapting the interpolation of support image features into task-specific control signals, unlike Prompt Diffusion or Uni-ControlNet, which lack robust strategies for handling distribution shifts. Second, UFC introduces an efficient adaptation mechanism by fine-tuning the matching module $\sigma$ , projection layers $\mathcal{Z}$ , and task-specific parameters $\theta_{\tau}$ in the condition encoder from the meta-training weights. In contrast, Uni-ControlNet updates only a tiny subset of parameters, leading to underfitting, while Prompt Diffusion lacks any explicit adaptation mechanism, and naively full fine-tuning is ineffective in the few-shot regime. + +Qualitative Results We present qualitative comparisons in Figure 3. As shown, our method with UNet backbone, fine-tuned with only 30 shots, consistently adheres to the given query conditions across various novel tasks. In contrast, the images generated by the training-free method, Ctrl-X, exhibit low generation quality and poor alignment to the spatial condition, indicating its limited adaptability to diverse spatial conditions. Similarly, zero-shot Prompt Diffusion fails to follow spatial guidance, suggesting that its in-context learning mechanism struggles when there are significant differences between training and unseen tasks. Lastly, while fine-tuned Prompt Diffusion loosely follows the spatial inputs, it often introduces undesired visual artifacts, particularly under the HED and DensePose conditions. + +Table 3: Ablation study on matching module and parameters adaptation. + +
MethodsCannyHEDDepthNormalPoseDensepose
SSIM↑FIDSSIM↑FIDMSE↓FIDMAE↓FIDAP50↑FIDmIoU↑FID
UFC (UNet)0.323919.240.512120.5894.3821.0415.0921.600.22947.910.434037.79
w\o Matching0.298420.430.497220.4396.1721.1016.0623.700.15048.470.399540.84
w\o Fine-tuning0.244321.640.368826.4297.9222.1218.9022.820.00247.970.185535.59
+ +![](images/0097131d5da3f445d3b6fabc20087f6be3a6d564896379f12d8e1d6086a0a4e9.jpg) +Figure 4: Performance of UFC when fine-tuned with different numbers of support data. Overall, UFC consistently improves the controllability with the increasing size of support sets. The results on FID are presented in the Appendix C, Figure 8. + +![](images/e870c44c2710df357872f26231dc94ce435746e6cec549e5c9270d054f136538.jpg) +UFC (Ours) --- ControlNet --- Uni-ControlNet + +![](images/c63f0b157c4cb2d0a5b8a6104e456003fd95b1eb27d86a21b08d8202134037b4.jpg) + +![](images/02f48a69c30c440bd5fab8bd6f924f22c94b7249753ef6c99b382ad924f7c1bc.jpg) + +![](images/1e2e9e615d98bf8facfdfc4da680e3153b5b3cd35e417788780877fa672ae346.jpg) + +![](images/0eb6d477bdccd1aae93d7f75066fc44530bb2a09b0baaf45c2c392cc06a036de.jpg) + +# 5.3 Analysis + +Ablation study To assess the effectiveness of our design in handling the large discrepancy across condition modalities, we conduct an ablation study with two variants of UFC on UNet backbone [41]: (1) UFC w/o Matching and (2) UFC w/o Fine-tuning. Both variants are trained on the same dataset as our main method and evaluated on the COCO 2017 validation split. In (1), we remove the matching mechanism and encode the query condition directly using the condition encoder i.e., $\mathcal{G}_{\tau}(y_{\tau})$ while retaining task-specific parameters and meta-learning paradigm. At test time, we fine-tune $\theta_{\tau}$ and $\mathcal{Z}$ using the small support set. In (2), we disable adaptation entirely by sharing all parameters across tasks during training and evaluating directly on unseen tasks without any fine-tuning. + +Quantitative results are presented in Table 3, with qualitative examples in Appendix C. Both ablation variants show a clear drop in performance compared to our full model. Notably, UFC w/o Matching achieves similar image quality but significantly lower controllability, underscoring the importance of leveraging task-agnostic features from support images via the matching mechanism. We provide the attention map visualization in Figure 7, Appendix C for a better understanding of our matching mechanism. UFC w/o Fine-tuning performs the worst overall, highlighting the essential role of parameter adaptation in generalizing to novel spatial conditions. + +Impact of Support Set Sizes We evaluate UFC on varying sizes of support sets for unseen condition types and plot the performance curves in Figure 4. We can observe a clear trend that the controllability of our method improves considerably with the increasing size of the support set. With 150 support image-condition pairs (0.1% of full training data), UFC begins to surpass the controllability of the fully-supervised baseline (Uni-ControlNet) on several tasks. We also present the FID score over varying support set sizes in Figure 8 in Appendix C, which shows that our method maintains the image quality across different shots. This improvement in controllability demonstrates the effectiveness of our method in adapting to unseen spatial condition modalities through lightweight fine-tuning, eliminating the costly fully-supervised training for novel tasks. + +Impact of Support Samples To evaluate the sensitivity of UFC to the choice of support set, we evaluate 30-shot performance with various support sets and report the results in Table 6, Appendix C. It shows that performance of our method tends to remain consistent under diverse support sets in most tasks. However, in some tasks such as Pose and Densepose, we observe that the model performed worse than the main results that used curated supports maximizing diversity in scale, deformation, crowding, and occlusion. It shows that the importance of support-set diversity is itself task-dependent, and ensuring sample diversity can potentially benefit the few-shot performance. + +Table 4: Quantitative evaluation of UFC with different backbones in 30-shot setting. + +
BackboneCannyHEDDepthNormalPoseDensepose
SSIM↑FIDSSIM↑FIDMSE↓FIDMAE↓FIDAP50↑FIDmIoU↑FID
Ours (UNet)0.323919.240.512120.5894.3821.0415.0921.600.22947.910.434037.79
Ours (DiT)0.398420.430.600119.8491.5122.7013.7923.060.33651.880.470839.27
+ +Impact of Diffusion Backbone Since UFC is applicable to various diffusion backbones, we employ the stronger pre-trained model based on DiT [11] and compare it with the one based on UNet used in our main table. The quantitative results are reported in Table 4, showing that the DiT-based model with a stronger diffusion backbone consistently outperforms the UNet-based model in controllability across all tasks. The lower image quality compared to the UNet variant, which is also observed in [48], can be due to the mismatch between the optimized image resolution of the pre-trained diffusion backbone with the testing resolution (1024 and 512). Figure 9 in Appendix D shows that UFC (DiT) qualitatively achieves more fine-grained controllability than the UNet counterpart. More qualitative examples using the DiT backbone are shown in Figure 10 in Appendix. + +Evaluation on More Novel Conditions To further validate the few-shot capability of our method in more challenging settings, we evaluate UFC on novel spatial conditions on 3D structures, such as meshes, wireframes, and point clouds extracted from iso3d dataset [10]. Importantly, these control tasks involve not only novel spatial conditions but also different output image distributions from meta-training datasets, simulating a more realistic generalization scenario to unseen control tasks. + +We meta-train UFC on all six tasks in our original dataset (i.e., subset of LAION-400M), then fine-tune the model on 30-shot support sets manually collected for each condition type. The fine-tuned model is then tested on unseen query conditions. The qualitative results in Figure 11, Appendix E demonstrate that generated images align closely with the spatial conditions provided by 3D meshes, wireframes, and point clouds. These results confirm UFC's effectiveness when encountering novel spatial conditions. + +# 6 Conclusion + +In this paper, we present Universal Few-shot Control (UFC), a unified control adapter that is capable of few-shot controlling text-to-image diffusion models with unseen spatial conditions. UFC adapts interpolated visual features from support images into task-specific control signals, guided by the analogy between query and support conditions. When evaluated on unseen control conditions, episodic meta-trained UFC demonstrated strong few-shot ability: it consistently outperformed all few-shot baselines and achieved precise spatial control over generated images. Notably, UFC can be on par with a fully supervised baseline, despite using only $0.1\%$ of the full data for fine-tuning. Finally, we demonstrated that our method is applicable to both recent architectures of diffusion models, including UNet and DiT backbones. + +Limitations and Future Research While UFC demonstrates strong few-shot performance in spatially-conditioned image generation with T2I diffusion models, several limitations remain for future work. First, our framework is designed primarily for spatial control generation rather than tasks that require preserving the appearance of the condition image, such as style transfer, inverse problems (e.g., colorization, deblurring, inpainting). Extending the framework to handle such tasks can be a future research direction. Next, our approach requires fine-tuning on a small annotated set for each new task, unlike Large Language Models, which adapt to new tasks via in-context learning from just a few examples without fine-tuning. Developing similar capabilities for spatial control image generation remains an open and promising challenge. + +Acknowledgments This work was in part supported by the National Research Foundation of Korea (RS-2024-00351212 and RS-2024-00436165) and the Institute of Information & communications Technology Planning & Evaluation (IITP) (RS-2022-II220926, RS-2024-00509279, RS-2021-II212068, RS-2022-II220959, and RS-2019-II190075) funded by the Korea government (MSIT). The work was also supported by Hyundai Motor Chung Mong-Koo Foundation to Kiet T. Nguyen. + +# References + +[1] Stability AI. 2024. Stable Diffusion 3.5 Medium. https://huggingface.co/stabilityai/stable-diffusion-3.5-medium. Accessed: 2025-05-22. +[2] Arpit Bansal, Hong-Min Chu, Avi Schwarzschild, Soumyadip Sengupta, Micah Goldblum, Jonas Geiping, and Tom Goldstein. 2023. Universal Guidance for Diffusion Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, pages 843-852. +[3] Elad Ben Zaken, Yoav Goldberg, and Shauli Ravfogel. 2022. BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-models. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1-9, Dublin, Ireland. Association for Computational Linguistics. +[4] John Canny. 1986. A Computational Approach to Edge Detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI-8(6):679-698. +[5] Yu Cao and Shaogang Gong. 2024. Few-shot image generation by conditional relaxing diffusion inversion. In European Conference on Computer Vision, pages 20-37. Springer. +[6] Zhe Cao, Tomas Simon, Shih-En Wei, and Yaser Sheikh. 2017. Realtime Multi-Person 2D Pose Estimation Using Part Affinity Fields. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). +[7] Junsong Chen, Simian Luo, and Enze Xie. 2024. FIXTURE: Fast and Controllable Image Generation with Latent Consistency Models. In ICML 2024 Workshop on Theoretical Foundations of Foundation Models. +[8] Junsong Chen, Jincheng Yu, Chongjian Ge, Lewei Yao, Enze Xie, Zhongdao Wang, James T Kwok, Ping Luo, Huchuan Lu, and Zhenguo Li. 2024. PixArt- $\alpha$ : Fast Training of Diffusion Transformer for Photorealistic Text-to-Image Synthesis. In ICLR. +[9] CompVis. 2022. Stable Diffusion v1-5. https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5. Accessed: 2025-05-22. +[10] Dylan Ebert. 2025. 3D Arena: An Open Platform for Generative 3D Evaluation. arXiv preprint arXiv:2506.18787. +[11] Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, et al. 2024. Scaling rectified flow transformers for high-resolution image synthesis. In *Forty-first international conference on machine learning*. +[12] Giorgio Giannone, Didrik Nielsen, and Ole Winther. 2022. Few-shot diffusion models. arXiv preprint arXiv:2205.15463. +[13] Zheng Gu, Shiyuan Yang, Jing Liao, Jing Huo, and Yang Gao. 2024. Analogist: Out-of-the-box visual in-context learning with image diffusion model. ACM Transactions on Graphics (TOG), 43(4):1-15. +[14] Riza Alp Güler, Natalia Neverova, and Iasonas Kokkinos. 2018. Densepose: Dense human pose estimation in the wild. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 7297-7306. +[15] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. 2017. GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc. +[16] Jonathan Ho, Ajay Jain, and Pieter Abbeel. 2020. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840-6851. +[17] Jonathan Ho and Tim Salimans. 2021. Classifier-Free Diffusion Guidance. In NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications. + +[18] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen, et al. 2022. Lora: Low-rank adaptation of large language models. ICLR, 1(2):3. +[19] Lianghua Huang, Di Chen, Yu Liu, Shen Yujun, Deli Zhao, and Zhou Jingren. 2023. Composer: Creative and Controllable Image Synthesis with Composable Conditions. arXiv preprint arxiv:2302.09778. +[20] Ying Jin, Jinlong Peng, Qingdong He, Teng Hu, Jiafu Wu, Hao Chen, Haoxuan Wang, Wenbing Zhu, Mingmin Chi, Jun Liu, and Yabiao Wang. 2025. Dual-Interrelated Diffusion Model for Few-Shot Anomaly Image Generation. +[21] Glenn Jocher, Jing Qiu, and Ayush Chaurasia. 2023. *Ultralytics YOLO*. +[22] Donggyun Kim, Seongwoong Cho, Semin Kim, Chong Luo, and Seunghoon Hong. 2024. Chameleon: A data-efficient generalist for dense visual prediction in the wild. In European Conference on Computer Vision, pages 422-441. Springer. +[23] Donggyun Kim, Jinwoo Kim, Seongwoong Cho, Chong Luo, and Seunghoon Hong. 2023. Universal Few-shot Learning of Dense Prediction Tasks with Visual Token Matching. In The Eleventh International Conference on Learning Representations. +[24] Diederik P. Kingma and Max Welling. 2014. Auto-Encoding Variational Bayes. In 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings. +[25] Black Forest Labs. 2024. FLUX. https://github.com/black-forest-labs/flux. +[26] Lingxiao Li, Yi Zhang, and Shuhui Wang. 2023. The Euclidean Space is Evil: Hyperbolic Attribute Editing for Few-shot Image Generation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 22714-22724. +[27] Ming Li, Taojiannan Yang, Huafeng Kuang, Jie Wu, Zhaoning Wang, Xuefeng Xiao, and Chen Chen. 2024. ControlNet++: Improving Conditional Controls with Efficient Consistency Feedback. In Computer Vision - ECCV 2024: 18th European Conference, Milan, Italy, September 29-October 4, 2024, Proceedings, Part VII, page 129-147, Berlin, Heidelberg. Springer-Verlag. +[28] Yuheng Li, Haotian Liu, Qingyang Wu, Fangzhou Mu, Jianwei Yang, Jianfeng Gao, Chunyuan Li, and Yong Jae Lee. 2023. Gligen: Open-set grounded text-to-image generation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 22511-22521. +[29] Kuan Heng Lin, Sicheng Mo, Ben Klingher, Fangzhou Mu, and Bolei Zhou. 2024. Ctrl-x: Controlling structure and appearance for text-to-image generation without guidance. Advances in Neural Information Processing Systems, 37:128911-128939. +[30] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Doll'ar, and C Lawrence Zitnick. 2014. Microsoft coco: Common objects in context. In Computer Vision-ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13, pages 740-755. Springer. +[31] Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. 2023. Flow Matching for Generative Modeling. In The Eleventh International Conference on Learning Representations. +[32] Luping Liu, Yi Ren, Zhijie Lin, and Zhou Zhao. 2022. Pseudo Numerical Methods for Diffusion Models on Manifolds. In International Conference on Learning Representations. +[33] Ilya Loshchilov and Frank Hutter. 2019. Decoupled Weight Decay Regularization. In International Conference on Learning Representations. +[34] Sicheng Mo, Fangzhou Mu, Kuan Heng Lin, Yanli Liu, Bochen Guan, Yin Li, and Bolei Zhou. 2024. Freecontrol: Training-free spatial control of any text-to-image diffusion model with any condition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7465-7475. + +[35] Chong Mou, Xintao Wang, Liangbin Xie, Yanze Wu, Jian Zhang, Zhongang Qi, and Ying Shan. 2024. T2i-adapter: Learning adapters to dig out more controllable ability for text-to-image diffusion models. In Proceedings of the AAAI conference on artificial intelligence. +[36] William Peebles and Saining Xie. 2023. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pages 4195-4205. +[37] Ethan Perez, Florian Strub, Harm De Vries, Vincent Dumoulin, and Aaron Courville. 2018. Film: Visual reasoning with a general conditioning layer. In Proceedings of the AAAI conference on artificial intelligence. +[38] Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas Müller, Joe Penna, and Robin Rombach. 2024. SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis. In *The Twelfth International Conference on Learning Representations*. +[39] Can Qin, Shu Zhang, Ning Yu, Yihao Feng, Xinyi Yang, Yingbo Zhou, Huan Wang, Juan Carlos Niebles, Caiming Xiong, Silvio Savarese, Stefano Ermon, Yun Fu, and Ran Xu. 2023. UniControl: a unified diffusion model for controllable visual generation in the wild. In Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS '23, Red Hook, NY, USA. Curran Associates Inc. +[40] René Ranftl, Katrin Lasinger, David Hafner, Konrad Schindler, and Vladlen Koltun. 2020. Towards robust monocular depth estimation: Mixing datasets for zero-shot cross-dataset transfer. IEEE transactions on pattern analysis and machine intelligence, 44(3):1623-1637. +[41] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. 2022. High-Resolution Image Synthesis with Latent Diffusion Models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pages 10674-10685. IEEE. +[42] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. 2015. U-net: Convolutional networks for biomedical image segmentation. In Medical image computing and computer-assisted intervention-MICCAI 2015: 18th international conference, Munich, Germany, October 5-9, 2015, proceedings, part III 18, pages 234-241. Springer. +[43] Chitwan Sahara, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily Denton, Seyed Kamyar Seyed Ghasemipour, Raphael Gontijo-Lopes, Burcu Karagol Ayan, Tim Salimans, Jonathan Ho, David J. Fleet, and Mohammad Norouzi. 2022. Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding. In Advances in Neural Information Processing Systems. +[44] Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. 2016. Improved techniques for training gans. Advances in neural information processing systems, 29. +[45] Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. 2021. Laion-400m: Open dataset of clip-filtered 400 million image-text pairs. arXiv preprint arXiv:2111.02114. +[46] Abhishek Sinha, Jiaming Song, Chenlin Meng, and Stefano Ermon. 2021. D2c: Diffusion-decoding models for few-shot conditional generation. Advances in Neural Information Processing Systems, 34:12533-12548. +[47] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. 2015. Deep unsupervised learning using nonequilibrium thermodynamics. In International conference on machine learning, pages 2256-2265. pmlr. +[48] Zhenxiong Tan, Songhua Liu, Xingyi Yang, Qiaochu Xue, and Xinchao Wang. 2024. Omnicontrol: Minimal and universal control for diffusion transformer. arXiv preprint arXiv:2411.15098. +[49] Narek Tumanyan, Michal Geyer, Shai Bagon, and Tali Dekel. 2023. Plug-and-play diffusion features for text-driven image-to-image translation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1921-1930. + +[50] Ashish Vavwani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. Advances in neural information processing systems, 30. +[51] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, page 6000-6010, Red Hook, NY, USA. Curran Associates Inc. +[52] Haoxuan Wang, Jinlong Peng, Qingdong He, Hao Yang, Ying Jin, Jiafu Wu, Xiaobin Hu, Yanjie Pan, Zhenye Gan, Mingmin Chi, et al. 2025. UniCombine: Unified Multi-Conditional Combination with Diffusion Transformer. CoRR. +[53] Zhendong Wang, Yifan Jiang, Yadong Lu, yelong shen, Pengcheng He, Weizhu Chen, Zhangyang Wang, and Mingyuan Zhou. 2023. In-Context Learning Unlocked for Diffusion Models. In Thirty-seventh Conference on Neural Information Processing Systems. +[54] Saining Xie and Zhuowen Tu. 2015. Holistically-Nested Edge Detection. In 2015 IEEE International Conference on Computer Vision (ICCV), pages 1395-1403. +[55] Ruofeng Yang, Bo Jiang, Cheng Chen, Baoxiang Wang, Shuai Li, et al. 2024. Few-shot diffusion models escape the curse of dimensionality. Advances in Neural Information Processing Systems, 37:68528-68558. +[56] Yifan Yang, Houwen Peng, Yifei Shen, Yuqing Yang, Han Hu, Lili Qike, Hideki Koike, et al. 2023. Imagebrush: Learning visual in-context instructions for exemplar-based image manipulation. Advances in Neural Information Processing Systems, 36:48723-48743. +[57] Jiwen Yu, Yinhuai Wang, Chen Zhao, Bernard Ghanem, and Jian Zhang. 2023. Freedom: Training-free energy-guided conditional diffusion model. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 23174-23184. +[58] Lvmin Zhang, Anyi Rao, and Maneesh Agrawala. 2023. Adding conditional control to text-to-image diffusion models. In Proceedings of the IEEE/CVF international conference on computer vision, pages 3836-3847. +[59] Shihao Zhao, Dongdong Chen, Yen-Chun Chen, Jianmin Bao, Shaozhe Hao, Lu Yuan, and Kwan-Yee K Wong. 2023. Uni-controlnet: All-in-one control to text-to-image diffusion models. Advances in Neural Information Processing Systems, 36:11127-11150. +[60] Jingyuan Zhu, Huimin Ma, Jiansheng Chen, and Jian Yuan. 2022. Few-shot image generation with diffusion models. arXiv preprint arXiv:2211.03264. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: The abstract and introduction accurately reflect our contributions and scopes. + +Guidelines: + +- The answer NA means that the abstract and introduction do not include the claims made in the paper. +- The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A No or NA answer to this question will not be perceived well by the reviewers. +- The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. +- It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: Limitations are discussed in the Appendix. + +Guidelines: + +- The answer NA means that the paper has no limitation while the answer No means that the paper has limitations, but those are not discussed in the paper. +- The authors are encouraged to create a separate "Limitations" section in their paper. +- The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. +- The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. +- The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. +- The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. +- If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. +- While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [NA] + +Justification: We do not include theoretical claims. + +# Guidelines: + +- The answer NA means that the paper does not include theoretical results. +- All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. +- All assumptions should be clearly stated or referenced in the statement of any theorems. +- The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. +- Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. +- Theorems and Lemmas that the proof relies upon should be properly referenced. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +# Answer: [Yes] + +Justification: We include sufficient information and provide a URL to our released code and checkpoints for reproducing the results. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- If the paper includes experiments, a No answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. +- If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. +- Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. +- While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example +(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. +(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. +(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). +(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +# Answer: [Yes] + +Justification: We released our code, checkpoints with detailed scripts on GitHub. + +# Guidelines: + +- The answer NA means that paper does not include experiments requiring code. +- Please see the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- While we encourage the release of code and data, we understand that this might not be possible, so "No" is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). +- The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://nips.cc/public/guides/CodeSubmissionPolicy) for more details. +- The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. +- The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. +- At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). +- Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +# Answer: [Yes] + +Justification: We describe our experimental settings including the hyper-parameters in the main paper and appendix. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. +- The full details can be provided either with the code, in appendix, or as supplemental material. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +# Answer: [No] + +Justification: We follow the experimental settings from the baselines and delve we provide appropriate experimental results. + +# Guidelines: + +- The answer NA means that the paper does not include experiments. +- The authors should answer "Yes" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. +- The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). +- The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) +- The assumptions made should be given (e.g., Normally distributed errors). + +- It should be clear whether the error bar is the standard deviation or the standard error of the mean. +- It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a $96\%$ CI, if the hypothesis of Normality of errors is not verified. +- For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g. negative error rates). +- If error bars are reported in tables or plots, The authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: We specify the computing resource we use for experiments in our paper. + +Guidelines: + +- The answer NA means that the paper does not include experiments. +- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. +- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. +- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper). + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: Our research conforms with the NeurIPS Code of Ethics. + +Guidelines: + +- The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics. +- If the authors answer No, they should explain the special circumstances that require a deviation from the Code of Ethics. +- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction). + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [NA] + +Justification: We expect no additional societal impacts or negative societal impacts from our work. + +Guidelines: + +- The answer NA means that there is no societal impact of the work performed. +- If the authors answer NA or No, they should explain why their work has no societal impact or why the paper does not address societal impact. +- Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. + +- The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. +- The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. +- If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML). + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: We expect no additional risks to be posed by our work. + +Guidelines: + +- The answer NA means that the paper poses no such risks. +- Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. +- Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. +- We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort. + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: We clearly state the creators and owners of the assets used in our work. + +Guidelines: + +- The answer NA means that the paper does not use existing assets. +- The authors should cite the original paper that produced the code package or dataset. +- The authors should state which version of the asset is used and, if possible, include a URL. +- The name of the license (e.g., CC-BY 4.0) should be included for each asset. +- For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. +- If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. +- For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. + +- If this information is not available online, the authors are encouraged to reach out to the asset's creators. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [NA] + +Justification: We do not introduce new assets. + +Guidelines: + +- The answer NA means that the paper does not release new assets. +- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. +- The paper should discuss whether and how consent was obtained from people whose asset is used. +- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [No] + +Justification: We do not include crowdsourcing. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. +- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector. + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: Our paper does not include research with human subjects. + +Guidelines: + +- The answer NA means that the paper does not involve crowdsourcing nor research with human subjects. +- Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. +- We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. +- For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review. + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA]. + +Justification: Our method does not use LLM. + +# Guidelines: + +- The answer NA means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. +- Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM) for what should or should not be described. + +# A Implementation Details + +# A.1 Implementation Details on Matching Module + +We implement our matching module described in Section 4.3 using the multi-head attention mechanism [51]. To incorporate denoising timestep $t$ , we adopt adaptive normalization [37], modulating the output of the matching module using the denoising timestep. Specifically, we use the embedding of the query condition $g_{\tau}(y_{\tau})$ , the support conditions $\{g_{\tau}(y_{\tau}^{i})\}_{i = 1}^{N}$ , and the support images $\{f(x^i)\}_{i = 1}^N$ as the query, key, and value inputs, respectively. Let $Q \in \mathbb{R}^{M \times d}$ , $K, V \in \mathbb{R}^{(N \cdot M) \times d}$ , and the timestep embedding be denoted as $t_{\mathrm{emb}} \in \mathbb{R}^{d_t}$ , our matching mechanism operates as below: + +$$ +Q = \operatorname {L a y e r N o r m} (Q), \quad K = \operatorname {L a y e r N o r m} (K), \tag {9} +$$ + +$$ +(\alpha , \beta , \gamma) = \operatorname {L i n e a r} \left(t _ {\text {e m b}}\right), \quad V = \operatorname {L a y e r N o r m} (V) \cdot (1 + \alpha) + \beta \tag {10} +$$ + +$$ +O = \operatorname {C o n c a t} _ {i = 1} ^ {H} \left(\operatorname {A t t e n t i o n} \left(Q W _ {i} ^ {Q}, K W _ {i} ^ {K}, V W _ {i} ^ {V}\right)\right) \tag {11} +$$ + +where $H$ is the number of attention heads, $W_{i}^{Q}, W_{i}^{K}, W_{i}^{V} \in \mathbb{R}^{d \times d_{\mathrm{head}}}$ . + +The final output is calculated with residual connection as below: + +$$ +O = O + \gamma \cdot a c t (O W ^ {O}) \tag {12} +$$ + +where $W^{O} \in \mathbb{R}^{H \cdot d_{\mathrm{head}} \times d}$ , and act denotes a non-linear activation function. + +We apply the matching module at each layer of the 12 encoding blocks and the mid-block in the UNet backbone of the diffusion model, and each attention module uses 8 heads. + +# A.2 Meta-training Settings + +The below setting is for the UNet backbone. The setting for the DiT backbone can be found in Section D. + +- **Checkpoint:** We use the Stable Diffusion v1.5 checkpoint available from the HuggingFace [9]. +- Hyperparameters: We train using the AdamW optimizer [33] with a learning rate of $1 \times 10^{-5}$ and a weight decay of 0.01. For each training batch, we randomly select two tasks per batch, each accompanied by a support set of three example pairs sampled for its query condition. +- Spatial condition representation: Following ControlNet [58], we represent all conditioning inputs as RGB images with a resolution of $512 \times 512$ . + +# A.3 Few-shot Fine-tuning Settings + +When fine-tuning our meta-trained model on 30 support examples of the novel condition type, at most 600 fine-tuning steps with a batch size of 10 (approximately 1 hour on an RTX 3090 GPU) suffice for all six tasks. Early-stopping with a held-out validation example to monitor the denoising can be applied to avoid overfitting. We found that low-level conditions (e.g., edges) tend to converge faster than high-level conditions (e.g., pose). We also adopt AdamW optimizer [33] with a learning rate of $1 \times 10^{-5}$ and a weight decay of 0.01. + +# A.4 Computation Resources + +
GPU(s)Batch size/GPUMem/GPUTime
Training8 RTX 3090616GB12 hours
Fine-tuning1 RTX 30901021GB<= 1 hour
Inference1 RTX 3090811.5GB3.06 s / image
+ +# A.5 Dataset Construction + +- Training data: We randomly sample a subset of data from the LAION dataset [45]. To identify images containing humans, we use the YOLO11x model [21]. Based on this filtering, we construct a dataset consisting of 150K images with humans and 150K images without humans. +- Evaluation data: For the Canny, HED, Depth, and Normal tasks, we evaluate our model on 5,000 images from the COCO2017 validation set [30]. For the Pose task, evaluation is limited to images where humans are successfully detected by the Openpose model [6]. Similarly, for the Densepose task, we only evaluate our model with images where the Densepose model [14] detects a human. + +# B Comparison with Training-Free Methods + +We propose a few-shot framework for adapting to new spatial conditions in T2I diffusion models. A natural question arises: why use a few-shot approach when training-free methods exist [2, 57, 34, 29]. To illustrate the advantages of our method (UNet backbone), as mentioned earlier in Section 5.1, we compare it with Ctrl-X [29] and FreeControl [34] state-of-the-art training-free approaches capable of handling diverse spatial conditions without relying on additional pretrained networks. + +To perform spatial control using a condition image, Ctrl-X [29] replaces the features and attention maps when processing the noisy latent with the ones encoded from the noisy condition image. We re-implement Ctrl-X using the Stable Diffusion v1.5 backbone for a comparable setting. FreeControl [34] controls image structure by constructing a PCA basis from object features, projecting both the condition and noisy image feature maps onto this basis, and minimizing an energy function that encourages alignment between the two projections during generation. + +Evaluation protocol We follow FreeControl's original evaluation protocol and assess controllability of UFC and two training-free baselines on 30 images from the ImageNet-R-TI2I dataset [49], which includes 10 object categories with three captions each. FreeControl has limited flexibility in generating diverse object categories, as it requires constructing a separate PCA basis for each. This makes large-scale evaluation on 5,000 images from the COCO 2017 validation set [30] impractical, since each prompt must be individually inspected to identify objects and build corresponding PCA bases. + +As the evaluation dataset of FreeControl excludes human subjects, we compare UFC (30-shot) against FreeControl on four tasks: Canny, HED, Depth, and Normal. Due to the limited number of images, we do not report FID [15] or Inception Score [44], as they would not provide reliable estimates of image quality. + +Result comparison Table 5 shows that UFC (30-shot) significantly outperforms both training-free baselines in controllability across all four tasks. Moreover, on a single NVIDIA RTX 3090 GPU, FreeControl takes approximately 100 times longer per image to generate compared to UFC when generating 30 images for evaluation. This overhead stems from the need to construct a PCA basis for each new object category and perform 200 denoising steps for latent optimization. Ctrl-X requires self-recurrence iteration to avoid out-of-distribution sampling, which increases the generation time for several seconds. In contrast, UFC only introduces a negligible time increase. + +Table 5: Controllability scores and average generation time of training-free baselines and UFC (Ours, 30-shot) on generating 30 images from ImageNet-R-TI2I [49]. + +
MethodCanny SSIM (↑)HED SSIM (↑)Depth MSE (↓)Normal MAE (↓)Time (Second)
FreeControl [34]0.31390.382197.3619.68251.3
Ctrl-X [29]0.38960.369396.1220.848.01
UFC (Ours)0.40740.571893.0917.753.06
+ +Figure 5 presents qualitative comparisons. UFC accurately follows the spatial condition, while FreeControl and Ctrl-X fail on fine details control. + +![](images/595d05032a38741569031b51c97e04d06bb359b9e536098aa51fb65eae52d9d8.jpg) +Figure 5: Qualitative comparison between UFC (30-shot) and FreeControl [34], Ctrl-X [29] on four control tasks. + +# C More Results on Analysis + +Qualitative results with two variants As mentioned in the ablation study in Section 5.3, Figure 6 presents a qualitative comparison of our method with its two variants: (1) UFC w\o Matching and (2) UFC w\o fine-tuning. Both variants exhibit degraded image generation in terms of controllability, as they often only partially adhere to the spatial conditions. For instance, in the 2nd row with HED condition, the generated images from UFC w\o Matching and UFC w\o Fine-tuning capture the cat's head structure but fail to adhere to the condition for the cat's legs and body. In contrast, our full method, which include both matching and fine-tuning, consistently follows all given conditions. + +![](images/88f8e7d6ad18256b452a3b2cbb03751e1860c5c66b1a28e0669ad5b32fbce825.jpg) +Figure 6: Qualitative comparison results of our method and its two variants: (1) UFC w\o matching and (2) UFC w\o fine-tuning. + +Attention map visualization We present an example of attention maps in Figure 7. For each task, the selected query patch (highlighted by a white box in the Query column) can attend to relevant support patches, rather than unrelated regions such as background areas. For instance, in the Canny and HED tasks (first two rows), the query patches focus on support regions that preserve similar edge structures. On the other hand, for the Pose and Densepose tasks (last two rows), the query patches attend to regions related to human body parts. + +![](images/d24515ab571cd814dd4aaa0452bd38c9f0b68d8b79dac898255eecaffa2c5efa.jpg) +Query + +![](images/c9ebd6d17a9c6122c8502cd7a2cecb29d854a279ebc154e2e10c04f852d0b4c7.jpg) + +![](images/16b3e261c2c62d1395fbd927ab5b624b87cb5fc18e555636558fa0197df201d3.jpg) + +![](images/2c78f82e9ff3eac7ece2dfe41f8035071df6339505cfea6d79e336d44caa03e5.jpg) +Support + +![](images/2a21e2b55369a84711805043dfb64b533d953283256f60f8e6d27aa0c399974a.jpg) + +![](images/ec93bd55900e460fae1aec5ea7e134a06aee5e0f4c1fc35e6801506c725b1df6.jpg) + +![](images/e16f4ed0d086dcea8f5b97d56009060157b56eb19d2aebd5b2560a1916761478.jpg) + +![](images/976ab69ee0968ad4b47152c76f994f8d2bb281f0bf90a1ca72f55e23c849b507.jpg) + +![](images/6725716bf1e4517790e64a1549c5042b1d5deb470e7308a040135a18cc68f156.jpg) + +![](images/6b23f6e197b13e6189a62e27d42870dfc593242e76dc51007c861fb2e8f275d1.jpg) + +![](images/1e996dc1d9b460887017ec0e7cc8afaf51430dd037715f4a020a5a3f73e0e874.jpg) + +![](images/268f75d2e9fb1472014d5ff1ab29f5f165f945111ff3160b1f776fdfe21c3503.jpg) + +![](images/d83f0e380ba650e19d85ca7506a45bb3a19adb750b48c084824c02fbbe2838a8.jpg) + +![](images/9032ad5ff6bb2722c3f23aa02cdd4b6c67716f06444b74fb3924a688017b04f7.jpg) + +![](images/60d18c223de018b451f6f6de5fb81937f29f4bb5359838333603ef207871f85c.jpg) + +![](images/b2c88c25b18c31bd750336e416d03c2e1b86a8d244a75158a7518bbb550e6198.jpg) + +![](images/06c1eb4d33b21535b9949676693d30239ddd270da7f346a8f70ab5e522b05e8c.jpg) + +![](images/09dd7ed642dae806b1f04646646c1075156d774adfd213a64867098f282a2ddb.jpg) + +![](images/1b403c28d8f73ad55554984003b96feb55a59610ce952fffa6d2b751a88c83d6.jpg) + +![](images/77a1da8ccacd6a62b1d14bf54cdcdf4a68f43f6e63b403072a000f9b65042d0c.jpg) + +![](images/95d636dde1c49d10bb05154f12b1dbcffc4868ab407d2d1b1acb0f89d5deac62.jpg) + +![](images/194faf5a641f770c679e158b0f20e93ab10f2a5fe8fbad8ea06ee3901cdc3fe1.jpg) + +![](images/f9f3373ffcf05691c9b23a4c437aaecbe666b8cfb81a6a9a2a13c4d3497246d1.jpg) + +![](images/4815529055f2be243f37ee2ba3e8b8e2a1911ead2a84eb6b63bd6aa0163285a5.jpg) + +![](images/2f588426601c038f7a8775bc40779c28ae2035f47da2621df3951ee1c0d53891.jpg) + +![](images/6d8def650866f9a28f1e8fd947ec63ee6679fa216e6a2c1f5d0d439b05fabd45.jpg) + +![](images/0cdab44745225fc8ca54a4ebe264f7c753a79fe165de8b286dec032889ccfec8.jpg) + +![](images/c031d2c9aff4cff47fd35b38b1f70abb13bd87f236227d3d7fbd6b1e8ede0192.jpg) + +![](images/9bd431f83e776c42d9df3cdd5c2238d9a8ac12ae31ab787b22f86096baa0ca16.jpg) + +![](images/a77454844c5a4783116c0fbb165b84f1379a73f0db4ac8d373c54415cf12db92.jpg) + +![](images/c25670318d568634a6d4dd8ed93726b620c79340a8366b414424df47432efc1a.jpg) +Figure 7: Attention Maps of UFC (30-shot) from the 7th layer and a selected head for each task. Support normal maps are converted to grayscale to enhance the visibility of attention regions. Query patches attend primarily to the most relevant support patches. + +![](images/ab6fcef3cbdbabde7256c50cf08e85e35f88de2498feb5bddbb4614551db9b2e.jpg) + +![](images/7f59dce631aa791ddc53e1fb25b9927d3ae552b4350d954b8219b02d8ab2ccdb.jpg) + +![](images/b5b34d92dae9f3996cc18129d4f526221501f998ac1ff22adcfaba10a0d38e04.jpg) + +![](images/3884b1c2ae79b4b63c7853e128f9f6d08ff119bdc5b3c2ea2063d51d9bbac0a6.jpg) + +![](images/a10cb9bb6d5b3ccd219047b97d91a52dec29bb99fe4842cf158bab6ad900d369.jpg) + +FID Results with different number of shots In addition to the controllability measurement in Figure 4, Section 5.3, we provide FID results obtained by fine-tuning our method (UFC) using different numbers of support data (i.e., shots) in Figure 8. The results show that our method maintains FID scores across various shots. Specifically, for Normal, Depth, Canny, and HED tasks, our method preserves image quality with FID changes remaining within 1. For Pose, the FID difference is within 4.5, and for DensePose, it is within 1.7. Both changes are relatively small given the FID scores of each task, and using more support data often slightly improves FID. The results confirm that our method improves controllability as the number of support data increases, while maintaining image quality. + +![](images/2167437a4984e29f801d58f77485533762b99e05e7a03d27aa1f4bebdb59c33c.jpg) + +![](images/173d5e60ccf81333ad9930141dff55004e2ab31d1710399fb993de9ff53253de.jpg) + +![](images/c8329e8323c344392640292cc20e985abec09600b2db9f22449b517d7e0ee136.jpg) + +![](images/b142a3a7ad40b9a1da8c69d40dd8f0a5581a08bc9d1db5b44ad3b6b71403dcc9.jpg) + +![](images/f478060e91f56d5b5a77a9a5f3ed747317d2141b90aefe81f629518d0013e060.jpg) + +![](images/e8e4a47d684032386cf3e8ac7202001a41cfd95e208ebd099c8c513200c4eec9.jpg) + +![](images/bd6a5a46f341c4281d54194eb70d2e29be7a03dfc18020958e5381ac8187266b.jpg) +Figure 8: FID score over varying support set sizes (shots). + +Effect of support samples As discussed in Section 5.3, UFC is evaluated in 30-shot settings with different investigate the effect of support sets' diversity. In this section, we would like to discuss the implications of diversity for each task. Because our matching strategy hinges on condition-specific similarity, the notion of diversity depends on tasks. For edge inputs such as Canny and HED, the support set must span a wide range of edge-map densities and orientations. For Pose and DensePose, it needs to cover varied human scales, occlusions, and pose deformations. To measure how support choice influences performance, we repeated fine-tuning three times, each time drawing a new random set of 30 supports and carrying out few-shot generation. The results are summarized in the Table 6. + +Table 6: Analysis on the effect of support set's diversity on model performance. + +
seedCannyHEDDepthNormalPoseDensepose
SSIM↑FIDSSIM↑FIDMSE↓FIDMAE↓FIDAP50↑FIDmIoU↑FID
10.323919.240.512120.5894.3821.0415.0921.600.22947.910.434037.79
20.329521.060.495720.7093.4720.5115.8220.850.17648.220.382739.52
30.327320.900.512823.8494.8422.2115.9322.560.19148.660.383137.46
40.329020.410.494220.7894.5021.8015.5621.890.20247.830.391438.30
Mean0.327420.400.503721.7394.3021.3915.6021.730.199548.160.397838.27
Std0.00250.820.01011.490.58510.760.37370.710.02240.380.02450.90
+ +# D Experiments with DiT Backbone + +Model As discussed in Section 4.3, our framework can work with both UNet and DiT backbones. We extend UFC to the DiT architecture [36], using Stable Diffusion v3 [11] as an example, initialized from the publicly available v3.5-medium checkpoint [1] on Hugging Face. This model consists of 24 Transformer layers in the diffusion backbone. We initialize the image encoder with pretrained weights of the diffusion backbone and keep it frozen during training. For the condition encoder, we initialize it as a trainable copy of the first 12 layers of the diffusion backbone. We train our model on 8 NVIDIA RTX A6000 GPUs. + +Control feature injection Unlike the UNet backbone, the DiT architecture does not have skip connections. Therefore, we inject the output of the matching module directly into the hidden representations at each layer of the DiT backbone. Specifically, image features are extracted from 12 even-numbered layers of the image encoder, while query and support condition embeddings are obtained from the condition encoder. The matching mechanism is applied across these 12 layers to generate multi-layer control features. The 24-layer DiT diffusion backbone is divided into 12 sequential chunks, each containing 2 layers. The control features are then added to every hidden representation of these chunks in the corresponding order. + +Hyper-parameters We follow the same optimizer settings, training dataset, and evaluation protocol described in Section 5.1. For inference, we use the flow-matching Euler scheduler introduced in Stable Diffusion 3[11], with a classifier-free guidance (CFG) scale of 5.0, 28 generation steps, and a fixed seed of 42. + +Qualitative Results Qualitative examples using the DiT backbone are shown in Figures 9, 10. Our DiT-based model, adapted with only 30 shots, is able to control the structure of generated images with various novel condition tasks. + +![](images/5170babe089a12afee3f5a9afd2324c3bb0616cdeac255858e27b45dc67ae083.jpg) +Figure 9: Qualitative comparison of UFC using DiT and UNet backbones in 30-shot setting. Our method with the DiT backbone yields more fine-grained spatial control than the UNet counterpart. + +![](images/7824b15e566ebbc68fab3e42bca5017f540ff971df88e73f6e7e6624c9c6c429.jpg) +Canny +'A fire hydrant stands at the corner of two city streets' + +![](images/03c12418f9a4c753412730e8c8db4d82fd7f01851d8f3fd7aad81304eb33023c.jpg) + +![](images/fbd641327c2facae37c41e2fe0fe6c20fab6e556cb67b454e39e3c578e74b255.jpg) +"Baxter street in the city at night; a "people crossing" sign + +![](images/74bedcb89d3e04fafc774ab876140f880e943d77caa50c2ce72000a17a9e04c5.jpg) + +![](images/aec02da5d6b964dc36bd82d3640d2503c185c7812cda269dace5acf9d6e7c0e6.jpg) +HED +'A black and white living room with modern furniture' + +![](images/fd2666ee369b0f51b58307cb2c2ee5eb46e77d10cd28e3fe3e8e787ef26f8647.jpg) + +![](images/7027fc310fed0f6b86ff86ceaa6787685d458534fe82564031415d83ed616157.jpg) +'A bathroom looks clean but is missing tile at the shower stall' + +![](images/62bf1bfd47f01ec046b23e98003af65c69a19596daf49e8d7e0f1273430b65be.jpg) + +![](images/8af4c60d3b39c463ead2a14713fe617a544cb35fbfee3221a33311463fd26203.jpg) +Depth +'A metal clock tower on a sidewalk in front of a building' + +![](images/923f31c4e6f8fe70f126407715f90a9dbf50052297d641e34980df3d10a88a77.jpg) + +![](images/68b59f519230f5d01961567a149ccc26be679c88f76e54669a96f053d20b179d.jpg) +'A brown and yellow commuter train with headlights on' + +![](images/c54c6ec2a15cad310ceab730d85b9b3d9b19f7e8b824825445b19100976cb94a.jpg) + +![](images/3cc9a68e8a3fba61f3aebf760cbae3c9d42d1584a24f5eaf8f27f4dd1d71939e.jpg) +Normal +'A STOP sign on a city street at night' + +![](images/3bdb271505fa90067ba429a4feb6f8ce63609862894948d06a6c2ea6091f10e6.jpg) +'Beautiful scene of the water, the bridge, and a tall clock tower'. + +![](images/6d5bd6976241b21d3c26e410234d4378ab3e39a783b97d61e0981a7901631ba0.jpg) + +![](images/41ea5777442fe19eee6d83bcefed817f0db625a368da8bcee160941a5b18321d.jpg) + +![](images/aae9ffab76eedf5fbab7a7380b53f35341122f0487f701663f5d1a17672c6bd9.jpg) +Pose +'A man holding a yellow kite while standing in a room' + +![](images/f7a784f398d303b9f67b2c84f1072d0ba68481da9d0bcad652e3b237f327d412.jpg) + +![](images/10408ebdc4ee65180722eef6bc4e68c33ccdd77ec76f09651831dcc1d5d24202.jpg) +'Man on skies on snow covered slope area' + +![](images/ce89185a8ae2d7e93efffe4343336636c9b4f8c011ea95033f9cf8fd03f9a804.jpg) + +![](images/c6794771cd5b1057a7709c1b46797877d414fe83647ad9891d972eb8c4adb7f3.jpg) +Dense Pose +'A man prepares food in a restaurant kitchen' +Figure 10: Generated images from UFC with DiT backbone in 30-shot setting. + +![](images/26d5deef8cfba46eb5730e98ac9e6e0cac5a05b0d26f742947f9327b105dac64.jpg) + +![](images/4a76e5095779ef15a5fc2761b81b63130db4c722fbf06e6cfdf164f4b69b6d95.jpg) +'An older man has a woman standing next to him' + +![](images/fc301d46220817818a54818060ed4850c4ed29c9d1893a45f3be45820a582ff4.jpg) + +# E More Results + +Results with more spatial conditions As previously discussed in Section 5.3, we evaluate UFC on more novel spatial conditions, including 3D meshes, wireframes, and point clouds. We use iso3d [10], a 3D isolated object dataset(with no background), to generate spatial conditions for image pairs. We only report qualitative results, as the absence of a pre-trained condition-prediction network prevents us from measuring controllability using the evaluation approach in Section 5.1. Moreover, the insufficient collected validation sets hinder reliable assessment of image quality with FID [15] or Inception Score [44]. Figure 11 shows the qualitative results of our method, demonstrating the effectiveness of our method in a few-shot (30 supports) setting. + +![](images/1d33134f9334b773c64495027b416240d839346afa7d69f0c1450500819e5f81.jpg) +Figure 11: Generated images from UFC with spatial conditions of 3D meshes, wireframes, and point clouds in 30-shot setting. + +More qualitative results We present more qualitative results of UFC (UNet) in Figure 12 and Figure 13. All the results are generated with a support size of 30. + +![](images/9bd7f0b5796c103f4cd03c9b5dcf372387879eb1b5e04cb9d99132dba279530c.jpg) +Canny +'A sheep standing in grass next to a rock wall' + +![](images/a42af754a5d0351eaf4d02dfc06a50e5147a557f6bb5c5f3a03a49c8de32db87.jpg) + +![](images/1e0b2a9773d5220ebf76df5b5a95d4010b615113c0a0eb343b5dae3179642e41.jpg) +'A closeup of a grill of doughnuts' + +![](images/ea466f49a85b452b3fcb04bdc8f10df4fb3a85a42d74716ff9d2a04e4f14c401.jpg) + +![](images/bfe537e42dd1474bb8267c03d948956af4122ebfabafc8486c401603ed9e2a6c.jpg) +HED +'The person holds both hands in the air while snowboarding' + +![](images/b1658df5c73297705a9f9a99949510dc1f95d731569b16d26721032b371404e3.jpg) + +![](images/b074bf45c0f09574b90685f9740f08de5ab22345539de0ff0176c351e9d71ca3.jpg) +'There are books on all three shelves of this bookshelf' + +![](images/bd10e4a36aaba2c19d3e082767b7678ec9dca361ebfc1c4114c2731a49a7ee0e.jpg) + +![](images/55b91d02530180877a1a70aad8094b19216be5c7d8beb307c540da35400ab81e.jpg) +Depth +'A home kitchen with white cabinets and silver appliances' + +![](images/034504c0460a968ad561f2b1007d66a866cf31025b8ff658bf6f43237bd54329.jpg) + +![](images/72b5a713c27532dab298ce842b7e27118b99491d800954029c348fb409476642.jpg) +'A baseball player talking to a small child on the field' + +![](images/ae04e72b67a5aa1957951291c80ef613f654e899d9c0bae6181f43bccc121464.jpg) + +![](images/4c11747df0c0c14e1435dcda1983e8598662a70764be433378c1a9781c64e995.jpg) +Normal +Two giraffes standing on a wide-open area + +![](images/88db324f19a60a8340c7209e5642621a711f91cccc21fe31aa0ee142852d93ee.jpg) + +![](images/c172d4939f40088c5474bdb6beaeeb39215722ea017d14cf3787ae08556b3504.jpg) +'Several sailboats sit in the water in front of some trees.' + +![](images/af6cbcc52f28e847b636ff5695e1b42193cdc9df68cc049cb33d760a05269832.jpg) + +![](images/2ade79259f0680a013335395487dd4fd2db8da3b8f2c3d90bf5c316cc405eafa.jpg) +Pose +A group of vintage men with baseball attire on them + +![](images/e663b59e63b0f214b92b1c7dbc683d43d72e77abc058c586f43a0c640838fdc2.jpg) + +![](images/32a70ae6412dc60b3940f920367d250614a983373cb97e9817ed25f4fc7d7524.jpg) +'Hey man that is opening up a bottle of wine' + +![](images/b83ef1de14c0a2a28972aa88668cd0294b9ee10ac83dcf64f059ecf7db715bab.jpg) + +![](images/7a39f974c2a89b285990a254ff60b699077c86255f4587a17afa868afd7abc99.jpg) +Dense Pose +'A man looking at camera preparing food in kitchen' +Figure 12: More qualitative results of UFC (UNet) in 30-shot setting. + +![](images/d986a36b103435b7593de44b454e9c35b4ff0b023f2fd9e364d32cddbe9c8ff3.jpg) + +![](images/743acd21d36e5f4c6a4b3f38f9b98adf0fdc06d5ad7848f9a2eb6308a10e5f46.jpg) +'A man walks up to where surfboards are propped up against a wall and wetsuits are hanging on a rack' + +![](images/50ef24eecf05f08c7e702b60662f6285519a2b7bb8ba22baee68b765de823a6c.jpg) + +![](images/397321ddd2a5f73ee9a12c68151f1d98e4ce55dbb6fb2cbe73b3849833d53a92.jpg) +Canny +'A man flying a colorful kite over a sandy beach' + +![](images/482fdb0e6915f4015acf7ee53aae114c3df1df75b7af450c3d7cd39b6ec1cf6b.jpg) + +![](images/1b823cb22c110620d7379364956442e048681dfadef74843d8909a785c6583f1.jpg) +'Two stuffed animals in a wooden outdoor chair' + +![](images/ad24c6eb1d2ff207c538a5594a94ef6796dfaa387ea87127343ab2d4c19a2cfc.jpg) + +![](images/035c20043df1706630cc7ccf7fce37c2a55e88d1a565377064d0f6807562d26d.jpg) +HED +'A couple of zebras are grazing in a field' + +![](images/0c2e45c578973c053aafeae458bf5959768600d78bc37e4f625358518722cf28.jpg) + +![](images/8f385ec32980b1d5efe629fe778b4da62e15ac5a73e2565e76a844b3c57d7d3f.jpg) +'The exterior of a building with a clock' + +![](images/d3de5b05b0d45863da062822c2393e14d9d6beced4664465bbc3b70e6c92c6ef.jpg) + +![](images/84f0ede536a1006cda6bd13e5b6f4deed5f8df30202fe569c3896a76849e8f33.jpg) +Depth +'A bird sitting on the window sill of a boat floating on a lake' + +![](images/423b70ee16bfffa251c10438f0cdd066ff1fbbd16c55caa16e06eba8cd615bc4.jpg) + +![](images/48e5aad2024cac779b80a11768331641eff325ea8e3b9449764b78059c59d5c6.jpg) +'A horse standing next to a fence being seen through a lens' + +![](images/1275b54dcdf94ead8c6969b8d7accc93c93209894c56c2d3d31aa115ec57b0f2.jpg) + +![](images/19247495eaa1fe51113c98c6d40db8c3f146d026e7eb43ae14fc5618b54e6488.jpg) +Normal +'A baby on the floor near a cellphone' + +![](images/8af85eca485555d7af3473a25bcb74037defda1ac6471263b4f89650439e393e.jpg) + +![](images/faced6581f039a0cd0cb0113aa504d61a545a74b78219fc5ff8abd8f8e20563a.jpg) +'A pizza with veggies and eggs on it' + +![](images/7079d5f63368585d9034604a03bc0adde54ec71cbfc404ff74bc6cffc122bd24.jpg) + +![](images/1de84bfa0d230937128158f4e191a31ddae1085308e5d64f937d3f0c9618099b.jpg) +Pose +'Man in a black jacket standing in front of a motorcycle' + +![](images/74a28d4342a043a0ba5963f03f40e91c3405b2b3c1b642be7686325dcd5daf9e.jpg) + +![](images/ce5d9f2cae56c73b77ef01cf917c4b21ae997dae7d6d25f0520a7c5affc9f7ce.jpg) +'A man is playing tennis on the tennis court' + +![](images/1af1f131de2cfab147dac03c93368b373e722ad41de20052a72076205faeb222.jpg) + +![](images/fb9b9943433c50fd99d0604022d39c82cc9aa287ab5806a30b3ae19a19144e45.jpg) +Dense Pose +'A person in a kitchen with a stove some pots and pans' +Figure 13: More qualitative results of UFC (UNet) in 30-shot setting. + +![](images/2cedbf872a57f60f2094e1d28ab2ab37d93986fd679dbea45387fc48b0836b7b.jpg) + +![](images/50058fbf1426ab496069049c023aa47654bbac3a6088b6261ddaa91f70ef4ad8.jpg) +'Two guys in a large room with a blackboard' + +![](images/603a91cf6eb5a733c7ce920f9edc87bf5d979ae94132860867726845aba920d1.jpg) + +# F Support Image-Condition Pairs + +As described in implementation detail in Section 5.1, after few-shot fine-tuning, 5 image-condition pairs are used for inference. + +![](images/d3af3c1ec39a77176024f6580d1b7b4eb3cc356d0532427b15979c16791ae5a9.jpg) +Figure 14: Five support image-label pairs used for evaluating Canny/Depth/HED/Normal tasks. + +![](images/bb208840370e28d5a95373394bbfa17998fbbcbe22132b4337f3b3d5abfa5fa1.jpg) +Figure 15: Five support image-label pairs used for evaluating Pose/DensePose tasks. \ No newline at end of file diff --git a/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/images.zip b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..6125e923c1547721a436f7d621b97e4ef5ff545b --- /dev/null +++ b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fffca13acecdc315c59d79a00fe2f4bfe829ff619a15171c3e4693c56a81eea8 +size 2531795 diff --git a/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/layout.json b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..d56d727f4b7f55be4a9c0791806385e21bd1ceab --- /dev/null +++ b/NeurIPS/2025/Universal Few-shot Spatial Control for Diffusion Models/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af3afdc2239113cbd41c92233d1f40a07e382769960db4e2316608047906ff4d +size 1111211 diff --git a/NeurIPS/2025/Universal Sequence Preconditioning/607cfa7c-0d32-4667-b2c5-03dd28a1b16d_content_list.json b/NeurIPS/2025/Universal Sequence Preconditioning/607cfa7c-0d32-4667-b2c5-03dd28a1b16d_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..0392d5e02c3f849a944d8b8bd84d1be1516c55a9 --- /dev/null +++ b/NeurIPS/2025/Universal Sequence Preconditioning/607cfa7c-0d32-4667-b2c5-03dd28a1b16d_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15dda7b0af91c4503df92f6e8b956ffaf65724061db267aca696367d331dd637 +size 103192 diff --git a/NeurIPS/2025/Universal Sequence Preconditioning/607cfa7c-0d32-4667-b2c5-03dd28a1b16d_model.json b/NeurIPS/2025/Universal Sequence Preconditioning/607cfa7c-0d32-4667-b2c5-03dd28a1b16d_model.json new file mode 100644 index 0000000000000000000000000000000000000000..68b48cd9ea2f61818eb5cc06704ad69fcb8bf778 --- /dev/null +++ b/NeurIPS/2025/Universal Sequence Preconditioning/607cfa7c-0d32-4667-b2c5-03dd28a1b16d_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6857777902f6dc0d52b939bbffc5935b117fbae34f16392f428c5ab71f4fe5bc +size 130836 diff --git a/NeurIPS/2025/Universal Sequence Preconditioning/607cfa7c-0d32-4667-b2c5-03dd28a1b16d_origin.pdf b/NeurIPS/2025/Universal Sequence Preconditioning/607cfa7c-0d32-4667-b2c5-03dd28a1b16d_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..d94accd89d98a9684bc0a904e37f2338ebf5db0c --- /dev/null +++ b/NeurIPS/2025/Universal Sequence Preconditioning/607cfa7c-0d32-4667-b2c5-03dd28a1b16d_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c86443254bbfaac7dddd5ffdaf1d2e1eb45341831bf4a39e4799816ca00a3e1 +size 1466092 diff --git a/NeurIPS/2025/Universal Sequence Preconditioning/full.md b/NeurIPS/2025/Universal Sequence Preconditioning/full.md new file mode 100644 index 0000000000000000000000000000000000000000..c3a621b712d4609ea6bb280ce432a9b56c4f8f79 --- /dev/null +++ b/NeurIPS/2025/Universal Sequence Preconditioning/full.md @@ -0,0 +1,533 @@ +# Universal Sequence Preconditioning + +Annie Marsden * + +Elad Hazan*† + +# Abstract + +We study the problem of preconditioning in sequential prediction. From the theoretical lens of linear dynamical systems, we show that convolving the input sequence corresponds to applying a polynomial to the hidden transition matrix. Building on this insight, we propose a universal preconditioning method that convolves the input with coefficients from orthogonal polynomials such as Chebyshev or Legendre. We prove that this approach reduces regret for two distinct prediction algorithms and yields the first ever sublinear and hidden-dimension-independent regret bounds (up to logarithmic factors) that hold for systems with marginally stable and asymmetric transition matrices. Finally, extensive synthetic and real-world experiments show that this simple preconditioning strategy improves the performance of a diverse range of algorithms, including recurrent neural networks, and generalizes to signals beyond linear dynamical systems. + +# 1 Introduction + +In sequence prediction the goal of the learner is to predict the next token accurately according to a specified loss function, such as the mean square error or cross-entropy. This fundamental problem in machine learning has gained increased importance with the rise of large language models, which perform sequence prediction on tokens using cross entropy. The focus of this paper is preconditioning, i.e. modifying the target sequence to make it easier to learn. A classic example is differencing, introduced by Box and Jenkins in the 1970s [14], which transforms observations $\mathbf{y}_1, \mathbf{y}_2, \ldots$ into successive differences, + +$$ +\mathbf {y} _ {1} - \mathbf {y} _ {0}, \mathbf {y} _ {2} - \mathbf {y} _ {1}, \dots , \mathbf {y} _ {t} - \mathbf {y} _ {t - 1}, \dots +$$ + +It is widely acknowledged that learning this sequence can be "easier" than learning the original sequence for a large number of modalities. In this work we seek a more general framework for sequence preconditioning that captures the same intuition behind differencing and extends it to a broader class of transformations. The question we ask is + +What is the general form of sequence preconditioning that enables provably accurate learning? + +We address this question by introducing a preconditioning method which takes in $n$ fixed coefficients $c_{0},\ldots ,c_{n}$ and converts the sequence of observations $\mathbf{y}_1,\dots ,\mathbf{y}_t,\dots$ to the sequence of convolved observations + +$$ +c _ {0} \mathbf {y} _ {0}, c _ {0} \mathbf {y} _ {1} + c _ {1} \mathbf {y} _ {0}, \dots , \sum_ {i = 0} ^ {n} c _ {i} \mathbf {y} _ {t - i}, \dots +$$ + +From an information-theoretic perspective, approaches of this kind seem futile—predicting $\mathbf{y}_t$ or $\sum_{i} c_i \mathbf{y}_{t-i}$ seems equally hard in an adversarial setting. Yet we show that when the data arises from + +a linear dynamical system (LDS), there exists a universal form of preconditioning that provably improves learnability, independent of the specific system. + +In LDS setting, we show that preconditioning significantly strengthens existing prediction methods, leading to new regret bounds. Here, preconditioning has an elegant effect: the preconditioning filter forms coefficients of an $n$ degree polynomial, and the hidden system transition matrix is evaluated on this polynomial—potentially shrinking the domain. In this setting, shrinking the learnable domain is akin to making the problem "easier to learn", a relationship that is formalized by [28]. This allows us to prove the first dimension-independent sublinear regret bounds for asymmetric linear dynamical systems that are marginally stable. + +# 1.1 Our results + +Our main contribution is Universal Sequence Preconditioning, a novel method of sequence preconditioning which convolves the target sequence with the coefficients of the $n$ -th monic Chebyshev polynomial. We give a more general form of preconditioning, allowing arbitrary user-specified coefficients, in Algorithm 1 and an online version in Algorithm 4 (Appendix C). We analyze the effect of Universal Sequence Preconditioning on two canonical sequence prediction algorithms in the online setting: (1) convex regression and (2) spectral filtering. In either case, the results are impressive- yielding the first known sublinear regret bounds as compared to the optimal ground-truth predictor that are simultaneously (1) applicable to marginally stable systems, (2) independent of hidden dimension (up to logarithmic factors), and (3) applicable to systems whose transition matrix is asymmetric (see Table 1). + +Algorithm 1 General Sequence Preconditioning (Offline Version) + +1: Training +2: Input: training data $(\mathbf{u}_{1:T}^{1:N}, \mathbf{y}_{1:T}^{1:N})$ where $(\mathbf{u}_t^i, \mathbf{y}_t^i)$ is the $t$ -th input/output pair in the $i$ -th sequence; coefficients $c_{0:n}$ ; prediction algorithm $\mathcal{A}$ . +3: Assert $c_{0} = 1$ . +4: for $i = 1$ to $N$ do +5: $\mathbf{y}_{1:T}^{\text{preconditioned},i} \gets \text{convolution}(\mathbf{y}_{1:T}^{i}, c_{0:n})$ $\triangleleft \mathbf{y}_t^{\text{preconditioned}, i} = \mathbf{y}_t^i + \sum_{j=1}^n c_j \mathbf{y}_{t-j}^i$ +6: end for +7: Train $\mathcal{A}$ on preconditioned data $\left(\mathbf{u}_{1:T}^{1:N},\mathbf{y}_{1:T}^{\mathrm{preconditioned,}1:N}\right)$ . +8: Test Time +9: for $t = 1$ to $T$ do +10: Receive $\mathbf{u}_t$ +11: Predict $\hat{\mathbf{y}}_t\gets \mathcal{A}\left(\mathbf{u}_{1:t},\mathbf{y}_{1:(t - 1)}\right) - \sum_{i = 1}^{n}c_i\mathbf{y}_{t - i}$ . +12: Receive $\mathbf{y}_t$ +13: end for + +First, applying USP to standard convex regression results in regret $\tilde{O}(T^{-2/13})$ , which holds simultaneously across the three settings above and remains dimension-independent. For comparison, a naive analysis of regression yields a vacuous regret bound of $O(T^{5/2})$ on marginally stable systems. Second, combining USP with a variant of spectral filtering [29] that uses novel filters, the algorithm is able learn a broader class of linear dynamical systems-- in particular systems whose hidden transition matrix may be asymmetric. The enhanced method achieves regret $\tilde{O}(T^{-3/13})$ , the best known rate under the joint conditions of conditions (1)-(3) discussed above: marginal stability, dimension independence, and asymmetry. + +Both results require that the transition matrix eigenvalues have imaginary parts bounded by $O(1 / \log T)$ —a near-tight condition for achieving dimension-free regret. Further discussion on this appears in Appendix B + +Empirical results in Section 4 demonstrate that USP consistently improves performance across diverse algorithms—including regression, spectral filtering, and neural networks—and across data types extending beyond linear dynamical systems. + +
MethodMarginally stable\( {d}_{\text{hidden }} \) -freeAsymmetric
Sys-ID××✓
Regression (open-loop)×✓✓
Regression (closed-loop)✓×✓
Spectral Filtering✓✓×
USP + Regression✓✓~✓
USP + Spectral Filtering✓✓~✓
+ +Table 1: Comparison of methods for learning LDS. USP extends learning to mildly asymmetric matrices with bounded complex eigenvalues. + +# 1.2 Intuition for Universal Sequence Preconditioning + +We now give some brief intuition for the result. Linear dynamical systems (LDS) are perhaps the most basic and well studied dynamical systems in engineering and control science. Given input vectors $\mathbf{u}_1, \ldots, \mathbf{u}_T \in \mathbb{C}^{d_{\mathrm{in}}}$ , the system generates a sequence of output vectors $\mathbf{y}_1, \ldots, \mathbf{y}_T \in \mathbb{C}^{d_{\mathrm{out}}}$ according to the law + +$$ +\mathbf {x} _ {t + 1} = \mathbf {A} \mathbf {x} _ {t} + \mathbf {B} \mathbf {u} _ {t}, \quad \mathbf {y} _ {t} = \mathbf {C} \mathbf {x} _ {t} + \mathbf {D} \mathbf {u} _ {t}, \tag {1} +$$ + +where $\mathbf{x}_0, \ldots, \mathbf{x}_T \in \mathbb{C}^{d_{\mathrm{hidden}}}$ is a sequence of hidden states and $(\mathbf{A}, \mathbf{B}, \mathbf{C}, \mathbf{D})$ are matrices which parameterize the LDS. We assume w.l.o.g. that $\mathbf{D} = 0$ . We can factor out the hidden state $\mathbf{x}_t$ so that the observation at time $t$ is + +$$ +\mathbf {y} _ {t} = \sum_ {s = 1} ^ {t} \mathbf {C A} ^ {t - s} \mathbf {B u} _ {s}. +$$ + +Given coefficients $c_{0:n} = (c_0,\dots ,c_n)$ let + +$$ +p _ {n} ^ {c} (x) \stackrel {\text {d e f}} {=} \sum_ {i = 0} ^ {n} c _ {i} x ^ {n - i}. \tag {2} +$$ + +Consider a "preconditioned" target at time $t$ to be a linear combination of $\mathbf{y}_{t:t-n}$ with coefficients $c_{0:n}$ . A key insight is the following identity, + +$$ +\sum_ {i = 0} ^ {n} c _ {i} \mathbf {y} _ {t - i} = \sum_ {s = 0} ^ {n - 1} \left(\sum_ {i = 0} ^ {s} c _ {i} \mathbf {C A} ^ {s - i} \mathbf {B}\right) \mathbf {u} _ {t - s} + \sum_ {s = 0} ^ {t - n - 1} \mathbf {C p} _ {n} ^ {c} (\mathbf {A}) \mathbf {A} ^ {s} \mathbf {B} \mathbf {u} _ {t - n - s}. +$$ + +If we take $c_{0} = 1$ (i.e. a monic polynomial), we can re-write $\mathbf{y}_{t}$ as + +$$ +\mathbf {y} _ {t} = - \underbrace {\sum_ {i = 1} ^ {n} c _ {i} \mathbf {y} _ {t - i}} _ {\aleph_ {0}} + \underbrace {\sum_ {s = 0} ^ {n - 1} \sum_ {i = 0} ^ {s} c _ {i} \mathbf {C A} ^ {s - i} \mathbf {B u} _ {t - s}} _ {\aleph_ {1}} + \underbrace {\sum_ {s = 0} ^ {t - n - 1} \mathbf {C p} _ {n} ^ {c} (\mathbf {A}) \mathbf {A} ^ {s} \mathbf {B u} _ {t - n - s}} _ {\aleph_ {2}}. \tag {3} +$$ + +This expression highlights our approach as a balance of three terms: + +$\aleph_0$ The universal preconditioning term: it depends only on the coefficients $c_{0:n}$ and not on any learning algorithm. +$\aleph_1$ A term learnable via convex relaxation and regression, for example by denoting + +$$ +\mathbf {Q} _ {s} ^ {\text {l e a r n e d}} = \sum_ {i = 0} ^ {s} c _ {i} \mathbf {C A} ^ {s - i} \mathbf {B}. +$$ + +The diameter of the coefficient $\mathbf{Q}_s$ depends on the magnitude of the coefficients $c_{0:n}$ . + +$\aleph_2$ The residual term with polynomial $p_n^c (\mathbf{A})$ . By a careful choice of coefficients $c_{0:n}$ , we can force this term to be very small. + +The main insight we derive from this expression is the inherent tension between two terms $\aleph_1, \aleph_2$ . The polynomial $p_n^c(x)$ and its coefficients $c_0, \ldots, c_n$ control two competing effects: + +1. The preconditioning coefficients grow larger with the degree $n$ of the polynomial and the magnitude of the coefficients $c_{i}$ . A higher degree polynomial and larger coefficients increase the diameter of the search space over the preconditioning coefficients, and therefore increase the regret bound stemming from the $\aleph_1$ component learning. +2. On the other hand, a larger search space can allow a broader class of polynomials $p_n(\cdot)$ which can better control the magnitude of $p_n(\mathbf{A})$ , and therefore reduce the search space of the $\aleph_2$ component. + +What choice of polynomial is best? This work considers the Chebyshev polynomial. The reason is the following property of the $n$ -th monic Chebyshev polynomial: + +$$ +\max _ {\lambda \in [ - 1, 1 ]} | p _ {n} (\lambda) | \leq 2 ^ {- (n - 1)}. +$$ + +As an example, consider any LDS whose hidden transition matrix $\mathbf{A}$ is diagonalizable and has eigenvalues in $[-1,1]$ . By the above property, observe that $\| p_n(\mathbf{A})\|_{\infty} \leq 2 \cdot 2^{-n}$ , therefore shrinking the $\aleph_2$ term at a rate exponential with the number of preconditioning coefficients. We pause to remark on the universality of this choice of polynomial. Indeed, one could instead have chosen the preconditioning coefficients to depend on $\mathbf{A}$ so that $p_n^{\mathrm{c}}(\cdot)$ is the characteristic polynomial of $\mathbf{A}$ . By the Cayley-Hamilton theorem, $p_n(\mathbf{A}) = 0$ . This means that $\aleph_2$ term is canceled out completely. However, this would have required knowledge of the spectrum of $\mathbf{A}$ . The Chebyshev polynomial, on the other hand, is agnostic to the particular hidden transition matrix. Moreover, even if the spectrum of $\mathbf{A}$ were known, choosing the preconditioning coefficients to form the characteristic polynomial would result in an algorithm which must learn hidden dimension many parameters, which is prohibitive. Instead, the degree of the Chebyshev polynomial must only grow logarithmically with the hidden dimension. + +# 1.3 Related work + +Our manuscript is technically involved and incorporates linear dynamical systems, spectral filtering, complex Chebyshev and Legendre polynomials, Hankel and Toeplitz matrix eigendecay, Gaussian quadrature and other techniques. The related work is thus expansive, and due to space limitations we give a detailed treatment in Appendix A. + +Preconditioning in the context of time series analysis has roots in the classical work of Box and Jenkins [14]. In their foundational text they propose differencing as a method for making the time series stationary, and thus amenable to statistical learning techniques such as ARMA (auto-regressive moving average) [10]. The differencing operator can be applied numerous times, and for different lags, giving rise to the ARIMA family of forecasting models. Identifying the order of an ARIMA model, and in particular the types of differencing needed to make a series stationary, is a hard problem. This is a special case of the problem we consider: differencing corresponds to certain coefficients of preconditioning the time series, whereas we consider arbitrary coefficients. + +For a thorough introduction to modern control theory and exposition on open loop / closed loop predictors, learning via regression, and spectral filtering, see [28]. + +The fundamental problem of learning in linear dynamical systems has been studied for many decades, and we highlight several key approaches below: + +1. System identification refers to the method of recovering $\mathbf{A}$ , $\mathbf{B}$ , $\mathbf{C}$ from the data. This is a non-convex problem and while many methods have been considered in this setting, they depend polynomially on the hidden dimension. +2. The (auto) regression method predicts according to $\hat{\mathbf{y}}_t = \sum_{i=1}^{h} \mathbf{M}_i \mathbf{u}_{t-i}$ . The coefficients $\mathbf{M}_i$ can be learned using convex regression. The downside of this approach is that if the spectral radius of $\mathbf{A}$ is $1 - \delta$ , it can be seen that $\sim \frac{1}{\delta}$ terms are needed. +3. The regression method can be further enhanced with "closed loop" components, that regress on prior observations $\mathbf{y}_{t-1:1}$ . It can be shown using the Cayley-Hamilton theorem that using this method, $d_h$ components are needed to learn the system, where $d_h$ is the hidden dimension of $\mathbf{A}$ . + +4. Filtering involves recovering the state $x_{t}$ from observations. While Kalman filtering is optimal under specific noise conditions, it generally fails in the presence of marginal stability and adversarial noise. +5. Finally, spectral filtering combines the advantages of all methods above. It is an efficient method, its complexity does not depend on the hidden dimension, and works for marginally stable systems. However, spectral filtering requires $\mathbf{A}$ to be symmetric, or diagonalizable under the real numbers. + +# 2 Main Results + +In this section we formally state our main algorithms and theorems. We show that the Universal Sequence Preconditioning method provides significantly improved regret bounds for learning linear dynamical systems than previously known when used in conjunction with two distinct methods. The first method is simple convex regression, and the second is spectral filtering. + +Both algorithms allow for learning in the case of marginally stable linear dynamical systems and allow for certain asymmetric transition matrices of arbitrary high hidden dimension. The regret bounds are free of the hidden dimension (up to logarithmic factors) – which significantly extends the state of the art. + +# 2.1 Universal Sequence Preconditioning Applied to Regression + +Algorithm 2 is an instantiation of Algorithm 4 for the method of convex regression. We set the preconditioning coefficients to be the coefficients of the $n$ -th degree (monic) Chebyshev polynomial. + +# Algorithm 2 Universal Sequence Preconditioning for Regression + +1: Input: initial parameter $\mathbf{Q}^0$ ; preconditioning coefficients $c_{0:n}$ from the $n$ -th degree (monic) Chebyshev polynomial; convex constraints $\mathcal{K} = \{(\mathbf{Q}_0, \dots, \mathbf{Q}_{n-1})$ s.t. $\| \mathbf{Q}_j \| \leq C_{\mathrm{domain}} \| c \|_1\}$ +2: Assert that $c_0 = 1$ . +3: for $t = 1$ to $T$ do +4: Receive $\mathbf{u}_t$ +5: Predict $\hat{\mathbf{y}}_t(\mathbf{Q}^t) = -\sum_{i=1}^{n} c_i \mathbf{y}_{t-i} + \sum_{j=0}^{n} \mathbf{Q}_j^t \mathbf{u}_{t-j}$ . +6: Observe true output $\mathbf{y}_t$ and suffer loss $\ell_t(\mathbf{Q}^t) = \|\hat{\mathbf{y}}_t(\mathbf{Q}^t) - \mathbf{y}_t\|_1$ . +7: Update and project: $\mathbf{Q}^{t + 1}\gets \mathrm{proj}_{\mathcal{K}}\left(\mathbf{Q}^t -\eta_t\nabla_{\mathbf{Q}}\ell_t(\mathbf{Q}^t)\right).$ + +# 8: end for + +Theorem 2.1 shows that vanishing loss compared to the optimal ground-truth predictor, at a rate that is independent of the hidden dimension of the system. + +Theorem 2.1. Let $\{\mathbf{u}_t\}_{t=1}^T \in \mathbb{C}^{d_{in}}$ be any sequence of inputs which satisfy $\| \mathbf{u}_t \|_2 \leq 1$ and let $\{\mathbf{y}_t\}_{t=1}^T \in \mathbb{C}^{d_{out}}$ be the corresponding output coming from some linear dynamical system $(\mathbf{A}, \mathbf{B}, \mathbf{C})$ as defined per Eq. [1]. Let $\mathbf{P}$ diagonalize $\mathbf{A}$ (note $\mathbf{P}$ exists w.l.o.g.) and let $\kappa = \| \mathbf{P} \| \| \mathbf{P}^{-1} \|$ . Assume that $\| \mathbf{B} \| \| \mathbf{C} \| \kappa \leq C_{domain}$ . Let $\lambda_1, \ldots, \lambda_{d_h}$ denote the spectrum of $\mathbf{A}$ . If + +$$ +\max _ {j \in [ d _ {h} ]} | \arg (\lambda_ {j}) | \leq 1 / (3 2 \log_ {2} (2 T ^ {3} / d _ {\text {o u t}})) ^ {2} +$$ + +then the predictions $\hat{\mathbf{y}}_1, \dots, \hat{\mathbf{y}}_T$ from Algorithm [2] where the preconditioning coefficients $c_{0:n}$ are chosen to be the coefficients of the $n$ -th monic Chebyshev polynomial satisfy + +$$ +\frac {1}{T} \sum_ {t = 1} ^ {T} \| \hat {\mathbf {y}} _ {t} - \mathbf {y} _ {t} \| _ {1} \leq \tilde {O} \left(\frac {\| \mathbf {B} \| \| \mathbf {C} \| \kappa \sqrt {d _ {o u t}}}{T ^ {2 / 1 3}}\right), +$$ + +where $\tilde{O} (\cdot)$ hides polylogarithmic factors in $T$ + +The proof of Theorem 2.1 is in Appendix D. For a simple baseline comparison, the regret achieved (via the same proof technique) by the vanilla regression algorithm without preconditioning is $O\left(C_{\text{domain}} \sqrt{d_{\text{out}}} T^{5/2}\right)$ which is not sublinear in $T$ . + +# 2.2 Universal Sequence Preconditioning Applied to Spectral Filtering + +Our second main result is the application of Universal Sequence Preconditioning to the spectral filtering algorithm [29]. In addition to applying USP to spectral filtering, we also propose a novel spectral filtering basis. Both changes to the vanilla spectral filtering algorithm are necessary to extend its sublinear regret bounds to the case of underlying systems with asymmetric hidden transition matrices. First we define two key quantities. Given horizon $T$ and $\alpha \in \mathbb{C}$ let + +$$ +\mu_ {T} (\alpha) \stackrel {\text {d e f}} {=} \left[ \begin{array}{l l l l} 1 & \alpha & \dots & \alpha^ {T - 1} \end{array} \right] ^ {\top}, \tag {4} +$$ + +and + +$$ +\mathbf {Z} _ {T} \stackrel {\text {d e f}} {=} \int_ {\alpha \in \mathbb {C} _ {\beta}} \mu_ {T} (\alpha) \mu_ {T} (\bar {\alpha}) ^ {\top} d \alpha , \tag {5} +$$ + +where $\overline{\alpha} \in \mathbb{C}$ denotes the complex conjugate. The novel spectral filters are the eigenvectors of $\mathbf{Z}_{T - n - 1}$ , which we denote as $\phi_1, \ldots, \phi_{T - n - 1}$ . Note that in the standard spectral filtering literature, the spectral filtering matrix is an integral over the real line and does not involve the complex conjugate. Our new matrix has an entirely different structure and although it looks quite similar, it surprisingly upends the proof techniques to ensure exponential spectral decay, a critical property for the method. We therefore introduce a novel proof of spectral decay in Theorem E.6 found in Section E.1.1 + +Algorithm 3 Universal Sequence Preconditioning for Spectral Filtering +1: Input: initial $\mathbf{Q}_{1:n}^{1},\mathbf{M}_{1:k}^{1}$ horizon $T$ convex constraints $\mathcal{K}$ = $\{(\mathbf{Q}_0,\dots ,\mathbf{Q}_{n - 1},\mathbf{M}_1,\dots ,\mathbf{M}_k$ s.t. $\| \mathbf{Q}_j\| \leq R_Q$ and $\| \mathbf{M}_j\| \leq R_M\}$ parameter $n$ coefficients $c_{1:n}$ +2: Let $p_n^c (x) = c_0x^n +c_1x^{n - 1} + \dots +c_n$ +3: Let $\phi_1,\ldots ,\phi_n$ be the top $n$ eigenvectors of $\mathbf{Z}_{T - n - 1}$ +4: Assert $c_{0} = 1$ +5: for $t = 1$ to $T$ do +6: Let $\tilde{\mathbf{u}}_{t - n - 1:1}$ be $\mathbf{u}_{t - n - 1:1}$ padded with zeros so it has dimension $T - n - 1\times d_{\mathrm{in}}$ +7: Predict $\hat{\mathbf{y}}_t(\mathbf{Q}^t,\mathbf{M}^t) = -\sum_{i = 1}^n c_i\mathbf{y}_{t - i} + \sum_{j = 0}^n\mathbf{Q}_j^t\mathbf{u}_{t - j} + \frac{1}{\sqrt{T}}\sum_{j = 1}^k\mathbf{M}_j^t\boldsymbol {\phi}_j^\top \tilde{\mathbf{u}}_{t - n - 1:1}$ +8: Observe true $\mathbf{y}_t$ , define loss $\ell_t(\hat{\mathbf{y}}_t) = \| \hat{\mathbf{y}}_t(\mathbf{Q}^t,\mathbf{M}^t) - \mathbf{y}_t\| _1$ +9: Update and project: $(\mathbf{Q}^{t + 1},\mathbf{M}^{t + 1}) = \mathrm{proj}_{\mathcal{K}}(\mathbf{Q}^t,\mathbf{M}^t) - \eta_t\nabla \ell_t(\mathbf{Q}^t,\mathbf{M}^t))$ +10: end for + +Theorem 2.2. Let $\{\mathbf{u}_t\}_{t=1}^T \in \mathcal{R}^{d_{in}}$ be any sequence of inputs which satisfy $\|\mathbf{u}_t\|_2 \leq 1$ and let $\{\mathbf{y}_t\}_{t=1}^T$ be the corresponding output coming from some linear dynamical system $(\mathbf{A}, \mathbf{B}, \mathbf{C})$ as defined per Eq. Let $\mathbf{P}$ diagonalize $\mathbf{A}$ (note $\mathbf{P}$ exists w.l.o.g.) and let $\kappa = \|\mathbf{P}\| \|\mathbf{P}^{-1}\|$ . If $R_Q, R_M$ , and $k$ are chosen to be sufficiently large and + +$$ +\max _ {j \in [ d _ {h} ]} | \arg (\lambda_ {j}) | \leq 1 / (3 2 \log_ {2} (2 T ^ {3} / d _ {o u t})) ^ {2}, +$$ + +then the predictions $\hat{\mathbf{y}}_1,\dots ,\hat{\mathbf{y}}_T$ from Algorithm where the preconditioning coefficients $\mathbf{c}_{0:n}$ are chosen to be the coefficients of the $n$ -th monic Chebyshev polynomial satisfy + +$$ +\frac {1}{T} \sum_ {t = 1} ^ {T} \| \hat {\mathbf {y}} _ {t} - \mathbf {y} _ {t} \| _ {1} \leq \tilde {O} \left(\frac {\| \mathbf {C} \| \| \mathbf {B} \| \kappa \sqrt {d _ {o u t}}}{T ^ {3 / 1 3}}\right). +$$ + +For comparison, vanilla spectral filtering without Universal Sequence Preconditioning requires that $\max_{j\in [d_h]}|\arg (\lambda_j)|\leq 1 / T$ , which is essentially the same as requiring that the matrix be symmetric since the horizon $T$ can become arbitrarily large. + +# 3 Proof Overview + +In this section we give a high level overview of the proofs for Theorem 2.1 and Theorem 2.2. We start by recalling the intuition for Universal Sequence Preconditioning developed in Section 1.2 which + +shows that if $\{\mathbf{y}_t\}_{t=1}^T$ evolves as a linear dynamical system parameterized by matrices $(\mathbf{A}, \mathbf{B}, \mathbf{C})$ with inputs $\{\mathbf{u}_t\}_{t=1}^T$ then by Equation 3, + +$$ +\mathbf {y} _ {t} = - \underbrace {\sum_ {i = 1} ^ {n} c _ {i} \mathbf {y} _ {t - i}} _ {\aleph_ {0}} + \underbrace {\sum_ {s = 0} ^ {n - 1} \sum_ {i = 0} ^ {s} c _ {i} \mathbf {C A} ^ {s - i} \mathbf {B u} _ {t - s}} _ {\aleph_ {1}} + \underbrace {\sum_ {s = 0} ^ {t - n - 1} \mathbf {C p} _ {n} ^ {c} (\mathbf {A}) \mathbf {A} ^ {s} \mathbf {B u} _ {t - n - s}} _ {\aleph_ {2}}. +$$ + +Recall that $\aleph_0$ is the universal preconditioning component, $\aleph_1$ is the term that can easily be learned by convex relaxation and regression, and $\aleph_2$ is the critical term that contains $p_n^c (\mathbf{A})$ . + +Both Theorem 2.1 and Theorem 2.2 use the standard result from online convex optimization (Theorem 3.1 from [26]) that online gradient descent over convex domain $\kappa$ achieves regret $\frac{3}{2}GD\sqrt{T}$ as compared to the best point in $\kappa$ , where $D$ denotes the diameter of $\kappa$ and $G$ denotes the maximum gradient norm. + +Regression: Proof of Theorem 2.1 In the case of regression, the domain is chosen so that $\aleph_2$ may be learned and the proof proceeds by bounding the diameter of such a domain and its corresponding maximum gradient norm to get regret $C n^2 \sqrt{d_{\mathrm{out}}} \| c \|_1 \sqrt{T}$ for a universal constant $C > 0$ which depends on the norms of matrices $\mathbf{B}$ and $\mathbf{C}$ from the underlying system. Then $\aleph_3$ is treated as an un-learnable error term. Let $\lambda(\mathbf{A})$ denote the set of eigenvalues of $\mathbf{A}$ . By the simple magnitude bound of + +$$ +\| \sum_ {s = 0} ^ {t - n - 1} \mathbf {C} p _ {n} (\mathbf {A}) \mathbf {A} ^ {s} \mathbf {B} \mathbf {u} _ {t - n - s} \| \leq \max _ {\lambda \in \lambda (\mathbf {A})} | p _ {n} (\lambda) | \cdot T \cdot \| \mathbf {C} \| \cdot \| \mathbf {B} \|, +$$ + +the error of ignoring this term can be very small if $\max_{\lambda (\mathbf{A})}|p_n(\lambda (\mathbf{A}))|$ is small. In the proof of Theorem 2.1 in Appendix we show that the regret for a generic polynomial $p_n^c$ defined by coefficients $c_{0:n}$ is + +$$ +\sum_ {t = 1} ^ {T} \| \mathbf {y} _ {t} - \hat {\mathbf {y}} _ {t} \| _ {1} \leq \underbrace {C n ^ {2} \sqrt {d _ {\mathrm {o u t}}} \| c \| _ {1} \sqrt {T}} _ {\text {R e g r e t f r o m l e a n i n g} \aleph_ {2}} + \underbrace {C \max _ {\lambda \in \mathcal {D}} | p _ {n} ^ {c} (\lambda) | T ^ {2}} _ {\text {U n l e a n a b l e E r r o r T e r m}}, +$$ + +where $\mathcal{D}$ is the region where $\mathbf{A}$ is allowed to have eigenvalues (see Theorem [D.1]). Therefore, to get sublinear regret, we must choose a polynomial which has bounded $\ell_{1}$ norm of its coefficients, while also exhibits very small infinity norm on the domain of $\mathbf{A}$ 's eigenvalues. + +Spectral Filtering: Proof of Theorem 2.2 In the case of spectral filtering, the domain is chosen so that both $\aleph_2$ and $\aleph_3$ may be learned. Because spectral filtering learns $\aleph_3$ , it is able to accumulate less error and hence achieves a better regret bound of $O(T^{-3/13})$ as compared to regression's $O(T^{-2/13})$ . At a high level, the proof proceeds by exploiting the fact that $p_n(\mathbf{A})$ shrinks the size of the learnable domain. However this is not enough, in order to extend the result to systems where $\mathbf{A}$ may have complex eigenvalues, the spectral filters must be eigenvalues of a new matrix, defined in Eq. 5 whose domain of integration includes the possibly complex eigenvalues of $\mathbf{A}$ . To get the dimension-independent regret bounds enjoyed by spectral filtering in this new setting where complex eigenvalues may occur, the exponential decay of $\mathbf{Z}_T$ from Eq. 5 must be established. This is nontrivial and requires several novel techniques inspired by [12]. The details are in Appendix E.1.1. + +Theorem 2.2 gives the main guarantee for the spectral filtering algorithm, which states that Algorithm 3 instantiated with some choice of polynomial $p_n^c(\cdot)$ achieves regret + +$$ +\tilde {O} \left(\left(n \| c \| _ {1} + T ^ {7 / 6} \max _ {\alpha \in \mathbb {C} _ {\beta}} | p _ {n} ^ {c} (\alpha) |\right) (n + k) \sqrt {d _ {\mathrm {o u t}}} \sqrt {T}\right). +$$ + +Both this theorem, as well as our new guarantee for convex regression, leads us to the following question: Is there a universal choice of polynomial $p_n(x)$ , where $n$ is independent of hidden dimension, which guarantees sublinear regret? + +# 3.1 Using the Chebyshev Polynomial over the Complex Plane + +For the real line, the answer to this question is known to be positive using the Chebyshev polynomials of the first kind. In general, the $n^{\mathrm{th}}$ (monic) Chebyshev polynomial $M_{n}(x)$ satisfies $\max_{x\in [-1,1]}|M_n(x)|\leq 2^{-(n - 1)}$ . However, we are interested in a more general question over the complex plane. Since we care about linear dynamical systems that evolve according to a general asymmetric matrix, we need to extending our analysis to $\mathbb{C}_{\beta}$ . This is a nontrivial extension since, in general, functions that are bounded on the real line can grow exponentially on the complex plane. Indeed, $2^{n - 1}M_n(x) = \cos (n\arccos (x))$ and while $\cos (x)$ is bounded within $[-1,1]$ for any $x\in \mathcal{R}$ , over the complex numbers we have $\cos (z) = \frac{1}{2} (e^{iz} + e^{-iz})$ , which is unbounded. Thus, we analyze the Chebyshev polynomial on the complex plane and provide the following bound. + +Lemma 3.1. Let $z \in \mathbb{C}$ be some complex number with magnitude $|\alpha| \leq 1$ . Let $M_{n}(\cdot)$ denote the $n$ -th monic Chebyshev polynomial. If $|\arg(z)| \leq 1/64n^{2}$ , then $|M_{n}(z)| \leq 1/2^{n-2}$ . + +We provide the proof in Appendix F. We also must analyze the magnitude of the coefficients of the Chebyshev polynomial, which can grow exponentially with $n$ . We provide the following result. + +Lemma 3.2. Let $M_{n}(\cdot)$ have coefficients $c_0,\ldots ,c_n$ . Then $\max_{k = 0,\dots,n}|c_k|\leq 2^{0.3n}$ + +The proof of Lemma 3.2 is in Appendix F. Together, these two lemmas are the fundamental building block for universal sequence preconditioning and for obtaining our new regret bounds. + +# 4 Experimental Evaluation + +We empirically validate that convolutional preconditioning with Chebyshev or Legendre coefficients yields significant online regret improvements across various learning algorithms and data types. Below we summarize our data generation, algorithm variants, hyperparameter tuning, and evaluation metrics. + +# 4.1 Synthetic Data Generation + +We generate $N = 200$ sequences of length $T = 2000$ via three mechanisms: (i) a noisy linear dynamical system, (ii) a noisy nonlinear dynamical system, and (iii) a noisy deep RNN. Inputs $\mathbf{u}_{1:T} \sim \mathcal{N}(0,I)$ . + +Linear Dynamical System. Sample $(\mathbf{A},\mathbf{B},\mathbf{C})$ with $\mathbf{A}\in \mathcal{R}^{300\times 300}$ having eigenvalues $\{z_j\}$ drawn uniformly in the complex plane subject to $\mathrm{Im}(z_j)\leq \tau_{\mathrm{thresh}}$ and $L\leq |z_j|\leq U$ , and $\mathbf{B},\mathbf{C}\in \mathcal{R}^{300}$ . Then + +$$ +\mathbf {x} _ {t} = \mathbf {A} \mathbf {x} _ {t - 1} + \mathbf {B} \mathbf {u} _ {t}, \quad \mathbf {y} _ {t} = \mathbf {C} \mathbf {x} _ {t} + \epsilon_ {t}, \epsilon_ {t} \sim \mathcal {N} (0, \sigma^ {2} I). +$$ + +Nonlinear Dynamical System. Similarly sample $(\mathbf{A}_1, \mathbf{B}_1, \mathbf{C})$ and $(\mathbf{A}_2, \mathbf{B}_2)$ with $\mathbf{A}_i \in \mathcal{R}^{10 \times 10}$ , $\mathbf{B}_i, \mathbf{C} \in \mathcal{R}^{10}$ . Then + +$$ +\mathbf {x} _ {t} ^ {(0)} = \mathbf {A} _ {1} \mathbf {x} _ {t - 1} + \mathbf {B} _ {1} \mathbf {u} _ {t}, \mathbf {x} _ {t} ^ {(1)} = \sigma (\mathbf {x} _ {t} ^ {(0)}), \mathbf {x} _ {t} = A _ {2} \mathbf {x} _ {t} ^ {(1)} + B _ {2} \mathbf {u} _ {t}, \mathbf {y} _ {t} = \mathbf {C} \mathbf {x} _ {t} + \epsilon_ {t}. +$$ + +Deep RNN. We randomly initialize a sparse 10-layer stack of LSTMs with hidden dimension 100 and ReLU nonlinear activations. Given $\mathbf{u}_{1:T}$ we use this network to generate $\mathbf{y}_{1:T}$ . + +# 4.2 Algorithms and Preconditioning Variants + +We evaluate the following methods: (1) Regression (Alg.2), (2) Spectral Filtering (Alg.3), (3) DNN Predictor: $n$ -layer LSTM with dims $[d_1, \ldots, d_n]$ , ReLU. + +Each method is applied with one of: + +1. Baseline: no preconditioning +2. Chebyshev: $\mathbf{c}_{0:n}$ are the coefficients for the $n$ th-Chebyshev polynomial. Note that when $n = 2$ we have $\mathbf{c}_0 = 1$ and $\mathbf{c}_1 = -1$ and therefore this is the method of differencing discussed in the introduction. + +3. Legendre: $\mathbf{c}_{0:n}$ are the coefficients for the $n$ th-Legendre polynomial +4. Learned: $\mathbf{c}_{0:n}$ is a parameter learned jointly with the model parameters + +We test polynomial degrees $n \in \{2, 5, 10, 20\}$ . This choice of degrees shows a rough picture of the impact of $n$ . + +Hyperparameter Tuning. To ensure fair comparison, for each algorithm and conditioning c variant we perform a grid search over learning rates $\eta \in \{10^{-3}, 10^{-2}, 10^{-1}\}$ , selecting the one minimizing average regret across the $N$ sequences. In the case of the learned coefficients, we sweep over the 9 pairs of learning rates ( $\eta_{\mathrm{model}}, \eta_{\mathrm{coefficients}}) \in \{10^{-3}, 10^{-2}, 10^{-1}\} \times \{10^{-3}, 10^{-2}, 10^{-1}\}$ . + +# 4.3 Results + +Tables 2-4 report the mean ± std of the absolute error over the final 200 predictions, averaged across 200 runs. In the linear and nonlinear cases we train a 2-layer DNN (dims (64, 128)); for RNN-generated data we match the 10-layer (100-dim) generator. + +# Key observations: + +- Preconditioning drastically reduces baseline errors for all algorithms and data types. +- Chebyshev and Legendre yield nearly identical gains. +- For Chebyshev and Legendre, once the degree is higher than $5 - 10$ the performance degrades since $\| \mathbf{c}\| _1$ gets very large (see our Lemma 3.2 which shows that these coefficients grow exponentially fast). +- Improvements decay as the complex threshold $\tau_{\mathrm{thresh}}$ increases, consistent with our theoretical results which must bound $\operatorname{Im}(z_j)$ . +- Learned coefficients excel with regression and spectral filtering but destabilize the DNN on nonlinear and RNN-generated data. + +
SettingBaselineChebyshevLegendreLearned
Deg. 2Deg. 5Deg. 10Deg. 2Deg. 5Deg. 10Deg. 2Deg. 5Deg. 10Deg. 20
Regression
\( \tau_{thresh} = 0.01 \)\( \mathbf{0.74\pm 0.28} \)\( 0.25\pm 0.09 \)\( \mathbf{0.15}\pm \mathbf{0.07} \)\( 0.77\pm 0.31 \)\( 0.36\pm 0.13 \)\( \mathbf{0.14}\pm \mathbf{0.06} \)\( 0.64\pm 0.26 \)\( 0.52\pm 0.19 \)\( 0.27\pm 0.11 \)\( \mathbf{0.17}\pm \mathbf{0.07} \)\( 0.24\pm 0.09 \)
\( \tau_{thresh} = 0.1 \)\( 1.92\pm 0.81 \)\( 0.84\pm 0.27 \)\( \mathbf{0.66}\pm \mathbf{0.18} \)\( 1.90\pm 0.67 \)\( 1.10\pm 0.40 \)\( \mathbf{0.63}\pm \mathbf{0.17} \)\( 1.66\pm 0.58 \)\( 1.34\pm 0.43 \)\( 0.57\pm 0.14 \)\( \mathbf{0.55}\pm \mathbf{0.14} \)\( 0.56\pm 0.14s \)
\( \tau_{thresh} = 0.9 \)\( 2.47\pm 0.89 \)\( 1.59\pm 0.56 \)\( 2.18\pm 0.79 \)\( 2.68\pm 0.48 \)\( 1.64\pm 0.58 \)\( 1.94\pm 0.70 \)\( 2.63\pm 0.45 \)\( 1.73\pm 0.59 \)\( 0.83\pm 0.25 \)\( 0.68\pm 0.27 \)\( \mathbf{0.63}\pm \mathbf{0.26} \)
Spectral Filtering
\( \tau_{thresh} = 0.01 \)\( 5.94\pm 3.37 \)\( 1.72\pm 0.95 \)\( \mathbf{0.69}\pm \mathbf{0.38} \)\( 3.25\pm 1.79 \)\( 2.78\pm 1.56 \)\( \mathbf{0.66}\pm \mathbf{0.36} \)\( 2.74\pm 1.51 \)\( 1.99\pm 0.94 \)\( \mathbf{0.54}\pm \mathbf{0.29} \)\( 0.55\pm 0.25 \)\( 0.61\pm 0.25 \)
\( \tau_{thresh} = 0.1 \)\( \mathbf{0.89}\pm \mathbf{0.34} \)\( 0.42\pm 0.11 \)\( \mathbf{0.34}\pm \mathbf{0.07} \)\( 0.86\pm 0.28 \)\( 0.54\pm 0.17 \)\( \mathbf{0.33}\pm \mathbf{0.07} \)\( 0.76\pm 0.24 \)\( 0.69\pm 0.28 \)\( \mathbf{0.31}\pm \mathbf{0.06} \)\( 0.37\pm 0.08 \)\( 0.45\pm 0.28 \)
\( \tau_{thresh} = 0.9 \)\( 10.17\pm 8.80 \)\( 9.87\pm 8.90 \)\( 12.66\pm 8.18 \)\( 32.90\pm 22.02 \)\( 9.42\pm 8.39 \)\( 11.53\pm 7.46 \)\( 28.83\pm 19.24 \)\( 7.93\pm 4.42 \)\( 6.31\pm 4.19 \)\( 5.73\pm 3.80 \)\( 5.86\pm 4.02 \)
2-layer DNN
\( \tau_{thresh} = 0.01 \)\( 4.49\pm 2.02 \)\( 2.31\pm 1.18 \)\( 2.62\pm 1.52 \)\( 10.36\pm 6.05 \)\( 2.79\pm 1.34 \)\( 2.35\pm 1.35 \)\( 8.92\pm 5.20 \)\( 2.89\pm 1.24 \)\( 1.56\pm 0.64 \)\( 0.79\pm 0.25 \)\( \mathbf{0.40}\pm \mathbf{0.16} \)
\( \tau_{thresh} = 0.1 \)\( 9.41\pm 7.34 \)\( 2.66\pm 1.76 \)\( 1.52\pm 0.72 \)\( 4.65\pm 3.03 \)\( 4.24\pm 3.06 \)\( 1.44\pm 0.71 \)\( 4.03\pm 2.64 \)\( 6.54\pm 4.32 \)\( 3.22\pm 1.93 \)\( 1.59\pm 0.95 \)\( \mathbf{0.80}\pm \mathbf{0.48} \)
\( \tau_{thresh} = 0.9 \)\( 2.45\pm 1.31 \)\( 2.24\pm 1.34 \)\( 3.49\pm 2.27 \)\( 11.48\pm 8.15 \)\( 2.17\pm 1.25 \)\( 3.10\pm 2.00 \)\( 9.97\pm 7.05 \)\( 1.29\pm 0.66 \)\( 0.71\pm 0.34 \)\( 0.43\pm 0.18 \)\( \mathbf{0.24}\pm \mathbf{0.11} \)
+ +Table 2: Linear dynamical system data (detailed in Sec. 4.1) across varying complex threshold ${\tau }_{\text{thres }}$ . + +
SettingBaselineChebyshevLegendreLearned
Deg. 2Deg. 5Deg. 10Deg. 2Deg. 5Deg. 10Deg. 2Deg. 5Deg. 10Deg. 20
Spectral Filtering
\( \tau_{thresh} = 0.01 \)\( 153.8 \pm 15.7 \)\( 43.7 \pm 19.4 \)\( 0.92 \pm 0.31 \)\( \mathbf{0.26} \pm \mathbf{0.15} \)\( 78.4 \pm 34.7 \)\( 2.82 \pm 1.17 \)\( \mathbf{0.34} \pm \mathbf{0.19} \)\( 1.04 \pm 0.29 \)\( 0.07 \pm 0.03 \)\( \mathbf{0.05} \pm \mathbf{0.03} \)\( 0.07 \pm 0.03 \)
\( \tau_{thresh} = 0.01 \)\( 124.1 \pm 68.4 \)\( 33.4 \pm 17.3 \)\( 2.02 \pm 1.23 \)\( \mathbf{0.36} \pm \mathbf{0.31} \)\( 56.7 \pm 30.5 \)\( 3.81 \pm 1.67 \)\( \mathbf{0.35} \pm \mathbf{0.26} \)\( 2.85 \pm 1.13 \)\( 0.04 \pm 0.01 \)\( \mathbf{0.02} \pm \mathbf{0.01} \)\( 0.07 \pm 0.02 \)
\( \tau_{thresh} = 0.9 \)\( 165.5 \pm 84.5 \)\( 43.41 \pm 16.39 \)\( 1.27 \pm 0.37 \)\( 1.90 \pm 0.80 \)\( 76.9 \pm 29.1 \)\( 3.32 \pm 1.09 \)\( \mathbf{1.64} \pm \mathbf{0.69} \)\( 1.79 \pm 0.61 \)\( \mathbf{0.10} \pm \mathbf{0.04} \)\( 0.12 \pm 0.05 \)\( 0.17 \pm 0.07 \)
2-layer DNN
\( \tau_{thresh} = 0.01 \)\( 10.46 \pm 5.10 \)\( 3.45 \pm 1.19 \)\( \mathbf{0.19} \pm \mathbf{0.16} \)\( 0.43 \pm 0.22 \)\( 3.55 \pm 1.56 \)\( \mathbf{0.18} \pm \mathbf{0.14} \)\( 0.37 \pm 0.19 \)\( 45.40 \pm 11.35 \)\( 25.34 \pm 9.06 \)\( 12.73 \pm 4.60 \)\( \mathbf{6.43} \pm 2.32 \)
\( \tau_{thresh} = 0.1 \)\( 4.20 \pm 1.10 \)\( 3.38 \pm 0.79 \)\( \mathbf{0.14} \pm \mathbf{0.05} \)\( 0.41 \pm 0.16 \)\( 3.42 \pm 0.79 \)\( \mathbf{0.25} \pm \mathbf{0.14} \)\( 0.36 \pm 0.13 \)\( 67.70 \pm 28.40 \)\( 31.99 \pm 11.78 \)\( 15.95 \pm 5.87 \)\( \mathbf{8.01} \pm 2.95 \)
\( \tau_{thresh} = 0.9 \)\( 6.72 \pm 2.35 \)\( 2.45 \pm 1.12 \)\( \mathbf{0.08} \pm \mathbf{0.03} \)\( 0.28 \pm 0.15 \)\( 3.35 \pm 0.98 \)\( \mathbf{0.20} \pm \mathbf{0.07} \)\( 0.24 \pm 0.13 \)\( 58.65 \pm 17.09 \)\( 28.74 \pm 8.07 \)\( 14.39 \pm 4.06 \)\( \mathbf{7.26} \pm 2.05 \)
+ +Table 3: Nonlinear data (detailed in Sec. 4.1) across varying complex threshold ${\tau }_{\text{thres }}$ . + +
SettingBaselineChebyshevLegendreLearned
Deg. 2Deg. 5Deg. 10Deg. 2Deg. 5Deg. 10Deg. 2Deg. 5Deg. 10Deg. 20
10-layer DNN0.54 ± 0.230.29 ± 0.100.08± 0.030.13 ± 0.050.37 ± 0.140.09± 0.030.12± 0.041.49± 0.932.13± 1.051.04± 0.510.5 ± 0.24
+ +Table 4: Performance (average absolute error of the last 200 predictions) of a 10-layer DNN (detailed in Sec. 4.2) on data generated from the same model (detailed in Sec. 4.1). + +# 4.4 ETTh1 Dataset + +To evaluate whether our proposed preconditioning approach generalizes to real-world time series, we conduct experiments on the well-established ETTh1 dataset from the Electricity Transformer Temperature (ETT) benchmark [41]. The ETTh1 dataset consists of continuous hourly measurements of load and oil temperature collected from electricity transformers and has been used in several recent works [41, 39, 35, 24, 25, 40, 34]. + +We study the effect of preconditioning on a 10-layer LSTM with hidden dimension 100 per layer using the Adam optimizer. We set the horizon to be $T = 5000$ and we sweep over a broader range of learning rates $\eta \in \{10^{-j}\}_{j=0,1,2,3,4,5}$ . As before we consider (i) no preconditioning (baseline), (ii) fixed Chebyshev coefficients, (iii) fixed Legendre coefficients, and (iv) coefficients learned jointly with model parameters. + +As seen in Figure II preconditioning with Chebyshev and Legendre for degree 5 the best performance after only the first 1000 iterations, while the performance of jointly learning the coefficients is worse at this stage. The performance of all three preconditioning methods are roughly on par with each other by 2500 iterations and by the full horizon $T = 5000$ , jointly learning the coefficients results in the best average prediction error. + +![](images/0aa454864196524bcd80bca048bd6366ad89540775b59dcfb041d052f8c2b722.jpg) +(a) Early Stage: $T = 1000$ + +![](images/f028cc84acaa98f8d1be9bcf4c84b2ba5caee3fcb2d845724dab5202bfa1a6f1.jpg) +(b) Middle Stage: $T = 2500$ +Figure 1: Absolute prediction error on final 200 predictions averaged over 10 independent runs for 10-layer LSTM with layer dimension 100 using Adam optimizer and sweeping over learning rates for each run. + +![](images/d5d9028125fb3aa40a5568e1aa5d62754cda34cad804701da4070e81af0f8d23.jpg) +(c) Final Stage: $T = 5000$ + +# 5 Discussion + +There are many settings in machine learning where universal, rather than learned, rules have proven very efficient. For example, physical laws of motion can be learned directly from observation data. However, Newton's laws of motion succinctly crystallize very general phenomenon, and have proven very useful for large scale physics simulation engines. Similarly, in the theory of mathematical optimization, adaptive gradient methods have revolutionized deep learning. Their derivation as a consequence of regularization in online regret minimization is particularly simple [21], and thousands of research papers have not dramatically improved the initial basic ideas. These optimizers are, at the very least, a great way to initialize learned optimizers [38]. + +By analogy, our thesis in this paper is that universal preconditioning based on the solid theory of dynamical systems can be applicable to many domains or, at the very least, an initialization for other learning methods. + +# NeurIPS Paper Checklist + +# 1. Claims + +Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope? + +Answer: [Yes] + +Justification: We claim a rigorous new method for sequence preconditioning that improves upon the classical differencing method in theory and practice. + +# 2. Limitations + +Question: Does the paper discuss the limitations of the work performed by the authors? + +Answer: [Yes] + +Justification: Throughout we demonstrate understanding of the limitations of our approach, such as restricting our results to linear dynamical systems with bounded imaginary part of the transition matrix. + +# 3. Theory assumptions and proofs + +Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof? + +Answer: [Yes] + +Justification: Our main theoretical results are Theorems 2.1 and 2.2 in which the assumptions made are stated. We give only proof overview in main paper, but complete one in appendix. + +# 4. Experimental result reproducibility + +Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)? + +Answer: [Yes] + +Justification: Yes, we describe our algorithms completely in 2 and 3. Our code repository will also be open sourced. + +# 5. Open access to data and code + +Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material? + +Answer: [Yes] + +Justification: A link to the code will be provided in the final version. However, we omit the GitHub repository with all of our code at the moment in order not to violate the double blind policy and keep the paper anonymous. + +# 6. Experimental setting/details + +Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the results? + +Answer: [Yes] + +Justification: Experiment details are expansively explained in section 4 and the appendix. + +# 7. Experiment statistical significance + +Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments? + +Answer: [Yes] + +Justification: all our graphs include error bars and statistical significance. + +# 8. Experiments compute resources + +Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments? + +Answer: [Yes] + +Justification: + +# 9. Code of ethics + +Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines? + +Answer: [Yes] + +Justification: The paper conforms simply in every respect with the NeurIPS Code of Ethics as explained. + +# 10. Broader impacts + +Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed? + +Answer: [NA] + +Justification: [NA] + +# 11. Safeguards + +Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pretrained language models, image generators, or scraped datasets)? + +Answer: [NA] + +Justification: [NA] + +# 12. Licenses for existing assets + +Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected? + +Answer: [Yes] + +Justification: All previous work is fully credited and cited throughout. + +# 13. New assets + +Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets? + +Answer: [Yes] + +Justification: Our new assets are well documented and the documentation is provided. + +# 14. Crowdsourcing and research with human subjects + +Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)? + +Answer: [NA] + +Justification: [NA] + +# 15. Institutional review board (IRB) approvals or equivalent for research with human subjects + +Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained? + +Answer: [NA] + +Justification: [NA] + +# 16. Declaration of LLM usage + +Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigorousness, or originality of the research, declaration is not required. + +Answer: [NA] + +Justification: [NA] + +# References + +[1] Yasin Abbasi-Yadkori, Peter Bartlett, and Varun Kanade. Tracking adversarial targets. In International Conference on Machine Learning, pages 369-377. PMLR, 2014. +[2] Yasin Abbasi-Yadkori and Csaba Szepesvári. Regret bounds for the adaptive control of linear quadratic systems. In Proceedings of the 24th Annual Conference on Learning Theory, pages 1-26, 2011. +[3] Milton Abramowitz and Irene A Stegun. Handbook of mathematical functions with formulas, graphs, and mathematical tables, volume 55. US Government printing office, 1948. +[4] Naman Agarwal, Brian Bullins, Elad Hazan, Sham Kakade, and Karan Singh. Online control with adversarial disturbances. In International Conference on Machine Learning, pages 111-119. PMLR, 2019. +[5] Naman Agarwal, Xinyi Chen, Evan Dogariu, Vlad Feinberg, Daniel Suo, Peter Bartlett, and Elad Hazan. Futurefill: Fast generation from convolutional sequence models. arXiv preprint arXiv:2410.03766, 2024. +[6] Naman Agarwal, Elad Hazan, and Karan Singh. Logarithmic regret for online control. In Advances in Neural Information Processing Systems, pages 10175-10184, 2019. +[7] Naman Agarwal, Daniel Suo, Xinyi Chen, and Elad Hazan. Spectral state space models. arXiv preprint arXiv:2312.06837, 2023. +[8] Lars Valerian Ahlfors and Lars V Ahlfors. Complex analysis, volume 3. McGraw-Hill New York, 1979. +[9] Oren Anava, Elad Hazan, and Shie Mannor. Online learning for adversaries with memory: price of past mistakes. Advances in Neural Information Processing Systems, 28, 2015. +[10] Oren Anava, Elad Hazan, Shie Mannor, and Ohad Shamir. Online learning for time series prediction. In Conference on learning theory, pages 172-184. PMLR, 2013. +[11] Ainesh Bakshi, Allen Liu, Ankur Moitra, and Morris Yau. A new approach to learning linear dynamical systems. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 335-348, 2023. +[12] Bernhard Beckermann and Alex Townsend. On the singular values of matrices with displacement structure. SIAM Journal on Matrix Analysis and Applications, 38(4):1227-1248, 2017. +[13] Dimitri P Bertsekas. Dynamic Programming and Optimal Control. Athena Scientific, 2007. +[14] George EP Box and Gwilym M Jenkins. Time series analysis. forecasting and control. Holden-Day Series in Time Series Analysis, 1976. +[15] Nicolo Cesa-Bianchi and Gábor Lugosi. Prediction, learning, and games. Cambridge university press, 2006. +[16] Xinyi Chen and Elad Hazan. Black-box control for linear dynamical systems. In Conference on Learning Theory, pages 1114-1143. PMLR, 2021. +[17] Alon Cohen, Avinatan Hasidim, Tomer Koren, Nevena Lazic, Yishay Mansour, and Kunal Talwar. Online linear quadratic control. In International Conference on Machine Learning, pages 1029–1038, 2018. +[18] Alon Cohen, Tomer Koren, and Yishay Mansour. Learning linear-quadratic regulators efficiently with only $\sqrt{T}$ regret. In International Conference on Machine Learning, pages 1300-1309, 2019. +[19] Sarah Dean, Horia Mania, Nikolai Matni, Benjamin Recht, and Stephen Tu. Regret bounds for robust adaptive control of the linear quadratic regulator. In Advances in Neural Information Processing Systems, pages 4188-4197, 2018. + +[20] E. B. Dimitrov and N. Nikolov. Sharp bounds for the extreme zeros of classical orthogonal polynomials. Journal of Approximation Theory, 162(10):1793-1804, 2010. +[21] John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of machine learning research, 12(7), 2011. +[22] Maryam Fazel, Rong Ge, Sham Kakade, and Mehran Mesbahi. Global convergence of policy gradient methods for the linear quadratic regulator. In International Conference on Machine Learning, pages 1467-1476, 2018. +[23] Udaya Ghai, Holden Lee, Karan Singh, Cyril Zhang, and Yi Zhang. No-regret prediction in marginally stable systems. In Conference on Learning Theory, pages 1714-1757. PMLR, 2020. +[24] Albert Gu, Karan Goel, and Christopher Re. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations, 2022. +[25] Rohit Gupta and et al. Simplifying long-range modeling with structured state space models. arXiv preprint arXiv:2208.04933, 2022. +[26] Elad Hazan. Introduction to online convex optimization. Foundations and Trends® in Optimization, 2(3-4):157-325, 2016. +[27] Elad Hazan, Holden Lee, Karan Singh, Cyril Zhang, and Yi Zhang. Spectral filtering for general linear dynamical systems. In Advances in Neural Information Processing Systems, pages 1680-1689, 2018. +[28] Elad Hazan and Karan Singh. Introduction to online nonstochastic control. arXiv preprint arXiv:2211.09619, 2022. +[29] Elad Hazan, Karan Singh, and Cyril Zhang. Learning linear dynamical systems via spectral filtering. In Advances in Neural Information Processing Systems, pages 6702-6712, 2017. +[30] Rudolph Emil Kalman. A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82.1:35-45, 1960. +[31] CJ Knight and ACR Newbery. Trigonometric and gaussian quadrature. MATHEMATICS of computation, pages 575-581, 1970. +[32] Mark Kozdoba, Jakub Marecek, Tigran Tchrakian, and Shie Mannor. On-line learning of linear dynamical systems: Exponential forgetting in kalman filters. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 4098-4105, 2019. +[33] Horia Mania, Stephen Tu, and Benjamin Recht. Certainty equivalence is efficient for linear quadratic control. In Advances in Neural Information Processing Systems, pages 10154-10164, 2019. +[34] An Nguyen, Yifan Chen, and Jian Li. Preconditioning state-space models for stable long-horizon forecasting. arXiv preprint arXiv:2403.07890, 2024. +[35] Yixuan Nie, Nina Narodytska, and Ankit Patel. A time series is worth 64 words: Long-term forecasting with transformers. arXiv preprint arXiv:2209.13466, 2022. +[36] Max Simchowitz, Karan Singh, and Elad Hazan. Improper learning for non-stochastic control. In Conference on Learning Theory, pages 3320-3436. PMLR, 2020. +[37] Josef Stoer, Roland Bulirsch, R Bartels, Walter Gautschi, and Christoph Witzgall. Introduction to numerical analysis, volume 1993. Springer, 1980. +[38] Olga Wichrowska, Niru Maheswaranathan, Matthew W Hoffman, Sergio Gomez Colmenarejo, Misha Denil, Nando Freitas, and Jascha Sohl-Dickstein. Learned optimizers that scale and generalize. In International conference on machine learning, pages 3751-3760. PMLR, 2017. +[39] Haixu Wu, Jianmin Xu, Jie Wang, and Mingsheng Long. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting. In Advances in Neural Information Processing Systems, 2021. + +[40] Ailing Zeng, Muxi Chen, Lei Zhang, and Qiang Xu. Are transformers effective for time series forecasting? In AAAI Conference on Artificial Intelligence, 2023. +[41] Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hongyun Xiong, Wancai Zhang, and Yan Li. Informer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings of the AAAI Conference on Artificial Intelligence, 2021. +[42] Kemin Zhou, John C. Doyle, and Keith Glover. Robust and Optimal Control. Prentice-Hall, Inc., USA, 1996. \ No newline at end of file diff --git a/NeurIPS/2025/Universal Sequence Preconditioning/images.zip b/NeurIPS/2025/Universal Sequence Preconditioning/images.zip new file mode 100644 index 0000000000000000000000000000000000000000..3060bf4f356e06f5ea679dd2904aa619f1f27a3b --- /dev/null +++ b/NeurIPS/2025/Universal Sequence Preconditioning/images.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:175cb14b948ec4e92f0665b29e3205ad9658e9d0fc54de9940b1ebd685d62f74 +size 354113 diff --git a/NeurIPS/2025/Universal Sequence Preconditioning/layout.json b/NeurIPS/2025/Universal Sequence Preconditioning/layout.json new file mode 100644 index 0000000000000000000000000000000000000000..547f8a4cec607bb03354ae363b80a19105a3b510 --- /dev/null +++ b/NeurIPS/2025/Universal Sequence Preconditioning/layout.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b99920c29768db00fe0488d5f1e7b611002d7d578e2e9b9e38da677b718ca634 +size 677490 diff --git a/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/e5a4d754-3fd4-4c52-a736-6858db5247a3_content_list.json b/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/e5a4d754-3fd4-4c52-a736-6858db5247a3_content_list.json new file mode 100644 index 0000000000000000000000000000000000000000..bbb3648390653fe437e0eeeef4080d037940aca5 --- /dev/null +++ b/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/e5a4d754-3fd4-4c52-a736-6858db5247a3_content_list.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:303e2a138de3ab25233625b6b7811d459eaeaefb62c6ef57c822073c16e72864 +size 182521 diff --git a/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/e5a4d754-3fd4-4c52-a736-6858db5247a3_model.json b/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/e5a4d754-3fd4-4c52-a736-6858db5247a3_model.json new file mode 100644 index 0000000000000000000000000000000000000000..011e50f8554cb0c645fc54aeae5cf7915045932a --- /dev/null +++ b/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/e5a4d754-3fd4-4c52-a736-6858db5247a3_model.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1977f344da313fed6e789754e4e644d32a89b9a117265117b25e2fcd4e318973 +size 234479 diff --git a/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/e5a4d754-3fd4-4c52-a736-6858db5247a3_origin.pdf b/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/e5a4d754-3fd4-4c52-a736-6858db5247a3_origin.pdf new file mode 100644 index 0000000000000000000000000000000000000000..25013c001db486d6d21774318a0bb2f813a53f79 --- /dev/null +++ b/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/e5a4d754-3fd4-4c52-a736-6858db5247a3_origin.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:390be133e9c555cb90e9fbb8f8ac8e14e4d9fd836030239b7a4a972d5035373b +size 2604824 diff --git a/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/full.md b/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/full.md new file mode 100644 index 0000000000000000000000000000000000000000..86180adf89b8ff34fb57c5146b3262511e959a22 --- /dev/null +++ b/NeurIPS/2025/Universal Video Temporal Grounding with Generative Multi-modal Large Language Models/full.md @@ -0,0 +1,864 @@ +# Universal Video Temporal Grounding with Generative Multi-modal Large Language Models + +Zeqian Li $^{1}$ , Shangzhe Di $^{1,2}$ , Zhonghua Zhai $^{2}$ , Weilin Huang $^{2}$ , Yanfeng Wang $^{1}$ , Weidi Xie $^{1}$ + +$^{1}$ SAI, Shanghai Jiao Tong University $^{2}$ ByteDance Seed + +https://lzq5.github.io/UniTime + +# Abstract + +This paper presents a computational model for universal video temporal grounding, which accurately localizes temporal moments in videos based on natural language queries (e.g., questions or descriptions). Unlike existing methods that are often limited to specific video domains or durations, we propose UniTime, a robust and universal video grounding model leveraging the strong vision-language understanding capabilities of generative Multi-modal Large Language Models (MLLMs). Our model effectively handles videos of diverse views, genres, and lengths while comprehending complex language queries. The key contributions include: (i) We consider steering strong MLLMs for temporal grounding in videos. To enable precise timestamp outputs, we incorporate temporal information by interleaving timestamp tokens with video tokens. (ii) By training the model to handle videos with different input granularities through adaptive frame scaling, our approach achieves robust temporal grounding for both short and long videos. (iii) Comprehensive experiments show that UniTime outperforms state-of-the-art approaches in both zero-shot and dataset-specific finetuned settings across five public temporal grounding benchmarks. (iv) When employed as a preliminary moment retriever for long-form video question-answering (VideoQA), UniTime significantly improves VideoQA accuracy, highlighting its value for complex video understanding tasks. + +# 1 Introduction + +Understanding long videos presents fundamental challenges due to complex temporal dependencies and varying information granularity. Recent approaches [30, 42] typically adopt a two-stage framework: first localizing relevant temporal segments, then reasoning over the retrieved content. This retrieval-then-reasoning paradigm offers a structured and interpretable framework for tackling intricate video understanding tasks. + +However, existing grounding models perform unsatisfactorily, often struggling to generalize across diverse video domains [50]. In this context, we advocate for developing a universal temporal grounding model, that is capable of accommodating videos across a wide range of viewpoints (egocentric and exocentric perspectives), topics (from cooking and daily activities to sports, movies, and games), and durations (from brief clips to multi-hour videos). Such universality is crucial for real-world deployment, where video data is inherently heterogeneous and user queries are highly diverse. + +Research on temporal grounding falls into two paradigms. The first includes discriminative or dual-encoder-based approaches [4, 24], which typically rely on dataset-specific fine-tuning and lightweight architectures, such as DETR-like frameworks. While computationally efficient, these models often struggle to generalize to unseen content due to limited language encoding capabilities, hindering the understanding of complex or user-driven queries, and constrained visual representations. In + +![](images/8f10681187be3c88cb2991d179643ec2dd4d9a2fbea82287ac33a61a129952e1.jpg) +Figure 1: The UniTime framework empowers MLLMs with advanced universal temporal grounding capabilities. (a) UniTime can handle diverse videos with various views, genres, and durations, as well as comprehend complex language queries. (b) UniTime achieves universal temporal grounding through a coarse-to-fine approach. (c) Performance comparison on temporal grounding and video question answering benchmarks demonstrates the superior capabilities of UniTime. + +![](images/5fa04b9a1116bf98a1ccdef67422671a817b75636efa76ec2996a26d682ba02f.jpg) + +contrast, recent work leverages Multi-modal Large Language Models (MLLMs) [34, 62], which excel at language understanding and demonstrate promising results on video temporal grounding. However, their applicability to long videos is hindered by short context windows and high memory demands, making them impractical for processing video inputs spanning tens of thousands of tokens. + +In this paper, we further explore the potential of MLLMs towards universal temporal grounding in videos. Our proposed model, termed as UniTime, encodes temporal information by interleaving timestamp tokens with video tokens, enabling precise boundary generation for natural language queries. To handle videos of varying lengths, we introduce an adaptive frame scaling mechanism that adjusts temporal and spatial granularity based on video duration. Specifically, for long videos, the model can be adopted for multi-stage inference-time computation: initial coarse-grained sampling enables segment-level grounding, followed by fine-grained sampling within candidate regions to refine boundaries. This iterative process progressively improves grounding precision. To improve training efficiency, we adopt a video-centric training paradigm that concatenates multiple queries and their corresponding segments per video, allowing the model to process them in a single pass. This minimizes the computational overhead of autoregressive decoding over repeated video tokens. + +To rigorously evaluate efficacy, we pre-train UniTime on diverse, high-quality temporally grounded video datasets and assess its performance on two key tasks: temporal grounding (in both zero-shot and fine-tuning settings) and downstream video question answering (VideoQA) for long videos. For temporal grounding, we conduct experiments on two long-video and three short-video benchmarks, where our model consistently outperforms existing methods in both straightforward and complex retrieval scenarios. For downstream VideoQA, we evaluate on four widely used long-video benchmarks using a retrieval-augmented protocol: first, our framework localizes the relevant video segment; then, an off-the-shelf VideoQA model answers the query based on the localized segment. Compared to prior approaches, our method demonstrates superior generalization, delivering more accurate and comprehensive video understanding, especially for long videos. + +The remainder of the paper is organized as follows: Section 2 formulates the temporal grounding task and details our proposed method. Section 3 presents ablation studies and comparisons to validate our approach. Section 4 provides an overview of the relevant literature. Overall, our method achieves improved performance on both temporal grounding and long-video VideoQA benchmarks. + +# 2 Methods + +In this section, we introduce UniTime, a novel framework for universal video temporal grounding, adapted from pre-trained Multi-modal Large Language Models (MLLMs). Our approach achieves precise temporal grounding across videos of diverse scenes, genres, and durations, and employs an iterative coarse-to-fine strategy to handle long videos. In the following, Section 2.1 formalizes the + +problem setting. Section 2.2 presents our architecture and its core modules, which support flexible temporal grounding at arbitrary granularities via inference-time computation. Section 2.3 details an efficient training paradigm that equips MLLMs with universal temporal grounding capabilities. + +# 2.1 Problem Formulation + +Given an untrimmed video sequence $\mathcal{V} = \{f_1, \ldots, f_{N_f}\} \in \mathbb{R}^{N_f \times H \times W \times 3}$ sampled at timestamps $\mathcal{T} = \{t_1, \ldots, t_{N_f}\}$ and a free-form text query $\mathcal{Q}$ (either a complex question or a plain description), our task is to identify all temporal moments $\mathcal{Y} = \{(s_1, e_1), \ldots, (s_K, e_K)\}$ that semantically match the query, where each $s_k, e_k \in \mathcal{T}$ denotes a start and end timestamp, respectively: + +$$ +\mathcal {Y} = \Phi_ {\text {U n i T i m e}} (\mathcal {V}, \mathcal {T}, \mathcal {Q}). +$$ + +With this formulation, temporal grounding is achieved by identifying the frames most relevant to the query and retrieving their timestamps. By adjusting the granularity of $\mathcal{T}$ , our design supports multi-scale temporal predictions, enabling efficient coarse-to-fine grounding for long videos through inference-time computation, as shown in Figure 1(b). + +# 2.2 Universal Temporal Grounding Model + +The core innovation of UniTime lies in its capability to perform predictions at multiple temporal granularities for videos of diverse lengths. The model consists of three key components: (i) adaptive frame scaling for constructing multi-granular video inputs, (ii) timestamp-interleaved sequence construction enabling multi-scale temporal window prediction, and (iii) multi-scale prediction for coarse-to-fine temporal grounding during inference, as illustrated in Figure 2. + +Adaptive Frame Scaling. A central challenge in universal temporal grounding is handling videos with highly variable durations, ranging from a few seconds to several hours. Applying fixed temporal and spatial resolutions across such diverse inputs is inefficient and often impractical, especially for MLLMs constrained by limited context windows and GPU memory. + +To address this, we propose an adaptive frame scaling mechanism that dynamically adjusts per-frame token budget $(N_{\mathrm{res}})$ based on video duration, allocating high spatial resolution to short videos and low resolution to long videos. Specifically, given a video $\mathcal{V}$ with constant frame rate $(N_f$ frames in total), each frame is allocated $N_{\mathrm{res}} = \lfloor N_{\mathrm{total}} / N_f\rfloor$ tokens, where $N_{\mathrm{total}}$ is the total token budget. To support varying spatial granularities, we set two thresholds, $N_f^{\mathrm{short}}$ and $N_f^{\mathrm{long}}$ , as the maximum number of frames for short and long videos, respectively. Frames are then processed as: + +$$ +\mathbf {V} _ {i} = \left\{ \begin{array}{l l} \phi_ {\text {p r o j e c t}} \big (\phi_ {\text {v i s i o n}} (\psi_ {\text {r e s i z e}} (f _ {i})) \big) \in \mathbb {R} ^ {N _ {\text {r e s}} \times d}, & N _ {f} < N _ {f} ^ {\text {s h o r t}}. \\ \psi_ {\text {c o m p r e s s}} (\phi_ {\text {p r o j e c t o r}} (\phi_ {\text {v i s i o n}} (f _ {i}))) \in \mathbb {R} ^ {N _ {\text {r e s}} \times d}, & N _ {f} ^ {\text {s h o r t}} \leq N _ {f} < N _ {f} ^ {\text {l o n g}}. \end{array} \right. +$$ + +where $\phi_{\mathrm{vision}}(\cdot)$ is the vision encoder, which supports dynamic input resolutions with a fixed patch size of $P$ , and $\phi_{\mathrm{project}}(\cdot)$ is the projection module. $\psi_{\mathrm{size}}(\cdot)$ denotes the frame resizing function, which adjusts the spatial resolution of each frame so that it can be partitioned into $N_{\mathrm{res}}$ patches of size $P\times P$ pixels. $\psi_{\mathrm{compress}}(\cdot)$ denotes token compression via bilinear interpolation, yielding $N_{\mathrm{res}}$ tokens as the final representation. Unlike frame resizing, which may degrade spatial details, token compression reduces redundancy at the token level while better preserving key semantic information, especially for long videos with low resolutions per frame. When the number of frames exceeds $N_f^{\mathrm{long}}$ , the video is divided into multiple clips of length $N_f^{\mathrm{long}}$ for divide-and-conquer processing. The ablation experiments of token budget, thresholds and the input processing strategy can be found in Appendix E.3 and E.1. + +Discussion. Existing MLLMs typically employ fixed frame sizes and token allocations [33, 68, 25], which limits their ability to encode long videos effectively. To handle such inputs, these models must resort to sparse temporal sampling, resulting in significant loss of detailed visual content. In contrast, our adaptive strategy dynamically employs higher spatial resolutions for short videos and lower ones for longer videos. This allows for efficient and scalable modeling across diverse video lengths, maximizing the utility of the available token budget and model capability. + +Timestamp-Interleaved Sequence Construction. To associate frames with their timestamps, we encode temporal information by interleaving timestamp tokens between visual tokens. For a frame $f_{i}$ + +![](images/ed54d7b42b685d636b8c6a9f06194f288dc98206d31c97382c42c923019c9d3f.jpg) +(a) Coarse-to-Fine Temporal Grounding with Adaptive Frame Scaling + +![](images/d64e5c0b056fdeca6c94e3acaf638666d1a501a4d1fbb616fe7d32cadebde2e7.jpg) +(b) Timestamp-Interleaved Sequence +Figure 2: Overview of the proposed UniTime framework. (a) UniTime achieves universal temporal grounding by leveraging adaptive frame scaling to construct multi-scale video inputs and then generate multi-scale predictions, allowing robust grounding across diverse video durations. (b) Within the model architecture, UniTime constructs an interleaved sequence of timestamps and scaled frame features, which, combined with the language query, is fed into the LLM and then identifies the corresponding temporal interval from the timestamp tokens. + +sampled at timestamp $t_i$ , the timestamp is represented as free text $\tau_i =$ "timestamp: $t_i$ seconds", and inserted before visual tokens of $f_i$ , forming an interleaved sequence: + +$$ +S = \left[ \mathbf {T} _ {1}; \mathbf {V} _ {1}; \mathbf {T} _ {2}; \mathbf {V} _ {2}; \dots ; \mathbf {T} _ {N _ {f}}; \mathbf {V} _ {N _ {f}}; \mathcal {Q} \right], \quad \mathbf {T} _ {i} = \phi_ {\text {t o k e n i z e r}} (\tau_ {i}) \tag {1} +$$ + +where $\phi_{\mathrm{tokenizer}}(\cdot)$ is the tokenizer. This interleaved sequence is input to the large language models (LLMs), which generates temporal boundaries for a given query $Q$ , with the output formatted as $\mathcal{A} = \text{"From } s_k \text{ seconds to } e_k \text{ seconds}"$ . Note that, unlike conventional methods that predict the exact moment in the original video, our model instead predicts the minimal timestamp interval $(s_k, e_k)$ from the sampled timestamps set $\mathcal{T}$ . That is to say, we leverage the retrieval capabilities of MLLMs to read out the inserted timestamp tokens, rather than decoding dense position encodings. For a comparison of these temporal information encoding approaches, refer to the Appendix E.2. + +It is worth noting that direct fine-grained temporal interval prediction on coarse-grained long video inputs is inherently unreliable, as the lack of detailed spatial information often results in ambiguous or inaccurate predictions. This highlights the necessity of adopting predictions at different scales for videos with varying granularities. Our framework addresses this challenge by offering inherent flexibility in timestamp token insertion, making it adaptable to varying granularities. Specifically, timestamp tokens can be interleaved at different scales: before each frame for fine-grained temporal predictions, or before fixed-length segments for coarse-grained temporal reasoning. + +We divide the input video into $N_{s}$ segments $\{\mathbf{S}_j\}_{j = 1}^{N_s}$ , each comprising $\mathbf{L}_s$ frames. Here, for the $j^{th}$ segment, $\mathbf{S}_j = [\mathbf{V}_{s_j};\mathbf{V}_{s_j + 1};\dots ;\mathbf{V}_{s_j + \mathbf{L}_s - 1}]\in \mathbb{R}^{\mathbf{L}_s\times N_{\mathrm{res}}\times d}$ , where $s_j$ is the start index of the segment and we use the corresponding timestamp $t_{s_j}$ at the beginning of each segment to represent its temporal location. Note that we prepend only a single timestamp text token to each segment, thereby providing coarse-grained temporal supervision. We also feed the interleaved timestamps, visual tokens, and the query into the LLM to retrieve the target segment. + +$$ +\mathcal {S} = \left[ \mathbf {T} _ {1}; \mathbf {S} _ {1}; \mathbf {T} _ {2}; \mathbf {S} _ {2}; \dots ; \mathbf {T} _ {N _ {s}}; \mathbf {S} _ {N _ {s}}; \mathcal {Q} \right], \quad \mathbf {T} _ {i} = \phi_ {\text {t o k e n i z e r}} \left(\tau_ {s _ {j}}\right) \tag {2} +$$ + +Discussion. Here, explicitly providing timestamps offers several crucial advantages: (i) Improved temporal grounding. These explicit timestamp tokens help the LLM effectively associate visual content with its corresponding temporal position in the video, allowing it to generalize to temporal grounding tasks. (ii) Alignment-free integration. As the inserted timestamps are textual, they naturally reside in the language space and do not require realignment. In contrast, methods based on learned vectors necessitate additional embedding alignment, thereby complicating the LLM's understanding of temporal information. (iii) Generalisable temporal reasoning. When combined with adaptive frame scaling, explicitly provided timestamp tokens allow the model to directly refer to the temporal cues, potentially enabling extrapolation. For example, as demonstrated in Section 3.7, this design allows the model to be trained on short or medium-length videos (e.g., around 6 minutes), while still generalizing effectively to much longer videos (e.g., 20 minutes) during inference on downstream tasks. (iv) Model-agnostic design. This method is plug-and-play and can be easily incorporated into diverse model architectures with minimal modifications, which is validated in + +Table 1: Statistics of temporal grounding datasets. The datasets in Part I are used exclusively for pre-training, while those in Part II are the training sets of benchmarks. + +
Dataset#Videos#QueriesVideo Len.Moment Len.ViewsDomain
INaQ [46]4.9K1031K413s1.1sEgoOpen
DiDeMo [1]8.4K33.0K29s7.5sExoOpen
QuerYD [38]8195.7K278s13.6sEgo & ExoOpen
HiRest [61]5264.0K263s18.9sEgo & ExoOpen
COIN [53]11.8K46.4K145s14.9sEgo & ExoOpen
Momentor [45]6.7K136.4K403s49.5sEgo & ExoOpen
YouCook2 [72]1.2K9.6K316s19.7sEgo & ExoCooking
IIEgo4D-NLQ [11]1.0K10.0K495s8.2sEgoOpen
TACoS [47]759.8K287s27.9sEgo & ExoCooking
Charades-STA [51]4.8K11.2K31s8.1sExoActivity
QVHighlights [24]7.1K7.2K150s24.6sEgo & ExoVlog/News
ANet-Captions [22]10K37.4K118s36.0sEgo & ExoActivity
+ +Section 3.4, eliminating the need for architecture-specific adjustments such as custom positional encoding schemes [12, 2]. + +Universal Temporal Grounding with Multi-stage Inference. Building on these designs, our framework achieves universal temporal grounding by processing input frames at different spatial resolutions and generating temporal predictions at appropriate granularities, according to video duration. For long videos, we employ a hierarchical, multi-stage inference strategy. Specifically, if a video exceeds $N_{f}^{\mathrm{long}}$ frames, it is partitioned into multiple clips, each of length $N_{f}^{\mathrm{long}}$ . Segment retrieval is first performed within each clip to identify potentially relevant segments. The retrieved segments from all clips are then aggregated and subjected to further segment retrieval, and this process can be repeated recursively if necessary. Finally, fine-grained grounding is conducted within the final selected segments. As evidenced by Section 3.5, this flexible and hierarchical inference process ensures accurate and efficient temporal grounding across diverse video durations. + +# 2.3 Training + +In this section, we first describe the training objective for temporal grounding, followed by a detailed explanation of the hierarchical data construction for multi-granularity training. We then present a video-centric training mechanism to improve training efficiency. + +Training Loss. The model is trained with an auto-regressive objective over mini-batches. For each training sample $(\mathcal{V},\mathcal{T},\mathcal{Q},\mathcal{Y})$ , i.e., the video, timestamps, text query, and target, the prompt sequence $S$ is constructed based on Equation 1 or 2 for short and long videos, respectively. Then, the model minimizes the negative log-likelihood over the target tokens only: + +$$ +\mathcal {L} (\mathcal {S}, \mathcal {Y}) = - \sum_ {i = 1} ^ {N _ {y}} \log P (y _ {t} \mid \mathcal {S}, y _ {< i}; \theta) +$$ + +where $N_{y}$ is the target length. + +Training Data Construction. To support temporal grounding at multiple granularities, we construct training data from videos of varying durations, using full videos for coarse-grained supervision and randomly sampling shorter segments containing ground-truth moments for fine-grained training. All samples are combined for joint training. Since this process naturally yields more short videos than long ones, we balance the data distribution by replicating long video samples with a factor $N_{\mathrm{rep}} > 1$ . + +Video-centric Training. Given a dataset comprising paired videos, text queries, and corresponding moments $(\mathcal{V}^{(k)},\mathcal{Q}^{(k)},\mathcal{M}^{(k)})$ , previous methods typically employ query-centric sampling: first sampling a query, then loading its associated video. This approach is highly inefficient when multiple queries correspond to the same video, as it introduces (i) an I/O bottleneck from repeatedly loading long videos and (ii) redundant computation due to re-encoding identical video content. + +To address this, we employ video-centric sampling, wherein each video $\mathcal{V}^{(k)}$ is sampled first, and all associated query-answer pairs are grouped into a single input sequence. This strategy minimizes + +Table 2: Statistics of benchmarks. The benchmarks encompass three representative tasks - Video Temporal Grounding, Grounded VideoQA, and General VideoQA. The reported statistics are based on the actual numbers of videos and queries used in our experiments. + +
Benchmark#Videos#QueriesVideo Len.Moment Len.ViewsDomain
Ego4D-NLQ [11]4154.6K500s10.7sEgoOpen
TACoS [47]254.0K368s31.9sEgo & ExoCooking
Charades-STA [51]1.3K3.7K29s7.8sExoActivity
QVHighlights [24]1.5K1.5K150s32.2sEgo & ExoVlog/News
ANet-Captions [22]4.9K17.0K118s40.2sEgo & ExoActivity
QaEgo4D [3]148500487s13sEgoOpen
CG-Bench [5]1.2K12K1661.1s19.8sEgo & ExoOpen
MLVU [71]1.1K2.2K755.7s-Ego & ExoOpen
LongVideoBench [57]6181.2K574.9s-Ego & ExoOpen
+ +Table 3: Comparison with SoTA methods on video temporal grounding benchmarks. SP denotes the dataset-specific fine-tuning setting, and Full refers to the universal pre-training setting. Best results are in bold. Improvements of UniTime-Full over SoTA are highlighted in (green). +(a) Long-video temporal grounding benchmarks. + +
MethodEgo4D-NLQTaCoS
R1@.3R1@.5mIoUR1@.3R1@.5mIoU
2D-TAN [66]5.042.023.5345.6135.77-
VSLNet [65]10.846.818.8335.5423.5424.99
RGNet [13]18.2812.0412.41---
SnAG [37]15.8711.26-56.4444.86-
SG-DETR [10]---56.7144.7040.90
LD-DETR [70]---57.6144.3140.30
UniVTG [27]7.283.954.9151.4434.9733.60
UniVTG w/PT11.747.547.8856.1143.4438.63
Qwen2-VL-7B [56]0.480.170.464.141.272.64
Qwen2.5-VL-7B [2]1.110.480.827.663.355.29
UniTime-SP24.7916.8317.2561.1848.3145.02
UniTime-Full27.09 (+8.81)18.41 (+6.37)18.80 (6.39)66.91 (+9.30)55.14 (+10.44)50.00 (+9.10)
+ +(b) Short-video temporal grounding benchmarks. + +
MethodCharades-STAANet-CaptionsQVHighlights
R1@.5R1@.7R1@.5R1@.7R1@.5R1@.7
UnLoc-L [58]60.8038.4048.3030.2066.1046.70
SG-DETR [10]70.2049.50--72.2056.60
LD-DETR [70]62.5841.56--66.8051.04
SnAG [37]64.6246.2648.5530.56--
UniVTG [27]58.0135.65--58.8640.86
UniVTG w/PT60.1938.5542.4121.5565.4350.06
TimeSuite [62]67.1043.00----
Mr.BLIP [34]69.3149.2953.9235.5574.7760.51
Qwen2-VL-7B [56]7.183.283.871.74--
Qwen2.5-VL-7B [2]60.3234.2716.968.75--
UniTime-SP74.3353.7154.8136.6277.7663.29
UniTime-Full75.2756.8553.6735.9076.7262.65
(+5.07)(+7.35)(-0.25)(+0.35)(+1.95)(+2.14)
+ +redundant video loading and computation, significantly accelerating training. To maintain consistency, we modify the attention mask to prevent cross-interaction between different query-answer pairs, and assign each query-answer sequence the same starting position index, directly following the video tokens' indices. For further implementation details, we refer readers to Appendix B.2. + +# 3 Experiments + +# 3.1 Experimental Setups + +Datasets. To support universal temporal grounding, we compile a diverse dataset spanning varied scenes, genres, durations, and query types (e.g., descriptions, questions, procedural instructions), as detailed in Table 1. For evaluation, we benchmark our method across three categories: (i) Short-video temporal grounding, including Charades-STA [51], ActivityNet-Captions [22], and QVHighlights [24]. (ii) Long-video temporal grounding, including Ego4D-NLQ [11] and TaCoS [47]. (iii) Video question answering (VideoQA), including two grounded benchmarks with temporally annotated queries (QaEgo4D [3], CG-Bench [5]) and two general benchmarks (MLVU [71], LongVideoBench [57]). The statistics of evaluation benchmarks we used are listed in Table 2. + +Evaluation Metrics. For temporal grounding tasks, we adopt Recall@1 (R1) at multiple temporal intersection-over-union (IoU) thresholds and mean IoU (mIoU) as evaluation metrics. Specifically, we use IoU thresholds of 0.3 and 0.5 for long-video benchmarks, and 0.5 and 0.7 for short-video benchmarks. For general VideoQA tasks, we report standard accuracy metrics, while for grounded VideoQA tasks, we also evaluate R1, mIoU, and intersection-over-prediction (IoP). More details about metrics are in the Appendix A.1. + +Implementation Details. Our framework is built on PyTorch, with Qwen2-VL-7B [56] as the base model. All experiments are conducted with a batch size of 8, using AdamW [32] optimizer with the learning rate 2e-4, and trained for one epoch with linear warmup during the first $3\%$ of steps. The + +Table 4: Zero-shot performance on video temporal grounding benchmarks. Zero indicates zero-shot. All models are evaluated in the zero-shot setting. Numbers in gray are sourced from the original paper; all others are tested by us using their released code and checkpoints. Improvements of UniTime-Zero over SoTA are highlighted in (green). + +
MethodEgo4D-NLQTaCoSCharades-STAANet-CaptionsQVHighlights
R1@.3R1@.5mIoUR1@.3R1@.5mIoUR1@.5R1@.7mIoUR1@.5R1@.7mIoUR1@.5R1@.7mIoU
UniVTG [27]6.483.484.635.171.274.4025.2210.0327.1211.104.0616.8614.134.4223.38
Mr.BLIP [34]6.493.205.3724.5914.3217.94---------
VTG-LLM [12]1.710.461.366.872.925.2734.1115.8134.9312.326.7417.864.131.558.60
Momentor [45]------26.6011.6028.5023.0012.4029.30---
VTimeLLM [18]1.670.772.529.303.908.0834.3014.7034.60---26.1311.1629.42
Timechat [48]1.670.791.303.771.602.9529.7312.5331.2016.388.3621.538.324.2614.25
TimeMarker [6]------51.9026.9048.40------
TimeSuite [62]0.880.430.946.752.505.7148.9524.6545.9116.569.2822.0312.329.1621.30
UniTime-Zero14.67(+8.18)7.38(+3.90)10.18(+4.81)50.06(+25.47)31.54(+17.22)33.38(+15.44)59.09(+7.19)31.88(+4.98)52.19(+3.79)22.77(-0.23)14.14(+1.74)27.31(-1.99)41.03(+14.90)31.48(+20.32)43.71(+14.29)
+ +Table 5: Closed-source Model Evaluation. All models are evaluated on sampled subsets, with outputs lacking predicted timestamps excluded. + +
ModelEgo4D-NLQCharades-STA
R1@.3R1@.5mIoUR1@.5R1@.7mIoU
Gemini-2.5-flash [8]15.2915.2913.9336.4613.5438.72
Gemini-2.5-pro [8]26.8319.5120.4535.9611.2439.28
GPT-4.1-mini [40]5.003.005.0431.0017.0031.46
GPT-4o [39]10.597.067.9741.1117.7843.82
Seed1.5-VL [54]19.3910.2013.7490.8263.2773.69
UniTime-Full25.0017.0017.2081.0061.0070.11
+ +Table 6: Flexibility Verification. Improvements over baseline are highlighted in (green). All UniTime variants use the data-specific setting. + +
MethodEgo4D-NLQCharades-STA
R1@.3R1@.5mIoUR1@.5R1@.7mIoU
Qwen2-VL-2B [56]0.340.340.422.230.516.70
+UniTime10.505.807.29 (+6.87)65.3842.1857.25 (+50.55)
Qwen2-VL-7B [56]0.480.170.467.183.288.98
+UniTime24.7916.8317.25 (+16.79)74.3353.7163.15 (+54.17)
Qwen2.5-VL-7B [2]1.110.480.8260.3234.2752.42
+UniTime23.5316.1216.61 (+15.79)74.1953.9863.62 (+11.20)
InternVL2.5-2B [7]0.330.220.425.481.779.30
+UniTime9.875.267.46 (+7.04)69.4947.7759.03 (+49.73
InternVL2.5-8B [7]2.190.551.778.662.5517.54
+UniTime16.238.5512.03 (+10.26)71.8349.6260.50 (+42.96)
+ +vision encoder is frozen, and the LLM is fine-tuned via LoRA [16] (rank $= 8$ , alpha $= 8$ ). We sample frames at 2 fps, with $N_{f}^{\mathrm{short}} = 128$ and $N_{f}^{\mathrm{long}} = 1024$ , capping input video at 16,384 tokens. The default segment length and replication factor are set to 32 and 4, respectively. + +# 3.2 Comparison with State-of-the-arts on Video Temporal Grounding + +Dataset-specific Setting. In Table 3, we compare our model against state-of-the-art methods on two long-video benchmarks and three short-video benchmarks. Under this setting, where models are trained and tested separately on each dataset, our method (UniTime-SP) outperforms all existing approaches (including traditional and MLLM-based models), achieving absolute improvements of $6.39\%$ on Ego4D-NLQ, $9.10\%$ on TaCoS, $5.45\%$ on Charades-STA, $2.88\%$ on ANet-Captions, and $2.89\%$ on QVHighlights over prior best results. + +Universal Setting. To assess broad applicability, we train a single model (UniTime-Full) on the largest collection of temporal grounding data (Table 1, Parts I & II). Unlike dataset-specific tuning, this setting prioritizes broad competence over specialized performance, ensuring the model robustly handles diverse video types and query styles in real-world scenarios. Without benchmark-specific fine-tuning, UniTime-Full achieves superior performance across all evaluated benchmarks, demonstrating its effectiveness as a universal solution for video temporal grounding. + +Zero-shot Setting. To further test the generalization capability of our method, we pre-train a zero-shot model (UniTime-Zero) on Part I datasets in Table 1, while excluding all in-domain data (Part II). As shown in Table 4, our method achieves superior zero-shot performance, highlighting its remarkable generalization capability. The error analysis on ANet-Captions can be found in the Appendix C.2. + +# 3.3 Comparison with Closed-source models on Video Temporal Grounding + +To comprehensively assess UniTime, we benchmarked mainstream closed-source MLLMs to examine whether UniTime surpasses them or narrows the gap on VTG tasks. We conducted temporal grounding experiments on a randomly sampled subset from Ego4D and Charades. As shown in Table 5, Seed1.5-VL [54] attained the strongest performance on short videos (72.2 mIoU on Charades), while Gemini-2.5-Pro [8] exhibited superior grounding on long videos (20.5 mIoU on Ego4D). However, these closed-source models struggle to achieve high performance concurrently on both long and short + +Table 7: Ablation of the proposed modules. Adaptive Scaling refers to adaptive frame scaling and Segment Retrieval indicates multi-granular temporal prediction. + +
Adaptive ScalingMulti-stage InferenceSegment RetrievalEgo4D-NLQ
R1@.3R1@.5mIoU
XXX14.257.549.83
✓XX14.007.519.83
X✓X18.4212.1312.78
✓✓X17.9111.9912.39
✓✓✓24.7916.8317.25
+ +Table 8: Robustness test on time shift and query decomposition. QD indicates query decomposition, TS denotes time shift, and Ratio is TS performance relative to the original. + +
MethodCharades-STA TSCharades-STA IoG of QD
ShiftR1@.5R1@.7mIoURatio
VTimeLLMX28.5312.3532.0053.6768.99
✓14.656.6417.89
Mr.BLIPX70.0550.2459.3866.7771.22
✓51.3226.9143.63
TimeSuiteX48.6524.0145.3266.2647.07
✓37.0213.5531.54
UniTime-SPX73.3653.7462.8780.2074.88
✓63.0637.4753.39
+ +videos, indicating a lack of generalization. In contrast, UniTime achieves competitive performance compared to these closed-source models while maintaining more balanced capabilities for both short and long-form video grounding benchmarks, proving our approach to be overall the best in terms of consistent performance across varying video types. + +# 3.4 Flexibility Verification + +As discussed in Section 2.2, our approach is compatible with any MLLM that processes dynamic frame inputs. To evaluate flexibility and generalization, we conduct experiments across multiple baseline MLLMs (e.g., Qwen2-VL, Qwen2.5-VL, InternVL2.5) and model scales. As shown in Table 6, larger MLLMs outperform their smaller counterparts, and our method consistently improves temporal grounding performance regardless of the underlying architecture. These results demonstrate strong generalization and flexibility, and indicate that the effectiveness of our framework continues to benefit from advances in MLLM architectures and increased model scale, enabling further gains in temporal grounding as more powerful models become available. + +# 3.5 Ablation Studies + +Effect of Individual Modules. To assess the contribution of each module, we conduct ablation studies on the Ego4D-NLQ benchmark, with results presented in Table 7. The study examines three key components: "Adaptive Scaling" for video input processing; "Multi-stage Inference" implementing coarse-to-fine grounding for long videos; and "Segment Retrieval" for coarse temporal grounding through inserting timestamps before segments. The results demonstrate three key findings: (i) Adaptive frame scaling (row 2) maintains performance comparable to uniform sampling (row 1) when used independently. (ii) Multi-stage inference yields consistent improvements for temporal grounding (row 3) through progressive refinement from lower to higher frame rates, and for spatial grounding (row 4) via progressive refinement from lower to higher resolution, with both coarse-to-fine grounding strategies benefiting from this hierarchical approach. (iii) Most notably, incorporating multi-granular temporal prediction (row 5), where the model first retrieves a coarse relevant segment and then localizes the precise moment within it, yields substantial improvements across all metrics. These results highlight the effectiveness of the multi-stage temporal grounding framework. More details can be found in the Appendix A.2.1. + +Effect of Segment Length. Our universal temporal grounding framework operates in two stages: (i) retrieving the video segment most relevant to the query; (ii) predicting the precise temporal interval within it. Segment length critically influences this process. We evaluate its impact using three metrics: Segment retrieval accuracy $(\mathbb{R}@\mathbb{1})$ measures the ability to identify the correct segment. Oracle grounding accuracy (oracle R1@0.3) reflects fine-grained localization given the ground-truth segment. Overall grounding accuracy $(\mathrm{R1}@\mathrm{0.3})$ assesses the overall end-to-end temporal grounding performance. As shown in Figure 3(a), longer segments improve segment retrieval accuracy but hinder fine-grained localization, resulting in lower oracle grounding performance. To balance this trade-off, we set the segment length to 32 for optimal overall accuracy. + +Effect of Replication Factor. We investigate the impact of replication factor $(N_{\mathrm{rep}})$ , which balances long and short video samples during training. Figure 3(b) shows that increasing $N_{\mathrm{rep}}$ initially improves segment retrieval but saturates and fluctuates later. In contrast, fine-grained grounding performance remains stable. Based on these results, we set $N_{\mathrm{rep}} = 4$ for optimal performance. + +![](images/5f02d416cc40dfa6ead79cec61724504ade6a30678c629458139b8ea0dac35e9.jpg) +Figure 3: Ablation on hyperparameters. We decouple the effects of Segment Length (left) and Replication Factor (right) on temporal grounding performance. + +![](images/0d6a533b67e249110b89c353af1fec2825988520e0bb58f2ad2b2a14b5fac073.jpg) +Figure 4: Temporal distribution bias in Charades-STA. Darker colors indicate higher data density. + +![](images/136a4bf26c76846e6201bc9d9c15c4224015e01957326e3e687f2188a5bae669.jpg) + +# 3.6 Robustness Test + +Generative models are known to produce hallucinations in their outputs [28]. To evaluate robustness, we conduct experiments on the Charades-STA benchmark from two perspectives: (i) perturbing event positions to assess robustness against temporal distributional bias, and (ii) decomposing complex queries into simpler object-based questions to test the model's reliability across query types. + +Time Shift on Event. Previous studies [14, 41] reveal significant biases in event distributions within temporal grounding datasets. As seen in Figure 4, annotated events in Charades-STA are heavily concentrated near the start or end of videos. To assess robustness against such bias, we perturb the data distribution by sampling clips that contain the event segment but place it at randomized positions. As shown in Table 8, our method exhibits greater robustness than other MLLM-based approaches, as evidenced by the higher performance ratio relative to the unperturbed baseline. + +On Decomposition of Query. Accurate localization of complex queries fundamentally depends on understanding the referenced objects or events. To address this, we prompt Qwen2 [59] to decompose each Charades-STA query into a set of object-based questions in the form of "When does appear?", where denotes an entity that can be grounded in the original query. For each decomposed query, we compute the intersection-over-ground-truth (IoG) between its predicted segment and the ground-truth segment. It is worth noting that this is only an approximate estimation, as an entity may appear in multiple temporal segments, while annotations typically provide only a single segment. As shown in Table 8, our approach demonstrates superior query understanding and more reliable localization, with fewer hallucinations compared to other methods. + +Recently, a related work [21] focuses on prediction consistency: they also curate test data by rephrasing original queries and shifting ground-truth moments in videos to probe grounding consistency. For detailed tests and comparisons, please refer to the Appendix D. + +# 3.7 Downstream Task + +To validate the effectiveness of our universal temporal grounding model in facilitating long video understanding as discussed in Section 1, we evaluate on four VideoQA benchmarks. As a baseline, we uniformly sample 32 frames from each video and input them to the Qwen2-VL-7B model for answer generation. To assess the impact of different temporal grounding approaches on downstream VideoQA, we first use each model to predict the relevant temporal segment for each question, then uniformly sample 32 frames from the predicted segment and feed them into Qwen2-VL-7B for answer prediction. As shown in Table 9, our method exhibits superior generalization compared to existing temporal grounding models, demonstrating robust grounding performance on out-of-domain data and enhancing long video understanding. Refer to Appendix A.4 for VideoQA evaluation details. + +Table 9: Performance on VideoQA benchmarks. R@IoU is the mean Recall@1 at IoU thresholds [0.1 : 0.1 : 0.5]. For grounded VideoQA, IoP and mIoU are used as grounding metrics. + +
MethodQaEgo4DCG-BenchMLVULongVideoBench
IoPR1@.5mIoUAcc.IoPR@IoUmIoUAcc.Acc.Acc.
Uniform Sample3.67--49.601.08--33.8760.5354.82
UniVTG [27]9.806.207.7650.001.374.923.8634.8762.5654.67
VTimeLLM [18]3.871.403.6848.601.621.221.5834.6059.5254.30
TimeSuite [62]6.280.201.2248.805.062.892.0932.4758.5153.25
UniTime-Full25.2919.0018.4455.5116.6417.6611.6340.3066.5056.47
+ +# 4 Related Work + +Video Temporal Grounding (VTG) tasks can typically be categorized into short- and long-duration scenarios. For short videos, SOTA methods primarily adopt DETR-like architectures [4, 24, 36, 35, 10]. For example, Moment-DETR [24] formulates moment retrieval as a set prediction problem with a transformer-based encoder-decoder, enabling end-to-end prediction of moment coordinates and saliency. Recent works further enhance performance by introducing prior knowledge [20] and advanced attention mechanisms [36, 35]. Non-DETR methods, such as UMT [29] and Mr.BLIP [34], leverage multi-modal cues and large language models, respectively. While effective for short videos, these methods struggle with long videos, where sparse relevant moments create a "needle-in-a-haystack" challenge. Recent works [15, 43] employ coarse-to-fine alignment and hierarchical pipelines to address this. Despite the progress on individual benchmarks, fundamental differences between short and long videos hinder the development of unified models. While UniVTG [27] attempts to bridge this gap, its lightweight architecture limits generalization, especially in out-of-domain scenarios [50]. This motivates our work to develop a universal grounding model capable of (i) handling videos of arbitrary duration, (ii) robustly generalizing across domains, and (iii) excelling in downstream tasks like video question answering. + +Temporal Grounding with Multi-modal Language Models (MLLMs). While MLLMs have achieved remarkable success across various multi-modal tasks [23, 44, 31], accurate temporal grounding remains challenging. Existing temporal integration approaches in MLLMs can be grouped into three paradigms: (i) time-agnostic models: VTimeLLM [18] processes fixed-length videos (100 frames) without explicit temporal cues, predicting normalized moment positions; LITA [19] replaces the predicted textual timestamps with special time tokens. The lack of explicit temporal signals often leads to suboptimal performance. (ii) implicit timestamp-encoded models: These methods incorporate timestamp-aware encoders, such as TimeChat [48] and TimeSuite [62], which fuse frame and temporal embeddings. VTG-LLM [12] uses absolute time embeddings, while Qwen2.5-VL [2] employs MRoPE for temporal modeling. Despite advances, these methods require extensive pretraining and may hallucinate timestamps due to implicit temporal representations. (iii) explicit temporal marking models: Methods like Mr.BLIP [34], TimeMarker [6], and VideoLLaMA3 [63] comprehend textual timestamps to video frames, leveraging retrieval capabilities of MLLMs to match DETR-based performance. Although these approaches have advanced short video temporal grounding, they are constrained by context windows and GPU memory, limiting scalability to long videos. To address this, we propose a framework that adaptively adjusts scales of video frames, combined with a multi-scale, coarse-to-fine iterative temporal grounding strategy tailored for long video understanding. + +Long Video Understanding is significantly more challenging than short video or image-based tasks due to complex temporal dynamics and substantial redundancy. The large number of frames dramatically increases memory and computational demands, making dense sampling impractical. Existing video MLLMs [2, 56, 69] often rely on uniform frame sampling, which risks omitting critical information. To address this, some approaches compress frames into minimal token sets to reduce computational costs [49, 26, 67], while others focus on more effective frame sampling strategies [60, 52, 17, 9]. Despite these advancements, temporal grounding—crucial for retrieving salient events—remains underexplored in the context of long videos. In this work, we leverage temporal grounding to identify key events, enhancing the understanding of long-form video content. + +# 5 Conclusion + +In conclusion, this paper presents UniTime, a universal video temporal grounding model based on MLLMs. At its core, UniTime interleaves timestamp tokens with video tokens and retrieves relevant timestamps for natural language queries, thereby enabling precise temporal localization. By employing adaptive frame scaling, UniTime constructs inputs with varying spatial granularities for videos of different durations. By further inserting timestamps at multiple temporal granularities, the model supports multi-scale temporal prediction. As a result, it can perform coarse-to-fine temporal grounding, first coarsely localizing segments in long videos and then refining predictions to fine-grained windows in short videos. To further enhance efficiency, we propose a video-centric training paradigm that reduces redundant computation. Extensive experiments on multiple benchmarks demonstrate that UniTime, pre-trained on large-scale datasets without the need for dataset-specific finetuning, consistently outperforms existing methods in both temporal grounding and downstream long-video question answering tasks. + +# Acknowledgements + +This work is supported by National Key R&D Program of China (No.2022ZD0161400). + +# References + +[1] Lisa Anne Hendricks, Oliver Wang, Eli Shechtman, Josef Sivic, Trevor Darrell, and Bryan Russell. Localizing moments in video with natural language. In ICCV, 2017. +[2] Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, et al. Qwen2. 5-vl technical report. arXiv preprint arXiv:2502.13923, 2025. +[3] Leonard Bärmann and Alex Waibel. Where did i leave my keys?-episodic-memory-based question answering on egocentric videos. In CVPR, 2022. +[4] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In ECCV, 2020. +[5] Guo Chen, Yicheng Liu, Yifei Huang, Yuping He, Baoqi Pei, Jilan Xu, Yali Wang, Tong Lu, and Limin Wang. Cg-bench: Clue-grounded question answering benchmark for long video understanding. In ICLR, 2025. +[6] Shimin Chen, Xiaohan Lan, Yitian Yuan, Zequn Jie, and Lin Ma. Timemarker: A versatile videolm for long and short video understanding with superior temporal localization ability. arXiv preprint arXiv:2411.18211, 2024. +[7] Zhe Chen, Weiyun Wang, Yue Cao, Yangzhou Liu, Zhangwei Gao, Erfei Cui, Jinguo Zhu, Shenglong Ye, Hao Tian, Zhaoyang Liu, et al. Expanding performance boundaries of open-source multimodal models with model, data, and test-time scaling. arXiv preprint arXiv:2412.05271, 2024. +[8] Gheorghe Comanici, Eric Bieber, Mike Schaekermann, Ice Pasupat, Noveen Sachdeva, Inderjit Dhillon, Marcel Blistein, Ori Ram, Dan Zhang, Evan Rosen, et al. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint arXiv:2507.06261, 2025. +[9] Shangzhe Di, Zhelun Yu, Guanghao Zhang, Haoyuan Li, Hao Cheng, Bolin Li, Wanggui He, Fangxun Shu, Hao Jiang, et al. Streaming video question-answering with in-context video kv-cache retrieval. In ICLR, 2025. +[10] Aleksandr Gordeev, Vladimir Dokholyan, Irina Tolstykh, and Maksim Kuprashevich. Saliency-guided detr for moment retrieval and highlight detection. arXiv preprint arXiv:2410.01615, 2024. +[11] Kristen Grauman, Andrew Westbury, Eugene Byrne, Zachary Chavis, Antonino Furnari, Rohit Girdhar, Jackson Hamburger, Hao Jiang, Miao Liu, Xingyu Liu, et al. Ego4d: Around the world in 3,000 hours of egocentric video. In CVPR, 2022. +[12] Yongxin Guo, Jingyu Liu, Mingda Li, Dingxin Cheng, Xiaoying Tang, Dianbo Sui, Qingbin Liu, Xi Chen, and Kevin Zhao. Vtg-llm: Integrating timestamp knowledge into video llms for enhanced video temporal grounding. In AAAI, 2025. +[13] Tanveer Hannan, Md Mohaiminul Islam, Thomas Seidl, and Gedas Bertasius. Rgnet: A unified clip retrieval and grounding network for long videos. In ECCV, 2024. +[14] Jiachang Hao, Haifeng Sun, Pengfei Ren, Jingyu Wang, Qi Qi, and Jianxin Liao. Can shuffling video benefit temporal bias problem: A novel training framework for temporal grounding. In ECCV, 2022. +[15] Zhijian Hou, Wanjun Zhong, Lei Ji, Difei Gao, Kun Yan, Wing-Kwong Chan, Chong-Wah Ngo, Zheng Shou, and Nan Duan. Cone: An efficient coarse-to-fine alignment framework for long video temporal grounding. In ACL, 2023. +[16] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuzhhi Li, Shean Wang, Lu Wang, Weizhu Chen, et al. Lora: Low-rank adaptation of large language models. In ICLR, 2022. +[17] Kai Hu, Feng Gao, Xiaohan Nie, Peng Zhou, Son Tran, Tal Neiman, Lingyun Wang, Mubarak Shah, Raffay Hamid, Bing Yin, et al. M-llm based video frame selection for efficient video understanding. In CVPR, 2025. + +[18] Bin Huang, Xin Wang, Hong Chen, Zihan Song, and Wenwu Zhu. Vtimellm: Empower llm to grasp video moments. In CVPR, 2024. +[19] De-An Huang, Shijia Liao, Subhashree Radhakrishnan, Hongxu Yin, Pavlo Molchanov, Zhiding Yu, and Jan Kautz. Lita: Language instructed temporal-localization assistant. In ECCV, 2024. +[20] Jinhyun Jang, Jungin Park, Jin Kim, Hyeongjun Kwon, and Kwanghoon Sohn. Knowing where to focus: Event-aware transformer for video grounding. In ICCV, 2023. +[21] Minjoon Jung, Junbin Xiao, Byoung-Tak Zhang, and Angela Yao. On the consistency of video large language models in temporal comprehension. In CVPR, 2025. +[22] Ranjay Krishna, Kenji Hata, Frederic Ren, Li Fei-Fei, and Juan Carlos Niebles. Dense-captioning events in videos. In ICCV, 2017. +[23] Xin Lai, Zhuotao Tian, Yukang Chen, Yanwei Li, Yuhui Yuan, Shu Liu, and Jiaya Jia. Lisa: Reasoning segmentation via large language model. In CVPR, 2024. +[24] Jie Lei, Tamara L Berg, and Mohit Bansal. Detecting moments and highlights in videos via natural language queries. In NeurlPS, 2021. +[25] Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Yanwei Li, Ziwei Liu, and Chunyuan Li. Llava-onevision: Easy visual task transfer. TMLR, 2025. +[26] Xinhao Li, Yi Wang, Jiashuo Yu, Xiangyu Zeng, Yuhan Zhu, Haian Huang, Jianfei Gao, Kunchang Li, Yinan He, Chenting Wang, et al. Videochat-flash: Hierarchical compression for long-context video modeling. arXiv preprint arXiv:2501.00574, 2024. +[27] Kevin Qinghong Lin, Pengchuan Zhang, Joya Chen, Shraman Pramanick, Difei Gao, Alex Jinpeng Wang, Rui Yan, and Mike Zheng Shou. Univtg: Towards unified video-language temporal grounding. In ICCV, 2023. +[28] Hanchao Liu, Wenyuan Xue, Yifei Chen, Dapeng Chen, Xiutian Zhao, Ke Wang, Liping Hou, Rongjun Li, and Wei Peng. A survey on hallucination in large vision-language models. arXiv preprint arXiv:2402.00253, 2024. +[29] Ye Liu, Siyuan Li, Yang Wu, Chang-Wen Chen, Ying Shan, and Xiaohu Qie. Umt: Unified multi-modal transformers for joint video moment retrieval and highlight detection. In CVPR, 2022. +[30] Ye Liu, Kevin Qinghong Lin, Chang Wen Chen, and Mike Zheng Shou. Videomind: A chain-of-lora agent for long video reasoning. arXiv preprint arXiv:2503.13444, 2025. +[31] Yikun Liu, Pingan Chen, Jiayin Cai, Xiaolong Jiang, Yao Hu, Jiangchao Yao, Yanfeng Wang, and Weidi Xie. Lamra: Large multimodal model as your advanced retrieval assistant. In CVPR, 2025. +[32] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. +[33] Muhammad Maaz, Hanoona Rasheed, Salman Khan, and Fahad Shahbaz Khan. Video-chatgpt: Towards detailed video understanding via large vision and language models. In ACL, 2024. +[34] Boris Meinardus, Anil Batra, Anna Rohrbach, and Marcus Rohrbach. The surprising effectiveness of multimodal large language models for video moment retrieval. arXiv preprint arXiv:2406.18113, 2024. +[35] WonJun Moon, Sangeek Hyun, SuBeen Lee, and Jae-Pil Heo. Correlation-guided query-dependency calibration for video temporal grounding. arXiv preprint arXiv:2311.08835, 2023. +[36] WonJun Moon, Sangeek Hyun, SangUk Park, Dongchan Park, and Jae-Pil Heo. Query-dependent video representation for moment retrieval and highlight detection. In CVPR, 2023. +[37] Fangzhou Mu, Sicheng Mo, and Yin Li. Snag: Scalable and accurate video grounding. In CVPR, 2024. +[38] Andreea-Maria Oncescu, Joao F Henriques, Yang Liu, Andrew Zisserman, and Samuel Albanie. Queryd: A video dataset with high-quality text and audio narrations. In ICASSP, 2021. +[39] OpenAI. Gpt-4o system card. https://openai.com/zh-Hans-CN/index/gpt-4o-system-card/, 2024. +[40] OpenAI. Gpt-4.1 system card. https://openai.com/index/gpt-4-1/, 2025. + +[41] Mayu Otani, Yuta Nakashima, Esa Rahtu, and Janne Heikkilä. Uncovering hidden challenges in query-based video moment retrieval. In BMVC, 2020. +[42] Junwen Pan, Rui Zhang, Xin Wan, Yuan Zhang, Ming Lu, and Qi She. Timesearch: Hierarchical video search with spotlight and reflection for human-like long video understanding. arXiv preprint arXiv:2504.01407, 2025. +[43] Yulin Pan, Xiangteng He, Biao Gong, Yiliang Lv, Yujun Shen, Yuxin Peng, and Deli Zhao. Scanning only once: An end-to-end framework for fast temporal grounding in long videos. In ICCV, 2023. +[44] Renjie Pi, Jiahui Gao, Shizhe Diao, Rui Pan, Hanze Dong, Jipeng Zhang, Lewei Yao, Jianhua Han, Hang Xu, Lingpeng Kong, et al. Detgpt: Detect what you need via reasoning. In EMNLP, 2023. +[45] Long Qian, Juncheng Li, Yu Wu, Yaobo Ye, Hao Fei, Tat-Seng Chua, Yueting Zhuang, and Siliang Tang. Momentor: Advancing video large language model with fine-grained temporal reasoning. In ICML, 2024. +[46] Santhosh Kumar Ramakrishnan, Ziad Al-Halah, and Kristen Grauman. Naq: Leveraging narrations as queries to supervise episodic memory. In CVPR, 2023. +[47] Michaela Regneri, Marcus Rohrbach, Dominikus Wetzel, Stefan Thater, Bernt Schiele, and Manfred Pinkal. Grounding action descriptions in videos. TACL, 2013. +[48] Shuhuai Ren, Linli Yao, Shicheng Li, Xu Sun, and Lu Hou. Timechat: A time-sensitive multimodal large language model for long video understanding. In CVPR, 2024. +[49] Xiaoqian Shen, Yunyang Xiong, Changsheng Zhao, Lemeng Wu, Jun Chen, Chenchen Zhu, Zechun Liu, Fanyi Xiao, Balakrishnan Varadarajan, Florian Bordes, et al. Longvu: Spatiotemporal adaptive compression for long video-language understanding. arXiv preprint arXiv:2410.17434, 2024. +[50] Yudi Shi, Shangzhe Di, Qirui Chen, and Weidi Xie. Enhancing video-llm reasoning via agent-of-thoughts distillation. In CVPR, 2025. +[51] Gunnar A Sigurdsson, Gül Varol, Xiaolong Wang, Ali Farhadi, Ivan Laptev, and Abhinav Gupta. Hollywood in homes: Crowdsourcing data collection for activity understanding. In ECCV, 2016. +[52] Xi Tang, Jihao Qiu, Lingxi Xie, Yunjie Tian, Jianbin Jiao, and Qixiang Ye. Adaptive keyframe sampling for long video understanding. In CVPR, 2025. +[53] Yansong Tang, Dajun Ding, Yongming Rao, Yu Zheng, Danyang Zhang, Lili Zhao, Jiwen Lu, and Jie Zhou. Coin: A large-scale dataset for comprehensive instructional video analysis. In CVPR, 2019. +[54] ByteDance Seed Team. Seed1.5-v1 technical report. arXiv preprint arXiv:2505.07062, 2025. +[55] Gemini Team, Petko Georgiev, Ving Ian Lei, Ryan Burnell, Libin Bai, Anmol Gulati, Garrett Tanzer, Damien Vincent, Zhufeng Pan, Shibo Wang, et al. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. arXiv preprint arXiv:2403.05530, 2024. +[56] Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, et al. Qwen2-vl: Enhancing vision-language model's perception of the world at any resolution. arXiv preprint arXiv:2409.12191, 2024. +[57] Haoning Wu, Dongxu Li, Bei Chen, and Junnan Li. Longvideobench: A benchmark for long-context interleaved video-language understanding. In NeurIPS, 2024. +[58] Shen Yan, Xuehan Xiong, Arsha Nagrani, Anurag Arnab, Zhonghao Wang, Weina Ge, David Ross, and Cordelia Schmid. Unloc: A unified framework for video localization tasks. In ICCV, 2023. +[59] An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, Guanting Dong, Haoran Wei, Huan Lin, Jialong Tang, Jialin Wang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin Ma, Jin Xu, Jingren Zhou, Jinze Bai, Jinzheng He, Junyang Lin, Kai Dang, Keming Lu, Keqin Chen, Kexin Yang, Mei Li, Mingfeng Xue, Na Ni, Pei Zhang, Peng Wang, Ru Peng, Rui Men, Ruize Gao, Runji Lin, Shijie Wang, Shuai Bai, Sinan Tan, Tianhang Zhu, Tianhao Li, Tianyu Liu, Wenbin Ge, Xiaodong Deng, Xiaohuan Zhou, Xingzhang Ren, Xinyu Zhang, Xipin Wei, Xuancheng Ren, Yang Fan, Yang Yao, Yichang Zhang, Yu Wan, Yunfei Chu, Yuqiong Liu, Zeyu Cui, Zhenru Zhang, and Zhihao Fan. Qwen2 technical report. arXiv preprint arXiv:2407.10671, 2024. +[60] Jinhui Ye, Zihan Wang, Haosen Sun, Keshigeyan Chandrasegaran, Zane Durante, Cristobal Eyzaguirre, Yonatan Bisk, Juan Carlos Niebles, Ehsan Adeli, Li Fei-Fei, et al. Re-thinking temporal search for long-form video understanding. In CVPR, 2025. + +[61] Abhay Zala, Jaemin Cho, Satwik Kottur, Xilun Chen, Barlas Oguz, Yashar Mehdad, and Mohit Bansal. Hierarchical video-moment retrieval and step-captioning. In CVPR, 2023. +[62] Xiangyu Zeng, Kunchang Li, Chenting Wang, Xinhao Li, Tianxiang Jiang, Ziang Yan, Songze Li, Yansong Shi, Zhengrong Yue, Yi Wang, et al. Timesuite: Improving mllms for long video understanding via grounded tuning. In ICLR, 2024. +[63] Boqiang Zhang, Kehan Li, Zesen Cheng, Zhiqiang Hu, Yuqian Yuan, Guanzheng Chen, Sicong Leng, Yuming Jiang, Hang Zhang, Xin Li, et al. Videollama 3: Frontier multimodal foundation models for image and video understanding. arXiv preprint arXiv:2501.13106, 2025. +[64] Hang Zhang, Xin Li, and Lidong Bing. Video-llama: An instruction-tuned audio-visual language model for video understanding. arXiv preprint arXiv:2306.02858, 2023. +[65] Hao Zhang, Aixin Sun, Wei Jing, and Joey Tianyi Zhou. Span-based localizing network for natural language video localization. In ACL, 2020. +[66] Songyang Zhang, Houwen Peng, Jianlong Fu, and Jiebo Luo. Learning 2d temporal adjacent networks for moment localization with natural language. In AAAI, 2020. +[67] Yiming Zhang, Zhuokai Zhao, Zhaorun Chen, Zenghui Ding, Xianjun Yang, and Yining Sun. Beyond training: Dynamic token merging for zero-shot video understanding. arXiv preprint arXiv:2411.14401, 2024. +[68] Yuanhan Zhang, Bo Li, haotian Liu, Yong jae Lee, Liangke Gui, Di Fu, Jiashi Feng, Ziwei Liu, and Chunyuan Li. Llava-last: A strong zero-shot video understanding model, April 2024. +[69] Yuanhan Zhang, Jinming Wu, Wei Li, Bo Li, Zejun Ma, Ziwei Liu, and Chunyuan Li. Video instruction tuning with synthetic data. arXiv preprint arXiv:2410.02713, 2024. +[70] Pengcheng Zhao, Zhixian He, Fuwei Zhang, Shujin Lin, and Fan Zhou. Ld-detr: Loop decoder detection transformer for video moment retrieval and highlight detection. arXiv preprint arXiv:2501.10787, 2025. +[71] Junjie Zhou, Yan Shu, Bo Zhao, Boya Wu, Shitao Xiao, Xi Yang, Yongping Xiong, Bo Zhang, Tiejun Huang, and Zheng Liu. Mlvu: A comprehensive benchmark for multi-task long video understanding. In CVPR, 2025. +[72] Luowei Zhou, Chenliang Xu, and Jason Corso. Towards automatic learning of procedures from web instructional videos. In AAAI, 2018. + +# Appendix / supplemental material + +In the appendix, we provide additional experimental details (Appendix A), implementation details (Appendix B), qualitative results (Appendix C), grounding consistency evaluation (Appendix D), more ablation studies (Appendix E), discussions of limitations and future work (Appendix F), and broader impacts (Appendix G). + +# A Experimental Details + +In this section, we provide additional experimental details, including benchmark details (Appendix A.1), ablation details (Appendix A.2), robustness test details (Appendix A.3) and downstream task details (Appendix A.4). + +# A.1 Benchmark Details + +To evaluate the performance of our model on temporal grounding and VideoQA tasks, we employ three key metrics: Intersection-over-Union (IoU), Intersection-over-Prediction (IoP), and Intersection-over-Ground Truth (IoG). These metrics quantify the alignment between the predicted temporal window $T^{\mathrm{pred}}$ and the ground truth temporal window $T^{\mathrm{gt}}$ . The formal definitions are as follows: + +$$ +\operatorname {I o U} = \frac {\left| T ^ {\text {p r e d}} \cap T ^ {\text {g t}} \right|}{\left| T ^ {\text {p r e d}} \cup T ^ {\text {g t}} \right|}, \quad \operatorname {I o P} = \frac {\left| T ^ {\text {p r e d}} \cap T ^ {\text {g t}} \right|}{\left| T ^ {\text {p r e d}} \right|}, \quad \operatorname {I o G} = \frac {\left| T ^ {\text {p r e d}} \cap T ^ {\text {g t}} \right|}{\left| T ^ {\text {g t}} \right|}. +$$ + +Here, $|T^{\mathrm{pred}} \cap T^{\mathrm{gt}}|$ denotes the duration of the overlapping region between the predicted window $T^{\mathrm{pred}}$ and the ground truth window $T^{\mathrm{gt}}$ . $|T^{\mathrm{pred}} \cup T^{\mathrm{gt}}|$ represents the duration of their union, while $|T^{\mathrm{pred}}|$ and $|T^{\mathrm{gt}}|$ denote the durations of the predicted and ground truth windows, respectively. + +IoU measures the overall alignment between $T^{\mathrm{pred}}$ and $T^{\mathrm{gt}}$ , providing a balanced assessment of both precision and recall by considering the overlap relative to their union. IoP emphasizes precision, indicating the proportion of the predicted window that overlaps with the ground truth. Conversely, IoG focuses on recall, reflecting the proportion of the ground truth window that is covered by the prediction. Collectively, these metrics offer a comprehensive evaluation of the model's ability to accurately localize temporal windows with respect to the ground truth. + +# A.2 Ablation Details + +# A.2.1 Effect of Individual Modules + +As shown in Table 7, we systematically evaluate the effect of each individual module. The detailed settings are as follows: (i) Row 1: We uniformly sample 32 frames from each video and obtain the corresponding timestamps. These frames and timestamps are then fed into UniTime for temporal grounding. (ii) Row 2: We sample the video at 2 fps and apply frame scaling. The sampled frames and their timestamps are input into UniTime for temporal grounding. (iii) Row 3: On top of uniform sampling, we introduce multi-stage inference. Specifically, after obtaining an initial prediction using the uniformly sampled frames (as in row 1), we perform a second round of uniform sampling within the predicted interval and feed these frames into the model for refined localization. (iv) Row 4: Similarly, we apply multi-stage inference to the adaptive frame scaling. After the initial prediction (as in row 2), we resample at 2 fps and apply frame scaling within the predicted interval, then input these frames into the model for further refinement. (v) Row 5: We adopt the coarse-to-fine temporal grounding strategy described in Section 2.2. Unlike row 4, where the model predicts fine-grained intervals in the first round due to densely sampled timestamps, row 5 partitions the video into coarse segments and only requires the model to predict the relevant segment in the first round. In the second round, temporal grounding is performed within the selected segment to localize the precise moment. + +# A.2.2 Effect of Segment Length and Replication Factor + +As shown in Figure 3, we decouple the process of coarse-to-fine temporal grounding to analyze the effect of segment length and replication factor. Below, we provide detailed descriptions of the capabilities of each component after decoupling. + +Overall, the coarse-to-fine temporal grounding process can be divided into the following two stages. First, we retrieve candidate segments from the video as follows: + +$$ +\{\mathbf {S} _ {r} \} _ {r = 1} ^ {N _ {r}} = \Phi_ {\mathrm {U n i T i m e}} (\mathcal {V}, \mathcal {T}, \mathcal {Q}) = \Phi_ {\mathrm {U n i T i m e}} ([ \mathbf {T} _ {1}; \mathbf {S} _ {1}; \mathbf {T} _ {2}; \mathbf {S} _ {2}; \dots ; \mathbf {T} _ {N _ {s}}; \mathbf {S} _ {N _ {s}}; \mathcal {Q} ]) +$$ + +where $\mathbf{S}_r$ denotes the retrieved segments and $N_{r}$ is the number of retrieved segments. Next, we perform fine-grained localization within the retrieved segments: + +$$ +\mathcal {A} = \{(s _ {1}, e _ {1}), \dots , (s _ {K}, e _ {K}) \} = \Phi_ {\mathrm {U n i T i m e}} (V | _ {\{\mathbf {S} _ {r} \} _ {r = 1} ^ {N _ {r}}}, \mathcal {T}, \mathcal {Q}) +$$ + +where each $s_k, e_k \in \mathcal{T}$ represents the predicted start and end timestamps, respectively. Then, the evaluation metrics used in Section 3.5 and Figure 3 are defined as follows: + +Segment retrieval accuracy (R@1) indicates the accuracy of segment retrieval, i.e., the proportion of cases where any predicted segment $\mathbf{S}_r^{\mathrm{pred}}$ is contained within the set of ground-truth segments $\{\mathbf{S}_r^{\mathrm{gt}}\}$ . Oracle grounding accuracy (oracle R1@0.3) reflects the localization performance when the model is provided with the ground-truth segment as input, i.e., $\mathcal{A}^{\mathrm{oracle}} = \Phi_{\mathrm{UniTime}}(V|_{\{\mathbf{S}_r^{\mathrm{gt}}\}}, \mathcal{T}, \mathcal{Q})$ . Overall grounding accuracy (R1@0.3) measures the end-to-end temporal grounding performance, where $\mathcal{A}^{\mathrm{pred}} = \Phi_{\mathrm{UniTime}}(V|_{\{\mathbf{S}_r^{\mathrm{pred}}\}}, \mathcal{T}, \mathcal{Q})$ . + +# A.3 Robustness Test Details + +# A.3.1 Time Shift on Event + +The temporal distribution bias in Charades-STA is illustrated in Figure 4. In addition, we also conduct statistical analyses on TACoS, ANet-Captions, and QVHighlights, with the results presented in Figure 5. Significant temporal distribution bias is also observed in TACoS and ANet-Captions, whereas QVHighlights does not exhibit such bias. + +![](images/a6ee53ec45a3582df7c676a2080eae3b223d2533dead30d12787d9931fc032e6.jpg) +(a) + +![](images/5443d315d1ad4a73768e8ca6110ae3c591d51e16828bf1ffe6c4eda3066cf110.jpg) +(b) +Figure 5: Temporal distribution bias in (a) ANet-Captions. (b) QVHighlights. (c) TACoS. Darker colors indicate higher data density. , and the yellow curve outlines the region of greatest density. + +![](images/62824f7eb349140deda1dcf030ac7e7a1c1854737bb3db74943948a2113b7f08.jpg) +(c) + +# A.3.2 Decomposition of Query + +The prompts provided to Qwen2 [59] for decomposing each Charades-STA query into a set of object-centric questions are as follows: + +System: + +You are Qwen, created by Alibaba Cloud. You are a helpful assistant. + +System: + +Analyze the given query and: + +1. Identify ONLY concrete, specific objects (nouns) that are: + +Tangible physical items +- Clearly named (not pronouns/ambiguous) + +2. STRICTLY EXCLUDE: + +- All human references (person, he, she, they, etc.) +- Ambiguous terms (something, anything, things, etc.) +- Pronouns (it, they, them) +- Abstract concepts + +3. For each valid object, generate EXACTLY ONE question: + +"When does [OBJECT] appear?" + +Negative Examples (BAD): + +```txt +Input:"Someone left some items on the furniture" +Wrong Output: +-When does the furniture appear? +-When does some items appear? # $< -$ AMBIGUOUS TERM SHOULD BE EXCUSED +Positive Examples (GOOD): +Input:"The machine processed the raw materials during the night" +Output: +-When does the machine appear? +-When does the raw materials appear? +-When does the night appear? +User: +Analyze: +``` + +# A.4 Downstream Task Details + +# A.4.1 VideoQA with Temporal Grounding + +We use Qwen2-VL-7B as the VideoQA model for answer generation. By default, it processes long videos by uniformly sampling 32 frames. However, this sampling strategy may lead to the omission of critical information. To investigate whether temporal grounding models can compensate for this issue, we adopt the following procedure. First, we use different video temporal grounding models to localize the relevant segments for each question. Then, we crop the localized video intervals and input them into Qwen2-VL-7B. Specifically, for cropped video segments shorter than 32 seconds, we extend their duration from the center to 32 seconds. Within each interval, we again uniformly sample 32 frames for answer generation. + +# A.4.2 Prompt template for VideoQA + +We use the same prompt template for all multiple-choice VideoQA benchmarks: + +```txt +System: +You are a helpful assistant. +User: +