{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,18]],"date-time":"2026-05-18T19:06:22Z","timestamp":1779131182087,"version":"3.51.4"},"reference-count":61,"publisher":"Association for Computing Machinery (ACM)","issue":"3","funder":[{"name":"Singapore MOE AcRF Tier-2 grant","award":["MOE-T2EP20223-0004"],"award-info":[{"award-number":["MOE-T2EP20223-0004"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Manag. Data"],"published-print":{"date-parts":[[2026,5,18]]},"abstract":"<jats:p>Trajectory similarity computation is fundamental to spatial data management. Recent representation learning methods have advanced similarity computation through neural embeddings, yet they rely on naive random sampling of training data, overlooking strategic data selection that determines learning effectiveness. Existing data selection paradigms are not suitable due to their requirement for labeled trajectory pairs with prohibitive cost. We present GoodTP, a novel framework that addresses challenges in data selection for trajectory similarity learning. First, the framework reformulates the expensive pair selection into iterative trajectory selection that dynamically constructs and evaluates pairs, eliminating exhaustive pairwise similarity pre-computation. Second, we design a hierarchical clustering tree that organizes trajectories across multiple granularities. We model selection as tree sampling optimization via Monte Carlo Tree Search (MCTS), efficiently navigating the exponential policy space. Third, we bridge the local-to-global optimization gap through two complementary mechanisms: (1) An effective learned policy based on Upper Confidence Bound (UCB) balances exploration-exploitation with provable convergence guarantees. (2) Cache-enhanced bilevel optimization learns instance-specific weights that align new pairs with accumulated global pairs while jointly optimizing model parameters. Extensive experiments across representative trajectory similarity models on real-world datasets demonstrate that GoodTP achieves substantial performance improvements.<\/jats:p>","DOI":"10.1145\/3802067","type":"journal-article","created":{"date-parts":[[2026,5,18]],"date-time":"2026-05-18T18:19:16Z","timestamp":1779128356000},"page":"1-27","source":"Crossref","is-referenced-by-count":0,"title":["GoodTP: An Effective Data Selection Framework for Enhancing Trajectory Similarity Learning via Monte Carlo Tree Search"],"prefix":"10.1145","volume":"4","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6721-065X","authenticated-orcid":false,"given":"Haitao","family":"Yuan","sequence":"first","affiliation":[{"name":"Nanyang Technological University, Singapore, Singapore"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4430-6373","authenticated-orcid":false,"given":"Gao","family":"Cong","sequence":"additional","affiliation":[{"name":"Nanyang Technological University, Singapore, Singapore"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2026,5,18]]},"reference":[{"key":"e_1_2_1_1_1","first-page":"1","article-title":"Approximating Dynamic Time Warping and Edit Distance for a Pair of Point Sequences","volume":"6","author":"Agarwal Pankaj K.","year":"2016","unstructured":"Pankaj K. Agarwal, Kyle Fox, Jiangwei Pan, and Rex Ying. 2016. Approximating Dynamic Time Warping and Edit Distance for a Pair of Point Sequences. In SoCG. 6:1-6:16.","journal-title":"SoCG."},{"key":"e_1_2_1_2_1","first-page":"647","article-title":"Clustering of Vehicle Trajectories","volume":"11","author":"Atev Stefan","year":"2010","unstructured":"Stefan Atev, Grant Miller, and Nikolaos P. Papanikolopoulos. 2010. Clustering of Vehicle Trajectories. TITS, Vol. 11, 3 (2010), 647-657.","journal-title":"TITS"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.5555\/2188385.2188395"},{"key":"e_1_2_1_4_1","volume-title":"A survey on trajectory clustering analysis. arXiv","author":"Bian Jiang","year":"2018","unstructured":"Jiang Bian, Dayong Tian, Yuanyan Tang, and Dacheng Tao. 2018. A survey on trajectory clustering analysis. arXiv (2018)."},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1109\/TCIAIG.2012.2186810"},{"key":"e_1_2_1_6_1","first-page":"1","article-title":"On Accurate Computation of Trajectory Similarity via Single Image Super-Resolution","author":"Cao Hanlin","year":"2021","unstructured":"Hanlin Cao, Haina Tang, Yulei Wu, Fei Wang, and Yongjun Xu. 2021. On Accurate Computation of Trajectory Similarity via Single Image Super-Resolution. In IJCNN. 1-9.","journal-title":"IJCNN."},{"key":"e_1_2_1_7_1","first-page":"167","article-title":"Efficient Coreset Selection with Cluster-based Methods","author":"Chai Chengliang","year":"2023","unstructured":"Chengliang Chai, Jiayi Wang, Nan Tang, Ye Yuan, Jiabin Liu, Yuhao Deng, and Guoren Wang. 2023. Efficient Coreset Selection with Cluster-based Methods. In SIGKDD. ACM, 167-178.","journal-title":"SIGKDD. ACM"},{"key":"e_1_2_1_8_1","first-page":"2933","article-title":"Contrastive Trajectory Similarity Learning with Dual-Feature Attention","author":"Chang Yanchuan","year":"2023","unstructured":"Yanchuan Chang, Jianzhong Qi, Yuxuan Liang, and Egemen Tanin. 2023. Contrastive Trajectory Similarity Learning with Dual-Feature Attention. In ICDE. 2933-2945.","journal-title":"ICDE."},{"key":"e_1_2_1_9_1","volume-title":"Trajectory similarity measurement: An efficiency perspective. VLDB","author":"Chang Yanchuan","year":"2024","unstructured":"Yanchuan Chang, Egemen Tanin, Gao Cong, Christian S Jensen, and Jianzhong Qi. 2024. Trajectory similarity measurement: An efficiency perspective. VLDB (2024), 2293-2306."},{"key":"e_1_2_1_10_1","first-page":"792","article-title":"On The Marriage of Lp-norms and Edit Distance","author":"Chen Lei","year":"2004","unstructured":"Lei Chen and Raymond T. Ng. 2004. On The Marriage of Lp-norms and Edit Distance. In VLDB. 792-803.","journal-title":"VLDB."},{"key":"e_1_2_1_11_1","doi-asserted-by":"crossref","unstructured":"Lei Chen M. Tamer \u00d6zsu and Vincent Oria. 2005. Robust and Fast Similarity Search for Moving Object Trajectories. In SIGMOD Fatma \u00d6zcan (Ed.). 491-502.","DOI":"10.1145\/1066157.1066213"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3725346"},{"key":"e_1_2_1_13_1","volume-title":"Deep Learning for Trajectory Data Management and Mining: A Survey and Beyond. arXiv","author":"Chen Wei","year":"2024","unstructured":"Wei Chen, Yuxuan Liang, Yuanshao Zhu, Yanchuan Chang, Kang Luo, Haomin Wen, Lei Li, Yanwei Yu, Qingsong Wen, Chao Chen, Kai Zheng, Yunjun Gao, Xiaofang Zhou, and Yu Zheng. 2024. Deep Learning for Trajectory Data Management and Mining: A Survey and Beyond. arXiv, Vol. abs\/2403.14151 (2024)."},{"key":"e_1_2_1_14_1","first-page":"788","article-title":"A survey and comparison of trajectory classification methods","author":"da Silva Camila Leite","year":"2019","unstructured":"Camila Leite da Silva, Lucas May Petry, and Vania Bogorny. 2019. A survey and comparison of trajectory classification methods. In BRACIS. 788-793.","journal-title":"BRACIS."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1057\/PALGRAVE.IVS.9500182"},{"key":"e_1_2_1_16_1","unstructured":"Thomas Eiter and Heikki Mannila. 1994. Computing discrete Fr\u00e9chet distance. (1994)."},{"key":"e_1_2_1_17_1","first-page":"226","article-title":"A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise","author":"Ester Martin","year":"1996","unstructured":"Martin Ester, Hans-Peter Kriegel, J\u00f6rg Sander, and Xiaowei Xu. 1996. A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise. In KDD. 226-231.","journal-title":"KDD."},{"key":"e_1_2_1_18_1","first-page":"696","article-title":"E2dtc: An end to end deep trajectory clustering framework via self-training","author":"Fang Ziquan","year":"2021","unstructured":"Ziquan Fang, Yuntao Du, Lu Chen, Yujia Hu, Yunjun Gao, and Gang Chen. 2021. E2dtc: An end to end deep trajectory clustering framework via self-training. In ICDE. 696-707.","journal-title":"ICDE."},{"key":"e_1_2_1_19_1","first-page":"347","article-title":"Spatio-temporal trajectory similarity learning in road networks","author":"Fang Ziquan","year":"2022","unstructured":"Ziquan Fang, Yuntao Du, Xinjun Zhu, Danlei Hu, Lu Chen, Yunjun Gao, and Christian S Jensen. 2022. Spatio-temporal trajectory similarity learning in road networks. In SIGKDD. 347-356.","journal-title":"SIGKDD."},{"key":"e_1_2_1_20_1","volume-title":"Ghost: A general framework for high-performance online similarity queries over distributed trajectory streams. SIGMOD","author":"Fang Ziquan","year":"2023","unstructured":"Ziquan Fang, Shenghao Gong, Lu Chen, Jiachen Xu, Yunjun Gao, and Christian S Jensen. 2023. Ghost: A general framework for high-performance online similarity queries over distributed trajectory streams. SIGMOD (2023), 1-25."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1109\/ACCESS.2016.2553681"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/1273496.1273531"},{"key":"e_1_2_1_23_1","first-page":"705","article-title":"Meta-Optimized Joint Generative and Contrastive Learning for Sequential Recommendation","author":"Hao Yongjing","year":"2024","unstructured":"Yongjing Hao, Pengpeng Zhao, Junhua Fang, Jianfeng Qu, Guanfeng Liu, Fuzhen Zhuang, Victor S. Sheng, and Xiaofang Zhou. 2024. Meta-Optimized Joint Generative and Contrastive Learning for Sequential Recommendation. In ICDE. IEEE, 705-718.","journal-title":"ICDE. IEEE"},{"key":"e_1_2_1_24_1","first-page":"7537","article-title":"Coreset Sampling from Open-Set for Fine-Grained Self-Supervised Learning","author":"Kim Sungnyun","year":"2023","unstructured":"Sungnyun Kim, Sangmin Bae, and Se-Young Yun. 2023. Coreset Sampling from Open-Set for Fine-Grained Self-Supervised Learning. In CVPR. 7537-7547.","journal-title":"CVPR."},{"key":"e_1_2_1_25_1","volume-title":"Kingma and Jimmy Ba","author":"Diederik","year":"2015","unstructured":"Diederik P. Kingma and Jimmy Ba. 2015. Adam: A Method for Stochastic Optimization. In ICLR."},{"key":"e_1_2_1_26_1","first-page":"545","article-title":"Dynamic Data Selection for Curriculum Learning via Ability Estimation","volume":"2020","author":"Lalor John P.","year":"2020","unstructured":"John P. Lalor and Hong Yu. 2020. Dynamic Data Selection for Curriculum Learning via Ability Estimation. In Findings of the ACL: EMNLP 2020. 545-555.","journal-title":"Findings of the ACL: EMNLP"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1247480.1247546"},{"key":"e_1_2_1_28_1","first-page":"617","article-title":"Deep Representation Learning for Trajectory Similarity Computation","author":"Li Xiucheng","year":"2018","unstructured":"Xiucheng Li, Kaiqi Zhao, Gao Cong, Christian S. Jensen, and Wei Wei. 2018. Deep Representation Learning for Trajectory Similarity Computation. In ICDE. 617-628.","journal-title":"ICDE."},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-12098-5_3"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1109\/TIT.1982.1056489"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10618-020-00733-5"},{"key":"e_1_2_1_32_1","first-page":"175","article-title":"Active Learning for ML Enhanced Database Systems","author":"Ma Lin","year":"2020","unstructured":"Lin Ma, Bailu Ding, Sudipto Das, and Adith Swaminathan. 2020. Active Learning for ML Enhanced Database Systems. In SIGMOD. ACM, 175-191.","journal-title":"SIGMOD. ACM"},{"key":"e_1_2_1_33_1","unstructured":"Xavier Olive Luis Basora Benoit Viry and Richard Alligier. 2020. Deep trajectory clustering with autoencoders. In ICRAT."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.trc.2022.103921"},{"key":"e_1_2_1_35_1","first-page":"1","article-title":"Towards Robust Trajectory Embedding for Similarity Computation","author":"Si Jianing","year":"2025","unstructured":"Jianing Si, Haitao Yuan, Nan Jiang, Minxiao Chen, Xiao Ma, and Shangguang Wang. 2025a. Towards Robust Trajectory Embedding for Similarity Computation: When Triangle Inequality Violations in Distance Metrics Matter. In ICDE. IEEE, 1-14.","journal-title":"When Triangle Inequality Violations in Distance Metrics Matter. In ICDE. IEEE"},{"key":"e_1_2_1_36_1","first-page":"474","article-title":"Having It Both Ways","author":"Si Jianing","year":"2025","unstructured":"Jianing Si, Haitao Yuan, Xiang Li, Nan Jiang, Xiao Ma, Guoliang Li, and Shangguang Wang. 2025b. Having It Both Ways: Single Trajectory Embedding for Similarity Computation with Pairwise Learning. In ICDE. IEEE, 474-486.","journal-title":"In ICDE. IEEE"},{"key":"e_1_2_1_37_1","volume-title":"PRESS: A Novel Framework of Trajectory Compression in Road Networks. VLDB","author":"Song Renchu","year":"2014","unstructured":"Renchu Song, Weiwei Sun, Baihua Zheng, and Yu Zheng. 2014. PRESS: A Novel Framework of Trajectory Compression in Road Networks. VLDB (2014), 661-672."},{"key":"e_1_2_1_38_1","first-page":"2446","article-title":"TripSafe: Retrieving Safety-related Abnormal Trips in Real-time with Trajectory Data","author":"Su Yueyang","year":"2023","unstructured":"Yueyang Su, Di Yao, Xiaolei Zhou, Yuxuan Zhang, Yunxia Fan, Lu Bai, and Jingping Bi. 2023. TripSafe: Retrieving Safety-related Abnormal Trips in Real-time with Trajectory Data. In SIGIR. 2446-2450.","journal-title":"SIGIR."},{"key":"e_1_2_1_39_1","first-page":"673","article-title":"Discovering Similar Multidimensional Trajectories","author":"Vlachos Michail","year":"2002","unstructured":"Michail Vlachos, Dimitrios Gunopulos, and George Kollios. 2002. Discovering Similar Multidimensional Trajectories. In ICDE. 673-684.","journal-title":"ICDE."},{"key":"e_1_2_1_40_1","first-page":"1","volume-title":"CSUR","volume":"54","author":"Wang Sheng","year":"2021","unstructured":"Sheng Wang, Zhifeng Bao, J Shane Culpepper, and Gao Cong. 2021a. A survey on trajectory data management, analytics, and learning. CSUR, Vol. 54 (2021), 1-36."},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.14778\/3357377.3357380"},{"key":"e_1_2_1_42_1","first-page":"3681","article-title":"Deep learning for spatio-temporal data mining: A survey","volume":"34","author":"Wang Senzhang","year":"2020","unstructured":"Senzhang Wang, Jiannong Cao, and S Yu Philip. 2020. Deep learning for spatio-temporal data mining: A survey. TKDE, Vol. 34, 8 (2020), 3681-3700.","journal-title":"TKDE"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1109\/TITS.2020.2995856"},{"key":"e_1_2_1_44_1","volume-title":"LESS: Selecting Influential Data for Targeted Instruction Tuning. In ICML.","author":"Xia Mengzhou","year":"2024","unstructured":"Mengzhou Xia, Sadhika Malladi, Suchin Gururangan, Sanjeev Arora, and Danqi Chen. 2024. LESS: Selecting Influential Data for Targeted Instruction Tuning. In ICML."},{"key":"e_1_2_1_45_1","first-page":"1700","article-title":"TMN: Trajectory Matching Networks for Predicting Similarity","author":"Yang Peilun","year":"2022","unstructured":"Peilun Yang, Hanchen Wang, Defu Lian, Ying Zhang, Lu Qin, and Wenjie Zhang. 2022. TMN: Trajectory Matching Networks for Predicting Similarity. In ICDE. 1700-1713.","journal-title":"ICDE."},{"key":"e_1_2_1_46_1","first-page":"2183","article-title":"T3S","author":"Yang Peilun","year":"2021","unstructured":"Peilun Yang, Hanchen Wang, Ying Zhang, Lu Qin, Wenjie Zhang, and Xuemin Lin. 2021. T3S: Effective Representation Learning for Trajectory Similarity Computation. In ICDE. 2183-2188.","journal-title":"Effective Representation Learning for Trajectory Similarity Computation. In ICDE."},{"key":"e_1_2_1_47_1","volume-title":"RL-Selector: Reinforcement Learning-Guided Data Selection via Redundancy Assessment. CoRR","author":"Yang Suorong","year":"2025","unstructured":"Suorong Yang, Peijia Li, Furao Shen, and Jian Zhao. 2025. RL-Selector: Reinforcement Learning-Guided Data Selection via Redundancy Assessment. CoRR, Vol. abs\/2506.21037 (2025)."},{"key":"e_1_2_1_48_1","first-page":"1358","article-title":"Computing Trajectory Similarity in Linear Time","author":"Yao Di","year":"2019","unstructured":"Di Yao, Gao Cong, Chao Zhang, and Jingping Bi. 2019. Computing Trajectory Similarity in Linear Time: A Generic Seed-Guided Neural Metric Learning Approach. In ICDE. 1358-1369.","journal-title":"A Generic Seed-Guided Neural Metric Learning Approach. In ICDE."},{"key":"e_1_2_1_49_1","first-page":"2275","article-title":"TrajGAT","author":"Yao Di","year":"2022","unstructured":"Di Yao, Haonan Hu, Lun Du, Gao Cong, Shi Han, and Jingping Bi. 2022. TrajGAT: A Graph-based Long-term Dependency Modeling Approach for Trajectory Similarity Computation. In KDD. 2275-2285.","journal-title":"In KDD."},{"key":"e_1_2_1_50_1","first-page":"3880","article-title":"Trajectory clustering via deep representation learning","author":"Yao Di","year":"2017","unstructured":"Di Yao, Chao Zhang, Zhihua Zhu, Jian-Hui Huang, and Jingping Bi. 2017. Trajectory clustering via deep representation learning. In IJCNN. IEEE, 3880-3887.","journal-title":"IJCNN. IEEE"},{"key":"e_1_2_1_51_1","first-page":"201","article-title":"Efficient Retrieval of Similar Time Sequences Under Time Warping","author":"Yi Byoung-Kee","year":"1998","unstructured":"Byoung-Kee Yi, H. V. Jagadish, and Christos Faloutsos. 1998. Efficient Retrieval of Similar Time Sequences Under Time Warping. In ICDE. 201-208.","journal-title":"ICDE."},{"key":"e_1_2_1_52_1","unstructured":"Haitao Yuan and Gao Cong. 2026. GoodTP: Supplementary Materials and Appendix. https:\/\/github.com\/yuanhaitao\/GoodTP\/blob\/main\/appendix.pdf."},{"key":"e_1_2_1_53_1","first-page":"1262","article-title":"Distributed In-memory Trajectory Similarity Search and Join on Road Network","author":"Yuan Haitao","year":"2019","unstructured":"Haitao Yuan and Guoliang Li. 2019. Distributed In-memory Trajectory Similarity Search and Join on Road Network. In ICDE. 1262-1273.","journal-title":"ICDE."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1007\/s41019-020-00151-z"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.14778\/3570690.3570691"},{"key":"e_1_2_1_56_1","first-page":"2135","article-title":"Effective Travel Time Estimation: When Historical Trajectories over Road Networks Matter","author":"Yuan Haitao","year":"2020","unstructured":"Haitao Yuan, Guoliang Li, Zhifeng Bao, and Ling Feng. 2020. Effective Travel Time Estimation: When Historical Trajectories over Road Networks Matter. In SIGMOD. ACM, 2135-2149.","journal-title":"SIGMOD. ACM"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.patcog.2003.07.008"},{"key":"e_1_2_1_58_1","first-page":"3209","article-title":"Trajectory Similarity Learning with Auxiliary Supervision and Optimal Matching","author":"Zhang Hanyuan","year":"2020","unstructured":"Hanyuan Zhang, Xinyu Zhang, Qize Jiang, Baihua Zheng, Zhenbang Sun, Weiwei Sun, and Changhu Wang. 2020. Trajectory Similarity Learning with Auxiliary Supervision and Optimal Matching. In IJCAI. 3209-3215.","journal-title":"IJCAI."},{"key":"e_1_2_1_59_1","first-page":"1362","article-title":"Think Twice Before Imputation","author":"Zhang Jiaxuan","year":"2025","unstructured":"Jiaxuan Zhang, Haitao Yuan, Jianing Si, Nan Jiang, and Shangguang Wang. 2025. Think Twice Before Imputation: Optimizing Data Imputation Order for Machine Learning. In ICDE. IEEE, 1362-1374.","journal-title":"Optimizing Data Imputation Order for Machine Learning. In ICDE. IEEE"},{"key":"e_1_2_1_60_1","doi-asserted-by":"publisher","DOI":"10.1145\/1409635.1409677"},{"key":"e_1_2_1_61_1","doi-asserted-by":"publisher","DOI":"10.1145\/3709721"}],"container-title":["Proceedings of the ACM on Management of Data"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3802067","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,18]],"date-time":"2026-05-18T18:21:21Z","timestamp":1779128481000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3802067"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,5,18]]},"references-count":61,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2026,5,18]]}},"alternative-id":["10.1145\/3802067"],"URL":"https:\/\/doi.org\/10.1145\/3802067","relation":{},"ISSN":["2836-6573"],"issn-type":[{"value":"2836-6573","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,5,18]]}}}