IdentityLock: Drop-In Stable Wide-Residual Layers for Pretraining
A code replacement for AI training that prevents models from becoming unstable as they get wider.
A drop-in replacement for Hyper-Connection layers in LLM pretraining codebases that restores the identity-mapping property via manifold projection, so teams scaling residual-stream width stop hitting training instability and scaling walls.
Concept
A pip-installable PyTorch module that is a drop-in replacement for Hyper-Connections (HC) layers in existing pretraining codebases. Teams that adopted HC to widen the residual stream and diversify connectivity — and then hit loss spikes, diverged runs, or scaling ceilings — swap one import. The module projects HC's expanded residual connection space onto a constrained manifold that restores the identity-mapping property of classic residual connections, which the paper identifies as the root cause of HC's instability. It ships with config presets for common model widths/depths and a short smoke-train validation script so a team can confirm stability before committing a full launch. One wedge: make wide residual streams scale stably.
Why now
Paper [0] demonstrates that HC's connectivity diversification "fundamentally compromises the identity mapping property intrinsic to the residual connection," causing "severe training instability and restricted scalability," and shows that projecting HC's residual connection space onto a manifold (mHC) restores identity mapping while delivering "tangible performance improvements and superior scalability" in experiments that are "effective for training at scale." This converts a known, painful failure mode of a popular architecture upgrade into a bounded, swappable engineering fix. Corpus paper [6] documents that at trillion-parameter scale, full-parameter training already battles severe memory pressure and system-level inefficiency — precisely the regime where an unstable run that must be restarted is most expensive, giving a stability retrofit immediate ROI for labs operating there.
Written by GLM · 26 Nov 2026
AI assessment
An exceptional, high-ROI engineering tool that solves a specific, expensive failure mode in foundation model pretraining with a simple, drop-in implementation.
- Evidence strength 5/5
- The idea is directly derived from paper [1], which explicitly identifies the identity-mapping failure of HC and provides the mHC manifold projection as the solution for stability and scalability.
- Market pull 5/5
- The target users are high-end AI labs where a single diverged run at trillion-parameter scale costs millions of dollars, creating an urgent financial incentive for stability tools.
- Novelty & moat 4/5
- While similar to other 'retrofit' ideas in the catalog, this targets a specific, high-value architectural failure in LLM pretraining that is not addressed by the existing entries.
- Feasibility 5/5
- Implementing a PyTorch module for manifold projection is a straightforward engineering task that does not require new hardware or massive datasets to prototype.
- Wedge clarity 5/5
- The wedge is highly specific: a drop-in replacement for HC layers to solve training instability in wide residual streams.
- Simplicity / focus 5/5
- The product is a single, focused PyTorch module rather than a broad platform, maintaining a tight scope.
Scored by Gemma 4 · 26 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Who benefits
- Together AIcompany
Pretrains open-weight foundation models on its own fleet; a drop-in stability fix for wide-residual architectures directly cuts diverged runs and restart costs.
- Databrickscompany
Its MosaicML platform lets enterprises pretrain models; shipping a stable HC-to-mHC upgrade path is a concrete differentiator for the platform's training offering.
- Mistral AIcompany
Pretrains frontier-scale foundation models where the paper's demonstrated 'training at scale' results apply directly to their architecture decisions.
- EleutherAIorganization
Open-source training research on donated compute cannot afford instability-driven restarts; a drop-in module fits its code-first, volunteer-run workflow.
- Allen Institute for AI (AI2)organization
Runs open OLMo pretraining on fixed academic budgets; stability at scale stretches scarce GPU-hours further.