arXiv:2610.28964quant-phOct 2026

Manuscript Offprint

arXiv:2610.28964

Can Quantum Layers offer Performance and Security Advantages in Vision-Language Models?

Md Khalid Syfullah, Alvi Ataur Khalil

Md Khalid Syfullah and Alvi Ataur Khalil

Computer Science, Southern Illinois University Carbondale, USA

{mdkhalid.syfullah, a.khalil}@siu.edu

Abstract—As quantum computing moves from the noisy intermediate-scale quantum (NISQ) era toward early fault-tolerant quantum computing (EFTQC), quantum-enhanced AI is shifting from a conceptual idea to experimental research. Quantum components are expected to extend the capabilities of existing AI systems, yet it remains unclear how such components will help within large multimodal models. In this study, we try to answer that question for vision-language models (VLMs) using classically simulated quantum layers. With LLaVA-OneVision as the backbone, we evaluate 4- and 8-qubit basic-ring and strongly entangling circuits at four insertion and four replacement locations. Insertion adds quantum layers to the classical model, while replacement substitutes them for classical components. Using the same setup, we compare performance and computational cost between classical and quantum-classical hybrid models. On the Visual Spatial Reasoning dataset, inserting a quantum layer after the visual projector reaches 80.7% development accuracy, 2.28 percentage-points above classical full fine-tuning. Replacing the final decoder feed-forward sublayer retains 79.22% accuracy with 13.07 million fewer trainable parameters. Quantum insertion can thus improve accuracy, and selective replacement can reduce parameters. These benefits depend strongly on where the quantum layer is inserted or which classical component it replaces: earlier replacements lower accuracy, and fewer parameters do not reliably shorten training or reduce computation. To assess potential security benefits, we evaluated the robustness of quantum-classical hybrid models under six attack settings. Overall, our study maps where quantum layers help and hurt within VLMs, offering a starting point for hybrid VLM design; whether these gains generalize remains open. The code is available at https://github.com/TITANS-Lab-Artifacts/QuantumVLM.

Index Terms—Quantum machine learning, vision-language models, adversarial robustness, variational quantum circuits

I. INTRODUCTION

Vision-language models (VLMs) are widely used for tasks involving images and text [1]. One such task is Visual Question Answering (VQA), answering natural-language questions about an image, with applications in education, finance, and healthcare. The privacy-sensitive and high-stakes nature of these domains requires VLMs to be highly reliable, accurate, and robust. Developing VLMs with these capabilities requires significant computational resources, as VQA is often considered an AI-complete problem [2]. Despite this complexity, VLMs remain vulnerable to attack families including privacy breaches, model extraction, data extraction, and reverse engineering [3]. These issues motivate research into making VLMs more cost-effective and robust.

Quantum machine learning (QML) is one possible direction for addressing complex learning problems, with the potential for quantum advantage [4]. Till now, early fault-tolerant quantum systems remain constrained by residual noise, limited logical qubits, and restricted circuit depth [5], [6]. Outputs from current machines contain noise, making practical quantum advantage difficult to achieve [7]. However, quantum simulators can simulate ideal circuits using classical resources [8]. A full state-vector simulation of n qubits stores 2n2^{n} complex amplitudes, each requiring 16 bytes in double precision [9].

Despite these hardware limitations, the prospect of quantum-enhanced AI has motivated research into quantum methods for improving machine learning [4]. For language-model fine-tuning, quantum parameter adaptation (QPA) has reduced trainable parameters in methods such as low-rank adaptation (LoRA) while maintaining comparable or better performance [10]. Quantum layers have also been combined with vision models for image classification [11], and quantum circuits have been applied to language-processing tasks [12]. These works motivate investigating whether quantum layers can improve VLM performance. Experimental quantum adversarial learning has also demonstrated vulnerabilities in quantum classifiers and explored adversarial training as a defense [13]. This motivates testing whether quantum integration improves VLM robustness rather than assuming such benefits.

In this work, we use classical simulations of quantum layers to investigate how they affect three aspects of a VLM: (i) predictive accuracy, (ii) computational cost, and (iii) adversarial robustness. We use the Large Language and Vision Assistant (LLaVA) OneVision model, with its Qwen2-0.5B single-image (SI) variant as the backbone [14]. We examine four quantum circuits: 4- and 8-qubit basic-ring (BR4, BR8) and strongly entangling (SE4, SE8) circuits. We test two approaches: insertion and replacement. For insertion, we add quantum layers at four positions within the VLM: (i) before the visual projector, (ii) after the visual projector, (iii) after an early decoder block, and (iv) after the final decoder normalization. These positions let us examine quantum processing of visual features, projected visual features, early multimodal representations, and final representations used for prediction, respectively. For replacement, we substitute quantum layers for the visual-to-language projector or the feed-forward sublayers in early, intermediate, and final decoder blocks. We evaluate six untargeted adversarial image-perturbation attacks, grouped by attacker access: (i) the fast gradient sign method (FGSM) [15], (ii) projected gradient descent with a cross-entropy objective (PGD-CE), and (iii) PGD with a margin objective (PGD-margin), all using target-model gradients [16], [17]; (iv) simultaneous perturbation stochastic approximation

(SPSA), using target-model scores [18]; (v) HopSkipJump (HSJ), using predicted labels only [19]; and (vi) transfer PGD (T-PGD), using a surrogate model [20]. Each attack modifies the image to cause an incorrect prediction while keeping the text prompt and weights fixed. Our contributions are threefold:

• We train and evaluate quantum-layer configurations and classical baselines on the same dataset to assess how circuit design and placement affect predictive accuracy.

• We compare trainable parameters, training time, and memory usage to assess whether any accuracy gains justify the computational cost of quantum simulation.

• We test whether quantum layers improve robustness against these six attacks using a common protocol.

These experiments address three research questions (RQs):

• RQ1: How does inserting quantum layers at different locations within a VLM affect predictive performance and computational cost?

• RQ2: Can quantum layers effectively replace classical components while maintaining predictive performance and reducing computational cost?

• RQ3: How do VLMs with quantum-layer insertion or replacement compare with classical baselines in adversarial robustness under different levels of attacker access?

Paper Organization: Section II presents the background. Section III discusses related work. Section IV presents the framework. Section V outlines the methodology. Section VI reports the results, and Section VII concludes the paper.

References (32)