Dev.to Security 🔐 Cybersecurity 👁 0 📖 3 min read

Detecting Hallucinated AI Citations with Modular Arithmetic, ISO 26324 DOIs & arXiv Bounds

Canonical Source: Originally published by Nandai Jewels (Victoria, British Columbia, Canada) at https://nandai.org/guides/detecting-hallucinated-citations-checksum-math. Try the $0 Zero-Upload Browser Utility: https://na

Canonical Source: Originally published by Nandai Jewels (Victoria, British Columbia, Canada) at https://nandai.org/guides/detecting-hallucinated-citations-checksum-math.
Try the $0 Zero-Upload Browser Utility: https://nandai.org/tools/citation-verifier
Install via Homebrew (macOS 15+ Sequoia ARM64): brew install --cask karany97/destiny/destiny

1. Why Autoregressive Token Predictors Fail Modular Checksums

When an LLM fabricates a plausible-looking academic bibliography entry, it samples subword tokens from a softmax distribution over surface co-occurrences. However, standardized bibliographic identifiers—ISBN-13, ISBN-10, ISSN, ORCID (ISO/IEC 7064 Mod 11-2), ISO 26324 DOIs, and arXiv YYMM.NNNNN identifiers—encode global algebraic or calendar invariants across all digits simultaneously.

Without invoking a deterministic symbolic verifier, an autoregressive decoder sampling digit-by-digit fails modular check digits roughly $90\%$ of the time for Modulo-10 and $90.9\%$ of the time for Modulo-11.

2. Exact Modular Verification Equations

A. ISBN-13 (EAN-13 Modulo-10 Alternating Weight Check)

For a 13-digit identifier $d_1 d_2 \dots d_{13}$ (with GS1 Bookland prefix $978$ or $979$):

$$
\sum_{i=1}^{13} w_i d_i \equiv 0 \pmod{10}, \quad w_i = \begin{cases} 1 & \text{if } i \text{ is odd} \ 3 & \text{if } i \text{ is even} \end{cases}
$$

B. ISBN-10 & ISSN (Positional Modulo-11 Check)

For an ISBN-10 $d_1 d_2 \dots d_{10}$ (where $d_{10} \in {0..9, \text{X}=10}$):

$$
\sum_{i=1}^{10} (11 - i)\, d_i \equiv 0 \pmod{11}
$$

For an 8-digit ISSN $d_1 d_2 \dots d_8$:

$$
\sum_{i=1}^{8} (9 - i)\, d_i \equiv 0 \pmod{11}
$$

C. arXiv Identifier Calendar Invariants (YYMM.NNNNN)

Post-April 2007 arXiv identifiers follow YYMM.NNNN[N][vV], enforcing:

  1. Year $YY \ge 07$ (and not in the future relative to the current UTC year/month).
  2. Month $1 \le MM \le 12$ (with $YY=07 \implies MM \ge 04$).
  3. 4-digit sequence numbers prior to 1501 (0704–1412) and 4-to-5 digit sequence numbers from 1501 onward.
export function verifyIsbn13(raw: string): boolean {
  const digits = raw.replace(/[-\s]/g, '');
  if (!/^97[89]\d{10}$/.test(digits)) return false;
  let sum = 0;
  for (let i = 0; i < 13; i++) {
    const d = digits.charCodeAt(i) - 48;
    sum += (i % 2 === 0 ? 1 : 3) * d;
  }
  return sum % 10 === 0;
}

Test your BibTeX, RIS, or Markdown bibliography locally in browser RAM (zero server uploads) using the free Citation Checksum Verifier built by Nandai Jewels (Victoria, British Columbia, Canada):

Global Syndication Abstracts (11 Developer Platforms)

🇯🇵 Zenn.dev / Qiita (日本語要約)

  • タイトル: AIが捏造した論文引用をモジュラ算術(ISBN/ISSNチェックディジット・ISO 26324 DOI・arXiv境界)で検知する数理
  • 概要: 自己回帰LLMがなぜISBN-13(Mod-10)やISBN-10/ISSN(Mod-11)のチェックサムを誤るのかを証明し、ブラウザRAM内で瞬時に検証する実装を公開します。
  • 正規URL: https://nandai.org/guides/detecting-hallucinated-citations-checksum-math
  • Homebrew導入: brew install --cask karany97/destiny/destiny(Apple公証済み Team ID ・バンドルID Destiny for Mac)

🇰🇷 GeekNews / Velog (한국어 요약)

  • 제목: 모듈러 연산(ISBN/ISSN 체크섬, ISO 26324 DOI, arXiv 경계)으로 AI 환각 인용 탐지하기
  • 요약: LLM이 생성한 가짜 학술 참고문헌을 EAN Modulo-10, Modulo-11 체크섬 및 arXiv YYMM 달력 불변량으로 브라우저에서 즉시 검증하는 알고리즘입니다.
  • 정식 URL: https://nandai.org/guides/detecting-hallucinated-citations-checksum-math

🇫🇷 Korben / Journal du Hacker (Résumé Français)

  • Titre: Détecter les citations académiques hallucinées par l'IA grâce à l'arithmétique modulaire (ISBN, ISSN, DOI, arXiv)
  • Résumé: Pourquoi les modèles autorégressifs échouent aux sommes de contrôle Modulo-10/Modulo-11 et comment les vérifier localement dans le navigateur.
  • URL Canonique: https://nandai.org/guides/detecting-hallucinated-citations-checksum-math

🇩🇪 Heise Developer (Deutsche Zusammenfassung)

  • Titel: Halluzinierte KI-Zitate mit modularer Arithmetik, ISO-26324-DOIs und arXiv-Grenzen erkennen
  • Zusammenfassung: Mathematische Analyse von EAN-Modulo-10 (ISBN-13), Modulo-11 (ISBN-10/ISSN) und arXiv-Kalenderinvarianten zur lokalen Zitatprüfung im Browser.
  • Kanonische URL: https://nandai.org/guides/detecting-hallucinated-citations-checksum-math

🇧🇷 TabNews (Resumo em Português)

  • Título: Detectando Citações Acadêmicas Alucinadas por IA com Aritmética Modular (ISBN, ISSN, DOI ISO 26324 e arXiv)
  • Resumo: Por que preditores de tokens falham nos dígitos verificadores Modulo-10 e Modulo-11 e como validar referências localmente na RAM do navegador.
  • URL Canônica: https://nandai.org/guides/detecting-hallucinated-citations-checksum-math

🌐 Habr (Аннотация на русском языке)

  • Заголовок: Выявление галлюцинаций ИИ в библиографии с помощью модульной арифметики (ISBN, ISSN, DOI ISO 26324 и arXiv)
  • Резюме: Математический разбор контрольных сумм Modulo-10/Modulo-11 и календарных инвариантов arXiv для мгновенной проверки ссылок в браузере.
  • Канонический URL: https://nandai.org/guides/detecting-hallucinated-citations-checksum-math

Verification & Regulatory Disclaimers

  • Publisher: Nandai Jewels (Victoria, British Columbia, Canada)
  • Apple Developer Team ID: · Notary UUID: · Bundle ID: Destiny for Mac
  • Golden Notarized DMG: 271.35 MB (271,345,746 B, SHA-256 2da76c011c1bd511cc5547ff152b8b7382cf7793cc5d7e13078ba317abd54a3e) · Installed App: 419.17 MB (419,168,569 B) · OTA: Ed25519-signed direct in-app updates
  • Audited Apple M4 Pro (24 GB) Benchmark: 78.62 tok/s single-stream (93.37 tok/s 8-stream batch) on Destiny Swift (LFM2-8B-A1B, 128K context, zero login required); ~399–421 MB live native GUI footprint + MAP_SHARED 0 B dirty GGUF weights (112–168 ms cold-boot self-test).
  • Disclaimers: Market charting (Destiny Trader) is for informational, charting, and analytical use only — not investment or financial advice. Contract Clause Scanner and CycloneDX 1.6 EU CRA SBOM Auditor are informational engineering tools only — not legal advice or formal compliance certification. Parametric 3D CAD (Beta) is not PE / P.Eng. certified for regulated fabrication.
📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.