arXiv:2610.08131cs.LGOct 2026

Manuscript Offprint

arXiv:2610.08131

Mu-DisCoCat: A Variational Pipeline for Compositional Generalization on Quantum Processors

Mina Abbaszadeh, Matilda Karabina Moore, Raem Haq, Martha Lewis, Mehrnoosh Sadrzadeh

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

Accepted for publication at the IEEE 2nd International Conference on Quantum Artificial Intelligence (QAI 2026).

Mina Abbaszadeh

Department of Computer Science

University College London

London, United Kingdom

m.abbaszadeh@ucl.ac.uk

Matilda Karabina Moore

Department of Computer Science

University College London

London, United Kingdom

matilda.moore.21@ucl.ac.uk

Raem Haq

Department of Computer Science

University College London

London, United Kingdom

raem.haq.23@ucl.ac.uk

Martha Lewis

Institute for Logic, Language and Computation

University of Amsterdam

Amsterdam, Netherlands

m.a.f.lewis@uva.nl

Mehrnoosh Sadrzadeh

Department of Computer Science

University College London

London, United Kingdom

m.sadrzadeh@ucl.ac.uk

Abstract—Achieving compositional concept generalization (CoCoGen), the ability to understand novel situations by recombining learned primitives, remains a fundamental challenge in artificial intelligence. Compositional semantic models such as Compositional Distributional Semantics (DisCoCat) offer solutions by generalising vectors to tensors, but suffer from scaling bottlenecks when learning the tensors. Mapping DisCoCat onto Variational Quantum Circuits (VQCs) resolves this limitation for text, yet the methodology has not been expanded to multimodal situations such as the ones involved in CoCoGen. This paper introduces Mu-DisCoCat: a multimodal variational quantum learning framework for DisCoCat that achieves CoCoGen. The framework first learns stable object representations from single-object image-text pairs, then fixes these and uses them to learn the relations between them in multi-object situations. In classical simulations, the model used Uhlmann state fidelity to compute the overlap between the multimodal circuit representations and achieved higher relational OOD accuracy than the evaluated CLIP baseline. Its deployment was evaluated using the destructive SWAP test across noisy quantum emulators, including a range of IBM fake backends, IQM FakeAphrodite, and the IBM Marrakesh quantum processor. Despite real-world device noise, the hardware-executed models maintained a strong positive correlation with simulated fidelities, reliably distinguishing unseen similar and dissimilar pairs. Our work establishes a framework for executing CoCoGen on VQCs, demonstrating a viable use case for near-term quantum hardware.

I. INTRODUCTION

Humans can understand novel situations by recombining previously learned concepts, a capability known as compositional concept generalization or CoCoGen. For example, a person who has learned that cars crossing roads are dangerous will still recognize the danger posed by a yellow car, even if they have never encountered a yellow car before. Achieving this capability in AI remains an open challenge, particularly for learning relational concepts [1]–[4]. Mainstream vision-language models such as OpenAI's CLIP [5] achieve strong performance in image-text alignment but struggle with CoCoGen [6], [7]. The AI models based on compositional representations of meaning should exhibit a stronger performance. One such framework is the Distributional Compositional Categorical model (DisCoCat) [8]. Although theoretically well suited to compositional reasoning, DisCoCat has shown limited empirical success in CoCoGen, since it represents relations as tensors, learning which on classical computers has a high computational cost [9].

DisCoCat was inspired by Categorical Quantum Mechanics [10] and both frameworks are based on the theory of Compact Closed Categories. This enables us to represent its constructions as Variational Quantum Circuits (VQCs), allowing efficient training using hybrid quantum-classical optimization. VQCs only require a handful of parameters to learn the tensors, leading to a substantial improvement in the scalability and practicality of DisCoCat [11], [12]. Despite these advances, the original DisCoCat cannot be applied to CoCoGen, as its extensions to multimodal learning are limited, e.g. [13] considers audio-text representations only for adjective-noun phrases and [14], [15] only focuses on concepts seen during training. Initial VQC-based work on CoCoGen jointly learned object and relation representations within a single-stage relational training procedure, leading to suboptimal results [16]. In our subsequent work [17], we introduced a multistage training strategy in which object representations are first learned from single-object image-text pairs and subsequently frozen while only the relation parameters are optimised. However, that implementation relied on post-selection for the DisCoCat grammatical contractions and used larger quantum representations, including 9-qubit angle-encoded CLIP image circuits, with evaluation restricted to classical quantum simulation. In the present work, we adapt this multistage framework for near-term quantum hardware by reducing the image representation to four qubits, replacing post-selection with discard, and estimating the resulting image-caption overlap using the destructive SWAP test. This enables evaluation on noisy quantum emulators and real quantum hardware. While Mu-DisCoCat provides an effective model for CoCoGen, executing it on current quantum hardware presents an additional challenge. During training, the similarities between image and caption representations are computed directly from quantum states using the Uhlmann fidelity. However, current quantum processors cannot directly access quantum states and instead provide only measurement outcomes. Consequently, deploying trained models requires a hardware compatible procedure that faithfully estimates the same similarity measure under realistic device noise. In this work, we employ the destructive SWAP test as a hardware compatible estimator of the quantum-state overlap, enabling direct experimental evaluation of the similarity learned during training. We also adapt the designed VQCs to a reduced hardware representation compatible with near-term quantum devices by reducing the depth and the number of qubits both for object and relation learning. The framework was validated on IBM Aer, multiple noisy IBM fake backends, the IBM Marrakesh quantum processor, and the IQM FakeAphrodite emulator. The results show that although hardware noise reduces the agreement with noiseless simulations, the learned similarity relationships remain positively correlated with the simulated fidelities and continue to distinguish similar from dissimilar image-caption pairs. These findings demonstrate the feasibility of achieving CoCoGen on current quantum hardware and provide a practical use case.

References (23)