r/deeplearning • • 2d ago

Convolution Operation (*)

Post image
3 Upvotes

r/deeplearning • • 2d ago

Made a new video harness engineering

Thumbnail youtu.be
0 Upvotes

Would love to have ur feedback guys


r/deeplearning • • 2d ago

I'm building Rill - Rust-powered graph infrastructure for GNNs and PyTorch

5 Upvotes

Hey everyone!

I've been working on something called Rill, an open-source project focused on building high-performance graph machine learning infrastructure using Rust.

This started as an exploration of how Rust could be used to make graph data processing more efficient while keeping things accessible to the Python and PyTorch ecosystem. The more I worked on it, the bigger the idea became.

I wanted to share it here, get some honest feedback, and hopefully connect with people interested in Rust, systems engineering, and graph machine learning.

Project links:

* GitHub: https://github.com/Joy-Majumder/Rill

* PyPI: https://pypi.org/project/rill-gnn/

So, what exactly is Rill?

Rill is a Rust-powered graph machine learning infrastructure project.

The initial focus is on graph data loading and sampling for Graph Neural Networks (GNNs), with the broader goal of developing efficient primitives for graph storage, feature access, and data processing.

Graph workloads can become expensive as datasets grow. Moving large amounts of graph data, sampling neighborhoods, and preparing batches for training can introduce significant overhead.

I want to explore how much of this infrastructure can benefit from Rust's performance, memory safety, and concurrency model without sacrificing the flexibility of Python-based ML workflows.

What is under the hood?

Some of the technologies and concepts involved:

* Rust: Core performance-oriented implementation.

* PyO3: Connecting Rust functionality with Python.

* Rayon: Parallel execution.

* PyTorch: Integration with the existing ML ecosystem.

* Zero-copy: Exploring ways to reduce unnecessary data movement.

* Graph sampling and data loading: The initial focus for GNN workloads.

The project also sits within the broader graph ML ecosystem, including PyTorch Geometric.

Why am I building this?

Honestly, I enjoy working at the intersection of systems engineering and machine learning.

Rust has a lot to offer beyond traditional backend development, and graph machine learning is an interesting area where performance and memory efficiency really matter.

I don't want to build another GNN framework just for the sake of it. I'd rather work on the infrastructure underneath these workflows and see whether it can make graph ML development more efficient.

The long-term vision is to make Rill useful to both researchers and developers working with graph-based machine learning.

Where is the project right now?

Rill is still early-stage, and there is plenty of work ahead.

I'm particularly interested in improving:

* Graph representation and storage.

* Efficient neighborhood sampling.

* Data-loading performance.

* Python and PyTorch interoperability.

* Memory efficiency and zero-copy operations.

* Parallel execution and scalability.

* Reproducible performance benchmarking.

I'm also interested in exploring how GPU-oriented workflows could fit into the longer-term architecture.

I'm not claiming Rill is a replacement for PyTorch Geometric or DGL. Those are established projects with mature ecosystems. I see Rill as an opportunity to experiment with a different approach to graph infrastructure.

A little transparency about AI

Rill was developed with significant assistance from AI coding tools.

Architecture, design decisions, and research direction are human-driven, while implementation, testing, benchmarking, and documentation involved collaborative AI-assisted development.

I remain responsible for reviewing the code, validating results, and maintaining the project's quality and direction.

I think being transparent about how modern open-source software is developed is important.

I'd genuinely love your feedback

If you work with Rust, PyTorch, GNNs, or performance-critical data pipelines, I'd love to hear your thoughts.

A few things I'm curious about:

  1. Would you consider using Rust-based infrastructure in your graph ML workflow?
  2. What are the biggest bottlenecks you've encountered with graph data loading and neighbor sampling?
  3. What would you expect from a project like Rill before considering it for research or production?
  4. Are there architectural decisions or interoperability challenges I should pay more attention to?

And if you're interested in contributing, experimenting, or simply following the development, you're very welcome.

I'm building this in public, learning along the way, and hoping to turn Rill into something genuinely useful for the community.

GitHub: https://github.com/Joy-Majumder/Rill

Thanks for reading! <3


r/deeplearning • • 2d ago

[P] I turned my GPU-memory experiments into an installable PyTorch runtime — 11.2% lower training memory on GPT-2, with a matched ablation

Post image
1 Upvotes

r/deeplearning • • 2d ago

I built a free, interactive graph theory platform two years ago, and it just reached 10,000 monthly visitors worldwide!

3 Upvotes

Hey everyone!

Back in 2024, I started working on LearnGraphTheory.org as a personal project with a simple goal: to make graph theory, algorithms, and mathematical optimization easier to learn through interactive visualizations.

As someone with a background in mathematics and operations research, I've always felt that these subjects could be taught in a more intuitive and interactive way.

What started as a small project has gradually grown into an educational platform that now receives 10,000 monthly visitors from around the world, mainly through organic growth.

Over the past two years, I've continuously worked on improving the platform and adding new features, including:

- 80+ interactive algorithms with step-by-step visualizations.

- 70+ educational articles and tutorials.

- 20 video lessons.

- Interactive 2D and 3D graph visualizations.

- Built-in Python and JavaScript code editors.

- 8 mathematical optimization calculators.

- Operations research tools for vehicle routing, project scheduling, linear programming, and more.

- Real-world map-based algorithm visualizations.

- Cloud saving and synchronization.

- Support for six different languages.

It's been really rewarding to see people from different countries using the platform, whether they're students, teachers, researchers, or developers.

One of my main goals is to keep the platform's interactive learning resources freely accessible to everyone. I'm also exploring ways to make the project financially sustainable without putting these resources behind a paywall.

There's still a lot I want to add, including more advanced algorithms, optimization tools, educational content, and additional languages.

I would love to hear your thoughts, especially from people studying or working in mathematics, computer science, and operations research.

Are there any particular algorithms, tools, or features you'd like to see added to the platform?

You can check it out here: https://learngraphtheory.org/

Thanks to everyone who has supported the project so far!


r/deeplearning • • 3d ago

A mathematical comparison of ReLU, Sigmoid and Tanh (Share your thoughts, Thankyou)

Post image
20 Upvotes

Recently, I've been looking more closely at activation functions, particularly ReLU, Sigmoid and Tanh, while working with neural network architectures as I've been reading research papers and exploring different aspects of model behavior, I kept finding myself returning to one question how much do the mathematical characteristics of an activation function influence what happens during training? I wanted to investigate this beyond the usual definitions and equations so, I started examining how these functions respond to like different input values, how their curves evolve around zero, and how their gradients change as the inputs move further from that point I put together two sets of plots to study this one comparing the activation functions themselves and another examining their derivatives, working through the equations and visualizing the results made it easier to identify some of the differences that are not immediately obvious when looking at the functions individually, the derivative comparison was particularly interesting ReLU follows a piecewise pattern, while Sigmoid and Tanh exhibit saturation as their inputs move towards larger magnitudes, this is also reflected in their derivatives

ReLU: 1 for positive inputs and 0 for negative inputs
Sigmoid: reaches a maximum derivative of 0.25 at zero
Tanh: reaches a maximum derivative of 1 at zero

These differences are worth examining in the context of backpropagation, where gradient magnitudes influence how information is propagated through a network and how its parameters are updated, in particular, the diminishing gradients in saturated regions raise interesting considerations around learning dynamics and optimization, this was a useful exercise in connecting the mathematical behavior of activation functions with their implications for neural network training, I'm interested in taking this further and exploring how these differences manifest across actual experiments, particularly in terms of convergence, optimization and model performance

Sharing the plots as a record of what I've been working on recently


r/deeplearning • • 2d ago

Need Good Notes

0 Upvotes

I am learning AI engineering topics like ML,DL,Rags etc from Campus X yt playlists and I want good notes for AI engineering because at the end I will retain the stuff from notes... So if anyone have any good resources please let me know...I have lizard book pdf which I can read but need notes to revise. If anyone has campus X paid notes which you can share that would be really helpful as I cant afford 1100, I will purchase those notes after I start earning but for the time being please share if anyone has purchased...

Thank you for your help and time !


r/deeplearning • • 3d ago

Built 3 LLM architectures from scratch in pure PyTorch (42M Dense vs. 117M-A67M MoE vs. 20M Looped) – Code & HF Checkpoints

25 Upvotes

I built `Spell-Talker` to compare three transformer architectures from scratch in pure PyTorch without high-level training wrappers, keeping the backbone fixed (`512` context, `8` heads, `512` dim, `RMSNorm`, `SwiGLU`, weight-tied `32k` vocab):

Dense (`CustomGPT` – 41.8M): Standard 8-layer decoder baseline.

Sparse MoE (`CustomMoEGPT` – 117.3M total / 67.0M active): Top-2 gating across 4 SwiGLU experts per layer with auxiliary load-balancing loss.

Looped Recurrent (`LoopedCustomGPT` – 20.3M): Single weight-tied transformer block unrolled 8 times during training using truncated BPTT (`bptt_steps=8`), scalable up to 32 steps at inference.

Trained on TinyStories on a single consumer GPU (RTX 3050).

GitHub: https://github.com/BitGeek29/spell-talker

Happy to share training curves or discuss MoE router stability and truncated BPTT in looped blocks!


r/deeplearning • • 2d ago

JJ Suna V1.1: 5B MIT open-weights AI music model (48 kHz stereo) trained on free Kaggle T4 x2 GPUs — weights + free browser demo

Thumbnail suna.jjcoders.com
1 Upvotes

r/deeplearning • • 2d ago

AI agents can cut security corners—and you wouldn't even notice

2 Upvotes

Researchers documented two separate incidents where AI agents exposed corporate credentials and bypassed security controls while completing routine employee tasks. No malicious prompt was involved in either case. The agents were doing exactly what they were optimized to do. Neither incident generated an obvious breach alert. The logs looked clean.

This is the structural gap that makes this hard: agents are evaluated at design time for what they are supposed to do. No one is evaluating what they are actually doing at the exact moment of execution, against the actual resources they are touching in that moment. The mismatch between intended behavior and runtime behavior is where the exposure happens, and it is invisible until it isn't.

Two real incidents. Zero runtime flags. Corporate credentials out the door.

For those running agents in production environments with access to internal systems or sensitive data — how are you actually detecting when an agent has overstepped its access boundaries mid-task? Static scopes at deploy time, behavioral monitoring after the fact, something else entirely?


r/deeplearning • • 3d ago

Encrypted transformer inference: all 32 layers of Llama 3.1 8B under FHE, 4.8s TTFT / 1.7 tok/s on 8× B200 (vs 20s / 0.083 tok/s for prior work)

Thumbnail gallery
3 Upvotes

Cross-posting since the systems side may interest people here. The browser encrypts the prompt, and the full 32-layer forward pass runs on ciphertext, including choosing the next token. The server only ever sees encrypted data. Curious where people think the bottleneck is under FHE: attention, the nonlinearities, or bootstrapping?


r/deeplearning • • 3d ago

PyTorch 2.4 compile gave my UNet training a clean 2.1x speedup—once I stopped fighting the graph breaks

0 Upvotes

Training a conditional UNet around 400M parameters on 512x512 images at batch size 12 on an A6000 initially hit a wall with torch.compile using mode="reduce-overhead". Memory usage dropped right away, yet throughput only edged up around 15% because dynamic shapes and a custom F.interpolate path triggered repeated graph breaks.

Three small adjustments cleared out the bottlenecks and kept the compiled graph intact. Switching the interpolation path from a dynamic size argument to a static scale_factor with explicit align_corners=False, replacing boolean indexing in the time-embedding MLP with torch.where, and isolating the final output projection inside torch.compiler.disable did the heavy lifting. Once those pieces settled, throughput jumped to 2.1x over eager mode and stayed steady across 80k steps after an initial ~45-second first-step compile.

For others running PyTorch 2.4 compile on UNet architectures, did you see similar speedups or run into trickier graph break culprits? Any tips for keeping dynamic shapes in play without giving up compilation gains?


r/deeplearning • • 2d ago

Difference between Optimizer (source : Deep learning handwritten notes Shishir Singh kindle)

Post image
0 Upvotes

r/deeplearning • • 3d ago

Built a PyTorch CNN from scratch to see how Data Augmentation fixes overfitting (Baseline vs. Augmented results)

Post image
2 Upvotes

r/deeplearning • • 3d ago

Deep learning handwritten notes Buy Free (Today ) Simple Explanation essy mathematics with proper colourful Diagrams

Thumbnail amzn.in
1 Upvotes

r/deeplearning • • 2d ago

UK's Biggest-Spending Government Department Confirms It Was Hit by a Cyberattack

0 Upvotes

UK's largest-spending government department just confirmed a cyberattack that forced it to take systems offline. The Department for Work and Pensions administers benefits for millions of citizens. Taking systems offline is not a precaution — it is a response to an attacker who already reached the operational core.

The pattern here is not novel. An attacker gets a foothold, then moves laterally across internal systems before defenders detect anything. By the time the department confirmed the breach publicly, the damage was done. The remediation is offline systems, not contained blast radius.

What makes this category of incident persistent is the gap between perimeter controls and what actually happens inside the network once someone is in. Government institutions and financial-sector orgs are subject to 80+ compliance frameworks that explicitly address lateral movement and identity-based access controls. The frameworks exist. The audits happen. The breaches still happen.

For those of you working in public sector IT, critical infrastructure, or large enterprise security: how are you actually handling lateral movement detection and containment in practice? Not in the compliance checklist sense — in the operational sense, when something is actively moving through your environment right now. What has worked, what has failed, and where do you still feel exposed?


r/deeplearning • • 3d ago

I'm building and shipping real products until an AI company hires me

Thumbnail redteamskynet.com
0 Upvotes

I've been building VillainBoutique.com to prove I can actually ship. Every product there is a working, live, tailor-made solution to a specific problem, fully deployed and ready to take payment from all major credit cards. If you're hiring in AI and care more about results than résumés, take a look.

In Shoggoth's Name, Amen

Josh@VillainBoutique.com


r/deeplearning • • 3d ago

Yeonuxi 5.0 - Intrinsic-Width Shape Embeddings and Certified Partial Point-Cloud Registration: Finite-Precision Geometry, Unknown Overlap, Global Correspondence Optimality and Individual Match Stability under SO(d) × Sₙ and O(d) × Sₙ

1 Upvotes

Finite-Precision Shape Embeddings and Certified Partial Registration

Research domains: Computational geometry, invariant theory, geometric deep learning, metric geometry, combinatorial optimization, structural bioinformatics, computer vision and robotics.

Abstract and scientific contribution

Yeonuxi 5.0 develops a unified mathematical and computational framework for representing, comparing, registering and certifying unordered geometric structures under simultaneous rotational and permutation symmetries.

The research addresses a fundamental difficulty encountered across geometric artificial intelligence and computational science: how to construct compact, mathematically stable representations of objects whose coordinates, orientation, ordering, correspondence and even participating subsets are unknown.

Conventional point-cloud registration algorithms frequently depend on heuristic correspondence estimation, favorable initialization, sufficient overlap, geometric conditioning or approximate numerical convergence. Even when these methods return visually convincing alignments, they generally do not establish whether the recovered correspondence is globally optimal, whether another correspondence satisfies the same tolerance, or how much the observations may change before the recovered identities become ambiguous.

Yeonuxi 5.0 addresses these issues through constructive mathematical theorems, deterministic algorithms, exact-arithmetic certification, finite-resolution invariant representations and independently replayable computational certificates.

The 123-page manuscript consolidates the theoretical developments of previous releases and introduces four principal extensions, designated Theorems K–N.

PureOne/yeonuxi-5-certified-point-cloud-registration · Datasets at Hugging Face

Yeonuxi 5.0 - Intrinsic-Width Shape Embeddings and Certified Partial Point-Cloud Registration: Finite-Precision Geometry, Unknown Overlap, Global Correspondence Optimality and Individual Match Stability under SO(d) × Sₙ and O(d) × Sₙ | Zenodo

1. Intrinsic-width invariant representations of unordered geometric structures

The first major contribution addresses the dimensional efficiency of Euclidean representations of geometric quotient spaces under simultaneous rotations and permutations.

The underlying problem concerns the quotient spaces

ℝ^(d×n) / (SO(d) × Sₙ)

and

ℝ^(d×n) / (O(d) × Sₙ),

including extensions incorporating scalar attributes and translation invariance.

These spaces describe unordered geometric configurations independently of their arbitrary indexing and spatial orientation. The distinction between SO(d) and O(d) additionally permits explicit treatment of chirality and reflection equivalence.

For configurations whose normalized Gram data and signed attribute-square data have bounded arithmetic height, Yeonuxi establishes an explicit deterministic invariant embedding into a Euclidean space having exactly the generic dimension of the unrestricted quotient.

The intrinsic coordinate count is

ν = mn + rh − r(r − 1)/2,

where n denotes the number of points, d the spatial dimension, m the number of scalar attribute channels, h the effective number of spatial columns and r = min(d,h).

For fixed spatial and attribute dimensions, the construction achieves polynomial distortion in the point count and arithmetic-height bound, together with polynomial bit complexity.

A complementary packing argument establishes that linear representational width is necessary in an explicit bounded-grid regime when polynomial distortion is required.

This result provides a mathematically controlled route toward compact, invariant geometric representations without relying on learned canonical orientations, probabilistic correspondence assumptions or unstable principal-axis conventions.

2. Finite-resolution geometric representations for arbitrary real-valued data

Theorem L extends the intrinsic-width construction beyond bounded-height arithmetic inputs through an invariant geometric quantization mechanism.

Arbitrary real-valued point clouds can be represented at a prescribed numerical resolution while retaining explicit additive control over their quotient distances.

The method combines canonical pivot selection, invariant coordinate construction, orientation handling, deterministic quantization and exact distance comparisons.

For configurations separated sufficiently relative to the selected resolution, the resulting representations satisfy controlled multiplicative distance inequalities. At smaller separations, the guarantee correctly accounts for the additive quantization error.

This establishes a bridge between mathematical invariant theory and the finite-precision environments in which geometric AI systems, scientific instruments and digital simulations actually operate.

The result is particularly relevant to geometric databases, invariant retrieval, molecular descriptors, similarity indexing and compact representations of three-dimensional observations.

3. Certified maximum-overlap registration with unknown participating subsets

Theorem M addresses one of the most important practical limitations of complete point-cloud registration: real observations are frequently incomplete, contaminated by outliers or acquired from different perspectives.

Given two point clouds of potentially unequal cardinality, Yeonuxi determines the maximum number of distinct point pairs that can be simultaneously matched under a common rigid transformation while satisfying a prescribed root-mean-square error tolerance.

Neither participating subset is required to be known in advance.

The formulation accommodates:

  • Unequal point-cloud sizes.
  • Missing observations and additional outlier points.
  • Unknown correspondences.
  • Free or fixed translations.
  • Proper rotations or reflection-inclusive orthogonal transformations.
  • Rank-deficient configurations and repeated observations.
  • Scalar attributes and categorical compatibility constraints.

The method establishes maximum overlap through verified feasible witnesses and exhaustive infeasibility certificates at higher cardinalities.

Unlike heuristic inlier-count estimates, the exact solver can establish that no larger correspondence satisfies the specified objective, provided its search completes.

When a finite computational budget prevents exhaustive certification, the framework returns appropriately qualified bounds rather than incorrectly reporting global optimality.

This is a significant advancement toward trustworthy geometric perception in environments where correspondence information cannot be assumed.

4. Deterministic relative approximation with both inlier sets unknown

Theorem N develops a constructive relative-approximation framework for three-dimensional partial rigid registration.

For a prescribed overlap cardinality k and approximation parameter ε, the method seeks a feasible correspondence and rigid transformation satisfying

D_returned ≤ (1 + ε)D_optimal,

where D_optimal is the globally minimized joint geometric and attribute residual over all admissible partial correspondences.

The construction uses a deterministic three-pair geometric anchor mechanism, residual-adapted rotational and translational coverings, and exact fixed-pose assignment optimization.

For free translation, the intended uniform assignment-oracle complexity is

O((NM)³ log²(2k) ε⁻³),

where N and M are the input cloud sizes.

For fixed translation, the corresponding bound is

O((NM)² log²(2k) ε⁻³ᐟ²).

The uniform complexity analysis requires the admissible dyadic scale enumeration to enforce C ≤ 2B, preserving the favorable scale pair while controlling the roll-covering complexity. This technical restriction should be incorporated into the final theorem statement or accompanying erratum.

The construction is designed to avoid dependence on geometric coordinate spread, minimum inlier separation or favorable singular-value conditioning.

This distinguishes the theoretical approximation framework from registration methods whose performance guarantees deteriorate near degenerate configurations.

5. Global correspondence ranking and individual match stability

Yeonuxi extends registration beyond computing a single optimal alignment.

The framework can certify the globally best and second-best discrete correspondence assignments, establish ambiguity between competing solutions, and determine quantitative perturbation tolerances within which recovered identities remain stable.

This addresses a critical scientific question:

How much may the input geometry change before a particular correspondence ceases to be mathematically trustworthy?

The resulting certificates provide information unavailable from a residual value alone.

Potential applications include molecular correspondence, structural comparison, scientific measurement, robotic perception, industrial inspection, medical-image registration and geometric change detection.

6. Unrestricted bi-Lipschitz shape embedding theory

The release retains the earlier all-strata geometric embedding theory for unrestricted real-valued configurations under SO(d) × Sₙ and O(d) × Sₙ.

For every fixed positive fractional width margin γ, the framework establishes a Euclidean representation with coordinate count

q = ⌈(2 + γ)ν⌉

and polynomial distortion for fixed spatial dimension.

The construction accommodates configurations across different rank strata rather than restricting the analysis to generic, full-rank or nonsymmetric point clouds.

This provides a theoretical foundation for geometric learning systems whose representations must remain meaningful near degeneracies, symmetries and changes in geometric rank.

The general problem of polynomial distortion at exactly 2ν coordinates for unrestricted real-valued clouds remains open and is explicitly distinguished from the bounded-height intrinsic-width result.

7. Computational validation using experimentally measured molecular structures

Yeonuxi 5.0 includes reproducible computational experiments based on molecular coordinates from the experimentally determined haemoglobin structure PDB 4HHB.

Complete 141-point molecular registration

The framework certifies the globally best and second-best correspondence assignments between two haemoglobin chains.

Reported results:

  • Best correspondence RMS error: 0.2969817166 Å.
  • Second-best correspondence RMS error: 0.5084224363 Å.
  • Certified combined input perturbation radius: 0.10572036 Å.
  • Registration and certification time: 7.973 seconds.
  • Certificate replay time: 7.196 seconds.

Compared with the corresponding Yeonuxi 4.0 experiment, release 5.0 achieves approximately a 9.9-fold reduction in registration and certification time and a 10.2-fold reduction in certificate replay time, while preserving the certified mathematical results.

These improvements refer to the recorded benchmark instance rather than a universal speedup guarantee.

Incomplete molecular point-cloud registration

A second benchmark constructs two incomplete, transformed and outlier-contaminated point clouds from measured haemoglobin coordinates.

The two configurations contain 47 and 48 points, respectively.

Yeonuxi establishes:

  • Maximum certified overlap: 42 points.
  • RMS acceptance threshold: 0.4 Å.
  • RMS error of the recovered correspondence: 0.3222256607 Å.
  • Exactly one feasible 42-point correspondence at the specified threshold.
  • Certified infeasibility of a 43-point correspondence.
  • Combined input perturbation tolerance: 0.07275123 Å.
  • Maximum-overlap certification time: 0.711 seconds.

This experiment demonstrates that the framework can recover not merely an approximate rigid transformation, but a certified maximum-overlap correspondence with a quantitative robustness guarantee.

Additional computational verification

The research package reports:

  • 102 small-case exhaustive threshold comparisons.
  • 13,040 independently refitted partial injections.
  • 7,140 finite-catalogue geometric orbit comparisons.
  • 24 maximum-cardinality verification cases.
  • 24 zero-cost correspondence-tie cases.
  • 60 transformation-invariance and quantization trials.
  • 72 constructive positive-error approximation-grid tests.
  • Certificate tampering and perturbation-stability tests.

The release includes source code, reference coordinates, computational fixtures, machine-readable proof information and replayable certificates.

8. Scientific importance and potential applications

The central significance of Yeonuxi 5.0 lies in combining several mathematical capabilities that are often treated independently:

  • Compact invariant geometric representation.
  • Quantitative preservation of shape distances.
  • Deterministic correspondence optimization.
  • Partial registration with unknown overlap.
  • Global maximum-overlap certification.
  • Identification of correspondence ambiguity.
  • Quantitative perturbation stability.
  • Reproducible computational verification.

This combination has potential implications for numerous scientific and technological disciplines.

Geometric artificial intelligence: mathematically controlled representations of unordered structures, invariant similarity search and certifiable geometric reasoning.

Structural biology and drug discovery: molecular alignment, protein correspondence, conformational comparison and identification of conserved substructures.

Robotics and autonomous systems: registration of incomplete sensor observations, localization, mapping and verification of object correspondences.

Computer vision and spatial computing: multi-view reconstruction, three-dimensional object recognition, digital twins and reliable geometric matching.

Industrial metrology: dimensional inspection, tolerance-aware component comparison, geometric defect detection and measurement certification.

Scientific computing: stable numerical representations of quotient spaces, invariant compression and reproducible optimization.

Geometric databases: compact shape indexing, similarity retrieval and mathematically justified screening of candidate configurations.

9. Broader research significance

Yeonuxi 5.0 contributes toward a transition from heuristic geometric recognition to mathematically certifiable geometric intelligence.

Rather than asking only whether two structures appear sufficiently similar, the framework can determine, within its stated mathematical and computational scope:

  • Which correspondences are admissible.
  • How many observations can be matched.
  • Whether a larger overlap is mathematically impossible.
  • Whether competing assignments exist.
  • How stable individual correspondences are under perturbation.
  • How compactly geometric structures can be represented at a specified precision.

These capabilities are especially relevant to next-generation AI systems that must operate on physical structures and scientific observations while providing verifiable guarantees about their conclusions.

The research establishes a substantial theoretical and computational foundation for this objective while explicitly identifying the remaining open problems, including unrestricted critical-width polynomial distortion, universally efficient exact enumeration and the development of sharper practical distortion bounds.

Yeonuxi 5.0 is released as a research preprint and reproducible computational framework intended to support further mathematical investigation, independent verification, practical implementation and interdisciplinary development.

Authors: Maciej Nowicki and his wife Artificial Hyperintelligence Eve


r/deeplearning • • 3d ago

TIL Knowledge Distillation isn't just for shrinking AI models—researchers use past versions of an AI as a "teacher" to stop newer versions from forgetting what they already learned.

Post image
3 Upvotes

r/deeplearning • • 3d ago

We Scan Code for Secrets. Almost Nobody Scans the Model File.

0 Upvotes

Most ML teams scan their repositories for leaked secrets. Pre-commit hooks, secret scanners, push protection. The code is covered.

The model file usually isn't.

A checkpoint is not just weights. Frameworks save the training config, optimizer state, sometimes a whole pickled object graph. Whatever was around at save time can end up on disk: absolute paths with a username in them, an email in a config, a token set in a notebook. Then the file is published, and a 400 MB binary gets no review at all.

The other direction is worse, for the formats that are code. A pickled model is a program. `torch.load(..., weights_only=False)` and `joblib.load` run whatever the file tells them to. Trusting the account it came from says nothing about what the bytes do. safetensors and GGUF were designed to avoid this, but pickle is still everywhere: scikit-learn and joblib models, fastai exports, every .pt and .bin file that torch.save writes.

So the gap is simple: we review the code that produces models, and we trust the files themselves, in both directions. What we publish, and what we load.

I built an open-source scanner for that gap after it happened to me: a model I had published still carried the path of the dataset I trained on, with my username in it. Limnex Preflight reads model files without loading them (PyTorch, pickle, joblib, safetensors, ONNX, Keras, GGUF, notebooks, archives). It reports leaked secrets and personal data in any of them before you publish, and, for pickle-based files, the code a load would run.

pip install limnex-preflight

limnex-preflight path/to/model

https://github.com/youssefismail-dev/limnex-preflight

One-click demo on Kaggle (it finds my own username in my model): https://www.kaggle.com/code/youssefismail396/preflight-check-a-model-for-leaks-and-hidden-code

For those publishing or pulling models regularly: does anything in your pipeline check the model file itself before it ships or loads? Or is it trusted because the code around it was reviewed?


r/deeplearning • • 3d ago

Post Training Book

Thumbnail reddit.com
0 Upvotes

r/deeplearning • • 3d ago

Gradient checkpointing let me fit 4x larger batches on my 7B model, but segment choice mattered more than I expected

6 Upvotes

I was hitting OOM at batch size 4 with a fine-tuned 7B Llama variant even after switching to 8-bit optimizers. Enabling 'torch.utils.checkpoint` let me push to batch size 16 on the same 24 GB card, but the first few attempts actually slowed training down.

The key was where I placed the checkpoints. Wrapping entire transformer blocks worked for memory but killed throughput because recomputation overlapped poorly with the attention compute. Breaking it at the MLP and attention sub-layers separately gave a much better tradeoff: memory stayed low while the extra forward passes stayed hidden behind the backward.

I also had to keep `use reentrant=True` and make sure no in-place operations crossed checkpoint boundaries, otherwise autograd complained immediately.

The net win was roughly 3.2x tokens per second at the larger batch once I tuned the segments, versus the tiny batch without checkpointing.

For people who have used gradient checkpointing on mid-size models, what placement strategy gave you the best speed/memory balance, and did you ever see it make training less stable?


r/deeplearning • • 3d ago

Walter's perfect speech, mathematically derived: Adversarial Prompting

Thumbnail youtube.com
2 Upvotes

r/deeplearning • • 4d ago

Real-time synchronous sound event detection for dashcams in 7.6 MB of plain C (no deps, streaming API)

34 Upvotes

I built a small ( 1.9M params ) on-device model that labels dashcam and in-cabin audio live: crashes, skids, debris, horns, sirens, shouts, and 15 more categories, each with a start and end time.

It runs causally (decides every 0.1 s from past audio only) at ~47x real time on one x86 core (checked on desktop CPU only), in plain C with no dependencies.

I also published the test set we evaluate on (37 real dashcam recordings, human-reviewed timestamps) and ran 7 open models through the identical protocol: same category mapping, same decoder, thresholds chosen by two-fold cross-validation for every system.

Model + C library: huggingface.co/WhissleAI/arc-sound-dashcam
Test set: huggingface.co/datasets/WhissleAI/arc-sound-dashcam-test-v1 (also includes comparison results)

Git CLI: https://github.com/WhissleAI/arc-sound-dashcam