← all repositories

SakanaAI/self-adaptive-llms

A self-adaptation framework that adjusts LLM weight components in real-time using RL-trained task-specific expert vectors.

1.2k stars Python Language ModelsML Frameworks
self-adaptive-llms
Velocity · 7d
+2.2
★ / day
Trend
steady
star history

Transformer squared is a novel framework that enables LLMs to adapt to unseen tasks without traditional fine-tuning. It uses a two-pass inference mechanism where a dispatch system identifies task properties, then dynamically mixes learned expert vectors to produce targeted behavior. Expert vectors are trained using reinforcement learning to selectively adjust singular components of model weight matrices, enabling efficient task-specific adaptation during inference.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.