NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Personalized Detection of Cognitive Biases in Actions of Users from Their Logs: Anchoring and Recency Biases

Atanu R. Sinha, Navita Goyal, Sunny Dhamnani, Tanay Asija, Raja K. Dubey, M. V. Kaarthik Raja, Georgios TheocharousarXiv 2022

Abstract

Cognitive biases are mental shortcuts humans use in dealing with information and the environment, and which result in biased actions and behaviors (or, actions), unbeknownst to themselves. Biases take many forms, with cognitive biases occupying a central role that inflicts fairness, accountability, transparency, ethics, law, medicine, and discrimination. Detection of biases is considered a necessary step toward their mitigation. Herein, we focus on two cognitive biases - anchoring and recency. The recognition of cognitive bias in computer science is largely in the domain of information retrieval, and bias is identified at an aggregate level with the help of annotated data. Proposing a different direction for bias detection, we offer a principled approach along with Machine Learning to detect these two cognitive biases from Web logs of users' actions. Our individual user level detection makes it truly personalized, and does not rely on annotated data. Instead, we start with two basic principles established in cognitive psychology, use modified training of an attention network, and interpret attention weights in a novel way according to those principles, to infer and distinguish between these two biases. The personalized approach allows detection for specific users who are susceptible to these biases when performing their tasks, and can help build awareness among them so as to undertake bias mitigation.

Introduction

Cognitive biases are systematic deviations from objective reasoning that influence human behavior in digital environments. While well-documented in psychology, detecting these biases in computer science has traditionally relied on aggregate-level analysis or expensive, manually annotated datasets. This research introduces a novel machine learning approach to identify individual cognitive biases—specifically anchoring and recency—directly from user action logs without requiring human-labeled data.

The core challenge lies in the fact that biases are internal mental states, not directly observable. We can observe a user's clicks, but not the underlying motivation. This paper addresses this gap by proposing a personalized detection framework that identifies which specific users are susceptible to biases in real-world digital workflows, such as data analysis, where objectivity is paramount.

Methodology

Hierarchical Attention Network (HAN)

The framework utilizes a Hierarchical Attention Network (HAN) designed to process sequences of user actions across multiple sessions or "visits." The model consists of two primary levels:

  1. Action-level Encoder: Employs a Bi-directional LSTM to capture the context of individual actions (e.g., selecting a data model) within a single visit.
  2. Visit-level Encoder: Uses an LSTM combined with an Attention Layer to analyze the sequence of visits over time.
The Hierarchical Attention Network (HAN) architecture used to process sequences of user actions across multiple visits.

Interpreting Attention as Bias

The key innovation of this work is the interpretation of attention weights as indicators of cognitive influence. By analyzing how the model distributes attention across a user's history, the researchers can infer specific biases:

  • Anchoring Bias: Indicated when the model assigns higher weights to a user's earlier visits, suggesting they are over-relying on their initial approach.
  • Recency Bias: Indicated when higher weights are assigned to recent visits, suggesting the user is over-correcting based on their most recent actions.

Training Strategy

To establish a baseline for "unbiased" behavior, the model undergoes a three-stage training process:

  1. Common Training: Trained on all users to establish a normative behavior pattern for the specific task.
  2. Personalized Training: Fine-tuned for individual users to identify systematic deviations from the established norm.
  3. Extended Personalized Training: Utilizes rolling windows of visits to ensure that detected deviations are consistent over time, satisfying the psychological principle that bias must be a predictable, non-random pattern.

Experimental Setup and Data

The study analyzed behavior logs from a Web-based marketing analysis platform. From an initial pool of ~1,050 users, 244 active users were selected. The dataset focused on "Segmentation Analysis," a complex task involving 33 distinct action categories. By training a "Common" model first, the researchers created a mathematical baseline for objective behavior against which individual deviations could be measured.

Results and Discussion

Detection Performance

The HAN-based model significantly outperformed frequency-based baselines (such as those using Wasserstein distance). While the frequency baseline failed to classify nearly 70% of users as biased or unbiased, the HAN model successfully classified 91% of the user base.

Deviation in attention weights across visits, illustrating how the model distinguishes between anchoring (higher weights on early visits) and recency (higher weights on later visits) biases.

Bias Prevalence

Among the 244 users analyzed, the model found that 79% exhibited Anchoring Bias, while 12% exhibited Recency Bias. These findings were validated qualitatively by 9 expert marketing analysts, whose interpretations of the deviation graphs largely matched the model’s logic. Furthermore, the model remained robust across different temporal window sizes (4 to 8 visits), maintaining concordance scores up to 0.94.

Conclusion

This research demonstrates that cognitive biases can be detected at an individual level using only interaction logs. By moving beyond simple action frequency and focusing on the sequential influence of past behavior, the framework provides a scalable way to identify users who may benefit from bias mitigation. Future work will focus on expanding the scope to other cognitive biases and developing real-time intervention strategies to help users overcome these mental shortcuts.

Summary updated

BibTeX
@misc{sinha2022personalized,
  author = {Atanu R. Sinha and Navita Goyal and Sunny Dhamnani and Tanay Asija and Raja K. Dubey and M. V. Kaarthik Raja and Georgios Theocharous},
  title = {{Personalized Detection of Cognitive Biases in Actions of Users from Their Logs: Anchoring and Recency Biases}},
  year = {2022},
  eprint = {2206.15129},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.15129},
}
Figure