Rephrase-Supervised Token Routing for Intended Sarcasm

Sarcasm usually lives in a few words. In "what a wonderful day to get a flat tire," the sarcasm sits in "wonderful" set against "flat tire," and the rest of the sentence is ordinary. When a sarcasm dataset asks tweet authors to rewrite their own sarcastic post literally, the words they change mark roughly where the non-literal meaning was. We propose using those author edits to teach a token-level router, meaning a small network inside a language model that decides, for each word piece, which of several lightweight add-on modules ("experts," here low-rank adapters) processes it. Tokens the author had to change would go to experts that model the gap between literal and intended meaning. Everything else would stay with experts that keep the base model's literal and factual knowledge intact.

This matters because intended sarcasm remains hard. On the author-labelled iSarcasm data, third-party human annotators reach only 0.616 F-score, and models trained on hashtag-labelled data fall from 0.874 to at most 0.364 (iSarcasm). The best system in the shared task reaches 0.605 F-sarcastic (SemEval-2022 Task 6). Our bet is that a detector trained to locate the polarity flip, and to process those tokens with separate parameters, will generalize better from noisy training labels to intended labels than a detector that only learns a sentence label.

Core Claim

Token-level expert routing has been shown to beat sequence-level routing on general instruction tuning (Pushing MoE to the Limit). Irony work, however, found that token-level features hurt and concluded that irony is a property of the whole sentence (IIIDYT). We think the conflict comes from what the router is told. An unsupervised router spreads tokens by surface statistics. A handcrafted token flag, such as a capitalization indicator, is too crude to mark incongruity. A router supervised by author rephrase edits is told directly where the non-literal meaning is.

The claim is testable in two parts. First, rephrase-supervised routing should improve intended-sarcasm detection and hashtag-to-intended transfer over matched single-adapter, unsupervised-routing, and auxiliary-loss controls. Second, its gates should concentrate on edit tokens in held-out pairs, while unsupervised routers' gates should not.

Relation to Prior Work

Two papers already bring routing into sarcasm detection, and both work at a coarser grain.

  • DynRT-Net picks one of four image-text co-attention masks per sample with a Gumbel-Softmax router, reaching 93.21% F1 on the Multimodal Sarcasm Detection benchmark (DynRT-Net). It routes whole samples, not tokens. It needs an image and uses no specialized parameter modules.
  • Commander-GPT dispatches whole inputs to separate full models for sentiment, context and rhetoric, then aggregates their text reports (Commander-GPT). It reports hallucinations spreading from its agents and the cost of serving several large models.

Both papers support the motivation: decomposing sarcasm helps, and in Commander-GPT removing the rhetoric agent costs up to 24.7% F1. Neither routes inside one model's token representations, and neither supervises where routing should happen.

Sarcasm-R1 splits sarcasm into linguistic, contextual and emotional dimensions and trains one Qwen2.5-7B model with reinforcement learning to write reasoning about each. Its finding that emotional contrast drives sarcasm motivates our focus on polarity-flip tokens. It is also our strongest competitor.

The method comes from existing routing work:

  • Mixture of Vectors / Mixture of LoRA: soft per-token merging of adapters (Pushing MoE to the Limit).
  • AdapterFusion: token-level attention over adapters (AdapterFusion).
  • LoRAMoE: splits LoRA experts into knowledge experts and task experts with a balancing constraint, which reduces forgetting of world knowledge (LoRAMoE). We reuse that split and replace its unsupervised assignment with edit-derived supervision.

Keys to Robust Edits is a constraint on the design. It shows that raw hidden states make fragile routing keys under paraphrase. We therefore test gate stability on rephrased inputs rather than assume it.

The idea of rephrase supervision comes from Sarcasm SIGN, which translates sarcasm into literal text by mapping clusters of sentiment words. We use the same sarcastic-literal alignment as a training signal for the router, not as a generation target.

Research Program

Extracting edit labels. For each sarcastic training tweet with an author rephrase (iSarcasm / iSarcasmEval), and for each SIGN pair, we align the sarcastic text with its literal version using word-level edit alignment. Each subword token $t$ gets a soft score $d_t \in [0,1]$: near 1 if it was deleted or substituted, near 0 if kept. Rephrases rewrite freely, so these labels are noisy. We therefore smooth them over a small window and report how often the edit sets agree with a human-marked sample.

Model. In each feed-forward layer of a frozen backbone we insert $K$ LoRA experts, split into an incongruity group $I$ and a knowledge/literal group. A per-token softmax router produces gate weights $g_{t,k}$, and outputs are soft-merged as in Mixture of LoRA. On paired examples we add a gate-supervision term to the classification loss $\mathcal{L}_{cls}$:

$$ \mathcal{L} = \mathcal{L}_{cls} + \lambda \sum_{t} \mathrm{BCE}\Big(\textstyle\sum_{k \in I} g_{t,k},\; d_t\Big) $$

The first sum runs over tokens of a paired example, and $\lambda$ weights the supervision. Unpaired examples, which include all non-sarcastic tweets and the SARC data, contribute only $\mathcal{L}_{cls}$ plus a LoRAMoE-style balancing term.

Backbones. We run T5-3B, to connect with Mixture of Vectors and with MarSan, and Qwen2.5-7B, to connect with Sarcasm-R1.

Analyses. We will measure three things. The first is whether gates localize edit tokens on held-out pairs. The second is whether gates stay stable when inputs are paraphrased, testing whether the fragility reported by Keys to Robust Edits appears here. If it does, we add their contrastive projection as a variant. The third is whether routing edit tokens away from the knowledge experts reduces forgetting of factual knowledge after sarcasm tuning. That matters because sarcasm that depends on outside knowledge needs those facts (Attentional Multi-Reading).

Baselines

Naive reference points. These are the SemEval-2022 English Subtask A baselines: BERT at 0.348 F-sarcastic and a support vector machine at 0.275 (SemEval-2022 Task 6). We also include our own frozen backbone with a linear head.

Single-adapter control. This is a single LoRA on the same backbone. Its rank is set so trainable parameters match our full expert set. It gets the same data, epochs and hyperparameter search budget, which is the same number of trials over learning rate and rank. Beating it shows that routing, not extra capacity, helps.

Unsupervised token routing. These are Mixture of LoRA and LoRAMoE with the same $K$, the same parameter count and the same tuning budget (Pushing MoE to the Limit; LoRAMoE). They isolate the effect of edit supervision on the router.

Auxiliary-loss ablation. This is the key ablation. It is a single LoRA with a token-tagging head trained on the same $d_t$ labels. It shares the edit signal but has no routing, so it tests whether the benefit needs separate parameters or only the extra supervision.

Sequence-level routing ablation. Here the router emits one gate per input, averaged over tokens. It tests whether per-token granularity matters.

Strongest existing method. This is Sarcasm-R1, which reports 85.4% accuracy and 72.3% macro-F1 on iSarcasm, against GPT-4o's 76.0% and 59.4% (Sarcasm-R1). Its split and exact metric may differ from the official SemEval F-sarcastic. We will therefore re-evaluate its released model, or a reproduction, on our split and report both metrics. Our model uses the same Qwen2.5-7B base and no generated reasoning.

What counts as beating a baseline. On iSarcasmEval Subtask A we must beat the top shared-task score of 0.605 F-sarcastic. We must also beat the parameter-matched single-adapter and auxiliary-loss controls by more than the spread across seeds, using five seeds. Against Sarcasm-R1, matching its macro-F1 on the same split while generating no reasoning tokens would already be a meaningful result.

Why not just…?

Why not just prompt a large model with step-by-step reasoning? The evidence in the file argues against it. GPT-4o reaches 59.4% F1 on iSarcasm (Sarcasm-R1). Commander-GPT finds zero-shot large models sometimes barely beat chance, and Sarcasm-R1 notes that plain chain-of-thought prompting brings hallucinations. The trained reasoning version, Sarcasm-R1 itself, is a real threat. We include it as the main baseline rather than dismiss it.

Why not just fine-tune one LoRA? The evidence that single adapters hit a ceiling comes from multi-task instruction tuning, not from a single small classification task. We cannot assume it carries over. The parameter-matched single-adapter control settles this directly. If that control ties us on in-domain F1 and on transfer, the routing claim fails.

Why not just add a token-tagging loss on the edit labels? This is the most serious alternative. It uses the same new signal without any routing. If it matches rephrase-supervised routing, the contribution becomes "edit supervision helps," not "routing helps," and we will report it that way. We expect routing to win specifically on hashtag-to-intended transfer and on keeping factual knowledge, because separate parameters keep sarcasm updates away from literal tokens. Those two metrics decide the question.

Why not just use an unsupervised token-routing mixture? Unsupervised routers have never been evaluated on sarcasm or other pragmatic tasks. The failure of token-level features in IIIDYT suggests that routing without guidance may not find incongruity. Our localization analysis tests this directly: we check whether Mixture of LoRA gates put their weight on edit tokens.

Why not just classify the whole sentence, since irony is global? Saliency maps in Attentional Multi-Reading show that decisions hinge on conflicting word pairs such as "responsible gun" and "accidentally shoots." Sentence-level BERT reaches only 0.348 F-sarcastic on intended sarcasm. The sequence-level routing ablation tests this alternative on equal terms.

Proposed Experiments

In-domain detection. We evaluate on iSarcasmEval Subtask A in English and Arabic, reporting F-sarcastic and macro-F1. Reference scores are the top teams' 0.605 and 0.563, and MarSan's 58.89% and 76.29%.

Pair discrimination. We evaluate on Subtask C, where the model must pick the original sarcastic tweet over its literal rephrase. This task should reward correct localization most directly. The top English accuracy is 0.870 and the top Arabic accuracy is 0.930.

Transfer from hashtag labels. We train on SARC, whose labels come from the author's /s tag, and test on iSarcasm. The reference ceiling for older models is 0.364 (iSarcasm).

Other datasets. We evaluate on conversation-dependent SARC, where the reference is 68% F1 (Attentional Multi-Reading). We also evaluate on SemEval-2018 Task 3; no reported test result was found on Lacuna for this benchmark among the cited systems.

Fine-grained categories. We report Subtask B macro-F1 with care. The top score is 0.1630, and understatement has as few as one training example (MarSan). We treat this as a diagnostic, not a headline result.

Knowledge retention. We measure closed-book factual QA before and after sarcasm tuning for every method. No reported result was found on Lacuna for forgetting caused by sarcasm fine-tuning.

Decisive checks. Three results decide the outcome.

  1. Rephrase-supervised routing must beat the auxiliary-loss single-adapter control on transfer and on knowledge retention. If not, routing is unnecessary.
  2. Its gates must localize held-out edit tokens clearly better than Mixture of LoRA gates, measured by area under the precision-recall curve. If not, the "routing to where sarcasm lives" story is false.
  3. Gate localization must survive paraphrased inputs. If it does not, the design needs the robust keys from Keys to Robust Edits.