~/talk

Structural Language Models of Code

Talkat POPL 2021 · 2021-01-17..01-22· [ai-assisted-development]
slides:none on file

Describes a production-ready method that models code as AST paths and trains a structural language model used for name prediction, caption generation and real-world code completion (live demo on codegen.org), achieving higher top-1/top-5 accuracy than sequence models and surprisingly beating graph neural networks. Shows GNNs fail on long-range program dependencies due to over-squashing (training accuracy already degrades at depth ~4, whereas program tasks need depth ≳8), and reports a cheap fix of dense last-layer connections while urging better solutions. AST path representations are the practical sweet spot.

AI-written summary · about

  1. 0:00Introduction
  2. 3:29Neural methods for code
  3. 9:36Code in neural networks
  4. 15:20Sequence models limits
  5. 21:43Structural models with AST paths
  6. 33:44Tree-based code completion
  7. 37:19Model approaches for code
  8. 41:08Graph neural networks
  9. 46:28GAIL and formal analysis
  10. 49:18Summary and future
  11. 50:00Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.