Generating Code by Learning
- đ¤ Speaker: Yi Wei, ETH Zurich
- đ Date & Time: Tuesday 10 April 2012, 11:00 - 12:00
- đ Venue: Large lecture theatre, Microsoft Research Ltd, 7 J J Thomson Avenue (Off Madingley Road), Cambridge
Abstract
Automated programming is a long-term dream in computer science. Although we know that a fully automated solution is impossible, partial realization of this dream can still have practical impacts. In this talk, I will focus on two practical issues, namely, specifying software and debugging software, and present techniques which automatically generate specifications and bug fixes.
Specifications are essential to reason about software correctness. Unfortunately, most software contains no specification or only very partial specifications, but many of them come with some test cases. Those test cases can be generalized into specifications via dynamic invariant inference. I will demonstrate how to infer specifications in forms of universal quantifications and implications which are necessary to express important aspects of program behaviors, such as frame conditions. I will also show the use of the inferred specifications to detect more faults in the software.
In program debugging, finding the faults is only the first step; what about correcting them? I will demonstrate a technique which uses dynamically inferred invariants to find possible reasons of a failure and generates fixes to correct the fault. I will also show cases where the fixing algorithm has great difficulty in providing useful suggestions; and I would argue that by learning from existing code, a synthesizer, such as the fixing algorithm, can collect hints about the desirable code. I will then present some recent and ongoing work relying on this learning idea to synthesize code.
Series This talk is part of the Microsoft Research Cambridge, public talks series.
Included in Lists
- All Talks (aka the CURE list)
- bld31
- Cambridge Centre for Data-Driven Discovery (C2D3)
- Cambridge talks
- Chris Davis' list
- Guy Emerson's list
- Interested Talks
- Large lecture theatre, Microsoft Research Ltd, 7 J J Thomson Avenue (Off Madingley Road), Cambridge
- Microsoft Research Cambridge, public talks
- ndk22's list
- ob366-ai4er
- Optics for the Cloud
- personal list
- PMRFPS's
- rp587
- School of Technology
- Trust & Technology Initiative - interesting events
- yk449
Note: Ex-directory lists are not shown.
![[Talks.cam]](/static/images/talkslogosmall.gif)

Yi Wei, ETH Zurich
Tuesday 10 April 2012, 11:00-12:00