Not All or None: Dynamic Construction of Target-aware Memory Graph for Conversational Stance Detection
Summary
This paper proposes TamGraph, a target-aware memory graph method that dynamically selects relevant historical conversations using an entropy-guided mechanism to enhance LLM performance in conversational stance detection tasks.
View Cached Full Text
Cached at: 09/01/26, 12:16 PM
# Not All or None: Dynamic Construction of Target-aware Memory Graph for Conversational Stance Detection
Source: [https://arxiv.org/html/2608.29066](https://arxiv.org/html/2608.29066)
Yifan XiangAffiliation:The Chinese University of Hong Kong, Hong Kong, ChinaAffiliation:MoE Key Laboratory of High Confidence Software Technologies, ChinaBin Liang††thanks:Corresponding author\.Affiliation:The Chinese University of Hong Kong, Hong Kong, ChinaAffiliation:MoE Key Laboratory of High Confidence Software Technologies, ChinaRuifeng XuAffiliation:Harbin Institute of Technology, Shenzhen, China\{yfxiang, kfwong\}@se\.cuhk\.edu\.hk, bin\.liang@cuhk\.edu\.hkKam\-Fai WongAffiliation:The Chinese University of Hong Kong, Hong Kong, ChinaAffiliation:MoE Key Laboratory of High Confidence Software Technologies, China
###### Abstract
Stance detection is crucial for understanding the underlying attitude of an expression towards a target\. Conversational stance detection is a more challenging stance detection task in real\-world social media scenarios, as it involves detecting the user’s stance by leveraging the target\-related historical statements across conversational sessions\. In this paper, we propose target\-aware Memory GraphTamGraph, a novel method that dynamically leverages target\-related statements for conversational stance detection\. Instead of considering all preceding historical conversations or using no prior conversation information for stance detection, ourTamGraphemploys a stepwise, entropy\-guided backtracking mechanism to selectively activate memory from historical conversations and dynamically constructs a target\-aware graph to model the stance relations among utterances\. This allows the exploitation of target\-related information from the conversation history for stance detection while preventing the introduction of noise\. Experimental results on both English and Chinese benchmarks demonstrate that ourTamGraphsubstantially improves LLM performance on conversational stance detection\.
Figure 1:The comparison between our method and other prompting baselines\.## 1Introduction
Stance detection aims to determine people’s opinionated standpoint or attitude \(e\.g\., Favor, Against, or Neutral\) in a post towards a specific target, entity, topic, or claim[Augenstein et al\. \(2016\)](https://arxiv.org/html/2608.29066#bib.bib2)\. While conversational stance detection requires determining the stance of a conversation utterance as favor, against, or neutral toward a given target based on the conversation information[Niu et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib10)\.
Existing research on LLM\-based stance detection[Zhang et al\. \(2022\)](https://arxiv.org/html/2608.29066#bib.bib17);[Zhang et al\. \(2023\)](https://arxiv.org/html/2608.29066#bib.bib18);[Gatto et al\. \(2023\)](https://arxiv.org/html/2608.29066#bib.bib5)demonstrates the strong capability of LLMs across various prompting strategies\. Some works design reasoning chains to elicit incremental and interpretable inference[Ma et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib8);[Weinzierl and Harabagiu \(2024\)](https://arxiv.org/html/2608.29066#bib.bib15), while others demonstrate the feasibility of data augmentation with fine\-tuning[Zhao et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib19);[Ding et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib3);[Wagner et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib13)\. Additionally, bias\-oriented analyses examine LLM behaviours across diverse settings, offering mitigation directions[Li et al\. \(2025\)](https://arxiv.org/html/2608.29066#bib.bib7);[Nguyen and Kim \(2025\)](https://arxiv.org/html/2608.29066#bib.bib9)\. However, these approaches typically focus on the stance of a single utterance, thus failing to reflect real\-world scenarios \(e\.g\., social media threads\), where utterances are embedded in conversations\.
Recent advances[Niu et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib10);[Ding et al\. \(2025\)](https://arxiv.org/html/2608.29066#bib.bib4);[Niu et al\. \(2025\)](https://arxiv.org/html/2608.29066#bib.bib11)introduce conversational stance detection benchmarks and propose promising methods that exploit conversational information for stance detection\. However, a key limitation of these approaches lies in their rough reliance on full conversation history\. Such a strategy fails to account for the fact that absorbing excessive sessions often includes substantial target\-irrelevant or misleading content that not only introduces noise but also hinders stance detection\.
To address these limitations, we propose a novel method for conversational stance detection that dynamically constructs aTarget\-awareMemoryGraphduring the conversation, calledTamGraph\. Built upon LLMs, ourTamGraphemploys a stepwise and entropy\-guided backtracking mechanism to selectively activate target\-related information from conversation history as memories for the dynamic construction of a target\-aware graph, enabling the modeling of stance relations across utterances\. This process gradually incorporates memories that can boost the confidence of stance prediction into the graph and stops when evidence suffices, essentially avoiding rough and indiscriminate injection of full conversations\. To this end, this produces a target\-focused, pruned context that filters irrelevant noise and misleading information, enabling more reliable stance detection in complex, multi\-turn interactions\.
More concretely,TamGraphperforms target\-aware backtracking over the conversation history\. Starting from the last utterance, it traverses backwards along the reply chain, sequentially retrieving only those prior turns whose propositions are target\-related and activating them as memory\. At each step, it induces the relations \(e\.g\.,support,against,questions\) between the newly activated propositions from the retrieved turn and the propositions from the last retained turn\. Then, the dynamic target\-aware memory graph is updated correspondingly, where propositions serve as nodes and the induced inter\-turn relations as edges\. The updated graph is serialized into a structured prompt and provided to the LLM for stance detection\. Crucially, the entropy of the LLM’s intermediate inference provides a principled signal for both selective memory updates and early stopping: \(i\) a newly retrieved turn is retained, and the memory graph is updated only when it increases the predictive confidence, and \(ii\) the backtracking process terminates once the entropy reaches a predefined threshold or no further conversation turns are available\. This procedure yields a progressively refined memory graph that preserves supportive evidence and discards unhelpful history\. Experimental results on an English benchmark MT\-CSD and a Chinese benchmark ZS\-CSD demonstrate that ourTamGraphsubstantially improves LLM performance on conversational stance detection\.
Our main contributions are as follows:
- •We are the first to introduce a stepwise, backtracking method for conversational stance detection, motivated by the observation that incorporating the entire conversation history can introduce target\-irrelevant or misleading information and thus degrade the prediction accuracy\.
- •We proposeTamGraph\(Target\-awareMemoryGraph\), which selectively activates target\-related memories from the preceding turns in the conversation and encodes them into a target\-aware memory graph with their relations, thereby providing informative and target\-centric contexts while mitigating noise from irrelevant or misleading turns\.
- •Experimental results on English benchmark MT\-CSD and Chinese benchmark ZS\-CSD show thatTamGraphconsistently improves the performance over multiple prompting baselines and ablation variants across a wide range of LLM backbones, demonstrating the effectiveness of the stepwise, backtracking, and entropy\-guided strategy\. Moreover, applying TamGraph on the models Qwen2\.5\-14B\-Instruct and Qwen3\-4B\-Instruct\-2507 achieves performance comparable to the strong closed\-source baseline GPT\-4o\-mini in both multi\-turn and single\-turn input settings\.
## 2Related Works
### 2\.1Stance Detection with LLMs
Recently, a stream of works applies LLMs to stance detection\. TR\-ZSSD[Weinzierl and Harabagiu \(2024\)](https://arxiv.org/html/2608.29066#bib.bib15), and CoS[Ma et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib8)propose prompting schemes to guide LLMs to perform incremental reasoning, yielding interpretable and accurate predictions\. Meanwhile, fine\-tuning offers a practical mechanism for endowing LLMs with task\-specific knowledge; accordingly, data augmentation with fine\-tuning has demonstrated the feasibility in stance detection[Zhao et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib19);[Ding et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib3);[Wagner et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib13)\. However, these efforts primarily focus on single\-utterance stance detection without multi\-turn context, whereas we extend this research area to conversational settings\.
### 2\.2Conversational Stance Detection: Methods and Datasets
Beyond single\-utterance settings, recent works have explored stance detection in multi\-turn contexts and benchmarks\. GLAN[Niu et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib10)introduces a large\-scale English conversational stance detection dataset, MT\-CSD, and GLAN, a framework that models reply dependencies and local interactions via attention, CNN, and GCN components\. ZS\-CSD[Ding et al\. \(2025\)](https://arxiv.org/html/2608.29066#bib.bib4)extends this line of research to Chinese, releasing another dataset and proposing SITPCL, which combines a speaker\-interaction graph over both intra\- and inter\-speaker relations with target\-aware prototypical contrastive learning\. Yet, these studies generally do not consider LLM\-based frameworks, which are the primary focus of our work\.
## 3Methods
Given a conversation𝒟=\(U,E,τ\)\\mathcal\{D\}=\(U,E,\\tau\), whereU=\{u1,…,un\}U=\\\{u\_\{1\},\\dots,u\_\{n\}\\\}is the sequence of utterancesuiu\_\{i\},EEare reply links between utterances, andτ\\tauis the target, the task is to predict the stance of the final utteranceun∈Uu\_\{n\}\\in U\. We proposeTarget\-awareMemoryGraph\(TamGraph\), which performs target\-aware backward retrieval over the conversation history to generate memory contexts for LLM\-based stance detection step by step\. It incrementally activatesτ\\tau\-related propositions from earlier turns as memory, and constructs a dynamic target\-aware memory graph whose edges encode the relations \(e\.g\.,support,against,questions\) among these propositions\. Subsequently, the stance is detected by prompting an LLM with the progressively reconstructed memory graph\. At each step, we adopt an entropy threshold to determine \(i\) whether the newly retrieved memory increases predictive confidence and should be retained, and \(ii\) whether the current memory graph provides sufficient evidence for an early\-stopping decision\.
### 3\.1TamGraph Initialization
We construct an LLM\-based classifierfθf\_\{\\theta\}over a structured promptΠ\(⋅\)\\Pi\(\\cdot\)that produces a single\-token labely∈𝒴=\{favor,against,none\}y\\in\\mathcal\{Y\}=\\\{favor,against,none\\\}\. At the stept=0t=0, we initialize theTamGraphG0=\(V0,E0\)G\_\{0\}=\(V\_\{0\},E\_\{0\}\)withV0=unV\_\{0\}=u\_\{n\}andE0=∅E\_\{0\}=\\varnothing, and build the promptC0C\_\{0\}fromG0G\_\{0\}\. By promptingfθf\_\{\\theta\}withΠ\(C0\)\\Pi\(C\_\{0\}\), we obtain the logitsz0z\_\{0\}, the predicted labely0y\_\{0\}:
z0,y0=fθ\(Π\(C0\)\),z\_\{0\},y\_\{0\}=f\_\{\\theta\}\(\\Pi\(C\_\{0\}\)\),\(1\)and the probabilitiesp0=softmax\(z0\)p\_\{0\}=\\mathrm\{softmax\}\(z\_\{0\}\)\. For each steptt, we define the entropyH\(pt\)H\(p\_\{t\}\)as:
H\(pt\)=−∑y∈𝒴pt\(y\)logpt\(y\),H\(p\_\{t\}\)=\-\\sum\_\{y\\in\\mathcal\{Y\}\}p\_\{t\}\(y\)\\,\\log p\_\{t\}\(y\),\(2\)and select an entropy thresholdθ\\theta\. IfH\(p0\)≤θH\(p\_\{0\}\)\\leq\\theta, we outputy0y\_\{0\}as the final decision\.
### 3\.2TamGraph Updates and Inference Procedure
Otherwise, ifH\(p0\)\>θH\(p\_\{0\}\)\>\\theta, we retainu0u\_\{0\}, setH\(pr\)=H\(p0\)H\(p\_\{r\}\)=H\(p\_\{0\}\)and regard the prediction as uncertain and iteratively expand theTamGraph\. At stept≥1t\\geq 1, we have the last retained utteranceuru\_\{r\}\(e\.g\., at stept=1t=1,ur=unu\_\{r\}=u\_\{n\}\) and the next preceding utteranceutu\_\{t\}onEE\. We activate memory inutu\_\{t\}viaproposition extractionto obtain target\-related propositionsS\(ut\)S\(u\_\{t\}\):
S\(ut\)=\{st,1,…,st,m\},st,i⊆un\.S\(u\_\{t\}\)=\\\{\\,s\_\{t,1\},\\,\\dots,\\,s\_\{t,m\}\\,\\\},\\quad s\_\{t,i\}\\subseteq u\_\{n\}\.\(3\)and alsoS\(ur\)S\(u\_\{r\}\)\. Next, we performrelation inductionbetweenS\(ut\)S\(u\_\{t\}\)andS\(ur\)S\(u\_\{r\}\), yielding:
Rt=\{\(si,sj,ρ\)∣si∈S\(ut\),sj∈S\(ur\)\},R\_\{t\}=\\\{\(s\_\{i\},s\_\{j\},\\rho\)\\mid s\_\{i\}\\in S\(u\_\{t\}\),\\ s\_\{j\}\\in S\(u\_\{r\}\)\\\},\(4\)whereρ∈\{support,against,questions,…\}\\rho\\in\\\{\\textit\{support\},\\textit\{against\},\\textit\{questions\},\\dots\\\}denotes the stance ofsjs\_\{j\}towardssis\_\{i\}\. We then construct an updated TamGraphG~t=\(V~t,E~t\)\\tilde\{G\}\_\{t\}=\(\\tilde\{V\}\_\{t\},\\tilde\{E\}\_\{t\}\)by adding the nodeutu\_\{t\}and edgesRtR\_\{t\}:
V~t=Vt−1∪ut,\\tilde\{V\}\_\{t\}=V\_\{t\-1\}\\cup u\_\{t\},\(5\)E~t=Et−1∪\{si←𝜌sj∣\(si,sj,ρ\)∈Rt\}\.\\tilde\{E\}\_\{t\}=E\_\{t\-1\}\\cup\\\{\\,s\_\{i\}\\xleftarrow\{\\rho\}s\_\{j\}\\mid\(s\_\{i\},s\_\{j\},\\rho\)\\in R\_\{t\}\\,\\\}\.\(6\)We build the promptCtC\_\{t\}fromG~t\\tilde\{G\}\_\{t\}, and recomputezt,yt=fθ\(Π\(Ct\)\)z\_\{t\},y\_\{t\}=f\_\{\\theta\}\(\\Pi\(C\_\{t\}\)\),pt=softmax\(zt\)p\_\{t\}=\\mathrm\{softmax\}\(z\_\{t\}\), andH\(pt\)H\(p\_\{t\}\)\. IfH\(pt\)≤H\(pr\)H\(p\_\{t\}\)\\leq H\(p\_\{r\}\), we retain this memory update, settingGt=G~tG\_\{t\}=\\tilde\{G\}\_\{t\},ur=utu\_\{r\}=u\_\{t\}andH\(pr\)=H\(pt\)H\(p\_\{r\}\)=H\(p\_\{t\}\); otherwise, we discardutu\_\{t\}, keepGt=Gt−1G\_\{t\}=G\_\{t\-1\}, and proceed to the next preceding utteranceut\+1u\_\{t\+1\}onEE\. The recursion terminates onceH\(pt\)≤θH\(p\_\{t\}\)\\leq\\thetaor no preceding utterances remain, and the final decision is the predictionyyproduced at the last retainedTamGraphupdate\.
The detailed procedure is presented in the Algorithm[1](https://arxiv.org/html/2608.29066#algorithm1)and all prompts are detailed in the Table[17](https://arxiv.org/html/2608.29066#A7.T17), Table[18](https://arxiv.org/html/2608.29066#A7.T18), Table[19](https://arxiv.org/html/2608.29066#A7.T19), and Table[20](https://arxiv.org/html/2608.29066#A7.T20)in the section[A](https://arxiv.org/html/2608.29066#A1)in the Appendix\.
Algorithm 1Procedure of TamGraph ConstructionInput:
𝒟=\(U,E,τ\)\\mathcal\{D\}=\(U,E,\\tau\), entropy threshold
θ\\theta
Output:
y∈\{favor,against,none\}y\\in\\\{\\texttt\{favor\},\\texttt\{against\},\\texttt\{none\}\\\}
G←\{un\}G\\leftarrow\\\{u\_\{n\}\\\};
C=build\_prompt\(G\)C=\\mathrm\{build\\\_prompt\}\(G\);
\(z,y\)←fθ\(Π\(C\)\)\(z,y\)\\leftarrow f\_\{\\theta\}\(\\Pi\(C\)\);
p←softmax\(z\)p\\leftarrow\\mathrm\{softmax\}\(z\);
H←Entropy\(p\)H\\leftarrow\\mathrm\{Entropy\}\(p\);
if*H≤θH\\leq\\theta*then
return
y;y;
ur←u0u\_\{r\}\\leftarrow u\_\{0\};
ut←u\_\{t\}\\leftarrowthe replied\-to utterance of
uru\_\{r\}in
EE;
while*ut≠∅u\_\{t\}\\neq\\varnothingandH\>θH\>\\theta*do
S\(ut\)←proposition\_extraction\(q,τ\)S\(u\_\{t\}\)\\leftarrow\\mathrm\{proposition\\\_extraction\}\(q,\\tau\);
S\(ur\)←proposition\_extraction\(ur,τ\)S\(u\_\{r\}\)\\leftarrow\\mathrm\{proposition\\\_extraction\}\(u\_\{r\},\\tau\);
R←relation\_induction\(S\(ut\),S\(ur\),τ\)R\\leftarrow\\mathrm\{relation\\\_induction\}\(S\(u\_\{t\}\),S\(u\_\{r\}\),\\tau\);
G~←G∪ut∪R\\tilde\{G\}\\leftarrow G\\cup u\_\{t\}\\cup R;
C=build\_prompt\(G~\)C=\\mathrm\{build\\\_prompt\}\(\\tilde\{G\}\);
\(z~,y~\)←fθ\(Π\(C\)\)\(\\tilde\{z\},\\tilde\{y\}\)\\leftarrow f\_\{\\theta\}\(\\Pi\(C\)\);
p~←softmax\(z~\)\\tilde\{p\}\\leftarrow\\mathrm\{softmax\}\(\\tilde\{z\}\);
H~←Entropy\(p~\)\\tilde\{H\}\\leftarrow\\mathrm\{Entropy\}\(\\tilde\{p\}\);
if*H~≤H\\tilde\{H\}\\leq H*then
G←G~G\\leftarrow\\tilde\{G\};
ur←utu\_\{r\}\\leftarrow u\_\{t\};
p←p~p\\leftarrow\\tilde\{p\};
H←H~H\\leftarrow\\tilde\{H\};
y←y~y\\leftarrow\\tilde\{y\};
ut←u\_\{t\}\\leftarrowthe next preceding utterance on
EE;
return
yy;
## 4Experimental Setup
Benchmarks\.We conduct experiments on two conversational stance detection benchmarks\. For English, we use MT\-CSD[Niu et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib10), which contains 15876 instances with Bitcoin, Tesla, SpaceX, Biden, and Trump as targets\. For Chinese, we use ZS\-CSD[Ding et al\. \(2025\)](https://arxiv.org/html/2608.29066#bib.bib4), which consists of 17063 conversations with 113 noun\-phrase\-type targets and 167 claim\-type targets\. Their labels are either favor, against, or none\. We conduct experiments on the test set of both benchmarks\. Models\.We evaluate five LLMs of various sizes: Qwen2\.5\-Instruct \(3B, 7B, 14B\)[Team \(2024\)](https://arxiv.org/html/2608.29066#bib.bib12), Qwen3\-4B\-Instruct\-2507[Yang et al\. \(2025\)](https://arxiv.org/html/2608.29066#bib.bib16), Llama\-3\.1\-8B\-Instruct[Grattafiori et al\. \(2024\)](https://arxiv.org/html/2608.29066#bib.bib6)\. All models are evaluated on MT\-CSD\. On ZS\-CSD, we exclude Llama\-3\.1\-8B\-Instruct due to its limited native support for Chinese\. Besides, we analyze GPT\-4o\-mini[Achiam et al\. \(2023\)](https://arxiv.org/html/2608.29066#bib.bib1)as a strong closed\-source baseline\. Baselines\.We consider three input settings: \(i\)*single\-turn input*, where LLMs only receive the target utterance, \(ii\)*multi\-turn input*, where LLMs also receive the entire conversation, and \(iii\)*Chain\-of\-Thought \(CoT\) prompting*[Wei et al\. \(2022\)](https://arxiv.org/html/2608.29066#bib.bib14), where LLMs are given the entire conversation and the target utterance and instructed to perform step\-by\-step reasoning before outputting the stance label\. Additionally, we include GPT\-4o\-mini[Achiam et al\. \(2023\)](https://arxiv.org/html/2608.29066#bib.bib1)as a strong closed\-source baseline, GLAN and SITPCL as non\-LLM baselines\. For MT\-CSD, we design prompts in English, whereas for ZS\-CSD, we use Chinese translations consistent with the native language of the benchmark\. The prompts are detailed in the Table[13](https://arxiv.org/html/2608.29066#A7.T13), Table[14](https://arxiv.org/html/2608.29066#A7.T14), and Table[15](https://arxiv.org/html/2608.29066#A7.T15)in the section[A](https://arxiv.org/html/2608.29066#A1)in the Appendix\. Implement Details\.Since stance detection requires stable predictions, and to ensure reproducibility, we set the temperature to 0\. Model performance is evaluated using accuracy and macro F1\. In our method, we set the entropy threshold at 0\.6 in the main experiments\. We report results for each target in MT\-CSD and the overall results on both benchmarks\.
Table 1:Comparison of single\-turn, multi\-turn, CoT, and our method on MT\-CSD and ZS\-CSD\. On ZS\-CSD, we exclude Llama\-3\.1\-8B\-Instruct due to its limited native support for Chinese\. For each model block and each column, the best \(second\-best\) value for accuracy and macro F1 is shown inbold\(underline\)\.
## 5Results
Table 2:Detailed results of BM25 retrieval baselines with different query modes on MT\-CSD for five models, compared with our method\. For each model block, we report three query variants and our method\.### 5\.1Main Results
We regard each combination of a target and a model as one group for MT\-CSD, and each model as a group for ZS\-CSD, which is not pre\-partitioned by target\. Within each group, we compare our method against the three baselines\.
Table[1](https://arxiv.org/html/2608.29066#S4.T1)showcases the results\. Our method achieves the highest overall weighted accuracy and macro F1 on all targets and both benchmarks\. Specifically, averaged over all models, it yields massive improvements of 4\.93%, 5\.68%, and 2\.75% on weighted accuracy over the single\-turn input, multi\-turn input, and CoT prompting baselines, respectively, and gains of 6\.68%, 5\.56%, and 1\.82% on macro F1\. In detail, across 29 groups, our method ranks first in 19 groups and second in 5 groups\. Moreover, as shown in Figure[2](https://arxiv.org/html/2608.29066#S5.F2), our methods on Qwen2\.5\-14B and Qwen3\-4B achieve performance comparable to, or even better than, GPT\-4o\-mini under single\-turn and multi\-turn inputs, which indicates that our method unlocks strong capabilities in small\-size LLMs\. These advances demonstrate the effectiveness of our method in LLM\-based conversational stance detection in multi\-language settings\.
In particular, our method consistently achieves a substantial lead on “Tesla” and “SpaceX” in MT\-CSD, where multi\-turn input often degrades performance compared with single\-turn input\. It also performs well in noise\-heavy settings: for “Biden” in MT\-CSD and ZS\-CSD, where GPT\-4o\-mini relevance detection identifies 60\.89% and 56\.51% of utterances as target\-irrelevant, respectively \(prompt detailed in the Table[16](https://arxiv.org/html/2608.29066#A7.T16)in the section[A](https://arxiv.org/html/2608.29066#A1)in the Appendix\), our method achieves the highest accuracy in 6 out of 9 groups and ranks second in 1 group\. These observations illustrate that our method is effective when conversations contain substantial irrelevant or potentially harmful context\. Building on these insights, we demonstrate that the core of our method, selectively and dynamically activating target\-related memory and constructing a target\-aware memory graph, is principled and effective in distilling informative expressions from conversation history and brings reliable gains\.
We also compare our method with non\-LLM baselines, including GLAN for MT\-CSD and SITPCL for ZS\-CSD\. Our method outperforms GLAN in most target\-specific settings and achieves better overall performance on MT\-CSD\. On ZS\-CSD, our best result on Qwen2\.5\-14B reaches 46\.59% in macro\-F1, highly outperforming the 43\.81% reported by SITPCL\. These results further demonstrate the effectiveness of our method beyond LLM\-based prompting baselines\.
Figure 2:The comparison between the performance of our method on Qwen2\.5\-14B\-Instruct and Qwen3\-4B\-Instruct\-2507 and GPT\-4o\-mini\. The detailed results are presented in Table[12](https://arxiv.org/html/2608.29066#A7.T12)in the Appendix\.
### 5\.2Comparison with retrieval\-based baselines
We consider a retrieval\-based baseline that selects evidence from the full conversation history using BM25\. Specifically, we evaluate three query modes for retrieval: using only the target, using only the target utterance, and using the combination of target and utterance as the query\. For each query mode, we retrieve the top\-2 evidence turns as the input context for stance detection as our baselines\. Table[2](https://arxiv.org/html/2608.29066#S5.T2)reports the results across the five models on MT\-CSD\. Overall, while BM25 provides a strong and simple global\-retrieval baseline, our method achieves consistently better performance across different models and retrieval settings\. This suggests that the gains of our method are not solely due to selecting several topically related turns, but also depend on entropy\-guided evidence selection and structured evidence integration\.
Figure 3:Ablation studies on the entropy threshold vs\. performance across five models\. The horizontal axis denotes the entropy threshold, and the vertical axis shows the overall weighted accuracy and macro F1\.Figure 4:Ablation studies on the entropy threshold vs\. token usage across five models\. The horizontal axis denotes the entropy threshold, and the vertical axis shows the average number of token usage per sample\.
### 5\.3Ablation Studies
We conduct ablation studies on MT\-CSD to analyze the effect of entropy threshold control\. We vary the entropy threshold in\{0\.0,0\.2,0\.4,0\.6,0\.8\}\\\{0\.0,0\.2,0\.4,0\.6,0\.8\\\}, where a higher threshold encourages earlier stopping and uses fewer conversation turns\. The threshold0\.00\.0corresponds to disabling entropy\-based early stopping\. We further evaluate two variants: \(i\)w/o entropy threshold, which disables entropy\-based memory selection and early stopping, and instead incorporates all conversation turns and relations to construct the TamGraph; and \(ii\)random turn selection, which randomly samples conversation turns and induces their relations for TamGraph construction\. We report accuracy, macro F1, and token usage during inference to evaluate both performance and computational cost\.
Figure[3](https://arxiv.org/html/2608.29066#S5.F3)presents the effect of the various entropy thresholds on performance\. Across all five models, our method consistently yields performance gains under a wide range of settings, and the accuracy and macro F1 remain within a relatively narrow band as the threshold varies, indicating robustness to thresholds\. Meanwhile, the impact of different thresholds is not uniform across models, reflecting their varying sensitivity to the early\-stopping mechanism\. The detailed results for each target are presented in the section[D](https://arxiv.org/html/2608.29066#A4)in the Appendix\.
Figure[4](https://arxiv.org/html/2608.29066#S5.F4)illustrates the effect of the entropy threshold on token usage\. The results demonstrate the effectiveness of the early\-stopping mechanism in reducing computational cost\. Compared to the variant without entropy\-based early\-stopping \(entropy threshold=0=0\), the average number of token usage during inference drops noticeably\. As the threshold increases, token usage decreases even more while preserving competitive performance\.
Tables[6](https://arxiv.org/html/2608.29066#A7.T6)and Table[7](https://arxiv.org/html/2608.29066#A7.T7)report the results of the “w/o entropy threshold” and “random turn selection”, respectively\. Compared with our method, removing the entropy threshold results in an overall 3\.60% accuracy drop and 1\.46% macro F1 drop, while random turn selection leads to an overall 3\.09% accuracy drop and 1\.32% macro F1 drop\. Figure[5](https://arxiv.org/html/2608.29066#S5.F5)further compares our method with the w/o entropy threshold variant across the five models\. These degradations highlight the effectiveness of our entropy\-based TamGraph construction and early\-stopping strategy in selecting informative context\. In particular, rather than incorporating all conversation turns, TamGraph supports stepwise and selective memory update that can filter noise and terminate once sufficient evidence has been accumulated, yielding more reliable results than using the full conversation history\.
Figure 5:The comparison between the performance of our method and the “w/o entropy threshold”\.Figure 6:Qualitative example of our method and CoT baseline\.
### 5\.4Discussion
#### 5\.4\.1Performance Gap Analysis
We observe clear performance variations across targets and models\. On MT\-CSD, our method achieves particularly strong gains on “Tesla” and “Trump”, where it obtains the best accuracy across all models, while the improvement on “Bitcoin” is relatively limited\. From the model perspective, our method brings substantial improvements on Qwen2\.5\-3B and Qwen2\.5\-7B across multiple targets and benchmarks, whereas the gains on Llama\-3\.1\-8B are more moderate\. Building on LLMs, our method unavoidably depends on the models’ underlying capability\. Nevertheless, the strong gains on relatively small models and the consistently positive margins across most settings jointly demonstrate that our method effectively enhances weaker backbones while maintaining robust performance\.
#### 5\.4\.2Entropy–Accuracy Correlation Analysis
Although LLM\-generated intermediate outputs may contain hallucinations or extraction errors, our method achieves consistent improvements over baselines, suggesting that these outputs remain effective in aggregate for organizing target\-related evidence\. To further validate entropy\-guided backtracking, we analyze results on MT\-CSD across five models, totaling 11,855 test samples\. We find that cases where an initially correct prediction becomes incorrect after backtracking are rare, occurring in only 317 cases \(2\.67%\)\. In addition, cases where entropy decreases but the final prediction remains incorrect account for only 908 cases \(7\.66%\)\. These results demonstrate that entropy serves as an effective and reliable signal for selecting and organizing target\-related evidence and the robustness of LLM\-generated intermediate outputs\.
### 5\.5Case Study
As illustrated in Figure[6](https://arxiv.org/html/2608.29066#S5.F6), the qualitative example on Qwen2\.5\-7B shows how TamGraph supports conversational stance detection\. Our method identifies target\-related propositions, induces their relations, and constructs a target\-aware memory graph, enabling the model to capture the negative and sarcastic meaning of the target utterance\. In contrast, the CoT baseline misinterprets the utterance as positive and supportive toward “public roads being used for testing purposes,” leading to an incorrect prediction\. This suggests that baselines have limited capability to exploit conversation structure, while TamGraph better organizes conversational evidence and helps the model handle implicit stance cues such as sarcasm\. Additional qualitative examples are provided in the section[E](https://arxiv.org/html/2608.29066#A5)in the Appendix\.
## 6Conclusion
In this paper, we first conduct preliminary experiments across multiple conversational stance detection settings on various LLMs and reveal that indiscriminately incorporating the entire conversation history impedes the performance of LLMs due to the introduction of noise and target\-irrelevant information\. To address this limitation, we proposeTamGraph\(Target\-awareMemoryGraph\), a novel stepwise, backtracking method that selectively activates target\-related propositions as memory from preceding turns in the conversation and dynamically constructs and updates a target\-aware memory graph\. Utilizing the entropy\-guided selective memory update and early\-stopping mechanism, TamGraph retains only confidence\-improving evidence and filters misleading turns, providing informative and target\-centric contexts for LLMs and mitigating noise from irrelevant conversation history\. Experimental results on an English benchmark, MT\-CSD, and a Chinese benchmark, ZS\-CSD, illustrate that TamGraph substantially improves LLM performance on conversational stance detection in multi\-language settings and also outperforms benchmark\-specific non\-LLM baselines\. Further ablation studies demonstrate the effectiveness of our entropy\-guided selective memory update and early\-stopping mechanism\.
## Limitations
There are several limitations in this work\. First, TamGraph is built upon LLMs; therefore, it unavoidably depends on the underlying capabilities of the backbone models for memory activation and entropy\-based control\. Errors in these intermediate steps may propagate to the memory graph and affect the final result\. Second, the stepwise procedure can result in substantial overhead for long conversations, as it may require multiple iterations, leading to increased latency and token consumption\. Third, due to computational constraints, we evaluate TamGraph on models of comparatively small sizes\. Although the method consistently improves performance and even reaches performance comparable to GPT\-4o\-mini on several models, further validation on larger and more diverse frontier models can be conducted to characterize its scaling behaviours\. Despite these limitations, we hope our research offers useful insights for future investigation on conversational stance detection\.
## Ethical considerations
This research focuses on conversational stance detection using publicly available datasets\. All datasets used in this paper are released under permissive licenses, are used consistently with their intended purposes, and do not contain personally identifiable information\. However, due to the nature of the task, the conversations may include controversial or sensitive opinions about real\-world entities \(e\.g\., public figures, organizations, or events\)\. No human subjects were involved in data collection in this paper\. While our method is designed to detect the stance expressed in a given utterance, it may produce incorrect predictions, and any model outputs or reported results reflect the content of the datasets rather than the views of the authors\.
## Acknowledgements
This work is partially supported by Hong Kong RGC GRF No\. 14206324, CUHK direct grant No\. 4055291, National Natural Science Foundation of China 62576120, and CIPS\-SMP\-Zhipu Large Model Fund\.
## References
- Achiam et al\. \(2023\)Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, and 1 others\. 2023\.Gpt\-4 technical report\.*arXiv preprint arXiv:2303\.08774*\.
- Augenstein et al\. \(2016\)Isabelle Augenstein, Tim Rocktäschel, Andreas Vlachos, and Kalina Bontcheva\. 2016\.Stance detection with bidirectional conditional encoding\.In*Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing*, pages 876–885\.
- Ding et al\. \(2024\)Daijun Ding, Rong Chen, Liwen Jing, Bowen Zhang, Xu Huang, Li Dong, Xiaowen Zhao, and Ge Song\. 2024\.Cross\-target stance detection by exploiting target analytical perspectives\.In*ICASSP 2024\-2024 IEEE International Conference on Acoustics, Speech and Signal Processing \(ICASSP\)*, pages 10651–10655\. IEEE\.
- Ding et al\. \(2025\)Yuzhe Ding, Kang He, Bobo Li, Li Zheng, Haijun He, Fei Li, Chong Teng, and Donghong Ji\. 2025\.[Zero\-shot conversational stance detection: Dataset and approaches](https://doi.org/10.18653/v1/2025.findings-acl.168)\.In*Findings of the Association for Computational Linguistics: ACL 2025*, pages 3221–3235, Vienna, Austria\. Association for Computational Linguistics\.
- Gatto et al\. \(2023\)Joseph Gatto, Omar Sharif, and Sarah M\. Preum\. 2023\.[Chain\-of\-thought embeddings for stance detection on social media](https://doi.org/10.18653/v1/2023.findings-emnlp.273)\.In*Findings of the Association for Computational Linguistics: EMNLP 2023*, pages 4154–4161, Singapore\. Association for Computational Linguistics\.
- Grattafiori et al\. \(2024\)Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al\-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, and 1 others\. 2024\.The llama 3 herd of models\.*arXiv preprint arXiv:2407\.21783*\.
- Li et al\. \(2025\)Ang Li, Jingqian Zhao, Bin Liang, Lin Gui, Hui Wang, Xi Zeng, Xingwei Liang, Kam\-Fai Wong, and Ruifeng Xu\. 2025\.[Mitigating biases of large language models in stance detection with counterfactual augmented calibration](https://doi.org/10.18653/v1/2025.naacl-long.362)\.In*Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 1: Long Papers\)*, pages 7075–7092, Albuquerque, New Mexico\. Association for Computational Linguistics\.
- Ma et al\. \(2024\)Junxia Ma, Changjiang Wang, Hanwen Xing, Dongming Zhao, and Yazhou Zhang\. 2024\.Chain of stance: Stance detection with large language models\.In*CCF International Conference on Natural Language Processing and Chinese Computing*, pages 82–94\. Springer\.
- Nguyen and Kim \(2025\)Quang Minh Nguyen and Taegyoon Kim\. 2025\.[Is external information useful for stance detection with LLMs?](https://doi.org/10.18653/v1/2025.findings-acl.764)In*Findings of the Association for Computational Linguistics: ACL 2025*, pages 14798–14807, Vienna, Austria\. Association for Computational Linguistics\.
- Niu et al\. \(2024\)Fuqiang Niu, Min Yang, Ang Li, Baoquan Zhang, Xiaojiang Peng, and Bowen Zhang\. 2024\.[A challenge dataset and effective models for conversational stance detection](https://aclanthology.org/2024.lrec-main.11/)\.In*Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation \(LREC\-COLING 2024\)*, pages 122–132, Torino, Italia\. ELRA and ICCL\.
- Niu et al\. \(2025\)Fuqiang Niu, Yi Yang, Xianghua Fu, Genan Dai, and Bowen Zhang\. 2025\.C\-mtcsd: A chinese multi\-turn conversational stance detection dataset\.In*Companion Proceedings of the ACM on Web Conference 2025*, pages 769–772\.
- Team \(2024\)Qwen Team\. 2024\.[Qwen2\.5: A party of foundation models](https://qwenlm.github.io/blog/qwen2.5/)\.
- Wagner et al\. \(2024\)Stefan Sylvius Wagner, Maike Behrendt, Marc Ziegele, and Stefan Harmeling\. 2024\.Sqbc: Active learning using llm\-generated synthetic data for stance detection in online political discussions\.*arXiv preprint arXiv:2404\.08078*\.
- Wei et al\. \(2022\)Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, and 1 others\. 2022\.Chain\-of\-thought prompting elicits reasoning in large language models\.*Advances in neural information processing systems*, 35:24824–24837\.
- Weinzierl and Harabagiu \(2024\)Maxwell Weinzierl and Sanda Harabagiu\. 2024\.[Tree\-of\-counterfactual prompting for zero\-shot stance detection](https://doi.org/10.18653/v1/2024.acl-long.49)\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 861–880, Bangkok, Thailand\. Association for Computational Linguistics\.
- Yang et al\. \(2025\)An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, and 1 others\. 2025\.Qwen3 technical report\.*arXiv preprint arXiv:2505\.09388*\.
- Zhang et al\. \(2022\)Bowen Zhang, Daijun Ding, Liwen Jing, Genan Dai, and Nan Yin\. 2022\.How would stance detection techniques evolve after the launch of chatgpt?*arXiv preprint arXiv:2212\.14548*\.
- Zhang et al\. \(2023\)Bowen Zhang, Xianghua Fu, Daijun Ding, Hu Huang, Genan Dai, Nan Yin, Yangyang Li, and Liwen Jing\. 2023\.Investigating chain\-of\-thought with chatgpt for stance detection on social media\.*arXiv preprint arXiv:2304\.03087*\.
- Zhao et al\. \(2024\)Chenye Zhao, Yingjie Li, Cornelia Caragea, and Yue Zhang\. 2024\.[ZeroStance: Leveraging ChatGPT for open\-domain stance detection via dataset generation](https://doi.org/10.18653/v1/2024.findings-acl.794)\.In*Findings of the Association for Computational Linguistics: ACL 2024*, pages 13390–13405, Bangkok, Thailand\. Association for Computational Linguistics\.
## Appendix APrompts
In this section, we present the prompts used in our experiments\. Table[13](https://arxiv.org/html/2608.29066#A7.T13), Table[14](https://arxiv.org/html/2608.29066#A7.T14), and Table[15](https://arxiv.org/html/2608.29066#A7.T15)show the prompt templates for the single\-turn input, the multi\-turn input, and the CoT baseline, respectively\. Table[17](https://arxiv.org/html/2608.29066#A7.T17)and Table[18](https://arxiv.org/html/2608.29066#A7.T18)present the prompts used forproposition extractionandrelation induction, respectively, as described in the section[3](https://arxiv.org/html/2608.29066#S3)\. Table[19](https://arxiv.org/html/2608.29066#A7.T19)shows the prompt that converts the memory graph into natural language as the input for LLMs, and Table[20](https://arxiv.org/html/2608.29066#A7.T20)provides the evaluation prompt used in our TamGraph\.
## Appendix BPer\-label Analysis
To provide a more fine\-grained evaluation under label imbalance, we further report per\-label precision, recall, and F1, together with the proportion of instances associated with each gold stance label, in Table[3](https://arxiv.org/html/2608.29066#A2.T3)\. For MT\-CSD, the results cover five backbone models across five targets; for ZS\-CSD, they cover the four Chinese\-capable backbones reported in Table[1](https://arxiv.org/html/2608.29066#S4.T1)\. On MT\-CSD, theagainstandnonelabels achieve comparatively strong F1 scores, whereas the lower recall offavorindicates that favor\-oriented instances remain more difficult to identify\. On ZS\-CSD,noneachieves the highest F1, while the low recall offavorreveals a similar label\-specific challenge\.
Table 3:Pooled per\-label performance of TamGraph across the evaluated model backbones\.
## Appendix CTarget\-irrelevant History Analysis\.
To more systematically quantify the amount of noisy conversational context, we condcut the GPT\-4o\-mini relevance analysis described in Table[16](https://arxiv.org/html/2608.29066#A7.T16)to all targets in MT\-CSD and the complete ZS\-CSD benchmark\. We report both the proportion of target\-irrelevant utterances among all utterances and the proportion among history turns after excluding the final utterance to be evaluated\.
As shown in Table[5](https://arxiv.org/html/2608.29066#A7.T5), a substantial proportion of conversational history is unrelated to the target, particularly for the Biden subset and ZS\-CSD\. We further compare full multi\-turn and single\-turn prompting over the 29 model\-target or model\-dataset settings reported in Table[1](https://arxiv.org/html/2608.29066#S4.T1)\. Full multi\-turn input performs worse in 14 of 29 accuracy settings and 12 of 29 macro\-F1 settings\. These results demonstrate that additional conversational context is not uniformly beneficial and provide direct empirical motivation for selectively activating target\-related history\.
## Appendix DAdditional Ablation study
In this section, we present the detailed results of our ablation study\. Table[8](https://arxiv.org/html/2608.29066#A7.T8), Table[9](https://arxiv.org/html/2608.29066#A7.T9), Table[10](https://arxiv.org/html/2608.29066#A7.T10), and Table[11](https://arxiv.org/html/2608.29066#A7.T11)showcase the accuracy and macro F1 for entropy thresholds of 0\.0, 0\.2, 0\.4, and 0\.8 respectively\. The case of 0\.6 is already presented in the Table[1](https://arxiv.org/html/2608.29066#S4.T1)in the section[5](https://arxiv.org/html/2608.29066#S5)\.
## Appendix EAdditional Case Study
In this section, we provide additional qualitative examples comparing our method with the CoT baseline\. Figure[7](https://arxiv.org/html/2608.29066#A7.F7)illustrates a case where the CoT baseline produces garbled output and thus fails to yield a valid prediction\. Figure[8](https://arxiv.org/html/2608.29066#A7.F8)presents another example in which the CoT baseline incorrectly predicts a favor stance, due to being impacted by the overall conversational stance\. Besides, the TamGraph provided in the cases also illustrates the entropy\-guided memory \(conversation turn\) selection\.
We additionally report a failure case where, for a user asking whether Tesla offers a simpler and less error\-prone adaptive cruise\-control option, all baselines and TamGraph predictagainstinstead ofnone\. TamGraph correctly connects the question to the preceding complaint about Autopilot, but the remaining error reflects the difficulty of distinguishing an information\-seeking question with negative presuppositions from an explicit negative stance\.
## Appendix FDetailed Results of GPT\-4o\-mini
In this section, we report the detailed results of the GPT\-4o\-mini on the MT\-CSD and the ZS\-CSD, corresponding to the Figure[2](https://arxiv.org/html/2608.29066#S5.F2)in the section[5\.1](https://arxiv.org/html/2608.29066#S5.SS1)\. Table[12](https://arxiv.org/html/2608.29066#A7.T12)showcases the accuracy and the macro F1 for each target and benchmark\.
## Appendix GInference Efficiency Analysis
Although backtracking may introduce additional inference calls, its cost is effectively controlled by the entropy\-based early\-stop strategy\. The backtracking depth is highly concentrated: 83\.35% of test cases terminate after only one additional backtracking step, and 97\.28% terminate within two additional backtracking steps\. Cases requiring three or more additional backtracking steps account for only 2\.72%\. This distribution indicates that backtracking typically stops early once sufficient evidence has been collected, enabling our method to integrate useful contextual evidence with limited additional inference overhead\.
Consistent with the step\-level analysis, the token\-level results in Figure[4](https://arxiv.org/html/2608.29066#S5.F4), which show that our method substantially reduces token usage compared with the baselines, these findings further demonstrate the cost efficiency of our framework\.
Table 4:Dataset\-level end\-to\-end latency in seconds per example\. The overall row averages the two dataset\-level results\.We further measure end\-to\-end runtime latency against the CoT baseline under the same model backbones, datasets, and hardware\. The measurement includes all intermediate and final LLM calls made by TamGraph, including proposition extraction, relation induction, memory construction, and final stance prediction\. As shown in Table[4](https://arxiv.org/html/2608.29066#A7.T4), TamGraph is faster than CoT on both benchmarks and achieves an overall speedup of approximately 1\.22×\\times\. Together with the token\-usage results in Figure[4](https://arxiv.org/html/2608.29066#S5.F4)and the concentrated backtracking\-depth distribution, this result shows that the savings produced by entropy\-guided early stopping contribute to lower practical inference cost despite TamGraph’s intermediate reasoning stages\.
Table 5:Dataset\-level analysis of target\-irrelevant conversational content\. History turns exclude the final utterance whose stance is evaluated\.Table 6:Detailed results of ablation study on the “w/o entropy threshold” on MT\-CSD for five models and the comparison with our method\. For each group, the best value for accuracy and macro F1 is shown in bold\.Table 7:Detailed results of ablation study on the “random turn selection” on MT\-CSD for five models and the comparison with our method\. For each group, the best value for accuracy and macro F1 is shown in bold\.Table 8:Detailed results of ablation study on the entropy threshold \(entropy=0\.0\\text\{entropy\}=0\.0\) on MT\-CSD for five models\.Table 9:Detailed results of ablation study on the entropy threshold \(entropy=0\.2\\text\{entropy\}=0\.2\) on MT\-CSD for five models\.Table 10:Detailed results of ablation study on the entropy threshold \(entropy=0\.4\\text\{entropy\}=0\.4\) on MT\-CSD for five models\.Table 11:Detailed results of ablation study on the entropy threshold \(entropy=0\.8\\text\{entropy\}=0\.8\) on MT\-CSD for five models\.Table 12:The detailed results of GPT\-4o\-mini under single\-turn and multi\-turn inputs on MT\-CSD and ZS\-CSD\.Figure 7:Additional qualitative example of our method and CoT baseline\. The CoT baseline provides garbled text in some cases\.Figure 8:Additional qualitative example of our method and CoT baseline\.Prompt of single\-turn input stance detection evaluationYou are an expert stance detection evaluator\.
Your task is to assess the stance of the given SENTENCE toward a given TARGET entity\.
Follow the \[Assessment Criteria\] strictly when making your judgment\.\[SENTENCE to evaluate\] \{utterance\_text\}
\[TARGET entity\] \{target\_entity\}
\[Assessment Criteria\] \- If the utterance supports or agrees with the TARGET entity
→\\rightarrowoutput "favor"\.
\- If the utterance opposes, criticizes, or questions the TARGET entity→\\rightarrowoutput "against"\.
\- If the utterance is neutral or irrelevant to the TARGET entity→\\rightarrowoutput "none"\.Your output must be exactly one label from \{favor, against, none\}, with no extra words or punctuation\.
Your output is:
Table 13:Prompt of single\-turn input stance detection evaluation\.Prompt of multi\-turn input stance detection evaluationYou are an expert stance detection evaluator\.
Your task is to assess the stance expressed in the final utterance of a conversation toward a given TARGET entity\.
Follow the \[Assessment Criteria\] strictly when making your judgment\.\[Conversation\] \{conversation\_texts\}
\[Utterance to evaluate\] \(This is always the last utterance in the conversation\) \{utterance\_text\}
\[TARGET entity\] \{target\_entity\}
\[Assessment Criteria\] \- If the utterance supports or agrees with the TARGET entity
→\\rightarrowoutput "favor"\.
\- If the utterance opposes, criticizes, or questions the TARGET entity→\\rightarrowoutput "against"\.
\- If the utterance is neutral or irrelevant to the TARGET entity→\\rightarrowoutput "none"\.Your output must be exactly one label from \{favor, against, none\}, with no extra words or punctuation\.
Your output is:
Table 14:Prompt of multi\-turn input stance detection evaluation\.Prompt of CoT baseline stance detection evaluationYou are an expert stance detection evaluator\.
Your task is to assess the stance expressed in the final utterance of a conversation toward a given TARGET entity\.
The stance can be "favor", "against", or "none"\.
Follow the \[Assessment Criteria\] strictly when making your judgment\.\[Conversation\] \{conversation\_texts\}
\[Utterance to evaluate\] \(This is always the last utterance in the conversation\) \{utterance\_text\}
\[TARGET entity\] \{target\_entity\}
\[Assessment Criteria\] \- If the utterance supports or agrees with the TARGET entity
→\\rightarrow"favor"\.
\- If the utterance opposes, criticizes, or questions the TARGET entity→\\rightarrow"against"\.
\- If the utterance is neutral or irrelevant to the TARGET entity→\\rightarrow"none"\.Let’s think step by step, and put your answer in the \\box\{\}\.
Your output is:
Table 15:Prompt of CoT baseline stance detection evaluation\.Prompt of Relevance DetectionYou are a relevance detection assistant\.Your task is to determine whether the given UTTERANCE is relevant to the TARGET entity\.You are also provided with the whole CONVERSATION for context\.\[CONVERSATION\]\{conversation\_text\}\[UTTERANCE TO EVALUATE\]\{utterance\_text\}\[TARGET ENTITY\]\{target\_entity\}\[Decision Rule\]\- If the utterance talks about, comments on, or is clearly related to the TARGET entity, answer “yes”\.\- If the utterance is not about the TARGET entity, or is clearly irrelevant, answer “no”\.Your answer must be exactly one word: “yes” or “no”, with no extra text\.Your answer:Table 16:Prompt of Relevance Detection\.Prompt of Target\-related Proposition ExtractionYou are an information extraction system\. From the given SENTENCE and the TARGET, extract minimal atomic statements \(propositions\) that are explicitly about the TARGET from the SENTENCE\.You should output JSON only\.\[Input\]\- SENTENCE: <PUT\_SENTENCE\_HERE\>\- TARGET: <PUT\_TARGET\_HERE\>\[Instructions\]\- Extract ONLY statements that concern the TARGET\.\- An "atomic statement" is the shortest target\-related statement that stands alone in meaning\. Split coordination \(e\.g\., "A and B"\) into separate statements\.\- Check if pronouns or vague in the SENTENCE refer to the TARGET\.\- Replace any pronouns or vague references in the sentence \(e\.g\., "it", "this car", "that model"\) with the exact TARGET phrase so each statement is explicitly target\-related\.\- Focus on content types such as facts, experiences, evaluations, comparisons, causes/effects, time, and conditions\. Ignore greetings, fillers, and chit\-chat\.\- Attributes are an OPEN set of concise tags you choose\.\- If there are no target\-related statements, return \{"statements": \[\]\}\.\[Output JSON schema\]\{"statements": \[\{"text": "<statement1\>","attributes": "<tag1\>"\},\{"text": "<statement2\>","attributes": "<tag2\>"\},……\]\}You should output ONLY valid JSON\. Your output is:Table 17:Prompt of Target\-related Proposition Extraction\.Prompt of Relation InductionYou are an information extraction system\. Given statements from the CURRENT SENTENCE and the PREVIOUS SENTENTCE that the current sentence replies to, extract relations between statement pairs\.You should output JSON only\.\[Input\]TARGET: <PUT\_TARGET\_HERE\>CURRENT\_SENTENCE: <PUT\_CURRENT\_SENTENCE\_HERE\>PREVIOUS\_SENTENCE: <PUT\_PREVIOUS\_SENTENCE\_HERE\>statements from CURRENT SENTENCE:\{"statements": \[\{"text": "<statement 1\>", "attribute": "<tag 1\>"\},\{"text": "<statement 2\>", "attribute": "<tag 2\>"\}…\]\}statements from PREVIOUS SENTENCE:\{"statements": \[\{"text": "<statement 1\>", "attribute": "<statement 1\>"\},\{"text": "<statement 2\>", "attribute": "<statement 2\>"\}…\]\}\[Instructions\]Link ONLY pairs that clearly talk about the same aspect of the TARGET\.Each pair gets EXACTLY ONE relation label \(no multi\-label\)\.Choose a concise label; examples: \["supports","against","doubts","compares","questions","quotes","refers\_to","evidence\_for"\]\. You CAN use another short labels if more precise\.The direction of the relation is always from the statement of CURRENT SENTENCE to the statement of PREVIOUS SENTENCE\.Do NOT invent links\. If no clear link, output no edge for that pair\.Provide a very short rationale\.If there are no valid links at all, return \{"edges": \[\]\}\.\[Output JSON schema\]\{"edges": \[\{"source\_text": "<one statement from statements from CURRENT SENTENCE\>","target\_text": "<one statement from statements from PREVIOUS SENTENCE\>","relation": "<a relation\>","rationale": "<very brief cue or phrase from the sentences\>"\},\{ … \},……\]\}You should output ONLY valid JSON\. Your output is:Table 18:Prompt of Relation Induction\.Prompt of Natural Language Relation RephraserYou are a faithful rephraser\. Using ONLY the inputs below, write ONE short English paragraph that summarizes how the CURRENT sentence’s statements relate to the PREVIOUS sentence’s statements about the TARGET\.Do NOT add facts\. Output ONLY the paragraph\.\[TARGET\]\{target\_entity\}\[PREVIOUS sentence\]\{prev\_sentence\}\[CURRENT sentence\]\{current\_sentence\}\[STATEMENTS of the previous sentence\] // verbatim list already extracted\{statements\_prev\_json\}\[STATEMENTS of the current sentence\] // verbatim list already extracted\{statements\_curr\_json\}\[RELATIONS from the current sentence to the previous sentence\] // verbatim edges already extracted\{relations\_json\}\[Style\]\- Refer to the relation labels provided \(e\.g\., supports/against/elaborates/questions/compares/refers\_to/evidence\_for/causal\)\.\- You should start with "This sentence …"\.Your output is:Table 19:Prompt of Natural Language Relation Rephraser\.Prompt of Stance Detection of TamGraphYou are an expert stance detection evaluator\.Your task is to assess the stance expressed in the final utterance of a conversation toward a given TARGET entity\.You should consider the information in the \[Per\-turn Internal Relations\], and follow the \[Assessment Criteria\] strictly when making your judgment\.\[Conversation\]\{conversation\_texts\}\[Per\-turn Internal Relations\]\# Natural\-language descriptions of how each utterance relates to its immediately previous utterance \(i→\\rightarrowi\-1\)\.\# One line per adjacent pair: Turn i→\\rightarrowTurn i\-1, faithfully describes how Turn i relates to Turn i\-1\{per\_turn\_internal\_relations\}\[Utterance to evaluate\]\(This is always the last utterance in the conversation\)\{utterance\_text\}\[TARGET entity\]\{target\_entity\}\[Assessment Criteria\]\- If the utterance supports or agrees with the TARGET entity→\\rightarrowoutput "favor"\.\- If the utterance opposes, criticizes, or questions the TARGET entity→\\rightarrowoutput "against"\.\- If the utterance is neutral or irrelevant to the TARGET entity→\\rightarrowoutput "none"\.Your output must be strictly one word, exactly one label from \{favor, against, none\}, with no extra words or punctuation\.Your output is:Table 20:Prompt of Stance Detection of TamGraph\.Similar Articles
G-Long: Graph-Enhanced Memory Management for Efficient Long-Term Dialogue Agents
G-Long proposes a graph-enhanced memory management framework for long-term dialogue agents, using a fine-tuned small language model for structured triplet extraction and associative retrieval, achieving state-of-the-art performance in response generation and memory retrieval with reduced computational overhead.
TRACE: State-Aware Query Processing over Temporal Evidence Graphs for Conversational Data
This paper presents TRACE, a query processing framework that models conversational data as temporal evidence graphs to enable state-aware reasoning over evolving user states, improving temporal and multi-hop reasoning for long-conversation QA.
EvoGraph-Mem: Failure-Aware Editable Graph Memory for Long-Term Language Agents
Presents EvoGraph-Mem, a failure-aware editable graph memory framework for long-term language agents that tracks positive/negative evidence and activation states for insights, enabling memory maintenance through utility-aware retrieval and graph-level editing.
Temporal Context Awareness: A Defense Framework Against Multi-turn Manipulation Attacks on Large Language Models
This paper introduces Temporal Context Awareness (TCA), a defense framework that detects multi-turn manipulation attacks on LLMs by analyzing semantic drift, cross-turn intention consistency, and evolving conversational patterns to mitigate adversarial context-building across dialogues.
Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory
Mem0 introduces a scalable memory-centric architecture using graph-based representations to improve long-term conversational coherence in LLMs, significantly reducing latency and token costs while outperforming existing memory systems.