Collin Zhang
· 3 previous affiliations
- Cornell UniversityCurrent
- Current
- Cornell TechSince 2023
- PhD student · Since 2023
- New York University2019–2023
- Undergrad student · 2019–2023
Research Overview
Collin Zhang focuses on large language model alignment, adversarial machine learning, and privacy-preserving systems. His early work explored zero-knowledge middleboxes for secure network policy enforcement before shifting toward the security and interpretability of generative AI. His current research addresses vulnerabilities in language models, including prompt extraction, embedding inversion, and mechanisms to prevent language confusion during multilingual generation.
Research Trajectory
During his doctoral studies at Cornell Tech, Collin Zhang’s early research addressed applied cryptography and network privacy. As the first author of Zombie: Middleboxes that Don't Snoop (2023), he contributed to the development of zero-knowledge middleboxes (ZKMBs). This system allowed network administrators to enforce security policies on encrypted TLS 1.3 traffic without exposing private user data, utilizing cryptographic precomputation and a novel regular expression compiler to significantly reduce latency for privacy-preserving policy enforcement.
In 2024, Zhang’s focus shifted toward the security, privacy, and alignment of large language models (LLMs). He led work on reverse-engineering model inputs, introducing a black-box method in Extracting Prompts by Inverting LLM Outputs. This approach successfully extracted hidden prompts using only standard user queries and text outputs, demonstrating zero-shot transferability across commercial models without requiring access to internal logits. Concurrently, he investigated adversarial attacks on retrieval-augmented generation (RAG) systems. In Controlled Generation of Natural Adversarial Documents for Stealthy Retrieval Poisoning, Zhang developed Adversarial Decoding (AdvDec), a framework utilizing multi-objective beam search to generate human-readable adversarial text capable of bypassing automated safety filters and poisoning retrieval systems.
Expanding his security research to multi-modal systems, Zhang served as the second author on Soft Prompts Go Hard: Steering Visual Language Models with Hidden Meta-Instructions. This work explored indirect injection attacks by generating images that act as soft prompts, effectively steering visual language models to adopt adversary-chosen sentiments or styles while maintaining plausible responses to the visual content.
In 2025, Zhang extended his focus on model privacy to text representations. As the first author of Universal Zero-shot Embedding Inversion, he demonstrated that text embeddings are highly susceptible to inversion attacks. By combining adversarial decoding with a one-time-trained correction model, the research showed that original text could be reconstructed from vector representations even when protected by Gaussian noise, highlighting previously underappreciated privacy risks in embedding models.
Most recently, Zhang’s work has emphasized practical LLM alignment and generation quality. During an internship at the Qwen Team, he developed intervention mechanisms to prevent language confusion and repetition, which were subsequently deployed in the Qwen API and Chat. This research culminated in Language Confusion Gate: Language-Aware Decoding Through Model Self-Distillation (2026). The paper introduced a lightweight plug-in that dynamically filters inappropriate tokens during decoding via norm-adjusted self-distillation, significantly reducing script-mixing errors without requiring expensive model retraining or sacrificing reasoning performance.
Current Directions
Zhang's most recent work investigates the reliability and consistency of multilingual large language models. A primary focus is the research direction of Language Steering for Consistent Multilingual Generation, where he explores lightweight, inference-time interventions to keep models from erratically switching languages when prompted in low-resource settings. This connects to the broader area of Robust Natural Language Processing for Code-Mixed Communication, addressing how models handle the fluid blending of languages common in global communication. Moving forward, his research continues to balance the theoretical security of embeddings and model weights with the practical alignment of deployed generative systems.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake