---
title: "Sparse, Contextually Informed Models for Irony Detection:"
description: "Wallace, Choe and Charniak argue that the setting of a comment matters: the same praise of a… 25 references, cited by 32 papers here."
authors: ["Byron C. Wallace", "Do Kook Choe", "Eugene Charniak"]
year: 2015
venue: "Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)"
source: "https://aclanthology.org/P15-1100/"
doi: "10.3115/v1/p15-1100"
licence: "CC BY-NC-SA 3.0 (ACL Anthology, before 2016)"
licence_url: "https://creativecommons.org/licenses/by-nc-sa/3.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/wallace-2015-sparse-contextually-informed-models-irony/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/wallace-2015-sparse-contextually-informed-models-irony/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/page/2/) / Sparse, Contextually Informed Models for Irony Detection: Exploiting User Communities, Entities and Sentiment

# Sparse, Contextually Informed Models for Irony Detection: Exploiting User Communities, Entities and Sentiment

**Authors:** [Byron C. Wallace](https://md.research.elamur.ai/free/en/authors/byron-c-wallace/), [Do Kook Choe](https://md.research.elamur.ai/free/en/authors/do-kook-choe/) and [Eugene Charniak](https://md.research.elamur.ai/free/en/authors/eugene-charniak/) · **Year:** 2015 · **Venue:** [Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)](https://md.research.elamur.ai/free/en/venues/acl/) ([ACL 2015](https://md.research.elamur.ai/free/en/venues/acl/2015/)) · **Publisher:** [Association for Computational Linguistics](https://md.research.elamur.ai/free/en/publishers/association-for-computational-linguistics/) · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

**Links:** [Publisher's page](https://aclanthology.org/P15-1100/) · [PDF](https://aclanthology.org/P15-1100.pdf) · [DOI 10.3115/v1/p15-1100](https://doi.org/10.3115/v1/p15-1100) · [OpenAlex](https://openalex.org/W2251971374)

**Citations:** 91 citations (OpenAlex, 2026-10-14) · [32](https://md.research.elamur.ai/free/en/papers/wallace-2015-sparse-contextually-informed-models-irony/cited-by/) in our library, of the 141,840 papers whose bibliographies we read

## Summary
Sarcasm on the web is hard to spot from wording alone, yet earlier detectors mostly relied on cues inside the text, such as word counts and grammatical signals. Wallace, Choe and Charniak argue that the setting of a comment matters: the same praise of a politician may be sincere in one community and mocking in another. They use reddit comments from two polarized subreddit pairs, progressive vs conservative and atheism vs Christianity. The subreddit stands in for the author's community. They cross it with automatically extracted NNPs and inferred sentence sentiment, and they also take NNPs from the surrounding thread. These crossed features are very numerous, but only a few should be informative. To handle this, the authors train a log-loss linear model with a squared ℓ2 penalty on all weights plus separate ℓ1 penalties on the sentence-level and thread-level interaction features. The contextual features consistently raised recall with little or no loss of precision. The mixed penalty gave sparser models whose performance varied less. The authors suggest the approach applies wherever group membership shapes what a text means.

## Key points
- Data: reddit comments from two pairs of opposed communities, the political subreddits (progressive/conservative) and the religion subreddits (atheism/Christianity).
- Feature types:
  - Sentiment, from the Stanford Sentiment Analysis tool, reduced to positive vs negative/neutral.
  - Subreddit, which is observed directly.
  - NNP, taken from the Stanford Part of Speech tagger.
  - NNP+, which adds NNPs from the thread, including its title.
  - Two-way interactions (NNP × subreddit) and three-way interactions (NNP × subreddit × sentiment).
- Regularization: bag-of-words features get only the squared ℓ2 term. Interaction features from the sentence (set I) and from the thread (set T) each get their own ℓ1 term, with separate α weights. Replacing ℓ2 with ℓ1 over all weights performed very poorly.
- Results: context features improved recall at little or no precision cost. The composite penalty reduced variance in performance.
- Interpretation: weights were estimated on the full training set over 100 SGD runs and reported as means with standard deviations.
  - Political subreddits: 'obamacare' and 'president' signal irony in conservative posts, while 'freedom' and 'kenya' do so in progressive posts.
  - Religion subreddits: 'god' (0.324) signals irony in atheism and 'professor' (0.297) in Christianity.
  - Three-way features: ostensibly positive sentiment toward 'Cruz' signals irony in the conservative subreddit.

## Interesting ideas
- Irony becomes visible only when the speaker's group is crossed with the entity mentioned, since the same sentence flips meaning across communities; this frames irony as a relation between speaker stance and target rather than a lexical property.
- Seemingly positive polarity aimed at a specific entity is a strong irony cue, because sarcasm typically wraps a negative view in positive wording.
- Entities from the thread title and surrounding discussion, not just the sentence itself, carry the context needed to interpret a comment.
- A split penalty keeps dense, reliable base features under ℓ2 while forcing a huge space of combinatorial interaction features under ℓ1, so only a few survive; this yields compact, interpretable models with lower variance.
- Feature importance was reported as mean and standard deviation over 100 repeated SGD runs, with an explicit warning that rare three-way features should not be over-read.

## For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

- **I1** (frames): the irony module in prag could test whether the surface praise of an entity conflicts with the stance of the speaker's group recorded in the world, and cite that conflict as its explanation.
- **I2** (frames): implicature handling could flag a positive evaluative frame whose target the speaker is known to oppose as a candidate for ironic reversal, rather than relying on polarity words alone.
- **I3** (world): when reading a fable or a text passage, entities from the title and earlier discourse could be kept active as the backdrop for interpreting evaluative or ironic statements later on.
- **I4** (learn): when learning weights for self-induced repair rules or crossed feature templates, an ℓ1 penalty on the combinatorial part could prune most candidates and keep the surviving rules inspectable.
- **I5** (learn): evaluations of learned rules or features could be repeated across seeds, and any rule whose weight is unstable or rarely triggered could be marked as tentative.

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

## Institutions

- [Brown University](https://md.research.elamur.ai/free/en/universities/brown-university/) — University, Providence, United States · 58 works · 25,310 citations
- [The University of Texas at Austin](https://md.research.elamur.ai/free/en/universities/the-university-of-texas-at-austin/) — University, Austin, United States · 72 works · 55,722 citations

📚 Shelves (4): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 9,086 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 8,889 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 9,296 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 9,206 works

🧭 Topics (1): [😊 Sentiment & emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) · 608 works

## Cite

Cite as: Byron C. Wallace, Do Kook Choe and Eugene Charniak. 2015. Sparse, Contextually Informed Models for Irony Detection: Exploiting User Communities, Entities and Sentiment. Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

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

```bibtex
@inproceedings{wallace2015sparse,
  title = {{Sparse, Contextually Informed Models for Irony Detection: Exploiting User Communities, Entities and Sentiment}},
  author = {Byron C. Wallace, Do Kook Choe and Eugene Charniak},
  booktitle = {Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2015},
  doi = {10.3115/v1/p15-1100},
  url = {https://doi.org/10.3115/v1/p15-1100}
}
```

- [← previous Efficient Inference and Structured Learning for Semantic Role Labeling](https://md.research.elamur.ai/free/en/papers/tackstrom-2015-efficient-inference-structured-learning-semantic/)
- [next → Movie Script Summarization as Graph-based Scene Extraction](https://md.research.elamur.ai/free/en/papers/gorinski-2015-movie-script-summarization-as-graph/)
- [↑ back to papers of 2015](https://md.research.elamur.ai/free/en/papers/2015/page/2/)

## References

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

1. C Burfoot and T Baldwin. 2009. Automatic satire detection: are you having a laugh? In ACL-IJCNLP, pages 161–164. ACL. [find](https://scholar.google.com/scholar?q=C+Burfoot+and+T+Baldwin%2E+2009%2E+Automatic+satire+detection%3A+are+you+having+a+laugh%3F+In+ACL%2DIJCNLP%2C+pages+161%E2%80%93164%2E+ACL%2E)
2. P Carvalho, L Sarmento, MJ Silva, and E de Oliveira. 2009. Clues for detecting irony in user-generated contents: oh...!! it’s so easy;-). In CIKM workshop on Topic-sentiment analysis for mass opinion, pages 53–56. ACM. [find](https://scholar.google.com/scholar?q=P+Carvalho%2C+L+Sarmento%2C+MJ+Silva%2C+and+E+de+Oliveira%2E+2009%2E+Clues+for+detecting+irony+in+user%2Dgenerated+contents%3A+oh%2E%2E%2E%21%21+it%E2%80%99s+so+easy%3B%2D%29%2E+In+CIKM+workshop+on+Topic%2Dsentiment+analysis+for+mass+opinion%2C)
3. HH Clark and RJ Gerrig. 1984. On the pretense theory of irony. Journal of Experimental Psychology, 113:121–126. [↗](https://doi.org/10.1037/0096-3445.113.1.121)
4. D Davidov, O Tsur, and A Rappoport. 2010. [Semi-supervised recognition of sarcastic sentences in twitter and amazon](https://md.research.elamur.ai/free/en/papers/davidov-2010-semi-supervised-recognition-sarcasm-twitter/). Conference on Natural Language Learning (CoNLL), page 107.
5. J Eisenstein, A Ahmed, and EP Xing. 2011a. Sparse additive generative models of text. In International Conference on Machine Learning (ICML). [find](https://scholar.google.com/scholar?q=J+Eisenstein%2C+A+Ahmed%2C+and+EP+Xing%2E+2011a%2E+Sparse+additive+generative+models+of+text%2E+In+International+Conference+on+Machine+Learning+%28ICML%29%2E)
6. J Eisenstein, NA Smith, and EP Xing. 2011b. Discovering sociolinguistic associations with structured sparsity. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (ACL), pages 1365–1374. [find](https://scholar.google.com/scholar?q=J+Eisenstein%2C+NA+Smith%2C+and+EP+Xing%2E+2011b%2E+Discovering+sociolinguistic+associations+with+structured+sparsity%2E+In+Proceedings+of+the+Annual+Meeting+of+the+Association+for+Computational+Linguistics+%28AC)
7. E Filatova. 2012. [Irony and sarcasm: Corpus generation and analysis using crowdsourcing](https://md.research.elamur.ai/free/en/papers/filatova-2012-irony-sarcasm-corpus-generation-analysis/). In LREC, volume 12, pages 392–398.
8. R González-Ibáñez, S Muresan, and N Wacholder. 2011. [Identifying sarcasm in twitter: a closer look](https://md.research.elamur.ai/free/en/papers/ibanez-2011-identifying-sarcasm-twitter-closer-look/). In ACL, volume 2, pages 581–586. Citeseer.
9. HP Grice. 1975. Logic and conversation. 1975, pages 41–58. [↗](https://doi.org/10.1163/9789004368811_003)
10. T Joachims. 1998. [Text categorization with support vector machines: Learning with many relevant features](https://md.research.elamur.ai/free/en/papers/joachims-1998-text-categorization-support-vector-machines/). Springer. [↗](https://doi.org/10.17877/de290r-5097)
11. S Lukin and M Walker. 2013. [Really? well. apparently bootstrapping improves the performance of sarcasm and nastiness classifiers for online dialogue](https://md.research.elamur.ai/free/en/papers/lukin-2013-really-well-apparently-bootstrapping-improves/). NAACL, pages 30–40.
12. F Pedregosa, G Varoquaux, A Gramfort, V Michel, B Thirion, O Grisel, M Blondel, P Prettenhofer, R Weiss, V Dubourg, J Vanderplas, A Passos, D Cournapeau, M Brucher, M Perrot, and E Duchesnay. 2011. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830. [↗](https://doi.org/10.48550/arxiv.1201.0490)
13. A Reyes, P Rosso, and T Veale. 2012. A multidimensional approach for detecting irony in twitter. LREC, pages 1–30. [↗](https://doi.org/10.1007/s10579-012-9196-x)
14. E Riloff, A Qadir, P Surve, LD Silva, N Gilbert, and R Huang. 2013. [Sarcasm as contrast between a positive sentiment and negative situation](https://md.research.elamur.ai/free/en/papers/riloff-2013-sarcasm-as-contrast-between-positive/). In EMNLP, pages 704–714.
15. R Socher, A Perelygin, JY Wu, J Chuang, CD Manning, AY Ng, and C Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1631–1642. Citeseer. [find](https://scholar.google.com/scholar?q=R+Socher%2C+A+Perelygin%2C+JY+Wu%2C+J+Chuang%2C+CD+Manning%2C+AY+Ng%2C+and+C+Potts%2E+2013%2E+Recursive+deep+models+for+semantic+compositionality+over+a+sentiment+treebank%2E+In+Proceedings+of+the+Conference+on+Empiric)
16. D Sperber and D Wilson. 1981. Irony and the use-mention distinction. 1981. [find](https://scholar.google.com/scholar?q=D+Sperber+and+D+Wilson%2E+1981%2E+Irony+and+the+use%2Dmention+distinction%2E+1981%2E)
17. J Tepperman, D Traum, and S Narayanan. 2006. ”Yeah Right”: Sarcasm Recognition for Spoken Dialogue Systems. [find](https://scholar.google.com/scholar?q=J+Tepperman%2C+D+Traum%2C+and+S+Narayanan%2E+2006%2E+%E2%80%9DYeah+Right%E2%80%9D%3A+Sarcasm+Recognition+for+Spoken+Dialogue+Systems%2E)
18. K Toutanova, D Klein, CD Manning, and Y Singer. 2003. [Feature-rich part-of-speech tagging with a cyclic dependency network](https://md.research.elamur.ai/free/en/papers/toutanova-2003-feature-rich-part-speech-tagging/). In Proceedings of the 2003 Conference of the North American Chapter of the Association for Computational Linguistics on Human Language Technology-Volume 1, pages 173– 180. Association for Computational Linguistics.
19. O Tsur, D Davidov, and A Rappoport. 2010. ICWSM-a great catchy name: Semi-supervised recognition of sarcastic sentences in online product reviews. In AAAI Conference on Weblogs and Social Media. [find](https://scholar.google.com/scholar?q=O+Tsur%2C+D+Davidov%2C+and+A+Rappoport%2E+2010%2E+ICWSM%2Da+great+catchy+name%3A+Semi%2Dsupervised+recognition+of+sarcastic+sentences+in+online+product+reviews%2E+In+AAAI+Conference+on+Weblogs+and+Social+Media%2E)
20. Y Tsuruoka, J Tsujii, and S Ananiadou. 2009. Stochastic gradient descent training for l1-regularized log-linear models with cumulative penalty. In Proceedings of the Joint Conference of the Annual Meeting of the ACL and the International Joint Conference on Natural Language Processing of the AFNLP, pages 477–485. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Y+Tsuruoka%2C+J+Tsujii%2C+and+S+Ananiadou%2E+2009%2E+Stochastic+gradient+descent+training+for+l1%2Dregularized+log%2Dlinear+models+with+cumulative+penalty%2E+In+Proceedings+of+the+Joint+Conference+of+the+Annual+Mee)
21. BC Wallace, DK Choe, L Kertz, and E Charniak. 2014. [Humans require context to infer ironic intent (so computers probably do, too)](https://md.research.elamur.ai/free/en/papers/wallace-2014-humans-require-context-infer-ironic/). Proceedings of the Annual Meeting of the Association for Computational Linguistics (ACL), pages 512–516.
22. BC Wallace. 2013. Computational irony: A survey and new perspectives. Artificial Intelligence Review, pages 1–17. [↗](https://doi.org/10.1007/s10462-012-9392-5)
23. D Yogatama and NA Smith. 2014a. Linguistic structured sparsity in text categorization. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (ACL), pages 786–796. [find](https://scholar.google.com/scholar?q=D+Yogatama+and+NA+Smith%2E+2014a%2E+Linguistic+structured+sparsity+in+text+categorization%2E+In+Proceedings+of+the+Annual+Meeting+of+the+Association+for+Computational+Linguistics+%28ACL%29%2C+pages+786%E2%80%93796%2E)
24. D Yogatama and NA Smith. 2014b. Making the most of bag of words: Sentence regularization with alternating direction method of multipliers. In Proceedings of The 31st International Conference on Machine Learning, pages 656–664. [find](https://scholar.google.com/scholar?q=D+Yogatama+and+NA+Smith%2E+2014b%2E+Making+the+most+of+bag+of+words%3A+Sentence+regularization+with+alternating+direction+method+of+multipliers%2E+In+Proceedings+of+The+31st+International+Conference+on+Machin)
25. H Zou and T Hastie. 2005. Regularization and variable selection via the elastic net. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 67(2):301–320. [↗](https://doi.org/10.1111/j.1467-9868.2005.00503.x)

*Updated 24 October 2026*
