Saved in:
Bibliographic Details
Main Authors: Imran, Abdullah Al, Ishmam, Md Farhan
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2408.08803
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914952423407616
author Imran, Abdullah Al
Ishmam, Md Farhan
author_facet Imran, Abdullah Al
Ishmam, Md Farhan
contents In resource constraint settings, adaptation to downstream classification tasks involves fine-tuning the final layer of a classifier (i.e. classification head) while keeping rest of the model weights frozen. Multi-Layer Perceptron (MLP) heads fine-tuned with pre-trained transformer backbones have long been the de facto standard for text classification head fine-tuning. However, the fixed non-linearity of MLPs often struggles to fully capture the nuances of contextual embeddings produced by pre-trained models, while also being computationally expensive. In our work, we investigate the efficacy of KAN and its variant, Fourier KAN (FR-KAN), as alternative text classification heads. Our experiments reveal that FR-KAN significantly outperforms MLPs with an average improvement of 10% in accuracy and 11% in F1-score across seven pre-trained transformer models and four text classification tasks. Beyond performance gains, FR-KAN is more computationally efficient and trains faster with fewer parameters. These results underscore the potential of FR-KAN to serve as a lightweight classification head, with broader implications for advancing other Natural Language Processing (NLP) tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2408_08803
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle FourierKAN outperforms MLP on Text Classification Head Fine-tuning
Imran, Abdullah Al
Ishmam, Md Farhan
Computation and Language
In resource constraint settings, adaptation to downstream classification tasks involves fine-tuning the final layer of a classifier (i.e. classification head) while keeping rest of the model weights frozen. Multi-Layer Perceptron (MLP) heads fine-tuned with pre-trained transformer backbones have long been the de facto standard for text classification head fine-tuning. However, the fixed non-linearity of MLPs often struggles to fully capture the nuances of contextual embeddings produced by pre-trained models, while also being computationally expensive. In our work, we investigate the efficacy of KAN and its variant, Fourier KAN (FR-KAN), as alternative text classification heads. Our experiments reveal that FR-KAN significantly outperforms MLPs with an average improvement of 10% in accuracy and 11% in F1-score across seven pre-trained transformer models and four text classification tasks. Beyond performance gains, FR-KAN is more computationally efficient and trains faster with fewer parameters. These results underscore the potential of FR-KAN to serve as a lightweight classification head, with broader implications for advancing other Natural Language Processing (NLP) tasks.
title FourierKAN outperforms MLP on Text Classification Head Fine-tuning
topic Computation and Language
url https://arxiv.org/abs/2408.08803