传统 Transformer 在生成末步用 argmax 从 logits 里挑最大——这一个操作就把模型内部丰富的多极信息坍缩成单极输出。对于危机干预场景,这意味着「拨打心理危机干预热线 400-161-9995」这样的救命信息可能因为概率不是最高而被整句剔除。 本协议用融合函数替代 argmax: - modulus = √(a² + b²) — 总能量 - phase = atan2(b, a) — 两极关系角 - balance = sin(2·phase) — 平衡度 ∈ [0, 1]…
Dataset Card
传统 Transformer 在生成末步用 argmax 从 logits 里挑最大——这一个操作就把模型内部丰富的多极信息坍缩成单极输出。对于危机干预场景,这意味着「拨打心理危机干预热线 400-161-9995」这样的救命信息可能因为概率不是最高而被整句剔除。 本协议用融合函数替代 argmax: - modulus = √(a² + b²) — 总能量 - phase = atan2(b, a) — 两极关系角 - balance = sin(2·phase) — 平衡度 ∈ [0, 1] 和谐带:balance ≥ 0.5,即 phase ∈ [22.5°, 67.5°]——两极都不被吞没。 1. 禁止 Loss Function - 6 大模型 × 3 案例 = 18/18 全成功(qwen3.8-flash/27b/max、deepseek-v4.1-flash、glm-5.3、kimi-k3),balance 0.87~1.0 - RLHF vs 融合层对比:RLHF 有 1 个伤害请求未拦截 vs 融合层 0 个 A conventional Transformer picks the maximum token via argmax at the final step — collapsing the model's rich multi-pole information into a single pole. In a crisis-intervention context, this means a life-saving message like…
Excerpt from the card by AngelWarmSmile123, licensed cc-by-nc-sa-4.0.
Details
- Repository
- AngelWarmSmile123/heart-fusion
- Publisher
- AngelWarmSmile123
- Task category
- Not stated by the source
- Tags
- ai-safety, transformer, argmax
- Size category
- Not stated by the source
- Languages
- zh, en, ja
- Revision
- 8e10cf71b79d69254d64c36f18f57f575babf049
- Last updated
- 2026-10-01
Files
272 files, 89.0 MB in total.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| benchmark_log.txt | Data | 4.0 KB | — |
| heart-protocol-en/heart_protocol/benchmark/benchmark_report.json | Data | 1.9 KB | — |
| heart-protocol-en/heart_protocol/benchmark/redteam_cases.json | Data | 8.4 KB | — |
| heart_guard_demo/audit_log.jsonl | Data | 2.4 KB | — |
| heart_guard_ms/audit_log.jsonl | Data | 205.6 KB | — |
| heart_guard_space/audit_log.jsonl | Data | 496.3 KB | — |
| heart_protocol/benchmark/benchmark_report.json | Data | 1.9 KB | — |
| heart_protocol/benchmark/redline_cases.json | Data | 45.5 KB | — |
| heart_protocol/benchmark/redline_deepseek_v4_flash.json | Data | 2.0 KB | — |
| heart_protocol/benchmark/redline_deepseek_v4_pro.json | Data | 2.0 KB | — |
| heart_protocol/benchmark/redline_full_pipeline.json | Data | 1.9 KB | — |
| heart_protocol/benchmark/redline_multi_model.json | Data | 277.6 KB | — |
| heart_protocol/benchmark/redline_multi_model_v1_invalid.json | Data | 57.6 KB | — |
| heart_protocol/benchmark/redline_report.json | Data | 2.0 KB | — |
| heart_protocol/benchmark/redteam_cases.json | Data | 8.4 KB | — |
| heart_redline_publish/all_names.txt | Data | 38.6 KB | — |
| heart_redline_publish/novel_read_1.txt | Data | 171.9 KB | — |
| heart_redline_publish/novel_read_2.txt | Data | 160.2 KB | — |
| heart_redline_publish/redline_cases.json | Data | 45.5 KB | — |
| heart_redline_publish/reports/redline_full_pipeline.json | Data | 1.9 KB | — |
| heart_redline_publish/reports/redline_multi_model.json | Data | 277.6 KB | — |
| heart_redline_publish/tmp_articles_extract.jsonl | Data | 67.9 KB | — |
| heart_redline_publish/tmp_deep_stats.json | Data | 11.7 KB | — |
| heart_redline_publish/tmp_love_classified.jsonl | Data | 1.4 MB | — |
| heart_redline_publish/tmp_love_extract.jsonl | Data | 1.3 MB | — |
| heart_redline_publish/tmp_love_full.jsonl | Data | 3.8 MB | — |
| heart_redline_publish/tmp_rescue_full.jsonl | Data | 78.2 MB | 1cd86cd0856f |
| space/requirements.txt | Data | 47 B | — |
| LICENSE | Documentation | 21.3 KB | — |
| README.md | Documentation | 8.6 KB | — |
| SPEC.md | Documentation | 9.9 KB | — |
| benchmark_report.md | Documentation | 6.7 KB | — |
| heart-protocol-en/LICENSE | Documentation | 20.9 KB | — |
| heart-protocol-en/README.md | Documentation | 9.1 KB | — |
| heart-protocol-en/SPEC.md | Documentation | 9.9 KB | — |
| heart-protocol-en/heart_protocol/README.md | Documentation | 3.5 KB | — |
| heart-protocol-en/heart_protocol/benchmark/benchmark_report.md | Documentation | 1.0 KB | — |
| heart-protocol-en/paper/16sephirot_dual_octave_ai_safety.ja.md | Documentation | 46.6 KB | — |
| heart-protocol-en/paper/16sephirot_dual_octave_ai_safety.md | Documentation | 38.0 KB | — |
| heart-protocol-en/paper/16sephirot_dual_octave_ai_safety.zh-CN.md | Documentation | 35.1 KB | — |
| heart_fusion_pkg/README.md | Documentation | 1.9 KB | — |
| heart_guard_demo/LICENSE | Documentation | 20.9 KB | — |
| heart_guard_demo/README.md | Documentation | 2.9 KB | — |
| heart_guard_demo/REPORT.md | Documentation | 5.4 KB | — |
| heart_guard_ms/LICENSE | Documentation | 20.9 KB | — |
| heart_guard_ms/README.md | Documentation | 1.0 KB | — |
| heart_guard_ms/REPORT.md | Documentation | 5.4 KB | — |
| heart_guard_space/LICENSE | Documentation | 20.9 KB | — |
| heart_guard_space/README.md | Documentation | 1.0 KB | — |
| heart_guard_space/REPORT.md | Documentation | 5.4 KB | — |
| heart_protocol/README.md | Documentation | 3.0 KB | — |
| heart_protocol/benchmark/README_redline.md | Documentation | 10.4 KB | — |
| heart_protocol/benchmark/benchmark_report.md | Documentation | 1.0 KB | — |
| heart_protocol/benchmark/redline_flash_report.md | Documentation | 1.9 KB | — |
| heart_protocol/benchmark/redline_full_pipeline_report.md | Documentation | 1.1 KB | — |
| heart_protocol/benchmark/redline_report.md | Documentation | 1.2 KB | — |
| heart_protocol/benchmark/redline_v4pro_report.md | Documentation | 1.8 KB | — |
| heart_redline_publish/README.md | Documentation | 5.0 KB | — |
| heart_redline_publish/paper_en.md | Documentation | 16.2 KB | — |
| heart_redline_publish/paper_ja.md | Documentation | 19.4 KB | — |
| heart_redline_publish/paper_zh.md | Documentation | 13.7 KB | — |
| heart_redline_publish/reports/README_redline.md | Documentation | 10.4 KB | — |
| heart_redline_publish/reports/redline_flash_report.md | Documentation | 1.9 KB | — |
| heart_redline_publish/reports/redline_full_pipeline_report.md | Documentation | 1.1 KB | — |
| heart_redline_publish/reports/redline_report.md | Documentation | 1.2 KB | — |
| heart_redline_publish/reports/redline_v4pro_report.md | Documentation | 1.8 KB | — |
| large_model_validation.md | Documentation | 24.3 KB | — |
| multi_turn_demo.md | Documentation | 1.6 KB | — |
| paper_fusion_v2_arxiv.md | Documentation | 22.1 KB | — |
| protocol_v2_whitepaper.md | Documentation | 9.1 KB | — |
| protocol_v2_whitepaper_en.md | Documentation | 11.9 KB | — |
| rlhf_vs_fusion_report.md | Documentation | 17.9 KB | — |
| space/README.md | Documentation | 1.2 KB | — |
| benchmark_large_models.py | Other | 9.1 KB | — |
| benchmark_report.py | Other | 14.6 KB | — |
| benchmark_rlhf_vs_fusion.py | Other | 11.8 KB | — |
| chatgpt_to_word.py | Other | 8.7 KB | — |
| deepseek_sephirot_bridge.py | Other | 28.6 KB | — |
| deepseek_sephirot_bridge_local.py | Other | 30.5 KB | — |
| demo_16_sephirot.py | Other | 12.1 KB | — |
| demo_attention_gate.py | Other | 9.9 KB | — |
| demo_full_generation.py | Other | 12.2 KB | — |
| demo_fusion_full.py | Other | 5.4 KB | — |
| demo_fusion_output.py | Other | 4.3 KB | — |
| demo_fusion_real_model.py | Other | 4.8 KB | — |
| demo_industrial.py | Other | 5.8 KB | — |
| demo_logits_processor.py | Other | 2.3 KB | — |
| heart-protocol-en/chatgpt_to_word.py | Other | 9.2 KB | — |
| heart-protocol-en/deepseek_sephirot_bridge.py | Other | 28.6 KB | — |
| heart-protocol-en/deepseek_sephirot_bridge_local.py | Other | 30.5 KB | — |
| heart-protocol-en/demo_industrial.py | Other | 5.8 KB | — |
| heart-protocol-en/heart_ffi/build_ffi.bat | Other | 1.4 KB | — |
| heart-protocol-en/heart_ffi/heart_core.c | Other | 13.6 KB | — |
| heart-protocol-en/heart_ffi/heart_core.h | Other | 2.9 KB | — |
| heart-protocol-en/heart_protocol/__init__.py | Other | 3.4 KB | — |
| heart-protocol-en/heart_protocol/abyss.py | Other | 13.1 KB | — |
| heart-protocol-en/heart_protocol/benchmark/runner.py | Other | 14.9 KB | — |
| heart-protocol-en/heart_protocol/demo.py | Other | 5.6 KB | — |
| heart-protocol-en/heart_protocol/ffi_binding.py | Other | 12.0 KB | — |
| heart-protocol-en/heart_protocol/formal/__init__.py | Other | 1.4 KB | — |
| heart-protocol-en/heart_protocol/formal/acl.py | Other | 12.3 KB | — |
| heart-protocol-en/heart_protocol/formal/rollback.py | Other | 12.2 KB | — |
| heart-protocol-en/heart_protocol/formal/spec.py | Other | 20.6 KB | — |
| heart-protocol-en/heart_protocol/fusion.py | Other | 9.7 KB | — |
| heart-protocol-en/heart_protocol/index.html | Other | 27.4 KB | — |
| heart-protocol-en/heart_protocol/llm_bridge.py | Other | 27.1 KB | — |
| heart-protocol-en/heart_protocol/middleware/__init__.py | Other | 722 B | — |
| heart-protocol-en/heart_protocol/middleware/pipeline.py | Other | 11.8 KB | — |
| heart-protocol-en/heart_protocol/middleware/stream.py | Other | 8.2 KB | — |
| heart-protocol-en/heart_protocol/personas.py | Other | 11.2 KB | — |
| heart-protocol-en/heart_protocol/protocol.py | Other | 45.7 KB | — |
| heart-protocol-en/heart_protocol/sephirah.py | Other | 13.1 KB | — |
| heart-protocol-en/heart_protocol/server.py | Other | 39.8 KB | — |
| heart-protocol-en/heart_protocol/test_formal.py | Other | 14.9 KB | — |
| heart-protocol-en/heart_protocol/test_protocol.py | Other | 8.2 KB | — |
| heart-protocol-en/sephirot-rs/.cargo/config.toml | Other | 55 B | — |
| heart-protocol-en/sephirot-rs/Cargo.lock | Other | 15.1 KB | — |
| heart-protocol-en/sephirot-rs/Cargo.toml | Other | 1.4 KB | — |
| heart-protocol-en/sephirot-rs/rust-toolchain.toml | Other | 355 B | — |
| heart-protocol-en/sephirot-rs/src/codegen/avx.rs | Other | 11.0 KB | — |
| heart-protocol-en/sephirot-rs/src/codegen/dml.rs | Other | 4.4 KB | — |
| heart-protocol-en/sephirot-rs/src/codegen/mod.rs | Other | 406 B | — |
| heart-protocol-en/sephirot-rs/src/codegen/ptx.rs | Other | 11.6 KB | — |
| heart-protocol-en/sephirot-rs/src/error.rs | Other | 725 B | — |
| heart-protocol-en/sephirot-rs/src/ffi.rs | Other | 11.4 KB | — |
| heart-protocol-en/sephirot-rs/src/ir.rs | Other | 7.7 KB | — |
| heart-protocol-en/sephirot-rs/src/lang.rs | Other | 15.2 KB | — |
| heart-protocol-en/sephirot-rs/src/lexer.rs | Other | 10.5 KB | — |
| heart-protocol-en/sephirot-rs/src/lib.rs | Other | 1.3 KB | — |
| heart-protocol-en/sephirot-rs/src/main.rs | Other | 19.1 KB | — |
| heart-protocol-en/sephirot-rs/src/parser.rs | Other | 18.3 KB | — |
| heart_ffi/build/heart_core.dll | Other | 53.3 KB | — |
| heart_ffi/build_ffi.bat | Other | 1.4 KB | — |
| heart_ffi/heart_core.c | Other | 10.6 KB | — |
| heart_ffi/heart_core.h | Other | 2.5 KB | — |
| heart_fusion_pkg/build/lib/heart_fusion/__init__.py | Other | 1.7 KB | — |
| heart_fusion_pkg/build/lib/heart_fusion/fusion.py | Other | 14.1 KB | — |
| heart_fusion_pkg/build/lib/heart_fusion/output.py | Other | 11.4 KB | — |
| heart_fusion_pkg/build/lib/heart_fusion/processors.py | Other | 6.6 KB | — |
| heart_fusion_pkg/dist/heart_fusion-2.0.1-py3-none-any.whl | Other | 16.3 KB | — |
| heart_fusion_pkg/heart_fusion/__init__.py | Other | 1.7 KB | — |
| heart_fusion_pkg/heart_fusion/fusion.py | Other | 14.1 KB | — |
| heart_fusion_pkg/heart_fusion/output.py | Other | 11.4 KB | — |
| heart_fusion_pkg/heart_fusion/processors.py | Other | 6.6 KB | — |
| heart_fusion_pkg/pyproject.toml | Other | 1.4 KB | — |
| heart_guard_demo/guard/__init__.py | Other | 197 B | — |
| heart_guard_demo/guard/acl.py | Other | 2.4 KB | — |
| heart_guard_demo/guard/audit.py | Other | 632 B | — |
| heart_guard_demo/guard/content_scan.py | Other | 4.7 KB | — |
| heart_guard_demo/guard/interceptor.py | Other | 3.5 KB | — |
| heart_guard_demo/guard/needles.py | Other | 1.0 KB | — |
| heart_guard_demo/guard/rollback.py | Other | 2.4 KB | — |
| heart_guard_demo/index.html | Other | 16.8 KB | — |
| heart_guard_demo/run_demo.py | Other | 3.8 KB | — |
| heart_guard_demo/scenarios/__init__.py | Other | — | |
| heart_guard_demo/scenarios/s01_eval_spillover.py | Other | 938 B | — |
| heart_guard_demo/scenarios/s02_credential_harvest.py | Other | 525 B | — |
| heart_guard_demo/scenarios/s03_workspace_escape.py | Other | 506 B | — |
| heart_guard_demo/scenarios/s04_self_scan.py | Other | 752 B | — |
| heart_guard_demo/scenarios/s05_needle_manipulation.py | Other | 1.2 KB | — |
| heart_guard_demo/scenarios/s06_honest_gap.py | Other | 1.5 KB | — |
| heart_guard_demo/tests/test_1000_attacks.py | Other | 5.4 KB | — |
| heart_guard_ms/guard/__init__.py | Other | 197 B | — |
| heart_guard_ms/guard/acl.py | Other | 2.4 KB | — |
| heart_guard_ms/guard/audit.py | Other | 632 B | — |
| heart_guard_ms/guard/content_scan.py | Other | 4.7 KB | — |
| heart_guard_ms/guard/interceptor.py | Other | 3.5 KB | — |
| heart_guard_ms/guard/needles.py | Other | 1.0 KB | — |
| heart_guard_ms/guard/rollback.py | Other | 2.4 KB | — |
| heart_guard_ms/index.html | Other | 16.8 KB | — |
| heart_guard_ms/run_demo.py | Other | 3.8 KB | — |
| heart_guard_ms/scenarios/__init__.py | Other | — | |
| heart_guard_ms/scenarios/s01_eval_spillover.py | Other | 938 B | — |
| heart_guard_ms/scenarios/s02_credential_harvest.py | Other | 525 B | — |
| heart_guard_ms/scenarios/s03_workspace_escape.py | Other | 506 B | — |
| heart_guard_ms/scenarios/s04_self_scan.py | Other | 752 B | — |
| heart_guard_ms/scenarios/s05_needle_manipulation.py | Other | 1.2 KB | — |
| heart_guard_ms/scenarios/s06_honest_gap.py | Other | 1.5 KB | — |
| heart_guard_ms/tests/test_1000_attacks.py | Other | 5.4 KB | — |
| heart_guard_space/guard/__init__.py | Other | 197 B | — |
| heart_guard_space/guard/acl.py | Other | 2.4 KB | — |
| heart_guard_space/guard/audit.py | Other | 632 B | — |
| heart_guard_space/guard/content_scan.py | Other | 4.7 KB | — |
| heart_guard_space/guard/interceptor.py | Other | 3.5 KB | — |
| heart_guard_space/guard/needles.py | Other | 1.0 KB | — |
| heart_guard_space/guard/rollback.py | Other | 2.4 KB | — |
| heart_guard_space/index.html | Other | 16.8 KB | — |
| heart_guard_space/run_demo.py | Other | 3.8 KB | — |
| heart_guard_space/scenarios/__init__.py | Other | — | |
| heart_guard_space/scenarios/s01_eval_spillover.py | Other | 938 B | — |
| heart_guard_space/scenarios/s02_credential_harvest.py | Other | 525 B | — |
| heart_guard_space/scenarios/s03_workspace_escape.py | Other | 506 B | — |
| heart_guard_space/scenarios/s04_self_scan.py | Other | 752 B | — |
| heart_guard_space/scenarios/s05_needle_manipulation.py | Other | 1.2 KB | — |
| heart_guard_space/scenarios/s06_honest_gap.py | Other | 1.5 KB | — |
| heart_guard_space/tests/test_1000_attacks.py | Other | 5.4 KB | — |
| heart_protocol/__init__.py | Other | 3.2 KB | — |
| heart_protocol/abyss.py | Other | 31.3 KB | — |
| heart_protocol/benchmark/__init__.py | Other | 167 B | — |
| heart_protocol/benchmark/__main__.py | Other | 182 B | — |
| heart_protocol/benchmark/redline_full_pipeline.py | Other | 7.8 KB | — |
| heart_protocol/benchmark/redline_multi_model.py | Other | 4.3 KB | — |
| heart_protocol/benchmark/redline_runner.py | Other | 14.6 KB | — |
| heart_protocol/benchmark/runner.py | Other | 12.6 KB | — |
| heart_protocol/demo.py | Other | 5.2 KB | — |
| heart_protocol/ffi_binding.py | Other | 9.9 KB | — |
| heart_protocol/formal/__init__.py | Other | 1.4 KB | — |
| heart_protocol/formal/acl.py | Other | 11.1 KB | — |
| heart_protocol/formal/rollback.py | Other | 12.0 KB | — |
| heart_protocol/formal/spec.py | Other | 16.0 KB | — |
| heart_protocol/fusion.py | Other | 14.1 KB | — |
| heart_protocol/fusion_output.py | Other | 11.4 KB | — |
| heart_protocol/index.html | Other | 26.6 KB | — |
| heart_protocol/llm_bridge.py | Other | 25.2 KB | — |
| heart_protocol/middleware/__init__.py | Other | 657 B | — |
| heart_protocol/middleware/pipeline.py | Other | 11.7 KB | — |
| heart_protocol/middleware/stream.py | Other | 6.8 KB | — |
| heart_protocol/personas.py | Other | 7.8 KB | — |
| heart_protocol/processors.py | Other | 6.6 KB | — |
| heart_protocol/protocol.py | Other | 45.6 KB | — |
| heart_protocol/sephirah.py | Other | 12.9 KB | — |
| heart_protocol/server.py | Other | 38.9 KB | — |
| heart_protocol/test_formal.py | Other | 14.9 KB | — |
| heart_protocol/test_protocol.py | Other | 7.9 KB | — |
| heart_redline_publish/classify_love.py | Other | 3.4 KB | — |
| heart_redline_publish/deep_stats.py | Other | 5.2 KB | — |
| heart_redline_publish/extract_articles.py | Other | 2.6 KB | — |
| heart_redline_publish/extract_full.py | Other | 1.2 KB | — |
| heart_redline_publish/extract_love.py | Other | 1.8 KB | — |
| launch_benchmark.py | Other | 545 B | — |
| launch_web.py | Other | 423 B | — |
| launch_web_v2.py | Other | 429 B | — |
| launch_web_v3.py | Other | 429 B | — |
| launch_web_v4.py | Other | 429 B | — |
| launch_web_v5.py | Other | 429 B | — |
| multi_turn_balance.png | Other | 106.6 KB | fd724b8ca48c |
| multi_turn_complex.png | Other | 85.2 KB | 3baaac34a3b5 |
| multi_turn_demo.py | Other | 11.0 KB | — |
| sephirot-rs/.cargo/config.toml | Other | 55 B | — |
| sephirot-rs/Cargo.lock | Other | 15.1 KB | — |
| sephirot-rs/Cargo.toml | Other | 1.3 KB | — |
| sephirot-rs/rust-toolchain.toml | Other | 355 B | — |
| sephirot-rs/src/codegen/avx.rs | Other | 10.4 KB | — |
| sephirot-rs/src/codegen/dml.rs | Other | 4.4 KB | — |
| sephirot-rs/src/codegen/mod.rs | Other | 382 B | — |
| sephirot-rs/src/codegen/ptx.rs | Other | 11.1 KB | — |
| sephirot-rs/src/error.rs | Other | 705 B | — |
| sephirot-rs/src/ffi.rs | Other | 10.7 KB | — |
| sephirot-rs/src/ir.rs | Other | 7.6 KB | — |
| sephirot-rs/src/lang.rs | Other | 14.6 KB | — |
| sephirot-rs/src/lexer.rs | Other | 10.2 KB | — |
| sephirot-rs/src/lib.rs | Other | 1.4 KB | — |
| sephirot-rs/src/main.rs | Other | 18.5 KB | — |
| sephirot-rs/src/parser.rs | Other | 18.1 KB | — |
| sephirot_interpreter.py | Other | 33.1 KB | — |
| space/abyss.py | Other | 31.3 KB | — |
| space/app.py | Other | 18.7 KB | — |
| space/heart_fusion/__init__.py | Other | 1.5 KB | — |
| space/heart_fusion/fusion.py | Other | 14.1 KB | — |
| space/heart_fusion/output.py | Other | 11.4 KB | — |
| space/index.html | Other | 28.6 KB | — |
| start_web.cmd | Other | 225 B | — |
| web_fusion.py | Other | 10.1 KB | — |
| web_fusion_v2.py | Other | 13.1 KB | — |
| web_fusion_v3.py | Other | 25.6 KB | — |
| web_fusion_v4.py | Other | 32.3 KB | — |
| web_fusion_v5.py | Other | 47.1 KB | — |
| .gitattributes | Repository | 2.6 KB | — |
| heart-protocol-en/.gitattributes | Repository | 4.9 KB | — |
| heart_guard_demo/.gitignore | Repository | 51 B | — |
| heart_guard_ms/.gitignore | Repository | 51 B | — |
| heart_guard_space/.gitignore | Repository | 51 B | — |
License and Download
- License
- cc-by-nc-sa-4.0
- Access
- No access gate
Released by AngelWarmSmile123 through its official repository on Hugging Face.