Inducing Character-level Structure in Subword-based Language Models with Type-level Interchange Intervention Training

Jing Huang, Zhengxuan Wu, Kyle Mahowald, Christopher Potts
12/19/2022
cs.CL

Official code: explanare/char-iit (3 stars, Jupyter Notebook, MIT, last commit 2023-07-10).

Abstract

Language tasks involving character-level manipulations (e.g., spelling corrections, arithmetic operations, word games) are challenging for models operating on subword units. To address this, we develop a causal intervention framework to learn robust and interpretable character representations inside subword-based language models.

Show full abstract

Our method treats each character as a typed variable in a causal model and learns such causal structures by adapting the interchange intervention training method of Geiger et al. (2021). We additionally introduce a suite of character-level tasks that systematically vary in their dependence on meaning and sequence-level context. While character-level models still perform best on purely form-based tasks like string reversal, our method outperforms character-level models on more complex tasks that blend form, meaning, and context, such as spelling correction in context and word search games. Compared with standard subword-based models, our approach also significantly improves robustness on unseen token sequences and leads to human-interpretable internal representations of characters.

View on arXivView PDF

Code Implementations(1)

explanare/char-iitOfficial100%
MIT

A causal intervention framework to learn robust and interpretable character representations inside subword-based language models

30Jupyter NotebookMay 19, 20233 years agoMIT
causal-interventioncharacter-level-language-modelinterpretabilitysubword

Similar Papers

Cite this paper

@article{huang2022inducing,
  title  = {Inducing Character-level Structure in Subword-based Language Models with Type-level Interchange Intervention Training},
  author = {Jing Huang and Zhengxuan Wu and Kyle Mahowald and Christopher Potts},
  year   = {2022},
  eprint = {2212.09897},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.09897}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.09897.svg)](https://codeofpaper.com/paper/2212.09897)

Discussion