---
title: "transformer_1376 at PsyDefDetect — paper by Saha et al. (2026)"
description: "The paper presents a system for the PsyDefDetect shared task at BioNLP 2026. 0.5508 F1. 13 references, cited by 1 paper here."
authors: ["Pritha Saha", "Shuvodwip Saha", "Anik Mahmud Shanto"]
year: 2026
venue: "Proceedings of the BioNLP 2026 (Shared Tasks)"
source: "https://aclanthology.org/2026.bionlp-2.15/"
doi: "10.18653/v1/2026.bionlp-2.15"
licence: "CC BY 4.0 (ACL Anthology)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/saha-2026-transformer-1376-psydefdetect-qlora-based/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/saha-2026-transformer-1376-psydefdetect-qlora-based/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2026](https://md.research.elamur.ai/free/en/papers/2026/page/18/) / transformer\_1376 at PsyDefDetect: A QLoRA-Based Generative Framework for Context-Aware Psychological Defense Mechanism Detection

# transformer\_1376 at PsyDefDetect: A QLoRA-Based Generative Framework for Context-Aware Psychological Defense Mechanism Detection

**Authors:** [Pritha Saha](https://md.research.elamur.ai/free/en/authors/pritha-saha/), [Shuvodwip Saha](https://md.research.elamur.ai/free/en/authors/shuvodwip-saha/) and [Anik Mahmud Shanto](https://md.research.elamur.ai/free/en/authors/anik-mahmud-shanto/) · **Year:** 2026 · **Venue:** [Proceedings of the BioNLP 2026 (Shared Tasks)](https://md.research.elamur.ai/free/en/venues/bionlp/) ([BioNLP 2026](https://md.research.elamur.ai/free/en/venues/bionlp/2026/)) · **Publisher:** [Association for Computational Linguistics](https://md.research.elamur.ai/free/en/publishers/association-for-computational-linguistics/) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

**Links:** [Publisher's page](https://aclanthology.org/2026.bionlp-2.15/) · [PDF](https://aclanthology.org/2026.bionlp-2.15.pdf) · [DOI 10.18653/v1/2026.bionlp-2.15](https://doi.org/10.18653/v1/2026.bionlp-2.15) · [OpenAlex](https://openalex.org/W7166811314)

**Citations:** 0 citations (OpenAlex, 2026-10-14) · [1](https://md.research.elamur.ai/free/en/papers/saha-2026-transformer-1376-psydefdetect-qlora-based/cited-by/) in our library, of the 149,439 papers whose bibliographies we read

## Summary
The paper presents a system for the PsyDefDetect shared task at BioNLP 2026. The task requires labeling a target utterance in a multi-turn emotional support dialogue with one of nine classes, which are derived from the Defense Mechanism Rating Scales (DMRS). These include a "no defense" label and a label for cases that lack enough context. The authors frame labeling as conditional generation rather than standard classification. Gemma-2-2B-IT receives a chat-formatted prompt with instructions, the preceding dialogue and the target turn, and learns to emit a single label token, with loss computed only on that token. Training combines 4-bit QLoRA (via Unsloth) on cloud T4 GPUs, random oversampling of rare classes, and left truncation of long contexts. On the blind test set the system reaches a Macro-F1 of 0.2475, ranking 12th of 21 teams. It clearly outperforms an in-house DeBERTa-v3-base classifier trained on the same data but falls short of the organizers' baseline (0.3148). The work shows that low-budget generative fine-tuning is workable for clinically grounded dialogue analysis, though with clear performance limits.

## Key points
- Data: PSYDEFCONV, built from a subset of ESConv. It has 200 dialogues and 4,709 utterances, of which 2,336 are annotated with 9 DMRS-based classes. Evaluation uses Macro-F1 over classes 1–8 and excludes the majority "No Defense" class.
- Method: Gemma-2-2B-IT with 4-bit QLoRA, LoRA adapters on all attention and feed-forward projections, and prompt-token masking. Training uses AdamW with warmup plus cosine decay at an effective batch size of 16, and inference uses greedy decoding.
- Results on the test set:
  - Proposed system: accuracy 0.5508, F1 0.2475.
  - DeBERTa-v3-base: accuracy 0.5500, F1 0.1376.
  - Official baseline: accuracy 0.6483, F1 0.3148.
- Gemma's chat template has no system role, so the instruction is merged into the user turn.
- Stated limitations include the small model size, possible overfitting from oversampling, reliance on fixed prompt templates, and the need for post-processing of generated labels.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

## Institutions

- [Chittagong University of Engineering & Technology](https://md.research.elamur.ai/free/en/universities/chittagong-university-of-engineering-technology/) — University, Chittagong, Bangladesh · 28 works · 29 citations
- [Southeast University](https://md.research.elamur.ai/free/en/universities/southeast-university/) — University, Dhaka, Bangladesh · 9 works · 160 citations

📚 Shelves (6): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 18,614 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 17,965 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 17,450 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 17,296 works · [💭 Psychology](https://md.research.elamur.ai/free/en/shelves/psychology/) · 1,649 works · [💭 Social Psychology](https://md.research.elamur.ai/free/en/shelves/psychology/social-psychology/) · 330 works

## Cite

Cite as: Pritha Saha, Shuvodwip Saha and Anik Mahmud Shanto. 2026. transformer\_1376 at PsyDefDetect: A QLoRA-Based Generative Framework for Context-Aware Psychological Defense Mechanism Detection. Proceedings of the BioNLP 2026 (Shared Tasks).

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{saha2026transformer,
  title = {{transformer\_1376 at PsyDefDetect: A QLoRA-Based Generative Framework for Context-Aware Psychological Defense Mechanism Detection}},
  author = {Pritha Saha, Shuvodwip Saha and Anik Mahmud Shanto},
  booktitle = {Proceedings of the BioNLP 2026 (Shared Tasks)},
  year = {2026},
  doi = {10.18653/v1/2026.bionlp-2.15},
  url = {https://doi.org/10.18653/v1/2026.bionlp-2.15}
}
```

- [← previous Tralaleros at SemEval-2026 Task 9: Multilingual Polarization Detection with Transformer-based Models](https://md.research.elamur.ai/free/en/papers/dahl-2026-tralaleros-semeval-2026-task-9/)
- [next → transformer_1376 at SemEval-2026 Task 9: A Multi-Stage Pipeline with Calibrated Ensembles and Lexical Post-Processing for Online Polarization Detection in Bengali](https://md.research.elamur.ai/free/en/papers/saha-2026-transformer-1376-semeval-2026-task/)
- [↑ back to papers of 2026](https://md.research.elamur.ai/free/en/papers/2026/page/18/)

## References

13 references, 8 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, and… [find](https://scholar.google.com/scholar?q=Tom+Brown%2C+Benjamin+Mann%2C+Nick+Ryder%2C+Melanie+Subbiah%2C+Jared+D+Kaplan%2C+Prafulla+Dhariwal%2C+Arvind+Neelakantan%2C+Pranav+Shyam%2C+Girish+Sastry%2C+Amanda+Askell%2C+Sandhini+Agarwal%2C+Ariel+Herbert%2DVoss%2C+Gretchen)
2. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of Edward Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, and Weizhu Chen. 2021. [Lora: Low-rank adaptation of large language models](https://md.research.elamur.ai/free/en/papers/hu-2021-lora-low-rank-adaptation-large/).
3. Siyang Liu, Chujie Zheng, Orianna Demasi, Sahand Sabour, Yu Li, Zhou Yu, Yong Jiang, and Minlie Huang. 2021. [Towards emotional support dialog systems](https://md.research.elamur.ai/free/en/papers/liu-2021-emotional-support-dialog-systems/). In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Lan…
4. 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](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/). Preprint, arXiv:1907.11692.
5. Hongbin Na, Yining Hua, Zimu Wang, Tao Shen, Beibei Yu, Lilin Wang, Wei Wang, John Torous, and Ling Chen. 2025. A survey of large language models in psychotherapy: Current landscape and future directions. In Findings of the Association for Computational Linguistics: ACL 2025, pages 7362–7376, Vienna… [find](https://scholar.google.com/scholar?q=Hongbin+Na%2C+Yining+Hua%2C+Zimu+Wang%2C+Tao+Shen%2C+Beibei+Yu%2C+Lilin+Wang%2C+Wei+Wang%2C+John+Torous%2C+and+Ling+Chen%2E+2025%2E+A+survey+of+large+language+models+in+psychotherapy%3A+Current+landscape+and+future+directi)
6. Hongbin Na, Zimu Wang, Zhaoming Chen, Yining Hua, Rena Gao, Kailai Yang, Ling Chen, Wei Wang, Shaoxiong Ji, John Torous, and Sophia Ananiadou. 2026a. [Overview of the psydefdetect shared task at bionlp 2026: Detecting levels of psychological defense mechanisms in supportive conversations](https://md.research.elamur.ai/free/en/papers/na-2026-overview-psydefdetect-shared-task-bionlp/). In Proceedi…
7. Hongbin Na, Zimu Wang, Zhaoming Chen, Peilin Zhou, Yining Hua, Grace Ziqi Zhou, Haiyang Zhang, Tao Shen, Wei Wang, John Torous, Shaoxiong Ji, and Ling Chen. 2026b. [You never know a person, you only know their defenses: Detecting levels of psychological defense mechanisms in supportive conversations](https://md.research.elamur.ai/free/en/papers/na-2026-you-never-know-person-you/).…
8. J. Christopher Perry. 1990. Defense Mechanism Rating Scales (DMRS). [find](https://scholar.google.com/scholar?q=J%2E+Christopher+Perry%2E+1990%2E+Defense+Mechanism+Rating+Scales+%28DMRS%29%2E)
9. Soujanya Poria, Erik Cambria, Devamanyu Hazarika, Navonil Majumder, Amir Zadeh, and Louis-Philippe Morency. 2017. [Context-dependent sentiment analysis in user-generated videos](https://md.research.elamur.ai/free/en/papers/poria-2017-context-dependent-sentiment-analysis-user/). In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 8…
10. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. [Exploring the limits of transfer learning with a unified text-to-text transformer](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/). Journal of Machine Learning Research, 21(140):1–67.
11. Iulian V. Serban, Alessandro Sordoni, Yoshua Bengio, Aaron Courville, and Joelle Pineau. 2016. [Building end-to-end dialogue systems using generative hierarchical neural network models](https://md.research.elamur.ai/free/en/papers/serban-2015-building-end-end-dialogue-systems/). Preprint, arXiv:1507.04808.
12. Thomas Wolf, Victor Sanh, Julien Chaumond, and Clement Delangue. 2019. Transfertransfo: A transfer learning approach for neural network based conversational agents. Preprint, arXiv:1901.08149. [find](https://scholar.google.com/scholar?q=Thomas+Wolf%2C+Victor+Sanh%2C+Julien+Chaumond%2C+and+Clement+Delangue%2E+2019%2E+Transfertransfo%3A+A+transfer+learning+approach+for+neural+network+based+conversational+agents%2E+Preprint%2C+arXiv%3A1901%2E08149%2E)
13. Lei Zhang, Shuai Wang, and Bing Liu. 2018. Deep learning for sentiment analysis : A survey. Preprint, arXiv:1801.07883. [find](https://scholar.google.com/scholar?q=Lei+Zhang%2C+Shuai+Wang%2C+and+Bing+Liu%2E+2018%2E+Deep+learning+for+sentiment+analysis+%3A+A+survey%2E+Preprint%2C+arXiv%3A1801%2E07883%2E)

*Updated 1 November 2026*
