Skip to content
DraconiticResearch
Search Sources API
178,970 studies31 sourcesUpdated 48 min ago
PreprintCC BY 4.0PsyArXiv

Reinforcement learning processes underlying the onset and maintenance of compulsive ritualistic behavior

Abstract

Compulsive rituals in OCD present a fundamental puzzle for theories of human learning. How can an action acquire value as a means of preventing harm even though the individual recognizes that the action has little or no causal influence on the feared outcome? We propose that this apparent contradiction can arise from automatic credit assignment, whereby actions that precede favorable outcomes are reinforced even when those actions are known to be causally irrelevant. When harm is anticipated but no adverse outcome occurs, the absence of harm may reinforce the preceding action, allowing an objectively ineffective behavior to acquire harm prevention value. We formalize this account using an actor-critic reinforcement learning model in which actions are performed under fluctuating states of subjective perceived threat. Simulations show that agents possessing such false credit assignment mechanisms develop persistent ritualistic behavior in an objectively uncontrollable environment. We find that ritualistic behavior is especially likely to persist when feared outcomes are rare and highly aversive, making the ritual appear consistently effective in preventing a catastrophe. We further describe the cost-effectiveness of ritualistic behavior, and provide a computational account of how compulsive rituals can emerge as goal-directed attempts to prevent harm, persist despite explicit causal knowledge, and subsequently acquire anxiety-reducing properties. This work may help explain the persistence of compulsive behavior and inform mechanisms through which therapy can reduce it.

Related

  1. Impaired Updating and Maintenance of Latent Structural Associations Underlie Cognitive Inflexibility along an Obsessive–Compulsive Dimension
    Georgios Tertikas, Nadescha Trudel, Tricia Seow +2
    PsyArXivPreprintCC BY 4.0Full textNeurosciencePsychiatry & mental healthOSF
  2. Reduced cortical thickness in obsessive-compulsive disorder and candidate molecular correlates
    Yufei Chen, Haoran Li, Fenghua Long +3
    Translational PsychiatryPeer-reviewedCC BY-NC-ND 4.0Full textPsychiatry & mental healthCrossref
  3. Intensive cognitive behavioral therapy for obsessive-compulsive disorder: a meta-analysis of randomized controlled trials
    Jianli Zhu, Chunxiao Zhang, Xinpeng Xu +3
    Frontiers in psychiatryPeer-reviewedCC BYFull textPsychiatry & mental healthEurope PMC
  4. Remission Trajectories During Low-Intensity Cognitive Behavioural Therapy for Obsessive–Compulsive Disorder: A 2-Year Naturalistic Follow-Up Study
    Keiichiro Mukai, Naomi Matsuura, Yukihiko Hosoi +3
    Medicina (Kaunas, Lithuania)Peer-reviewedCC BYFull textGeneral medicineEurope PMC
  5. An Open-Label Multidose Psilocybin Intervention for Obsessive-Compulsive Disorder.
    P. Tiwari, S. M. Nayak, N. D. Sepeda +9
    medRxivPreprintAll rights reservedFull textPsychiatry & mental healthmedRxiv
BibTeX
@misc{benartzi2026reinforcement,
  title = {{Reinforcement learning processes underlying the onset and maintenance of compulsive ritualistic behavior}},
  author = {Ido Ben-Artzi and Tal Erdinast and Eran Eldar and Nitzan Shahar},
  howpublished = {PsyArXiv},
  year = {2026},
  month = nov,
  doi = {10.31234/osf.io/t5x2s_v1},
  url = {https://osf.io/preprints/psyarxiv/t5x2s_v1/},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - Reinforcement learning processes underlying the onset and maintenance of compulsive ritualistic behavior
AU  - Ido Ben-Artzi
AU  - Tal Erdinast
AU  - Eran Eldar
AU  - Nitzan Shahar
PY  - 2026
DA  - 2026/11/02
PB  - PsyArXiv
DO  - 10.31234/osf.io/t5x2s_v1
UR  - https://osf.io/preprints/psyarxiv/t5x2s_v1/
AB  - Compulsive rituals in OCD present a fundamental puzzle for theories of human learning. How can an action acquire value as a means of preventing harm even though the individual recognizes that the action has little or no causal influence on the feared outcome? We propose that this apparent contradiction can arise from automatic credit assignment, whereby actions that precede favorable outcomes are reinforced even when those actions are known to be causally irrelevant. When harm is anticipated but no adverse outcome occurs, the absence of harm may reinforce the preceding action, allowing an objectively ineffective behavior to acquire harm prevention value. We formalize this account using an actor-critic reinforcement learning model in which actions are performed under fluctuating states of subjective perceived threat. Simulations show that agents possessing such false credit assignment mechanisms develop persistent ritualistic behavior in an objectively uncontrollable environment. We find that ritualistic behavior is especially likely to persist when feared outcomes are rare and highly aversive, making the ritual appear consistently effective in preventing a catastrophe. We further describe the cost-effectiveness of ritualistic behavior, and provide a computational account of how compulsive rituals can emerge as goal-directed attempts to prevent harm, persist despite explicit causal knowledge, and subsequently acquire anxiety-reducing properties. This work may help explain the persistence of compulsive behavior and inform mechanisms through which therapy can reduce it.
ER  -