<!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>
      <journal-title-group>
        <journal-title>A. Pedrotti);</journal-title>
      </journal-title-group>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Multimodal Heterogeneous Transfer Learning for Multilingual Image-Text Classification</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Andrea Pedrotti</string-name>
          <email>andrea.pedrotti@isti.cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alejandro Moreo</string-name>
          <email>alejandro.moreo@isti.cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fabrizio Sebastiani</string-name>
          <email>fabrizio.sebastiani@isti.cnr.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Workshop</string-name>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Heterogeneous Transfer Learning, Multilingual Classification, Multimodal Classification,</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Istituto di Scienza e Tecnologie dell'Informazione Consiglio Nazionale delle Ricerche</institution>
          ,
          <addr-line>via G. Moruzzi 1, 56124 Pisa</addr-line>
          ,
          <country country="IT">Italia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>The Multilingual Image-Text Classification (MITC) task is a specific instance of the Image-Text Classification (ITC) task, where each item to be classified consists of a visual representation and a textual description written in one of several possible languages. In this paper we proposeMM-gFun, an extension of thegFun learning architecture originally developed for cross-lingual text classification. We extend its original text-only implementation to handle perceptual modalities.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>(F. Sebastiani)
CEUR
ceur-ws.org</p>
    </sec>
    <sec id="sec-2">
      <title>2. Extending gFun to the Visual Domain</title>
      <p>
        Generalized Funnelling g(Fun) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] is an architecture for HTL especially developed for Cross-Lingual
Text Classification (CLTC) tasks, in which the model is trained to assign labels to documents written in
one of a finite set of languages according to a shared classification scheme. The model is a two-tier
architecture in which the first layer projects documents written in diferent languages to the same
shared space where a metaclassifier (i.e., the second layer) subsequently takes care of the classification
step. In this way, the metaclassifier can be trained on the whole collection of training documents,
without being forced to operate on a language-specific subset of the data. Specifically, the first-tier
is equipped with a set of View Generating Functions (VGFs) each designed to mine diferent types of
information encoded in heterogeneous views of the same object.
      </p>
      <p>
        VGFs are language-dependent functions that map (monolingual) documents into
languageindependent vectorial representations (i.e., views) aligned across languages. Since each view is aligned
across languages, they can be aggregated into a single representation that is also aligned across
languages, and which can be thus fed to the meta-classifier. In gFun, for each language a set of VGFs is
instantiated to leverage diferent types of information that can be brought to bear on the training process.
In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], unimodal VGFs are based on posterior probabilities, MUSE embeddings, WCE embeddings, and
multilingual BERT.
      </p>
      <p>While the original gFun was developed for a unimodal setting (i.e., involving only textual data), in
this article we extend it to be deployed in a multimodal setting involving images as well as text written
in diferent languages. This is achieved by augmenting the set of VGFs originally proposed with a
Visual VGFs. This module is designed to explicitly mine the correlations between the images and the
target classes, which remained out of reach to the other VGFs.</p>
      <p>The training of MM-gFun is a two-phase training. In the first phase, all the VGFs of the first-tier are
tuned to produce the posterior probabilities representations of images and texts. In the second-phase,
output representations of the first-tier are aggregated according to a pre-defined policy and subsequently
used to train the meta-classifier. By leveraging the shared (modality-agnostic) space of the posterior
probabilities, the meta-classifier can be trained on the entire collection of items, be they images or text,
and independently of the textual description language.</p>
      <p>To encode the image-class correlations, we derive image representations from a Vision Transformer
(ViT). o deal with the continuous input of images, the ViT divides the image into fixed-size patches. The
patches are then flattened into vectors and linearly projected to a higher-dimensional space, serving as
input visual tokens for the transformer. Similarly to transformer model for texts, positional embeddings
are added to the visual tokens to account for the relative positions of patches.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Experiments</title>
      <p>
        Dataset We base our experiments on GLAMI-1M [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], a publicly available multilingual image-text
classification dataset. 1 and the largest multilingual image-text classification dataset providing
standardized class labels. , which makes it suitable for MITC tasks. It is a collection of fashion products,
gathered from an online catalog of fashion goods and accessories. Each item is represented by an image
and a textual description. Textual descriptions are written in one of 13 diferent languages. Each item is
labelled with a category created from the GLAMI category tree, resulting in a codeframe of 191 classes.
Images are provided with a standard resolution of 228 by 298 pixels. The class distribution exhibits a
long tail, with a few frequent classes and many infrequent ones. Similarly, the language distribution is
skewed towards a few dominant languages. The dataset is already partitioned into a training set of
1,000,000 items and a test set of 116,004 items.
      </p>
      <p>From the original GLAMI-1M, we extract a smaller version with a controlled distribution of languages,
both for the training and in test sets. For each language, we sample 15,000 documents in order to
represent higher-resourced (or “source”, in the context of HTL) languages ℒ( = {Bulgarian (bg), Czech
(cz), Hungarian (hu), Lithuanian (lt), Slovak (sk), Turkish (tr)}), and we sample 5,000 documents in order
to represent lower-resourced languages (ℒ = {Estonian (ee), Spanish (es), Greek (gr), Croatian (hr),
Latvian (lv), Romanian (ro), Slovenian (sl)}). Note that for for Greek, Spanish, Romanian, and Latvian
languages there are fewer training examples (respectively: 3405, 2434, 3533, and 4184); in these cases we
simply take them all. The final reduced dataset consists of 100,000 training items and 58,553 test items.
The class distribution in the reduced version closely resembles the one of the original dataset after the
sampling. This reduced version facilitates a controlled analysis of the ability to transfer knowledge
from higher-resourced to lower-resourced languages.</p>
      <p>Training Details We initialize the textual VGFs of MM-gFun from pre-trained models mDeBERTa-v3.
The textual input is processed via the relative SentencePiece tokenizer, with a maximum sequence
length of 32 tokens to ease the comparison with results obtained in 2[]. For the visual VGF, we initialize
the component from CLIP visual encoder. Visual images are center cropped to square features of 224
pixels. All the learners in the first-tier and the metaclassifier are optimized to minimize the cross entropy
loss, with AdamW and cosine annealing learning rate scheduler. We set the learning rate to0.0001 in
all our experiments, and train all of the models for a maximum of 25 epochs, with a early-stopping set
to 5 epochs without any increase on the accuracy on the validation set.</p>
      <p>
        Results We report the results that we have obtained using the original GLAMI-1M dataset in its
entirety as well as those obtained in the reduced setting, where we balance the number of documents
across the diferent languages. In order to allow for a direct comparison with [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], we employ accuracy
as our evaluation measure, as well as accuracy at top 5. Table1 reports the results we have obtained on
the test set (denoted by the “Full-” prefix). Results are grouped according to the input modalities that
the methods can process. In the first group, we report unimodal models for the visual modality; in the
second one, unimodal models for the (multilingual) textual modality; in the third one, we group all of
the multimodal models.
Full-
93.50
95.79
97.87
97.83
95.53
95.75
N/A
84.00
94.80
94.00
97.61
83.65
97.73
      </p>
      <p>Few- 
58.95
N/A
72.35
72.40
48.61
47.71
46.55
N/A
N/A
N/A
71.43
47.25
75.05</p>
      <p>Few- 
57.94
N/A
71.50
71.70
47.68
47.35
72.13
N/A
N/A
N/A
72.26
48.35
74.26
The results indicate that multilingual textual information encodes a stronger signal for the classification
task. Indeed, multilingual models achieve strong performance, with top-1 and top-5 accuracy around
83%, significantly outperforming vision-only models, which achieve top-1 of 63 and 71%, respectively.
Multimodal baselines such as AltCLIP, m-CLIP, and EmbraceNet show similar performance, but they do
not measure up in terms of accuracy when compared with the text-based multilingual models. The
proposed method MM-gFun achieves the best results in terms of top-1 accuracy when leveraging
both textual and visual inputs. This, along with the fact thatMM-gFun improves upon its individual
components (CLIP-ViT and mDeBERTa), demonstrates the ability of the method of leveraging both
modalities. Consistently with our results on the full dataset, we observe that multilingual models
outperform visual ones also in the few-shot setting (denoted by the “Few-” prefix), in terms of micro- and
macro-averaged accuracy across languages. However, in this data-scarce scenario, all our multimodal
baselines fall short in terms of performance when compared to MM-gFun and CLIP-ViT, by also
exhibiting a significant drop in accuracy with respect to the data-rich scenario with respect to the other
approaches. Here, MM-gFun achieves good results, improving over the unimodal textual-component
by no less than 2.5 points and by 16 points with respect to the visual component.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>In this paper, we have presented MM-gFun, an architecture for Heterogeneous Transfer Learning
(HTL) in the task of multilingual image-text classification. This architecture is an extension of the
unimodal multilingualgFun. By augmenting the set of Visual Grounding Functions (VGFs) with a
specific module to represent input images, we demonstrated improved performance on multilingual
image-text classification tasks. Our approach achieves superior performance compared to MM-gFun’s
internal components when trained independently. We validated our hypothesis through experiments on
GLAMI-1M, a multilingual and multimodal dataset of fashion product images with textual descriptions
in 13 diferent languages.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This work has been supported by the FAIR and SoBigData.it projects, funded by the Italian Ministry
of University and Research under the NextGenerationEU program. The authors’ opinions do not
necessarily reflect those of the funding agencies.</p>
    </sec>
    <sec id="sec-6">
      <title>Declaration on Generative AI</title>
      <p>During the preparation of this work, the authors used ChatGPT in order to: Grammar and spelling
check.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Moreo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Pedrotti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Sebastiani</surname>
          </string-name>
          ,
          <article-title>Generalized funnelling: Ensemble learning and heterogeneous document embeddings for cross-lingual text classification</article-title>
          ,
          <source>ACM Transactions on Information Systems</source>
          <volume>41</volume>
          (
          <year>2023</year>
          )
          <volume>36</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>36</lpage>
          :
          <fpage>37</fpage>
          . doi:
          <volume>10</volume>
          .1145/3544104.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>V.</given-names>
            <surname>Kosar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Hoskovec</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Šulc</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Bartyzal</surname>
          </string-name>
          , Glami-1m:
          <article-title>A multilingual image-text fashion dataset</article-title>
          ,
          <source>in: British Machine Vision Conference</source>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Chen</surname>
          </string-name>
          , G. Liu,
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Yang</surname>
          </string-name>
          , L. Wu,
          <article-title>Altclip: Altering the language encoder in CLIP for extended language capabilities, in: Findings of the Association for Computational Linguistics: ACL, Association for Computational Linguistics</article-title>
          ,
          <year>2023</year>
          , pp.
          <fpage>8666</fpage>
          -
          <lpage>8682</lpage>
          .
          <year>doi1</year>
          :
          <fpage>0</fpage>
          .18653/V1/
          <year>2023</year>
          . FINDINGS- ACL.
          <year>552</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>N.</given-names>
            <surname>Reimers</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Gurevych</surname>
          </string-name>
          ,
          <article-title>Making monolingual sentence embeddings multilingual using knowledge distillation</article-title>
          ,
          <source>in: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, EMNLP</source>
          <year>2020</year>
          , Online,
          <source>November 16-20</source>
          ,
          <year>2020</year>
          ,
          <year>2020</year>
          , pp.
          <fpage>4512</fpage>
          -
          <lpage>4525</lpage>
          . doi:
          <volume>10</volume>
          .18653/V1/
          <year>2020</year>
          .EMNLP- MAIN.
          <year>365</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>H.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y. J.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>Visual instruction tuning</article-title>
          ,
          <source>in: Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems</source>
          <year>2023</year>
          , NeurIPS
          <year>2023</year>
          , New Orleans, LA, USA, December
          <volume>10</volume>
          -
          <issue>16</issue>
          ,
          <year>2023</year>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Choi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>Embracenet: A robust deep learning architecture for multimodal classification</article-title>
          ,
          <source>Inf. Fusion</source>
          <volume>51</volume>
          (
          <year>2019</year>
          )
          <fpage>259</fpage>
          -
          <lpage>270</lpage>
          . doi:
          <volume>10</volume>
          .1016/J.INFFUS.
          <year>2019</year>
          .
          <volume>02</volume>
          .010.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>