{"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/discriminator-guidance-for-autoregressive","title":"Discriminator Guidance for Autoregressive Diffusion Models","arxiv_id":"2310.15817","date":"2023-10-24","proceeding":null,"authors":["Filip Ekström Kelvinius","Fredrik Lindsten"],"abstract":"We introduce discriminator guidance in the setting of Autoregressive Diffusion Models. The use of a discriminator to guide a diffusion process has previously been used for continuous diffusion models, and in this work we derive ways of using a discriminator together with a pretrained generative model in the discrete case. First, we show that using an optimal discriminator will correct the pretrained model and enable exact sampling from the underlying data distribution. Second, to account for the realistic scenario of using a sub-optimal discriminator, we derive a sequential Monte Carlo algorithm which iteratively takes the predictions from the discriminator into account during the generation process. We test these approaches on the task of generating molecular graphs and show how the discriminator improves the generative performance over using only the pretrained model.","url_abs":"https://arxiv.org/abs/2310.15817v2","url_pdf":"https://arxiv.org/pdf/2310.15817v2.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":"discriminator-guidance-for-autoregressive","repo_url":"https://github.com/filipekstrm/graph_ardm","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2310.15817","atlas_url":"https://app.syntology.ai/?focus=2310.15817","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.15817"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/filipekstrm/graph_ardm","reach":{"status":"ok"}}],"summary":{"ran":10,"unverified":3},"by_repo_kind":{"official":{"samples":13,"ran":10,"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":13,"samples":[{"code_sha256_prefix":"cec831ba3cccf111","entry":"create_graph_list","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/dataset/generated_dataset.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/dataset/generated_dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cec831ba3cccf111"}},{"code_sha256_prefix":"3d53e169e5f97a50","entry":"generate_molecule_samples","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d53e169e5f97a50"}},{"code_sha256_prefix":"7ee7433ed8812381","entry":"get_evaluation_set_path","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7ee7433ed8812381"}},{"code_sha256_prefix":"f1319c095e4e8ce7","entry":"get_included_config","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"args_and_config.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/args_and_config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f1319c095e4e8ce7"}},{"code_sha256_prefix":"ad04e89edb81eeee","entry":"get_target_dataset_size","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/dataset/dataset.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/dataset/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ad04e89edb81eeee"}},{"code_sha256_prefix":"5fc8aed0526b0cc1","entry":"graph_uniform_cross_entropy_loss","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/loss_functions.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/loss_functions.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5fc8aed0526b0cc1"}},{"code_sha256_prefix":"196615acc2d1bef7","entry":"masked_cross_entropy_per_element","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/loss_functions.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/loss_functions.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"196615acc2d1bef7"}},{"code_sha256_prefix":"24c8a1d7a7f8f493","entry":"sample_num_steps","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/ardm/graph_kernels.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/ardm/graph_kernels.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"24c8a1d7a7f8f493"}},{"code_sha256_prefix":"85832bcd5531c861","entry":"to_list","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/dataset/moses_dataset.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/dataset/moses_dataset.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"85832bcd5531c861"}},{"code_sha256_prefix":"cf3117169d46a0fb","entry":"uniquify","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/dataset/dataset.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/dataset/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cf3117169d46a0fb"}},{"code_sha256_prefix":"f61613e78442e4b2","entry":"get_dataloaders","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/dataset/dataset.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/dataset/dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f61613e78442e4b2"}},{"code_sha256_prefix":"c9aff39c3c8d9c7a","entry":"get_pretrained_checkpoint","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c9aff39c3c8d9c7a"}},{"code_sha256_prefix":"2e1c23142a1037f9","entry":"uniform_weighted_cross_entropy_loss","repo":"filipekstrm/graph_ardm","repo_kind":"official","path":"src/loss_functions.py","file_url":"https://github.com/filipekstrm/graph_ardm/blob/HEAD/src/loss_functions.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2e1c23142a1037f9"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}