Skip to main content
QUICK REVIEW

[Paper Review] ColBERT: Using BERT Sentence Embedding in Parallel Neural Networks for Computational Humor

Issa Annamoradnejad, Gohar Zoghi|arXiv (Cornell University)|Apr 27, 2020
Humor Studies and ApplicationsPsychology34 references6 citations
TL;DR

This paper proposes ColBERT, a novel neural network architecture that uses BERT sentence embeddings processed in parallel pathways to detect and rate humor in short texts based on incongruity theory. By separately encoding each sentence and combining features to assess semantic congruity, the model achieves F1 scores of 0.982 on a new English dataset and 0.869 on a Spanish tweet competition, outperforming state-of-the-art models while emphasizing sentence-level semantics and linguistic structure.

ABSTRACT

Automation of humor detection and rating has interesting use cases in modern technologies, such as humanoid robots, chatbots, and virtual assistants. In this paper, we propose a novel approach for detecting and rating humor in short texts based on a popular linguistic theory of humor. The proposed technical method initiates by separating sentences of the given text and utilizing the BERT model to generate embeddings for each one. The embeddings are fed to separate lines of hidden layers in a neural network (one line for each sentence) to extract latent features. At last, the parallel lines are concatenated to determine the congruity and other relationships between the sentences and predict the target value. We accompany the paper with a novel dataset for humor detection consisting of 200,000 formal short texts. In addition to evaluating our work on the novel dataset, we participated in a live machine learning competition focused on rating humor in Spanish tweets. The proposed model obtained F1 scores of 0.982 and 0.869 in the humor detection experiments which outperform general and state-of-the-art models. The evaluation performed on two contrasting settings confirm the strength and robustness of the model and suggests two important factors in achieving high accuracy in the current task: 1) usage of sentence embeddings and 2) utilizing the linguistic structure of humor in designing the proposed model.

Motivation & Objective

  • To develop an automated system for detecting and rating humor in short texts using a linguistically grounded approach.
  • To address limitations in existing humor datasets by creating a statistically balanced, large-scale dataset of 200,000 formal short texts.
  • To evaluate the model’s robustness across diverse text types, including formal English and informal Spanish tweets.
  • To investigate the impact of sentence-level embeddings and structural modeling of humor on detection accuracy.
  • To demonstrate the effectiveness of a parallel neural network architecture for capturing inter-sentence incongruity in humor.

Proposed method

  • The model splits input texts into individual sentences and uses BERT to generate contextual sentence embeddings for each.
  • Each sentence embedding is processed through a separate, parallel stream of hidden layers in a neural network to extract latent features.
  • The outputs from all sentence-specific streams are concatenated and fed into final layers to assess congruity and predict humor likelihood.
  • The architecture is trained end-to-end to classify whether a text is humorous, with loss optimized via cross-entropy for binary detection and RMSE for regression-based rating.
  • For Spanish text, the model uses BETO-uncased BERT instead of English BERT to ensure meaningful sentence embeddings.
  • A rigorous data curation pipeline removes outliers and balances statistical properties between humorous and non-humorous texts to reduce bias.

Experimental results

Research questions

  • RQ1Can a neural network architecture that processes sentences in parallel and leverages BERT embeddings achieve high accuracy in humor detection?
  • RQ2Does modeling humor based on incongruity theory—focusing on sentence-level relationships—improve performance over holistic text encoding?
  • RQ3How robust is the ColBERT model when applied to informal, low-resource, and non-English text such as Spanish tweets?
  • RQ4To what extent do sentence-level embeddings and structural modeling of humor contribute to improved detection accuracy?
  • RQ5Can a large, balanced, and preprocessed dataset of formal short texts serve as a reliable benchmark for future humor detection research?

Key findings

  • The ColBERT model achieved an F1 score of 0.982 on the novel ColBERT dataset for binary humor detection in formal English short texts, outperforming strong baselines.
  • In a live machine learning competition on Spanish informal tweets, the model secured 2nd place with an RMSE of 0.6246 for humor rating and 3rd place with an F1 score of 0.8696 for binary detection.
  • The model’s performance across two distinct settings—formal English and informal Spanish—demonstrates strong robustness and generalization capability.
  • The ablation study confirms that both sentence-level embeddings and modeling of linguistic structure (via parallel processing) are critical for high accuracy.
  • The proposed ColBERT dataset of 200,000 short texts (100k humorous, 100k non-humorous) is statistically balanced and free from common data biases found in prior datasets.
  • The results validate the hypothesis that humor detection benefits from modeling inter-sentence incongruity through parallel, sentence-specific processing of BERT embeddings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.