{"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/masked-autoencoding-for-scalable-and","title":"Masked Autoencoding for Scalable and Generalizable Decision Making","arxiv_id":"2211.12740","date":"2022-11-23","proceeding":null,"authors":["Fangchen Liu","Hao liu","Aditya Grover","Pieter Abbeel"],"abstract":"We are interested in learning scalable agents for reinforcement learning that can learn from large-scale, diverse sequential data similar to current large vision and language models. To this end, this paper presents masked decision prediction (MaskDP), a simple and scalable self-supervised pretraining method for reinforcement learning (RL) and behavioral cloning (BC). In our MaskDP approach, we employ a masked autoencoder (MAE) to state-action trajectories, wherein we randomly mask state and action tokens and reconstruct the missing data. By doing so, the model is required to infer masked-out states and actions and extract information about dynamics. We find that masking different proportions of the input sequence significantly helps with learning a better model that generalizes well to multiple downstream tasks. In our empirical study, we find that a MaskDP model gains the capability of zero-shot transfer to new BC tasks, such as single and multiple goal reaching, and it can zero-shot infer skills from a few example transitions. In addition, MaskDP transfers well to offline RL and shows promising scaling behavior w.r.t. to model size. It is amenable to data-efficient finetuning, achieving competitive results with prior methods based on autoregressive pretraining.","url_abs":"https://arxiv.org/abs/2211.12740v2","url_pdf":"https://arxiv.org/pdf/2211.12740v2.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":"masked-autoencoding-for-scalable-and","repo_url":"https://github.com/fangchenliu/maskdp_public","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"decision-making","task_name":"Decision Making"},{"task_slug":"offline-rl","task_name":"Offline RL"},{"task_slug":"reinforcement-learning","task_name":"Reinforcement Learning"},{"task_slug":"reinforcement-learning-1","task_name":"Reinforcement Learning (RL)"},{"task_slug":"reinforcement-learning-2","task_name":"reinforcement-learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2211.12740","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2211.12740"}},"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/fangchenliu/maskdp_public","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"ran_honours":1,"ran_draft_wrong":2,"unverified":6},"by_repo_kind":{"official":{"samples":11,"ran":5,"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":"9f840a22d31a89bc","entry":"episode_len","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"replay_buffer.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/replay_buffer.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9f840a22d31a89bc"}},{"code_sha256_prefix":"70dca85dd02d2ba1","entry":"get_data_seed","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"finetune_rl.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/finetune_rl.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"70dca85dd02d2ba1"}},{"code_sha256_prefix":"41404a565ac3bb46","entry":"get_domain","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"finetune_rl.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/finetune_rl.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"41404a565ac3bb46"}},{"code_sha256_prefix":"2478bb95b38ef24f","entry":"grad_norm","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"utils.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2478bb95b38ef24f"}},{"code_sha256_prefix":"6244e9922f4e0610","entry":"to_torch","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"utils.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6244e9922f4e0610"}},{"code_sha256_prefix":"e66c36c3752c3cc0","entry":"get_dir","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"finetune_rl.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/finetune_rl.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":"e66c36c3752c3cc0"}},{"code_sha256_prefix":"0301e8cc4db9d2e6","entry":"get_dir","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"eval_prompt.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/eval_prompt.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":"0301e8cc4db9d2e6"}},{"code_sha256_prefix":"61b5554cde1da5c2","entry":"get_dir","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"pretrain.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/pretrain.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":"61b5554cde1da5c2"}},{"code_sha256_prefix":"97295335ee3ffb90","entry":"get_norm","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"utils.py","file_url":"https://github.com/fangchenliu/maskdp_public/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":"97295335ee3ffb90"}},{"code_sha256_prefix":"d0e5c81d1790377f","entry":"load_episode","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"replay_buffer.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/replay_buffer.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":"d0e5c81d1790377f"}},{"code_sha256_prefix":"b5236e0bf3c8cc38","entry":"relable_episode","repo":"fangchenliu/maskdp_public","repo_kind":"official","path":"replay_buffer.py","file_url":"https://github.com/fangchenliu/maskdp_public/blob/HEAD/replay_buffer.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":"b5236e0bf3c8cc38"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}