Giter VIP home page Giter VIP logo

quantum-sentence-transformer's Introduction

Quantum-Sentence-Transformer

Quantum-Enhanced Transfer Learning for Natural Language Processing

This is based on the research paper. [1] https://arxiv.org/abs/1912.08278

The approach taken here is to start with a traditional pre-trained model for capturing text semantics, then freeze its initial layers and stack at the end of the net a predetermined number of Quantum Variational Circuits (QVC) that can be trained using PennyLane's interface. The universality of the Fourier series demonstrates that Quantum Neural Nets (given sufficiently wide and deep circuits) are universal function approximators! More information can be found in [2].

What's intriguing about this concept? The input to the QVC is the output of the classical net (that is, a real-valued vector). So, this information is being mapped into Hilbert Space! An intriguing question that naturally arises is whether, aside from the potential speedup, Quantum Models can possibly generalise better than classical ones, and if so, in which regime. This is an active area of research, and in [3,] it is demonstrated that Quantum Nets have greater expressivity than classical ones. First, a new measure of expressivity based on Effective Dimension is proposed, and then it is demonstrated that, when comparing a classical net to a quantum net (both with the same number of parameters), as the labels become corrupted, the quantum model activates more of its total capacity!

Another paper published by Google demonstrates that there is a regime in which the topology of the data mapped into the Hilbert space provides better learning generalisation than the Real space [4].

References:

[1] Mari, Andrea, et al. "Transfer learning in hybrid classical-quantum neural networks." Quantum 4 (2020): 340.

[2] Schuld, Maria, and Francesco Petruccione. Supervised learning with quantum computers. Vol. 17. Berlin: Springer, 2018.

[3] Abbas, Amira, et al. "The power of quantum neural networks." Nature Computational Science 1.6 (2021): 403-409.

[4] Huang, Hsin-Yuan, et al. "Power of data in quantum machine learning." Nature communications 12.1 (2021): 1-9.

quantum-sentence-transformer's People

Contributors

winter-soren avatar

Stargazers

Duhita Narkhede avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.