Search papers, labs, and topics across Lattice.
This study investigates the application of large language models (LLMs) as neural distinguishers in symmetric-key cryptography, specifically targeting the SPECK-32/64 algorithm. The authors conducted extensive experiments and found that LLMs do not outperform traditional ResNet models in distinguishing capabilities, particularly at high rounds where the choice of differences becomes ineffective. However, they identified that incorporating XOR operation results into the prompt design can significantly enhance the performance of LLM-based neural distinguishers.
LLMs fail to enhance neural distinguishers in cryptography, but a simple prompt tweak using XOR can lead to significant performance gains.
Neural distinguishers are a cryptanalysis method for symmetric-key cryptography that trains machine learning models on pairs of plaintexts and ciphertexts with specific differences in order to recover a secret key. To the best of our knowledge, no existing work has explored the use of large language models (LLMs) for neural distinguishers. In this paper, we propose LLM-based neural distinguishers through a prompt design and conduct extensive experiments with them on SPECK-32/64 to investigate whether LLMs can strengthen neural distinguishers. We then found three key insights. First, by comparing the results of LLM-based neural distinguishers with ResNet in the existing work, we demonstrate that LLMs provide no observable improvement in the performance of neural distinguishers. Second, we confirm that, at high rounds, the choice of differences is no longer effective for LLM-based neural distinguishers as well as ResNet. Third, we show that the performance of LLM-based neural distinguishers can be significantly improved by incorporating only the XOR operation results as a prompt design.