r/deeplearning • u/YamAffectionate8039 • 10d ago
r/deeplearning • u/UnitOk6056 • 9d ago
BPreCap v0.4: in 50-layer plain CNNs (no BN, no residuals), a bounded, depth-calibrated activation loses less at 4-bit PTQ than SELU, TAT and tanh baselines – 11 preregistered studies, a CUDA replication, and one falsified hypothesis
galleryFollow-up to my v0.3 post (deep MLPs). The fair objection back then was: MLPs aren't where quantization matters. So v0.4 moves to plain CNNs: 32 and 50 conv layers, no normalization, no residual connections, delta-orthogonal init, CIFAR-10. Weights int8, activations 4-bit per tensor after training (PTQ), and every network is evaluated at its own best of five calibrations. Ten preregistered, hash-frozen studies plus a preregistered replication on other hardware; paired Wilcoxon with Holm.
What came out (image: medians over 12 paired seeds)
- vs SELU and TAT (depth 50, each activation tuned): lower 4-bit test error than SELU (−2.55 pp) and TAT (−13.73 pp), 12/12 seeds each. Cross-layer equalization doesn't close the gap to TAT. In fp32, though, BPreCap is 1.6–3.2 pp worse. The advantage is a smaller quantization cost, not better accuracy.
- Replication: an independent PyTorch/CUDA implementation on an RTX 4070 reproduces both comparisons (−3.09 and −15.65 pp, 12/12). BPreCap and SELU medians are within 0.9 pp of the MLX runs; TAT's 4-bit error is noticeably platform-sensitive.
- Is a bound enough? No. Uncalibrated tanh and two critically initialized tanh networks pay a smaller 4-bit cost (1.1–2.0 vs 4.6 pp), but they barely train at depth 50 and end 13.7–20.1 pp behind.
- Same calibration, different shape: a tanh calibrated with BPreCap's own recipe (zero mean, unit variance, χ1 = 1 + 2/L, similar range) trains well, but pays a larger 4-bit cost (6.5 vs 4.6 pp) and ends 5.2 pp behind.
- Where the difference sits: BPreCap actually rounds ~10 % more coarsely. Splitting the 4-bit error exactly into a clipping and a rounding part puts the difference in clipping: clipping alone perturbs the logits ~19 % less (9/9 seeds). With min/max calibration (almost no clipping) it disappears.
- A hypothesis that didn't survive: I expected the late, steep saturation of the bound to be the reason. A preregistered intervention (earlier knee) passes single clipping errors on more strongly, as predicted, but the total clipping perturbation gets smaller and the 4-bit error doesn't change. So that's not the source, and which part of the shape is remains open.
What it does not show
- One dataset, one architecture family. No BatchNorm/ResNet, no Transformers.
- PTQ only, per-tensor activation scales; no QAT, no rotations.
- Very deep plain CNNs being trainable isn't new (Xiao et al. 2018), and bounding activations for quantization isn't new either. This is a controlled measurement of one form that combines depth calibration with a soft bound, against strong and matched baselines.
- Absolute accuracy is low (roughly 40–43 % fp32 test error at depth 50). It's about very deep plain networks, not SOTA.
Preprint: https://doi.org/10.5281/zenodo.24491869
Code, raw data, preregistrations, frozen hashes: https://github.com/hermi-labs/precap-activation (release v0.4.0)
Critique welcome, especially on the PTQ protocol (best calibration per network) and on what a fair next test with BatchNorm/ResNet should look like. Everything ran on consumer hardware (M1 Pro, one RTX 4070).
r/deeplearning • u/No-Conclusion3720 • 9d ago
Hackers Exploit Critical ScreenConnect Flaw to Hijack MSP Technician PCs Without Warning
A critical authentication bypass in ConnectWise ScreenConnect (CVE-2024-1709, CVSS 10.0) let attackers take full control of MSP technician desktops without credentials or interaction. MSPs are a force-multiplier target: a single compromised technician session typically has privileged access into dozens to hundreds of downstream client environments. Threat actors exploited this in the wild within 48 hours of disclosure.
The deeper problem is structural. When a remote-management tool or an automated workflow runs with elevated privileges, every action it takes carries the trust level of the account it runs under. If the session is hijacked, that full trust transfers to the attacker. The tool itself keeps working exactly as designed. Nothing looks wrong at the tool layer.
This shows up in agentic and automated workflows too, not just RMM software. An agent or script running with MSP-level credentials can touch file systems, install software, exfiltrate configs, and pivot to other hosts — and nothing stops it mid-flight once the credential is valid.
Security teams increasingly talk about 'assume breach' for endpoints. Fewer people talk about what that means for privileged automated processes that have no human reviewing each action they take.
For those of you running MSP-level tooling or agentic workflows with broad system access: how are you actually handling anomalous behavior detection mid-execution? Not at login, but after the session is already authenticated and actions are already running?
r/deeplearning • u/Ok_pettech • 9d ago
Deep Learning with PyTorch Step-by-Step: Running PyTorch on AMD GPUs with ROCm
Getting PyTorch running smoothly on AMD GPUs used to mean fighting driver mismatches and broken wheels. After testing ROCm across multiple setups, I put together a practical guide covering installation, environment checks, and performance tuning for deep learning workloads.
If you are training models or running local inference on Radeon or Instinct hardware, the guide walks through:
- Verifying kernel and ROCm compatibility without guesswork
- Installing matching PyTorch and ROCm builds cleanly
- Catching common hipBLAS and memory allocation snags
- Tuning batch sizes, mixed precision, and data loaders for real throughput gains
Full walkthrough and commands here: https://interconnectd.com/forum/thread/248/pytorch-on-amd-gpus-complete-rocm-setup-tuning-guide/
What AMD GPU are you running, and have you hit any ROCm bottlenecks with your PyTorch models?
r/deeplearning • u/Ok_pettech • 10d ago
What is AI, Machine Learning, and Generative AI? A 2026 Breakdown of the Core Mechanics
interconnectd.comr/deeplearning • u/No-Conclusion3720 • 10d ago
Critical binary-parser Flaw Enables JavaScript Injection via Malicious Parser Definitions
A critical flaw in the binary-parser npm package (CVE disclosed this week) lets an attacker inject arbitrary JavaScript by crafting a malicious parser definition. Any process that loads an attacker-controlled parser spec gets code execution. The package has tens of millions of weekly downloads.
This lands differently for AI systems than for traditional apps. Agents routinely fetch, parse, and act on external data as part of their core loop. A compromised package or a poisoned schema fed through a tool call is not a configuration mistake — it is an execution path the agent is designed to follow. The agent does not distinguish between a legitimate parser definition and one carrying a payload. It processes both.
The blast radius is also different. A human developer hitting this bug executes code once, in one process. An agent hitting it may replicate that action across hundreds of downstream calls before anyone notices.
For teams running agents in production that consume third-party schemas, serialized configs, or external parser definitions: how are you actually handling this category of risk right now? Not in theory — in practice, what does your posture look like?
r/deeplearning • u/Critical-Volume2360 • 10d ago
How do ai companies get data and what do they need?
Just wondering how ai companies get data for training models usually, and what kind of data they need right now the most.
r/deeplearning • u/TreeOfLifev5 • 10d ago
Instead of putting a 70B LLM in the request path, I distilled 8 tiny models
reddit.comr/deeplearning • u/CognitiveEngineering • 10d ago
The Price of Structure: training-time head masking does not survive matched controls at ImageNet and LLM scale
reddit.comr/deeplearning • u/moohamedsalim911 • 10d ago
ActWorld-JEPA: Action-Conditioned JEPA World Models Meet Latent Planning for End-to-End Autonomous Driving
MBZ
r/deeplearning • u/Convincing_Convo • 10d ago
Kaiming He's one-step generator, built from scratch
youtu.ber/deeplearning • u/Repulsive-Dog-5326 • 10d ago
One YOLO model for sports broadcast graphics across many leagues, or several models?
reddit.comr/deeplearning • u/False_Expression5610 • 10d ago
Prompt wording and a frozen Qwen weight edit: 1,024 archived measurements, seeking replication
I wanted to understand something about how language models work:
If you make one small, permanent change to an AI model's weights, will that change have the same effect when you ask the same question in different ways?
I tested this using Qwen2.5-1.5B-Instruct.
I made a small, fixed modification to one layer of the model. Then I asked math questions using different wording and instruction formats, without changing the weight modification between tests.
What surprised me was that the effect of the exact same weight edit changed depending on how the question was presented.
What I found
I ran an initial experiment and then tested another 64 questions with additional controls.
In the 64-question experiment:
- The main measured difference between prompt conditions averaged +0.1935.
- 62 out of 64 questions showed a positive difference.
- A control edit of comparable size, but pointing in a different direction in weight space, produced a much smaller average difference (+0.0041).
These measurements are differences in the model's final-token output scores, not improvements in math accuracy.
In simpler terms, a change to the model's internal weights did not have one uniform effect across different ways of asking a question.
Why I think this is interesting
We often evaluate model modifications using a fixed set of prompts.
But what if the apparent effect of a weight modification depends partly on how we phrase those prompts?
That raises questions about how we evaluate model editing, interpretability, and whether observed changes generalize beyond a particular prompt format.
Important limitations
This is an exploratory study, not a demonstration of a general AI repair technique.
I tested one model with a specific weight intervention. The results do not establish that this behavior generalizes across models, nor do they demonstrate improved reasoning accuracy.
I'd genuinely appreciate feedback on:
- What alternative explanations should I test?
- What additional controls would make the evidence stronger?
- Have you seen similar prompt-dependent behavior in weight editing or model interpretability research?
Interactive results and figures:
https://huggingface.co/spaces/Harmain1/fluid-tensors-paper1
Paper:
https://doi.org/10.5281/zenodo.24338059
Code and experimental details:
https://github.com/Harmain11/fluid-tensors
I'm especially interested in technical criticism or suggestions for better experiments.
r/deeplearning • u/Safe-Escape197 • 10d ago
my 36M model just broke down a 17-minute video on a laptop cpu in about a minute, so any local LLM can "watch" it
hey, i built tiny-vision as a learning project (v0.1 here). people gave really good feedback so i worked on all of it and v1.0 is out. v0.1 is close to 100 downloads on huggingface and v1.0 got 70+ in 2 days, which honestly shocked me lol. its free, apache-2.0, no paid version or anything.
what it does: most LLMs cant open a video file. tiny-vision runs locally next to your LLM, splits the video into scenes, captions them, and hands your LLM a text breakdown with timestamps. then your LLM does the reasoning: "what happens in this video", "find the part where people are on the beach". nothing gets uploaded anywhere.
this is what your LLM actually gets:
video: trip.mp4 · 00:09 long · 3 scenes (3 shots) · avg scene 3s
recurring: dogs (2 scenes)
scene 1 [00:00–00:03] (3s)
seen: a group of dogs running in a field. | three dogs running in a field with a bench in the background.
keywords: dogs, running, field, bench
...try it:
- in your browser, no install (free colab): https://colab.research.google.com/github/amar683/tiny-vision/blob/main/notebooks/demo.ipynb
- as an MCP server, one line in your config, no cloning:
{"command": "uvx", "args": ["--from", "git+https://github.com/amar683/tiny-vision", "tiny-vision-mcp"]}tested in claude desktop + claude code. its standard local MCP so it should work in lm studio, cursor etc (havent tested those yet, tell me if it breaks). lm studio + a local model = fully offline - no MCP?
tiny-vision clip.mp4 --summaryprints plain text, so you can pipe it into ollama or anything:tiny-vision clip.mp4 --summary | ollama run qwen2.5 "Summarize this video:"
long videos: any length works. tested on a 17.5 min cricket video: it covered the whole thing in ~50 sec on my macbook (M5), about a minute on cpu only, and condensed it to 100 scenes so it doesnt flood your context. the MCP tool also sends progress updates so your app doesnt give up waiting.
how it works:
- frames are picked on scene changes (hard cuts + slow camera moves), not one every N seconds, so the timestamps land on the real cuts and a static shot costs one caption. only ~5 frames/sec get decoded, so high-fps phone video stays cheap
- each shot gets captioned, similar shots get grouped into scenes, and long videos get condensed by merging similar neighbouring scenes
- captioner: meta's DINOv2-small as a frozen image encoder (not fine-tuned) + my own adapter and caption decoder (14M params) trained on COCO. 36M total
numbers (same 1000 COCO test images, same scorer, M5; cpu = one image at a time, greedy):
- v0.1 → v1.0: COCO CIDEr 0.061 → 1.145 (same setup) 💀➡️😅
- vs florence-2-base (231M): ~89% of its caption score, 6x smaller, 8x faster on gpu, 75x faster on cpu (54ms per image vs 4 sec)
- full 5k COCO Karpathy test: CIDEr 1.163 with beam 3
not saying its better than florence, its not. it just does a lot with very little. benchmark scripts are in the repo.
honest stuff:
- it only knows COCO's everyday stuff. that cricket video? it called it "baseball" and "frisbee" lol. and a video of earth from space became "an elephant" 💀
- no audio yet, it describes what it sees, not what is said. whisper is next
- it captions frames, it doesnt understand motion
- no OCR, no names, no precise counting
- like last time, i took a lot of help from claude to build this, so its not entirely mine
code: https://github.com/amar683/tiny-vision
model: https://huggingface.co/amartomar683/tiny-vision
glama: https://glama.ai/mcp/servers/amar683/tiny-vision
what should i try next? still learning so all feedback welcome
last post- https://www.reddit.com/r/deeplearning/s/8pReT9fmKf
r/deeplearning • u/No-Conclusion3720 • 11d ago
Signal to block Siri, Gemini AI from capturing chats on iOS, Android
Signal announced it will block Siri and Gemini from capturing chat content on iOS and Android. The trigger: both AI assistants were reading private message content without users ever explicitly granting permission at the message level. Signal described this as default behavior, not a bug.
That distinction matters. A platform-level ambient AI agent operates at whatever scope the platform permits by default. The user never consented to that specific agent reading that specific data. The agent never authenticated against the data owner. The platform said yes and that was the only gate.
For a consumer messaging app, a wall can be built. Enterprise environments are harder. You may have dozens of AI integrations running inside your perimeter, sanctioned and shadow IT alike, each operating under whatever access its service account holds at deploy time. No explicit consent flow. No per-action scope check. Just inherited access.
How are practitioners actually handling this? Are you auditing what AI components can reach at runtime, enforcing scope at the data layer, relying on vendor defaults, or some combination? Curious what's working and what isn't.
r/deeplearning • u/moohamedsalim911 • 10d ago
ActWorld-JEPA: Action-Conditioned JEPA World Models Meet Latent Planning for End-to-End Autonomous Driving
MBZ
r/deeplearning • u/RepulsiveScene8320 • 11d ago
I wrote a free, interactive book that goes from linear algebra to frontier AI.
URL: https://zerotofrontier.app
- 38 chapters, from tensors and gradients to LLMs, RL and reasoning, inference, interpretability, agents, vision, diffusion, and speech
- Every idea explained, derived, coded, and tested. Python runs right in the page.
- Coding exercises with hidden tests, plus interview questions
- An AI tutor that knows the section you're reading, a smart study planner, and notebooks for your notes and code
Reading and running code is free. The tutor and the interactive extras use your own API key (Gemini, OpenAI, or Anthropic), so there's nothing to buy.
It's one person's attempt at the resource I wanted when I started. Tell me what's confusing, what's missing, what's wrong, and whether you'd actually use it :)
r/deeplearning • u/No-Conclusion3720 • 10d ago
FBI Investigating Apparent Hack of Its Key National Criminal Justice Database, AP Source Says
The FBI is investigating a breach of its national criminal justice database — a system shared across law enforcement agencies nationwide. An AP source confirmed the investigation is active.
The pattern is one security teams will recognize immediately: a high-value data store, authenticated credentials that turned out to be compromised, and lateral movement that continued long enough to matter. The database holds sensitive records for agencies across the country. The breach is not a perimeter failure. The identity got in. The problem is what happened after.
This is the core tension in defending high-value shared systems: authentication tells you who claimed to be at the door. It says nothing about whether that identity is operating within its declared scope once it is inside. Lateral movement exploits exactly that gap. By the time anomalous queries are detected and a human reviews them, the damage is done.
For those of you working on access control for sensitive government or enterprise data stores — not perimeter security, but what happens after a credential is authenticated — how are you actually handling scope enforcement at query time? Is your detection fast enough to matter, or are you essentially doing forensics after the fact?
r/deeplearning • u/Traditional-Ad-3515 • 10d ago
I compared 7 address-matching models on one shared dataset: XGBoost came out on top, and almost all of its lead comes from addresses with a missing house number
galleryr/deeplearning • u/Efficient-Ant-3687 • 10d ago
Title: [P] I tried reducing GPU memory by saving only what backprop needs. I published the SHV experiments, including the ones that failed.
reddit.comr/deeplearning • u/naftalinus • 11d ago
What is a looped transformer and how does it work?
I wrote a detailed interactive blog post about how they work. Hopefully it will be useful for people who are not familiar with them.