#!/usr/bin/env python3 """Build the reference list for the manuscript. Entries [1]-[65] follow the bibliography of the source review, which lists authors, journal, volume, page and year but no titles. Entries [66]-[89] are the AI/LLM works cited in the paper and use full metadata. """ from __future__ import annotations import json import re from pathlib import Path ROOT = Path(__file__).resolve().parents[1] REFS = ROOT / "data" / "corpus" / "refs_65.json" OUT = ROOT / "paper" / "references.md" AI_REFS = [ ("刘天融, 任宇航, 刘启慧, 等. 集成化金刚石氮空位色心量子磁传感器研究进展[J]. 2026(综述手稿,本文语料来源).", 66), ("Birhane A, Kasirzadeh A, Leslie D, et al. Science in the age of large language models[J]. Nature Reviews Physics, 2023, 5(5): 277-280.", 67), ("Ji Z, Lee N, Frieske R, et al. Survey of hallucination in natural language generation[J]. ACM Computing Surveys, 2023, 55(12): 1-38.", 68), ("Du Y, Li S, Torralba A, et al. Improving factuality and reasoning in language models through multiagent debate[C]//Proc of the 41st Int Conf on Machine Learning. 2024. arXiv:2305.14325.", 69), ("Liang T, He Z, Jiao W, et al. Encouraging divergent thinking in large language models through multi-agent debate[C]//Proc of the 2024 Conf on Empirical Methods in Natural Language Processing. Stroudsburg, PA: ACL, 2024: 17889-17904.", 70), ("Wang H, Fu T, Du Y, et al. Scientific discovery in the age of artificial intelligence[J]. Nature, 2023, 620(7972): 47-60.", 71), ("Qi B, Zhang K, Li H, et al. Large language models are zero shot hypothesis proposers[J]. arXiv preprint, arXiv:2311.05965, 2023.", 72), ("陈子阳, 赵翔, 赵润豪, 等. 基于人机协作的多智能体科学假设生成[J]. 计算机研究与发展, 2025. DOI: 10.7544/issn1000-1239.202440552.", 73), ("Lewis P, Perez E, Piktus A, et al. Retrieval-augmented generation for knowledge-intensive NLP tasks[C]//Proc of the 34th Conf on Advances in Neural Information Processing Systems. Cambridge, MA: MIT, 2020: 9459-9474.", 74), ("Pan S, Luo L, Wang Y, et al. Unifying large language models and knowledge graphs: A roadmap[J]. IEEE Transactions on Knowledge and Data Engineering, 2024, 36(7): 3580-3599.", 75), ("Zhang Y, Wang X, Zhang Z, et al. Graph retrieval-augmented generation: A survey[J]. arXiv preprint, arXiv:2408.08921, 2024.", 76), ("Schmidt M, Lipson H. Distilling free-form natural laws from experimental data[J]. Science, 2009, 324(5923): 81-85.", 77), ("Sanchez-Lengeling B, Aspuru-Guzik A. Inverse molecular design using machine learning: Generative models for matter engineering[J]. Science, 2018, 361(6400): 360-365.", 78), ("Yang Z, Du X, Li J, et al. Large language models for automated open-domain scientific hypotheses discovery[C]//Proc of the 62nd Annual Meeting of the Association for Computational Linguistics. Stroudsburg, PA: ACL, 2024: 13545-13565.", 79), ("Lu C, Lu C, Lange R T, et al. The AI Scientist: Towards fully automated open-ended scientific discovery[J]. arXiv preprint, arXiv:2408.06292, 2024.", 80), ("Baek J, Jauhar S K, Cucerzan S, et al. ResearchAgent: Iterative research idea generation over scientific literature with large language models[J]. arXiv preprint, arXiv:2404.07738, 2024.", 81), ("Si C, Yang D, Hashimoto T. Can LLMs generate novel research ideas? A large-scale human study with 100+ NLP researchers[C]//Proc of the 13th Int Conf on Learning Representations. 2025. arXiv:2409.04109.", 82), ("Gao Y, Xiong Y, Gao X, et al. Retrieval-augmented generation for large language models: A survey[J]. arXiv preprint, arXiv:2312.10997, 2023.", 83), ("Edge D, Trinh H, Cheng N, et al. From local to global: A graph RAG approach to query-focused summarization[J]. arXiv preprint, arXiv:2404.16130, 2024.", 84), ("Shanahan M, McDonell K, Reynolds L. Role play with large language models[J]. Nature, 2023, 623(7987): 493-498.", 85), ("Cemri M, Pan M Z, Yang S, et al. Why do multi-agent LLM systems fail?[J]. arXiv preprint, arXiv:2503.13657, 2025.", 86), ("Wei J, Wang X, Schuurmans D, et al. Chain-of-thought prompting elicits reasoning in large language models[C]//Proc of the 35th Conf on Advances in Neural Information Processing Systems. Cambridge, MA: MIT, 2022: 24824-24837.", 87), ("Brown T, Mann B, Ryder N, et al. Language models are few-shot learners[C]//Proc of the 33rd Conf on Advances in Neural Information Processing Systems. Cambridge, MA: MIT, 2020: 1877-1901.", 88), ("Robertson S E, Zaragoza H. The probabilistic relevance framework: BM25 and beyond[J]. Foundations and Trends in Information Retrieval, 2009, 3(4): 333-389.", 89), ] def normalize(raw: str) -> str: raw = re.sub(r"\s+", " ", raw).strip(" .") years = list(re.finditer(r"\b(?:19|20)\d{2}\b", raw)) if not years: return raw + "." y = years[-1] head = raw[: y.start()].rstrip(" ,.") tail = raw[y.end():].strip() venue, volpage = tail, "" m = re.match(r"^(.*?)\s+(\d{1,4})\s+([0-9A-Za-z]+)$", tail) if m: venue, volpage = m.group(1), f"{m.group(2)}: {m.group(3)}" parts = [f"{head}.", f"{venue}," if venue else "", y.group(0) + ","] if volpage: parts.append(volpage + ".") else: parts[-1] = y.group(0) + "." return " ".join(p for p in parts if p).replace(" ,", ",") def main() -> None: refs = json.loads(REFS.read_text(encoding="utf-8")) lines = ["## 参考文献", ""] for r in refs: lines.append(f"[{r['ref_num']}] {normalize(r['raw'])}") for text, num in AI_REFS: lines.append(f"[{num}] {text}") lines += [ "", "注:文献[1-65]的著录信息取自综述[66]的参考文献表。该表未列出论文标题," "此处沿用其“作者—期刊—卷—页—年”的原始格式,以保证与语料来源一致;" "正式投稿时可按目标期刊要求补全标题与 DOI。", ] OUT.write_text("\n".join(lines), encoding="utf-8") print("written", OUT, "entries", len(refs) + len(AI_REFS)) if __name__ == "__main__": main()