~/talk

QuAC: Quick Attribute-Centric Type Inference for Python

Talkat OOPSLA 2024 · 2024-10-20..10-25· [python, typescript]
name:Jifeng Wu
links:none on file
slides:none on file

QuAC collects attribute sets for expressions, builds a class-query DB (builtins, stdlib protocols, imported and user classes), and ranks candidates with BM25 ranking to pick the best class; it then uses relation-based semantics to recursively infer container parameters (e.g., predicts sequence of Point). On popular Python repos it reduces runtime by ~15× versus non-LLM baselines, is nearly two orders of magnitude faster than an LLM, and covers about half of the LLM’s errorless non-trivial predictions while improving container-parameter accuracy.

AI-written summary · about

  1. 0:00QuAC and Python typing
  2. 1:47Python type inference challenges
  3. 3:35QuAC’s attribute-centric approach
  4. 5:18Class prediction with BM25
  5. 7:04Container type parameters
  6. 8:50Relations for semantic analysis
  7. 9:32Evaluation vs state-of-the-art
  8. 11:14Comparison with LLM inference
  9. 12:19Container type prediction
  10. 13:03Challenges and future work
  11. 14:06Conclusion and Q&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.