{"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/social-implicit-rethinking-trajectory","title":"Social-Implicit: Rethinking Trajectory Prediction Evaluation and The Effectiveness of Implicit Maximum Likelihood Estimation","arxiv_id":"2203.03057","date":"2022-03-06","proceeding":null,"authors":["Abduallah Mohamed","Deyao Zhu","Warren Vu","Mohamed Elhoseiny","Christian Claudel"],"abstract":"Best-of-N (BoN) Average Displacement Error (ADE)/ Final Displacement Error (FDE) is the most used metric for evaluating trajectory prediction models. Yet, the BoN does not quantify the whole generated samples, resulting in an incomplete view of the model's prediction quality and performance. We propose a new metric, Average Mahalanobis Distance (AMD) to tackle this issue. AMD is a metric that quantifies how close the whole generated samples are to the ground truth. We also introduce the Average Maximum Eigenvalue (AMV) metric that quantifies the overall spread of the predictions. Our metrics are validated empirically by showing that the ADE/FDE is not sensitive to distribution shifts, giving a biased sense of accuracy, unlike the AMD/AMV metrics. We introduce the usage of Implicit Maximum Likelihood Estimation (IMLE) as a replacement for traditional generative models to train our model, Social-Implicit. IMLE training mechanism aligns with AMD/AMV objective of predicting trajectories that are close to the ground truth with a tight spread. Social-Implicit is a memory efficient deep model with only 5.8K parameters that runs in real time of about 580Hz and achieves competitive results. Interactive demo of the problem can be seen at https://www.abduallahmohamed.com/social-implicit-amdamv-adefde-demo . Code is available at https://github.com/abduallahmohamed/Social-Implicit .","url_abs":"https://arxiv.org/abs/2203.03057v2","url_pdf":"https://arxiv.org/pdf/2203.03057v2.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":"social-implicit-rethinking-trajectory","repo_url":"https://github.com/abduallahmohamed/social-implicit","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"human-motion-prediction","task_name":"Human motion prediction"},{"task_slug":"multi-future-trajectory-prediction","task_name":"Multi-future Trajectory Prediction"},{"task_slug":"pedestrian-trajectory-prediction","task_name":"Pedestrian Trajectory Prediction"},{"task_slug":"trajectory-prediction","task_name":"Trajectory Prediction"},{"task_slug":"motion-prediction","task_name":"motion prediction"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/trajectory-prediction-on-eth","task":"Trajectory Prediction","dataset":"ETH","model":"Social-Implicit","rank_in_archive_order":1,"of":5,"metrics":{"Avg AMD/AMV 8/12":"0.90"},"uses_additional_data":false},{"leaderboard":"/sota/trajectory-prediction-on-ethucy","task":"Trajectory Prediction","dataset":"ETH/UCY","model":"Social-Implicit","rank_in_archive_order":14,"of":20,"metrics":{"ADE-8/12":"0.33","FDE-8/12":"0.33"},"uses_additional_data":false},{"leaderboard":"/sota/trajectory-prediction-on-stanford-drone","task":"Trajectory Prediction","dataset":"Stanford Drone","model":"Social-Implicit","rank_in_archive_order":22,"of":24,"metrics":{"ADE (in world coordinates)":"0.47","AMD":"2.83","AMV":"0.077","Avg AMD/AMV 8/12":"1.45","FDE (in world coordinates)":"0.89"},"uses_additional_data":false},{"leaderboard":"/sota/trajectory-prediction-on-ucy","task":"Trajectory Prediction","dataset":"UCY","model":"Social-Implicit","rank_in_archive_order":1,"of":1,"metrics":{"Avg AMD/AMV 8/12":"0.90"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2203.03057","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2203.03057"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/abduallahmohamed/social-implicit","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"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":"8fa690d6645c903e","entry":"ade","repo":"abduallahmohamed/social-implicit","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/abduallahmohamed/social-implicit/blob/HEAD/metrics.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":"8fa690d6645c903e"}},{"code_sha256_prefix":"56c3d21e5a44de5d","entry":"anorm","repo":"abduallahmohamed/social-implicit","repo_kind":"official","path":"utils.py","file_url":"https://github.com/abduallahmohamed/social-implicit/blob/HEAD/utils.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":"56c3d21e5a44de5d"}},{"code_sha256_prefix":"674f839b802fae47","entry":"calc_amd_amv","repo":"abduallahmohamed/social-implicit","repo_kind":"official","path":"amd_amv_kde_metrics.py","file_url":"https://github.com/abduallahmohamed/social-implicit/blob/HEAD/amd_amv_kde_metrics.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":"674f839b802fae47"}},{"code_sha256_prefix":"008d22e2efe19b01","entry":"fde","repo":"abduallahmohamed/social-implicit","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/abduallahmohamed/social-implicit/blob/HEAD/metrics.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":"008d22e2efe19b01"}},{"code_sha256_prefix":"5c4441f4494356e4","entry":"get_best_gmm","repo":"abduallahmohamed/social-implicit","repo_kind":"official","path":"amd_amv_kde_metrics.py","file_url":"https://github.com/abduallahmohamed/social-implicit/blob/HEAD/amd_amv_kde_metrics.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":"5c4441f4494356e4"}},{"code_sha256_prefix":"689442dad892f87a","entry":"mahalanobis_d","repo":"abduallahmohamed/social-implicit","repo_kind":"official","path":"amd_amv_kde_metrics.py","file_url":"https://github.com/abduallahmohamed/social-implicit/blob/HEAD/amd_amv_kde_metrics.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":"689442dad892f87a"}},{"code_sha256_prefix":"48470836236aa9df","entry":"poly_fit","repo":"abduallahmohamed/social-implicit","repo_kind":"official","path":"utils.py","file_url":"https://github.com/abduallahmohamed/social-implicit/blob/HEAD/utils.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":"48470836236aa9df"}},{"code_sha256_prefix":"57cbf3b487e64b42","entry":"seq_to_graph","repo":"abduallahmohamed/social-implicit","repo_kind":"official","path":"utils.py","file_url":"https://github.com/abduallahmohamed/social-implicit/blob/HEAD/utils.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":"57cbf3b487e64b42"}},{"code_sha256_prefix":"c35f811b4fcb5e26","entry":"seq_to_nodes","repo":"abduallahmohamed/social-implicit","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/abduallahmohamed/social-implicit/blob/HEAD/metrics.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":"c35f811b4fcb5e26"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}