RSS Feed Subscribe to RSS Feed

 

Research paper summary: Attention is all you need

Attention is all you need is an era defining paper from eight researchers who all worked for Google at the time. The title is a play on the Beatles song, Love is all you need.

The paper addresses some of the shortcomings of other common approaches in Machine Learning (such as recurrent and convolutional layers), in favor of a new  architecture, the Transformer. It is based on an approach called self-attention where the model can associate the current token (or word) to any other token in the document, regardless of it’s position. This makes the model so much better at capturing associations and meaning across documents. Further, the Transformer architecture is able to to this processing in parallel, making it faster that preceding models.

I don’t have a Machine Learning background, so this paper was a tough read for me. My interpretation reflects that and I have relied on (and quoted from) other interpretations to help me, including:

  • “The Illustrated Transformer” (github.io) by Jay Alammar, which is the most digestible interpretation I could find, and
  • This summary from the University of Notre Dame (although exact authorship unclear)

Still, the original is short (16 pages) and is so influential that it was worth reading directly; it came to define the modern era of AI and of LLMs (Large Language Models).

 

(more…)

Tags: , , , , , , ,

What are Small Language Models?

We hear a lot about Large Language Models (LLMs) such as OpenAI’s GPT (Generative Pre-trained Transformer), Google’s Gemini and Anthropic’s Claude.

Small Language Models (SLMs) are much less well known, but include the Phi family of SLMs from Microsoft, Mistral Small, and Llama from Meta.

The “large” or “small” in these models refers to both the number of parameters in the models, and the amount of data used for training. SLMs have both a smaller number of parameters and a smaller training data set when compared to LLMs.

Admittedly, the line between LLM and SLM is blurry. There is no well defined distinction between them, but below I cover some of the common characteristics.

(more…)

Tags: , , , , ,