While large code language models have made significant strides in AI-assisted coding tasks, there are growing concerns about privacy challenges. The user code is transparent to the cloud LLM service provider, inducing risks of unauthorized training, reading, and execution of the user code. In this paper, we propose CodeCipher, a novel method that perturbs privacy from code while preserving the original response from LLMs. CodeCipher transforms the LLM's embedding matrix so that each row corresponds to a different word in the original matrix, forming a token-to-token confusion mapping for obfuscating source code. The new embedding matrix is optimized by minimizing the task-specific loss function. To tackle the challenge of the discrete and sparse nature of word vector spaces, CodeCipher adopts a discrete optimization strategy that aligns the updated vector to the nearest valid token in the vocabulary before each gradient update. We demonstrate the effectiveness of our approach on three AI-assisted coding tasks including code completion, summarization, and translation. Results show that our model successfully confuses the privacy in source code while preserving the original LLM's performance.
A Novel Semantic Manifold Alignment Attack against Embedding-to-Embedding Obfuscation in Privacy-Preserving LLMs
University of Houston(休斯顿大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Waseda University(早稻田大学);Stevens Institute of Technology(史蒂文斯理工学院);National Taiwan University(国立台湾大学)
Don't Judge a Book by its Cover: Testing LLMs' Robustness Under Logical Obfuscation
Manipal University Jaipur(马纳普大学贾普尔分校);Indian Institute of Technology, Patna(印度理工学院帕坦分校);Indian Institute of Science Education and Research, Kolkata(印度科学教育与研究学院科钦分校)
ObfusQAte: A Proposed Framework to Evaluate LLM Robustness on Obfuscated Factual Question Answering
Indian Institute of Technology Patna(印度帕纳布理工大学);Manipal University Jaipur(贾伊普尔曼尼帕尔大学);Indian Institute of Science Education and Research Kolkata(印度科学教育与研究学院科利卡塔)
Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activations
Neurosciences Graduate Program University of California San Diego(加州大学圣地亚哥分校神经科学研究生项目);School of Psychology Georgia Tech(佐治亚理工学院心理学系);Department of Psychology New York University(纽约大学心理学系);Department of Neurobiology University of California San Diego(加州大学圣地亚哥分校神经生物学系)
EVADE-Bench: Multimodal Benchmark for Evaluating and Enhancing Evasive Content Detection
SIAT, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Chinese Academy of Sciences(中国科学院大学);Alibaba Group(阿里巴巴集团);University of New South Wales(新南威尔士大学)
LLM-DetectAIve: a Tool for Fine-Grained Machine-Generated Text Detection
MBZUAI(穆罕默德·本·扎耶德人工智能大学);Alexandria University(亚历山大大学);Zewail City of Science and Technology(扎维尔科技城);University of Florida(佛罗里达大学);Hanoi University of Science and Technology(河内科技大学);Cluster Innovation Center, University of Delhi(德里大学集群创新中心);Toloka AI(托洛卡人工智能公司);University of Oslo(奥斯陆大学);New York University Abu Dhabi(纽约大学阿布扎比分校);KU Leuven(鲁汶大学)