Hoa Kỳxwinxu/bayeSDE
Code for "Infinitely Deep Bayesian Neural Networks with Stochastic Differential Equations"
🚀 bayeSDE: Mạng nơron Bayesian vô hạn sâu dựa trên SDE
Mở rộng BNN sang chiều sâu vô hạn bằng giải tích vi phân ngẫu nhiên — nơi độ sâu mạng trở thành quá trình liên tục.
bayeSDE là mã nguồn tham khảo cho bài báo "Infinitely Deep Bayesian Neural Networks with Stochastic Differential Equations". Dự án triển khai trong cả JAX và PyTorch, kết hợp neural ODEs, các lớp Bayesian và inference biến thiên tối ưu (SVI). Đặc biệt, bao gồm thư viện jaxsde tích hợp giải mã SDE khác biệt (Ito/Stratonovich) cùng khung SDEBNN trong Brax.
✨ Điểm nổi bật
- Giải mã SDE khác biệt trong JAX: jaxsde hỗ trợ euler_maruyama, milstein, euler_heun (thứ tự mạnh 0.5–1).
- Stochastic adjoint: sdeint_ito tiết kiệm bộ nhớ O(1) thay vì giải adjoint SDE.
- Lớp Bayesian composable: SDEBNN kết hợp lớp thời gian phụ thuộc trong stax API.
- STL trick: cờ --stl cải thiện tốc độ hội tụ cho gradient.
- Augmentation & sampling: tăng chiều đầu vào --aug, trung bình --nsamples.
- Tối ưu bộ nhớ: hỗ trợ gradient accumulation (--acc_grad) và checkpointing (--remat).
- Hỗ trợ thị giác: huấn luyện trên ảnh với nhiều kiến trúc (ResNet, SDENet).
- PyTorch backend: TorchBNN dùng torchsde, hỗ trợ tensorboard logging.
💡 Vì sao đáng chú ý
bayeSDE vượt qua giới hạn độ sâu cố định của BNN truyền thống bằng cách mô hình hoá quá trình ẩn dưới dạng SDE liên tục. Khác với neural ODE chỉ dùng drift, SDE thêm noise diffusion mô tả không chắc chắn hậu nghiệm. Phù hợp nghiên cứu mạng sâu vô hạn, uncertainty quantification, và tạo posterior multi-modal.
#SDE #BayesianNeuralNetworks #JAX #PyTorch #DeepLearning #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Pre-built implicit layer architectures with O(1) backprop, GPUs, and stiff+non-stiff DE solvers, demonstrating scientific machine learning (SciML) and physics-informed machine learning methods
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
🧑🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠
🧑🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠
Ultralytics YOLO27, YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking
Clone a voice in 5 seconds to generate arbitrary speech in real-time