Scalable and Interpretable Quantum Natural Language Processing: An Implementation on Trapped Ions

Abstract

We present a compositional implementation of natural language processing tasks on a quantum computer using the QDisCoCirc model. QDisCoCirc is a model that allows for both compositional generalisation - the ability to generalise outside the training distribution by learning compositional rules underpinning the entire data distribution - and compositional interpretability - making sense of how the model works by inspecting its modular components in isolation and the processes through which they are combined. We consider the task of question-answering for which we handcraft a toy dataset. The model components are trained on classical computers at small scales, then composed to generate larger test instances, which are evaluated on Quantinuum's H1-1 trapped-ion quantum processor. We inspect the trained models by comparing them to manually-constructed perfect compositional models, and identify where and why our model learned compositional behaviours. As an initial baseline comparison, we considered small-scale Transformer and LSTM models, as well as GPT-4, none of which succeeded at compositional generalisation on this task.

Cite

Text

Duneau et al. "Scalable and Interpretable Quantum Natural Language Processing: An Implementation on Trapped Ions." NeurIPS 2024 Workshops: Compositional_Learning, 2024.

Markdown

[Duneau et al. "Scalable and Interpretable Quantum Natural Language Processing: An Implementation on Trapped Ions." NeurIPS 2024 Workshops: Compositional_Learning, 2024.](https://mlanthology.org/neuripsw/2024/duneau2024neuripsw-scalable/)

BibTeX

@inproceedings{duneau2024neuripsw-scalable,
  title     = {{Scalable and Interpretable Quantum Natural Language Processing: An Implementation on Trapped Ions}},
  author    = {Duneau, Tiffany and Bruhn, Saskia and Matos, Gabriel and Laakkonen, Tuomas and Saiti, Katerina and Pearson, Anna and Meichanetzidis, Konstantinos and Coecke, Bob},
  booktitle = {NeurIPS 2024 Workshops: Compositional_Learning},
  year      = {2024},
  url       = {https://mlanthology.org/neuripsw/2024/duneau2024neuripsw-scalable/}
}