{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/105475"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/105475","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Reevaluating Out-of-Distribution Generalization of Programmatic and Neural Policies through Improved Benchmarking","abstract":"Generalization to out-of-distribution (OOD) situations is a central challenge in reinforcement learning, especially in safety-critical or real-world applications. Among the different approaches, programmatic policies have gained attention for their ability to produce interpretable and compositional behavior that is believed to generalize better than neural policies. However, we argue that some of the influential papers in the literature that claim the distinction of programmatic policies over neural ones did not use proper benchmarks to this end. We take a closer look at the experimental setups of these papers and show that neural policies can achieve good generalization on the tasks chosen therein. In some cases, they even achieve better performance than the offered programmatic approaches. We achieve these results by making minor modifications in the experimental setup used, namely, using the same sparse representation for a specific benchmark as the programmatic approach, or slightly changing the reward function, which can cause the agent to display more cautious behavior. In order to test OOD generalization of programmatic vs. neural policies, we propose a proof-of-concept benchmark with properties that heavily challenge neural policies but can be solved with program synthesis approaches, such as tasks requiring algorithmic constructs like stacks. One specific example of such a benchmark is provided. In conclusion, our work shows that current benchmarks for evaluating the OOD generalization of programmatic policies are insufficient. In these settings, programmatic policies offer no inherent advantage, and neural policies can match their performance. However, we also present a case where programmatic approaches are in fact necessary.","abstract_html":"Generalization to out-of-distribution (OOD) situations is a central challenge in reinforcement learning, especially in safety-critical or real-world applications. Among the different approaches, programmatic policies have gained attention for their ability to produce interpretable and compositional behavior that is believed to generalize better than neural policies. However, we argue that some of the influential papers in the literature that claim the distinction of programmatic policies over neural ones did not use proper benchmarks to this end. We take a closer look at the experimental setups of these papers and show that neural policies can achieve good generalization on the tasks chosen therein. In some cases, they even achieve better performance than the offered programmatic approaches. We achieve these results by making minor modifications in the experimental setup used, namely, using the same sparse representation for a specific benchmark as the programmatic approach, or slightly changing the reward function, which can cause the agent to display more cautious behavior. In order to test OOD generalization of programmatic vs. neural policies, we propose a proof-of-concept benchmark with properties that heavily challenge neural policies but can be solved with program synthesis approaches, such as tasks requiring algorithmic constructs like stacks. One specific example of such a benchmark is provided. In conclusion, our work shows that current benchmarks for evaluating the OOD generalization of programmatic policies are insufficient. In these settings, programmatic policies offer no inherent advantage, and neural policies can match their performance. However, we also present a case where programmatic approaches are in fact necessary.","abstract_has_math":false,"creators":["Rajabpour, Amirhossein"],"institution":"University of Alberta","degree_name":"Master of Science","degree_level":"Master's","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Levi, Lelis (Computing Science)","Zilles, Sandra (Computer Science, University of Regina)"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-03","date_published":"2026-03","updated_at":"2026-11-26T21:59:11Z","subjects":["neural policy","programmatic policy","out-of-distribution generalization","reinforcement learning"],"languages":["en"],"rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/84124","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/84124","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F105475","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F105475","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Levi, Lelis (Computing Science)","Zilles, Sandra (Computer Science, University of Regina)"]},{"key":"dc:creator","label":"Author","values":["Rajabpour, Amirhossein"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-03-16T15:05:54Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-03"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["neural policy","programmatic policy","out-of-distribution generalization","reinforcement learning"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/84124"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Generalization to out-of-distribution (OOD) situations is a central challenge in reinforcement learning, especially in safety-critical or real-world applications. Among the different approaches, programmatic policies have gained attention for their ability to produce interpretable and compositional behavior that is believed to generalize better than neural policies. However, we argue that some of the influential papers in the literature that claim the distinction of programmatic policies over neural ones did not use proper benchmarks to this end. We take a closer look at the experimental setups of these papers and show that neural policies can achieve good generalization on the tasks chosen therein. In some cases, they even achieve better performance than the offered programmatic approaches. We achieve these results by making minor modifications in the experimental setup used, namely, using the same sparse representation for a specific benchmark as the programmatic approach, or slightly changing the reward function, which can cause the agent to display more cautious behavior. In order to test OOD generalization of programmatic vs. neural policies, we propose a proof-of-concept benchmark with properties that heavily challenge neural policies but can be solved with program synthesis approaches, such as tasks requiring algorithmic constructs like stacks. One specific example of such a benchmark is provided. In conclusion, our work shows that current benchmarks for evaluating the OOD generalization of programmatic policies are insufficient. In these settings, programmatic policies offer no inherent advantage, and neural policies can match their performance. However, we also present a case where programmatic approaches are in fact necessary."]},{"key":"dc:title","label":"Title","values":["Reevaluating Out-of-Distribution Generalization of Programmatic and Neural Policies through Improved Benchmarking"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Levi, Lelis (Computing Science)","Zilles, Sandra (Computer Science, University of Regina)"],"dc:creator":["Rajabpour, Amirhossein"],"dc:date.accessioned":["2026-03-16T15:05:54Z"],"dc:date.issued":["2026-03"],"dc:description.abstract":["Generalization to out-of-distribution (OOD) situations is a central challenge in reinforcement learning, especially in safety-critical or real-world applications. Among the different approaches, programmatic policies have gained attention for their ability to produce interpretable and compositional behavior that is believed to generalize better than neural policies. However, we argue that some of the influential papers in the literature that claim the distinction of programmatic policies over neural ones did not use proper benchmarks to this end. We take a closer look at the experimental setups of these papers and show that neural policies can achieve good generalization on the tasks chosen therein. In some cases, they even achieve better performance than the offered programmatic approaches. We achieve these results by making minor modifications in the experimental setup used, namely, using the same sparse representation for a specific benchmark as the programmatic approach, or slightly changing the reward function, which can cause the agent to display more cautious behavior. In order to test OOD generalization of programmatic vs. neural policies, we propose a proof-of-concept benchmark with properties that heavily challenge neural policies but can be solved with program synthesis approaches, such as tasks requiring algorithmic constructs like stacks. One specific example of such a benchmark is provided. In conclusion, our work shows that current benchmarks for evaluating the OOD generalization of programmatic policies are insufficient. In these settings, programmatic policies offer no inherent advantage, and neural policies can match their performance. However, we also present a case where programmatic approaches are in fact necessary."],"dc:identifier.doi":["https://doi.org/10.7939/84124"],"dc:language.iso":["en"],"dc:rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"dc:subject":["neural policy","programmatic policy","out-of-distribution generalization","reinforcement learning"],"dc:title":["Reevaluating Out-of-Distribution Generalization of Programmatic and Neural Policies through Improved Benchmarking"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T21:59:11Z"}