MCP
AZ

Andi Zhang

39 papers in the library

Papers

30
Pair-Aware Optimization: Coordinating Exploration and Refinement for Jailbreaking LLM Agents
Juanyang XuZheng WangXingyu ZhaoSiddartha KhastgirAndi Zhang
This paper proposes pair-aware optimization for jailbreaking LLM agents. Since first-order (FO) gradient-based and zeroth-order (ZO) function-value methods are complementary, the authors systematically compare four ordering strategies and build a ZO-FO framework that explores adversarial prefixes via ZO and refines corresponding suffixes via FO. Pair-aware optimization retains multiple prefixes, conditionally refines suffixes, and selects among resulting prefix-suffix pairs. To capture stochastic generation, consistent decoding is used during optimization and evaluation. Experiments on malicious-instruction and malicious-environment benchmarks show hybrid optimization outperforms single-optimizer methods, with order significantly affecting performance.
arXivarXiv · · October 17, 2026
0
From Expected Harmfulness to Likelihood: A Probabilistic Reformulation of Jailbreaking LLM Agents
Juanyang XuZheng WangXingyu ZhaoSiddartha KhastgirAndi Zhang
This paper reformulates jailbreaking of LLM agents probabilistically, linking two objectives: maximizing expected harmfulness of outputs and increasing likelihood of harmful target outputs. The authors prove that the input gradient of log expected harmfulness equals the expected input gradient of the model's log-likelihood under a harmfulness-reweighted output distribution, unifying these approaches. Based on this identity, they propose OPUR, a sampling distribution that generates highly harmful target outputs to guide likelihood-based input optimization. Experiments demonstrate the method's effectiveness in jailbreaking LLM agents.
arXivarXiv · · October 7, 2026
0
0
Let the Carrier Carry the Attack: Preserving the Subject in Adversarial Image Generation
Linfeng JiangSteven McDonaghYuhang ChenXingyu ZhaoSiddartha KhastgirAndi Zhang
The authors introduce the "carrier," a secondary visual element providing an auxiliary spatial region that absorbs adversarial modifications, thereby preserving the primary subject's integrity without reducing attack strength. Under global classifier guidance, carriers reduce subject distortion, improve cross-model transferability (balanced by target-feature strength), and retain the subject as human-perceived primary content while still misleading classifiers. This yields strong, transferable adversarial attacks with improved subject preservation.
arXivarXiv · · September 30, 2026
0
0
Probabilistic Adversarial Training
Andi ZhangXingyu ZhaoSiddartha Khastgir
Probabilistic adversarial training improves robustness by viewing adversarial examples as arising from overlap between a distance-based distribution $p_{\mathrm{dis}}$ and a victim-classifier-induced distribution $p_{\mathrm{vic}}$. The paper proves that $\mathrm{KL}(p_{\mathrm{dis}}\|p_{\mathrm{vic}})-\log Z_{\mathrm{vic}}$ is a lower bound on probabilistic robustness (PR), providing a tractable surrogate objective when PR is intractable. This objective recovers scaled adversarial training, giving a probabilistic interpretation and principled route to improve PR. Experiments and ablations show consistent PR gains and enhanced non-probabilistic methods.
arXivarXiv · · September 30, 2026
0
0
Information Density Imbalance in Visual Object Detection
Ziwei ZhaoYanxi LuYuwei HuShiyang SuMingxuan WangChenyue ZhouJiayi ChenHehan LiXiaoshuai HaoAndi ZhangYanbiao Ma
This paper identifies that category bias in object detection persists even when instance counts are balanced, and proposes that the root cause is information density imbalance. The authors define information density, show its negative correlation with detection accuracy, and demonstrate that the training process shapes this relationship. Simple modifications to three existing loss functions using information density reduce bias and improve overall performance on Pascal VOC, COCO-LT, and LVIS, offering a new perspective for designing fairer detectors.
arXivarXiv · · September 2, 2026
0
0
Improved denoising diffusion probabilistic models with efficient non-diagonal covariance modeling
Rui XiaAyan DasArtem ArtemevAndi ZhangGuillaume HennequinAlberto Bernacchia
This paper introduces a Kronecker-DCT (K-DCT) covariance model for denoising diffusion probabilistic models that captures strong non-diagonal correlations between pixels and color channels, and a slow-decaying power-law frequency spectrum. The model uses a Kronecker-factored decomposition of inter-color covariances and spatial covariances modeled in the frequency domain via the Discrete Cosine Transform, reducing computational complexity from quadratic to log-linear. Learning K-DCT-structured amortizations of the denoising posterior covariance with pre-trained score models yields improved FID and likelihoods compared to previous state-of-the-art samplers, particularly in few-step regimes.
arXivarXiv · · August 22, 2026
0
0
GPO-V: Jailbreak Diffusion Vision Language Model by Global Probability Optimization
Yu PanAndi ZhangYi WangSibei YangWenjie Wang
Diffusion Vision-Language Models (dVLMs) exhibit a unique refusal pattern (Immediate Refusal and Progressive Refusal) that makes them seemingly robust against conventional Fixed Prefix Optimization (FPO) attacks. However, the progressive refinement process reveals a latent attack surface. The authors propose Global Probability Optimization (GPO), a jailbreak paradigm that manipulates the global denoising trajectory of masked diffusion models, bypassing prefix-based guardrails. Built on GPO, they introduce GPO-V, the first visual-modality jailbreak framework for dVLMs, which produces stealthy perturbations with strong cross-model transferability, highlighting a critical security gap in non-sequential generative architectures.
arXivarXiv · · May 8, 2026
0
Improved denoising diffusion probabilistic models with efficient non-diagonal covariance modeling
Rui XiaAyan DasArtem ArtemevAndi ZhangGuillaume HennequinAlberto Bernacchia
This paper introduces the Kronecker-DCT (K-DCT) covariance model to accelerate DDPM sampling. Capturing natural images' non-diagonal inter-color and spatial correlations, K-DCT uses a Kronecker factorization and frequency-domain DCT modeling, reducing computational complexity from quadratic to log-linear with negligible overhead. Learning K-DCT-structured amortizations with pre-trained score models on CIFAR-10, Celeb-A, ImageNet, and LSUN, it outperforms prior state-of-the-art denoising samplers in FID and likelihoods, especially with few denoising steps.
OpenReviewOpenReview · · March 11, 2026
0
Hierarchical Orthogonal Residual Spread for Precise Massive Editing in Large Language Models
Xiaojie GuGuangxu ChenYuheng YangJingxin HanAndi Zhang
Model editing in LLMs often blends new and old knowledge through an information matrix, which can be noisy and conflict-prone. HORSE instead edits by hierarchically spreading orthogonal residuals of this matrix, reducing gradient noise for more stable updates. Theoretical and experimental results on GPT-2 XL and LLaMA-2-7B show that this approach achieves precise massive editing without the computational overhead of existing methods.
arXivarXiv · · January 16, 2026
0
Revoking Amnesia: RL-based Trajectory Optimization to Resurrect Erased Concepts in Diffusion Models
Daiheng GaoNanxiang JiangAndi ZhangShilin LuYufei TangWenbo ZhouWeiming ZhangZhaoxin Fan
Concept erasure in T2I diffusion models does not genuinely remove concepts but biases sampling trajectories, creating reversible 'amnesia.' The authors propose RevAm, an RL-based trajectory optimization framework that resurrects erased concepts by dynamically steering denoising without modifying weights. Using adapted Group Relative Policy Optimization (GRPO) with trajectory-level rewards, RevAm avoids local optima, achieving superior recovery fidelity and 10× computation reduction, exposing weaknesses in current safety mechanisms.
arXivarXiv · · September 30, 2025
0
10
From Perception to Cognition: A Survey of Vision-Language Interactive Reasoning in Multimodal Large Language Models
Chenyue ZhouMingxuan Wang…Andi Zhang
This survey proposes a 'Perception vs. Cognition' framework to analyze multimodal large language models (MLLMs). It posits that current MLLMs suffer from a disconnect between Perception (extracting visual information and aligning it with text) and Cognition (multi-step, goal-oriented reasoning built on that perceptual foundation). The paper argues that this gap, whose most prominent symptom is hallucination, stems from the inability to construct a coherent internal world model, and it reviews methods and benchmarks aimed at bridging this divide at both the perceptual and cognitive layers.
arXivarXiv · · September 29, 2025
0
32
Rethinking Inter-LoRA Orthogonality in Adapter Merging: Insights from Orthogonal Monte Carlo Dropout
Andi ZhangXuan DingHaofan WangSteven McDonaghSamuel Kaski
To mitigate interference when merging multiple Low-Rank Adaptation (LoRA) modules, we propose Orthogonal Monte Carlo Dropout, which enforces strict orthogonality among combined sparse semantic vectors without extra time complexity. However, empirical results show that this orthogonality does not produce the semantic disentanglement claimed by prior compositional adaptation work, indicating that inter-LoRA orthogonality alone is insufficient for true semantic compositionality.
arXivarXiv · · September 26, 2025
0
3
Improved denoising diffusion probabilistic models with efficient non-diagonal covariance modeling
Rui XiaAyan DasArtem ArtemevAndi ZhangGuillaume HennequinAlberto Bernacchia
This paper introduces a Kronecker-DCT (K-DCT) covariance model to accelerate Denoising Diffusion Probabilistic Model (DDPM) sampling by incorporating non-diagonal structure of the denoising posterior covariance. Unlike previous diagonal approximations, K-DCT captures inter-color and spatial correlations via a Kronecker-factored decomposition and frequency-domain DCT modeling, reducing complexity from quadratic to log-linear. Experiments on CIFAR-10, Celeb-A, and ImageNet show improved FID and likelihoods over prior state-of-the-art denoising samplers.
OpenReviewOpenReview · · September 19, 2025
0
Concept-based Adversarial Attack: a Probabilistic Perspective
Andi ZhangXuan DingSteven McDonaghSamuel Kaski
We propose a concept-based adversarial attack framework with a probabilistic perspective that extends beyond single-image perturbations. Instead of modifying one image, it operates on an entire concept represented by a distribution, sampling diverse adversarial images that preserve the original category/identity while varying pose, viewpoint, or background, thus misleading classifiers. This remains mathematically consistent with traditional attacks. Theoretical and empirical results show more diverse examples, effective concept preservation, and higher attack efficiency.
OpenReviewOpenReview · · September 19, 2025
0
FedMC: Federated Manifold Calibration
Yanbiao MaWei DaiGaoyang Jiangwanyi ChenChenyue ZhouYiwei ZhangFei LuoJunhao WangAndi Zhang
Data heterogeneity biases local training in federated learning, and existing calibration priors rely on a flawed global linearity assumption that generates out-of-distribution samples. FedMC shifts this paradigm by learning and leveraging local nonlinear data geometry. Clients run local kernel PCA to capture fine-grained geometries, the server builds a global geometry dictionary to aggregate and distribute them, and clients use it for context-aware, on-manifold calibration. Integrated with existing FL algorithms, FedMC consistently improves their performance across benchmarks.
OpenReviewOpenReview · September 15, 2025
0
2
Revoking Amnesia: RL-based Trajectory Optimization to Resurrect Erased Concepts in Diffusion Models
Daiheng GaoNanxiang JiangAndi ZhangShilin LuYufei tangWenbo ZhouWeiming ZhangZhaoxin Fan
The paper shows that concept erasure in text-to-image diffusion models creates reversible "amnesia": rather than genuinely forgetting, erasure biases sampling trajectories away from target concepts, and this bias weakens in newer architectures like Flux. To expose this, the authors propose RevAm, an RL-based trajectory optimization framework that resurrects erased concepts by dynamically steering the denoising process without modifying model weights. RevAm adapts Group Relative Policy Optimization to diffusion models, using trajectory-level rewards to explore diverse recovery trajectories and avoid local optima. Experiments show higher resurrection fidelity and 10× less computation, highlighting a robustness gap in existing erasure methods.
OpenReviewOpenReview · · September 5, 2025
0
Concept-based Adversarial Attack: a Probabilistic Perspective
Andi ZhangXuan DingSteven McDonaghSamuel Kaski
This paper proposes a concept-based adversarial attack framework that, instead of perturbing a single image, operates on an entire concept represented by a distribution. Sampling from this adversarial distribution generates diverse images that preserve the original concept—such as identity or category—while varying in pose or viewpoint, thus misleading classifiers. The framework is mathematically consistent with traditional attacks and achieves higher efficiency and diversity.
arXivarXiv · · June 30, 2025
0
3
Compositional Attribute Imbalance in Vision Datasets
Jiayi ChenYanbiao MaAndi ZhangWeidong TangWei DaiBowei Liu
Vision datasets often suffer from overlooked attribute imbalances. This paper introduces a CLIP-based framework to automatically construct a visual attribute dictionary, defining first- and second-level attributes. It reveals how compositional attribute rarity degrades model performance and proposes adjusting sampling probability based on the rarity of compositional attributes, integrated with data augmentations like CutMix. Experiments show this effectively mitigates attribute imbalance, improving robustness and fairness.
arXivarXiv · · June 17, 2025
0
1
Noise Diffusion for Enhancing Semantic Faithfulness in Text-to-Image Synthesis
Boming MiaoChunxiao LiXiaoxiao WangAndi ZhangRui SunZizhe WangYao Zhu
Diffusion models have achieved impressive success in generating photorealistic images, but challenges remain in ensuring precise semantic alignment with input prompts. Optimizing the initial noisy latent offers a more efficient alternative to modifying model architectures or prompt engineering for improving semantic alignment. A latest approach, InitNo, refines the initial noisy latent by leveraging attention maps; however, these maps capture only limited information, and the effectiveness of InitNo is highly dependent on the initial starting point, as it tends to converge on a local optimum near this point. To this end, this paper proposes leveraging the language comprehension capabilities of large vision-language models (LVLMs) to guide the optimization of the initial noisy latent, and introduces the Noise Diffusion process, which updates the noisy latent to generate semantically faithful images while preserving distribution consistency. Furthermore, we provide a theoretical analysis of the condition under which the update improves semantic faithfulness. Experimental results demonstrate the effectiveness and adaptability of our framework, consistently enhancing semantic alignment across various diffusion models.
CVFCVF · June 2025
0
Noise Diffusion for Enhancing Semantic Faithfulness in Text-to-Image Synthesis
Boming MiaoChunxiao LiXiaoxiao WangAndi ZhangRui SunZizhe WangYao Zhu
This paper proposes Noise Diffusion, a method that improves semantic faithfulness in text-to-image synthesis by optimizing the initial noisy latent. Unlike prior work (InitNo) that relies on limited attention maps and converges to a local optimum, Noise Diffusion uses large vision-language models (LVLMs) to guide the update, preserving distribution consistency. The authors provide a theoretical condition for when the update improves alignment. Experiments show consistent enhancement across various diffusion models.
arXivarXiv · · November 25, 2024
0
12
LoKO: Low-Rank Kalman Optimizer for Online Fine-Tuning of Large Models
Hossein AbdiMingfei SunAndi ZhangSamuel KaskiWei Pan
LoKO (Low-Rank Kalman Optimizer) recasts parameter-efficient fine-tuning (PEFT) as an optimal filtering problem. It applies Kalman-filter iterations to the low-rank matrices of a LoRA decomposition, approximating the covariance matrix as diagonal to reduce the per-iteration complexity from quadratic to linear in the number of trainable parameters. The method is sensitive to the initialization of the covariance matrix and the estimation of observation noise covariance, for which the authors propose robust defaults. LoKO converges in fewer iterations than standard gradient-based optimizers combined with LoRA and yields better performance on image-classification and language tasks.
arXivarXiv · · October 15, 2024
0
4
Your Finetuned Large Language Model is Already a Powerful Out-of-distribution Detector
Andi ZhangTim Z. XiaoWeiyang LiuRobert BamlerDamon Wischik
This paper revisits the likelihood ratio between a pretrained large language model (LLM) and its finetuned variant as a criterion for out-of-distribution (OOD) detection. The pretrained model's broad prior knowledge and the finetuned model's in-distribution specialization let the ratio distinguish OOD data, requiring only three lines of code to implement. Applied to question-answering systems for detecting OOD questions, it leverages widely available models, needing no further training, and proves effective across far/near OOD, spam, and QA settings.
OpenReviewOpenReview · · October 2, 2024
0
DIG-FACE: De-biased Learning for Generalized Facial Expression Category Discovery
Tingzhang LuoYichao LiuYuanyuan LiuAndi ZhangXin WangYibing ZhanChang TangLeyuan LiuZhe Chen
DIG-FACE introduces G-FACE, a task for discovering new facial expression categories while recognizing known ones. It identifies two biases hindering existing methods: implicit bias from distributional gaps between new and known categories, and explicit bias from shifted preferences on visual facial changes. To address these, DIG-FACE minimizes an upper bound of implicit bias and applies a hierarchical refinement strategy (sample, triplet, distribution levels) for explicit debiasing, achieving state-of-the-art performance on the task.
arXivarXiv · · September 30, 2024
0
7
LoKO: Low-Rank Kalman Optimizer for Online Fine-Tuning of Large Models
Hossein AbdiMingfei SunAndi ZhangSamuel KaskiWei Pan
The paper introduces the Low-Rank Kalman Optimizer (LoKO), which treats parameter-efficient fine-tuning (PEFT) as an optimal filtering problem, using LoRA's low-rank structure to estimate trainable parameters online via Kalman filtering. By diagonal-approximating the covariance matrix, LoKO reduces computational complexity from quadratic to linear in parameter count. It also proposes robust initialization and observation-noise covariance estimation. Experiments across vision and language tasks show LoKO converges in fewer iterations and achieves better performance than standard optimizers paired with LoRA, suggesting Kalman filters as effective optimizers for large-model fine-tuning.
OpenReviewOpenReview · · September 27, 2024
0
Improving Probabilistic Diffusion Models With Optimal Diagonal Covariance Matching
Zijing OuMingtian ZhangAndi ZhangTim Z. XiaoYingzhen LiDavid Barber
This paper introduces Optimal Covariance Matching (OCM), a new objective for learning the diagonal covariances of the denoising distribution in probabilistic diffusion models. Unlike standard data-driven covariance approximation, OCM directly regresses the optimal analytic covariance via an unbiased objective, reducing approximation error. The authors show that OCM significantly improves sampling efficiency, recall rate, and likelihood for both diffusion models and latent diffusion models.
OpenReviewOpenReview · September 26, 2024
0
25
Constructing Semantics-Aware Adversarial Examples with a Probabilistic Perspective
Andi ZhangMingtian ZhangDamon Wischik
We propose a probabilistic perspective on adversarial examples, embedding subjective semantic understanding as a distribution into the generation process. Despite larger pixel-level modifications than traditional attacks, our method preserves image semantics, making changes hard for humans to detect, while the extensive modification deceives classifiers designed to defend against such attacks. Empirically, the proposed methods achieve higher success rates in bypassing adversarial defenses while remaining difficult for human observers to detect.
OpenReviewOpenReview · · May 15, 2024
0
Your Finetuned Large Language Model is Already a Powerful Out-of-distribution Detector
Andi ZhangTim Z. XiaoWeiyang LiuRobert BamlerDamon Wischik
This paper shows that the likelihood ratio between a pretrained large language model (LLM) and its finetuned variant serves as an effective out-of-distribution (OOD) detection criterion. The pretrained LLM retains prior knowledge of OOD data, while finetuning on in-distribution data sharpens the model's ability to distinguish them. The method requires no additional training and is straightforward to implement using loss functions. Evaluations on far OOD, near OOD, spam detection, and question-answering scenarios demonstrate its effectiveness.
arXivarXiv · · April 7, 2024
0
13
SR-OOD: Out-of-Distribution Detection via Sample Repairing
Rui SunAndi ZhangHaiming ZhangJ.K. Kingsley RenYao ZhuRuimao ZhangZhen Li
The paper introduces SR-OOD, an out-of-distribution (OOD) detection framework that exploits sample repairing to reveal semantic inconsistency with in-distribution data. It comprises a sample repairing module, which erodes an input and repairs it via a generative adversarial network, and a detection module that uses a distance metric to judge if the sample is OOD. Requiring no extra data or labels, SR-OOD outperforms state-of-the-art generative methods on CIFAR-10, CelebA, and Pokemon.
OpenReviewOpenReview · · September 24, 2023
0
Constructing Semantics-Aware Adversarial Examples with Probabilistic Perspective
Andi ZhangDamon Wischik
This paper introduces a probabilistic perspective for generating adversarial examples, interpreting geometric constraints as distributions to transition toward data-driven semantic constraints. From this view, the authors develop a principled method for creating semantics-aware adversarial examples that lets users inject their own understanding of semantics. Human evaluation confirms these examples preserve inherent meaning, and experiments on MNIST, SVHN, and CIFAR10 show they can bypass robust adversarial training designed for traditional attacks.
OpenReviewOpenReview · September 21, 2023
0
Constructing Semantics-Aware Adversarial Examples with a Probabilistic Perspective
Andi ZhangMingtian ZhangDamon Wischik
This paper proposes a probabilistic perspective on adversarial examples, where subjective semantic understanding is embedded as a distribution into the generation process. The method produces adversarial images with significant pixel-level changes that preserve overall semantics, making them hard for humans to detect. Empirical results show that these semantics-aware adversarial examples achieve higher success rates in bypassing adversarial defenses compared to traditional attacks.
arXivarXiv · · June 1, 2023
0
13
Authors with the same name
Andi Zhang · 6 papers
Andi Zhang #0001 · 10 papers
Andi Zhang #0002 · 1 papers
Andi Zhang #0003 · 1 papers
Andi Zhang #0004 · 3 papers
Frequent collaborators
Damon Wischik (7)
Steven McDonagh (6)
Samuel Kaski (5)
Mingtian Zhang (5)
Xingyu Zhao (4)
Siddartha Khastgir (4)
Yanbiao Ma (4)
Rui Sun (4)
Yao Zhu (4)
Tim Z. Xiao (4)
Chenyue Zhou (3)
Rui Xia (3)