注意力增强LSTM用于自动同音替换密码破译
Attention-Augmented LSTMs for Automatic Homophonic Ciphertext Decipherment
AI总结:
本文评估注意力增强LSTM模型在共享密钥设置下自动破译同音替换密码的能力,在历史英语和瑞典语文本上实现接近完美的字符级解密准确率。
摘要:
同音替换密码将每个明文字母替换为多个可能的密文字符之一,故意削弱字母频率模式,使自动破译变得困难。本文评估了注意力增强的长短期记忆(LSTM)模型是否能在历史动机的共享密钥设置中学习此类映射:所有密文来自相同的已知同音代码池,而单个密钥使用该池的不同一致子集。使用ChronoFidelius从1500--1899年的历史英语和瑞典语文本生成的合成密文,我们测试了不同密文长度、世纪、变长代码和模拟转录错误下的性能。模型仅在对齐的密文-明文对上训练,没有外部语言模型、频率统计或密钥搜索启发式。结果表明,在两种语言和所有时期,包括短且含噪声的密文,字符级解密准确率接近完美。该模型在共享池外的密文上也会可预测地失败,表明当怀疑密钥重用时,它可作为破译和密钥空间验证的实用工具。
英文摘要:
Homophonic substitution ciphers replace each plaintext letter with one of several possible ciphertext codes, deliberately weakening letter-frequency patterns and making automated decipherment difficult. This paper evaluates whether an attention-augmented Long Short-Term Memory (LSTM) model can learn such mappings in a historically motivated shared-key setting: all ciphertexts draw from the same known homophonic code pool, while individual keys use different consistent subsets of that pool. Using synthetic ciphertexts generated with ChronoFidelius from historical English and Swedish texts dated 1500--1899, we test performance across ciphertext lengths, centuries, variable-length codes, and simulated transcription errors. Models are trained only on aligned ciphertext--plaintext pairs, without external language models, frequency statistics, or key-search heuristics. Results show near-perfect character-level decryption accuracy across both languages and all periods, including short and noisy ciphertexts. The model also fails predictably on ciphertexts outside the shared pool, indicating that it functions as a practical tool for decipherment and key-space verification when key reuse is suspected.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。