r/deeplearning • • 5h ago

Neural Canvas, CNN Visualization

34 Upvotes

Neural Canvas — CNN Visualization

Neural Canvas can now recognize basic shapes like apples, moons, cars, and more using Google's Quick, Draw! dataset.

20 classes with 1,000 samples per class

2 convolutional layers with 16 and 32 filters

2 fully connected layers with 60 and 40 neurons

91% test accuracy

Trained using JAX on Google Colab

Neural Canvas can also visualize CNN feature maps in real time while drawing, showing how convolutional layers extract features from input images.

GitHub: https://github.com/MuhammadEssa2002/neural_canvas

Live demo: https://muhammadessa2002.github.io/neural_canvas/


r/deeplearning • • 2h ago

Offloading activations to pinned host memory that the GPU kernel can address directly

1 Upvotes

Activation offloading usually means copying tensors out of VRAM and back, and paying for the copy twice. The alternative most people try first is cudaMallocManaged, where the driver migrates pages on demand and residency is decided at fault time; that works until the access pattern makes it thrash and the GPU sits idle waiting on migrations you never scheduled.

vram-stream takes a third route. The workspace holds two regions, one in device memory and one in system RAM, and both are addressable from the same kernel: the RAM region is allocated with cuMemHostAlloc using CU_MEMHOSTALLOC_DEVICEMAP and mapped with cuMemHostGetDevicePointer_v2, after checking the device reports CAN_MAP_HOST_MEMORY. A kernel store to that region goes over PCIe or NVLink with link latency, with no page fault and no migration.

The trade is pinned memory instead of elastic memory. The driver and OS cap how much can be pinned, so this is a budget you set rather than an oversubscription. That constraint shapes the design: open_cuda_cache reads a contiguous buffer in fixed-size blocks and keeps one pinned buffer plus one VRAM buffer per slot, with copies and kernels in separate streams and CUDA events protecting the pinned buffer, so a block is resident in VRAM before the kernel that needs it starts and cache.prefetch(n) keeps the pipeline fed.

For training, the same mechanism serves the dataloader: prefetch_dataloader supplies cached batches, and optional integrations move model state and saved activations to RAM using FSDP2 or the Hugging Face Trainer with DeepSpeed. That matters for the write-once-read-once tensors that dominate activation memory, where a copy you can overlap is cheaper than residency you cannot afford.

Measurement is a command, not a claim: vram-stream benchmark --block-mib 16 --blocks 2 --slots 2 --passes 4 measures both CUDA memory paths on your card. The README does not quote throughput because PCIe generation changes the ratio more than any number would survive as a general statement.

Correctness check: vram-stream memory --device 0 --vram-mib 16 --ram-mib 16 allocates both regions, runs one kernel that combines values from VRAM and system RAM and writes results back to both, then verifies the first and last aligned 32-bit words of each region, with the PTX kernel compiled by the driver at run time.

Install is pip install vram-stream, or npm i -g vram-stream. What it does not do: it is not a managed-memory replacement, pinning fails past the lockable limit instead of degrading, remote traffic is bounded by the interconnect, and the workspace expects one CUDA context on the thread that opened it. MIT, 0.4.0: https://github.com/Furox-Art/vram-stream


r/deeplearning • • 4h ago

Graph rag vs agentic rag

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 5h ago

I animated Variational Autoencoders from first principles in 3D because most explanations gloss over the actual intuition

Post image
1 Upvotes

r/deeplearning • • 9h ago

MLzoomcamp-26_homework/08-deep-learning/homework08.ipynb at main · IBRHASHEM/MLzoomcamp-26_homework

Thumbnail github.com
1 Upvotes

r/deeplearning • • 11h ago

Can a few neurons help identify AI-generated images?

1 Upvotes

A detector can look excellent on a generator it has seen and fail as soon as a new generator leaves different traces. We wanted to know whether a pretrained vision model already contained features that several generators had in common.

We built DNA to find intermediate units whose responses separated real and generated images. We kept the encoder frozen and trained a small classifier on those responses.

We tested on five unseen generators in HIFI-Gen. DNA reached 95.0% detection accuracy on the FLUX split and 91.6% on the Z-Image split. The attached table gives each generator’s result, so the variation between them stays visible.

Team write-up · arXiv paper · GitHub · Table 2


r/deeplearning • • 11h ago

When the camera angle changes, what still supports a model’s correct answer?

1 Upvotes

Show a vision-language model two photographs of the same museum. If it names the city correctly both times and remains equally confident, has it relied on the same evidence?

We built MMStableBench to test that question on 19,452 items across 15 models. In the museum example, rewording the question preserved the internal features supporting “Brisbane” almost completely, with an overlap score of 0.97. Using a closer photograph dropped that score to 0.43, even though the answer and its confidence margin held up.

Across the models, 12.4% of correctly answered variants in the top quarter for confidence-margin retention fell in the bottom quarter for stability of internal support.

Team write-up · arXiv paper · GitHub · Figure 4


r/deeplearning • • 18h ago

In Other News: Tanker Cyberattacks, EU Quantum Act, New VirusTotal Capabilities

3 Upvotes

The EU Quantum Act passed, VirusTotal added new threat-intelligence capabilities, and a rash of tanker cyberattacks hit maritime infrastructure this week. The piece that keeps coming up in security circles is quieter: AI is compressing the timeline on cryptanalytic attacks against classical schemes. The assumption baked into most long-lived data stores and signed artifacts is that RSA and ECDSA hold for the foreseeable future. That floor is shifting. Harvest-now-decrypt-later attacks mean adversaries do not need to break crypto today — they collect ciphertext now and wait for the compute curve to catch up. The EU Quantum Act signals that regulators have already priced this in and expect organizations to have a migration path. Most enterprise infrastructure does not. TLS termination, signing pipelines, secrets managers, and inter-service auth tokens are almost universally classical. Migrating any one of them is a multi-team project; migrating all of them simultaneously while keeping services running is an unsolved operational problem for most shops. How are practitioners actually sequencing this in real environments — are you prioritizing data-at-rest, in-transit, or signing infrastructure first, and what is forcing that order?


r/deeplearning • • 13h ago

Your LLM is LYING to you. Here's how to fix it.

Thumbnail youtube.com
0 Upvotes

I built a Hello World RAG App in Python

Normal LLM = Answers from training data (can hallucinate)

RAG LLM = Answers from YOUR documents

I asked it Saudi it didn't say Saudi Arabia.

It said "Contractor at Saudi Aramco" - because it read MY LinkedIn PDF.

This is how it works:

  1. Load PDF
  2. Split into Chunks
  3. Create Embeddings (Google Gemini)
  4. Store in ChromaDB
  5. Search Top 3 Chunks
  6. Send Context + Question to Groq LLM

Tech: Python + LangChain + ChromaDB + Groq + Gemini Embeddings

Save this for your next interview

Comment "RAG" and I'll send you the full code + next part.

Follow for AI Engineer series - Part 2 coming next.


r/deeplearning • • 1d ago

Seed: an experiment in building a small modular AI from scratch on a GTX 1660 Ti, looking for feedback

7 Upvotes

I'm not an ML researcher. I'm a decorative concrete contractor who got into this because I want my family to have capable AI we own and can run at home. My hardware is a GTX 1660 Ti (6 GB) with 16 GB of RAM, and I hold myself to a 2 GB budget for model weights. Quantized 7B to 27B models either didn't fit well or lost too much quality, so I started building something small from scratch instead. It's very much a work in progress.

The idea

Seed is a pool of small specialist models I call seeds, each about 4 to 10M parameters, all trained from scratch with a shared 4,096-token BPE tokenizer. Each seed is trained on one job, then frozen. A small router reads the context and picks which few seeds run, currently the top 3. Facts and arithmetic go to tools (a wiki search and a calculator) instead of being memorized, on the bet that a small model can be decent at deciding what to look up and how to use the result, even if it can't store much knowledge.

Current seeds (about 26M parameters, 50 MB at fp16)

  • A small general-language base trained on TinyStories
  • A tools and reasoning seed (search and calculator calls)
  • JSON and tool-call formatting
  • Turning tool results into short answers
  • Math word problems into plans plus calculator calls
  • Step-by-step reasoning chains

Training now: a word-problem planner (4.4M and 10M versions, to test whether size helps), a Python writer, a seed that writes code, runs it, and fixes errors, an instruction follower, and one seed each for C, JavaScript, PowerShell and shell.

Results so far, against Qwen 2.5 Coder 3B at Q4 as a reference point. These are my own small evals, 20 items each, so take them loosely:

  • Fact questions with a search tool: Seed 18/20. Qwen scored 0, but that's mostly because it never called the tool in my setup, so it isn't a fair knowledge comparison.
  • Held-out GSM8K word problems: Seed 2/20, Qwen 9/20.
  • My 20-problem Python test: Seed 0/20, Qwen 15/20.
  • Valid JSON output: 100% with top-3 routing.
  • Speed: about 27 tok/s on the GPU and 36 tok/s on the CPU.

So right now it's fast and tiny, decent at tool-shaped tasks, and clearly behind on reasoning and code. Those gaps are what the current seeds are aimed at.

Open questions I'd love input on

  • Is the frozen-specialists-plus-router approach a dead end compared with one dense model of the same total size?
  • What's a better routing scheme than top-k from context? I'm considering a dynamic number of seeds based on router confidence.
  • What are good small, clean datasets for planning and code repair?
  • How would you evaluate this fairly against bigger models that weren't built around tool use?

Eventually I'd like to test it on hackmud, a text-based hacking game, as a long-running benchmark, and maybe run it on a phone.

Repo: github.com/SocioSanity/seed

Thanks for reading. Criticism is welcome.


r/deeplearning • • 11h ago

Villain Boutique: My Scheme to get an employer to take a risk on hiring me.

Thumbnail villainboutique.com
0 Upvotes

Self-taught, moving to Texas for an AI job. Is my portfolio enough? Be brutal.

While I was researching ML certifications, Google's AI summary said employers care more about proven, hands-on ability to build and deploy AI on real business problems than about certificates, because the tools change faster than the courses. So I skipped the certificates and spent the last few weeks building proof instead.

villainboutique.com/

Which is really my brick-and-mortar store I plan to open when I have the funds to do so, but ended up being a watered-down e-commerce store version that supports the Autopilot case study.

I can't tell you how awesome Villain Boutique is going to be whenever I have the means to open it. Our backrooms will have backrooms.

  • AI product autopilot: local models (Gemma, Qwen via Ollama on one consumer GPU) that find, check, price, and write up products for a live store with real Stripe checkout. Nothing goes live without a human approving it.
  • KillCalculator.com: a privacy-first field data app with on-device AI that stores nothing.
  • Autonomous red team, Run 001: I pointed one uncensored local model at my own site and told it to find a way in using only the URL. It routed around a broken TLS stack by itself and mapped the attack surface in nine steps before I stopped it.

My degree is in Advertising and crazy gaps in my work history. Most of my experience is in the film industry in Atlanta, Georgia, and that was before COVID.  I'm packing up and driving to Texas to find a job in AI, and this is my shot. If you hire or work in ML, is this enough to get a recruiter to take a chance on me? What's missing? I’m doing this regardless of your feedback, but if there’s anything I can change or improve before I leave, that would be incredibly useful information.  Should I include all the projects I developed over the years, like this image generator that’s specifically for making elaborate designs with consumer-grade Cricut machines, or my personal favorite but no one else's “Holo Sexting Machine,” My attempt to put naked females on a HOLOFAN Projector? 

P.S. The first draft of this was incredibly candid. Thank god I ran this by Claude first.


r/deeplearning • • 1d ago

Rubiks cube solver using Reinforcement Learning (Beating Sebastian Lague's solver)

Thumbnail reddit.com
3 Upvotes

r/deeplearning • • 22h ago

Drupal warns of new site takeover flaw exploited in attacks

1 Upvotes

A critical authentication bypass in Drupal is being actively exploited in the wild right now. Attackers are using it to fully take over sites — not deface them, not exfiltrate a table, but own the entire application layer. Bleeping Computer confirmed the exploitation is in-progress, not theoretical.

The mechanic is familiar: gain a foothold via a privileged identity, then every downstream action inherits that trust. CMS platforms, APIs, and increasingly autonomous agents all share this structural problem. The privileged credential is the blast radius.

What makes this iteration particularly ugly is how quietly it compounds. A compromised service account or session token doesn't throw errors — it just acts. By the time logs show something wrong, the takeover is complete.

For those running production systems with any non-human identities in the request path — agents, integrations, automated workflows — how are you actually handling the gap between credential issuance and runtime behavior? Are you relying on perimeter controls, or do you have something that evaluates the action at the moment it fires?


r/deeplearning • • 23h ago

Getting confused with the vector logic behind GAN noise vectors

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 1d ago

Looking for help testing a modular growing-AI architecture (Seed v2.0) — anyone with spare GPU cycles want to grow a specialist seed?

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 1d ago

WiML/NeurIPS Paris 2026 – Cocktail Reception Guest Ticket Available

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 1d ago

Perceora - training and comparing object detectors on your own GPU, with no code

1 Upvotes

Perceora is an end-to-end AI computer vision platform with no code. This film builds an object detection check for a tray of parts, with the focus on training and picking the model.

https://perceora.ai

The steps in the film:

  1. Label: add images (blurry and near-duplicate shots are flagged), label a few, and the AI suggests the rest.
  2. Train: train several object detection models on the same labeled images, on your own GPU.
  3. Validate: compare them on validation images, not on the training data, and pick the best.
  4. Test: check it on images it has never seen and go through the mistakes image by image, to see which class fails before trusting the score.
  5. Deploy: count each part, then PASS or FAIL, on new images, a folder, a video or a live camera.

Image classification, segmentation and anomaly detection are in the same app, and it runs on your own computer. Free to start; Pro (shown in the video) is a paid plan: perceora.ai/pricing

When two detectors score almost the same on validation images, how do you choose between them?

Disclosure: I work on Perceora. Synthetic images, computer-generated voice.


r/deeplearning • • 1d ago

How can low-bit models make better use of a limited codebook?

2 Upvotes

Suppose we group a model’s weights in fours and build a table with just 256 entries. Each group of four weights can be represented by the closest entry, so we only need to record its index. That table is the codebook. The trouble starts when we learn the entries. If two start close together, one can keep losing by a tiny margin and get almost no samples to update it. We set aside room for 256 entries, but some barely get to learn useful values.

We released BARQ to make better use of those entries. While fitting the codebook, we let each group of weights help update several candidate entries and balance the total contribution each entry receives. Once the table is fitted, we pick a single index per group. At inference, retrieving the weights is still an ordinary table lookup.

Take Qwen3-1.7B. With the same 256-entry codebook size and storage budget, BARQ raised mean accuracy across five zero-shot tasks from 55.75% with GPT-VQ to 59.68%. It also gave the actual next tokens higher probability, bringing WikiText-2 perplexity down from 20.54 to 16.59. Across 60 matched-budget comparisons on six Llama and Qwen models, both metrics improved in 47 configurations.

Team write-up · arXiv paper · GitHub · Figure 3


r/deeplearning • • 1d ago

Planning to create an 25M parameters AI in pytorch on GTX 1050 TI, possible ?

6 Upvotes

I currently have plans to create my own LM/AI

that is 25M parameters and uses FP16.

it will be called フアブリク V1 (FABRIC in katakana). It's only meaning is just talk in English while outputting in katakana letters. Just a really basic LLM.

However due to very limited budget I can't really switch to a RTX gpu or even a GTX 1080 TI, leaving me with only a Ryzen 5 1600x, 16 gigs of ddr4 ram. And a GTX 1050 TI, are those specs good enough for training a 25M parameters model like mine?


r/deeplearning • • 1d ago

I built an annotation tool where your model pre-labels, you fix, and it retrains on your local GPU

Thumbnail reddit.com
1 Upvotes
I'm the developer of AnnotaryCat, a desktop annotation app for Windows and macOS. I wrote a scheduler into it so the label → train loop runs on your own machine

The loop:

1. Add your model as a small Python interface file (train/predict functions + hyperparameters). It runs in your own Python environment.
2. Run `predict` on a batch, and the results show up as pre-labels.
3. Fix them in the editor.
4. Start a training run on the corrected data. With a local GPU it runs right on your machine; otherwise it can go to your own server over SSH. You get metrics and checkpoints, and the run is saved as a new model version.
5. Pre-label the next batch with the new version.

Task types:

- Available now: image classification, bounding boxes, segmentation, ReID, image captioning
- Next release: text classification, text captioning, video classification, video captioning
- After that: OCR, keypoints and more

Everything is local: each project is one SQLite file, there's no account or telemetry, and labeling works offline.

It's free to download on the Mac App Store and Microsoft Store (just search "AnnotaryCat"). Bounding boxes and image captioning are free. It isn't open source, but if you find it useful and want to support it, Pro, which adds the training loop and the other task types, costs about a cup of coffee a month and comes with a 1-week free trial.

Would a tool like this fit your workflow? And which task types would you want next?

r/deeplearning • • 1d ago

How can a depth image find its matching thermal frame?

1 Upvotes

Give a model a depth image of a street and ask it to find the thermal frame from the same instant. Several consecutive frames can show almost exactly the same street. Recognizing the street alone won't tell the model which frame to choose. A depth image records distance and a thermal camera records heat, so the same object can look quite different. Could the model learn to match the two using separate training collections, one pairing depth images with RGB photos and the other pairing thermal images with RGB photos?

We released PRAM to use ordinary RGB photos as the common reference. It learns how regions of a depth image relate to regions in an RGB photo, and separately learns those relationships for thermal images. It brings the two sets of relationships together. When ranking candidate frames, it can use both the overall scene and the small differences in shape and position that distinguish adjacent frames.

On TartanRGBT, we used the same frozen ImageBind features to retrieve thermal frames from depth images and depth frames from thermal images. Averaged over both directions, MMBind put the correct frame in the top ten 17.5% of the time. PRAM did so 75.1% of the time. We then kept all the regional features in the reference images but shuffled which positions they corresponded to. PRAM fell from 75.1% to 23.5%. Even with the same set of visual clues, knowing where each one belonged made a difference to finding the right frame.

Team write-up · arXiv paper · GitHub · Figure 2


r/deeplearning • • 1d ago

After we masked half the image, CLIP picked the wrong caption for 155 photos. We could still read the object category from its features.

1 Upvotes

Look at the photo in Figure 4. A man is driving a truck loaded with bananas. With the center of the photo covered, CLIP put a caption about someone standing beside a banana-laden truck first. A caption about a man transporting bananas in his truck came third. Both captions get the bananas and the truck right. What separates them is what the man is doing.

We wanted to know how much information CLIP still had when it picked the wrong caption. We selected 700 Flickr30K photos for which CLIP ranked a correct caption first and a classifier could read the correct object category from its image features. Then we masked the central 50% of each photo. For 155 of them, CLIP now put the wrong caption first. The same classifier could still read the correct object category from the features of those 155 photos.

That finding led us to build SPARC. Could the remaining clues help CLIP choose between two plausible captions? During training, we used complete photos and their captions as references to teach a small module to adjust the features of a masked photo. The aim was to move correct captions up while preserving the matches CLIP already ranked correctly. At search time, only the incoming query goes through the module, so the collection can reuse its existing embeddings.

In a separate Flickr30K test, we masked the central 25% of each photo. A correct caption came first 54.1% of the time with the original CLIP ViT-B/32, 66.0% after standard fine-tuning, and 70.9% with SPARC. Back in the truck example, the caption SPARC ranked first describes a man driving a truck loaded with bananas.

arXiv paper · Figure 4


r/deeplearning • • 1d ago

Why can't we directly assemble a VLM from frozen unimodal models? Probing what breaks

Thumbnail arxiv.org
1 Upvotes

r/deeplearning • • 1d ago

Critical Juniper Session Smart Conductor Flaw Exploited in Attacks

1 Upvotes

CVE-2026-103406 in Juniper's Session Smart Conductor allows remote attackers to execute arbitrary commands as root with no authentication required. CISA has confirmed active exploitation in the wild.

What makes this category of vulnerability different from a typical endpoint compromise: Session Smart Conductor sits at the traffic-routing layer. Root access there means an attacker controls flows across the entire network, not just the node they landed on. The blast radius is structural, not incidental.

Patching cadence rarely matches exploitation speed on CISA's KEV list. The gap between public disclosure and patch deployment is measured in days to weeks. Active exploitation means that gap is already being used.

For those running critical routing infrastructure: what does your actual containment posture look like when a core conductor process is compromised before a patch is available? Not asking about patching — asking about what limits propagation in the window before you can patch. Curious what practitioners are actually doing here, not what the frameworks say to do.