---
title: "Can Pre-trained Language Models Understand Chinese Humor?"
description: "An evaluation of Chinese humor tests whether pretraining, task-specific training, and pronunciation cues help systems recognize jokes and…"
canonical: "https://research.elamur.ai/free/en/papers/chen-2023-can-pre-trained-language-models/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/chen-2023-can-pre-trained-language-models/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / Can Pre-trained Language Models Understand Chinese Humor?

# Can Pre-trained Language Models Understand Chinese Humor?

Paper · 2023 · Yuyan Chen, Zhixu Li, Jiaqing Liang et al.

**Authors:** [Yuyan Chen](https://md.research.elamur.ai/free/en/authors/yuyan-chen/), [Zhixu Li](https://md.research.elamur.ai/free/en/authors/zhixu-li/), [Jiaqing Liang](https://md.research.elamur.ai/free/en/authors/jiaqing-liang/), [Yanghua Xiao](https://md.research.elamur.ai/free/en/authors/yanghua-xiao/), [Bang Liu](https://md.research.elamur.ai/free/en/authors/bang-liu/) and Yunwen Chen · **Year:** 2023 · **Venue:** arXiv:2407.04105 · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[licence](https://creativecommons.org/licenses/by/4.0/)

- [DOI 10.1145/3539597.3570431](https://doi.org/10.1145/3539597.3570431)
- [arXiv 2407.04105](https://arxiv.org/abs/2407.04105)

## Summary

A reader can recognize that a story is a joke, explain the wordplay that makes it work, and judge whether its ending lands. Those judgments draw on different evidence. The authors ask how much of this ability can be demonstrated by a pretrained [language model](https://md.research.elamur.ai/free/en/concepts/language-model/). They build a Chinese humor dataset around four tasks. The tasks ask whether a passage is humorous, what kind of humor it uses, how funny it is, and whether a particular ending is the punchline for a given setup. This makes it possible to ask where performance improves with training and where the judgments remain difficult.

The authors compare pretrained systems applied directly to each task with versions trained on labeled examples from the corresponding dataset, a procedure called [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). Without task-specific training, average development-set accuracy was 54.98% for humor recognition, 33.77% for humor type, 33.32% for humor level, and 49.96% for punchline detection. Fine-tuning raised average accuracy above 90% for humor recognition and punchline detection. The gains in classifying humor type and level still left those tasks substantially harder under the paper’s evaluation. The punchline result has a specific scope. The system sees the preceding context and a supplied ending, then decides whether the ending is the original punchline or an ordinary continuation generated for that context.

The authors also test whether an additional source of information helps. The clearest benefit comes from pinyin, a written representation of Chinese pronunciation. In the successful configuration, the system first represents the passage and then adds a representation of pinyin before making its decision. This improves average development-set performance across the humor tasks. The authors report that the general and commonsense resources they tried failed to deliver improvements across all the tasks. In a separate experiment, humor training gave small gains on Chinese sentiment classification, while adding external knowledge yielded no further improvement there.

Finally, the paper examines which parts of an input influence a decision, a question of [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/). The unadapted systems sometimes give high importance to punctuation or special input markers. After fine-tuning, some highlighted characters are easier to connect to the joke. In one example, the highlighted characters in a setup and its punchline have similar pronunciations and different meanings. Masking highly ranked input words also has a much greater effect on fine-tuned humor recognition. Together, the results show that task training helps the systems use evidence relevant to these judgments. The examples also show why a correct label and an account of why a joke works demand different kinds of evidence.

## Deep dive: Can Pre-trained Language Models Understand Chinese Humor?

An evaluation of Chinese humor tests whether pretraining, task-specific training, and pronunciation cues help systems recognize jokes and punchlines. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What would count as understanding a joke?

The paper begins with a question about human–machine interaction. A system meant to respond appropriately to people will encounter passages whose intended effect depends on word choice, an expectation created earlier in the exchange, or knowledge shared by its readers. A sentence can make sense on its own and still owe its humor to the way it changes the interpretation of an earlier sentence. The authors treat that dependence on meaning and background as a reason to study humor directly. Success at ordinary language tasks gives them a reason to try pretrained systems. They use a dedicated evaluation to find out what those systems can do with humorous text.

The word *understanding* covers several possible achievements. Recognition is the broadest judgment in the paper. Given a whole passage, can a system tell whether it belongs to the humorous class? Type classification asks a different question. Given an example already known to be humorous, can it identify the mechanism that the label describes? Level classification asks how strong the humor is according to the dataset’s labels. Punchline detection narrows the object of judgment to a candidate ending and asks what role it plays after a particular setup. A system can perform these jobs to different degrees because each task requires a different decision about the same general phenomenon.

Consider the paper’s example of a woman whose calm demeanor is taken as a sign of composure. Her response explains that she is resting after running downstairs and will resume the quarrel when she catches her breath. The humor depends on a shift in the reason the reader assigns to her behavior. Words expressing calmness are part of the setup, and her fatigue alone provides an ordinary explanation for resting. The reversal emerges when the reader puts the pieces together. This is the kind of case that motivates the distinction between identifying a humorous text and identifying the incongruity that makes it humorous.

Another example in the paper depends on a word that carries a reading of *very* and a reading connected with a score of ten. Here the relationship lies within a single written expression. A joke about payment schedules and relatives, in contrast, uses expressions with similar pronunciations and different meanings. These cases exemplify separate demands on a system. Written identity gives it a place to look for ambiguity, while a sound resemblance may connect expressions written with different characters. An unexpected answer can require following an interpretation across a whole exchange. The proposed evaluation puts these phenomena into related tasks with separate labels.

#### From hand-designed features to task training

The earlier work discussed by the authors frequently tackled a narrower form of humor recognition or generation. Some recognition systems used associations between words, including similarities between pairs of words in a passage, to look for expressions central to a joke. Other research examined underlying semantic structure. Work on humor and irony in social media designed linguistic features for those texts. Studies of humorous one-liners applied text classification, and work on audience laughter in talks used structural features and distances between semantic representations. Each approach gave a particular kind of evidence a role in the prediction. Finding a probable humor cue was already part of some of this earlier work.

The generation examples in the paper include template-based jokes and methods that retrieve and edit text to produce puns. The authors see a practical cost in building features or templates around particular datasets and kinds of expression. The design effort can be substantial, and the resulting system can have a narrow range. Pretraining changes that setup. A system already exposed to large amounts of text can be adapted to labeled humor examples, reducing the need to specify the relevant patterns in advance. The paper places itself after initial attempts to apply such systems to humor. It shifts the question from whether they can be used for a humor task to what a series of different humor tasks can establish.

For the authors, comparing a pretrained system before and after task training helps locate where the demonstrated ability comes from. Direct application asks what the system can already express through the chosen evaluation interface. Fine-tuning asks how well it can learn the dataset’s distinctions from labeled examples. A separate test of external information asks whether there is a benefit to supplying a cue in a more accessible form. The authors reserve a further set of analyses for how judgments change when parts of the input are altered. These comparisons extend the study beyond selecting the system with the highest score.

#### Why build a Chinese dataset?

The paper situates its dataset alongside earlier resources with different forms of supervision. It describes English humor ratings attached to words, a Spanish collection of tweets annotated for humor and funniness, edited English headlines intended to become funny, and a multimodal resource for detecting humor in English-language talks. A word rating, a headline edit, and an audience response each define a different observation. The Chinese evaluation needs labels for complete passages, a way to distinguish mechanisms and strength, and examples in which an ending can be judged against a setup. It also needs enough examples of each kind to train and compare systems under the same general procedure.

The authors describe Chinese humor resources as less abundant than English ones. They draw on existing Chinese collections for material that has already been labeled and supplement those sources where the tasks require new kinds of examples. The type and level tasks adapt categories used in the CCL2019 competitions. The punchline task takes inspiration from laughter prediction but defines its evidence as a written context and a candidate ending. There is an important difference in the questions asked by those designs. Audience laughter is an observed response to a performance, while the label in this paper concerns the ending supplied with a particular written setup. That narrower judgment makes a controlled comparison between endings possible.

### The method, step by step

#### How a joke becomes an evaluation item

The study combines a dataset construction procedure with an evaluation procedure. The data determine what the system sees and what counts as the expected answer. The evaluation then compares direct use of pretrained systems, training on the labeled tasks, and training with additional knowledge. The final stage looks inside individual predictions through saliency, a score for how strongly an input element is implicated in a decision, and tests what happens when the input is perturbed. The sequence below shows how the authors move from collecting texts to checking the decisions made from them.

From Chinese humor examples to prediction checks The steps in order.

For humor recognition, the input is a complete passage and the output is a binary label. Most positive examples come from existing Chinese humor data, including the collection named ChineseHumorSentiment. The authors collect negative examples from several platforms, drawing on forms such as fables, celebrity stories, and short diaries written as monologues. They choose short monologues and dialogues because their style resembles the style of the humorous material. The input texts range from 20 to 200 characters. This design gives the classifier a harder distinction than one in which the humorous and ordinary classes are defined by obviously different formats.

The negative label is checked by human volunteers. Three people assess whether a candidate is humorless, and the authors discard items with disputed labels. This gives the recognition dataset a particular kind of [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/). A retained negative example is a passage that survived a check for agreement. The rejection of disputed passages also sets a boundary around the task. Its training examples concentrate on cases the annotators can classify consistently under the study’s procedure. For this task the expected answer is a property of the whole text, even though a small part of it may carry much of the evidence.

The type sub-dataset begins with humorous passages that have labels in released Chinese resources. Three raters help proofread the labels, and the authors remove examples they find mislabeled. The classifier then chooses among harmonic, ambiguous, and incongruous humor. *Harmonic* is the paper’s label for humor based on similar pronunciations across expressions with different meanings. The payment-and-relatives example pairs 季付, paying quarterly, with 继父, stepfather. Both are represented as *jifu* in the example. It also pairs 月付, paying monthly, with 岳父, father-in-law, represented as *yuefu*. The similar sounds connect meanings that belong to very different situations.

For ambiguous humor, the paper looks for a single expression whose distinct senses are both in play. The example with 十分 exploits a degree reading and a score reading. The type judgment concerns the role of that ambiguity in the passage. An expression can have several dictionary senses even when a particular use selects only one. In the incongruous category, the paper instead emphasizes a departure from an expectation encouraged by the text. The woman who is resting before a quarrel illustrates this last category. The reader initially has one explanation for her behavior and then learns a different one that fits the same behavior.

Humor level uses the same source collections as type classification, with similar manual proofreading. The competition task from which the authors adapt it grades humor from weakest to strongest on a five-level scale. The paper uses three discrete labels, weak, medium, and strong. A classifier receives a humorous passage and predicts its assigned level. This turns a graded judgment into a classification target. The method description gives the labels and the checking procedure. It leaves the precise mapping from the earlier levels to the retained categories unspecified, so the clearest way to understand the experiment is as prediction of these three annotated labels.

#### How the authors build the ending comparison

The punchline dataset starts from the positive side of humor recognition. The authors ask another group of three volunteers to select a punchline sentence for each humorous passage. They choose the sentence with the most votes, take the material before it as the setup, and remove any material that follows it. If sentences tie for the highest vote, the passage is discarded. This procedure allows a punchline to occur before the final sentence of the original passage. For the resulting evaluation item, the selected punchline becomes the ending by construction.

The authors then use a generator such as CPM to create an ordinary continuation for the same setup. They aim for an ending of similar length to the selected punchline. With the same preceding text available in both cases, the task can ask whether the new ending fits in an ordinary way or introduces the kind of semantic incongruity associated with the joke. A candidate ending is supplied along with the setup. The system’s job is to judge that pair, so an item can test recognition of a punchline’s role even though the complete original joke has been cut down to the material needed for the comparison.

The ordinary endings go through a human quality check and an automated check. For the human check, another group of three volunteers rates a random sample of 3,000 generated endings. The rating dimensions concern meaning, correctness, and readability. The authors use Krippendorff’s alpha, a measure of agreement among raters, to check the consistency of the assessments. They report regenerating endings in cases of disputed ratings with agreement below 0.7 and when the rating for an ending falls below 0.85. These rules matter because a visibly broken continuation could give the detection system a cue unrelated to the intended contrast between an ordinary ending and a punchline.

The automated check uses SimCSE to assess [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/). It compares the two endings on their own and then compares the two versions of the complete setup–ending pair. The paper describes the combined score as an average.

```
s = mean(s₁, s₂)
```

Here `s` is the combined similarity used to screen a generated ending. `s₁` is the similarity between the generated ordinary ending and the annotated punchline. `s₂` is the similarity between the setup paired with the original punchline and the same setup paired with the generated ending. `mean` gives the two scores equal weight. Each comparison provides a different context for evaluating resemblance. The first looks directly at what changed. The second takes the preceding passage into account. The authors report regenerating endings whose combined score falls below 0.85.

There are two distinct uses of similarity in the study. The score used for screening asks whether the generated alternative stays sufficiently close to the original at the end of the construction process. The score later used by the detector is derived from representations of the setup and the supplied ending and is trained for the prediction task. A candidate can be relevant enough to pass the construction check while still playing a different role within the story. The method relies on that distinction. Generated examples have to be plausible continuations before their degree of incongruity can be a meaningful part of the comparison.

#### From input to task prediction

For recognition, type, and level, the authors frame the prediction as text classification. A system represents the passage and a task output assigns it to one of the available categories. The three tasks share the broad form of the input but differ in their label spaces. A recognition decision answers whether the passage is humorous. A type decision chooses a mechanism for a humorous passage, and a level decision chooses a strength label. Training is carried out for the corresponding sub-dataset, so the evidence obtained by fine-tuning pertains to the label the system was trained to predict.

Punchline detection is treated as text matching. The method uses sentence-level embeddings, vectors that represent pieces of text for comparison. Its training objective is online contrastive loss, which uses labeled examples to shape the distinction between pairs in the representation space. The authors say this objective performed better in their experiments than the contrastive loss they considered as an alternative. They give the detector a decision threshold of 0.5. A similarity above 0.5 is classified as an ordinary ending. A score at or below 0.5 is classified as a punchline. The direction reflects the study’s premise that the punchline introduces a departure from the preceding context.

The paper applies pretrained systems directly in a zero-shot condition and adapts them with the labeled humor data in the fine-tuned condition. Here *zero-shot* means that the system has received no training on the specific humor task before evaluation. The stages answer different questions even when they use the same label. A direct evaluation asks how well the pretrained system can express the decision as set up by the authors. Task training provides examples of which distinctions count in the dataset and a predictive objective tied to them. The paper assigns a separate set of comparisons to the effect of supplementing the input with additional information.

#### Representing pronunciation and other knowledge

The authors test a general resource, the Tencent AI Lab Embedding Corpus, and a commonsense resource, ConceptNet. They use vector representations from these resources as possible additions to the system’s existing representation. The linguistic resource is constructed from pinyin. Its purpose is to let the system compare pronunciations for characters that may have different written forms and meanings. This is especially relevant to the paper’s harmonic category, where the relationship between expressions can be easy to hear even when it is less obvious from the characters alone.

For the pinyin representation, pypinyin produces a pronunciation with a tone for each Chinese character. The authors represent the tones with special tokens, following an idea from ChineseBERT. For a character with more than one pronunciation, they choose the first pronunciation returned by the procedure. The input pinyin sequence has a maximum length of 8, and short sequences are padded with a hyphen. A convolutional neural network, or CNN, then extracts features from the sequence. Max pooling retains the strongest activation as it summarizes those features. The paper expresses the transformation as follows.

```
Embₚᵢₙᵧᵢₙ = Maxpool(CNN(pypinyin(Seqᵢₙ)))
```

`Seqᵢₙ` is the input sequence that contains the Chinese characters. `pypinyin` maps that input to the pinyin used for the pronunciation features, with the choices about tone, pronunciation, and padding described above. `CNN` is the convolutional network that processes the resulting representation. `Maxpool` is the maximum-pooling operation on its features. `Embₚᵢₙᵧᵢₙ` is the resulting pinyin embedding. The nesting shows the processing order. Pronunciation is obtained first, the network extracts features from it, and pooling summarizes the features for use in the knowledge-enhanced system.

Before fusion, the authors use a fully connected layer to aggregate a knowledge representation across its relevant input dimension. For a word, this is its token dimension. For pinyin, it is the letter dimension. A token is a unit supplied to the text system, and a word can be represented as a sequence of these units. The normalized knowledge embedding in the equations is the output of this aggregation. The paper describes two ways of adding it to a BERT-style system. The main architectural question is where the knowledge enters, before the text is processed or after a sentence representation has been formed.

#### Adding knowledge at the input or at the output

In the paper’s implicit method, the normalized knowledge representation is included in the input embedding. BERT’s usual input components capture the identity of the text unit, its segment, and its position. The added vector mixes the external representation with those components before the pretrained network processes the sequence.

```
Embᵢₙ = Emb_word + Emb_seg + Emb_pos + Emb̄ₖ
```

`Embᵢₙ` is the combined input embedding. `Emb_word` is the word embedding, `Emb_seg` carries the segment information, and `Emb_pos` carries the position information. `Emb̄ₖ` denotes the normalized embedding from the external knowledge source, with `k` referring to that knowledge. Each plus sign denotes vector addition. The sum places the extra information into the representation that will pass through the pretrained network.

```
Embₒᵤₜ = PLM(Embᵢₙ)
```

`PLM` denotes the operation of the pretrained language system on the input. `Embᵢₙ` is the combined embedding just defined, including the knowledge vector in the implicit method. `Embₒᵤₜ` is the resulting output embedding used for prediction. This placement gives the system access to the extra information while it forms its contextual representation of the text.

```
y = W × Embₒᵤₜ + b
```

`y` is the output of the prediction layer. `W` is its trainable weight parameter, `×` denotes multiplication of that parameter by the output embedding `Embₒᵤₜ`, and `b` is the trainable bias added to the result. The paper uses the same prediction equation for the explicit method. The difference between the methods lies in which steps construct `Embₒᵤₜ`.

In explicit fusion, the input to the pretrained system uses the ordinary text components. The network forms a sentence embedding before the external knowledge is added. In the BERT-style example, the sentence representation is taken from the embedding associated with the special `[CLS]` marker, which is used to represent the input at sentence level.

```
Embᵢₙ = Emb_word + Emb_seg + Emb_pos
```

`Embᵢₙ` is the input embedding in the explicit configuration. `Emb_word`, `Emb_seg`, and `Emb_pos` are the word, segment, and position embeddings. The plus signs again denote vector addition. The normalized knowledge representation enters in a later step.

```
Embₛₑₙ = PLM(Embᵢₙ)
```

`Embₛₑₙ` is the sentence embedding. `PLM` denotes the pretrained system that forms this representation, and `Embᵢₙ` is the text input embedding to that system. This representation is produced before the fusion layer adds information from the external source.

```
Embₒᵤₜ = Embₛₑₙ + Emb̄ₖ
```

`Embₒᵤₜ` is the fused representation supplied to the prediction layer. `Embₛₑₙ` is the sentence embedding and `Emb̄ₖ` is the normalized knowledge embedding. The plus sign denotes addition of the two vectors. The prediction equation then applies `W` and `b` to this fused output. In the pinyin experiment, this placement gives the prediction layer a pronunciation representation alongside the representation already formed from the text.

The formulas specify the position of the external information and the operation used to combine it with text. They also explain what the implicit and explicit comparison can test. The same kind of information can be available at different points in the computation. Under implicit embedding it travels through the network as part of the original input. Under explicit fusion it enters close to the prediction layer. The comparison can show that placement matters in the tested setup. Determining what information survives each layer would require a different analysis from measuring the final labels.

#### Finding and testing clues

The authors use Captum for two kinds of analysis. The first derives saliency from gradients. A gradient measures how a small change in an input representation would change the output being examined. The authors take differentiable token embeddings as input, aggregate the gradients with L2 normalization, and use Input X Gradient. In their description, this multiplies the gradient by the normalized input embedding to sharpen the saliency scores. A visual display then makes the relative importance of tokens visible. The analysis looks for words or characters that a reader could plausibly connect to a correct decision, as well as markers that receive attention without an evident role in the joke.

The second analysis changes the input. To examine whether highly ranked elements have an effect on decisions, the authors mask the top three salient words, excluding `[SEP]`, the separator marker. They then measure the change in accuracy. Masking replaces the selected material with a special marker and leaves the rest of the example available. The comparison gives a behavioral check on the ranking. If a predictor relies on the highlighted material, suppressing several highly ranked elements should impair its decisions on at least some of the examples. The effect still depends on what the masking operation does to the rest of the input.

For a separate stability check, the authors append random material to the text and compare changes in predictions with changes in saliency. They use Pearson and Spearman correlations. Pearson concerns a linear relationship between numerical changes. Spearman concerns their relationship in rank order. The intended question is whether the saliency changes track changes in the decision when the input is perturbed. This test concerns correspondence between two kinds of change. The masking test concerns what happens when highlighted evidence is removed. The individual saliency examples provide another kind of evidence by showing what the highlighted material means in context.

### Experiments and results

#### Systems, splits, and measurement

The text-classification experiments use base and large versions of BERT, RoBERTa, and CPT. The authors also include the base and large comparisons for BART and T5. For punchline detection they use base and large versions of simCSE-BERT and simCSE-RoBERTa, which they select for text matching. These choices let the paper compare task settings across several pretrained families. The architecture used for classification and the sentence representations used for detection serve different experimental roles, so the averages for the tasks describe their respective groups of systems.

For every humor sub-dataset, the training set gets seven parts and the development set gets three. The authors downsample both sets to balance the number of examples across classes. That matters when reading the accuracy figures. The score represents the percentage of correctly classified examples under a balanced evaluation, with the classes selected and labeled as part of the dataset construction. The development split provides the figures for comparing the zero-shot, fine-tuned, and knowledge-enhanced settings. Accuracy gives a common form for reporting all the tasks, although the number and meaning of the available labels differ.

The experiments use PyTorch in Python and run on an RTX 3090 GPU and a TPU on Google Colab. The reported sequence length is 200, the initial learning rate is 2e-5, and batch sizes range from 4 to 32 according to available memory. The authors use early stopping and report 20 epochs in their setup. Those are the general training settings. The parts of the experiment that bear most directly on the paper’s main question are the matched task definitions, the use of labeled training data in the fine-tuned conditions, and the repeated evaluation of each condition on the corresponding development data.

#### What changes with task-specific training

On the humor recognition development set, the zero-shot systems average 54.98% accuracy. On the type and level development sets, their corresponding averages are 33.77% and 33.32%. Punchline detection averages 49.96% on its development set. These values are close to what the balanced label spaces make possible with uninformative predictions. The authors interpret them as weak performance in their direct evaluation. The results concern the particular inputs, outputs, and original systems tested. They supply the baseline for asking what the same task definitions yield once the systems receive labeled humor examples.

Fine-tuning improves average development-set accuracy for all the tasks. Relative to the corresponding zero-shot result, the paper reports an improvement of 68.67% for recognition, 72.64% for type classification, 40.87% for level classification, and 91.89% for punchline detection. These numbers measure relative increases. They are distinct from the accuracy percentages for the fine-tuned settings. On humor recognition the fine-tuned average is 92.73% accuracy, and the paper reports average accuracy over 90% for punchline detection as well. A large relative gain in type classification starts from a lower baseline and describes a different level of final performance.

Zero-shot and fine-tuned accuracy on the Chinese humor recognition development set Task-specific training substantially improves recognition of humorous passages.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Zero-shot | 54.98 |
| Fine-tuned (this paper) | 92.73 |

The task definitions help explain how to read this pattern. Recognition asks for a broad distinction between passages, while the punchline comparison gives the system an annotated setup and a choice about the role of one candidate ending. Type classification asks it to distinguish mechanisms within humorous writing. Level classification asks it to recover an assigned degree of funniness. Those latter judgments remain less successful in the experiment. The results establish a difference in measured performance within this benchmark. The tasks also have different label spaces and data construction procedures, so the scores by themselves give an incomplete account of what makes one judgment harder.

#### What changes with explicit pinyin fusion

The knowledge-enhanced condition reported numerically adds pinyin by explicit fusion during fine-tuning. Compared with zero-shot accuracy on the same development sets, the authors report relative improvements of 70.78% for recognition, 77.47% for type classification, 44.07% for level classification, and 94.63% for punchline detection. Each of these comparisons uses the unadapted condition as its reference. The gain attributable to the change from ordinary fine-tuning to pinyin-enhanced fine-tuning is therefore read by comparing the two fine-tuned conditions that share that reference. Task training accounts for the larger change in the reported comparisons.

Relative accuracy improvement on the Chinese humor type development set Explicit pinyin fusion improves on ordinary fine-tuning for humor type classification.

**The numbers**

| System or setting | relative accuracy improvement over zero-shot % |
| --- | --- |
| Fine-tuned | 72.64 |
| Fine-tuned with explicit pinyin fusion (this paper) | 77.47 |

Pronunciation supplies a plausible route to better judgments about harmonic humor, where similar sounds link contrasting meanings. The quantitative type-classification result is an aggregate over the task’s categories. It shows better performance with pinyin in that condition while leaving the contribution for each mechanism unresolved. The gains on recognition, level, and punchline detection similarly concern their full development sets. The improvement across tasks shows that the added representation has value in the reported setup. The aggregate results leave open which particular clues account for the improvements and how frequently they do so.

#### Transfer to Chinese sentiment classification

The downstream study asks whether training on humor helps a related classification problem. It looks at [sentiment classification](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/), using four Chinese resources. The ChnSentiCorp-htl-all dataset includes over 5,000 favorable hotel reviews and over 2,000 unfavorable ones. Users contributed 4,000 favorable reviews and 8,000 unfavorable ones to the Waimai-10k dataset. Online-shopping-10-cats has 30,000 positive and 30,000 negative shopping comments. Weibo-senti-100k has about 50,000 comments of each sentiment. These quantities describe the datasets, and the paper reports downstream classification accuracy as the outcome.

For this experiment, the authors start with BERT already trained on the humor collection, including all its sub-datasets, and fine-tune it for the sentiment tasks. Their comparison points are BERT baselines taken from published studies on the corresponding datasets. The authors report small improvements after humor training. They interpret this as evidence of some overlap between the learned cues for humor and those useful for sentiment. The experiments are consistent with that account, especially given the sentiment-bearing words that appear in the recognition analysis. Since the baseline figures come from earlier studies, the comparison gives less control over differences in training conditions than a paired run within one setup would provide.

The authors also report no further downstream improvement when external knowledge is added. Pinyin can help when the target depends on how expressions sound, as it does in some of the humor data. The sentiment tasks instead ask whether the overall assessment in a text is positive or negative. The transfer result is therefore narrower than the main humor result. It concerns the marginal value of the knowledge additions on the sentiment datasets and conditions the authors studied. The paper reports the direction of the downstream findings without giving numerical accuracy values in its discussion of those comparisons.

### What the ablations show

#### The placement and choice of additional knowledge

The comparison between ordinary fine-tuning and pinyin-enhanced fine-tuning changes the information available to the prediction layer. The reported benefit occurs when pronunciation is added by explicit fusion. The authors say that implicit pinyin embedding and the other knowledge conditions failed to improve performance across all four tasks. They omit the detailed scores for those variants. The positive result identifies the configuration that gave the most consistent reported gains. The omitted cells leave the size and direction of each unsuccessful variant’s effect on individual tasks unknown.

The paper proposes an architectural explanation. By adding a normalized pronunciation representation near the prediction layer, explicit fusion may preserve useful signals that are harder to exploit when that representation is mixed into the input. This is an interpretation of the comparison. The experiment measures the resulting accuracy and gives a reason to investigate the point of entry. It does not trace the fate of an individual pronunciation feature through the network. Both methods include a knowledge vector, so the comparison is more informative about where to add it under the tested scheme than a comparison between a system with pinyin and a system with text alone.

For the general and commonsense resources, the authors suggest that some of the information may overlap with material already encountered during pretraining. They also suggest that available knowledge can miss the specific connection needed for a joke. Their cross-language wordplay example resembles the sound of *eleven* in a Chinese phrase, then extends the resemblance by analogy to expressions that can be glossed as *two-leven* and *three-leven*. Recovering the joke requires noticing the sound correspondence and following the invented pattern across the expressions. The example makes their hypothesis concrete. A resource can contain broad factual or commonsense associations and still lack a usable representation of the connection made in a particular joke.

The authors further suggest that combining different knowledge sources may blur features that are useful separately. They treat that as one possible explanation for the disappointing results with other knowledge additions. The reported setup establishes that the tested representations and fusion methods failed to yield a uniform benefit across the tasks. The explanations about redundancy, missing inference paths, and feature interference remain proposed reasons. The results leave room for differences in how a resource is represented, which examples it applies to, and where it enters the prediction process.

#### Removing the highest-ranked clues

The clearest numerical perturbation result is for humor recognition. Before fine-tuning, masking the three highest-ranked salient words, with `[SEP]` excluded from selection, changes average development-set accuracy from 54.98% to 53.61%. After fine-tuning, the corresponding mask changes average accuracy from 92.73% to 53.58%. The operation is the same in both comparisons, while the original predictions and the saliency rankings come from different training conditions. The large drop after fine-tuning gives evidence that the highly ranked elements carry information the trained predictor uses on these recognition examples.

The small zero-shot change has a different interpretation because initial accuracy is already low. The paper’s visual examples show high saliency for special markers such as `[CLS]` and `[UNK]`, as well as for punctuation. When a weak predictor assigns importance to those elements, its ranking offers little apparent explanation of what makes the underlying passage humorous. Masking has relatively little effect on its already weak recognition score. The authors report similar qualitative observations for the other zero-shot tasks. Together, the performance and visual evidence support their conclusion that the direct evaluations reveal little ability to identify humor under the chosen setup.

In fine-tuned recognition, the visual examples sometimes give higher saliency to meaningful words connected with sentiment, such as words glossed as *shout* and *demon*. Their prominence makes more sense to a reader than the prominence of a special marker. Such words can indicate the emotional shape or register of a passage. Whether they account for its humor depends on their use in that example. A predictor could use them as reliable indicators of the dataset label even in cases where a reader’s account of the joke would center on a different relationship. Saliency helps locate evidence worth investigating in the text.

The controlled comparison shows that removing the selected material matters to the trained predictor. Its interpretation is strongest at the level of input dependence. The disappearance of several salient elements makes the classification harder. The reported comparison leaves open how the same system would respond to masking equally many low-ranked or randomly selected elements, and how much of the effect comes from the unfamiliar masked input itself. These distinctions matter when using the result to evaluate the quality of the saliency ranking, as opposed to using it to show that the classifier is sensitive to removal of information.

#### Connecting clues to humor mechanisms

The type examples illustrate how a clue can be tied more directly to the category. For a harmonic passage, the paper highlights 税, meaning tax, and 睡, meaning sleep. The example represents both with the pinyin *shui*. Their prominence is consistent with a classification based on similar sounds and different meanings. For an ambiguous passage the authors draw attention to words glossed as *drug* and *use*, and for an incongruous one they point to words concerning an examination and English. They conjecture that the systems pick up relationships among the highlighted words that help them identify the type.

The punchline example makes use of the division between context and ending. It highlights 校, associated with school, in the setup and 孝, associated with filial conduct, in the ending. The example gives *xiao* for both. A reader can connect the two highlighted characters across the input boundary, so the saliency pattern is consistent with the sound-based link used in the joke. The paper also observes examples with less apparent cues and with punctuation among the salient elements. It mentions weaker performance under stricter thresholds written as 0.8/0.2, without giving a numerical breakdown for that comparison in its discussion.

These examples give a qualitative account of where the trained systems sometimes look, using visualizations from BERT-base. They also show why it helps to ask which task produced a map. A sentiment-bearing word can assist broad recognition. A sound-alike pair provides more specific evidence for a mechanism, and a pair spanning the setup and ending is relevant to the role of the punchline. A saliency display ranks elements within an input. Figuring out whether their relationship corresponds to a reader’s explanation requires examining what those elements do together.

#### Appending random material

For the second perturbation test, the authors append material such as the Chinese character for *I* and compare changes in predictions with changes in the saliency scores. They report Pearson and Spearman correlation p-values, respectively, of 0.0087 and 0.0010 for zero-shot evaluation. For fine-tuning the corresponding p-values are 0.0086 and 0.0060, and for knowledge-enhanced fine-tuning they are 0.0080 and 0.0064. The paper notes that all fall below 0.05 and interprets the results as supporting a connection between the predictions and the saliency maps across training conditions.

The p-values address evidence for an association under the tests. The size and direction of an association are properties of the correlation coefficients, and the magnitude of the input perturbation’s effect is a separate measurement still. A prediction and its saliency map could both change appreciably after extra material is appended. The reported significance results therefore support a narrower reading than stability in the ordinary sense of leaving the original explanation intact. Combined with the masking comparison and the visual examples, they show several ways to examine the relation between the representation of a clue and the resulting decision.

### Limitations

#### Limits identified by the authors

The authors limit the main investigation to humor understanding tasks. They leave the ability to generate humor for future study. CPM’s role in the dataset illustrates the boundary. The generator supplies alternatives that serve as ordinary endings after quality checks. Producing those alternatives is part of building the comparison, while the evaluation asks other systems to judge the supplied endings. The study offers evidence about recognition, classification, and matching under its task definitions. It leaves open how the same systems would produce a joke appropriate to a new situation or respond humorously in an exchange.

The authors also say that the external resources provide relatively little of the background needed for humor. They propose gathering more cultural knowledge in future work. That proposal follows from the distinction between having a general source of facts and having the information needed to reconstruct a joke’s particular inference. Their pinyin experiment supplies pronunciation in a form the system can use. It addresses one identifiable input to some kinds of humor. The experiments leave cultural context, complex background knowledge, and the chains of interpretation involved in some examples as open problems.

The interpretation analysis leads the authors to a qualified conclusion about agreement with human intuition. Some fine-tuned clues resemble evidence a reader would identify. Others remain obscure or assign prominence to punctuation. The paper also leaves out detailed results for knowledge conditions that lacked a consistent benefit across all the tasks. This limits the precision of any account of the unsuccessful settings. Even when the authors can name plausible reasons for those outcomes, the missing comparisons make it difficult to say which reason applies to which knowledge source or variant.

#### Limits apparent from the design

The evaluation reports accuracy on development sets created and balanced from the assembled humor data. It gives evidence for this selection of text sources, labels, and evaluation procedures. Balance makes the task comparisons easier to read, while a naturally encountered stream of passages could have very different class frequencies. The procedure also removes recognition examples with disputed labels and punchline examples with tied votes. That makes the retained examples easier to define consistently. Cases where people disagree about whether a passage is funny, or about where its payoff occurs, are less represented by the resulting evaluation.

The ordinary endings in punchline detection have a different origin from the positive endings. An ordinary ending comes from a generator, while a punchline comes from a human-selected sentence in a humorous passage. Length matching and the human and automated quality checks narrow some possible cues. Differences in phrasing or regularity could still help a system tell the two sources apart. A score above 90% on this constructed task establishes strong discrimination of the labeled pairs. How much of that performance transfers to pairs where both kinds of ending are drawn from naturally occurring text remains an open question.

Similarity also serves as a deliberately simplified signal for punchline detection. An ordinary continuation can introduce new information, and a punchline can reuse words and entities from its setup while abruptly changing their interpretation. The threshold provides a consistent decision rule for the experiment. The learned representations may exploit distinctions that separate the two groups in these data. A correct decision under that rule gives limited information about how the system resolved an ambiguity, inferred a speaker’s intent, or connected an ending with a more distant part of a narrative.

For type and level classification, accuracy measures recovery of a single assigned label. The type task places each example in one category even though a passage could plausibly exploit more than one device. The level task treats weak, medium, and strong as discrete choices. With ordinary accuracy, an adjacent-level error and an error between the weakest and strongest labels both count as incorrect. The metric tells readers how often the selected label is recovered. It cannot show whether the system generally preserves the order of funniness judgments or how it behaves when annotators disagree about a borderline passage.

The zero-shot results are similarly specific to the evaluation interface. The paper identifies the systems and tasks and reports the resulting scores, while providing limited detail about how every unadapted text system was made to choose among the humor labels. There is room for a gap between what a pretrained representation contains and what a particular direct decision procedure can retrieve from it. The large improvement after training gives clear evidence about learning the labeled tasks. Its interpretation as a change in general humor understanding remains bounded by those tasks and the methods used to elicit their answers.

Finally, the pinyin construction makes a fixed pronunciation choice for characters that can be read in several ways. Context can matter precisely when a humorous expression exploits a contrast between possible readings, so that choice may discard pertinent information on some examples. The cross-language example in the paper also depends on an analogy beyond a local similarity in sound. The aggregate gains establish value for the representation used, while leaving the distribution of gains across subtypes and individual examples unresolved. The saliency illustrations add plausible cases of relevant evidence. A systematic measure of agreement between human-marked clues and the saliency rankings would be needed to estimate how often that correspondence holds.

### What came after

Later work cites the paper in connection with neighboring questions about context and sound in Chinese. The paper’s punchline task asks readers to see how an ending changes the interpretation of a setup. A broader question about conversation is how an utterance conveys meaning through what its speakers can infer from the exchange. Humor and that kind of inference can occur together, and they support different evaluation questions. Identifying the payoff of a prepared joke and recovering what a character means in a particular conversational scene each put weight on the relationship between an utterance and its context. That latter question belongs to the study of [implicature](https://md.research.elamur.ai/free/en/concepts/implicature/).

[Do Large Language Models Understand Conversational Implicature?](https://md.research.elamur.ai/free/en/papers/yue-2024-do-large-language-models-understand/) is a 2024 study framed around a Chinese sitcom. Its stated object of study is conversational implicature, with the sitcom providing the setting. The connection to the humor paper is the problem of evaluating interpretation in context. The humor study uses context to judge whether a supplied ending plays the role of a punchline. The sitcom study’s title places the emphasis on implied conversational meaning. The citation connects these questions, while the stated scope of the later study leaves its relationship to the earlier dataset and method unspecified.

[Phun-Bench](https://md.research.elamur.ai/free/en/papers/yue-2026-phun-bench-evaluating-llms-phonological/) is a 2026 benchmark study of phonological understanding in Chinese. Pronunciation has a different role in its stated objective. In the humor paper, a pinyin representation is an additional source of evidence that can help with labels such as humor type and punchline status. In Phun-Bench, the ability to understand sound structure is itself the subject of evaluation. This makes the two scopes complementary. A classification gain with explicit pinyin fusion shows that pronunciation can help a broader decision. An evaluation centered on phonology asks directly what sound-related understanding a system can demonstrate.

The two citing studies point to distinct aspects of the original question. Conversational implicature concerns what can be inferred from an exchange beyond the words considered in isolation. Phonological understanding concerns the sound structure that a written expression can evoke. The humor paper brings such ingredients together in practical decisions about Chinese passages, while its strongest evidence concerns the labels, ending comparisons, and knowledge additions it actually evaluates. The neighboring studies give context and pronunciation separate places in the research agenda, with their own objects of measurement.

## Cite

Cite as Yuyan Chen, Zhixu Li, Jiaqing Liang, Yanghua Xiao, Bang Liu and Yunwen Chen. 2023. Can Pre-trained Language Models Understand Chinese Humor?. arXiv:2407.04105.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1145/3539597.3570431](https://doi.org/10.1145/3539597.3570431) · [arXiv 2407.04105](https://arxiv.org/abs/2407.04105)

```bibtex
@misc{chen2023can,
  title = {{Can Pre-trained Language Models Understand Chinese Humor?}},
  author = {Yuyan Chen, Zhixu Li, Jiaqing Liang, Yanghua Xiao, Bang Liu and Yunwen Chen},
  year = {2023},
  doi = {10.1145/3539597.3570431},
  eprint = {2407.04105},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1145/3539597.3570431}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
