{"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/goal-driven-self-attentive-recurrent-networks","title":"Goal-driven Self-Attentive Recurrent Networks for Trajectory Prediction","arxiv_id":"2204.11561","date":"2022-04-25","proceeding":null,"authors":["Luigi Filippo Chiara","Pasquale Coscia","Sourav Das","Simone Calderara","Rita Cucchiara","Lamberto Ballan"],"abstract":"Human trajectory forecasting is a key component of autonomous vehicles, social-aware robots and advanced video-surveillance applications. This challenging task typically requires knowledge about past motion, the environment and likely destination areas. In this context, multi-modality is a fundamental aspect and its effective modeling can be beneficial to any architecture. Inferring accurate trajectories is nevertheless challenging, due to the inherently uncertain nature of the future. To overcome these difficulties, recent models use different inputs and propose to model human intentions using complex fusion mechanisms. In this respect, we propose a lightweight attention-based recurrent backbone that acts solely on past observed positions. Although this backbone already provides promising results, we demonstrate that its prediction accuracy can be improved considerably when combined with a scene-aware goal-estimation module. To this end, we employ a common goal module, based on a U-Net architecture, which additionally extracts semantic information to predict scene-compliant destinations. We conduct extensive experiments on publicly-available datasets (i.e. SDD, inD, ETH/UCY) and show that our approach performs on par with state-of-the-art techniques while reducing model complexity.","url_abs":"https://arxiv.org/abs/2204.11561v1","url_pdf":"https://arxiv.org/pdf/2204.11561v1.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":"goal-driven-self-attentive-recurrent-networks","repo_url":"https://github.com/luigifilippochiara/Goal-SAR","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"autonomous-vehicles","task_name":"Autonomous Vehicles"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"trajectory-forecasting","task_name":"Trajectory Forecasting"},{"task_slug":"trajectory-prediction","task_name":"Trajectory Prediction"}],"methods":[{"method_slug":"concatenated-skip-connection","method_name":"Concatenated Skip Connection"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"max-pooling","method_name":"Max Pooling"},{"method_slug":"relu","method_name":"ReLU"},{"method_slug":"u-net","method_name":"U-Net"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.11561","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.11561"}},"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/luigifilippochiara/Goal-SAR","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":17},"by_repo_kind":{"official":{"samples":17,"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":"2b4360c86f098dbe","entry":"ADE_best_of","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/metrics.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/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":"2b4360c86f098dbe"}},{"code_sha256_prefix":"aaa355270e781d8a","entry":"BCE_loss_sample","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/losses.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/losses.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":"aaa355270e781d8a"}},{"code_sha256_prefix":"7715545c03b6e0dd","entry":"FDE_best_of","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/metrics.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/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":"7715545c03b6e0dd"}},{"code_sha256_prefix":"45fd898892ba2496","entry":"Goal_BCE_loss","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/losses.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/losses.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":"45fd898892ba2496"}},{"code_sha256_prefix":"5dd5988bfbd47cc3","entry":"MSE_loss","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/losses.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/losses.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":"5dd5988bfbd47cc3"}},{"code_sha256_prefix":"2eb7cc0d4aca658a","entry":"check_and_add_additional_args","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/parser.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/parser.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":"2eb7cc0d4aca658a"}},{"code_sha256_prefix":"daac15363c345ceb","entry":"compute_metric_mask","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/metrics.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/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":"daac15363c345ceb"}},{"code_sha256_prefix":"81236cafc46b4e11","entry":"compute_term","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/parser.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/parser.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":"81236cafc46b4e11"}},{"code_sha256_prefix":"d3f3d5f739da0c8f","entry":"get_dataloader","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/data_loader.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/data_loader.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":"d3f3d5f739da0c8f"}},{"code_sha256_prefix":"b7c2f3ef3135a983","entry":"is_legitimate_traj","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/data_pre_process.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/data_pre_process.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":"b7c2f3ef3135a983"}},{"code_sha256_prefix":"fba0e99a69709c33","entry":"is_power_of_two","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/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":"fba0e99a69709c33"}},{"code_sha256_prefix":"2a6d9ff5181be851","entry":"load_args","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/parser.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/parser.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":"2a6d9ff5181be851"}},{"code_sha256_prefix":"665b9e99a83e511e","entry":"pixel2world_numpy","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/data_src/data_utils.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/data_src/data_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":"665b9e99a83e511e"}},{"code_sha256_prefix":"ed295e9fe1e58373","entry":"split_at_fragment_lambda","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/data_src/data_utils.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/data_src/data_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":"ed295e9fe1e58373"}},{"code_sha256_prefix":"e7d27a57b83c42b8","entry":"str2bool","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/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":"e7d27a57b83c42b8"}},{"code_sha256_prefix":"c8eca73e83667851","entry":"strOrNone","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/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":"c8eca73e83667851"}},{"code_sha256_prefix":"e122daf238c6c1d4","entry":"world2pixel_numpy","repo":"luigifilippochiara/Goal-SAR","repo_kind":"official","path":"src/data_src/data_utils.py","file_url":"https://github.com/luigifilippochiara/Goal-SAR/blob/HEAD/src/data_src/data_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":"e122daf238c6c1d4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}