Skip to content

任务5:稀疏打包Bootstrapping参数可配置化与性能优化#36

Open
JYH1878 wants to merge 4 commits into
cipherflow-fhe:mainfrom
JYH1878:my-changes
Open

任务5:稀疏打包Bootstrapping参数可配置化与性能优化#36
JYH1878 wants to merge 4 commits into
cipherflow-fhe:mainfrom
JYH1878:my-changes

Conversation

@JYH1878
Copy link
Copy Markdown

@JYH1878 JYH1878 commented May 6, 2026

概述

本提交围绕 LattiAI 已实现的 Sparse Secret Encapsulation (Boura et al. 2022) 做工程优化,包括 SDK 参数可配置化、编译器 cost model 适配和端到端性能 benchmark。

已完成

  • SDK 参数可配置化:Go/C++ SDK 从单一参数扩展为 8 种 preset(Sparse0-3 + Dense0-3)
  • 编译器参数扩展:pipeline.py 支持多参数候选自动选优;新增 N16QP1547H192H32 高精度参数
  • 编译器 cost model 优化:score.py 引入 SPARSE_BTP_DISCOUNT = 0.40;graph_partition_dp.py 动态调整子图阈值
  • 性能 benchmark:Sparse vs Dense 完整对比(LogN=16),bootstrapping 2.85x 加速,CtS+StC 2.04x 加速
  • BSGS 调优:LogN=13 短参数下验证 Sparse 在所有 ratio 下均优于 Dense

测试

  • 6 个 Go benchmark 测试文件
  • 1 个 Python 编译器验证脚本(verify_compiler_opt.py)
  • 编译通过

备注

编译器层优化(score.py 折扣、graph_partition_dp.py 阈值调整)已通过验证脚本确认计算正确,端到端模型推理的完整验证尚未完成。

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants