Epicure: Distilling Sequence Model Predictions into Patterns
Not on the map. Why?
Abstract (arXiv)
Most machine learning models predict a probability distribution over concrete outputs and struggle to accurately predict names over high entropy sequence distributions. Here, we explore finding abstract, high-precision patterns intrinsic to these predictions in order to make abstract predictions that usefully capture rare sequences. In this short paper, we present Epicure, a method that distils the predictions of a sequence model, such as the output of beam search, into simple patterns. Epicure maps a model's predictions into a lattice that represents increasingly more general patterns that subsume the concrete model predictions. On the tasks of predicting a descriptive name of a function given the source code of its body and detecting anomalous names given a function, we show that Epicure yields accurate naming patterns that match the ground truth more often compared to just the highest probability model prediction. For a false alarm rate of 10%, Epicure predicts patterns that match 61% more ground-truth names compared to the best model prediction, making Epicure well-suited for scenarios that require high precision.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 15 of its 27 references that are in the map. First posted on arXiv 16 Aug 2023.
Builds on
15 of 27 references.
References · 15
- 2017Attention Is All You Needcited by 59,932
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2017Learning to Represent Programs with Graphscited by 219
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 177
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
- 2016A Convolutional Attention Network for Extreme Summarization of Source Codecited by 90
- 2019DIRE: A Neural Approach to Decompiled Identifier Namingcited by 36
- 2014Learning Natural Coding Conventionscited by 28
- 2018A General Path-Based Representation for Predicting Program Propertiescited by 28
- 2021Learning to Complete Code with Sketchescited by 23
- 2019Learning Deterministic Weighted Automata with Queries and Counterexamplescited by 22
Built on by
Not cited yet.