<!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>H. Liu, S. Zhang, X. Wu, Mlslr: Multilabel learning via sparse logistic regression, Infor-
mation Sciences</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.1145/3632754.3634662</article-id>
      <title-group>
        <article-title>Assessing Factual Accuracy in Machine Generated Cross Lingual Summaries using Logistic Regression and BERT</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Kushaal Shyam Potta</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jaswanth Sridharan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mahadev Ramesh Ramya</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Shriram Gopalakrishnan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Durairaj Thenmozhi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Sri Sivasubramaniya Nadar College Of Engineering</institution>
          ,
          <addr-line>Rajiv Gandhi Salai (OMR), Kalavakkam, 603 110, Tamil Nadu</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>281</volume>
      <issue>2014</issue>
      <fpage>15</fpage>
      <lpage>18</lpage>
      <abstract>
        <p>Text classification poses a significant challenge, especially with the rise of AI-generated text on various social media platforms, where discerning authenticity and accuracy becomes critical. Through the ILSUM 2024 shared task, we aim to bridge this gap by applying supervised machine learning algorithms to classify text into various categories. Our team concentrated on the Gujarati and Hindi datasets, utilizing machine learning models such as logistic regression, logistic regression with class weights,and transformer models such as BERT, and BERT with focal loss to classify text. Notably, logistic regression with class weights produced a F1 score of 0.3371 in Gujarati, while BERT with focal loss produced a F1 score of 0.3426 in Hindi, indicating the efectiveness of specialized techniques for these languages. Our models achieved an overall rank of 1, based on their highest F1 scores.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Text Classification</kwd>
        <kwd>Machine Learning</kwd>
        <kwd>Natural Language Processing</kwd>
        <kwd>Transformer Models</kwd>
        <kwd>Multiple Classification</kwd>
        <kwd>Logistic Regression</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Related Works</title>
      <p>In recent advancements, natural language processing (NLP) has leveraged both traditional machine
learning algorithms and large language models (LLMs) for tasks like cross-lingual summary classification.
Cross-lingual summary classification is particularly challenging as it requires the model to recognize and
accurately classify summaries from multiple languages. Adding the aspect of multi-label classification
brings extra complexity in terms of data preprocessing and classification of output labels.</p>
      <p>Liu et al. [8] has expressed the increasing attention towards multilabel learning. Through performing
an elastic net penalty on the logical regression model, the overfitting of high-dimensional data is
reduced.</p>
      <p>Aseervatham et al. [9] talked about the high eficiency of ridge logistic regression with respect to
textual classification problems. The advantage of such classification is the computing of probability
value instead of a score.</p>
      <p>Shah et al. [10] created a comparative analysis of logistic regression, random forest and KNN models
for text classification on a BBC news data set. The logistic regression classifier with the TF-IDF vectorizer
feature attained highest accuracy of 0.97 with their dataset.</p>
      <p>Yu et al. [11] proposed a scalable solution to the extreme multi-label text classification problem
(XMC) and achieved state-of-the-art performance in the same by creating X-BERT, a deep learning
approach built using fine-tuned versions of BERT models.</p>
      <p>Further research by Bhargava et al. [12] involves utilizing multilingual models like mBERT, XLM-R
for text classification of indian languages in the manner of transfer learning, which means the model is
trained only on one or two languages and made to classify data in a new language.</p>
      <p>Deroy et al. [13] delves into the classification of Gujarati and Hindi texts utilizing LLMs and zero
shot prompting, highlighting the importance of LLMs, which have gained traction in the recent years,
in the field of text classification. The text is preprocessed and used by the GPT-3.5 Turbo LLM model to
generate accurate labels for classification of data.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Dataset Description</title>
      <p>The dataset for this task includes both training and test sets with multilingual summaries and source
articles. The training set comprises columns including Id, Title, Headlines, Article, Incorrect_Summary,
Incorrectness_Type, Correct_Summary, Incorrect_Summary_Hindi, Correct_Summary_Hindi,
Incorrect_Summary_Gujarati, and Correct_Summary_Gujarati. Each record represents an
English article along with its machine-generated summaries in English, Hindi, and Gujarati, along with
the respective correct summaries for each. The Incorrectness_Type column categorizes summaries
based on factual errors. Instances labeled as NaN under Incorrectness_Type indicate summaries
that were factually correct; these records were assigned an additional Correct label to distinguish
them from other error categories.</p>
      <p>For the test set, the data is split into Hindi and Gujarati summary subsets, each containing the
columns id_new, article, and summary. Only the English article and its respective Hindi or Gujarati
summary are provided in the test set, simulating a real-world setting where summaries are generated
in local languages based on English source material.</p>
      <p>This dataset structure allows for thorough model training on factual correctness across languages,
covering scenarios from simple translation to complex semantic interpretation of facts in summaries
across English, Hindi, and Gujarati. By including both correct and erroneous summaries, the dataset
enables models to discern factual inaccuracies efectively while handling the nuances of multilingual
data alignment. The provided dataset was then preprocessed according to the requirement of the models
used, as explained in the later sections of the paper.</p>
      <sec id="sec-3-1">
        <title>3.1. Task Description</title>
        <p>The task involves detecting factual inaccuracies in machine-generated cross-lingual summaries based
on an English source document. Given an English source document and its summaries in Hindi or
Gujarati, the objective is to classify each summary as either factually correct or containing one of four
error types:
• Misrepresentation: Information is presented misleadingly, often by exaggerating or downplaying
certain aspects to alter the narrative.
• Inaccurate Quantities or Measurements: Errors occur when quantities.
• False Attribution: Statements, ideas, or actions are incorrectly credited to the wrong person or
group.
• Fabrication: Involves creating fictitious data, events, or sources without any factual basis.</p>
        <p>Task
Training
Testing
Training
Testing</p>
        <p>Language
Gujarati
Gujarati</p>
        <p>Hindi
Hindi</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Approach</title>
      <p>We trained diferent machine learning and transformer models such as Logistic Regression, Logistic
Regression with Class Weights and BERT base Uncased, BERT with Focal Loss on the training dataset,
evaluated the models and submitted our runs by applying the ML and transformer models on the test
dataset.</p>
      <sec id="sec-4-1">
        <title>4.1. Data Preprocessing</title>
        <p>Given the diverse models employed, the dataset required distinct preprocessing steps for each approach:
4.1.1. Logistic Regression:
• Text Combination: The Article and Incorrect_Summary_Gujarati columns were
combined into a single text input for each record to ensure the model received context from both the
source document and the summary.
• TF-IDF Transformation: We applied TF-IDF vectorization to convert the text data into numerical
features, capturing the importance of terms within the document context. This transformation
yielded a sparse representation suitable for Logistic Regression.
• Label Encoding: The target labels in the Incorrectness_Type column were label-encoded
into integer values, preparing them for classification.
4.1.2. Logistic Regression with Class Weights:
• Text Combination and TF-IDF: The same text combination and TF-IDF vectorization steps
were applied as in the Logistic Regression baseline.
• Class Weighting: Given the dataset’s imbalance, where “Correct” labels were predominant, class
weights were automatically set to “balanced” to assign greater importance to minority classes
during training.</p>
        <sec id="sec-4-1-1">
          <title>4.1.3. BERT Base Uncased:</title>
          <p>• Text Tokenization: BERT required the input text to be tokenized, so we used the BERT tokenizer
to split the combined Article and Incorrect_Summary_Hindi columns into tokens. The
tokenizer handled wordpiece tokenization and added special tokens like [CLS] and [SEP] for
BERT’s input format.
• Padding and Truncation: To standardize input length, tokenized text was padded or truncated
to a fixed length (512 tokens) suitable for BERT. This step ensured that the model could eficiently
process each example within its input size limits.
4.1.4. BERT with Focal Loss:
• Tokenization, Padding, and Truncation: This approach followed the same tokenization and
input standardization steps as BERT Base Uncased.
• Focal Loss Integration: Focal Loss was used to focus on harder-to-classify samples. This
required configuring the labels and outputs to work within the custom loss function during
training, helping mitigate the efects of the dataset’s class imbalance.</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Methodology</title>
        <p>To detect factual inaccuracies in cross-lingual summaries, we utilized four approaches tailored to address
the dataset’s characteristics:</p>
        <sec id="sec-4-2-1">
          <title>4.2.1. Logistic Regression:</title>
          <p>Logistic Regression is a widely used supervised machine learning algorithm that is used to develop
models used for data classification. As it assigns probabilities to each class, it allows for clear decision
boundaries. In this study, the Logistic Regression model served as a baseline for text classification. Its
simplicity made it an eficient tool for analyzing core patterns and detecting factual errors within the
dataset.</p>
        </sec>
        <sec id="sec-4-2-2">
          <title>4.2.2. Logistic Regression with Class Weights:</title>
          <p>After evaluating our previous result with Logistic Regression and inferring that the dataset was heavily
skewed towards “Correct” labels, we were at a risk of being heavily biased towards the majority class.
Keeping that in mind, to address the imbalance observed, we implemented a model utilizing Logistic
Regression with class weights to counteract this imbalance. By assigning proportionally higher weights
to the minority class and lower weights to the majority class, this approach seeks to balance the influence
of each class during the optimization process.</p>
          <p>By modifying the parameter class_weight=’balanced’ in the LogisticRegression class, we ensure
that the model correctly identifies classes that appear with less frequency in the data.</p>
          <p>This approach improved the model’s sensitivity to less frequent error categories by assigning higher
importance to minority classes.</p>
        </sec>
        <sec id="sec-4-2-3">
          <title>4.2.3. BERT Base Uncased:</title>
          <p>To capture complex contextual dependencies within summaries, we employed a BERT model fine-tuned
for sequence classification. BERT’s contextual embeddings are efective for nuanced classifications,
making it suitable for identifying subtle factual inconsistencies in the summaries.</p>
          <p>The BERT Base Uncased model is loaded and the training parameters for the model are specified
using the TrainingArguments class. The key parameters and their respective fine-tuned values are
detailed below:
• output_dir: This parameter is set to ./results, defining the directory where the model
checkpoints and outputs will be stored during training. This is crucial for tracking the model’s
performance and for future use.
• num_train_epochs: The model is configured to train for 3 epochs, referring to the number of
complete passes through the training dataset.
• per_device_train_batch_size: The training batch size is specified as 16, indicating that 16
samples will be processed in each training step per device (e.g., GPU or CPU).
• per_device_eval_batch_size: The evaluation batch size is set to 64.
• warmup_steps: A warm-up period of 500 steps is established, during which the learning rate
gradually increases from zero to its initial value.
• weight_decay: A weight decay of 0.01 is employed to apply L2 regularization, which aids in
preventing overfitting by penalizing large weights during optimization.
• logging_dir: This parameter specifies the directory ./logs for storing logs generated during
training.
• logging_steps: The logging frequency is set to every 10 steps, allowing for regular monitoring
of training progress.
• evaluation_strategy: The evaluation strategy is defined as "epoch," indicating that the model
will be evaluated at the end of each training epoch.</p>
        </sec>
        <sec id="sec-4-2-4">
          <title>4.2.4. BERT with Focal Loss:</title>
          <p>This model further addressed the class imbalance by incorporating Focal Loss, which focuses more
on challenging, misclassified instances. This strategy enhanced the model’s performance on minority
classes, allowing for more precise detection of factual inaccuracies like Fabrication and False Attribution.
• The optimizer is instantiated using the AdamW class, with a learning rate of 2 × 10− 5. This
choice of optimizer facilitates eficient training by adapting the learning rate for each parameter,
contributing to improved convergence.
• A training loop is established to utilize Focal Loss as the loss function, designed to address class
imbalance by focusing more on harder-to-classify samples.
• The train_epoch function is defined to perform one epoch of training. Inside this function, the
model is set to training mode, and the total loss is initialized to zero.
• The Focal Loss is calculated using the model’s logits and the true labels. The loss is then
backpropagated, and the optimizer updates the model’s parameters. The total loss for the epoch is
averaged and returned.
• A separate eval_model function is defined to evaluate the model’s performance on the validation
set. In this function, the model is switched to evaluation mode, and predictions along with true
labels are collected without tracking gradients.
• The model is trained for a total of 3 epochs, with the training loss printed at the end of each
epoch.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Results and Performance Analysis</title>
      <p>For evaluating our approaches, we chose the F1 Score as our evaluation metric. The F1 Score is an
evaluation metric that balances both precision and recall. In the face of imbalance as seen in our data, it
keeps the approach robust and capable to classify data even if one label appears lesser number of times
compared to other labels for our output.</p>
      <p>For Gujarati, we used Logistic Regression and Logistic Regression with Class Weights approaches
respectively. This gave us a baseline idea about how well such models can classify text. The Logistic
Regression model yielded a F1 Score of 0.0969, highlighting its performance with respect to skewed
data. Taking this into account, we used Logistic Regression with Class Weights which yielded a F1
Score of 0.3371, making this approach more robust and less susceptible towards an imbalance in data.</p>
      <p>For Hindi, we used the BERT transformer base uncased model in its original and focal loss enabled
form. The transformer model is able to classify to a greater extent due to the fact it also ensures the
context of the text is processed. The BERT base Uncased transformer model yielded a F1 Score of 0.2133
This prompted us to use BERT with Focal Loss which yielded our best result, a F1 Score of 0.3426.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>Through the medium of this shared task and research paper, we have gained a deeper understanding of
text classification and the positive efect this can bring towards the users on the internet and expansion
of the field of Natural Language Processing. We also learned how to process text in languages like
Gujarati and Hindi, furthering Natural Language Processing in regional languages as well. Through
our findings, the evaluation metric used validates the robustness of the model in case of imbalanced or
skewed data.</p>
      <p>BERT with Focal Loss gave the highest F1 Score for Hindi data at 0.3426 and Logistic Regression with
Class Weights gave the highest F1 Score at 0.3371.</p>
      <p>We conclude by stating that the problem of text classification is crucial and further research and
multilingual support for the same is beneficial for a very large group of people on the internet. We can
deploy such systems with ease online to help moderate content on diferent social platforms, identifying
diferent types of misinformation in various languages and flagging them wherever it sees fit. Ensuring
scalability of such solutions can ensure flexibility and reliability of such systems in various linguistic
contexts, furthering the field of Natural Language Processing.</p>
    </sec>
    <sec id="sec-7">
      <title>7. Declaration on Generative AI</title>
      <p>During the preparation of this work, the author(s) used GPT-4 in order to: Drafting content, Improve
writing style, and Paraphrase and reword concepts. After using these tool(s)/service(s), the author(s)
reviewed and edited the content as needed and take(s) full responsibility for the publication’s content.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Satapara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Modha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Modha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Mehta</surname>
          </string-name>
          ,
          <article-title>Findings of the first shared task on indian language summarization (ILSUM): approaches challenges and the path ahead</article-title>
          , in: K. Ghosh,
          <string-name>
            <given-names>T.</given-names>
            <surname>Mandl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Majumder</surname>
          </string-name>
          , M. Mitra (Eds.), Working Notes of FIRE 2022 -
          <article-title>Forum for Information Retrieval Evaluation, Kolkata</article-title>
          , India, December 9-
          <issue>13</issue>
          ,
          <year>2022</year>
          , volume
          <volume>3395</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>369</fpage>
          -
          <lpage>382</lpage>
          . URL: https://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>3395</volume>
          /
          <fpage>T6</fpage>
          -1.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Satapara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Modha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Modha</surname>
          </string-name>
          , P. Mehta,
          <article-title>FIRE 2022 ILSUM track: Indian language summarization</article-title>
          , in: D.
          <string-name>
            <surname>Ganguly</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Gangopadhyay</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Mitra</surname>
          </string-name>
          , P. Majumder (Eds.),
          <source>Proceedings of the 14th Annual Meeting of the Forum for Information Retrieval Evaluation</source>
          ,
          <string-name>
            <surname>FIRE</surname>
          </string-name>
          <year>2022</year>
          , Kolkata, India, December 9-
          <issue>13</issue>
          ,
          <year>2022</year>
          , ACM,
          <year>2022</year>
          , pp.
          <fpage>8</fpage>
          -
          <lpage>11</lpage>
          . URL: https://doi.org/10.1145/3574318.3574328. doi:
          <volume>10</volume>
          .1145/ 3574318.3574328.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Satapara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Mehta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Modha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Ganguly</surname>
          </string-name>
          ,
          <article-title>Key takeaways from the second shared task on indian language summarization (ILSUM 2023)</article-title>
          , in: K. Ghosh,
          <string-name>
            <given-names>T.</given-names>
            <surname>Mandl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Majumder</surname>
          </string-name>
          , M. Mitra (Eds.), Working Notes of FIRE 2023 -
          <article-title>Forum for Information Retrieval Evaluation (FIRE-WN</article-title>
          <year>2023</year>
          ), Goa, India,
          <source>December 15-18</source>
          ,
          <year>2023</year>
          , volume
          <volume>3681</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>724</fpage>
          -
          <lpage>733</lpage>
          . URL: https://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>3681</volume>
          /
          <fpage>T8</fpage>
          -1.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Satapara</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Mehta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Modha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Ganguly</surname>
          </string-name>
          ,
          <source>Indian language summarization at FIRE</source>
          <year>2023</year>
          , in: D.
          <string-name>
            <surname>Ganguly</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Majumdar</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Mitra</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Gupta</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Gangopadhyay</surname>
          </string-name>
          , P. Majumder (Eds.),
          <source>Proceedings of the 15th Annual Meeting of the Forum for Information Retrieval Evaluation</source>
          ,
          <string-name>
            <surname>FIRE</surname>
          </string-name>
          <year>2023</year>
          , Panjim,
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>