{"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/adversarial-option-aware-hierarchical","title":"Adversarial Option-Aware Hierarchical Imitation Learning","arxiv_id":"2106.05530","date":"2021-06-10","proceeding":null,"authors":["Mingxuan Jing","Wenbing Huang","Fuchun Sun","Xiaojian Ma","Tao Kong","Chuang Gan","Lei LI"],"abstract":"It has been a challenge to learning skills for an agent from long-horizon unannotated demonstrations. Existing approaches like Hierarchical Imitation Learning(HIL) are prone to compounding errors or suboptimal solutions. In this paper, we propose Option-GAIL, a novel method to learn skills at long horizon. The key idea of Option-GAIL is modeling the task hierarchy by options and train the policy via generative adversarial optimization. In particular, we propose an Expectation-Maximization(EM)-style algorithm: an E-step that samples the options of expert conditioned on the current learned policy, and an M-step that updates the low- and high-level policies of agent simultaneously to minimize the newly proposed option-occupancy measurement between the expert and the agent. We theoretically prove the convergence of the proposed algorithm. Experiments show that Option-GAIL outperforms other counterparts consistently across a variety of tasks.","url_abs":"https://arxiv.org/abs/2106.05530v2","url_pdf":"https://arxiv.org/pdf/2106.05530v2.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":"adversarial-option-aware-hierarchical","repo_url":"https://github.com/id9502/Option-GAIL","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"imitation-learning","task_name":"Imitation Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2106.05530","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.05530"}},"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/id9502/Option-GAIL","reach":null}],"summary":{"ran":3,"ran_draft_wrong":4,"unverified":1},"by_repo_kind":{"official":{"samples":8,"ran":7,"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":"9972b67b3e225cd8","entry":"Config","repo":"id9502/Option-GAIL","repo_kind":"official","path":"model/option_gail.py","file_url":"https://github.com/id9502/Option-GAIL/blob/HEAD/model/option_gail.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9972b67b3e225cd8"}},{"code_sha256_prefix":"cb69610d67b430f0","entry":"OptionDiscriminator","repo":"id9502/Option-GAIL","repo_kind":"official","path":"model/option_gail.py","file_url":"https://github.com/id9502/Option-GAIL/blob/HEAD/model/option_gail.py","link_basis":"first_harvest_node","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":"cb69610d67b430f0"}},{"code_sha256_prefix":"03ee444c467aa8b2","entry":"OptionPolicy","repo":"id9502/Option-GAIL","repo_kind":"official","path":"model/option_gail.py","file_url":"https://github.com/id9502/Option-GAIL/blob/HEAD/model/option_gail.py","link_basis":"first_harvest_node","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":"03ee444c467aa8b2"}},{"code_sha256_prefix":"57fbf4ad5560672d","entry":"init_layer","repo":"id9502/Option-GAIL","repo_kind":"official","path":"model/option_gail.py","file_url":"https://github.com/id9502/Option-GAIL/blob/HEAD/model/option_gail.py","link_basis":"first_harvest_node","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":"57fbf4ad5560672d"}},{"code_sha256_prefix":"ce2ec8da5152b34e","entry":"make_activation","repo":"id9502/Option-GAIL","repo_kind":"official","path":"model/option_gail.py","file_url":"https://github.com/id9502/Option-GAIL/blob/HEAD/model/option_gail.py","link_basis":"first_harvest_node","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":"ce2ec8da5152b34e"}},{"code_sha256_prefix":"04e7d7340bbcb048","entry":"make_module","repo":"id9502/Option-GAIL","repo_kind":"official","path":"model/option_gail.py","file_url":"https://github.com/id9502/Option-GAIL/blob/HEAD/model/option_gail.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"04e7d7340bbcb048"}},{"code_sha256_prefix":"836c1844c1eed5ab","entry":"make_module_list","repo":"id9502/Option-GAIL","repo_kind":"official","path":"model/option_gail.py","file_url":"https://github.com/id9502/Option-GAIL/blob/HEAD/model/option_gail.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"836c1844c1eed5ab"}},{"code_sha256_prefix":"5a8ebbdfe4f7b701","entry":"OptionGAIL","repo":"id9502/Option-GAIL","repo_kind":"official","path":"model/option_gail.py","file_url":"https://github.com/id9502/Option-GAIL/blob/HEAD/model/option_gail.py","link_basis":"first_harvest_node","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":"5a8ebbdfe4f7b701"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}