← Lab /AI/ML

LLMs do not improve neural distinguishers for SPECK-32/64

LLM-based neural distinguishers provide no observable improvement over ResNet models

AI/ML arXiv 9 Jun 2026 Measurement Prototype evidence Threat model

Published as “Do LLMsMakeNeural Distinguishers Wise?”

Why it matters

LLMs do not currently increase the practical threat of machine-learning-based differential cryptanalysis.

Summary

LLM-based neural distinguishers do not improve accuracy over the ResNet baseline on SPECK-32/64, even with prompt engineering; only a few-shot XOR prompt yields modest gains, while Chain-of-Thought hurts performance. Experiments on up to 10^6 training ciphertext pairs across 5-8 rounds show LLMs generally perform at chance for rounds ≥6. The evidence is based on measured accuracy and F1 scores, with limited impact from dataset distribution enhancements.

What they found 2

  1. LLM-based neural distinguishers provide no observable improvement over ResNet.

    “we demonstrate that LLMs provide no observable improvement in the performance of neural distinguishers.”

  2. Including only the XOR operation result in a few-shot prompt substantially improves all metrics.

    “adding XOR information in a few-shot setting is effective for prompt design, as all the metrics of the LLM-based neural distinguisher are improved substantially”

Caveats 4

  • qwen3-32b achieves a higher F1 score at round 8 than ResNet ("except for the F1 scores of qwen3-32b at round 8 ... the performance ... is lower than that of ResNet").
  • gpt-oss-120b attains higher accuracy and F1 at round 5 than the other LLMs ("gpt-oss-120b achieves higher accuracy and F1 scores at round 5 than the other models except for ResNet").
  • Our computers could only analyze data sets of up to 5 × 10^7.
  • enhancing the ciphertext dataset at higher rounds is non-trivial within the scope of this paper.

What’s new here 4

  • First exploration of large language models as the core model for neural distinguishers.
  • Systematic evaluation of prompt designs (few-shot XOR and Chain-of-Thought) for LLM-based distinguishers.
  • Analysis of ciphertext distribution using PCA and k-means to select new input differences, discovering a difference for round 8.
  • Comparison of multiple open-weight LLMs (Mistral, Mixtral, Qwen, GPT-OSS) against the ResNet baseline.

Threat model stated by the source

Adversarycryptanalyst building a neural distinguisher
Capabilityknows the encryption algorithm, can obtain plaintext-ciphertext pairs, has sufficient compute to train and deploy LLMs
Assumesno side-channel attacks