Constrained Program Inference Using Metropolis-Hastings Sampling
dc.contributor.advisor | Jermaine, Christopher | en_US |
dc.creator | Chilukuri, Meghana Vasudha Oris | en_US |
dc.date.accessioned | 2021-05-03T19:29:28Z | en_US |
dc.date.available | 2021-05-03T19:29:28Z | en_US |
dc.date.created | 2021-05 | en_US |
dc.date.issued | 2021-04-30 | en_US |
dc.date.submitted | May 2021 | en_US |
dc.date.updated | 2021-05-03T19:29:28Z | en_US |
dc.description.abstract | Conditional Program Generation (CPG) is a Sketch program generation technique that uses clues given by the user to generate the required Sketch. The CPG model generates a Sketch by sampling from the learned probability distribution P(sketch|clues). However, it cannot guarantee that the generated Sketch will incorporate all of the given clues. In practice, we find that when the CPG model assigns vanishingly low probabilities to every Sketch program in the Sketch program space that incorporates all of the given clues, it often returns a high-probability Sketch program that does not contain the clues. Such scenarios arise when the user wants to generate a novel program and gives clues that are significantly different from any set of clues the model was trained on. In this thesis, we introduce Constrained Program Inference (CPI), a method that treats constrained Sketch program generation as an inference problem, rather than a training problem. It guarantees every generated program will incorporate all of the given clues. Our method uses the Metropolis- Hastings algorithm to treat clues as hard constraints, thus enabling CPI to generate novel programs. We find that CPI is able to produce higher-quality programs than CPG. | en_US |
dc.format.mimetype | application/pdf | en_US |
dc.identifier.citation | Chilukuri, Meghana Vasudha Oris. "Constrained Program Inference Using Metropolis-Hastings Sampling." (2021) Master’s Thesis, Rice University. <a href="https://hdl.handle.net/1911/110375">https://hdl.handle.net/1911/110375</a>. | en_US |
dc.identifier.uri | https://hdl.handle.net/1911/110375 | en_US |
dc.language.iso | eng | en_US |
dc.rights | Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder. | en_US |
dc.subject | program synthesis | en_US |
dc.subject | metropolis-hastings | en_US |
dc.subject | sketch generation | en_US |
dc.title | Constrained Program Inference Using Metropolis-Hastings Sampling | en_US |
dc.type | Thesis | en_US |
dc.type.material | Text | en_US |
thesis.degree.department | Computer Science | en_US |
thesis.degree.discipline | Engineering | en_US |
thesis.degree.grantor | Rice University | en_US |
thesis.degree.level | Masters | en_US |
thesis.degree.major | Program Synthesis | en_US |
thesis.degree.name | Master of Science | en_US |
Files
Original bundle
1 - 1 of 1
Loading...
- Name:
- CHILUKURI-DOCUMENT-2021.pdf
- Size:
- 9.73 MB
- Format:
- Adobe Portable Document Format