{"id":18889029,"url":"https://github.com/naver/gdc","last_synced_at":"2025-04-14T23:23:35.876Z","repository":{"id":49375822,"uuid":"344746965","full_name":"naver/gdc","owner":"naver","description":"Code accompanying our papers on the \"Generative Distributional Control\" framework","archived":false,"fork":false,"pushed_at":"2022-12-07T17:29:32.000Z","size":27650,"stargazers_count":118,"open_issues_count":0,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T11:21:18.920Z","etag":null,"topics":["ai","controlled-nlg","exponential-family","fairness-ml","gpt-2","gpt3","information-geometry","language-model","machine-learning","nlg","nlp","reinforcement-learning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-05T08:39:56.000Z","updated_at":"2025-03-10T21:54:56.000Z","dependencies_parsed_at":"2023-01-24T19:19:02.309Z","dependency_job_id":null,"html_url":"https://github.com/naver/gdc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naver%2Fgdc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naver%2Fgdc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naver%2Fgdc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naver%2Fgdc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naver","download_url":"https://codeload.github.com/naver/gdc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248976230,"owners_count":21192349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","controlled-nlg","exponential-family","fairness-ml","gpt-2","gpt3","information-geometry","language-model","machine-learning","nlg","nlp","reinforcement-learning"],"created_at":"2024-11-08T07:47:10.065Z","updated_at":"2025-04-14T23:23:35.844Z","avatar_url":"https://github.com/naver.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generative Distributional Control\n\n\u003cimg src=\"https://i.imgur.com/U3KV0RI.png\"\u003e\n\nGenerative Distributional Control (GDC) is a general framework for imposing constraints on samples of pretrained language models. The constraints can be either pointwise (e.g. all samples must be non-offensive) or distributional (e.g. a specified percentage of samples must mention females).\n\nThis repo contains code accompanying the following three papers:\n* [`/dpg`](/dpg): [A Distributional Approach to Controlled Text Generation](https://arxiv.org/abs/2012.11635) (ICLR 2021)\n* [`/cdpg`](/cdpg): [Controlling Conditional Language Models without Catastrophic Forgetting](https://arxiv.org/abs/2112.00791) (ICML 2022)\n* [`/rm_vs_dm`](/rm_vs_dm): [On Reinforcement Learning and Distribution Matching for Fine-Tuning Language Models with no Catastrophic Forgetting](https://arxiv.org/abs/2206.00761) (NeurIPS 2022)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaver%2Fgdc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaver%2Fgdc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaver%2Fgdc/lists"}