CTRAN: CNN-Transformer-based Network for Natural Language Understanding

Mehrdad Rafiepour, Javad Salimi Sartakhti
3/19/2023
cs.CL

No official code found. Best implementation: rafiepour/CTran (31 stars, Apache-2.0, last commit 2024-01-03).

Abstract

Intent-detection and slot-filling are the two main tasks in natural language understanding. In this study, we propose CTRAN, a novel encoder-decoder CNN-Transformer-based architecture for intent-detection and slot-filling. In the encoder, we use BERT, followed by several convolutional layers, and rearrange the output using window feature sequence. We use stacked Transformer encoders after the window feature sequence. For the intent-detection decoder, we utilize self-attention followed by a linear layer. In the slot-filling decoder, we introduce the aligned Transformer decoder, which utilizes a zero diagonal mask, aligning output tags with input tokens. We apply our network on ATIS and SNIPS, and surpass the current state-of-the-art in slot-filling on both datasets. Furthermore, we incorporate the language model as word embeddings, and show that this strategy yields a better result when compared to the language model as an encoder.

View on arXivView PDF

Code Implementations(1)

rafiepour/CTranCommunity100%
Apache-2.0

Complete code for the proposed CNN-Transformer model for natural language understanding.

316Python, Jupyter NotebookMar 10, 20232 years agoApache-2.0
atiscnn-transformerdialogue-systemsencoder-decoderintent+7 more

Cite this paper

@article{rafiepour2023ctran,
  title  = {CTRAN: CNN-Transformer-based Network for Natural Language Understanding},
  author = {Mehrdad Rafiepour and Javad Salimi Sartakhti},
  year   = {2023},
  eprint = {2303.10606},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.10606v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.10606.svg)](https://codeofpaper.com/paper/2303.10606)

Discussion