-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Title: Let's wrap this up! Incremental structured decoding with resource constraints | ||
|
||
Language models are known to struggle with few-shot constraint satisfaction tasks, such as responding within a fixed number of tokens or without using certain words. These scenarios typically arise in programming-related tasks such as code completion and program repair. We propose a novel incremental approach to constrained sequence generation based on a theory of Brzozowski (1964). Our approach constructs a valid sequence from left-to-right using next-token probabilities from the language model to steer the decoder towards natural solutions. We demonstrate the effectiveness of this technique on the problem of syntax repair, where it enjoys a significant advantage over state-of-the-art neural repair models in terms of precision on blind recovery of human repairs, while ensuring that every valid sequence is generable and every generable sequence is valid. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters