Text Prediction Using Attention Mechanism

This research paper will look at how attention mechanisms can work when applied to Transformer models, in the context of achieving better performance for predicting the text of movie scripts. Attention mechanisms have been responsible for major breakthroughs in Natural Language Processing (NLP) in the recent years due to its ability to focus on most relevant parts of an input sequence. Through the use of the Transformer architecture that was introduced in the ‘Attention is All You Need’ paper, this work explores how attention can model long-range context in text, leading to better predictions than vanilla models. We implement Transformer model from scratch in Python with multi-head attention, feed-forward layers, and softmax activation functions. Extensive experiments on movie script datasets rigorously evaluate the performance of our model compared with state-of-the-art next-word prediction models, showing a promise of much higher word prediction accuracy of our model in movie script contexts.

Authors

Institutions

Publication Details

Published
2024-11-29
DOI
https://doi.org/10.1109/icoris63540.2024.10903949
Primary Topic
Text and Document Classification Technologies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Text Prediction Using Attention Mechanism

Azani Cempaka Sari, Hanis Amalia Saputri, Alberto Lais, Teresa Stefanie Sheryl et al.
Text and Document Classification Technologies
article

Text Prediction Using Attention Mechanism

Azani Cempaka Sari, Hanis Amalia Saputri, Alberto Lais, Teresa Stefanie Sheryl, Andien Dwi Novika
article en

Abstract

This research paper will look at how attention mechanisms can work when applied to Transformer models, in the context of achieving better performance for predicting the text of movie scripts. Attention mechanisms have been responsible for major breakthroughs in Natural Language Processing (NLP) in the recent years due to its ability to focus on most relevant parts of an input sequence. Through the use of the Transformer architecture that was introduced in the ‘Attention is All You Need’ paper, this work explores how attention can model long-range context in text, leading to better predictions than vanilla models. We implement Transformer model from scratch in Python with multi-head attention, feed-forward layers, and softmax activation functions. Extensive experiments on movie script datasets rigorously evaluate the performance of our model compared with state-of-the-art next-word prediction models, showing a promise of much higher word prediction accuracy of our model in movie script contexts.

Binus University (ID)
Openalex Percentile: Top 74%
Text and Document Classification Technologies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.