[1/5] I made my language model better at following instructions.
But its language-modelling perplexity got 32.4% worse.
Behaviour improved. Another quality metric deteriorated.
This is the kind of trade-off often discussed as the alignment tax.
I wanted to understand why. 🧵
@Priyansh_31Dec Guys i build an 114 Million parameter language model from scratch its an complete stack from pretraining to post training.
https://t.co/voWdbddIkh
@uzair__afridi Because of the ecosystem build around like numpy, pytorch, tenserflow which enables any body build models without requiring the knowledge of cuda or low level programing and focus more on the actually problem.
@Aditya_181105 After reading the papers I would recommend to build a small model even in million paramter,doesn't matter it teaches a lot than just reading text.
@uzair__afridi The 70B will be smarter because even tough it has been compressed it's knowledge is way bigger than the 8B model and quantization reduces very few points.
I documented the full experiment, including successful and failed generations:
GitHub: https://t.co/voWdbddIkh
Lyra-base: https://t.co/l7d8sbUA7P
Lyra-SFT: https://t.co/tbZJUCkd2w
[1/5] I made my language model better at following instructions.
But its language-modelling perplexity got 32.4% worse.
Behaviour improved. Another quality metric deteriorated.
This is the kind of trade-off often discussed as the alignment tax.
I wanted to understand why. 🧵
[5/5] This experiment raised an important question:
How can we improve instruction-following behaviour without sacrificing capabilities acquired during pretraining?
These findings are specific to Lyra's training setup, not evidence that SFT always reduces general capabilities.
[3/5] Behavioral eval improved: 10/63 → 18/63.
But WikiText perplexity went the opposite way:
57.8 → 76.5 (+32.4%).
The model became better at selected instruction-following behaviours, but its language-modelling performance on WikiText deteriorated.
[2/5] I investigated this using Lyra my custom model, comparing its pretrained checkpoint with a version that underwent supervised fine-tuning.
Both checkpoints were evaluated using a custom behavioural suite, WikiText perplexity and general language-model benchmarks.
[5/5] The complete architecture, training pipeline, experiments, benchmark results and limitations are documented here.
GitHub: https://t.co/voWdbddIkh
Model weights: https://t.co/l7d8sbUA7P
[1/5] 114 million parameters. 3 billion training tokens. Just 2 NVIDIA T4 GPUs.
Can a relatively small language model learn something meaningful under such limited compute?
Here's what happened. 🧵
[4/5]I compared Lyra against Pythia-70M, Pythia-160M, GPT-2 and SmolLM-135M across eight benchmarks.
The comparison spans models with different parameter counts and pretraining budgets.
It was an interesting way to examine what a small model could achieve under limited compute.
[3/5] Across 11,442 training steps:
Training loss: 4.4343→2.7025
Training perplexity:84.30→14.92
The model was trained across multiple Kaggle sessions using 2 T4 GPUs.
I also investigated different GQA implementations to understand hardware-specific attention performance.