Skip to main content
arXiv is now an independent nonprofit! Learn more
archive
Search Submit Donate Log in
Press Enter to search · Advanced search

Computer Science > Computation and Language

arXiv:2101.04547 (cs)
[Submitted on 12 Jan 2021 (v1), last revised 7 May 2021 (this version, v4)]

Title:Of Non-Linearity and Commutativity in BERT

Authors:Sumu Zhao, Damian Pascual, Gino Brunner, Roger Wattenhofer
View a PDF of the paper titled Of Non-Linearity and Commutativity in BERT, by Sumu Zhao and 3 other authors
View PDF
Abstract:In this work we provide new insights into the transformer architecture, and in particular, its best-known variant, BERT. First, we propose a method to measure the degree of non-linearity of different elements of transformers. Next, we focus our investigation on the feed-forward networks (FFN) inside transformers, which contain 2/3 of the model parameters and have so far not received much attention. We find that FFNs are an inefficient yet important architectural element and that they cannot simply be replaced by attention blocks without a degradation in performance. Moreover, we study the interactions between layers in BERT and show that, while the layers exhibit some hierarchical structure, they extract features in a fuzzy manner. Our results suggest that BERT has an inductive bias towards layer commutativity, which we find is mainly due to the skip connections. This provides a justification for the strong performance of recurrent and weight-shared transformer models.
Comments: Accepted at IJCNN 2021
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI)
Cite as: arXiv:2101.04547 [cs.CL]
  (or arXiv:2101.04547v4 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2101.04547
arXiv-issued DOI via DataCite

Submission history

From: Damian Pascual [view email]
[v1] Tue, 12 Jan 2021 15:29:38 UTC (608 KB)
[v2] Wed, 13 Jan 2021 09:58:42 UTC (608 KB)
[v3] Thu, 14 Jan 2021 10:23:01 UTC (608 KB)
[v4] Fri, 7 May 2021 07:38:46 UTC (1,342 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Of Non-Linearity and Commutativity in BERT, by Sumu Zhao and 3 other authors
  • View PDF
  • TeX Source
view license

Current browse context:

cs.CL
< prev   |   next >
new | recent | 2021-01
Change to browse by:
cs
cs.AI

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar

DBLP - CS Bibliography

listing | bibtex
Sumu Zhao
Damian Pascual
Gino Brunner
Roger Wattenhofer
Loading...

BibTeX formatted citation

Data provided by:

Bookmark

BibSonomy Reddit

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
We gratefully acknowledge support from our major funders, member institutions, , and all contributors.
About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab)
Major funding support from
Simons Foundation Simons Foundation International Schmidt Sciences