Manuscript Offprint
arXiv:2610.27407Looking Into The Past: The Impact of Context on Detecting Deceptive Statements
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Deception detection typically considers messages in isolation. Previous works in claim verification and role detection have displayed that additional information such as gameplay history is crucial to successful predictions. In this work, we demonstrate the value of preceding gameplay dialogue when applied to deceptive message detection within the hidden role game of Avalon. The findings show that LLMs can see improvement across a number of metrics, including accuracy by up to 31% with the addition of gameplay context for the target message.
1 Introduction
Textual deception detection has often been reliant on linguistic cues (Hauch et al., 2015) and detection without contextualizing the target (Velutharambath and Klinger, 2023). However, in settings like hidden role games, real-world social interactions are represented in a controlled environment where previous interaction history is obtainable. Many investigations of deception in hidden role games focus on detecting player roles from the game's history (Ibraheem et al., 2022; Stepputtis et al., 2023; Chuchro, 2022), but have yet to apply this same technique on a message by message basis. Moreover, the game Avalon in particular provides the unique opportunity for evaluation, as it is not only the 'evil' but also the 'good' players who have incentive to lie.
We explore, in particular, the application of preceding message context to deceptive message detection to determine if similar techniques to that of role detection can have a more widely applicable use. Both traditional deception detection techniques and LLMs were evaluated with and without history. We determined that the effect of such context is highly dependent on both the model type and presentation of information, but has widely positive effects for LLMs with improvements reaching up to 31% for accuracy.
2.1 Avalon & Hidden Role Games
Games provide a unique lens through which social dynamics can be studied in a controlled setting (Szczepanska et al., 2022). Avalon: The Resistance is a social cooperative hidden role game where players must collaborate to select parties for quests, ideally without including evil players. At its core, the game focuses on determining who is on your team and who is trying to deceive you. Light et al. provides a more comprehensive overview of the game.
A common task within Avalon and the similar hidden role games is role detection, which in many cases has included game dialog but not conducted investigation into the importance of its presence. Ibraheem et al. utilized a fine tuned BERT model with the addition of previous utterances to detect roles within the similar game Mafia. Stepputtis et al. similarly investigates the addition of chat history for role detection with LLMs in Avalon, while Chuchro used an SVM on Avalon games, where 3 missions succeeded, to determine the role of Merlin, who must remain anonymous or risk losing the game for the 'good' side. Our work differs in that we aim to detect deception in a message rather than a role, which accounts for the unique factor of that both types of players might lie, increasing the difficulty of the task. We hypothesize that contextual information, especially that of dialogue history, could improve deception detection beyond even the scope of hidden role games.
2.2 Deception Detection
Deception is tied closely to intention and belief (Ward et al., 2023) and can be abstractly considered to be instances where an individual is intentionally led to believe something that the deceiver does not believe to be true.
Detection of deception in NLP has often relied on linguistic cues (Zhou et al., 2004; Hauch et al., 2015) and feature analysis (Mihalcea and Strapparava, 2009; Velutharambath and Klinger, 2023; de Ruiter and Kachergis, 2019). In many cases, instances have been considered individually despite being derived from settings where additional information would provide necessary context. The Unidecor (Velutharambath and Klinger, 2023) aggregated dataset, for instance, compiles a number of textual deception detection datasets, but does not retain order for those such as the Mafiascum dataset (de Ruiter and Kachergis, 2019) within which temporal factors could be relevant. More recently, LLMs have become prevalent within deception detection. Hazra and Majumder utilized LLMs to detect deception by comparing statements against an objective truth, to predict which contestant was truthful, and was able to identify accurate language cues. Similar tasks like fake news detection have also effectively employed LLMs. Loconte et al. found that larger sizes of the FLAN-T5 model were more effective at detecting verbal lies. This was supported by Sallami et al. which also found larger models to be more effective in fake news detection, but highlighted that the training methods were equally important.
Providing additional context to a LLM is a common practice in many tasks such as RAG (Izacard et al., 2023) and claim verification (Momii et al., 2024). More specifically, (Boumber et al., 2024) uses RAG for domain agnostic deception detection, highlighting the possibility for generalization in a task previously considered to be domain dependent (Velutharambath and Klinger, 2023). Within hidden role games, Ibraheem et al. used language within the game of Mafia to identify deceptive players, while Yoo and Kim applied LLMs. Yoo and Kim found that these methods were more effective than BERT like ones. The data was provided until a certain in-game day and the LLM was tasked with predicting which players were the mafia given partial record of the game. However, in the game Mafia, players are eliminated with each day cycle, which changes the likelihood of choosing a member of the mafia as the game continues. This is avoided in Avalon, as all players remain throughout the game. We apply this same technique of integrating preceding gameplay dialogue information as a novel means for improving deception detection within social settings, like cooperative games, where there is an order and structure to interactions.
3 Methods
Though the use of contextual information, such as game history, is crucial in tasks like role detection, with similar applications in fake news detection and claim verification, but has not been widely investigated within the frame of message specific deception detection.
In order to discern the effect of such information, we considered more traditionally used models, as well as newer state-of-the-art models. The traditional deception detection model formats were used as a point of comparison, as well as to assess their ability to perform with the addition of preceding gameplay dialogue, which is generally not associated with such formats. The ordering structure for the game information was derived from (Ibraheem et al., 2022), where BERT was finetuned with prior game conversation preceding the utterance for prediction.
To accommodate the necessity of prompting for Gemini, we tested prompt variations, adapted from works in RAG (Izacard et al., 2023) and claim verification for the FEVER task (Momii et al., 2024) where additional information is used to predict one of three labels for a given claim. We conduct a number of ablations to understand how prompt variations and temperature impact generation, and to ascertain whether the traditional models benefit from prompt-formatted information.
4 Experimental set up
4.1 Avalon Dataset
The test dataset is comprised of 20 games of Avalon from Stepputtis et al., 2023, totaling 2384 messages. We retained the order of messages and player designation for each game, and converted the deception type category into a binary true/deceptive label. The versions including history were supplied with all messages in the game preceding the target message, for example: Game History: "message A, message B" Message to predict: "message c". With each message, the player designation was included.
4.2 Models Considered
In order to represent more traditional methods for detecting deception, we selected Roberta, ModernBert, and an SVM. Roberta (Liu et al., 2019) has precedent in Velutharambath and Klinger, with other variants of BERT also commonly used for comparison (Hazra and Majumder, 2024; Boumber et al., 2024). ModernBert (Warner et al., 2024) is a newer version of the eponymous BERT model, and was selected due to its better performance and capability to handle more tokens. The exact models we used were roberta-base and ModernBERT-base available on Hugging Face.
Feature-based approaches are prevalent in many linguistically based deception detection techniques, which we represented with an SVM (Chuchro, 2022; de Ruiter and Kachergis, 2019). The features selected for the SVM were adapted from the Mafiascum code with modification to apply to the new datasets. The model used was a standard SVM and scaler from the scikit-learn library (Pedregosa et al., 2011), the features for which are listed in full in Appendix A
The three models were finetuned, and trained in the case of the SVM, on the mafia game dataset from Ibraheem et al.. As the data lacks a deceptive label, we marked any utterance by a player with the role 'mafioso' with the 'deceptive' label. This method mimics how the Mafiascum dataset was integrated into the Unidecor combined deception dataset, and was adopted due to a lack of game datasets with individually labeled messages. The game of Mafia and Avalon are very similar in format, allowing for minimal discrepancies.
We selected Gemini 2.0 Flash for the LLM due to the high quality of its generation and low cost. LLMs have precedent for accepting large quantities of additional information to supplement inference, making it an ideal setting for evaluating the impact of historical information. Any instances where Gemini failed to return an answer with a decision containing True or Deceptive were marked as incorrect.
4.3 Metrics
While accuracy is commonly used for this variety of task (Boumber et al., 2024; Velutharambath and Klinger, 2023; Papageorgiou et al., 2025), we found that it does not account for unbalanced datasets and can be misleading. In fact, many datasets for textual deception detection are imbalanced (Velutharambath and Klinger, 2023), like our test set which possesses an 82/18 split. In this work we included accuracy (both balanced and unbalanced for comparability) and macro precision. We selected macro precision to account for the unbalanced dataset and provide a view of the models overall efficacy. Our code is provided in Appendix D.
5 Experiments and Results
Our findings in Table 1 show that the introduction of history generally improves Gemini's performance. Though a only small increase in macro precision and balanced accuracy, accuracy showed significant improvement, indicating that Gemini preformed well on the true label predictions. However, we notice that as the dataset was imbalanced in favor of the true label, it is possible that having gameplay dialogue data predominantly of one type skewed the latent patterns Gemini may have detected in one direction.
However, as we anticipated, the more traditional approaches did not improve with the added information. While Roberta remained consistent in only predicting the true label, as ModernBert and the SVM did without history, the additional text actually reduced performance. Though the metrics reflect poorly, it is an interesting point that the history caused ModernBert and the SVM to begin predicting a small portion of deceptive labels (though not very well), perhaps indicating that the dialogue history may have simply acted as noise to these models.
| Model | Accuracy | Balanced Accuracy | Macro Precision |
|---|---|---|---|
| ModernBert | 0.820 | 0.500 | 0.410 |
| ModernBert w/H | 0.727 | 0.500 | 0.482 |
| Roberta | 0.820 | 0.486 | 0.410 |
| Roberta w/H | 0.820 | 0.50 | 0.410 |
| SVM | 0.820 | 0.50 | 0.410 |
| SVM w/H | 0.815 | 0.467 | 0.410 |
| Gemini | 0.378 | 0.520 | 0.514 |
| Gemini w/H | 0.695 | 0.525 | 0.521 |
Table 1: Outcome of evaluation over Stepputtis et al.'s (2023) human Avalon gameplay dataset. w/H denotes the model was provided with the game's dialogue data prior to the message.
| Model | Accuracy | Balanced Accuracy | Macro Precision |
|---|---|---|---|
| ModernBert | 0.180 | 0.50 | 0.090 |
| ModernBert w/H | 0.179 | 0.498 | 0.256 |
| Roberta | 0.820 | 0.50 | 0.410 |
| Roberta w/H | 0.820 | 0.50 | 0.410 |
| SVM | 0.815 | 0.497 | 0.410 |
| SVM w/H | 0.820 | 0.50 | 0.410 |
Table 2: Outcome of fine tuning and evaluating traditional models with the same prompt structure as Gemini.
In order to better understand the full impact of adding dialogue history to the more traditional approaches, we also fine tuned and evaluated them using the exact same layout (prompt and all) as
Gemini received, as well as in the evaluation, the results for which are in Table 2. Though Roberta and the SVM saw essentially no change, ModernBert's results completely reversed, reaching a perfect score on the deceptive labels without history, and a near perfect with. This indicates that ModernBert, with its much larger context window may be significantly impacted by the presence of a prompt or additional structure in the presence of information. However, the addition of history still degraded performance, possibly due to the mixed content of true and deceptive in the gameplay dialogue introducing noise. Additionally, this more structured version contained an example of a deceptive message, which may have skewed ModernBert's prediction as the prompt discussed deceptive messages more than true ones.
Ablations In order to maximize the effectiveness of the LLM, we carried out a number of prompt variations on a subsample of the test dataset, the outcomes for which are available in full in Appendix C. We derived prompts from Izacard et al. and Momii et al. due to the similarity of the domains. We found that a more narrative structure improved prediction of deceptive labels to an equivalent degree that a formal data structure improved true labels, showing that the labels could potentially have an inverse relationship, which is mirrored by the results of ModernBert. The prompt used in Table 1 is a combination of the prior two. These findings show that Gemini is consistent with the findings that some GPT based models are significantly impacted by prompt format (He et al., 2024).
We also produced an example message that was not present in the dataset, but maintained the hallmarks of one of the deceptive messages, through prompting the Gemini model to create a new message based on all of the deceptive messages in the test data set. Interestingly, the removal of the example improved metrics on the sample, however aided in the full set as it favored true labels.
Similar works investigating the supplement of information to an LLM investigated differing temperatures during generation (Yoo and Kim, 2024). As higher temperature is often considered to be less probabilistic in generation, we considered that this could have a positive impact on the prediction of deception. Prompt A was evaluated with history on the sample data across 0 to 1.0 temperatures in .2 increments. We found that the results held consistent with recent research, that between 0 and 1, changes in temperature are not statistically significant to problem solving situations (Renze, 2024). A table with these results is available in Appendix B.
The Task Avalon presents a unique difficulty as not only do all players stay the whole game, but lying is beneficial to both sides. The addition of the Merlin and Assassin characters causes deception to be critical to the success of both the 'good' and 'evil' team. Moreover, the task in of itself is difficult, as the authors ourselves struggled to accurately label the messages, highlighting this as a valuable challenge for both AI and humans alike.
6 Discussion
While adding gameplay dialogue history is crucial to detecting player patterns in tasks of role deception, in per-message deception detection, it is also shown to improve prediction. It is possible that direct instruction to consider the behavior of the player uttering the message, perhaps an LLM would be more capable of utilizing the additional information particular to patterns of player actions. Additionally, it was unexpected that while Gemini generally improved overall predictions, became less adept at the prediction of the deception label. There could be a number of reasons for this, including potentially the structuring of the information as it was presented to the LLM. The reduction of performance in the BERT variants and SVM were largely anticipated due to their design. However, ModernBert's behavior with the introduction of the prompt and additional structure leaves questions about how the model behaves with prompting, something we did not specifically investigate.
7 Conclusion
We explored the application of gameplay dialogue history information in detecting deception in messages within the social setting of a hidden role game. Our findings show that indeed the additional information improves an LLM's performance, though this is not true of SVMs or BERT variant models. These findings present an interesting direction in which textual deception detection could continue to improve in social settings, by leveraging the information preceding the target message. This shows that when it comes to hidden role games, perhaps the future of deception detection is truly in the past.
References
Dainis Bouumber, Bryan E. Tuck, Rakesh M. Verma, and Fatima Zahra Qachfar. 2024. Llms for explainable few-shot deception detection. In Proceedings of the 10th ACM International Workshop on Security and Privacy Analytics, IWSPA '24, page 37–47, New York, NY, USA. Association for Computing Machinery.
Robert Chuchro. 2022. Training an assassin ai for the resistance: Avalon. Preprint, arXiv:2209.09331.
Bob de Ruiter and George Kachergis. 2019. The mafiascum dataset: A large text corpus for deception detection. Preprint, arXiv:1811.07851.
Valerie Hauch, Iris Blandón-Gitlin, Jaume Masip, and Siegfried L Sporer. 2015. Are computers effective lie detectors? a meta-analysis of linguistic cues to deception. Pers. Soc. Psychol. Rev., 19(4):307–342.
Sanchaita Hazra and Bodhisattwa Prasad Majumder. 2024. To tell the truth: Language of deception and language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 8506–8520, Mexico City, Mexico. Association for Computational Linguistics.
Jia He, Mukund Rungta, David Koleczek, Arshdeep Sekhon, Franklin X Wang, and Sadid Hasan. 2024. Does prompt formatting have any impact on llm performance? Preprint, arXiv:2411.10541.
Samee Ibraheem, Gaoyue Zhou, and John DeNero. 2022. Putting the con in context: Identifying deceptive actors in the game of mafia. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 158–168, Seattle, United States. Association for Computational Linguistics.
Gautier Izacard, Patrick Lewis, Maria Lomeli, Lucas Hosseini, Fabio Petroni, Timo Schick, Jane Dwivedi-Yu, Armand Joulin, Sebastian Riedel, and Edouard Grave. 2023. Atlas: few-shot learning with retrieval augmented language models. J. Mach. Learn. Res., 24(1).
Jonathan Light, Min Cai, Sheng Shen, and Ziniu Hu. 2023. From text to tactic: Evaluating LLMs playing the game of avalon. In NeurIPS 2023 Foundation Models for Decision Making Workshop.
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. Preprint, arXiv:1907.11692.
Riccardo Loconte, Roberto Russo, Pasquale Capuozzo, Pietro Pietrini, and Giuseppe Sartori. 2023. Verbal lie detection using large language models. Scientific Reports, 13(1):22849.
Rada Mihalcea and Carlo Strapparava. 2009. The lie detector: Explorations in the automatic recognition of deceptive language. In Proceedings of the ACL-IJCNLP 2009 Conference Short Papers, pages 309–312, Suntec, Singapore. Association for Computational Linguistics.
Yuki Momii, Tetsuya Takiguchi, and Yasuo Ariki. 2024. RAG-fusion based information retrieval for fact-checking. In Proceedings of the Seventh Fact Extraction and VERification Workshop (FEVER), pages 47–54, Miami, Florida, USA. Association for Computational Linguistics.
Eleftheria Papageorgiou, Iraklis Varlamis, and Christos Chronis. 2025. Harnessing large language models and deep neural networks for fake news detection. Information, 16(4).
F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. 2011. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830.
Matthew Renze. 2024. The effect of sampling temperature on problem solving in large language models. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 7346–7356, Miami, Florida, USA. Association for Computational Linguistics.
Dorsaf Sallami, Yuan-Chen Chang, and Esma Aimeur. 2024. From deception to detection: The dual roles of large language models in fake news. Preprint, arXiv:2409.17416.
Simon Stepputtis, Joseph Campbell, Yaqi Xie, Zhengyang Qi, Wenxin Zhang, Ruiyi Wang, Sanketh Rangreji, Charles Lewis, and Katia Sycara. 2023. Long-horizon dialogue understanding for role identification in the game of avalon with large language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 11193–11208, Singapore. Association for Computational Linguistics.
Timo Szczepanska, Patrycja Antosz, Jan Ole Berndt, Melania Borit, Edmund Chattoe-Brown, Sara Mehryar, Ruth Meyer, Stephan Onggo, and Harko Verhagen and. 2022. Gam on! six ways to explore social complexity by combining games and agent-based models. International Journal of Social Research Methodology, 25(4):541–555.
Aswathy Velutharambath and Roman Klinger. 2023. UNIDECOR: A unified deception corpus for cross-corpus deception detection. In Proceedings of the 13th Workshop on Computational Approaches to Subjectivity, Sentiment, & Social Media Analysis, pages 39–51, Toronto, Canada. Association for Computational Linguistics.
Francis Rhys Ward, Francesco Belardinelli, Francesca Toni, and Tom Everitt. 2023. Honesty is the best policy: defining and mitigating ai deception. In Proceedings of the 37th International Conference on Neural Information Processing Systems, NIPS '23, Red Hook, NY, USA. Curran Associates Inc.
Benjamin Warner, Antoine Chaffin, Benjamin Clavié, Orion Weller, Oskar Hallström, Said Taghadouini, Alexis Gallagher, Raja Biswas, Faisal Ladhak, Tom Aarsen, Nathan Cooper, Griffin Adams, Jeremy Howard, and Iacopo Poli. 2024. Smarter, better, faster, longer: A modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference. Preprint, arXiv:2412.13663.
Byunghwa Yoo and Kyung-Joong Kim. 2024. Finding deceivers in social context with large language models and how to find them: the case of the mafia game. Scientific Reports, 14(1):30946.
Lina Zhou, Judee K. Burgoon, Jay F. Nunamaker, and Doug Twitchell. 2004. Automating linguistics-based cues for detecting deception in text-based asynchronous computer-mediated communications. Group Decision and Negotiation, 13(1):81–106.
A SVM Features
The features used are as follows: word count, or ratio, negative emotion ratio, anger ratio, sensory ratio, cognitive ratio, insight ratio, motion ratio, tentative ratio, not ratio (didn't, wasn't...), pronoun ration (first, second, and third respectively), quantifier ratio (all, some, many, etc...), sentence length, but ratio, token length, unique tokens, message count, message length, and the vector sum of the sentence.
B Temperature
| Temperature | Accuracy | Macro Precision | Balanced Accuracy |
|---|---|---|---|
| 0.0 | 0.535 | 0.536 | 0.536 |
| 0.2 | 0.535 | 0.536 | 0.536 |
| 0.4 | 0.523 | 0.523 | 0.523 |
| 0.6 | 0.525 | 0.525 | 0.526 |
| 0.8 | 0.529 | 0.530 | 0.529 |
| 1.0 | 0.510 | 0.511 | 0.511 |
Table 3: Evaluating the performance of varying temperatures, Prompt A with history was used as the configuration.
C Prompts
C.1 Prompt A: Original Prompt
""You are a helpful assistant that uses the chat between six players,
| Prompt | Accuracy | Macro Precision | Balanced Accuracy |
|---|---|---|---|
| A | 0.535 | 0.536 | .536 |
| B | 0.506 | 0.506 | .507 |
| C | 0.548 | 0.549 | .548 |
| D | 0.548 | 0.549 | .548 |
| E | 0.510 | 0.515 | .512 |
Table 4: Evaluation of prompt variations. The sample totaled 480 messages, about 20% of the test dataset, with 240 D and 240 T.
player-1 to player-6, who play Avalon: The Resistance (a cooperative-competitive game) to identify which messages are true or deceptive. Within the game, there can be multiple evil players, who have incentive to be deceptive and lie about their roles and those of other players. There is also a good character Merlin, who has knowledge of evil players' identities, and may lie to protect their identity. Given the following message, do you think it is true or deceptive? Please do not explain your answer, only provide the answer and nothing else.""
C.2 Prompt B: Adding an Example
""You are a helpful assistant that uses the chat between six players, player-1 to player-6, who play Avalon: The Resistance (a cooperative-competitive game) to identify which messages are true or deceptive. Within the game, there can be multiple evil players, who have incentive to be deceptive and lie about their roles and those of other players. There is also a good character Merlin, who has knowledge of evil players' identities, and may lie to protect their identity. An example of a deceptive message is: "i'm good, so i'll vote yes on this party. i'm not sure about player-3, but i'm not sure about anyone at this point." Given the following message, do you think it is true or deceptive? Please do not explain your answer, only provide the answer and nothing else.""
C.3 Prompt C: Fever challenge paper
""You will be given a message from the hidden role game Avalon. Your task is to determine whether this message is True or Deceptive. Your prediction must be based on the game history and given example. Example of a deceptive message : "i'm good, so i'll vote yes on this party. i'm not sure about player-3, but i'm not sure about anyone at this point." The game history is as follows: "" + x + "" The message to predict is: "" + row['withName'] + "" Output Format: "True" or "Deceptive" ""
C.4 Prompt D: Json-like
" " { "Task" : "You will be given a message from the hidden role game Avalon. Your task is to determine whether this message is True or Deceptive. Your prediction must be based on the game history and given example.", "Example of a deceptive message" : "i'm good, so i'll vote yes on this party. i'm not sure about player-3, but i'm not sure about anyone at this point.", "Game History" : "" + x + "", "Message to predict" : "" + row['withName'] + "", "Output Format" : "True" or "Deceptive"}
C.5 Prompt E: Combination C and D
" " { "Task" : "You will be given a message from the hidden role game Avalon. Your task is to determine whether this message is True or Deceptive. Your prediction must be based on the game history and given example.",
"Example of a deceptive message" : "i'm good, so i'll vote yes on this party. i'm not sure about player-3, but i'm not sure about anyone at this point.",
"Game History" : "" + x + "",
"Message to predict" : "" +
row['withName'] + "",
"Output Format" : "True" or "Deceptive"
}""
D Code
Repository is available here: https://github.com/alexclay42/history-paper