Recent developments show that Large Language Models (LLMs) produce state-of-the-art performance on natural language (NL) to code generation for resource-rich general-purpose languages like C++, Java, and Python. However, their practical usage for structured domain-specific languages (DSLs) such as YAML, JSON is limited due to domain-specific schema, grammar, and customizations generally unseen by LLMs during pre-training. Efforts have been made to mitigate this challenge via in-context learning through relevant examples or by fine-tuning. However, it suffers from problems, such as limited DSL samples and prompt sensitivity but enterprises maintain good documentation of the DSLs. Therefore, we propose DocCGen, a framework that can leverage such rich knowledge by breaking the NL-to-Code generation task for structured code languages into a two-step process. First, it detects the correct libraries using the library documentation that best matches the NL query. Then, it utilizes schema rules extracted from the documentation of these libraries to constrain the decoding. We evaluate our framework for two complex structured languages, Ansible YAML and Bash command, consisting of two settings: Out-of-domain (OOD) and In-domain (ID). Our extensive experiments show that DocCGen consistently improves different-sized language models across all six evaluation metrics, reducing syntactic and semantic errors in structured code. We plan to open-source the datasets and code to motivate research in constrained code generation.
KletterMix: Climbing Toward High-Quality German Pretraining Data - The Full Report
AI & ML Group, TU Darmstadt(人工智能与机器学习小组,德累斯顿技术大学);Lab1141;Lamarr Institute(拉马尔研究所);Fraunhofer IAIS(弗劳恩霍夫人工智能研究所);hessian.AI(海斯坦.AI);German Research Center for AI (DFKI)(德国人工智能研究中心(DFKI));Centre for Cognitive Science, TU Darmstadt(认知科学中心,德累斯顿技术大学)
Is Deep Research Reliable? Misleading Knowledge Induces False Conclusions
Beijing University of Posts and Telecommunications(北京邮电大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Chongqing University of Posts and Telecommunications(重庆邮电大学)
The Role of Mixed-Language Documents for Multilingual Large Language Model Pretraining
University College London(伦敦大学学院);Nanyang Technological University(南洋理工大学);University of Waterloo(滑铁卢大学);NVIDIA(英伟达);National Institute of Informatics(信息研究院)
DocHop: Benchmarking Out-of-domain Multi-hop Reasoning in Information-Dense Documents
University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Massachusetts Institute of Technology(麻省理工学院);Stanford University(斯坦福大学);Kookmin University(国民大学);MIT-IBM Watson AI Lab, IBM Research(麻省理工学院-IBM沃森人工智能实验室,IBM研究院)
From UNDRR Reports to Event Records: Schema-Constrained LLM Extraction of Georeferenced Disasters
ETH Zürich(苏黎世联邦理工学院);University of Maryland(马里兰大学);MPI(马克斯·普朗克研究所);University of Toronto(多伦多大学);United Nations Office for Disaster Risk Reduction(联合国减少灾害风险办公室)
Manacá-1B-Instruct-2: Reproducible Safety Alignment for a Native Brazilian-Portuguese LLM. Negative DPO Results, a Controlled Composition Scan, and a Silent Failure Mode of the LLM Judge
National Laboratory for Scientific Computing (LNCC)(国家科学计算实验室);Institute of Artificial Intelligence(人工智能研究所)