HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Trellis Networks for Sequence Modeling

Shaojie Bai; J. Zico Kolter; Vladlen Koltun

Trellis Networks for Sequence Modeling

Abstract

We present trellis networks, a new architecture for sequence modeling. On the one hand, a trellis network is a temporal convolutional network with special structure, characterized by weight tying across depth and direct injection of the input into deep layers. On the other hand, we show that truncated recurrent networks are equivalent to trellis networks with special sparsity structure in their weight matrices. Thus trellis networks with general weight matrices generalize truncated recurrent networks. We leverage these connections to design high-performing trellis networks that absorb structural and algorithmic elements from both recurrent and convolutional models. Experiments demonstrate that trellis networks outperform the current state of the art methods on a variety of challenging benchmarks, including word-level language modeling and character-level language modeling tasks, and stress tests designed to evaluate long-term memory retention. The code is available at https://github.com/locuslab/trellisnet .

Code Repositories

locuslab/trellisnet
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
language-modelling-on-penn-treebank-characterTrellis Network
Bit per Character (BPC): 1.158
Number of params: 13.4M
language-modelling-on-penn-treebank-wordTrellis Network
Test perplexity: 54.19
language-modelling-on-wikitext-103Trellis Network
Test perplexity: 29.19
sequential-image-classification-on-sequential-1Trellis Network
Unpermuted Accuracy: 73.42%

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Trellis Networks for Sequence Modeling | Papers | HyperAI