-
Notifications
You must be signed in to change notification settings - Fork 68
Category: B1; Team name: TG; Dataset: ogbg-molpcba #251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
grapentt
wants to merge
19
commits into
geometric-intelligence:main
Choose a base branch
from
grapentt:b1-ogbg-molpcba
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
|
Hi @grapentt! Feel free to modify pyproject.toml file to include any extra dependencies you might need for your submission. Good luck! |
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On-Disk Inductive Preprocessing with DAG-Based Incremental Caching
🎯 Problem Statement
Topological deep learning on large inductive datasets presents a unique challenge: topological structures (simplicial complexes, hypergraphs, cell complexes) are inherently memory-intensive. For datasets with thousands of graphs, traditional in-memory preprocessing causes out-of-memory (OOM) errors before training can even begin.
The bottleneck:
Research workflow friction:
💡 Solution Overview
This PR introduces on-disk inductive preprocessing with DAG-based incremental caching to TopoBench, enabling:
🏗️ Architecture
Core Components
1. OnDiskInductivePreprocessor
Stream-to-disk architecture that processes samples sequentially:
Key innovations:
2. DAG-Based Transform Caching
Treats transform pipelines as a Directed Acyclic Graph (DAG):
Cache key:
{transform_id}_{parameter_hash}Impact: When adding Transform C, only C is processed—A and B are reused automatically.
3. Dual Storage Backends
Two complementary storage strategies:
Trade-off explanation:
🔌 Seamless Integration
Minimal API Changes
The interface remains nearly identical to in-memory preprocessing:
Automatic DAG Caching
No manual cache management required:
Compatible with Existing Workflows
Works with all TopoBench components:
⚖️ Trade-offs
Performance
When to Use Each Approach
Use on-disk when:
Use in-memory when:
Backend selection:
📊 Benchmark Results
1. Parallel Speedup (Files Backend)
Dataset: 20,000 samples, SimplicialCliqueLifting
Key findings:
Compression overhead (Mmap):
2. DAG Cache Reuse (Files Backend)
Dataset: 20,000 samples, incremental transforms
Scenario comparison:
3. Memory Efficiency
Dataset: Variable sizes (1,000 - 4,000 samples), SimplicialCliqueLifting
Memory usage:
Disk usage comparison:
Benchmark scripts:
benchmarks/benchmark_comprehensive_pipeline.py- Main benchmark suitebenchmarks/configs/test.yaml- Test configurationNote: Benchmark scripts are included in this PR for validation. Consider removing before merge or moving to separate benchmarks/ directory.
📚 Documentation
User-Facing Documentation
Tutorials created:
Part 1: Getting Started (
tutorial_ondisk_inductive_part1_getting_started.ipynb)Part 2: Advanced Techniques (
tutorial_ondisk_inductive_part2_advanced.ipynb)Summary: This PR makes topological deep learning accessible to researchers with limited computational resources while optimizing workflows for rapid experimentation. The dual storage backend approach provides the right tool for each phase of research—from fast development iteration to efficient production deployment.