arXiv(opens in a new tab)cs.LGAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.00092

Safin-1: Safety from Within through Memory-Native State Evolution

Ming Zhang, Kaisen Yang, Shu Yu, Ermo Hua, Zhekai Chen, Cheng Jin, Jingnan Zheng, Yi Zhang, Zhongtian Ma, Jiawei Zhou, Sirui Chen, Qiaosheng Zhang, Xiang Wang, Ning Ding, Xia Hu, Bowen Zhou, Youbang Sun, Chaochao Lu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Safin Team, Shanghai AI Laboratory

GitHub

Hugging Face

Long-horizon complex tasks require foundation models to accumulate information, maintain internal states, and adapt over extended interactions. In these settings, safety should be an intrinsic property of the model itself, rather than a behavioral constraint that depends solely on external safeguards or post-hoc alignment procedures such as supervised fine-tuning. This motivates Safety from Within, in which safety-relevant capabilities are represented and invoked through the model's native computation rather than relying solely on external safeguards. We present Safin-1, a family of foundation models that realizes this principle through memory routing and state evolution. Safin-1 is built on Memory-Anchor Routing across Context History (MARCH), a novel network architecture that maintains structured memory states and selectively retrieves relevant historical information through content-conditioned routing. Safin-1 further supports test-time adaptation of persistent capability states without repeatedly modifying the backbone model, enabling controlled specialization over a shared general-purpose foundation. We investigate this persistent-memory interface on downstream safety tasks through a Safety State, demonstrating effective state-based adaptation with substantial safety improvements. More broadly, the routed-state interface unifies contextual memory and persistent capability adaptation within the model's native computation. This reframes model memory from a passive record of prior context into an active substrate for maintaining and evolving model behavior over time. Evaluations across general capabilities, long-context understanding, retrieval, and efficiency further validate Safin-1. Together, these findings provide a concrete path toward safety as a state-native and adaptively maintainable capability. We emphasize that this work represents only an initial architectural exploration of Safety from Within, and substantial further work is needed to realize this broader vision.

Figure

Figure 1 | Safin-1 architecture and representative results. Left: results from 0.8B architectural validation and 35B-A3B scaling. The 4B safety panel compares Qwen3.5 with Safin-1 equipped with its learned Safety State. Right: the Safin-1 architecture routes context-derived and persistent memory states for selective readout.

Contents

1 Introduction 3
2 Technical Methodology 4
2.1 Context-Derived State Anchors 5
2.2 Content-Routed State Retrieval 6
2.3 Persistent Capability States 7
2.4 Efficient Producer-Reader Implementation 7
3 Small-Scale Validation of MARCH 8
3.1 Experimental Setup 8
3.2 Language Modeling and Long-Context Capabilities 8
3.2.1 General Language Modeling 8
3.2.2 Length Extrapolation and Associative Recall 9
3.2.3 Long-Context Understanding and In-Context Retrieval 9
3.3 Architecture Analysis 10
3.4 Efficiency and Scalability 12
4 Safin-1 at Scale 13
4.1 Continual Pretraining and Supervised Fine-Tuning 13
4.1.1 Experimental Setup 13
4.1.2 Capability and Safety Evaluation 14
4.2 Safety from Within via a Persistent Safety State 15
4.2.1 Training Data and Experimental Setup 16
4.2.2 Safety-Utility Trade-off 16
5 Related Works 18
6 Discussion and Conclusion 19
Project Contributors 20
References 21
A Training Configurations 30
A.1 Small-Scale MARCH Validation 30
A.2 Large-Scale Safin-1 Training 31
A.3 Safety State Specialization 32

References (100)

Couldn't load all references. Reload the page to try again.