[Paper Review] ColBERT: Using BERT Sentence Embedding for Humor Detection
This paper proposes ColBERT, a BERT-based neural network that leverages sentence embeddings and parallel hidden layers to detect humor in short texts. By modeling the linguistic structure of humor, the method achieves 98.2% accuracy and F1-score on a new 200k-sample dataset, outperforming baselines significantly with an 8-layer model of 110M parameters.
Automatic humor detection has interesting use cases in modern technologies, such as chatbots and virtual assistants. In this paper, we propose a novel approach for detecting humor in short texts based on the general linguistic structure of humor. Our proposed method uses BERT to generate embeddings for sentences of a given text and uses these embeddings as inputs of parallel lines of hidden layers in a neural network. These lines are finally concatenated to predict the target value. For evaluation purposes, we created a new dataset for humor detection consisting of 200k formal short texts (100k positive and 100k negative). Experimental results show that our proposed method can determine humor in short texts with accuracy and an F1-score of 98.2 percent. Our 8-layer model with 110M parameters outperforms the baseline models with a large margin, showing the importance of utilizing linguistic structure of texts in machine learning models.
Motivation & Objective
- To develop a robust method for automatic humor detection in short-form text, such as in chatbots and virtual assistants.
- To investigate how the linguistic structure of humor can be effectively modeled using deep learning.
- To create a large-scale, balanced dataset of 200k short texts (100k humorous, 100k non-humorous) for humor detection research.
- To improve upon existing baseline models by incorporating structured representations of humor through BERT embeddings.
Proposed method
- The method uses BERT to generate contextual sentence embeddings for input short texts.
- These embeddings are fed into parallel lines of hidden layers, allowing for independent processing of linguistic features.
- The outputs from the parallel hidden layers are concatenated before final prediction.
- The model architecture is designed to capture structural nuances in humor through shared and parallel representations.
- An 8-layer neural network with 110 million parameters is used, trained on the newly created dataset.
- The model is optimized for binary classification of humor using cross-entropy loss.
Experimental results
Research questions
- RQ1Can BERT-based sentence embeddings effectively capture the linguistic structure of humor in short texts?
- RQ2How does modeling humor through parallel hidden layers improve detection performance compared to standard architectures?
- RQ3To what extent does a large-scale, balanced dataset enhance the generalization of humor detection models?
- RQ4Does incorporating structural linguistic features lead to significant gains over baseline models?
Key findings
- The proposed ColBERT model achieves a test accuracy of 98.2% on the new 200k-sample humor detection dataset.
- The model records an F1-score of 98.2%, indicating strong balance between precision and recall.
- The 8-layer architecture with 110 million parameters outperforms baseline models by a large margin.
- The use of parallel hidden layers and BERT embeddings significantly enhances the model’s ability to detect subtle humor cues.
- The results demonstrate that modeling the linguistic structure of humor improves detection performance over standard approaches.
- The new dataset of 200k short texts (100k positive, 100k negative) provides a robust benchmark for future humor detection research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.