{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/motion-transformer-with-global-intention","title":"Motion Transformer with Global Intention Localization and Local Movement Refinement","arxiv_id":"2209.13508","date":"2022-09-27","proceeding":null,"authors":["Shaoshuai Shi","Li Jiang","Dengxin Dai","Bernt Schiele"],"abstract":"Predicting multimodal future behavior of traffic participants is essential for robotic vehicles to make safe decisions. Existing works explore to directly predict future trajectories based on latent features or utilize dense goal candidates to identify agent's destinations, where the former strategy converges slowly since all motion modes are derived from the same feature while the latter strategy has efficiency issue since its performance highly relies on the density of goal candidates. In this paper, we propose Motion TRansformer (MTR) framework that models motion prediction as the joint optimization of global intention localization and local movement refinement. Instead of using goal candidates, MTR incorporates spatial intention priors by adopting a small set of learnable motion query pairs. Each motion query pair takes charge of trajectory prediction and refinement for a specific motion mode, which stabilizes the training process and facilitates better multimodal predictions. Experiments show that MTR achieves state-of-the-art performance on both the marginal and joint motion prediction challenges, ranking 1st on the leaderboards of Waymo Open Motion Dataset. The source code is available at https://github.com/sshaoshuai/MTR.","url_abs":"https://arxiv.org/abs/2209.13508v2","url_pdf":"https://arxiv.org/pdf/2209.13508v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"motion-transformer-with-global-intention","repo_url":"https://github.com/sshaoshuai/mtr","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"motion-transformer-with-global-intention","repo_url":"https://github.com/kit-mrt/future-motion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"motion-transformer-with-global-intention","repo_url":"https://github.com/nikeke19/safe-mult-rl","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"trajectory-prediction","task_name":"Trajectory Prediction"},{"task_slug":"motion-prediction","task_name":"motion prediction"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2209.13508","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2209.13508"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/sshaoshuai/MTR","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kit-mrt/future-motion","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sshaoshuai/mtr","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nikeke19/safe-mult-rl","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":1,"ran_draft_wrong":2,"unverified":12},"by_repo_kind":{"official":{"samples":9,"ran":3,"repositories":1},"listed":{"samples":6,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"bf37b15e57f20352","entry":"KNNBatchMlogK","repo":"sshaoshuai/mtr","repo_kind":"official","path":"mtr/models/model.py","file_url":"https://github.com/sshaoshuai/mtr/blob/HEAD/mtr/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bf37b15e57f20352"}},{"code_sha256_prefix":"782add5288aad78d","entry":"gen_sineembed_for_position","repo":"sshaoshuai/mtr","repo_kind":"official","path":"mtr/models/model.py","file_url":"https://github.com/sshaoshuai/mtr/blob/HEAD/mtr/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"782add5288aad78d"}},{"code_sha256_prefix":"dd2ec4aa98275a9c","entry":"get_batch_offsets","repo":"sshaoshuai/mtr","repo_kind":"official","path":"mtr/models/model.py","file_url":"https://github.com/sshaoshuai/mtr/blob/HEAD/mtr/models/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dd2ec4aa98275a9c"}},{"code_sha256_prefix":"8a85662bb5ec0dc5","entry":"MTREncoder","repo":"sshaoshuai/mtr","repo_kind":"official","path":"mtr/models/model.py","file_url":"https://github.com/sshaoshuai/mtr/blob/HEAD/mtr/models/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8a85662bb5ec0dc5"}},{"code_sha256_prefix":"665e8b6ad3555cad","entry":"MotionTransformer","repo":"sshaoshuai/mtr","repo_kind":"official","path":"mtr/models/model.py","file_url":"https://github.com/sshaoshuai/mtr/blob/HEAD/mtr/models/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"665e8b6ad3555cad"}},{"code_sha256_prefix":"50efe8caae662527","entry":"PointNetPolylineEncoder","repo":"sshaoshuai/mtr","repo_kind":"official","path":"mtr/models/model.py","file_url":"https://github.com/sshaoshuai/mtr/blob/HEAD/mtr/models/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"50efe8caae662527"}},{"code_sha256_prefix":"7e91726a274c25bd","entry":"TransformerEncoderLayer","repo":"sshaoshuai/mtr","repo_kind":"official","path":"mtr/models/model.py","file_url":"https://github.com/sshaoshuai/mtr/blob/HEAD/mtr/models/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7e91726a274c25bd"}},{"code_sha256_prefix":"3fd13269f02df5ec","entry":"build_context_encoder","repo":"sshaoshuai/mtr","repo_kind":"official","path":"mtr/models/model.py","file_url":"https://github.com/sshaoshuai/mtr/blob/HEAD/mtr/models/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3fd13269f02df5ec"}},{"code_sha256_prefix":"d58bf6e2a10e7518","entry":"build_logdir","repo":"nikeke19/safe-mult-rl","repo_kind":"listed","path":"builders/log_dir_builder.py","file_url":"https://github.com/nikeke19/safe-mult-rl/blob/HEAD/builders/log_dir_builder.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d58bf6e2a10e7518"}},{"code_sha256_prefix":"2645dd2d2d34fdcb","entry":"build_motion_decoder","repo":"sshaoshuai/mtr","repo_kind":"official","path":"mtr/models/model.py","file_url":"https://github.com/sshaoshuai/mtr/blob/HEAD/mtr/models/model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2645dd2d2d34fdcb"}},{"code_sha256_prefix":"e1bebfaa850ab645","entry":"compute_advantage","repo":"nikeke19/safe-mult-rl","repo_kind":"listed","path":"models/common/buffers.py","file_url":"https://github.com/nikeke19/safe-mult-rl/blob/HEAD/models/common/buffers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e1bebfaa850ab645"}},{"code_sha256_prefix":"dd07c43e5f8af3a4","entry":"compute_critic_targets","repo":"nikeke19/safe-mult-rl","repo_kind":"listed","path":"models/common/buffers.py","file_url":"https://github.com/nikeke19/safe-mult-rl/blob/HEAD/models/common/buffers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd07c43e5f8af3a4"}},{"code_sha256_prefix":"55d554f49065505f","entry":"compute_safety_critic_targets","repo":"nikeke19/safe-mult-rl","repo_kind":"listed","path":"models/common/buffers.py","file_url":"https://github.com/nikeke19/safe-mult-rl/blob/HEAD/models/common/buffers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"55d554f49065505f"}},{"code_sha256_prefix":"d29d29c816b2ad92","entry":"demo_heuristic_lander","repo":"nikeke19/safe-mult-rl","repo_kind":"listed","path":"envs/lunar_lander.py","file_url":"https://github.com/nikeke19/safe-mult-rl/blob/HEAD/envs/lunar_lander.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d29d29c816b2ad92"}},{"code_sha256_prefix":"858e421dc259e10b","entry":"heuristic","repo":"nikeke19/safe-mult-rl","repo_kind":"listed","path":"envs/lunar_lander.py","file_url":"https://github.com/nikeke19/safe-mult-rl/blob/HEAD/envs/lunar_lander.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"858e421dc259e10b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}