All models

BERT-SLU (Aghajanyan et al.)

BERT re-pretrained on nine task-oriented dialogue corpora with user and system tokens and a response-contrastive loss.

Language · 302 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (26 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
109.5M
Operations
302
Framework
PyTorch
Recurrent
No
Published
EMNLP 2020
Cited by
244 (as of 18 October 2026)
Authors
Chien-Sheng Wu, Steven Hoi, Richard Socher, Caiming Xiong
License
BSD-2-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m12361
Graph hash
2a44819f7901329b9e226ffba40697ca1c43cc66e6315e4043a09198798416e1
Skeleton hash
6e2351ffa82f55b6b05932459b5f9d5ee28a2b29a846468ef19a6c8ea1ad8329
Architecture hash
e93d1fd4862aba5b3288bb7a97d5ecd856d3e936119674f9ec3f367ec2e2cb13
Diagram SHA-256
3e9deffd9f84452ac4b031b851b136102c78e4f65af467fed5cbb3d05349a430
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.BertModel()

What it is

TOD-BERT is a BERT encoder pretrained specifically for task-oriented dialogue, on the premise that general text and dialogue follow different linguistic patterns. The authors unified nine human-human, multi-turn task-oriented dialogue datasets into one language-modeling corpus. Two changes make it dialogue-aware: user and system tokens are folded into masked language modeling, and a contrastive objective simulates the response selection task. On four downstream applications, intention recognition, dialogue state tracking, dialogue act prediction and response selection, it outperforms strong baselines like BERT. It also shows a stronger few-shot ability, which matters because task-oriented dialogue data is scarce.

The captured member is the TOD-BERT-JNT-V1 checkpoint, pretrained with both the MLM and RCL objectives; a sibling, TOD-BERT-MLM-V1, used the MLM objective alone. In use, a dialogue is fed as one string with [SYS] and [USR] markers in front of each turn, and the encoder's hidden states are read off directly. The same release later added TOD-DistilBERT, pre-trained with both the MLM and RCL objectives.

Key idea. TOD-BERT adapts BERT pretraining to task-oriented dialogue by adding user and system tokens to masked language modeling and a response-contrastive objective, beating BERT on four dialogue tasks.

  • TOD-BERT
  • TOD-BERT-JNT
  • TOD-BERT-MLM
  • task-oriented dialogue BERT
  • task-oriented dialogue
  • dialogue state tracking
  • intent recognition
  • response selection
  • dialogue encoder
  • BERT

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{wu2020todbertpretrainednaturallanguage,
      title={TOD-BERT: Pre-trained Natural Language Understanding for Task-Oriented Dialogue}, 
      author={Chien-Sheng Wu and Steven Hoi and Richard Socher and Caiming Xiong},
      year={2020},
      eprint={2004.06871},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2004.06871}, 
}