update
Browse files7 unmodified lines89101112137 unmodified lines[Causal Masking objective](https://arxiv.org/abs/2201.07520) is a hybrid approach of Causal and Masked language models, "it combines the benefit of per-token generation with optional bi-directionality specifically tailored to prompting".During the training of InCoder, spans of code were randomly masked and moved to the end of each file, which allows for bidirectional context. The figure below illustrates the training process:So in addition to program synthesis (via left-to-right generation), InCoder can also perform editing (via infilling). The model gives promising results in some zero-shot code infilling tasks such as type prediction, variable re-naming and comment generation.7 unmodified lines89101112137 unmodified lines[Causal Masking objective](https://arxiv.org/abs/2201.07520) is a hybrid approach of Causal and Masked language models, "it combines the benefit of per-token generation with optional bi-directionality specifically tailored to prompting".During the training of InCoder, spans of code were randomly masked and moved to the end of each file, which allows for bidirectional context. The figure below illustrates the training process:So in addition to program synthesis (via left-to-right generation), InCoder can also perform editing (via infilling). The model gives promising results in some zero-shot code infilling tasks such as type prediction, variable re-naming and comment generation.
architectures/incoder.txt+1-1