Thakaa at StanceEval-2026: Inference-Time Target Grounding for Arabic Stance Detection

Meshal Alamr, Hassan Alqaeri, Abdullah AldahlawiarXiv 2026 · DOI

It’s late, the coffee is cold, and you’re staring at a screen full of Arabic tweets trying to figure out if the authors are cheering for school reform or just venting about their morning commute. This is the world of Stance Detection, and as a new paper from the team at Thakaa demonstrates, it’s a lot harder than just checking if a tweet is "happy" or "sad."

TL;DR

How do you teach an AI to understand opinions on a topic it has never seen before? This paper shows that instead of expensive retraining, you can "ground" the model at inference time by providing factual "target cards" or retrieving similar examples from other datasets, achieving top-tier results in Arabic stance detection without changing a single weight in the model.

What Problem Does This Paper Address?

Stance detection is the art of determining if a text is FAVOR, AGAINST, or NONE regarding a specific target (like "Electric Cars"). It’s trickier than sentiment analysis; you can use angry words to support a goal ("The delay in school reform is a disaster!") or polite words to oppose one.

The authors tackle the "Target Shift" problem. Most models fail when they encounter a topic not present in their training data. In the Arabic social media sphere, this is compounded by heavy use of sarcasm, local dialects, and implicit references. The challenge here was to build a system that could handle brand-new topics (like the Saudi "Trimester System") on the fly.

Methods

The researchers took a "lightweight" approach, focusing on inference-time grounding—essentially giving the model a cheat sheet right before it takes the test.

  1. Retrieval-Based Grounding (Track 1): For the "Women Driving" topic, the system searched an external dataset (ArabicStanceX) to find the eight most similar labeled examples. It then showed these to a Gemma-4-31B-IT model to help it understand the context.
  2. Target Cards (Track 2): For completely unseen topics, they used Gemini 3.6 Flash to generate "target cards"—short, neutral, factual descriptions of the topic (e.g., what the Trimester System actually is).
  3. The Ensemble "Committee": They didn't trust just one AI. They fused predictions from GPT-5.5, Gemini, and Gemma. They even used a "Hungarian assignment" algorithm to ensure the final label distribution matched the expected totals for the dataset.

Datasets

  • Mawqif-XT: The primary benchmark for Arabic cross-target stance detection. It includes topics like COVID-19 vaccines and Digital Transformation.
  • ArabicStanceX: An external corpus used specifically to find "demonstrations" (examples) for the retrieval system.

Key Insights and Ideas

  • Retrieval Beats Randomness: Simply showing the model any eight examples about a topic helps, but showing it the most similar examples (via TF-IDF similarity) provides a massive boost.
  • The "Neutrality" Hack: The target cards had to be strictly factual. If the description contained even a hint of an opinion, it could bias the model's prediction.
  • Fine-Tuning Can Backfire: In a surprising twist, the authors found that using QLoRA (a popular fine-tuning method) actually lowered performance compared to the base model. For this specific task, the "frozen" model with good context was smarter than the "adapted" model.
  • Disagreement is a Signal: When the different LLMs in the ensemble disagreed, it was rarely a toss-up between "Favor" and "Against." Instead, disagreement usually signaled that the tweet was actually NONE (irrelevant or neutral).

Key Results

The team's "target-grounded" approach performed exceptionally well, as shown in their official results:

Official test results showing the performance of the Gemma and GPT-based pipelines.

On Track 1 (Women Driving), using retrieved demonstrations pushed their score to 85.22 $F_{avg2}$. On Track 2 (Unseen Targets), their full pipeline reached 91.78 $F_{avg2}$, ranking them 4th overall.

The power of retrieval is further highlighted in their ablation study:

Comparison of direct prompting vs. random and retrieved demonstrations.

Limitations and Future Work

While successful, the authors noted a few "real-world" hurdles:

  • The "Cheat" Constraint: Their best results relied on knowing the total number of FAVOR/AGAINST labels in the test set to help the "Hungarian assignment" logic. In a real-world application, you wouldn't have that answer key.
  • Small Gains from Cards: While "target cards" helped, the gains were small (+0.39 points) and varied by topic.
  • Model Drift: Because they relied on hosted APIs (like GPT and Gemini), the "drift" or updates to these models over time makes it hard to perfectly replicate the results a year from now.

Ultimately, the paper suggests that if you want an AI to understand a new debate, don't just train it harder—give it a better library and a neutral summary of the facts.

Summary updated

BibTeX
@misc{alamr2026thakaa,
  author = {Meshal Alamr and Hassan Alqaeri and Abdullah Aldahlawi},
  title = {{Thakaa at StanceEval-2026: Inference-Time Target Grounding for Arabic Stance Detection}},
  year = {2026},
  eprint = {2611.28860},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28860},
}
Figure