Resource-guided Program Synthesis. Knoth, T., Wang, D., Polikarpova, N., & Hoffmann, J. In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation, of PLDI 2019, pages 253–268, New York, NY, USA, 2019. ACM. ZSCC: 0000001 event-place: Phoenix, AZ, USA
Paper doi abstract bibtex This article presents resource-guided synthesis, a technique for synthesizing recursive programs that satisfy both a functional specification and a symbolic resource bound. The technique is type-directed and rests upon a novel type system that combines polymorphic refinement types with potential annotations of automatic amortized resource analysis. The type system enables efficient constraint-based type checking and can express precise refinement-based resource bounds. The proof of type soundness shows that synthesized programs are correct by construction. By tightly integrating program exploration and type checking, the synthesizer can leverage the user-provided resource bound to guide the search, eagerly rejecting incomplete programs that consume too many resources. An implementation in the resource-guided synthesizer ReSyn is used to evaluate the technique on a range of recursive data structure manipulations. The experiments show that ReSyn synthesizes programs that are asymptotically more efficient than those generated by a resource-agnostic synthesizer. Moreover, synthesis with ReSyn is faster than a naive combination of synthesis and resource analysis. ReSyn is also able to generate implementations that have a constant resource consumption for fixed input sizes, which can be used to mitigate side-channel attacks.
@inproceedings{knoth_resource-guided_2019,
address = {New York, NY, USA},
series = {{PLDI} 2019},
title = {Resource-guided {Program} {Synthesis}},
isbn = {978-1-4503-6712-7},
url = {http://doi.acm.org/10.1145/3314221.3314602},
doi = {10/ggb9gj},
abstract = {This article presents resource-guided synthesis, a technique for synthesizing recursive programs that satisfy both a functional specification and a symbolic resource bound. The technique is type-directed and rests upon a novel type system that combines polymorphic refinement types with potential annotations of automatic amortized resource analysis. The type system enables efficient constraint-based type checking and can express precise refinement-based resource bounds. The proof of type soundness shows that synthesized programs are correct by construction. By tightly integrating program exploration and type checking, the synthesizer can leverage the user-provided resource bound to guide the search, eagerly rejecting incomplete programs that consume too many resources. An implementation in the resource-guided synthesizer ReSyn is used to evaluate the technique on a range of recursive data structure manipulations. The experiments show that ReSyn synthesizes programs that are asymptotically more efficient than those generated by a resource-agnostic synthesizer. Moreover, synthesis with ReSyn is faster than a naive combination of synthesis and resource analysis. ReSyn is also able to generate implementations that have a constant resource consumption for fixed input sizes, which can be used to mitigate side-channel attacks.},
urldate = {2019-11-01},
booktitle = {Proceedings of the 40th {ACM} {SIGPLAN} {Conference} on {Programming} {Language} {Design} and {Implementation}},
publisher = {ACM},
author = {Knoth, Tristan and Wang, Di and Polikarpova, Nadia and Hoffmann, Jan},
year = {2019},
note = {ZSCC: 0000001
event-place: Phoenix, AZ, USA},
keywords = {Automated Amortized Resource Analysis, Program Synthesis, Refinement Types},
pages = {253--268}
}
Downloads: 0
{"_id":"qYg56RxTTtYdkaymb","bibbaseid":"knoth-wang-polikarpova-hoffmann-resourceguidedprogramsynthesis-2019","authorIDs":[],"author_short":["Knoth, T.","Wang, D.","Polikarpova, N.","Hoffmann, J."],"bibdata":{"bibtype":"inproceedings","type":"inproceedings","address":"New York, NY, USA","series":"PLDI 2019","title":"Resource-guided Program Synthesis","isbn":"978-1-4503-6712-7","url":"http://doi.acm.org/10.1145/3314221.3314602","doi":"10/ggb9gj","abstract":"This article presents resource-guided synthesis, a technique for synthesizing recursive programs that satisfy both a functional specification and a symbolic resource bound. The technique is type-directed and rests upon a novel type system that combines polymorphic refinement types with potential annotations of automatic amortized resource analysis. The type system enables efficient constraint-based type checking and can express precise refinement-based resource bounds. The proof of type soundness shows that synthesized programs are correct by construction. By tightly integrating program exploration and type checking, the synthesizer can leverage the user-provided resource bound to guide the search, eagerly rejecting incomplete programs that consume too many resources. An implementation in the resource-guided synthesizer ReSyn is used to evaluate the technique on a range of recursive data structure manipulations. The experiments show that ReSyn synthesizes programs that are asymptotically more efficient than those generated by a resource-agnostic synthesizer. Moreover, synthesis with ReSyn is faster than a naive combination of synthesis and resource analysis. ReSyn is also able to generate implementations that have a constant resource consumption for fixed input sizes, which can be used to mitigate side-channel attacks.","urldate":"2019-11-01","booktitle":"Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation","publisher":"ACM","author":[{"propositions":[],"lastnames":["Knoth"],"firstnames":["Tristan"],"suffixes":[]},{"propositions":[],"lastnames":["Wang"],"firstnames":["Di"],"suffixes":[]},{"propositions":[],"lastnames":["Polikarpova"],"firstnames":["Nadia"],"suffixes":[]},{"propositions":[],"lastnames":["Hoffmann"],"firstnames":["Jan"],"suffixes":[]}],"year":"2019","note":"ZSCC: 0000001 event-place: Phoenix, AZ, USA","keywords":"Automated Amortized Resource Analysis, Program Synthesis, Refinement Types","pages":"253–268","bibtex":"@inproceedings{knoth_resource-guided_2019,\n\taddress = {New York, NY, USA},\n\tseries = {{PLDI} 2019},\n\ttitle = {Resource-guided {Program} {Synthesis}},\n\tisbn = {978-1-4503-6712-7},\n\turl = {http://doi.acm.org/10.1145/3314221.3314602},\n\tdoi = {10/ggb9gj},\n\tabstract = {This article presents resource-guided synthesis, a technique for synthesizing recursive programs that satisfy both a functional specification and a symbolic resource bound. The technique is type-directed and rests upon a novel type system that combines polymorphic refinement types with potential annotations of automatic amortized resource analysis. The type system enables efficient constraint-based type checking and can express precise refinement-based resource bounds. The proof of type soundness shows that synthesized programs are correct by construction. By tightly integrating program exploration and type checking, the synthesizer can leverage the user-provided resource bound to guide the search, eagerly rejecting incomplete programs that consume too many resources. An implementation in the resource-guided synthesizer ReSyn is used to evaluate the technique on a range of recursive data structure manipulations. The experiments show that ReSyn synthesizes programs that are asymptotically more efficient than those generated by a resource-agnostic synthesizer. Moreover, synthesis with ReSyn is faster than a naive combination of synthesis and resource analysis. ReSyn is also able to generate implementations that have a constant resource consumption for fixed input sizes, which can be used to mitigate side-channel attacks.},\n\turldate = {2019-11-01},\n\tbooktitle = {Proceedings of the 40th {ACM} {SIGPLAN} {Conference} on {Programming} {Language} {Design} and {Implementation}},\n\tpublisher = {ACM},\n\tauthor = {Knoth, Tristan and Wang, Di and Polikarpova, Nadia and Hoffmann, Jan},\n\tyear = {2019},\n\tnote = {ZSCC: 0000001 \nevent-place: Phoenix, AZ, USA},\n\tkeywords = {Automated Amortized Resource Analysis, Program Synthesis, Refinement Types},\n\tpages = {253--268}\n}\n\n","author_short":["Knoth, T.","Wang, D.","Polikarpova, N.","Hoffmann, J."],"key":"knoth_resource-guided_2019","id":"knoth_resource-guided_2019","bibbaseid":"knoth-wang-polikarpova-hoffmann-resourceguidedprogramsynthesis-2019","role":"author","urls":{"Paper":"http://doi.acm.org/10.1145/3314221.3314602"},"keyword":["Automated Amortized Resource Analysis","Program Synthesis","Refinement Types"],"downloads":0},"bibtype":"inproceedings","biburl":"https://bibbase.org/zotero/k4rtik","creationDate":"2020-05-31T17:07:22.575Z","downloads":0,"keywords":["automated amortized resource analysis","program synthesis","refinement types"],"search_terms":["resource","guided","program","synthesis","knoth","wang","polikarpova","hoffmann"],"title":"Resource-guided Program Synthesis","year":2019,"dataSources":["Z5Dp3qAJiMzxtvKMq"]}