Compare commits

...

10 Commits

Author SHA1 Message Date
codex-bot 1e5237fe19 Preserve match candidate evidence when papers merge
Metadata integrity checks / metadata (push) Waiting to run
2026-11-26 01:41:40 +08:00
Zayden-Jung b03a8bc5fc Merge pull request '记录 NeurIPS 录用、跨会投稿历史与 MotiFlow 去重' (#95) from codex/neurips-posting-history-reconciliation into main
Metadata integrity checks / metadata (push) Successful in 1h38m15s
Reviewed-on: #95
2026-11-25 14:55:41 +00:00
Zayden-Jung 67d4cd46ff Merge pull request '扩展全库审计的标题与署名候选覆盖' (#98) from codex/extended-identity-audit into main
Metadata integrity checks / metadata (push) Has been cancelled
Reviewed-on: #98
2026-11-25 14:53:37 +00:00
codex-bot 168ad8ec4e Extend global audit to author variants and large rosters
Metadata integrity checks / metadata (push) Has been cancelled
2026-11-25 22:44:36 +08:00
codex-bot ddc8ef6faa Document verified NeurIPS programme links through batch 2252
Metadata integrity checks / metadata (push) Has been cancelled
2026-11-25 22:00:19 +08:00
codex-bot 05476940ce Document NeurIPS production verification through batch 2239
Metadata integrity checks / metadata (push) Has been cancelled
2026-11-25 20:35:11 +08:00
codex-bot d5760f51b1 Document NeurIPS production verification through batch 2226
Metadata integrity checks / metadata (push) Successful in 1h48m2s
2026-11-25 19:48:09 +08:00
codex-bot 99427ed527 Record NeurIPS production verification through batch 2216
Metadata integrity checks / metadata (push) Failing after 25m56s
2026-11-25 18:20:14 +08:00
codex-bot c282b03748 Document NeurIPS programme versions and author project evidence
Metadata integrity checks / metadata (push) Failing after 33m34s
2026-11-25 17:58:15 +08:00
codex-bot b6e4359d1f Document NeurIPS history reconciliation and verified admissions
Metadata integrity checks / metadata (push) Failing after 23m11s
2026-11-25 17:31:51 +08:00
8 changed files with 275 additions and 17 deletions
@@ -51,7 +51,7 @@ ICML 2020、ICRA 2026 首次出现拒稿记录。EMNLP 2026 首次出现初筛
### 11 月 25 日下午复核
批次 `2196` 至 `2204` 新增 109 条节目关联,冻结节目单已关联 **8,193 / 9,004**,剩 811 条。其中主会 7,200 / 7,896,评估与数据集 868 / 971,Position 125 / 137。新版节目单已关联 **8,192 / 9,001**。
批次 `2196` 至 `2213` 新增 159 条冻结节目关联,冻结节目单已关联 **8,243 / 9,004**,剩 761 条。其中主会 7,236 / 7,896,评估与数据集 882 / 971,Position 125 / 137。新版节目单已关联 **8,242 / 9,001**。
批次 `2198` 把两条 Position 录用关联到已有 arXiv 论文,回查确认早期题名、署名、摘要和标签均保留。批次 `2199` 按区段读取约 21 MB 的 arXiv 书目镜像,筛查 11 月 18 日快照中自 10 月 1 日起首次提交到 arXiv 的 63,400 条记录。精确题名命中的 121 条里,56 条通过完整有序署名和明确录用备注筛选。官方活动页及生产标识核查最终支持 53 条入库,其中主会 50 条、评估与数据集 3 条。逐篇查询验收了录用、摘要和证据。新增论文的跨来源身份待全库复核。[固定书目镜像](https://huggingface.co/datasets/t14n/arxiv-complete-with-pdf-text/tree/953179ab022061df191982102ba247e8e285e0c5) · [官方节目](https://neurips.cc/virtual/2026/papers.html)
@@ -63,6 +63,75 @@ ICML 2020、ICRA 2026 首次出现拒稿记录。EMNLP 2026 首次出现初筛
批次 `2204` 核验并关联 11 条录用。其中 9 条来自 11 月 19 日至 24 日的 arXiv 官方 OAI 计算机科学书目增量,2 条来自按完整作者对照的改题复查。后者有一条沿用既有 arXiv 论文 ID。逐篇回查确认了录用、展示标签及 arXiv 来源。[arXiv 官方书目接口](https://export.arxiv.org/oai2?verb=Identify) · [改题后关联到已有论文的 arXiv 版本](https://arxiv.org/abs/2610.04044)
批次 `2205` 至 `2209` 又核验了 18 条录用,其中主会 16 条,评估与数据集 2 条。13 条关联到已有论文,5 条补录了查无稳定标识冲突的论文。其中 GramStatTexNet 保留 ICLR 撤稿和后续 NeurIPS 录用。MotiFlow 的 arXiv 与 ICML 记录通过固定版本和作者出版记录核对后归为同一论文,保存归并前快照与旧 ID 映射,并回查 ICML 拒稿和新录用。[GramStatTexNet 录用版本](https://arxiv.org/abs/2611.23755v1) · [MotiFlow 初版](https://arxiv.org/abs/2601.16955v1) · [MotiFlow 录用版本](https://arxiv.org/abs/2601.16955v2)
批次 `2210` 对照固定 arXiv 版本,将 10 条录用关联到已有论文。批次 `2211` 用官方活动页和共同作者公开发表记录核实 Hopfield 的主会录用,该条计入冻结节目单。Lemon 补入新版节目单来源,并绑定已有主会投稿和录用决定。另两条仅存于冻结名单的活动页返回 404,最新决定仍待核。[Hopfield 官方活动](https://neurips.cc/virtual/2026/loc/atlanta/poster/155374) · [共同作者发表记录](https://www.anupkdas.com/) · [Lemon 官方活动](https://neurips.cc/virtual/2026/loc/sydney/poster/155165)
批次 `2212`、`2213` 共补入 21 条录用。官方活动、冻结与新版节目和作者项目 README 互相印证。项目 README 的两次内容哈希一致,生产逐篇核对了摘要、录用和展示标签。这 21 篇已标记跨来源论文身份待全库去重核验。
### 11 月 25 日批次 2214 至 2216
三批共补齐 24 条录用,生产逐篇通过查询验收。
- `2214` 核对官方节目、活动页及作者项目记录,关联 18 条录用。3 条沿用已有论文 ID,15 条新建论文 ID,跨来源身份待全库去重验收。
- `2215` 用固定版本的 arXiv 和作者项目记录核对题名与署名变更,4 条均关联到已有论文。原来源和投稿记录通过回查。
- `2216` 对照当日 arXiv 增量、两版节目和官方活动页,核验 2 条录用,分别来自主会和评估与数据集赛道。两条新建论文 ID 的跨来源身份待全库去重验收。[arXiv 2611.32579](https://arxiv.org/abs/2611.32579) · [arXiv 2611.32658](https://arxiv.org/abs/2611.32658)
| 范围 | 已关联 | 总数 | 待关联 |
| --- | ---: | ---: | ---: |
| 冻结主会 | 7,255 | 7,896 | 641 |
| 冻结评估与数据集 | 887 | 971 | 84 |
| 冻结 Position | 125 | 137 | 12 |
| 冻结合计 | 8,267 | 9,004 | 737 |
| 新版节目 | 8,266 | 9,001 | 735 |
### 11 月 25 日批次 2221 至 2226
六批补齐 179 条录用,其中主会 156 条、评估与数据集 12 条、Position 11 条。每条均比对冻结节目、新版节目与官方活动页,并检查库内稳定标识和同题候选。写入后逐篇回查论文、来源、录用和展示标签。此次新建的论文 ID 仍列入全库去重验收。
生产写入曾在论文表的磁盘页读取中超时。批次 `2221` 至 `2226` 在导入事务内使用了 8 MiB 的 GIN 待合并阈值,并通过了查询验收。新连接的阈值仍为 4 MiB。批次 `2221` 另通过了生产全文检索抽查。
| 范围 | 已关联 | 总数 | 待关联 |
| --- | ---: | ---: | ---: |
| 冻结主会 | 7,411 | 7,896 | 485 |
| 冻结评估与数据集 | 899 | 971 | 72 |
| 冻结 Position | 136 | 137 | 1 |
| 冻结合计 | 8,446 | 9,004 | 558 |
| 新版节目 | 8,445 | 9,001 | 556 |
### 11 月 25 日批次 2227 至 2239
与批次 `2226` 相比,冻结名单新增 306 条已核验关联,其中主会 277 条、评估与数据集 28 条、Position 1 条。
- `2227` 至 `2231` 补齐 167 条主会录用。`2232` 将 22 条录用关联到既有论文,补齐了冻结名单最后一条 Position 关联。
- `2233` 单独核验一篇已有 NeurIPS 录用的论文与 ICLR AIMS 工作坊的关联,保留两处投稿历史。这一批不计入上面的 306 条。
- `2234` 至 `2237` 补齐 94 条录用。批次 `2236` 的独立只读审计确认,两版节目单上的已关联条目均能查到对应来源和录用决定。
- `2238` 至 `2239` 将 23 条录用关联到既有论文。逐篇回查了新增决定以及原有论文、来源和投稿记录。最后 5 条使用固定版本的 arXiv 题名、署名和录用备注核实身份。
| 范围 | 已关联 | 总数 | 待关联 |
| --- | ---: | ---: | ---: |
| 冻结主会 | 7,688 | 7,896 | 208 |
| 冻结评估与数据集 | 927 | 971 | 44 |
| 冻结 Position | 137 | 137 | 0 |
| 冻结合计 | 8,752 | 9,004 | 252 |
| 新版节目 | 8,751 | 9,001 | 250 |
全库去重验收仍待完成。
### 11 月 25 日批次 2240 及 2248 至 2252
六批将 29 条录用关联到已有论文,其中主会 21 条、评估与数据集 8 条。逐篇核对官网节目、活动页和固定版本的 arXiv 或作者项目记录。生产回查确认了关联后的录用、来源和展示标签,并核对原有论文与历史。批次 `2248` 的 MARBLE 仍可查到两条 ICLR 拒稿观测与后续 NeurIPS 录用。批次 `2252` 的 6 条按题名、摘要和署名变体证据确认。
| 范围 | 已关联 | 总数 | 待关联 |
| --- | ---: | ---: | ---: |
| 冻结主会 | 7,709 | 7,896 | 187 |
| 冻结评估与数据集 | 935 | 971 | 36 |
| 冻结 Position | 137 | 137 | 0 |
| 冻结合计 | 8,781 | 9,004 | 223 |
| 新版节目 | 8,780 | 9,001 | 221 |
两条待核记录目前仅见于冻结名单。相应活动页返回 404,现有材料不足以确认最新决定。全库去重仍需在最后一批写入后验收。[NeurIPS 2026 官方下载目录](https://neurips.cc/Downloads/2026)
## 复核证据
| 证据 | SHA-256 |
@@ -82,5 +151,35 @@ ICML 2020、ICRA 2026 首次出现拒稿记录。EMNLP 2026 首次出现初筛
| NeurIPS 批次 `2202` 查询验收回执 | `4387593d33036c9cb82b7ff6999e1684de450a74010791b00577a02af81a794f` |
| NeurIPS 批次 `2203` 查询验收回执 | `a8c170ee21981280c5d8c5e37d2c4d0fa27d6b5317462073ce5251a8fb221204` |
| NeurIPS 批次 `2204` 查询验收回执 | `3fb7a1b246ee51cf418b744d066eb061da8f6814a7fc49f0e1072ee97a8d5f5a` |
| NeurIPS 批次 `2205` 查询验收回执 | `62a444228884ad23db69e47428bad4e119b721ecdb89459a711ede6fc2e1e07c` |
| NeurIPS 批次 `2206` 查询验收回执 | `4b990e6e1f5ce0e61b13ca2f2052bc45304ca1b314601ae2b3a8dad06c3bb37f` |
| NeurIPS 批次 `2207` 查询验收回执 | `3ee1c10f52618cd0a2b5e9c1a029fac9041d47a3a91f471b48fbadc1c0974673` |
| NeurIPS 批次 `2208` 查询验收回执 | `257b70ea5085b8fdbc2c464c2a88877f8dc4e8f9e6352bd92c8b6645fa132f48` |
| NeurIPS 批次 `2209` 查询验收回执 | `1b7669ce6feeb53b38986de4fd2402701c34c7e44e7395a654755badc0d79d4f` |
| NeurIPS 批次 `2210` 查询验收回执 | `f4fc51de34cdabce40603bb6b03c1a986def7f3d643a8b9e9a48d9ffeadd0452` |
| NeurIPS 批次 `2211` 查询验收回执 | `765322ac48aaa76c2840321e37048da77ed91479bd207e2261d75f28c103e35f` |
| NeurIPS 批次 `2212` 查询验收回执 | `e8fa8a9fea0ea6db3f5aae619b6c861bdaf7a1bbfe1310b50d54c02a8f601272` |
| NeurIPS 批次 `2213` 查询验收回执 | `c5405bc48f1fe2919136fbe5793a06485a8e873ee89ff00100458d3e712ca98e` |
| NeurIPS 批次 `2214` 查询验收回执 | `f9241925bc02b20db764ecd274eb564adad0c6a3395f1a9216d4707d89e0de00` |
| NeurIPS 批次 `2215` 查询验收回执 | `714fb64d3d9aac937248b323a85196615a7c9d5ace643169321bb4859513d858` |
| NeurIPS 批次 `2216` 查询验收回执 | `86fa01191409569f7094af4e05e53f152f874f5115d324c3ec485a2a0076887d` |
| NeurIPS 批次 `2221` 查询验收回执 | `3dcd81ad1e10b24806a6233c27558f69c3d27f442d783a749af62b0940be9750` |
| NeurIPS 批次 `2222` 查询验收回执 | `9fdf39d3663e9d5c7f08aceb8b944b9975cff267a921b0f51823cb59a6fbc105` |
| NeurIPS 批次 `2223` 查询验收回执 | `3316973316e67fea809fc441b10593ad426b613165483a3b2ab3f7f229c784fa` |
| NeurIPS 批次 `2224` 查询验收回执 | `aca2ea4d70e5c6603f2ad145d423a9b12fa849d97cc198d9905a7975646ff2c9` |
| NeurIPS 批次 `2225` 查询验收回执 | `c912f783fb279e86a70a2ca1dfe28428af9f481c2d1e5d17f71aa9992c4dcf1b` |
| NeurIPS 批次 `2226` 查询验收回执 | `10847f7dbd742680b0650ef15d82c357dec337310f8b342b071d1c746c933663` |
| NeurIPS 批次 `2225` 至 `2231` 合并查询验收回执 | `cd1c0d6c68d217d4e61f23d426863a56846d7aca40c2b4cd1e95f390424084ce` |
| NeurIPS 批次 `2232` 查询验收回执 | `b1c29aeed575af424f1037ade30a0cbee524ff466aecb3d41a81f121bf3f8af0` |
| ICLR AIMS 批次 `2233` 跨会关联回执 | `0d0ebee676b1e295731f175490b0e3541cfb1f425a79e15ee364d52f6c18f58d` |
| NeurIPS 批次 `2236` 独立只读审计 | `400d6fd2ba220e958ce26fd602908e3b33e88e26747cb9fb02040259d866e0bd` |
| NeurIPS 批次 `2238` 查询验收回执 | `b7801cd37129b6bb1c7149c9cea104e7e609eaebebb9b6ff3f6e80076d7811f7` |
| NeurIPS 批次 `2239` 查询验收回执 | `97e90e1b86cfdc57d1b2bfbbee1602640677da0040f25e873d1ec26080d6fe36` |
| NeurIPS 批次 `2240` 查询验收回执 | `d185dde391a81d82161da1dec18905485073105881d657f48bb6c7d0869f94dc` |
| NeurIPS 批次 `2248` 查询验收回执 | `5acdaf2825a99a24f85478a5c8e9bc8d0fb317e4d331d5c0ed0c3c996afd7b8e` |
| NeurIPS 批次 `2249` 查询验收回执 | `99efc9d5f06138bfb0d84448b4171f18a5a8262bac0e21a7205ebbfd71630694` |
| NeurIPS 批次 `2250` 查询验收回执 | `b86f54c7db9f43243c7b8ad5c320b4ee48547ea64d899cbd213d8537e5af3403` |
| NeurIPS 批次 `2251` 查询验收回执 | `864f96c0554e2302d78c062e91853026c712250d22b6e763e5da65bdb2322e05` |
| NeurIPS 批次 `2252` 查询验收回执 | `995a8c459455db6033efa6d6931d5f7be507ee62c550c4e884884eb3b4286f91` |
逐届、逐轨和来源范围可用 `paper-atlas coverage` 重新查询。此页聚合到固定的会年范围,论文 ID 仍需在后续导入结束后做全库去重审计。[查询说明](../usage.md)
+1 -1
View File
@@ -1,6 +1,6 @@
# NeurIPS 官方节目元数据
2026 年 11 月 25 日下午,冻结节目单已在生产核验 **8,193 / 9,004** 条关联。按两版节目单和赛道的计数、关联证据与待核记录见最新对账。[最新生产对账](coverage/active-coverage-census-2026-11-25.md#11-月-25-日下午复核)
截至 2026 年 11 月 25 日生产批次 `2252`,NeurIPS 2026 冻结节目单已核验 **8,781 / 9,004** 条关联,剩余 223 条。新版节目已关联 **8,780 / 9,001** 条,剩余 221 条。[分轨计数与验收回执](coverage/active-coverage-census-2026-11-25.md#11-月-25-日批次-2240-及-2248-至-2252)
`paper-atlas collect neurips-program` 是按需运行的采集器,当前核验范围是 2026 年的[官方 orals/posters JSON](https://neurips.cc/static/virtual/data/neurips-2026-orals-posters.json)。它只请求这个固定公开元数据文件,不连接数据库,不请求 OpenReview API,不下载 PDF、视频或个人资料页。模块位于 `paper_atlas.collectors.neurips_program`,通过统一 CLI 使用。
+4 -1
View File
@@ -7,12 +7,15 @@
```bash
paper-atlas audit global-identity \
--pg-service foundry-research --pg-schema research \
--extended-titles \
--scratch-root /data/paper-index/validation \
--candidate-output /data/paper-index/validation/identity-candidates-2026-11-22.jsonl \
> /data/paper-index/validation/identity-report-2026-11-22.json
```
JSON 报告记录快照时间、论文与缺摘要计数、稳定标识冲突、约束状态、会议年度与轨道的来源覆盖,以及一次实际的全文搜索和执行计划。JSONL 保存同题且规范化作者集合相同的论文组,以及相同作者集合中标题相似度至少为 0.90 的论文对。超过 100 条记录的作者组会列入报告,留作后续逐组核对。缺作者、作者增减或换名的版本需要结合 DOI、论坛或作者说明,使用 `audit source-identities` 和原始来源复核。
JSON 报告记录快照时间、论文与缺摘要计数、稳定标识冲突、约束状态、会议年度与轨道的来源覆盖,以及一次实际的全文搜索和执行计划。JSONL 保存同题且规范化作者集合相同的论文组,以及相同作者集合中标题相似度至少为 0.90 的论文对。全库验收使用 `--extended-titles`,可额外获得同题但署名不同或缺失的候选,以及超过 100 条记录的同作者组中的近似题名候选。由于需要比较这些组的题名,运行时间随组内题名数增加。日常核查省略该参数时,大组只输出规模和样例。
近似题名比较要求规范化作者集合一致。题名与署名均变动的版本,使用 `audit source-identities` 并结合 DOI、论坛、作者说明或原始来源复核。候选仍需核实论文身份和投稿决定的证据。
将报告、候选文件、运行版本与 SHA-256 一起保留。使用 `audit histories` 核对拒稿、撤稿、后续录用和来源链接。需要合并候选时先确认论文版本关系并保存投稿、决定、标签及来源证据,再按已授权的流程操作。新一批导入完成后更新快照和审计报告。
+36 -12
View File
@@ -96,7 +96,8 @@ def _stage_titles(connection, scratch):
counts = Counter(papers=0, missing_abstract=0, missing_author_keys=0, invalid_authors_json=0)
with connection.connection.cursor(name='paper_atlas_global_identity_scan') as titles:
titles.itersize = 5000
titles.execute('SELECT id,title_key,authors_json,abstract IS NULL OR btrim(abstract)=\'\' FROM papers ORDER BY id')
# The scratch indexes provide the ordering used by every candidate query.
titles.execute('SELECT id,title_key,authors_json,abstract IS NULL OR btrim(abstract)=\'\' FROM papers')
while rows := titles.fetchmany(5000):
batch = []
for row in rows:
@@ -117,7 +118,7 @@ def _stage_titles(connection, scratch):
return dict(counts)
def _candidates(scratch, output):
def _candidates(scratch, output, *, extended_titles=False):
counts = Counter(exact_title_groups=0, exact_title_and_roster_groups=0,
exact_title_and_roster_papers=0, near_title_and_roster_pairs=0,
oversized_rosters=0, papers_in_oversized_rosters=0)
@@ -134,6 +135,20 @@ def _candidates(scratch, output):
ids = [row[0] for row in scratch.execute('''
SELECT id FROM titles WHERE title_key=? AND authors=? ORDER BY id''', (title,roster))]
emit({'kind':'exact_title_and_roster','title_key':title,'paper_ids':ids})
if extended_titles:
counts['exact_title_with_roster_variation_groups'] = 0
counts['near_title_pairs_in_oversized_rosters'] = 0
for title,roster_count,missing in scratch.execute('''
SELECT title_key,count(DISTINCT authors),count(*)-count(authors)
FROM titles WHERE title_key<>''
GROUP BY title_key HAVING count(*)>1
AND (count(DISTINCT authors)>1 OR count(authors)<count(*))
ORDER BY title_key'''):
ids = [row[0] for row in scratch.execute('''
SELECT id FROM titles WHERE title_key=? ORDER BY id''', (title,))]
counts['exact_title_with_roster_variation_groups'] += 1
emit({'kind':'exact_title_with_roster_variation','title_key':title,'paper_ids':ids,
'distinct_known_rosters':roster_count,'papers_missing_roster':missing})
cursor = scratch.execute('''
SELECT authors,title_key,id FROM titles WHERE authors IS NOT NULL AND length(title_key)>=25
ORDER BY authors,title_key,id''')
@@ -142,29 +157,34 @@ def _candidates(scratch, output):
size = 0
for _, title, paper_id in group:
size += 1
if size <= ROSTER_GROUP_LIMIT:
if extended_titles or size <= ROSTER_GROUP_LIMIT:
entries.append((title,paper_id))
if size > ROSTER_GROUP_LIMIT:
oversized = size > ROSTER_GROUP_LIMIT
if oversized:
counts['oversized_rosters'] += 1
counts['papers_in_oversized_rosters'] += size
emit({'kind':'oversized_roster','size':size,'sample_paper_ids':[p for _,p in entries[:5]]})
continue
if not extended_titles:
emit({'kind':'oversized_roster','size':size,'sample_paper_ids':[p for _,p in entries[:5]]})
continue
for (left,left_id),(right,right_id) in combinations(entries,2):
if left==right or 2*min(len(left),len(right))/(len(left)+len(right)) < TITLE_SCORE:
continue
matcher = SequenceMatcher(None,left,right,autojunk=False)
if matcher.quick_ratio()>=TITLE_SCORE and (score:=matcher.ratio())>=TITLE_SCORE:
counts['near_title_and_roster_pairs'] += 1
if oversized:
counts['near_title_pairs_in_oversized_rosters'] += 1
emit({'kind':'near_title_and_roster','paper_ids':[left_id,right_id],'score':round(score,5)})
return dict(counts)
def report(connection, scratch_root, candidates):
def report(connection, scratch_root, candidates, *, extended_titles=False):
transaction = dict(connection.execute('''
SELECT current_database() AS database,current_schema() AS schema,
current_setting('transaction_read_only') AS read_only,
current_setting('transaction_isolation') AS isolation,
transaction_timestamp()::text AS snapshot_at''').fetchone())
transaction_timestamp()::text AS snapshot_at,
(SELECT max(id) FROM ingest_runs) AS last_ingest_run''').fetchone())
if transaction['read_only']!='on' or transaction['isolation']!='repeatable read':
raise ValueError('A read-only repeatable-read snapshot is required')
if shutil.disk_usage(scratch_root).free < 2*1024**3:
@@ -177,12 +197,14 @@ def report(connection, scratch_root, candidates):
with closing(sqlite3.connect(Path(directory)/'titles.sqlite')) as scratch:
scratch.execute('PRAGMA temp_store=FILE')
counts = _stage_titles(connection,scratch)
candidate_counts = _candidates(scratch,candidates)
candidate_counts = _candidates(scratch,candidates,extended_titles=extended_titles)
return {'snapshot':transaction,'papers':counts,'integrity':integrity,
'candidate_counts':candidate_counts,'edition_sources':coverage,'search':search,
'candidate_rules':{'minimum_normalized_title_length':25,'near_title_score':TITLE_SCORE,
'max_papers_per_near_title_author_group':ROSTER_GROUP_LIMIT,
'requires_exact_normalized_author_set':True},
'max_papers_per_near_title_author_group':None if extended_titles else ROSTER_GROUP_LIMIT,
'includes_exact_title_with_roster_variation':extended_titles,
'requires_exact_normalized_author_set':not extended_titles,
'near_title_requires_exact_normalized_author_set':True},
'canonical_data_changed':False}
@@ -192,8 +214,10 @@ def main(argv=None, *, prog=None):
parser.add_argument('--pg-schema')
parser.add_argument('--scratch-root',type=Path,required=True)
parser.add_argument('--candidate-output',type=Path,required=True)
parser.add_argument('--extended-titles',action='store_true',
help='同时输出同题不同或缺失署名的候选,并扫描超出默认规模的作者组')
args = parser.parse_args(argv)
with closing(ReadConnection(args.pg_service,args.pg_schema)) as connection:
with args.candidate_output.open('x',encoding='utf-8') as candidates:
result = report(connection,args.scratch_root,candidates)
result = report(connection,args.scratch_root,candidates,extended_titles=args.extended_titles)
print(json.dumps(result,ensure_ascii=False))
+39 -2
View File
@@ -28,6 +28,23 @@ def author_keys(authors):
return result
def _candidate_observations(score, evidence, status):
try:
payload = json.loads(evidence)
except ValueError:
payload = None
if isinstance(payload, dict) and set(payload) == {'reattached_observations'}:
rows = payload['reattached_observations']
if isinstance(rows, list) and rows and all(
isinstance(row, list) and len(row) == 3
and (row[0] is None or isinstance(row[0], (int, float)))
and isinstance(row[1], str) and isinstance(row[2], str)
for row in rows
):
return [tuple(row) for row in rows]
return [(score, evidence, status)]
class Store:
def __init__(self,path):
require_sqlite_writable(path)
@@ -69,8 +86,28 @@ class Store:
for left,right,method,score,evidence,status in candidates:
left = target if left == other else left
right = target if right == other else right
if left != right:
c.execute('INSERT INTO match_candidates VALUES(?,?,?,?,?,?) ON CONFLICT DO NOTHING',(min(left,right),max(left,right),method,score,evidence,status))
if left == right:
continue
key = (min(left, right), max(left, right), method)
inserted = c.execute(
'INSERT INTO match_candidates VALUES(?,?,?,?,?,?) ON CONFLICT DO NOTHING',
(*key, score, evidence, status),
)
if inserted.rowcount:
continue
current = c.execute(
'SELECT score,evidence_json,status FROM match_candidates '
'WHERE left_paper_id=? AND right_paper_id=? AND method=?',
key,
).fetchone()
existing = _candidate_observations(*current)
combined = list(dict.fromkeys(existing + _candidate_observations(score, evidence, status)))
if combined != existing:
c.execute(
'UPDATE match_candidates SET evidence_json=? '
'WHERE left_paper_id=? AND right_paper_id=? AND method=?',
(json.dumps({'reattached_observations': combined}, ensure_ascii=False), *key),
)
c.execute('DELETE FROM papers WHERE id=?',(other,))
def record(self,source,external_id,url,title,abstract,authors,identifiers=None,metadata=None,published=None):
+30
View File
@@ -52,6 +52,36 @@ class GlobalIdentityCandidatesTest(unittest.TestCase):
global_identity._author_fingerprint(records))
self.assertIsNone(global_identity._author_fingerprint('[]'))
def test_extended_titles_include_changed_rosters_and_scan_oversized_rosters(self):
output = io.StringIO()
with sqlite3.connect(':memory:') as scratch:
scratch.execute('CREATE TABLE titles (id INTEGER, title_key TEXT, authors BLOB)')
scratch.executemany('INSERT INTO titles VALUES (?,?,?)', [
(1, 'astronomicaltransientcatalogue', b'first'),
(2, 'astronomicaltransientcatalogues', b'first'),
(3, 'astronomicaltransientcatalogued', b'first'),
(4, 'astronomicaltransientcatalogue', b'second'),
(5, 'astronomicaltransientcatalogue', None),
(6, 'anotherunrelatedarticleheading', None),
(7, 'anotherunrelatedarticleheading', None),
])
with patch.object(global_identity, 'ROSTER_GROUP_LIMIT', 2):
counts = global_identity._candidates(scratch, output, extended_titles=True)
records = [json.loads(row) for row in output.getvalue().splitlines()]
self.assertEqual(counts['oversized_rosters'], 1)
self.assertEqual(counts['near_title_pairs_in_oversized_rosters'], 3)
self.assertEqual(counts['near_title_and_roster_pairs'], 3)
self.assertEqual(counts['exact_title_with_roster_variation_groups'], 2)
self.assertEqual(records[:2], [
{'kind': 'exact_title_with_roster_variation', 'title_key': 'anotherunrelatedarticleheading',
'paper_ids': [6, 7], 'distinct_known_rosters': 0, 'papers_missing_roster': 2},
{'kind': 'exact_title_with_roster_variation', 'title_key': 'astronomicaltransientcatalogue',
'paper_ids': [1, 4, 5], 'distinct_known_rosters': 2, 'papers_missing_roster': 1},
])
self.assertEqual({tuple(sorted(record['paper_ids'])) for record in records[2:]},
{(1, 2), (1, 3), (2, 3)})
def test_doi_pattern_is_bound_as_a_parameter(self):
connection = Mock()
+34
View File
@@ -97,6 +97,40 @@ class StoreTests(unittest.TestCase):
self.assertIsNotNone(self.store.conn.execute('SELECT 1 FROM papers WHERE id=?',(unrelated,)).fetchone())
self.assertEqual(self.store.conn.execute('SELECT count(*) FROM paper_merges').fetchone()[0],1)
def test_merge_preserves_colliding_candidate_observations(self):
first, _ = self.record('arxiv', '2601.00001', authors=['First Author'])
second, _ = self.record('pmlr', 'v1/second', authors=['Second Author'])
third, _ = self.record('acl', '2026.acl.1', authors=['Third Author'])
related, _ = self.record('arxiv', '2601.00002', authors=['Related Author'])
db = self.store.conn
method = 'exact_title_unconfirmed'
original = (None, '{"title":"Conference title"}', 'pending')
incoming = (0.98, '{"title":"Preprint title"}', 'pending')
for paper, observation in ((first, original), (second, incoming), (third, incoming)):
left, right = sorted((paper, related))
db.execute(
'INSERT INTO match_candidates VALUES(?,?,?,?,?,?) '
'ON CONFLICT(left_paper_id,right_paper_id,method) DO UPDATE SET '
'score=excluded.score,evidence_json=excluded.evidence_json,status=excluded.status',
(left, right, method, *observation),
)
self.store.merge(first, second, 'confirmed publication version')
self.store.merge(first, third, 'confirmed additional source')
rows = db.execute(
'SELECT left_paper_id,right_paper_id,score,evidence_json,status '
'FROM match_candidates WHERE method=?',
(method,),
).fetchall()
[(left, right, score, evidence, status)] = rows
self.assertEqual((left, right, score, status), (first, related, None, 'pending'))
self.assertEqual(
json.loads(evidence)['reattached_observations'],
[list(original), list(incoming)],
)
self.assertEqual(db.execute('PRAGMA foreign_key_check').fetchall(), [])
def test_manifest_count_mismatch_rolls_back_records(self):
path=Path(self.tmp.name)/'source.jsonl'
path.write_text(json.dumps({'source':'pmlr','external_id':'v1/paper','url':'https://example.org/paper','title':'Paper','abstract':'Abstract','authors':[],'venue':'ICML','year':2023,'track':'main','status':'accepted'})+'\n')
+31
View File
@@ -66,6 +66,37 @@ class PostgreSQLIngestionTests(unittest.TestCase):
def store(self):
return open_store(pg_service=self.service, pg_schema=self.schema)
def test_merge_preserves_colliding_candidate_evidence(self):
store = self.store()
with closing(store.conn) as db, db:
ids = [
store.record('fixture', key, 'https://example.org/' + key, title, None, ['Author'])[0]
for key, title in (
('preprint', 'Preprint'),
('proceedings', 'Proceedings version'),
('related', 'Related work'),
)
]
first, second, related = ids
expected = [
(None, '{"title":"Preprint"}', 'pending'),
(0.75, '{"title":"Proceedings version"}', 'pending'),
]
for paper, observation in zip((first, second), expected):
db.execute(
'INSERT INTO match_candidates VALUES(?,?,?,?,?,?)',
(paper, related, 'exact_title_unconfirmed', *observation),
)
store.merge(first, second, 'confirmed publication version')
row = db.execute(
'SELECT left_paper_id,right_paper_id,evidence_json FROM match_candidates',
).fetchone()
self.assertEqual(row[:2], (first, related))
self.assertEqual(
json.loads(row[2])['reattached_observations'],
[list(observation) for observation in expected],
)
def row(self, source='openreview_snapshot', external='forumNew1', status='rejected', year=2025, venue='ICLR'):
return {'source': source, 'external_id': external, 'url': 'https://example.org/' + external,
'venue': venue, 'year': year, 'track': 'main', 'status': status,