paper-with-me

홈 › Papers

Representing Rule-based Chatbots with Transformers

2024-07-15 · Dan Friedman, Abhishek Panigrahi, Danqi Chen

Transformer-based chatbots can conduct fluent, natural-sounding conversations, but we have limited understanding of the mechanisms underlying their behavior. Prior work has taken a bottom-up approach to understanding Transformers by constructing Transformers for various synthetic and formal language tasks, such as regular expressions and Dyck languages. However, it is not obvious how to extend this approach to understand more naturalistic conversational agents. In this work, we take a step in this direction by constructing a Transformer that implements the ELIZA program, a classic, rule-based chatbot. ELIZA illustrates some of the distinctive challenges of the conversational setting, including both local pattern matching and long-term dialog state tracking. We build on constructions from prior work -- in particular, for simulating finite-state automata -- showing how simpler constructions can be composed and extended to give rise to more sophisticated behavior. Next, we train Transformers on a dataset of synthetically generated ELIZA conversations and investigate the mechanisms the models learn. Our analysis illustrates the kinds of mechanisms these models tend to prefer -- for example, models favor an induction head mechanism over a more precise, position based copying mechanism; and using intermediate generations to simulate recurrent data structures, like ELIZA's memory mechanisms. Overall, by drawing an explicit connection between neural chatbots and interpretable, symbolic mechanisms, our results offer a new setting for mechanistic analysis of conversational agents.

📄 PDF Abstract BibTeX arXiv:2407.10949

Code (1)

princeton-nlp/eliza-transformer 공식 구현 pytorch

Tasks

Chatbotdialog state tracking

Methods 이 논문이 사용한 방법론

Attention 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

Arabic Chatbot Technologies in Education: An Overview

2025-09-04 · Hicham Bourhil, Yacine El Younoussi arxiv

The recent advancements in Artificial Intelligence (AI) in general, and in Natural Language Processing (NLP) in particular, and some of its applications such as chatbots, have led to their implementation in different dom…

Lifelong Knowledge Learning in Rule-based Dialogue Systems

2020-11-19 · Bing Liu, Chuhe Mei

One of the main weaknesses of current chatbots or dialogue systems is that they do not learn online during conversations after they are deployed. This is a major loss of opportunity. Clearly, each human user has a great …

Chatbot

Development and Evaluation of Three Chatbots for Postpartum Mood and Anxiety Disorders

2023-08-14 · Xuewen Yao, Miriam Mikhelson, S. Craig Watkins, Eunsol Choi 외

In collaboration with Postpartum Support International (PSI), a non-profit organization dedicated to supporting caregivers with postpartum mood and anxiety disorders, we developed three chatbots to provide context-specif…

Chatbot

Hybrid Dialogue State Tracking for Persian Chatbots: A Language Model-Based Approach

2025-10-01 · Samin Mahdipour Aghabagher, Saeedeh Momtazi arxiv

Dialogue State Tracking (DST) is an essential element of conversational AI with the objective of deeply understanding the conversation context and leading it toward answering user requests. Due to high demands for open-d…

Dialogue State TrackingAnswer GenerationIntent DetectionSlot Filling

Script-Strategy Aligned Generation: Aligning LLMs with Expert-Crafted Dialogue Scripts and Therapeutic Strategies for Psychotherapy

2024-11-11 · Xin Sun, Jan de Wit, Zhuying Li, Jiahuan Pei 외

Chatbots or conversational agents (CAs) are increasingly used to improve access to digital psychotherapy. Many current systems rely on rigid, rule-based designs, heavily dependent on expert-crafted dialogue scripts for g…

Chatbot