Skip to content
OpenPond
Join community
Ponder Training/Neuron training

Neuron training

Learn persistent deltas to selected MLP output columns.

Choose SFT → Neuron training for its dedicated supervised target/background workflow. A saved patch is an inference artifact; training continuation and composition from that patch are unavailable.

Neuron training selects MLP features and learns changes to their output columns. The current OpenPond implementation uses the pinned dense BF16 Qwen3-8B and keeps its original checkpoint frozen. A learned delta changes the effective weights at inference; it is distinct from inspecting activations or choosing a fixed steering dose. The bounded check below establishes selection, training and retained deltas; it does not qualify answer quality or serving.

Where the delta enters the model

A neuron here is one input coordinate of the MLP down projection. Selecting column j changes how feature a[j] writes back to the residual stream, not the feature's incoming detector weights.

Automatic selection combines target/background absolute activity with actual reply-loss column gradients. Eligibility requires positive activity above the layer's 90th percentile and the configured background/target ratio; ranking uses gradient norm divided by background activity with a numerical floor. Background statistics respect the separately named domains. Too few eligible coordinates is an error. Explicit layer:neuron choices still require valid selection measurements; they do not bypass eligibility.

Only FP32 g and u enter the optimizer. The frozen base stays outside it. The runtime computes the residual using the same BF16 operand cast during training, reload and serving; cross-runtime equivalence needs its own evidence. The exported artifact stores selected indices and final FP32 column deltas, not optimizer state.

Measured four-step check

A short GPU check on the pinned Qwen3-8B base completed four optimizer steps on four reviewed examples. Automatic selection chose four coordinates from 791 eligible candidates: 1:4497, 2:2067, 1:12065 and 3:1386. The optimizer trained 16,388 FP32 gain-and-direction parameters. The original base-weight hashes matched before and after training, and its optimizer and gradient parameter counts were both zero.

The actual selected-neuron grid shows four measured coordinates and the activity and gradient metrics for the selected coordinate.

The learned branch adds selected-input-times-delta to the frozen mlp.down_proj output. It does not rewrite the base matrix. The exported patch contains FP32 delta tensors of shape 4,096 × 2 at layer 1 and 4,096 × 1 at layers 2 and 3, plus selected indices. The retained patch.safetensors is 66,064 bytes and its manifest is 5,723 bytes. The result was saved as a Model version and reopened with identical retained contents.

The trainer reported 98.572 seconds, excluding cold download and startup, with 2,420 forward and 1,010 backward token-work units. Mean training loss was 3.049783 and final loss was 2.775466. Mean preservation KL was 0.000196336 over 55 preservation tokens. These are fitting measurements, not held-out quality or locality results. The settled training charge was $0.729836; it includes billable startup and model work beyond the reported training duration.

Independent serving and held-out target, neighboring-topic and background comparisons remain open. The support-answer example below remains illustrative.

Worked example: support-answer convention

A reviewed target task might be:

json
{ "input": { "ticket": "My Luma Dock will not charge" }, "expectedOutput": { "reply": "Check the dock cable first. If the indicator stays dark, contact Luma support." } }

These are task fields, not a Dataset import request. Approve one exact matching JSON assistant demonstration per training task and seal the batch. Create separately named background batches such as general_chat and code_help, with their own reviewed answers. Include nearby support topics in held-out checks; quiet unrelated domains do not establish locality on neighboring topics.

  1. Open New Model, choose SFT and the Neuron Training adapter, then Save.
  2. In Model, select the exact base. In Dataset, select or create the Dataset and prepare target and named background batches; optionally select a preservation batch. Review attached checks in Graders.
  3. In Run settings, set count, learning rate, steps and sequence bound. Explicit coordinates are one layer:neuron per line and their distinct count must match the selected count. An inspection supplies coordinates, not targets.
  4. Enable preservation weight and examples per step together if using that loss. Defaults disable it; selecting a preservation batch alone does not optimize preservation. Save configuration retains the draft. Choose Train, inspect the preparation, then explicitly approve Start.

Reuse the saved draft through the SDK

Pass an authenticated createTrainingClient client and the saved draft ID to this function, along with two operation IDs persisted before dispatch. It reads the actual UI form, compiles exact batch/model references and prepares a review; it does not start compute. Retain both returned objects.

typescript
import { createTrainingClient, NeuronTrainingExperimentFormDraftSchema, ModelModificationCapabilitiesQuerySchema, canonicalComputeSpendCap, canonicalSha256, ManagedNeuronTrainingStartSchema, } from "openpond-sdk/training"; type Client = ReturnType<typeof createTrainingClient>; export async function reviewNeuronTraining( client: Client, teamId: string, draftId: string, prepareOperationId: string, startOperationId: string, ) { const record = await client.getExperimentDraft(teamId, draftId); const form = NeuronTrainingExperimentFormDraftSchema.parse( record.draft.neuronTrainingForm, ); if (!form.baseModel) throw new Error("Select the exact starting model."); const base = Object.fromEntries( Object.entries(form.baseModel).filter( ([key, value]) => key !== "schemaVersion" && value !== null, ), ); const query = ModelModificationCapabilitiesQuerySchema.parse({ teamId, ...base, }); const compiled = await client.compileNeuronTrainingExecution({ teamId, projectId: record.projectId, method: "selective_neuron_training", query, form, }); const prepared = await client.prepareNeuronTrainingExecution({ teamId, projectId: record.projectId, operationId: prepareOperationId, method: "selective_neuron_training", name: form.name.trim(), query, request: compiled.request, sourceForm: form, maximumSpendUsd: canonicalComputeSpendCap(form.maximumSpendUsd), }); const execution = prepared.execution; const start = ManagedNeuronTrainingStartSchema.parse({ teamId, id: execution.id, operationId: startOperationId, action: "start", expectedRevision: execution.revision, planHash: execution.plan.contentHash, approvedMaximumSpendUsd: execution.plan.maximumSpendUsd, ...(execution.plan.computePrice ? { approvedPriceHash: await canonicalSha256(execution.plan.computePrice), } : {}), }); return { prepared, start }; }

Inspect the returned exact inputs, price, optional spending limit and expiry. Serialize start as neuron-training-start.json only for the review you intend to approve. Then use the official CLI with the same account/workspace:

bash
openpond training hosted-start-neuron-training neuron-training-start.json --team-id "$TEAM_ID" --yes --json openpond training hosted-neuron-training-execution "$EXECUTION_ID" --team-id "$TEAM_ID" --json

EXECUTION_ID is prepared.execution.id. CLI compile/prepare equivalents are hosted-compile-neuron-training and hosted-prepare-neuron-training with their typed request JSON. The shared API uses POST /v1/training/modification-executions/compile, POST /v1/training/modification-executions/prepare and POST /v1/training/modification-executions/{id}/start; use the SDK to verify returned hashes. A lost response requires the original operation ID and request, not another paid Start. Follow cancellation through verified cleanup.

Inspect the output and use the Model

The desired support reply is illustrative. Inspect the actual completed result:

FieldWhat to establish
selectionMeasured target/background activity, gradients and selected coordinates.
optimizerSteps, meanLoss, finalLossReal finite updates to the selected parameters.
meanPreservationKl, preservationTokensPreservation work only when it was enabled and executed.
baseWeightsHashBefore, baseWeightsHashAfterOriginal checkpoint unchanged; base optimizer/gradient counts are zero.
work, forwardTokenWork, backwardTokenWorkSelection, fitting, preservation and verification consume the bounded work budget.
artifact.filesCommitted manifest.json and patch.safetensors, with indices and deltas.

Using the Client type above, this returns actual result evidence, not an illustrative success envelope:

typescript
export async function neuronDeltaOutput( client: Client, teamId: string, id: string, ) { const run = await client.getNeuronTrainingExecution(teamId, id); if (run.phase !== "completed" || !run.result) throw new Error("No completed learned delta."); return { selected: run.result.selection.entries.map(({ layer, neuron, score }) => ({ layer, neuron, score, })), learnedDelta: run.result.artifact.manifest.payload, preservationKl: run.result.meanPreservationKl, }; }

Choose Save Model after verified completion; the CLI equivalent is hosted-save-neuron-training-model with a NeuronTrainingResultSaveRequest. Activate compatible serving separately and compare held-out target, neighboring and background tasks. Reloading the artifact is a correctness check, not a quality score or proof that a neuron has one human-readable meaning. Training continuation from an already saved neuron delta is unsupported; compatible inference does not make it resumable optimizer state.

Sources and implementation boundary

Compatibility

A bounded four-step selected-neuron GPU check passes on the pinned Qwen base. Serving requires independent runtime and billing qualification.

View as Markdown