Quantum-inspired Embeddings Projection and Similarity Metrics for Representation Learning

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Kankeu, Ivan, Fritsch, Stefan Gerd, Schönhoff, Gunnar, Mounzer, Elie, Lukowicz, Paul, Kiefer-Emmanouilidis, Maximilian
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916556897779712
author Kankeu, Ivan
Fritsch, Stefan Gerd
Schönhoff, Gunnar
Mounzer, Elie
Lukowicz, Paul
Kiefer-Emmanouilidis, Maximilian
author_facet Kankeu, Ivan
Fritsch, Stefan Gerd
Schönhoff, Gunnar
Mounzer, Elie
Lukowicz, Paul
Kiefer-Emmanouilidis, Maximilian
contents Over the last decade, representation learning, which embeds complex information extracted from large amounts of data into dense vector spaces, has emerged as a key technique in machine learning. Among other applications, it has been a key building block for large language models and advanced computer vision systems based on contrastive learning. A core component of representation learning systems is the projection head, which maps the original embeddings into different, often compressed spaces, while preserving the similarity relationship between vectors. In this paper, we propose a quantum-inspired projection head that includes a corresponding quantum-inspired similarity metric. Specifically, we map classical embeddings onto quantum states in Hilbert space and introduce a quantum circuit-based projection head to reduce embedding dimensionality. To evaluate the effectiveness of this approach, we extended the BERT language model by integrating our projection head for embedding compression. We compared the performance of embeddings, which were compressed using our quantum-inspired projection head, with those compressed using a classical projection head on information retrieval tasks using the TREC 2019 and TREC 2020 Deep Learning benchmarks. The results demonstrate that our quantum-inspired method achieves competitive performance relative to the classical method while utilizing 32 times fewer parameters. Furthermore, when trained from scratch, it notably excels, particularly on smaller datasets. This work not only highlights the effectiveness of the quantum-inspired approach but also emphasizes the utility of efficient, ad hoc low-entanglement circuit simulations within neural networks as a powerful quantum-inspired technique.
format Preprint
id arxiv_https___arxiv_org_abs_2501_04591
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Quantum-inspired Embeddings Projection and Similarity Metrics for Representation Learning
Kankeu, Ivan
Fritsch, Stefan Gerd
Schönhoff, Gunnar
Mounzer, Elie
Lukowicz, Paul
Kiefer-Emmanouilidis, Maximilian
Computation and Language
Disordered Systems and Neural Networks
Quantum Physics
Over the last decade, representation learning, which embeds complex information extracted from large amounts of data into dense vector spaces, has emerged as a key technique in machine learning. Among other applications, it has been a key building block for large language models and advanced computer vision systems based on contrastive learning. A core component of representation learning systems is the projection head, which maps the original embeddings into different, often compressed spaces, while preserving the similarity relationship between vectors. In this paper, we propose a quantum-inspired projection head that includes a corresponding quantum-inspired similarity metric. Specifically, we map classical embeddings onto quantum states in Hilbert space and introduce a quantum circuit-based projection head to reduce embedding dimensionality. To evaluate the effectiveness of this approach, we extended the BERT language model by integrating our projection head for embedding compression. We compared the performance of embeddings, which were compressed using our quantum-inspired projection head, with those compressed using a classical projection head on information retrieval tasks using the TREC 2019 and TREC 2020 Deep Learning benchmarks. The results demonstrate that our quantum-inspired method achieves competitive performance relative to the classical method while utilizing 32 times fewer parameters. Furthermore, when trained from scratch, it notably excels, particularly on smaller datasets. This work not only highlights the effectiveness of the quantum-inspired approach but also emphasizes the utility of efficient, ad hoc low-entanglement circuit simulations within neural networks as a powerful quantum-inspired technique.
title Quantum-inspired Embeddings Projection and Similarity Metrics for Representation Learning
topic Computation and Language
Disordered Systems and Neural Networks
Quantum Physics
url https://arxiv.org/abs/2501.04591