Source code is rarely written in isolation. It depends significantly on the programmatic context, such as the class that the code would reside in. To study this phenomenon, we introduce the task of generating class member functions given English documentation and the programmatic context provided by the rest of the class. This task is challenging because the desired code can vary greatly depending on the functionality the class provides (e.g., a sort function may or may not be available when we are asked to "return the smallest element" in a particular member variable list). We introduce CONCODE, a new large dataset with over 100,000 examples consisting of Java classes from online code repositories, and develop a new encoder-decoder architecture that models the interaction between the method documentation and the class environment. We also present a detailed error analysis suggesting that there is significant room for future work on this task.
Mapping the Dialog Act Annotations of the LEGO Corpus into the Communicative Functions of ISO 24617-2
INESC-ID Lisboa(INESC-ID里斯本);Instituto Superior Técnico, Universidade de Lisboa(里斯本大学高级技术学院);ISCTE-IUL – Instituto Universitário de Lisboa(ISCTE-IUL里斯本大学学院)
Enhancing Input-Label Mapping in In-Context Learning with Contrastive Decoding
Beihang University(北航大学);The University of Sydney(悉尼大学);University of Liverpool(利物浦大学);The Hong Kong Polytechnic University(香港理工大学);Nanyang Technological University(南洋理工大学)
Improving Input-label Mapping with Demonstration Replay for In-context Learning
Meituan(美团);Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);Meta AI;National Key Laboratory of General Artificial Intelligence(通用人工智能全国重点实验室);Beijing Institute for General Artificial Intelligence(北京通用人工智能研究院);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)
SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Pass
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Technion, NVIDIA(技术学院与NVIDIA);University of Oxford(牛津大学);School of Electronics Engineering(电子工程学院);Computer Science, Peking University(计算机科学,北京大学)