paper-with-me

홈 › Papers

Can Transformers Break Encryption Schemes via In-Context Learning?

2025-08-13 · Jathin Korrapati, Patrick Mendoza, Aditya Tomar, Abein Abraham arxiv

In-context learning (ICL) has emerged as a powerful capability of transformer-based language models, enabling them to perform tasks by conditioning on a small number of examples presented at inference time, without any parameter updates. Prior work has shown that transformers can generalize over simple function classes like linear functions, decision trees, even neural networks, purely from context, focusing on numerical or symbolic reasoning over underlying well-structured functions. Instead, we propose a novel application of ICL into the domain of cryptographic function learning, specifically focusing on ciphers such as mono-alphabetic substitution and Vigenère ciphers, two classes of private-key encryption schemes. These ciphers involve a fixed but hidden bijective mapping between plain text and cipher text characters. Given a small set of (cipher text, plain text) pairs, the goal is for the model to infer the underlying substitution and decode a new cipher text word. This setting poses a structured inference challenge, which is well-suited for evaluating the inductive biases and generalization capabilities of transformers under the ICL paradigm. Code is available at https://github.com/adistomar/CS182-project.

📄 PDF Abstract BibTeX arXiv:2508.10235

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

When "Competency" in Reasoning Opens the Door to Vulnerability: Jailbreaking LLMs via Novel Complex Ciphers

2024-02-16 · Divij Handa, Zehua Zhang, Amir Saeidi, Chitta Baral

Recent advancements in the safety of Large Language Models (LLMs) have primarily focused on mitigating attacks crafted in natural language or in common encryption techniques like Base64. However, new models which often p…

Benchmarking Large Language Models for Cryptanalysis and Mismatched-Generalization

2025-05-30 · Utsav Maskey, Chencheng Zhu, Usman Naseem

Recent advancements in Large Language Models (LLMs) have transformed natural language understanding and generation, leading to extensive benchmarking across diverse tasks. However, cryptanalysis a critical area for data …

BenchmarkingCryptanalysisNatural Language Understanding

Power-Softmax: Towards Secure LLM Inference over Encrypted Data

2024-10-12 · Itamar Zimerman, Allon Adir, Ehud Aharoni, Matan Avitan 외

Modern cryptographic methods for implementing privacy-preserving LLMs such as Homomorphic Encryption (HE) require the LLMs to have a polynomial form. Forming such a representation is challenging because Transformers incl…

In-Context LearningInductive BiasPrivacy Preserving

Attacks on Image Encryption Schemes for Privacy-Preserving Deep Neural Networks

2020-04-28 · Alex Habeen Chang, Benjamin M. Case

Privacy preserving machine learning is an active area of research usually relying on techniques such as homomorphic encryption or secure multiparty computation. Recent novel encryption techniques for performing machine l…

BIG-bench Machine LearningPrivacy Preserving

Partially Encrypted Machine Learning using Functional Encryption

2019-05-24 · Theo Ryffel, Edouard Dufour-Sans, Romain Gay, Francis Bach 외

Machine learning on encrypted data has received a lot of attention thanks to recent breakthroughs in homomorphic encryption and secure multi-party computation. It allows outsourcing computation to untrusted servers witho…

BIG-bench Machine LearningPrivacy Preserving