hn.today

Drop the FFN – A Column Attention Transformer for TinyStories

github.com31 points3 comments
Screenshot of Drop the FFN – A Column Attention Transformer for TinyStories

Drop the FFN is a 107.3-million-parameter causal language model that removes the feed-forward network from each of its eight Transformer blocks and replaces it with column attention. After conventional causal attention across token positions, each token uses its own activations to compute new channel-mixing weights. The 512-dimensional representation is split into eight groups; each produces 256 queries, while groups share projected keys and values. This makes channel mixing depend on the current token rather than on fixed learned weights. The design deliberately trades more computation for potentially fewer resident model weights, with the eventual aim of making local inference and distributed training more practical on memory- and bandwidth-limited hardware.

At step 59,000 of an ongoing training run - about 1.64 epochs - the model scored validation NLL 1.42028 and perplexity 4.13828, outperforming a publicly released TinyStories baseline’s 1.56311 and 4.77366. The comparison used 215,176 next-token targets; 262 validation stories duplicated in training were excluded from scoring. The new model nevertheless has 36.2% more parameters than the baseline, and the models differ in depth, positional encoding, training history, and evaluation hardware, so the result establishes better prediction on this selected dataset, not a matched-quality parameter reduction. The project’s central hypothesis remains unproven: extra on-device computation may eventually enable comparable quality with fewer weights. Peak memory, token latency, and communication costs at matched quality are the key measures needed to test that claim.

Read on github.com3 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.