---
title: "C-Net: Contextual Network for Sarcasm Detection — Jena 2020"
description: "The paper tackles sarcasm detection in online conversations, where a reply often reads as sarcastic only in light of the preceding dialogue."
authors: ["Amit Kumar Jena", "Aman Sinha", "Rohit Agarwal"]
year: 2020
venue: "Proceedings of the Second Workshop on Figurative Language Processing"
source: "https://aclanthology.org/2020.figlang-1.8/"
doi: "10.18653/v1/2020.figlang-1.8"
licence: "CC BY 4.0 (ACL Anthology)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/papers/jena-2020-c-net-contextual-network-sarcasm/"
---
[Elamur Research](https://md.research.elamur.ai/) · [this page in HTML](https://research.elamur.ai/free/papers/jena-2020-c-net-contextual-network-sarcasm/)

[home](https://md.research.elamur.ai/) / [papers](https://md.research.elamur.ai/free/papers/) / [2020](https://md.research.elamur.ai/free/papers/2020/) / C-Net: Contextual Network for Sarcasm Detection

# C-Net: Contextual Network for Sarcasm Detection

**Authors:** Amit Kumar Jena, Aman Sinha, Rohit Agarwal · **Year:** 2020 · **Venue:** Proceedings of the Second Workshop on Figurative Language Processing · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

**Links:** [Publisher's page](https://aclanthology.org/2020.figlang-1.8/) · [PDF](https://aclanthology.org/2020.figlang-1.8.pdf) · [DOI 10.18653/v1/2020.figlang-1.8](https://doi.org/10.18653/v1/2020.figlang-1.8) · [OpenAlex](https://openalex.org/W3045790525)

**Citations:** 32 citations (openalex-snapshot · 2026-10-14) · [6](#cited-by) in our library, of the 140673 papers whose bibliographies we read

## Summary
The paper tackles sarcasm detection in online conversations, where a reply often reads as sarcastic only in light of the preceding dialogue. It was the authors' entry to the Sarcasm Detection shared task at the Second Workshop on Figurative Language Processing (ACL 2020). The task used balanced Twitter and Reddit datasets in which every response comes with an ordered history of earlier turns.

The authors first built response-only baselines. These included classical classifiers, RNN/Bi-LSTM, DeepMoji and ELMo features, and fine-tuned BERT, XLNet and RoBERTa. They then proposed C-Net. In C-Net, each context sentence inherits the response's label as a pseudo-label, and a separate BERT (base-uncased) model is trained per position. The per-model sarcasm probabilities are then merged in a fusion layer, using either logistic regression or Simple Exponential Smoothing (SES). SES assigns progressively smaller weights to turns further back in the conversation.

C-Net with SES reached the best Twitter score (F1 0.750). On Reddit, it scored 0.663, slightly behind response-only transformers. The results suggest that context can help, though not uniformly across platforms.

## Key points
- **Data:** Twitter has 5000 training and 1800 test examples, and Reddit has 4400 training and 1800 test examples. Context length per response varies from 2 to 20 turns.
- **Best configuration:** C-Net+SES uses three BERT models (response, latest context turn, second-latest turn). It scored F1 0.750 on Twitter and 0.663 on Reddit; C-Net+LR scored 0.747 and 0.650.
- **Response-only baselines:** BERT scored 0.733 on Twitter and 0.671 on Reddit, while RoBERTa was best on Reddit with 0.678.
- **Full-context attempt:** a Time-stamping variant used position markers on all context sentences. It performed worse, scoring 0.710 on Twitter and 0.500 on Reddit.
- **SES smoothing factor:** α was tuned by grid search, giving 0.395 for Twitter and 0.2 for Reddit. Training used fastai with gradual unfreezing and slanted triangular learning rates.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

Fields: [Linguistics & languages](https://md.research.elamur.ai/free/shelves/linguistics/)

## Cited by

Cited by

6 papers of our library cite it (of the 140673 whose bibliographies we read); 2 of them have a page here, 4 not yet.

- [A Report on the 2020 Sarcasm Detection Shared Task](https://md.research.elamur.ai/free/papers/ghosh-2020-report-2020-sarcasm-detection-shared/)
- [Multi-Modal Sarcasm Detection via Cross-Modal Graph Convolutional Network](https://md.research.elamur.ai/free/papers/liang-2022-multi-modal-sarcasm-detection-cross/)

## Cite

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{jena2020c,
  title = {{C-Net: Contextual Network for Sarcasm Detection}},
  author = {Jena, Amit Kumar and Sinha, Aman and Agarwal, Rohit},
  booktitle = {Proceedings of the Second Workshop on Figurative Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.figlang-1.8},
  url = {https://doi.org/10.18653/v1/2020.figlang-1.8}
}
```

- [← previous Building a Hebrew Semantic Role Labeling Lexical Resource from Parallel Movie Subtitles](https://md.research.elamur.ai/free/papers/lingbulk-2020-eyal-building-hebrew-semantic-role-labeling/)
- [next → CAMeL Tools: An Open Source Python Toolkit for Arabic Natural Language Processing](https://md.research.elamur.ai/free/papers/obeid-2020-camel-tools-open-source-python/)
- [↑ back to papers of 2020](https://md.research.elamur.ai/free/papers/2020/)

## References

21 references, 9 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. David Bamman and Noah A. Smith. 2015. Contextualized sarcasm detection on twitter. In ICWSM. [find](https://scholar.google.com/scholar?q=David+Bamman+and+Noah+A%2E+Smith%2E+2015%2E+Contextualized+sarcasm+detection+on+twitter%2E+In+ICWSM%2E)
2. Roger J. Kreuz and Gina M. Caucci. 2007. Lexical influences on the perception of sarcasm. In Proceedings of the Workshop on Computational Approaches to Figurative Language, FigLanguages ’07, page 1–4, USA. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Roger+J%2E+Kreuz+and+Gina+M%2E+Caucci%2E+2007%2E+Lexical+influences+on+the+perception+of+sarcasm%2E+In+Proceedings+of+the+Workshop+on+Computational+Approaches+to+Figurative+Language%2C+FigLanguages+%E2%80%9907%2C+page+1%E2%80%934%2C) [our card](https://md.research.elamur.ai/free/papers/kreuz-2007-lexical-influences-perception-sarcasm/)
3. Dmitry Davidov, Oren Tsur, and Ari Rappoport. 2010. Semi-supervised recognition of sarcastic sentences in twitter and amazon. In Proceedings of the Fourteenth Conference on Computational Natural Language Learning, CoNLL ’10, page 107–116, USA. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Dmitry+Davidov%2C+Oren+Tsur%2C+and+Ari+Rappoport%2E+2010%2E+Semi%2Dsupervised+recognition+of+sarcastic+sentences+in+twitter+and+amazon%2E+In+Proceedings+of+the+Fourteenth+Conference+on+Computational+Natural+Langu) [our card](https://md.research.elamur.ai/free/papers/davidov-2010-semi-supervised-recognition-sarcasm-twitter/)
4. Peng Liu, Wei Chen, Gaoyan Ou, Tengjiao Wang, Dongqing Yang, and Kai Lei. 2014. Sarcasm detection in social media based on imbalanced classification. In Web-Age Information Management, pages 459–471, Cham. Springer International Publishing. [find](https://scholar.google.com/scholar?q=Peng+Liu%2C+Wei+Chen%2C+Gaoyan+Ou%2C+Tengjiao+Wang%2C+Dongqing+Yang%2C+and+Kai+Lei%2E+2014%2E+Sarcasm+detection+in+social+media+based+on+imbalanced+classification%2E+In+Web%2DAge+Information+Management%2C+pages+459%E2%80%93471%2C+)
5. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. ArXiv, abs/1810.04805. [↗](https://arxiv.org/abs/1810.04805)
6. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692. [↗](https://arxiv.org/abs/1907.11692)
7. Bjarke Felbo, Alan Mislove, Anders Søgaard, Iyad Rahwan, and Sune Lehmann. 2017. Using millions of emoji occurrences to learn any-domain representations for detecting sentiment, emotion and sarcasm. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 1615–1625, Copenhagen, Denmark. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Bjarke+Felbo%2C+Alan+Mislove%2C+Anders+S%C3%B8gaard%2C+Iyad+Rahwan%2C+and+Sune+Lehmann%2E+2017%2E+Using+millions+of+emoji+occurrences+to+learn+any%2Ddomain+representations+for+detecting+sentiment%2C+emotion+and+sarcasm%2E+I) [our card](https://md.research.elamur.ai/free/papers/felbo-2017-millions-emoji-occurrences-learn-any/)
8. Diana Maynard and Mark Greenwood. 2014. Who cares about sarcastic tweets? investigating the impact of sarcasm on sentiment analysis. In Proceedings of the Ninth International Conference on Language Resources and Evaluation (LREC’14), pages 4238–4243, Reykjavik, Iceland. European Language Resources Association (ELRA). [↗](https://doi.org/10.63317/2ios4bdd5xas) [our card](https://md.research.elamur.ai/free/papers/maynard-2014-who-cares-about-sarcastic-tweets/)
9. Debanjan Ghosh, Alexander R. Fabbri, and Smaranda Muresan. 2018. Sarcasm analysis using conversation context. Computational Linguistics, 44(4):755– 792. [↗](https://doi.org/10.1162/coli_a_00336) [our card](https://md.research.elamur.ai/free/papers/ghosh-2018-sarcasm-analysis-conversation-context/)
10. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pier-ric Cistac, Tim Rault, R’emi Louf, Morgan Funtow-icz, and Jamie Brew. 2019. Huggingface’s transformers: State-of-the-art natural language processing. ArXiv, abs/1910.03771. [↗](https://arxiv.org/abs/1910.03771) [our card](https://md.research.elamur.ai/free/papers/wolf-2020-transformers-state-art-natural-language/)
11. Matthew Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018. Deep contextualized word representations. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 2227–2237, New Orleans, Louisiana. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Matthew+Peters%2C+Mark+Neumann%2C+Mohit+Iyyer%2C+Matt+Gardner%2C+Christopher+Clark%2C+Kenton+Lee%2C+and+Luke+Zettlemoyer%2E+2018%2E+Deep+contextualized+word+representations%2E+In+Proceedings+of+the+2018+Conference+of+t)
12. Zhilin Yang, Zihang Dai, Yiming Yang, Jaime G. Carbonell, Ruslan Salakhutdinov, and Quoc V. Le. 2019. Xlnet: Generalized autoregressive pretraining for language understanding. In NeurIPS. [↗](https://doi.org/10.48550/arxiv.1906.08237) [our card](https://md.research.elamur.ai/free/papers/yang-2019-xlnet-generalized-autoregressive-pretraining-language/)
13. Rolandos Alexandros Potamias, Georgios Siolas, and A. Stafylopatis. 2019. A transformer-based approach to irony and sarcasm detection. ArXiv, abs/1911.10401. [↗](https://arxiv.org/abs/1911.10401) [our card](https://md.research.elamur.ai/free/papers/potamias-2019-transformer-based-approach-irony-sarcasm/)
14. Ashwin Rajadesingan, Reza Zafarani, and Huan Liu. 2015. Sarcasm detection on twitter: A behavioral modeling approach. In Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, WSDM ’15, page 97–106, New York, NY, USA. Association for Computing Machinery. [find](https://scholar.google.com/scholar?q=Ashwin+Rajadesingan%2C+Reza+Zafarani%2C+and+Huan+Liu%2E+2015%2E+Sarcasm+detection+on+twitter%3A+A+behavioral+modeling+approach%2E+In+Proceedings+of+the+Eighth+ACM+International+Conference+on+Web+Search+and+Data+M)
15. Antonio Reyes and Paolo Rosso. 2012. Making objective decisions from subjective data: Detecting irony in customer reviews. Decision Support Systems, 53:754–760. [↗](https://doi.org/10.1016/j.dss.2012.05.027)
16. Antonio Reyes, Paolo Rosso, and Tony Veale. 2013. A multidimensional approach for detecting irony in twitter. Lang. Resour. Eval., 47(1):239–268. [↗](https://doi.org/10.1007/s10579-012-9196-x)
17. Ellen Riloff, Ashequl Qadir, Prafulla Surve, Lalindra De Silva, Nathan Gilbert, and Ruihong Huang. 2013. Sarcasm as contrast between a positive sentiment and negative situation. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 704–714, Seattle, Washington, USA. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Ellen+Riloff%2C+Ashequl+Qadir%2C+Prafulla+Surve%2C+Lalindra+De+Silva%2C+Nathan+Gilbert%2C+and+Ruihong+Huang%2E+2013%2E+Sarcasm+as+contrast+between+a+positive+sentiment+and+negative+situation%2E+In+Proceedings+of+the+) [our card](https://md.research.elamur.ai/free/papers/prag-2013-riloff-sarcasm-as-contrast-between-positive/)
18. Joseph Tepperman, David Traum, and Shrikanth Narayanan. 2006. Yeah right: Sarcasm recognition for spoken dialogue systems. [find](https://scholar.google.com/scholar?q=Joseph+Tepperman%2C+David+Traum%2C+and+Shrikanth+Narayanan%2E+2006%2E+Yeah+right%3A+Sarcasm+recognition+for+spoken+dialogue+systems%2E)
19. Oren Tsur, Dmitry Davidov, and Ari Rappoport. 2010. Icwsm - a great catchy name: Semi-supervised recognition of sarcastic sentences in online product reviews. In ICWSM. [find](https://scholar.google.com/scholar?q=Oren+Tsur%2C+Dmitry+Davidov%2C+and+Ari+Rappoport%2E+2010%2E+Icwsm+%2D+a+great+catchy+name%3A+Semi%2Dsupervised+recognition+of+sarcastic+sentences+in+online+product+reviews%2E+In+ICWSM%2E)
20. Byron C. Wallace, Do Kook Choe, Laura Kertz, and Eugene Charniak. 2014. Humans require context to infer ironic intent (so computers probably do, too). In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 512–516, Baltimore, Maryland. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Byron+C%2E+Wallace%2C+Do+Kook+Choe%2C+Laura+Kertz%2C+and+Eugene+Charniak%2E+2014%2E+Humans+require+context+to+infer+ironic+intent+%28so+computers+probably+do%2C+too%29%2E+In+Proceedings+of+the+52nd+Annual+Meeting+of+the+)
21. Zelin Wang, Zhijian Wu, Ruimin Wang, and Yafeng Ren. 2015. Twitter sarcasm detection exploiting a context-based model. In Proceedings, Part I, of the 16th International Conference on Web Information Systems Engineering — WISE 2015 - Volume 9418, page 77–91, Berlin, Heidelberg. Springer-Verlag. [find](https://scholar.google.com/scholar?q=Zelin+Wang%2C+Zhijian+Wu%2C+Ruimin+Wang%2C+and+Yafeng+Ren%2E+2015%2E+Twitter+sarcasm+detection+exploiting+a+context%2Dbased+model%2E+In+Proceedings%2C+Part+I%2C+of+the+16th+International+Conference+on+Web+Information+S)
