I've been spending time exploring the intersection of Rust and Graph Machine Learning, and that curiosity turned into an open-source project called Rill.
Why I started building it
When working with Graph Neural Networks (GNNs), the model itself is only one part of the training pipeline.
There's also graph data loading, neighborhood sampling, feature access, memory management, and batch preparation.
These operations are interesting engineering problems, especially when working with large graph datasets.
I started wondering:
Could Rust help build more efficient graph ML infrastructure without making the developer experience difficult for Python users?
That question became the starting point for Rill.
What is Rill?
Rill is an open-source project exploring Rust-powered infrastructure for Graph Machine Learning.
Its initial focus is on graph data loading and neighbor sampling for GNN workloads.
The goal is to complement existing frameworks like PyTorch Geometric rather than replace them with another complete GNN framework.
The technology behind it
A few technologies I'm exploring:
- Rust — Core implementation.
- PyO3 — Connecting Rust with Python.
- Rayon — Parallel execution.
- PyTorch — Working within the existing ML ecosystem.
- Zero-copy techniques — Exploring ways to reduce unnecessary data movement.
I'm particularly interested in how systems-level engineering can improve the infrastructure surrounding machine learning workloads.
Where Rill is heading
There are several areas I'd like to explore further:
- More efficient graph storage.
- Neighborhood sampling strategies.
- Memory-efficient feature access.
- Parallel graph data processing.
- Better integration with Python and PyTorch Geometric.
Rill is still evolving. I'm not presenting it as a finished solution or claiming performance improvements without proper validation. There's plenty of implementation, testing, and benchmarking ahead.
Building in the open
One thing I want to be transparent about: Rill was developed with significant assistance from AI coding tools. The architecture, design decisions, and research direction are human-driven, while implementation, testing, benchmarking, and documentation involved AI-assisted development. I remain responsible for reviewing the code and validating results.
I'm sharing the project because I'd genuinely like to learn from people working with Rust, machine learning, and graph processing.
A few things I'd love to hear your thoughts on:
- Have you worked with Rust and Python together for performance-oriented applications?
- What are the biggest bottlenecks you've encountered in GNN data pipelines?
- What would you prioritize when designing infrastructure for large-scale graph workloads?
If you're interested, take a look:
Feedback, criticism, and ideas are all welcome. If you find the project useful, a GitHub star would also help others discover it.
Still early days. I'm excited to see where this goes.
