Skip to content
OpenPond
Join community
Ponder Training/Shared LoRA

Shared LoRA

Continue training the exact inherited LoRA factors on a frozen base in a compatible GRPO stage.

This is an RL → LoRA (GRPO) parent-continuation mode, not a primary workflow or a generic SFT, Engram or neuron-training option. Manual continuation and a scheduled policy use separate reviewed authority; interrupted-run recovery retains the original operation.

Shared LoRA continues training the parent's existing A and B factors. The base weights remain frozen. It adds no new residual adapter branch and does not mean sharing one A matrix across several independently trained B branches.

Choose it when the next GRPO stage should update the same factorization. This keeps the same rank and starting factorization; it does not guarantee that new training preserves earlier behavior.

The weight update

For one projection, let:

  • W_0 be the frozen base weight;
  • A_p and B_p be the exact inherited low-rank factors;
  • s be the accepted LoRA scale, conventionally alpha / r.
W0∈Rdout×din,Ap∈Rr×din,Bp∈Rdout×r,s=αr.W_0\in\mathbb{R}^{d_{\mathrm{out}}\times d_{\mathrm{in}}},\qquad A_p\in\mathbb{R}^{r\times d_{\mathrm{in}}},\qquad B_p\in\mathbb{R}^{d_{\mathrm{out}}\times r},\qquad s=\frac{\alpha}{r}.

The next stage starts from the inherited values:

A(0)=Ap,B(0)=Bp,Weff(t)=W0+sB(t)A(t).\begin{aligned} A^{(0)}&=A_p, & B^{(0)}&=B_p,\\ W_{\mathrm{eff}}^{(t)}&=W_0+sB^{(t)}A^{(t)}. \end{aligned}

Both factors can change. Let G be the loss gradient with respect to the effective weight. The chain rule gives:

G=∇WeffL,∇AL=sB⊤G,∇BL=sGA⊤.G=\nabla_{W_{\mathrm{eff}}}\mathcal{L},\qquad \nabla_A\mathcal{L}=sB^\top G,\qquad \nabla_B\mathcal{L}=sGA^\top.

The inherited contribution is therefore not a frozen branch. For changes delta_A and delta_B, its effective change is:

ΔW=s[(Bp+δB)(Ap+δA)−BpAp]=s(BpδA+δBAp+δBδA).\begin{aligned} \Delta W &=s\bigl[(B_p+\delta B)(A_p+\delta A)-B_pA_p\bigr]\\ &=s\bigl(B_p\delta A+\delta B A_p+\delta B\delta A\bigr). \end{aligned}

That last term helps explain why continuing factors is different from adding a separate child adapter. These equations describe the selected projection; they are not a measured optimizer step or a promise about answer quality.

What stays fixed

PartTreatment
Base checkpointFrozen, with exact model/tokenizer/template identity.
Parent factor valuesInitial values for this stage, then trainable.
Logical rankSame as the accepted parent's single factor slice.
Frozen parent referenceSeparate immutable reference for the configured GRPO comparison/KL rule. It is not added a second time to the active policy.
Optimizer stateFresh for a new cross-job stage. Interrupted-job recovery is separate.

Example: a second rank-8 stage

Suppose an eligible parent has one rank-8 factor block. A compatible Shared stage also requests rank 8. It begins at the exact parent A/B values and lets the new reward signal change them. Its active logical rank remains 8.

A request for rank 16 is not the same continuation. The current resolver rejects that mismatch rather than refactorizing the parent approximately. A multi-block Stacked parent is also not automatically eligible for Shared. The current resolver rejects a derived-backbone parent outside the Merged path.

This is a configuration example, not an executed training result. Only exact runtime capability discovery establishes whether the selected rank and parent are available.

Configure and review

  1. Open New Model, choose RL and LoRA, then Save. In Model, select Shared under LoRA configuration for manual checkpoint continuation.
  2. Select an exact compatible saved GRPO-trained Model checkpoint. A mode selection alone supplies no parent, and an SFT artifact is not a supported substitute.
  3. Review admitted reward-training tasks, executable graders, independent evaluation and supported GRPO limits.
  4. Prepare the run and inspect the exact parent Job, checkpoint, artifact hash, factor identity, rank, reference rule and spending before explicitly starting.

The service checks base, tokenizer, chat template, engine/topology, recipe compatibility and signed artifact lineage. Current cross-job continuation also preserves the compatible learning-rate setting. A shape-compatible tensor pair alone is not sufficient authority to continue a parent.

Interpret the result

  • Inspect actual optimizer updates, factor/checkpoint publication and reload evidence; a completed label alone does not establish a changed model.
  • Compare the candidate on separate target and regression tasks. The same factors can change behavior learned in an earlier stage.
  • Save or accept the qualified candidate separately from serving activation.
  • Compatible continual learning can retain Shared as its future GRPO strategy. Selecting it does not create a schedule, admit examples or authorize automatic serving.

For a frozen inherited contribution with a fresh child, see Stacked LoRA. For a materialized derived backbone, see Merged LoRA. The GRPO guide contains the shared preparation/Start contract. The LoRA architecture comparison explains why a shared-A architecture is a different construction.

Sources and client contract

Compatibility

GRPO cross-job continuation only. Requires an exact compatible single factor slice at the same logical rank and a qualified runtime; each new stage resets its optimizer.

View as Markdown