Text Classification
Transformers
lora
fine-tuning
adaptive
research
nested-lora
synaptic-plasticity
rank-adaptation
Instructions to use Simo76/Unified-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Simo76/Unified-LoRA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Simo76/Unified-LoRA")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Simo76/Unified-LoRA", dtype="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,620 Bytes
02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f 02433bd 3f5b03f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | Architecture β Nested Orbital LoRA
Core idea: dynamic rank control via stress-driven orbital transitions with weight persistence (no cold start).
Problem: cold start on rank transitions
Standard multi-rank LoRA keeps separate adapters per rank:
r=4, r=8, r=16 β independent weights
Switching rank causes partial cold restarts β performance drop.
Solution: Nested LoRA (one adapter, multiple ranks)
Single adapter at max rank:
A(16, d), B(d, 16)
Active rank is obtained by slicing:
r=4 β A[:4, :], B[:, :4]
r=8 β A[:8, :], B[:, :8]
r=16 β full matrix
r4 β r8 β r16
Lower ranks reuse trained weights β no cold start.
Scaling
To keep output magnitude consistent:
scale = max_rank / max(r, 1)
scale = min(scale, 4.0) # optional clamp
Orbital Controller (no thresholds)
Dynamic trajectory instead of static FSM:
Ascend β stress detected β increase rank
Hold β oscillation β stay
Descend β stable β decrease rank
Uses a stack to ensure symmetric return.
Stress signal
Ο(t) = |loss - EMA(loss)| + 2.0 Γ max(0, loss - prev_loss)
Auto-calibrated thresholds:
t_stress = ΞΌ + 0.7Ο
t_stable = max(ΞΌ - 0.3Ο, 0)
Robust stats can be used to reduce noise.
Why it matters
avoids cold starts across rank changes
adapts capacity in real-time
works in black-box settings
O(1) overhead
Comparison
Property
Standard LoRA
AdaLoRA
Orbital LoRA
Rank control
Fixed
SVD
Stress
Control type
None
Open
Closed-loop
Transition cost
N/A
High
O(1)
Architecture
Single
Pruned
Nested
Black-box
Yes
No
Yes
|