Borui Yang

Shanghai Jiao Tong University
1 previous affiliation
7Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Borui Yang focuses on the security, privacy, and intellectual property protection of machine learning models, with a primary emphasis on Ownership Verification for Deep Neural Networks and Watermarking and Detection for Low-Entropy Source Code. Yang’s research addresses the vulnerabilities inherent in modern AI systems, ranging from the transferability of adversarial perturbations to the unauthorized redistribution of proprietary model weights and generated content. By developing robust watermarking frameworks and tracking mechanisms, Yang aims to establish technical safeguards for the provenance of both code and generative models in increasingly open and adversarial environments.

Research Trajectory

Yang’s early research contributions were grounded in the study of adversarial machine learning, specifically focusing on the limitations of model robustness in black-box settings. This work explored the Cross-Architecture Transferability of Adversarial Attacks, investigating why adversarial examples crafted for specific architectures, such as ResNet, often fail to generalize to different structures like Vision Transformers. This period of work also examined Query-Efficient Black-Box Attacks on Machine Learning Models, which sought to minimize the number of interactions required for an adversary to map decision boundaries or extract sensitive information from a target model.

By 2023, Yang’s focus transitioned toward the emerging challenge of code provenance and the protection of software intellectual property. As Large Language Models (LLMs) became capable of generating sophisticated source code, the need to distinguish between human-authored and AI-generated scripts intensified. Yang began developing Semantic Preserving Transformations for Code Watermarking, a field that requires balancing the insertion of identifiable signatures with the strict functional requirements of executable code. This trajectory led to the development of "SrcMarker," a system designed to embed bitstrings into source code through multiple transformation channels.

In 2024 and 2025, Yang expanded these methodologies to address the broader security landscape of the "Mini App" ecosystems and multimodal Transformer architectures. This period saw a shift toward more scalable and modality-agnostic protection methods. Yang contributed to the development of Multi-Bit Watermarking for Generative Model Provenance, moving beyond binary detection to enable the identification of specific model versions or users. This evolution culminated in recent work on robust watermarking for code generation models, focusing on resilience against model extraction and fine-tuning attacks.

Current Directions

Yang’s current research is concentrated on the intersection of generative AI safety and robust ownership verification. A central theme is the development of watermarking techniques that are resilient to "laundering" or rebranding of model weights. This involves creating signatures that survive significant post-training modifications, such as fine-tuning or quantization, which are commonly used to strip traditional watermarks.

Another active area of investigation is the application of these security measures to low-entropy environments. In source code, where the limited variety of syntactically correct tokens makes traditional natural language watermarking difficult, Yang is exploring contextual and natural watermarking strategies. These methods aim to embed signatures that appear as standard coding practices, making them difficult for adversaries to detect or remove without compromising the code's utility. Furthermore, Yang is investigating modality-agnostic frameworks that can protect Transformer-based models regardless of whether they process text, images, or code, leveraging fundamental architectural properties like permutation equivariance to ensure broad applicability.

Representative Work

As the first author of CodeGenGuard: A Watermark for Code Generation Models, Yang introduced a robust framework designed to protect the intellectual property of specialized LLMs. The system utilizes a "dual-LoRA" shadow training scheme to embed hidden signatures during the generation process. This approach is specifically engineered to survive model theft and extraction attacks, ensuring that even if the model's weights are partially repurposed, the original ownership can still be verified without degrading the quality of the generated code.

In the second-author paper TokenMark: A Modality-Agnostic Watermark for Pre-trained Transformers, Yang participated in the development of a structure-driven watermarking system. TokenMark exploits the permutation equivariance of Transformer architectures to embed ownership signatures. Because the method is tied to the underlying mathematical structure of the model rather than specific data distributions, it remains effective across various modalities, including text and images. This work represents a significant step toward universal ownership verification for large-scale pre-trained models.

Yang’s work on SrcMarker: Dual-Channel Source Code Watermarking via Scalable Code Transformations (and its earlier iteration Towards Code Watermarking with Dual-Channel Transformations) addressed the unique constraints of watermarking executable code. SrcMarker utilizes two distinct channels: a "natural" channel that employs variable renaming and a "formal" channel that applies structural transformations. By using a language-agnostic intermediate representation and a differentiable feature-space approximation, the system enables the end-to-end training of a watermarking pipeline that preserves functionality while maximizing the capacity and robustness of the embedded information.

The challenge of tracing the origins of small code fragments was further addressed in CodeMark: Contextual and Natural Watermarking for Tracing Code Snippet Provenance. This research focuses on making watermarks "natural" by aligning them with the typical stylistic variations found in human-written code. This minimizes the likelihood of detection by automated tools or manual review, providing a more covert method for tracing the provenance of snippets that may be integrated into larger, third-party software projects.

In Towards Tracing Code Provenance with Code Watermarking, Yang explored the broader implications of AI-generated code flooding digital repositories. This work established the foundational requirements for code provenance in the era of ChatGPT and GitHub Copilot, arguing for the necessity of technical solutions to identify the source of both benign and malicious scripts.

Beyond watermarking, Yang has investigated data privacy within mobile ecosystems in MiniTracker: Large-Scale Sensitive Information Tracking in Mini Apps. This study focused on the "Mini App" platforms prevalent in major messaging and payment applications. By developing a large-scale tracking mechanism, the research identified how sensitive user information is handled and potentially leaked within these lightweight application environments, highlighting critical privacy gaps in modern mobile software architectures.

Profile updated

See something wrong? Report a mistake