Skip to content

[Bug]: Unnormalized router weights on tail skip / default STRATA_ROUTE_TAIL_SKIP causes reasoning degradation #168

Closed

Description

@ShadowPlague21

What happened

When tail skipping is active (either via --tail-skip in strata-poly, or via the CUDA backend default STRATA_ROUTE_TAIL_SKIP=7 in build-poly/strata when experts reside in host RAM), dropped experts are zeroed out in the accumulator without renormalising the surviving router weights (sum(weights) < 1.0).

This causes noticeable accuracy and reasoning degradation on offloaded models:

  1. Under-scaled layer activations lead to repetition loops and degraded multi-step Chain-of-Thought reasoning.
  2. In structured outputs / tool calling, missing expert contributions intermittently corrupt arguments (similar to upstream Strata #5225).
  3. In build-poly/strata, STRATA_ROUTE_TAIL_SKIP=7 turns on silently by default on CUDA when experts are in host RAM unless explicitly overridden. serve/server.py also does not inject 0 into child environments by default.

PolyStrata version, GPU, OS

v0.1.45-poly.9 · RTX 5060 Ti 16GB · AMD Ryzen 7 5700X · Linux (Ubuntu 24.04)

How we are currently mitigating this

We currently enforce exact mathematical routing in our launcher scripts and runtime JSON configs:

"env": {
  "STRATA_ROUTE_TAIL_SKIP": "0",
  "STRATA_ROUTE_PRIOR": "0",
  "STRATA_KVA": "0",
  "STRATA_PREFILL_CPU_SHARE": "0"
}

Setting STRATA_ROUTE_TAIL_SKIP=0 completely eliminated the reasoning degradation and output corruption in our local runs.

Suggested fix

  1. Default STRATA_ROUTE_TAIL_SKIP=0 in serve/server.py child environments and runner configs so inference remains mathematically faithful unless explicitly opted into for throughput.
  2. In the accumulator/kernel where tail skipping or --skip-weight is enabled, renormalise the active expert weights (w_i / sum(w_active)) before accumulating, preventing activation magnitude collapse.

Activity

  1. VecSzn commented on Nov 16, 2026

    @VecSzn
    Collaborator

    I measured it, and with the weights renormalized the answers move further away from the ones with nothing left out, not closer, so the weights stay as they are. The stuff you saw came from leaving the experts out, and STRATA_ROUTE_TAIL_SKIP=0 turns that off like you did.

  2. vehystrix commented on Nov 21, 2026

    @vehystrix
    Contributor

    I think their point may be that the default STRATA_ROUTE_TAIL_SKIP=7 causes an accuracy loss, and that the default should be 0 instead.
    Setting it to 7 should be opt-in as a speed vs accuracy tradeoff.

  3. VecSzn commented on Nov 22, 2026

    @VecSzn
    Collaborator

    @vehystrix I agree, 7 should not be default. In v0.2.19-poly.1 the strata engine has tail skip off by default, unless the config sets it. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions