<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>The Impact of Transformers Ensemble on Model Memorability and Generalizability</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Muhammad Mustafa Ali Usmani</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Humna Faisal</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Muhammad Atif Tahir</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National University of Computer and Emerging Sciences (FAST-NUCES)</institution>
          ,
          <addr-line>Karachi</addr-line>
          ,
          <country country="PK">Pakistan</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Video memorability, the extent to which a video is retained in human memory, is a crucial aspect in various multimedia applications such as advertising, education, and entertainment. This research explores the utilization of video features and text captions to predict and understand video memorability. Transformer models are employed to predict memorability scores, training is performed on the Memento10k dataset and the approach is tested on the VideoMem dataset. The highest Spearman co-eficient obtained is 0.337 on features from AlexNet with ensemble models also performing well.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>In the contemporary landscape of multimedia content creation and consumption, the concept
of video memorability is a pivotal metric. It dictates the lasting impact of visual narratives on
human cognition. The inherent ability of videos to resonate within our memory is a
fundamental element not only in entertainment but also in influential sectors such as advertising and
education. Understanding and predicting video memorability has emerged as critical research
area, ofering insights that can revolutionize content creation strategies and user engagement
across diverse platforms.</p>
      <p>
        For this Proc. of the MediaEval 2023 Workshop, Amsterdam, The Netherlands, 2024 challenge
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] we research the interplay between video features, textual cues, and the concept of video
memorability. This study explores the fusion of visual and textual elements within videos. The
primary focus lies in the integration of Transformer models, leveraging their power in handling
sequential data and capturing intricate relationships within multimodal inputs. Through the
utilization of Transformer architectures, this research aims to predict video memorability scores
by encoding both video features and accompanying text captions.
      </p>
      <p>
        The training phase used the Memento10k dataset [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], a rich repository spanning diverse
video content. Validation and assessment are conducted on the VideoMem dataset [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], serving
as a test for the eficacy and generalization capabilities of the proposed approach.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Approach</title>
      <p>
        There has been a lot of ongoing research on the topic of video memorability. There are multiple
focal points within this area. These include using raw and unprocessed videos for feature
extraction and then using those features to predict memorability. In previous works Transformers
have been used as a method of extracting features from videos that are then used to predict
memorability [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>
        There is also a lot of work being done on using existing feature to develop models. A previous
study [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] has used diferent video features with diferent models to predict memorability. We
extend this work and use the video features that had the best results to create new models.
      </p>
      <p>
        Using captions to predict video memorability is also an ongoing research topic. Ensemble
models that combine text and video features are becoming increasingly common and give good
results. Transformers and TF-IDF have been previously used on text features as a part of an
ensemble model [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>Transformers are a top choice for video memorability tasks owing to their proficiency in
processing sequential data and integrating diverse types of information. Videos consist of
sequential frames, and Transformers excel in handling this sequential nature, efectively capturing
temporal relationships within the video content. Their attention mechanisms enable focused
processing on specific aspects of the video, facilitating the identification of crucial visual cues
or textual information influencing memorability.</p>
      <sec id="sec-2-1">
        <title>2.1. Video Features - VidFormer</title>
        <p>
          Primarily features extracted from AlexNet [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ] , DenseNet [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] and ResNet [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] were directly
used to train the Transformers. These three features were the top choice as they got the best
results in previous such works [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. The model architecture has two sequential instances of
the PositionalEmbedding layer. This layer generates positional embeddings for the input
sequences, crucial for the Transformer-based architecture to understand the sequence’s order.
The TransformerEncoder layer is then applied, utilizing the Transformer architecture to process
the sequence data, capturing intricate patterns and dependencies. After this, the
GlobalAveragePooling1D layer aggregates the Transformer’s output across the temporal dimension,
summarizing the learned features. To prevent overfitting, a Dropout layer is incorporated,
serving as a regularization technique. Finally, there is an output layer composed of a Dense
layer utilizing a linear activation function. Captions and annotations associated with each video
were used for this approach. DistilBERT [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ] architecture was used to train a model using
these text features. Furthermore, as an extension to this approach the text features were also
augmented using BERT [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], seven thousand captions from the Memento 10k dataset were
augmented. The same Transformer model was again trained on the augmented features. This
was done to achieve better generalizability with the text features.
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Ensemble Approach - MultiFormer</title>
        <p>In addition to both the above described models an ensemble approach was also used. A late
fusion technique was used in which the predictions from the video and text models were
combined using weighted average. This gave us an edge over just using one feature and
increased generalizability of the text models.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Results and Analysis</title>
      <p>Results show that the VidFormer with the AlexNet video features performed the best on the
VideoMem test set with Spearman co-eficient of 0.377 even though it wasn’t the best performing
model on Memento 10k. The MultiFormer ensemble approach that was a mix of both the text
and video features reached 0.68 while training on Memento 10k dataset but came in second for
the VideoMem dataset. The TexFormer model performed the best on the Memento 10k dataset
achieving 0.7 but was not able to perform at all on the VideoMem dataset. These results are
summarized in Table 1.</p>
      <p>The models were trained on the Memento 10k data sets and it was observed that they were
not able to generalize as well on the VideoMem data set. According to our analysis a major
reason for this is the diference in distributions in the two data sets. These are further illustrated
in Figure 1, Figure 2 and Figure 3. Each bin represents diferent ranges for the memorability
scores. The diference between Memento 10k and VideoMem fluctuates significantly across the
bin ranges. Initially, the diferences are smaller, but they increase notably as the bin ranges
widen towards the higher end (0.7-1.0). There’s a substantial divergence between Memento 10k
and VideoMem values, especially in the latter bin ranges.</p>
      <p>It was observed in the VideoMem data set there were some videos that had the same caption
but diferent memorability scores and diferent videos ids, there were also instances with
no captions, illustrated in Figure 4. Whereas, in Memento 10k there were only three such
occurrences. In total there were 1860 such data points, this greatly skewed our accuracy
measures. From this we infer that solely using text features for prediction is not suficient and
will not give the desired results.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Discussion and Outlook</title>
      <p>From our results we can conclude that the simply using text data doesn’t generalize well for
memorability tasks. Using ensemble models is a much a stable and robust approach. However,
a model that performs well on one dataset may not perform as well on another dataset this is
owed to the diference in data distribution across both these datasets.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M. G.</given-names>
            <surname>Constantin</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.-H. Demarty</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Fosco</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. G. S. de Herrera</surname>
            , S. Halder,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Healy</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Ionescu</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Matran-Fernandez</surname>
            ,
            <given-names>R. S.</given-names>
          </string-name>
          <string-name>
            <surname>Kiziltepe</surname>
            ,
            <given-names>A. F.</given-names>
          </string-name>
          <string-name>
            <surname>Smeaton</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Sweeney</surname>
          </string-name>
          ,
          <article-title>Overview of the mediaeval 2023 predicting video memorability task</article-title>
          , in: MediaEval Multimedia Benchmark Workshop Working Notes,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A.</given-names>
            <surname>Newman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Fosco</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Casser</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>McNamara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Oliva</surname>
          </string-name>
          , Multimodal memorability:
          <article-title>Modeling efects of semantics and decay on video memorability</article-title>
          ,
          <year>2020</year>
          . arXiv:
          <year>2009</year>
          .02568.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>R.</given-names>
            <surname>Cohendet</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.-H. Demarty</surname>
            ,
            <given-names>N. Q.</given-names>
          </string-name>
          <string-name>
            <surname>Duong</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Engilberge</surname>
          </string-name>
          ,
          <article-title>Videomem: Constructing, analyzing, predicting short-term and long-term video memorability</article-title>
          ,
          <source>in: Proceedings of the International Conference on Computer Vision</source>
          , Seoul,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M. G.</given-names>
            <surname>Constantin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Ionescu</surname>
          </string-name>
          ,
          <article-title>Using vision transformers and memorable moments for the prediction of video memorability</article-title>
          ,
          <source>in: Working Notes Proceedings of the MediaEval 2021 Workshop</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>R.</given-names>
            <surname>Kleinlein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Luna-Jiménez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Fernández-Martínez</surname>
          </string-name>
          ,
          <article-title>Thau-upm at mediaeval 2021: From video semantics to memorability using pretrained transformers</article-title>
          ,
          <source>in: Working Notes Proceedings of the MediaEval 2021 Workshop</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>M. M. A. Usmani</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Zahid</surname>
            ,
            <given-names>M. A.</given-names>
          </string-name>
          <string-name>
            <surname>Tahir</surname>
          </string-name>
          ,
          <article-title>Quest for insight: Predicting memorability based on frequency of n-grams</article-title>
          ,
          <source>in: Working Notes Proceedings of the MediaEval 2022 Workshop</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>M. M. A. Usmani</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Zahid</surname>
            ,
            <given-names>M. A.</given-names>
          </string-name>
          <string-name>
            <surname>Tahir</surname>
          </string-name>
          ,
          <article-title>Modelling of video memorability using ensemble learning and transformers</article-title>
          ,
          <source>in: Working Notes Proceedings of the MediaEval 2022 Workshop</source>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A.</given-names>
            <surname>Krizhevsky</surname>
          </string-name>
          , I. Sutskever,
          <string-name>
            <given-names>G. E.</given-names>
            <surname>Hinton</surname>
          </string-name>
          ,
          <article-title>Imagenet classification with deep convolutional neural networks</article-title>
          ,
          <source>Advances in neural information processing systems</source>
          <volume>25</volume>
          (
          <year>2012</year>
          )
          <fpage>1097</fpage>
          -
          <lpage>1105</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>G.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Liu</surname>
          </string-name>
          , L. van der Maaten,
          <string-name>
            <given-names>K. Q.</given-names>
            <surname>Weinberger</surname>
          </string-name>
          , Densely connected convolutional networks,
          <year>2018</year>
          . arXiv:
          <volume>1608</volume>
          .
          <fpage>06993</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>K.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , S. Ren,
          <string-name>
            <given-names>J.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <article-title>Deep residual learning for image recognition</article-title>
          ,
          <source>CoRR abs/1512</source>
          .03385 (
          <year>2015</year>
          ). URL: http://arxiv.org/abs/1512.03385. arXiv:
          <volume>1512</volume>
          .
          <fpage>03385</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>V.</given-names>
            <surname>Sanh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Debut</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chaumond</surname>
          </string-name>
          , T. Wolf,
          <article-title>Distilbert, a distilled version of bert: smaller, faster, cheaper</article-title>
          and lighter,
          <year>2020</year>
          . arXiv:
          <year>1910</year>
          .01108.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          , Bert:
          <article-title>Pre-training of deep bidirectional transformers for language understanding</article-title>
          ,
          <year>2019</year>
          . arXiv:
          <year>1810</year>
          .04805.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>