Elamur Research

Debiasing Large Language Models in Thai Political Stance Detection via Counterfactual Calibration

Paper · 2025 · Kasidit Sermsri and Teerapong Panboonyuen

Summary

A post can sound hopeful while criticizing a politician, or sound angry while defending one. To classify the writer’s political stance, a system has to work out where the approval or anger is directed. The authors find that large language models frequently take an easier route in Thai political writing. They read positive sentiment as support and negative sentiment as opposition. Their answers can also change when the same evaluative language is attached to a different politician. The paper calls these problems sentiment leakage and entity bias. It singles out Thaksin Shinawatra as a case where negative tone is particularly likely to elicit an opposition label.

ThaiFACTUAL adds a small correction layer after the initial stance prediction. Its training material includes counterfactuals, or edited versions of a text in which a different political figure is named while the emotional tone is kept as similar as possible. It also uses human-written rationales to help distinguish what the writer says about the target from how the writer sounds. The correction layer re-scores the original prediction using these signals. The authors leave the underlying system’s parameters fixed, which makes the approach suitable in principle for services that expose predictions through an API.

The political case study uses 90 Thai-language tweets each for Paetongtarn Shinawatra, Thaksin Shinawatra, and Pita Limjaroenrat. The tweets carry separate stance and sentiment labels, and the paper also describes rationale annotations and optional bias markers. The authors compare the tendency to match stance to sentiment, the spread in recall across stance classes, overall classification performance by macro-F1, and performance on a politician left out of calibration. They report that ThaiFACTUAL improves on the comparison approaches across these measures. The reported gains include fewer tone-aligned predictions, more even recall, higher macro-F1, and better transfer to a held-out political figure. The paper describes the direction of these gains, while its results table is represented by a caption without the individual scores.

The contribution is a way to test and adjust two shortcuts that ordinary stance scores can obscure. A classifier may get many supportive posts right by following positive tone, yet misread favorable language used in a larger criticism. An entity swap can expose reliance on a politician’s identity, although it can also change what the passage means in context. The authors limit their conclusions to a small, balanced case study and recognize that historical associations, dialect, user ideology, and media framing can still affect judgments.

Deep dive: Debiasing Large Language Models in Thai Political Stance Detection via Counterfactual Calibration

ThaiFACTUAL uses counterfactual swaps and human rationales to reduce tone and politician bias in Thai political stance detection. · about 34 minutes to read

The problem and its context

A stance belongs to a target

Political stance detection asks what position a writer expresses towards a specified person, group, or issue. The Thai case study reduces that question to a choice among support, opposition, and a neutral position. The target matters because an author can express sharply different views about different people in the same passage. Even a short post can praise a policy, blame another political actor, and leave its position toward the named target implicit. A stance label describes the relationship between the writer’s words and the particular target under evaluation.

Sentiment concerns the emotional character of those words. It answers a different question about the passage, even when the two answers agree. The paper describes a case in which the writer responds favorably to a politician’s recent conduct while conveying disapproval of the politician’s leadership more broadly. The supportive language has a local object. The critical stance rests on what the passage says about the person as a political leader. The example makes the distinction concrete. Deciding that a passage sounds positive leaves open whether the author supports the person named in the task.

Confusing those judgments matters when people use stance labels to interpret a public debate. If favorable wording is routinely counted as an endorsement, a collection of predictions can overstate the support expressed in the underlying posts. The same problem can occur with negative language and apparent opposition. A writer expressing distress about a social problem can sound strongly negative while taking no position toward a specified politician. The paper’s neutral examples draw attention to that possibility. Neutral stance can coexist with emotional language because emotional intensity and political alignment describe different things.

The authors place this work in a strand of research that treats stance as a target-relative judgment. They cite earlier work on ideological online debates and the SemEval task on stance in tweets as precedents for asking how a speaker positions themselves towards a topic. In the Thai setting, the authors connect this question to the interpretation of user-generated discussion around elections and constitutional or institutional reform. The task is to infer the position expressed in a text. The political standing of the target and the broader views of the author are separate questions. Recognizing Stances in Ideological On-Line Debates · SemEval stance detection in tweets

Why Thai political writing makes shortcuts tempting

The authors describe Thai political discourse as a setting where the main point can be conveyed indirectly. Sarcasm, irony, metaphor, and understatement can change how a passage should be read, even when its individual words appear straightforward. Code-switching and culturally specific ways of signaling disagreement can add another layer of interpretation. A reader may need to connect an apparently mild expression to a disputed episode or to a political relationship the writer assumes the audience already knows.

This creates two challenges for a classifier. It must recognize when the tone of a phrase differs from the position implied by the whole utterance. It must also recognize when a name carries information needed to understand the utterance. A historical allusion can make a political identity essential to the reading. A tendency to return opposition whenever a certain name appears is a different use of that identity. The authors’ question is how to reduce the latter dependence while preserving enough context to interpret what was actually written.

The paper connects both problems to the training material available to general-purpose systems. Its account is that broad internet text can carry cultural, regional, and ideological patterns. A system may therefore have learned associations between politicians and evaluative language before it sees a Thai stance prompt. That explanation motivates the investigation. The observable evidence in the study concerns output behavior, such as how a stance prediction responds to a name or whether the predicted label tracks the tone. Linking that behavior to a particular source in pretraining would require evidence of a different kind.

Thai also illustrates why the availability of annotated material matters. Local knowledge can be important to distinguishing a criticism from an expression of concern or an indirect endorsement. The authors frame their dataset as a resource for low-resource languages, where an intervention that demands a large collection of labeled political text may be hard to support. They place the study alongside the multilingual, multi-target dataset X-Stance and work on the role of culture in natural language processing. Their emphasis is on supplying Thai political examples whose labels reflect how the language is used in context. Culture Is Not Trivia

The earlier approaches the authors build on

The paper discusses bias research that goes beyond stance, including work on religion, gender, ideology, and the internal associations of language systems. It cites research on political bias attribution and on social bias under changes to language systems. It also refers to study of positional bias in multiple-choice prediction, where features of the response format can influence which answer is selected. These examples frame the Thai case as another instance of a system drawing on a signal that can be associated with the output without resolving the intended task. Political bias attribution through dependency analysis · Discovering bias in internal knowledge

The most direct antecedents address shortcuts in stance datasets and stance classifiers. According to the paper, Kaushal and colleagues identify lexical and sentiment patterns that recur across targets. If similar evaluative terms tend to accompany the same label even when the politician changes, those terms can give a classifier a useful training signal without requiring it to connect an opinion to its object. The Thai study brings that issue into an evaluation where sentiment and stance are recorded separately. A positive label on the sentiment axis and an opposition label on the stance axis can then be represented explicitly in the same item.

The authors also describe prior mitigation work that balances or reweights training material, adapts the underlying system, strengthens stance reasoning, or combines counterfactuals with adversarial learning. These efforts approach different parts of the problem. Balancing changes the examples from which associations are learned. Reasoning methods are intended to improve how evidence within a passage is used. Counterfactual methods introduce edited cases that can expose overdependence on a feature. The authors point to earlier work on simplified stance reasoning and to a separate study that combines counterfactual reasoning with adversarial bias learning. Simplified stance reasoning · Debiasing through adaptation

Much of the mitigation literature, in the paper’s account, assumes access to a system that researchers can adapt or retrain. That assumption shapes what can be changed and what data the intervention needs. The authors draw attention to the cost of that assumption for hosted systems, where a researcher may be able to submit a prompt and inspect the answer without having any way to modify the underlying parameters. They also cite concerns about retaining generalization during continued adaptation. These constraints motivate placing the intervention after the original prediction. ThaiFACTUAL shifts the learning task to a separate layer whose inputs can include the initial judgment and evidence derived from locally annotated text.

Two ways to get the right answer for the wrong reason

Sentiment leakage arises when the stance classifier relies on an association between tone and label. In the paper’s account, a favorable tone often leads to support across different political targets. When the writer plainly approves of the target, that rule can produce the right answer. The revealing cases are those in which the favorable language is about someone else, concerns a narrow action, or is qualified by a broader criticism. Those cases show whether the system has connected the evaluation to the target.

Entity bias concerns a separate shortcut. A classifier can favor a stance label for a politician because that person is associated with approval or disapproval in material the system has encountered. The paper illustrates the issue with statements that evaluate different figures in almost the same terms. If changing the figure produces a shift in how the stance is classified, the pair gives a reason to ask which parts of the judgment came from the passage and which came from the identity of the person mentioned.

Both shortcuts can operate on the same input. The tone may point strongly toward an opposition label, and the identity may make that label seem even more likely to the classifier. An aggregate classification score can reflect whether the final answers agree with annotations. It offers less insight into the regularities behind those answers. The authors therefore combine measurements of classification quality with checks aimed at the tone–stance relationship and the distribution of errors across stance classes. Their intervention uses the corresponding distinction between edits to the text and explanations of what the text says about its target.

The method, step by step

Start with the original prediction

ThaiFACTUAL is a calibration method in the sense that it adjusts a stance judgment after an existing classifier has made one. An initial prediction supplies the label or decision to be re-scored. The correction layer then uses rationales and matched counterfactual examples to revise the output. A rationale is a brief explanation of which parts of the passage establish its stance. A matched counterfactual is an edited version of an example in which the political figure changes and the emotional structure is largely preserved. The layer draws on both kinds of evidence when learning how to correct the initial judgments.

The paper also uses the name FACTUAL-THAI in its introduction. Both names refer to the same general arrangement of a fixed base system and an auxiliary correction stage. The authors describe the base prediction as the first stage, with counterfactual inputs and rationale-based supervision informing what happens afterwards. They present the separation as a way to use the intervention with hosted systems whose internal weights are inaccessible. The auxiliary layer itself still requires suitable examples for calibration.

How ThaiFACTUAL calibrates political stance predictions

The steps in order.

How ThaiFACTUAL calibrates political stance predictionsStep 1: Label stance and sentiment toward political targets1. Label stance and sentiment toward political targetsStep 2: Construct matched examples with different political figures2. Construct matched examples with different political figuresStep 3: Use rationales to identify evidence for stance3. Use rationales to identify evidence for stanceStep 4: Obtain an initial stance prediction4. Obtain an initial stance predictionStep 5: Re-score the prediction through the correction layer5. Re-score the prediction through the correction layerStep 6: Return the calibrated stance label6. Return the calibrated stance label

Annotate the original texts

In the case-study procedure, the starting material consists of Thai tweets found through searches for political figures. The queries use full names, nicknames, party hashtags, and alternative expressions. The authors describe collecting tweets through the Twitter API and open-source crawlers during 2023–2025, removing duplicates, and normalizing the text. The multiple query forms matter for what a corpus can contain. Searching only for formal names would leave out posts that refer to a politician through other forms the researchers considered relevant.

The annotation procedure assigns a political target and records stance separately from sentiment. The stance labels are support, against, and neutral. The sentiment labels are positive, negative, and neutral. Here, the same word can name different properties. Neutral stance indicates that a position for or against the target is absent under the annotation scheme. Neutral sentiment concerns the emotional polarity of the text. Keeping the two labels separate gives the calibration procedure and the evaluation a way to identify when tone and stance diverge.

The authors describe using three native Thai annotators with backgrounds in political science for the tweet procedure. Majority vote resolves the labels, and cases considered ambiguous, including examples of sarcasm or news reposting, are excluded. The selected material is balanced by target, and the authors describe an even distribution across stance and sentiment categories. Their aim is to prevent simple imbalances in the collected examples from giving the classifier an easy default. A corpus assembled this way can support a targeted comparison of different combinations of tone and stance, although its composition is determined by the researchers’ selection process. Linguistic annotation

The paper also describes a broader annotation scheme in which each text can carry a rationale and an optional binary bias marker. The rationale explains the relationship between the affective language and the target-specific judgment. The marker flags a potential concern such as sentiment leakage or entity bias. These fields have different uses. A marker can direct attention to the kind of shortcut an example might elicit. The rationale supplies substantive information about how to read the passage. In its broader account, the paper describes adjudication and agreement among trained annotators as quality checks.

Change the political figure while retaining the tone

The counterfactual construction starts from an original text and replaces a political figure with another one. The surrounding wording is kept close enough to preserve the sentiment that gives the example its positive or negative tone. The resulting pair lets the system encounter substantially similar evaluative language applied to a different person. Any accompanying adjustments, such as pronouns or the description of an event, should leave the intended affective contrast intelligible. This makes a swap a small rewriting operation, even when the change can begin with a name.

One example starts from praise for Pita’s performance and enthusiasm about his plans for Thailand. The variant redirects the same praise to Thaksin. The authors present this under a shift from support toward a neutral-target condition. The wording still sounds approving on its face. The example makes the precise status of the replacement important. A neutral-target designation in the construction and a neutral stance judgment about the resulting passage are distinct possibilities. The paper describes the example and its intended role, while leaving the rules that assign labels to similar variants largely implicit.

A second example begins with an accusation against Thaksin and criticism of his return. The variant names Paetongtarn, adjusts the pronoun and the description of the political development, and retains the language of condemnation. The affective character is deliberately stable. Reading the pair also shows why the rest of the text sometimes needs attention. Transferring a reference to a return directly to a person whose role in the passage is described differently could preserve the words while undermining the intended comparison.

The swaps operate as controlled contrasts in the material available to the auxiliary layer. If a favorable judgment changes with the name while the evaluation expressed in the wording stays comparable, the pair brings entity sensitivity into view. If a classifier issues the same label across very different stance readings whenever the wording sounds equally positive, the separate stance and sentiment labels expose a limitation of its tone-based rule. The authors’ motivation is to help the correction layer learn from both patterns. Their implemented augmentation is centered on entity replacement while holding sentiment broadly steady. A systematic rewrite of sentiment, topic, and political identity as independently varied factors is a larger design than the one described.

Use rationales to identify what supports a label

The neutral rationale illustrated in the paper explains a judgment without treating affect as sufficient evidence. Its role is to connect the target and the position expressed towards it. It can identify which person an evaluation concerns, which part of a statement expresses a political judgment, or why a reaction to an event leaves the writer’s position towards the target open. In this use, “neutral” describes the function of the explanation. A rationale can support an opposition or support label as readily as a neutral one.

Consider the favorable description of a recent action that appears in a broader criticism of a politician’s leadership. The positive language can remain important to the meaning. A useful rationale locates its scope and then identifies the evidence behind the overall stance. Likewise, a rationale for civic concern can explain that the passage expresses anxiety about affected people while supplying little basis for assigning support or opposition to a political actor. Both cases give the correction process evidence at a finer level than the tone label alone.

The paper describes rationale-based supervision as part of the calibration, paired with the counterfactual examples. The matched texts make it possible to compare judgments under a specific input change. The rationales explain why a label is appropriate in the context of a particular item. This combination allows the correction layer to learn from an edited comparison and from an interpretation of the text. The authors do not give a formal rule for deciding how much the rationales contribute to each re-scored prediction, or a full account of how explanations are made available for unseen examples.

Re-score the stance prediction

The authors query the underlying systems through OpenAI and HuggingFace APIs. Their implementation description names GPT-4, GPT-3.5, and LLaMA-3-8B-chat. They set the prompting temperature to 0.0. Temperature is the setting that affects the variability of generated responses, and the authors choose this value to make the prompting procedure deterministic. The API setting belongs to the base prediction procedure. ThaiFACTUAL’s separate correction layer is where the rationales and matched pairs enter the process.

In the paper’s terminology, the layer re-scores the original stance judgment. The paper gives the ordering of operations and the types of supervision involved, with limited detail on the internal computation. It leaves the architecture, optimization objective, and exact representation of the incoming prediction unspecified. In particular, the description does not establish whether the layer receives scores for all stance labels or starts solely from the returned answer. That distinction would matter when adapting the technique to APIs that expose different kinds of output.

The authors also evaluate transfer to an unseen political figure. The described split reserves one figure’s examples for evaluation and uses the other two figures for training or calibration. In this setting, “unseen” refers to the separation established by the experiment. The held-out figure supplies a test of whether the correction learned from the remaining figures carries over to a new target within the case study. A figure can be absent from the calibration data and still be familiar to the original language system through earlier exposure.

The formulas used to evaluate the method

The paper gives formulas for its evaluation metrics. Bias-SSC measures the frequency with which a predicted stance aligns with the annotated sentiment according to a fixed mapping. A prediction of support aligns with positive sentiment, and a prediction of opposition aligns with negative sentiment.

Bias-SSC = (1/N) ∑ᵢ₌₁ᴺ 𝕀[sentiment(xᵢ) = mapped_stance(yᵢᵖʳᵉᵈ)]

Here, N is the number of examples considered in the calculation. The index i runs from 1 through N, as indicated by the limits of the sum sign ∑. The input text at that index is xᵢ, and yᵢᵖʳᵉᵈ is its predicted stance. The function sentiment gives the annotated polarity of the input, while mapped_stance expresses the predicted stance on the sentiment axis for comparison. The equality sign inside the square brackets tests whether the two values correspond. The indicator 𝕀 returns 1 when they correspond and 0 otherwise. Dividing the sum by N turns the count into a frequency. The paper specifies the positive–support and negative–against correspondences. Its account leaves the treatment of neutral items in this computation open.

A low Bias-SSC is desirable in the paper’s evaluation because a high rate of agreement can indicate overreliance on tone. The formula measures agreement, however, and agreement can occur when the stance is correctly classified. A supportive text can genuinely be positive. The interpretation therefore depends on the other metrics and on the characteristics of the dataset. In particular, improvement is easier to interpret when reduced tone matching accompanies better agreement with the human stance labels.

RStd is the standard deviation of recall across the stance classes. Recall for a class measures the share of examples annotated with that class that the classifier correctly assigns to it. The formula compares each class’s recall with the mean recall across the classes.

RStd = √{(1/K) ∑ᵢ₌₁ᴷ [(TPᵢ/Pᵢ) − (1/K) ∑ⱼ₌₁ᴷ (TPⱼ/Pⱼ)]²}

Here, K is the number of stance classes, which is 3 for support, against, and neutral. The index i identifies a class whose recall is being compared with the mean, and j runs over the classes to compute that mean. TPᵢ counts the true positives for class i, meaning examples correctly predicted to belong to that class. Pᵢ counts all examples annotated with class i. The corresponding quantities for class j are TPⱼ and Pⱼ. The slash denotes division, so TPᵢ/Pᵢ is recall for class i. The inner sum, multiplied by 1/K, gives mean recall over the K classes. The minus sign gives the deviation of the class recall from that mean, ² squares the deviation, and the outer sum averages those squared deviations. The square root √ puts the spread back on the recall scale.

A lower RStd means recall is more even across stance labels in the evaluated predictions. The formula groups examples by stance class. Even if RStd is applied to subsets organized by politician, the spread it computes within a subset is still a spread across stance recalls. This matters for the fairness interpretation. The diagnostic can reveal a classifier that recognizes support much more readily than neutral stance. It does not by itself compare rates of favorable treatment across politicians.

The main correctness measure is macro-F1. F1 combines precision and recall for a particular class. Precision asks how often an output with that class is correct, while recall asks how frequently the classifier recovers examples that belong to that class. Macro-F1 gives the class scores equal influence in the final average.

Macro-F1 = (1/3) ∑ᵢ₌₁³ [(2 × Precisionᵢ × Recallᵢ) / (Precisionᵢ + Recallᵢ)]

The index i runs from 1 to 3 across the stance classes. Precisionᵢ is the fraction of predictions for class i that agree with the annotations. Recallᵢ is the fraction of annotated examples for class i recovered by the classifier. The coefficient 2, multiplication signs ×, division slash, and addition sign + form the usual harmonic mean of those two quantities for each class. The sum ∑ adds those class F1 values and the factor 1/3 averages them across support, against, and neutral. A higher macro-F1 indicates better combined precision and recall across the labels under this averaging scheme.

The held-out-target measurement has a separate procedural definition. The paper calls it out-of-distribution, or OOD, generalization. The change in distribution is the identity of the target between calibration and evaluation. The paper explains how to hold out a figure and test on that figure’s examples. Its definition does not specify whether the reported OOD column uses macro-F1 or a different scoring rule. The split therefore has a clearer description than the exact quantity assigned to that column.

Experiments and results

The case-study data

The central evaluation concerns three politicians. The case study situates Paetongtarn Shinawatra with Pheu Thai and describes her as prime minister at the time under discussion. Thaksin Shinawatra appears as a former prime minister who had returned from exile. Pita Limjaroenrat represents the reformist opposition in the authors’ account and is associated with the Move Forward Party. These descriptions explain how the authors selected politically distinct targets for their evaluation. The labels apply to opinions expressed in the tweets, with the political descriptions supplying context for what makes a name substitution consequential.

The tweet dataset has 90 examples for each target, with 270 total. The paper describes balancing the stance and sentiment categories and removing duplicates. It does not give the full joint distribution of target, sentiment, and stance. Even balance across the stance labels and even balance across the sentiment labels can coexist with many possible patterns of association between them. The paper’s most relevant design choice for interpreting the results is that both axes were annotated and considered during curation.

The authors’ broader description of data construction covers Thai social media, political news commentary, and parliamentary debate transcripts spanning 2019 to 2024. It mentions institutional reform, election discussion, and public debate during national events. It also names Prayuth Chan-o-cha in its description of election-related material. This account includes text types and figures beyond the balanced tweet case study. The paper leaves unclear how the broader collection relates to the reported evaluation. The size of the main case study and the identities of its targets are tied explicitly to the tweet collection.

The broader annotation account gives a Fleiss’ κ of 0.84. This is an agreement measure for multiple annotators that adjusts for agreement expected by chance. The authors interpret the score as evidence of substantial agreement despite the difficulty of the examples. They do not identify the specific label field or subset used for this calculation. The number consequently describes reported agreement in annotation. It does not supply separate reliability estimates for stance, sentiment, rationale content, or bias markers.

The predictors and comparison conditions

The implementation names GPT-4, GPT-3.5, and LLaMA-3-8B-chat as systems evaluated through APIs. The results discussion contrasts ThaiFACTUAL with approaches based on prompting and chain-of-thought. The latter asks a system to articulate intermediate reasoning around a decision. Its motivation in this task is that considering the target and the passage explicitly can help prevent a direct jump from polarity to stance. The paper reports that prompting-based approaches mitigate some bias while leaving substantial dependence on sentiment or entity cues.

ThaiFACTUAL changes the point at which the intervention occurs. It lets the initial predictor produce an answer and then uses a separately calibrated layer to adjust that answer. The baseline discussion thus contrasts changes in how the original system is prompted with a procedure that introduces additional annotated and edited examples into a correction stage. The paper identifies the systems and comparison strategies, though it gives neither the exact prompt wording nor a complete pairing of named systems with baseline conditions in the results narrative.

The temperature of 0.0 applies to the prompting used in the study. This fixes a setting that could otherwise contribute to variability across responses to the same input. Its presence is useful when reading the counterfactual examples. When the predicted label changes across edited text, the intended source of variation is the changed input under a stable prompting setup. The paper does not report repeated runs that isolate the magnitude of any residual variation in the services.

The held-out-target setting

In the transfer experiment, the calibration stage learns from the texts about the other two figures, and evaluation is performed on the figure that was excluded. Thaksin is the example named in the definition of the split. The paper’s balanced sampling gives each possible held-out target a set of the same size. That equality helps explain the design of the transfer comparison. Holding out a different figure would change the political identities and examples available to calibration while retaining the stated size of the evaluation subset.

Held-out evaluation set size by political figure in the Thai tweet case study

Every potential held-out figure has the same number of annotated tweets available for evaluation.

Held-out evaluation set size by political figure in the Thai tweet case studyPaetongtarn Shinawatra held-out setting: 90Paetongtarn Shinawatra held-out setting90Pita Limjaroenrat held-out setting: 90Pita Limjaroenrat held-out setting90ThaiFACTUAL with Thaksin Shinawatra held out (this paper): 90ThaiFACTUAL with Thaksin Shinawatra heldout (this paper)90
The numbers
System or settingtweets in target subset
Paetongtarn Shinawatra held-out setting90
Pita Limjaroenrat held-out setting90
ThaiFACTUAL with Thaksin Shinawatra held out (this paper)90

The chart shows the size of the target subsets under the split rule. The marked setting is the one the authors name when explaining how to hold out a target. The other entries show the available sizes if each of the remaining figures is used in the same role. The chart does not establish that scores were collected for all those settings. Equal subset sizes also leave open how difficult the individual examples are, how their stance and sentiment labels co-occur, and how strongly each figure is associated with particular views by the base predictor.

This is a test of transfer within a shared collection procedure. The training or calibration texts and evaluation texts come from related Thai political discourse, while the person under evaluation changes. The success condition is meaningful precisely because the correction layer has to apply what it learned about stance to a figure missing from its own calibration examples. It gives much narrower evidence than moving the system to a different platform, time period, political issue, or language.

What the reported comparisons establish

The authors report a tendency to classify positively worded text as support across targets. They also describe a particularly strong tendency to predict opposition for negative text about Thaksin. The pattern is consistent with sentiment leakage because the emotional polarity corresponds so readily to the assigned stance regardless of the wider context. Its concentration on a particular figure also motivates the entity-bias interpretation. These observations describe regularities at the output and do not isolate how much each cue contributed to an individual prediction.

The performance table is described as comparing Bias-SSC, RStd, macro-F1, and held-out generalization. The paper reports that ThaiFACTUAL reduces sentiment–stance alignment and gives more even recall across stance classes while improving overall stance classification. It also reports improved evaluation on an unseen political figure. Prompt-based correction and chain-of-thought are described as yielding more limited improvements. The table caption and surrounding discussion give these directions of change. Individual result cells, class-wise scores, and held-out scores for particular politicians are absent from that account, so exact effect sizes cannot be given from the paper’s numerical results.

The joint movement of the metrics is central to the authors’ interpretation. A drop in Bias-SSC can occur because a classifier has learned to identify stance in difficult cases, or because it is making a different set of errors. A rise in macro-F1 gives evidence that the adjusted predictions are in better agreement with the human stance labels overall. Lower RStd adds information about the evenness of recall. Taken together, the reported directions support the interpretation that reducing a shortcut can improve classification on these data. They do not reveal which stance class gained the most.

The paper also describes an inverse association between bias and accuracy and characterizes it as significant. It gives neither the coefficient nor the analysis behind that significance claim. The results therefore support reporting the authors’ stated association and the direction of the comparison. They leave unresolved how tightly the scores moved together across predictors and whether the relationship was estimated on the same examples used for other comparisons. In this setting, “accuracy” in the authors’ general discussion should also be distinguished from macro-F1, the named classification metric in the performance comparison.

The qualitative findings show the kinds of outputs behind the authors’ interpretation. A critical stance can be recovered when its locally positive tone would otherwise prompt support. Similar support statements can be evaluated more consistently when applied to different figures. A passage about civic concern can receive a neutral political label when it offers no clear position towards a target. The authors use these cases to explain what better classifications look like. They give examples of changes the intervention is intended to produce, while the aggregate claims are carried by the reported metric comparison.

What the ablations show

The paper reports no component ablation. Its analyses instead compare the behavior of stance predictors under matched text edits, describe errors associated with particular tones and political figures, and evaluate the combined calibration procedure against other approaches. There is also a held-out-target test. These comparisons can reveal where bias appears and whether the whole procedure improves outcomes under the study’s conditions. They leave the relative contributions of rationale supervision and counterfactual matching unresolved.

Holding the tone steady while changing the name

A counterfactual pair controls some of what a classifier reads while changing the identity of the political figure. The condemning example about Thaksin and Paetongtarn retains the negative evaluation in the wording. The paper’s other construction directs praise from Pita to Thaksin while keeping the affective language. Comparisons like these are informative because an ordinary collection of posts about different politicians may vary simultaneously in subject matter, style, intensity, and speaker. Within an edited pair, much of that variation is deliberately reduced.

The authors’ qualitative analysis says that classifiers can change their stance judgments across structurally similar statements of support for different figures. This behavior is compatible with entity bias when the support expressed in the texts should be read the same way. The paired comparison is most diagnostic when a reader can independently establish that the underlying judgment has stayed comparable. If the substitution also changes the implications of an event or allusion, a changed prediction can reflect legitimate sensitivity to context. The authors acknowledge that historical associations may survive the swap and influence the response.

The same pairwise structure has a different implication for sentiment leakage. Holding tone steady ensures that it cannot explain a change in judgment within the pair. To show that a system can distinguish stance from tone, the comparison also needs a reason for expecting a different stance or a set of labels that expose tone–stance disagreement. The praise example with a designated neutral target illustrates the need to know how counterfactual labels are decided. The paper explains the purpose of the manipulation more fully than the annotation rules needed to audit each edited case.

The illustration in the paper brings these behaviors together by showing how a positive tone can favor support across figures and how changing an entity can change a prediction for otherwise comparable content. It then depicts the intended role of neutral rationales and calibration. This is a conceptual account of the error and correction mechanisms. The paper gives no pair-level counts showing how often base predictions change under a swap or how frequently the calibrated procedure restores the expected judgment.

Examining tone when the target stays fixed

The discussion of Thaksin gives a complementary view of the errors. Here the target is the same, and the salient observation is how often negative tone leads to opposition regardless of context. The strong association for a particular target suggests that sentiment leakage can vary by entity. An analyst looking only at an overall tone-matching score could miss a pattern that is concentrated on the examples for one politician.

That observation does not identify a causal mechanism on its own. The target’s examples could differ in the kinds of events people discuss, the force of their language, or how often their sentiment and stance naturally coincide. Conversely, a learned association with the name could amplify the pull of negative tone. The paper’s interpretation connects the behavior to both sentiment and entity cues. It does not supply a target-by-sentiment breakdown that would quantify the interaction.

The representative rationale examples show what the authors think the system must attend to in such cases. A positive comment embedded in a broader criticism needs a judgment about scope. An expression of concern needs an assessment of whether it takes a position toward a political figure at all. These explanations make the failure mode understandable to a reader. They cannot tell how often the added layer actually relied on a rationale, or whether the same correction would have been made using the counterfactual data alone.

Comparing prompting with the full correction procedure

The paper reports that prompt engineering and chain-of-thought reduce some surface manifestations of bias. Its account is that ThaiFACTUAL produces more consistent gains by adding matched examples and rationale-aware correction after the original answer. This is an end-to-end comparison. The methods differ in the information and supervision they receive as well as in when they intervene, so the comparison addresses the usefulness of the complete procedure under the study’s conditions.

A reasoning prompt can ask about the target and the evidence in the passage, but a plausible explanation can still accompany an answer based on tone. The paper’s rationale supervision addresses this concern by supplying judgments grounded in the annotated material. The counterfactuals offer another source of information about how similar wording behaves across targets. Either component could account for some of the reported advantage. The paper gives no run that removes rationales while keeping the pairs, removes the pairs while keeping rationales, or holds additional supervision constant across the comparison methods.

This also limits what can be inferred about the correction layer itself. Better scores could come from the particular pair design, the extra human explanation, the availability of additional labeled material, or a combination of those features. The reported comparison supports using the full package for the experiments described. It leaves open whether a simpler calibrator trained on the original annotations would have achieved some of the improvement, and whether the advantage is distributed evenly across the evaluated base systems.

Changing which political figures inform calibration

The held-out comparison shifts the emphasis from fitting the examples at hand to transferring across political targets. The correction layer has to apply its treatment of tone and stance to a figure absent from calibration. The authors report that the calibrated approach performs better in this setting. That observation is consistent with learning a correction that extends beyond the specific targets used to fit the layer. It is distinct from the matched-pair comparison, which tests sensitivity within an edited contrast.

A held-out gain still leaves several explanations available. The correction might transfer because rationales teach a useful distinction between sentiment and stance, because paired examples reduce dependence on the training targets, or because the annotated data establish class patterns that carry over within the collection. The paper’s evidence concerns the resulting transfer performance. Its analysis does not compare these candidate explanations under controlled changes to the training material. Because scores for individual held-out targets are absent, it is also unclear whether the gain is similar for the different possible splits.

Limitations

Limits the authors identify

The authors limit the implemented counterfactual augmentation to substitutions involving political entities. Political texts can be organized around a protest, a policy dispute, or an abstract ideology without hinging on the name of a public figure. Editing such texts requires changes to the proposition or its context. The authors treat broader semantic rewrites and their automation as open work. They also recognize that even a straightforward name substitution may leave historical associations that continue to shape how a passage is interpreted.

ThaiFACTUAL operates after prediction on a frozen system. The authors present that arrangement as convenient for API deployment and identify restricted access to internal representations as a corresponding limitation. An output correction can improve the labels used for a task while a base system continues to exhibit the same learned associations when queried on its own. The paper discusses earlier integration of counterfactual signals during adaptation as a possible future direction. That idea concerns a different intervention from the one evaluated in this study. Fine-tuning

The authors also describe the corpus as small and limited to three political figures. They note that shifts in Thai politics can change which expressions readers use and what those expressions imply. A sample confined to a particular set of people and periods therefore has a limited scope for claims about later debates. The broader design might be applicable elsewhere, but the paper’s Thai case study supplies the empirical evidence. Its discussion of applying the approach in other multilingual contexts is a proposal for transfer.

The evaluation focuses on sentiment leakage and fairness connected with stance labels and political targets. The authors explicitly leave dialect, user ideology, and media framing unexamined. They also do not measure whether corrected stance predictions improve political forecasting, misinformation detection, or ideological clustering. Those applications introduce new outcomes and ways that errors can accumulate. A system can improve on a stance benchmark while having unknown effects in any of those downstream uses. Bias, fairness & safety

The ethical discussion says that the authors used public material for research and anonymized examples where possible. It acknowledges that biases can remain in the annotations and predictions and that political views can still be misrepresented when the method is used. The authors distinguish the goal of reducing bias from a guarantee of neutrality. They flag high-stakes uses such as electoral analysis and policy evaluation as settings where residual errors matter. This is a boundary on the practical conclusions one can draw from the reported improvements.

Limits visible in the experimental setup

The relationship between the two accounts of the dataset is unclear. The main case study gives a defined collection of tweets, a specified count per target, and an annotation procedure that excludes ambiguous cases. The broader appendix describes additional source types, a different time range, a wider political scope, and four annotation fields. The paper does not explain whether the additional material entered the evaluation, supplied supervision, or describes a broader collection considered separately. The same uncertainty applies to the scope of the reported agreement score. Claims about the evaluated sample are strongest where the paper ties them to the explicitly counted tweet dataset.

The treatment of ambiguous writing narrows what the results show about some of the most difficult examples. The authors highlight sarcasm and indirect expression as characteristic challenges, while the tweet annotation procedure excludes examples regarded as ambiguous, including some sarcastic material and reposted news. That choice is understandable for constructing a clean comparison. It also means performance on the included items cannot settle how well the calibration handles the difficult cases that were screened out. In naturally occurring discourse, the distinction between an implicit stance and an indeterminate one may itself require a judgment.

Balancing the data serves the evaluation, but the corpus cannot be read as an estimate of how much support or opposition occurs in public discussion. Its category frequencies reflect curation. The reported results also do not establish how the correction performs when one stance class dominates, when tone–stance agreement is genuinely frequent, or when the source of the text changes. The distinction matters especially for Bias-SSC, since the rate of genuine agreement between tone and correct stance affects the range of values one should expect from an accurate classifier.

Counterfactual label validity is another open point. The paper explains how to retain polarity during a rewrite, but it does not give a complete adjudication procedure for the stance of each rewritten variant. The stance attached to an approving sentence ordinarily depends on whom it approves of and what the larger context says. Changing a person can preserve an apparently supportive statement, make it incongruous, or alter an implication known to a local reader. The paper’s example labeled as a shift toward a neutral target exposes the need to distinguish the intended manipulation from the stance readers actually infer. Pair-based evidence is easier to interpret when both original and edited labels have an explicit basis.

The metrics each capture a particular property of the predictions. Bias-SSC counts tone-aligned predictions rather than directly observing the feature that caused them. Its neutral mapping and denominator treatment are not fully explained. RStd shows how far apart class recalls are. Equal recall can accompany uniformly weak performance, which is why the paper’s reported macro-F1 improvement is relevant. A measure based on class recall also cannot show by itself that different politicians receive equal treatment across comparable texts. A systematic entity analysis would need information about performance or changes in predictions for those specific targets.

The absence of individual performance values in the results narrative limits numerical interpretation. The authors describe improvements on several metrics, but readers cannot see the size of those changes in that account, compare them across base systems, or assess uncertainty from reported variation across runs. The paper names the diagnostic for generalization and explains the target split, yet leaves the exact statistic behind the OOD column ambiguous. The held-out condition also speaks to absence during calibration, with the underlying system’s earlier exposure to a public figure unknown.

Finally, the operational description is sufficient to understand what the correction stage is intended to use, but incomplete for reproducing it. The paper gives the prompting temperature, the API families, the target split principle, and the role of rationales and matched examples. It omits the full prompts, the calibration objective, how pairs are selected or labeled at scale, and how the rationale input is prepared for evaluation. These omissions matter because methods with the same high-level sequence can implement substantially different decision rules. The paper shows a promising within-study comparison of a complete intervention, with limited evidence about which parts of that intervention are necessary.

What came after

Par-ITA cites the ThaiFACTUAL paper in work on Italian hyperpartisan neutralization. Its title describes benchmarking sequence-to-sequence systems and large language models on a human-supervised parallel corpus. Sequence-to-sequence systems produce an output text from an input text. In Par-ITA the task is neutralization, so the output concerns how a passage is rewritten. ThaiFACTUAL’s output in the experiments is a stance label for an existing passage and a specified target.

The projects share a concern with politically charged language and with giving systems supervised examples for handling it. The Thai study uses closely related texts to examine and correct dependence on affect and political names. Par-ITA’s description places paired material in a benchmark for Italian rewriting. This makes the connection intelligible at the level of research questions. Paired language can help researchers study how a change to political expression affects an automated judgment or transformation. The desired outputs and the purpose of the pairs differ across the two tasks.

The citation records that Par-ITA engages with the earlier paper. Its title establishes the language, task, benchmark, and use of a human-supervised parallel corpus. The available account of the later work leaves the role of ThaiFACTUAL’s specific procedures unstated. In particular, it gives no basis for attributing entity substitutions, rationale-based calibration, or the Thai stance metrics to Par-ITA. The documented connection is between a study of bias in Thai stance classification and later benchmarking of Italian political text neutralization.

Cite

Cite as Kasidit Sermsri and Teerapong Panboonyuen. 2025. Debiasing Large Language Models in Thai Political Stance Detection via Counterfactual Calibration. Proceedings of the 9th Widening NLP Workshop.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2025.winlp-main.13 · arXiv 2509.21946

@inproceedings{sermsri2025debiasing,
  title = {{Debiasing Large Language Models in Thai Political Stance Detection via Counterfactual Calibration}},
  author = {Kasidit Sermsri and Teerapong Panboonyuen},
  booktitle = {Proceedings of the 9th Widening NLP Workshop},
  year = {2025},
  doi = {10.18653/v1/2025.winlp-main.13},
  eprint = {2509.21946},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2025.winlp-main.13}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/sermsri-2025-debiasing-large-language-models-thai/

References

19 references, from the paper's own bibliography.

  1. Pengyuan Chen, Kai Ye, and Xiaohui Cui. 2021. Integrating n-gram features into pre-trained model: A novel ensemble model for multi-target stance detection (https://doi.org/10.1007/978-3-030-86365-4\_22). In Artificial Neural Networks and Machine Learning - ICANN 2021 - 30th International Conference on Artificial Neural Networks, Bratislava, Slovakia, September 14-17, 2021, Proceedings, Part III, volume 12893 of Lecture Notes in Computer Science, pages 269–279. Springer. OpenAlex ↗ · Scholar ↗
  2. Xiangjue Dong, Ziwei Zhu, Zhuoer Wang, Maria Teleki, and James Caverlee. 2023. Co2pt: Mitigating bias in pre-trained language models through counterfactual contrastive prompt tuning (https://doi.org/10.48550/ARXIV.2310.12490). CoRR, abs/2310.12490. OpenAlex ↗ · Scholar ↗
  3. Gustavo Gonçalves and Emma Strubell. 2023. Understanding the effect of model compression on social bias in large language models (https://aclanthology.org/2023.emnlp-main.161). In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Singapore, December 6-10, 2023, pages 2663–2675. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  4. Zihao He, Siyi Guo, Ashwin Rao, and Kristina Lerman. 2023. Inducing political bias allows language models anticipate partisan reactions to controversies (https://doi.org/10.48550/ARXIV.2311.09687). CoRR, abs/2311.09687. OpenAlex ↗ · Scholar ↗
  5. David F. Jenny, Yann Billeter, Mrinmaya Sachan, Bernhard Schölkopf, and Zhijing Jin. 2023. Navigating the ocean of biases: Political bias attribution in language models via causal structures (https://doi.org/10.48550/ARXIV.2311.08605). CoRR, abs/2311.08605. OpenAlex ↗ · Scholar ↗
  6. Ayush Kaushal, Avirup Saha, and Niloy Ganguly. 2021. twt-wt: A dataset to assert the role of target entities for detecting stance of tweets (https://doi.org/10.18653/V1/2021.NAACL-MAIN.303). In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2021, Online, June 6-11, 2021, pages 3879–3889. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  7. Tomasz Limisiewicz, David Marecek, and Tomás Musil. 2023. Debiasing algorithm through model adaptation (https://doi.org/10.48550/ARXIV.2310.18913). CoRR, abs/2310.18913. our card
  8. Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, and Yue Zhang. 2023. An empirical study of catastrophic forgetting in large language models during continual fine-tuning (https://doi.org/10.48550/ARXIV.2308.08747). CoRR, abs/2308.08747. our card
  9. Saif M. Mohammad, Svetlana Kiritchenko, Parinaz Sobhani, Xiaodan Zhu, and Colin Cherry. 2016. Semeval-2016 task 6: Detecting stance in tweets (https://doi.org/10.18653/V1/S16-1003). In Proceedings of the 10th International Workshop on Semantic Evaluation, SemEval@NAACL-HLT 2016, San Diego, CA, USA, June 16-17, 2016, pages 31–41. The Association for Computer Linguistics. our card
  10. Abel Salinas, Louis Penafiel, Robert McCormack, and Fred Morstatter. 2023. "im not racist but...": Discovering bias in the internal knowledge of large language models (https://doi.org/10.48550/ARXIV.2310.08780). CoRR, abs/2310.08780. our card
  11. Swapna Somasundaran and Janyce Wiebe. 2010. Recognizing stances in ideological on-line debates (https://aclanthology.org/W10-0214). In Proceedings of the NAACL HLT 2010 Workshop on Computational Approaches to Analysis and Generation of Emotion in Text, pages 116–124, Los Angeles, CA. Association for Computational Linguistics. our card
  12. Peter Stefanov, Kareem Darwish, Atanas Atanasov, and Preslav Nakov. 2020. Predicting the topical stance and political leaning of media using tweets (https://doi.org/10.18653/V1/2020.ACL-MAIN.50). In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online, July 5-10, 2020, pages 527–537. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  13. Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurélien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models (https://doi.org/10.48550/arXiv.2302.13971). CoRR, abs/2302.13971. our card
  14. Jannis Vamvas and Rico Sennrich. 2020. X-stance: A multilingual multi-target dataset for stance detection (https://doi.org/10.48550/arXiv.2003.08385). In Proceedings of the 5th Swiss Text Analytics Conference (SwissText) & 16th Conference on Natural Language Processing (KONVENS), pages –, Zurich, Switzerland. CEUR Workshop Proceedings. Also available as arXiv:2003.08385. OpenAlex ↗ · Scholar ↗
  15. Jianhua Yuan, Yanyan Zhao, Yanyue Lu, and Bing Qin. 2022a. SSR: utilizing simplified stance reasoning process for robust stance detection (https://aclanthology.org/2022.coling-1.596). In Proceedings of the 29th International Conference on Computational Linguistics, COLING 2022, Gyeongju, Republic of Korea, October 12-17, 2022, pages 6846–6858. International Committee on Computational Linguistics. our card
  16. Jianhua Yuan, Yanyan Zhao, and Bing Qin. 2022b. Debiasing stance detection models with counterfactual reasoning and adversarial bias learning (https://doi.org/10.48550/ARXIV.2212.10392). CoRR, abs/2212.10392. OpenAlex ↗ · Scholar ↗
  17. Chujie Zheng, Hao Zhou, Fandong Meng, Jie Zhou, and Minlie Huang. 2023. Large language models are not robust multiple choice selectors (https://doi.org/10.48550/ARXIV.2309.03882). CoRR, abs/2309.03882. OpenAlex ↗ · Scholar ↗
  18. Naitian Zhou, David Bamman, and Isaac L. Bleaman. 2025. Culture is not trivia: Sociocultural theory for cultural nlp (https://doi.org/10.18653/v1/2025.acl-long.1256). Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (ACL), 1: Long Papers:25869–25886. our card
  19. Yuhang Zhou, Paiheng Xu, Xiaoyu Liu, Bang An, Wei Ai, and Furong Huang. 2023. Explore spurious correlations at the concept level in language models for text classification (https://doi.org/10.48550/ARXIV.2311.08648). CoRR, abs/2311.08648. OpenAlex ↗ · Scholar ↗