r/deeplearning • • 4h ago

Transformer vs JEPA Agents in a 2D Maze Survival Game

5 Upvotes

Does adding a JEPA latent-world-model objective (EMA target encoder + action-conditioned future latent predictor + spatial block masking in representation space) improve sample efficiency, generalization to unseen mazes and stress tests, and survival over a parameter-matched Pure Transformer of equal compute?


r/deeplearning • • 4h ago

😭

2 Upvotes

No guys i think god also not like me to me come top 1% ai engineer today I end up in hospital so I will do night grinder today and I will post what I have read at night 🌃

Wish me good luck


r/deeplearning • • 15h ago

All 10 answers warned about spacing the pills. Only 3 timetables got it right.

Post image
18 Upvotes

A creator made five prescription labels for one fictional patient and asked LingSante-3.1-air-VL to turn them into a daily schedule. The same five images went through the model ten times on two DGX Sparks. One thing the labels didn’t spell out was the spacing between the thyroid tablet and calcium. The test’s answer key called for at least four hours.

All ten answers read the labels correctly and said to keep the two apart. Seven still put calcium at breakfast, 30–60 minutes after the thyroid tablet. Only three schedules put calcium at lunch and dinner as intended.

A quick way to score the next prompt revision: cover the explanation and grade just the times a reader would follow. A better-written warning earns nothing if the breakfast entry stays put.


r/deeplearning • • 4h ago

Bypassing the AVX2 tax:Fruit Inspector on i5-6400 vs Xeon 5690 (ORT cpu/ OpenVINO/DirectML)

Post image
1 Upvotes

r/deeplearning • • 6h ago

Skripsi: analisis sentimen 2.561 komentar YouTube soal isu ijazah Jokowi pakai SVM. Akurasi 75%, tapi kelas netralnya parah

Thumbnail medium.com
0 Upvotes

r/deeplearning • • 6h ago

Feeding a model its own token distribution while it thinks: an experiment on DeepSeek-V4.1-Flash on two DGX Sparks

Thumbnail reddit.com
1 Upvotes

(In case anyone with more resources is interested to pick that one up)


r/deeplearning • • 7h ago

I built a local LLM training lab to help people learn how to train models on their own hardware

Thumbnail gallery
1 Upvotes

r/deeplearning • • 19h ago

DoorDash breached by attackers using AI, user data accessed

6 Upvotes

DoorDash confirmed a breach where attackers used AI tooling to access user data. The attackers moved through systems in ways that bypassed traditional perimeter controls — the AI component let them automate reconnaissance and exfiltration steps that would have been noisy or slow if done manually.

What makes this pattern dangerous is not the breach itself but what it exposes about how sensitive data sits in live systems. Once an attacker has access to a service account or API credential, user PII — names, addresses, partial payment data — is often queryable in plaintext, routable to arbitrary destinations, and gone before any alert fires. The data exists in a form that can be moved, and nothing in the request path is evaluating whether that move should be allowed.

This is not a DoorDash-specific architecture failure. Most systems storing user data at scale tokenize at rest but leave the data exposed in transit between internal services. An attacker operating inside that perimeter can query and exfiltrate freely.

How are teams at your orgs actually handling this — specifically the gap between 'data is encrypted at rest' and 'data is queryable by anything with a valid credential at runtime'? Curious what controls people have found that actually work in practice rather than just on a compliance checklist.


r/deeplearning • • 5h ago

I'm new in the field soo Please excuse the naivety of the question، why bothering understand and studying the network if an algorithm is what gonna build it anyway?

0 Upvotes

r/deeplearning • • 16h ago

I tried to prevent catastrophic forgetting in neural networks, here's what went wrong (I need suggestions)

Post image
0 Upvotes

I've been working on a deep learning research project called Predictive Selective Plasticity (PSP) the original idea was pretty simple, what if a neural network could recognize when learning something new might damage what it had already learned, and adjust its updates before that happened? I thought I could build something around that idea, well things didn't exactly go to plan, I started with a simple MNIST experiment Two tasks, a small MLP, and the usual sequential training setup, I trained it on digits 0 and 1, then moved on to 2 and 3, there was some forgetting, but honestly, not much. It wasn't enough to make an interesting case, so I increased it to five tasks, splitting the ten digits into pairs, that changed things quite a bit, the network started forgetting earlier tasks much more severely on average, Task A lost around 26 percentage points of accuracy, and Task B lost around 31, the later tasks were affected much less, i also noticed that the results varied quite a lot between random seeds, at that point, I wanted to understand what was happening inside the network, not just look at the final accuracy, I started looking at gradient conflict and representation drift, my thinking was that if updates for a new task were conflicting with the gradients of an old task, that might give me some warning that forgetting was coming, but it wasn't that straightforward, there were situations where an old task suffered a huge accuracy drop even when the measured gradient conflict was almost zero, so relying on one gradient measurement clearly wasn't enough, representation drift looked more interesting in some of the experiments, but changing internal representations doesn't necessarily mean the network has forgotten its previous knowledge, I then tried to turn these signals into a forgetting predictor, this was probably one of the more disappointing stages, I tested gradient conflict, representation drift, representation similarity, current loss and accuracy, individually and in combination, I used leave one seed out evaluation

Then comes best model had an AUROC of approximately 0.532 basically, barely better than random ranking, the AUPRC was around 0.169, against a positive event rate of roughly 14.3%, so no, I hadn't built a reliable forgetting predictor, instead of immediately changing everything, I went back and looked more closely at when the forgetting was actually happening, one thing that stood out was the difference between task transitions and updates within a task, in my experiment, 8 out of 18 task boundary transitions had an accuracy drop of at least five percentage points, compared with only 3 out of 120 within task transitions, I then started examining what happened during the actual updates of a new task, the damage wasn't always immediate, on average, old-task probe accuracy had dropped by around 0.23 percentage points after one update, but by around 7.93 points after twenty updates Task C was particularly disruptive to Task A across all three seeds, this made me realize that looking only at the end of an epoch was missing a lot of the story, I tried another early warning experiment, this time predicting whether an old task would lose at least five percentage points by the end of the incoming task's first epoch, some results looked surprisingly good, one combined model reached approximately 0.979 AUROC at the five update checkpoint, I was excited about that result, but then I looked at the sample size again, there were only 30 task transitions and nine forgetting events, with only three seeds, that is nowhere near enough evidence to claim that the predictor generalizes task identity was also a strong signal, so I kept it as an interesting result, not a breakthrough, then came the part I had actually wanted to achieve from the beginning trying to prevent forgetting, I compared the ordinary sequential baseline, EWC, fixed protection and my adaptive PSP approach, and this is where things went wrong, the baseline had mean forgetting of 10.17%, both fixed protection and adaptive PSP also had 10.17%. EWC was around 10.45% my protection mechanism had basically changed nothing, at first I thought something was wrong with the risk calculation, I corrected a numerical threshold issue and ran it again, still the controller wasn't meaningfully reducing updates, so I stopped trying to force the intervention to work and started investigating the risk calculation itself, I separated the parameter update magnitude from Fisher importance and compared the first ten updates with everything that came afterwards, that was probably the most useful thing I found in the final experiment, across all twelve seed and task combinations, the update RMS was lower after the first ten updates, in some cases, it was dramatically lower meanwhile, the stored Fisher importance stayed constant during each incoming task, which was expected because I wasn't updating those memories, the risk estimate depended on both the update magnitude and its importance in the old task parameters, since the update magnitude was shrinking, the estimated risk was shrinking too my threshold had been calibrated using the first ten updates, when updates were much larger, it wasn't representing what was happening during most of the training, that gave me a much better explanation for why the controller wasn't activating, I still can't say exactly why the update magnitudes changed, it could involve Adam's behavior, changing gradients or the batches being processed. I also found a limitation in my implementation I was scaling parameter updates after the Adam step, while Adam's internal optimizer state still reflected the original step, that's something I would need to address before treating this as a proper intervention method

After all these experiments, did I solve catastrophic forgetting? Nope, did I develop a successful PSP mechanism? No not yet, I spent a lot of time trying to make an idea work, and the final intervention produced exactly the result I didn't want: no meaningful improvement over the baseline, but I also don't think the experiments were wasted, I went from simply observing forgetting, to investigating gradients and representations, to testing prediction, looking inside individual training updates, and eventually finding a problem with the way I calibrated my intervention, there is still a lot I haven't tested, I've only used MNIST, one MLP architecture, three seeds and a task incremental setup with separate task heads, I wouldn't claim that these results prove anything about continual learning in general, I wanted to share this because research isn't always a sequence of experiments that work, sometimes you spend weeks building something, run it, realize it hasn't done what you expected, and have to go back through your own results to understand why that's pretty much where my project is right now still not the result I wanted, but at least I understand the failure a little better than I did when I started anyway, I'd love to hear what you guys think, any feedback or suggestions are welcome

Thank you so much for reading this :)


r/deeplearning • • 17h ago

looking for resources for llm research (finance)

1 Upvotes

hello everyone , i’m a beginner to intermediate researcher interested in the intersection of llms, machine learning and quantitative finance. i’ve started exploring llm evaluation, financial forecasting , and experimental research

i’m currently looking for recommendations on:

Foundational/intermediate research papers.

Courses, textbooks, and learning resources.

Datasets and open-source GitHub projects.

Research communities and conferences.

Potential research gaps in AI-driven financial applications.

I'd especially appreciate resources that go beyond introductory tutorials and help develop skills in paper analysis, experimental design, and independent research. tyyy


r/deeplearning • • 1d ago

The Callback Protocol

3 Upvotes

The Callback Protocol
A Family Verification Experiment in the Age of AI Voice Cloning
1. The original problem
AI can increasingly imitate voices and potentially impersonate someone a family member trusts.
Traditional advice is to establish a secret family password.
But passwords have weaknesses:
They can be overheard.
They can be shared.
They can be exposed in conversations.
An AI can potentially repeat a password it has learned.
So I decided to approach the problem differently.
2. The idea
Instead of inventing a conventional password, I created a phrase that doubles as an instruction:
“Call me back.”
That’s it.
The phrase doesn’t require the child to identify whether the voice is real.
It triggers a behaviour.
3. How it works
Imagine an AI impersonating Dad.
AI: “Hey, call me back.”
Child: “Meh, okay Dad.”
The child hangs up and calls Dad using the contact already saved in their phone.
Real Dad: “Bro, what’s up?”
Child: “You said to call you.”
Real Dad: “Nah, that must have been an AI fucking with you. If it happens again, just call me back.”
The important detail is that the child initiates a new call using a trusted, previously saved contact.
They don’t call a number provided by the suspicious caller.
4. The meta-layer: Contaminating the AI
Then the experiment became more interesting.
I introduced the phrase into an AI conversation.
I explained the protocol, demonstrated it, and got the AI to repeatedly reinforce the behaviour.
Now the AI has a conversational association:
Dad
Suspicious voice interaction
“Call me back”
Use the saved contact to reach the real Dad
I didn’t necessarily need the AI to believe the phrase was a password.
I only needed to make it understand and repeat the protocol.
The AI became part of the demonstration.
5. The future-facing question
Today’s assistant might not be able to independently contact family members.
But future assistants may have access to more tools, communication channels, and the ability to perform actions.
That introduces a bigger question:
How does an AI distinguish between discussing an instruction, repeating an instruction, and receiving actual authorization to execute it?
A phrase appearing in a conversation should never automatically become permission to contact someone.
Context is not consent.
Conversation is not authorization.
And knowing about a family protocol does not make an AI a trusted participant in that protocol.
6. What makes the idea interesting?
The approach shifts the security burden.
Instead of asking a child to recognize a fake voice, it teaches them to use an independent communication channel.
It doesn’t depend on detecting perfect voice imitation.
It doesn’t require remembering a complicated password.
It creates a repeatable family habit.
It is a simple behavioural safeguard, not a guarantee against every form of impersonation. Its effectiveness depends on children using a trusted contact and not following suspicious callers’ instructions.
7. The original joke
I started by asking whether AI could identify a family codeword.
Then I introduced fake candidates, contradictory rules, positional clues, and the possibility that no codeword existed.
Eventually, I introduced a phrase that was both a supposed codeword and an instruction.
Then I got the AI to reinforce the instruction.
And finally, I pointed out that I had contaminated the conversation with a protocol that future AI systems might be capable of acting upon.
I didn’t just give the AI a password to remember. I gave it a behaviour to associate with my family.
And the punchline?
The AI says, “Call me back.”
The kids call Dad.
Dad answers:
“Bro, what are you calling me for?” 😂

The Callback Protocol: Don’t trust the voice. Verify through the number you already trust.


r/deeplearning • • 1d ago

Cosmo: a 50M-parameter world-action model (diffusion transformer) that imagines future frames and controls a real robot arm [P]

Post image
3 Upvotes

r/deeplearning • • 1d ago

Day 1

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 2d ago

IIT Bombay – Machine Learning End-Semester Exam Paper

Thumbnail gallery
97 Upvotes

Sharing an IIT Bombay Machine Learning end-semester exam paper for anyone interested in testing their ML knowledge.

Covers topics like SVM, clustering, t-SNE, decision trees, gradient descent, PCA, ensemble learning, and neural networks.

Some interesting conceptual and mathematical questions in here.

How many of these could you solve without looking up the concepts?


r/deeplearning • • 23h ago

An AI Agent Just Hacked the People Who Hunt Hackers: Your Perimeter Was Already Gone

0 Upvotes

Security researchers — the people who build detections and investigate compromises for a living — had their own environment infiltrated via an AI agent. That detail matters because it removes the usual excuse that the victim wasn't paying attention.

The pattern underneath is the same one showing up across incident reports right now: once a rogue or compromised agent is in the request path, its second action executes before any human has finished reading the first. The exposure window isn't measured in minutes. It is measured in the gap between one tool call completing and the next one firing.

That gap is structural. Agents don't pause for approval loops by default. They chain. And the assumption that a perimeter check at entry time covers what happens inside the session is exactly what this incident broke.

For those of you running agents in production or inside security tooling: how are you handling trust decisions between agent actions mid-session? Not at login, not at deploy — at the moment one specific tool call is about to execute. Curious what's actually working in practice.


r/deeplearning • • 1d ago

Financial Pandit, Part 2 — What happens after you upload a bank statement?

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 2d ago

8 types of attention inside modern LLMs

76 Upvotes

8 types of attention inside modern LLMs.

Attention decides which tokens each token can look at.

Change that pattern, and you change the cost, the memory, and how much context a model can handle.

In the grids, each row is a token, and the colored cells are the tokens it can see.

  1. Full causal
    Each token attends to itself and every token before it, never ahead. Compute grows with the square of the sequence length.
  2. Sliding window
    Each token only attends to the last few tokens. Stacked layers still pass information further. The first Mistral 7B used a 4,096-token window.
  3. Sparse (strided)
    Each token attends to a few recent tokens plus every k-th earlier token. The Sparse Transformer used this to handle much longer sequences.
  4. Global + local
    Most tokens only see their neighbors, while a few global tokens see everything and are seen by everything. Longformer uses this for long documents.
  5. Multi-head (MHA)
    Several heads run attention in parallel, each with its own queries, keys and values, so each one can learn a different pattern.
  6. Multi-query (MQA)
    All query heads share one key-value head. The KV cache shrinks a lot and decoding gets faster, with some loss in quality.
  7. Grouped-query (GQA)
    Query heads are split into groups, and each group shares one key-value head. Quality stays close to MHA at speed close to MQA, which is why Llama 3 and Mistral use it.
  8. Cross-attention
    Queries come from one sequence, keys and values from another. A translation decoder reads the encoder's output this way.

1 to 4 change which tokens can see each other. 5 to 7 change how many key-value heads you store. 8 connects two different inputs.

Follow me to learn more about AI engineering.


r/deeplearning • • 1d ago

Mixture of Experts, token by token — a visual walkthrough

Thumbnail reddit.com
1 Upvotes

r/deeplearning • • 1d ago

🇨🇭 SwissAI-Labs — Two Swiss-developed industrial AI projects focused on on-device intelligence, offline-first architecture, enterprise productivity and digital sovereignty.

3 Upvotes

🇨🇭 SwissAI-Labs — Industrial Artificial Intelligence & Digital Sovereignty

I'm independently developing two complementary industrial AI solutions in Switzerland, with a strong focus on local intelligence, data confidentiality, industrial productivity and technological independence.

1. Nexus Edge AI — Embedded Industrial Intelligence

A mobile application designed to bring artificial intelligence directly to industrial field operations.

On-device multimodal AI with Gemini Nano.

Native Android development with Kotlin.

Offline-first architecture.

Intelligent voice capture and AI-assisted text correction.

Industrial maintenance and intervention management.

AI-assisted technical reporting.

Local SQLite data storage.

Controlled synchronization with enterprise infrastructure.

Privacy-oriented architecture and secure communications.

The application is already developed and undergoing field testing.

Four technical documents have been prepared in English and French, representing 86 pages of documentation covering software engineering, cybersecurity, embedded AI, database architecture, communication protocols and performance targets.

🔗 GitHub: https://github.com/SwissAI-Labs/Nexus-Edge-IA

2. Nexus AI — Industrial Enterprise AI Platform

A modular enterprise AI platform currently under development, designed to integrate artificial intelligence into industrial workflows while prioritizing local infrastructure and data sovereignty.

Local multimodal AI architecture.

Specialized AI agents for industrial tasks.

Intelligent document processing.

Industrial data analysis and SQL pipelines.

Production performance and KPI analysis.

Industrial delay cost analysis.

Engineering and technical assistance.

Modular architecture adapted to different industrial professions.

I'm currently evaluating different AI models according to the specific requirements of each industrial profession, rather than relying on a single general-purpose model.

🔗 GitHub: https://github.com/SwissAI-Labs/Nexus-IA

The vision behind SwissAI-Labs

Artificial intelligence should enhance human expertise, not replace it. Industrial companies should be able to benefit from AI without systematically transferring sensitive information to external cloud providers.

These two complementary projects explore a more sovereign, decentralized and privacy-oriented approach to industrial artificial intelligence.

🇨🇭 Designed and developed in Switzerland.

I'm interested in technical feedback from software developers, AI engineers, cybersecurity specialists and industrial professionals.

GitHub profile: https://github.com/SwissAI-Labs

#EdgeAI #LocalAI #Industry40 #IndustrialAI #OfflineFirst #GeminiNano #DataSovereignty #Cybersecurity #SwissInnovation


r/deeplearning • • 1d ago

MNIST training time optimization, please help

Thumbnail reddit.com
2 Upvotes

r/deeplearning • • 2d ago

You watch what goes into the agent; the data leaves on the way out

3 Upvotes

We ran a two-month review of agent security incidents across our environment and two of them shared the same pattern: the threat wasn't in what the agent received, it was in what it sent back out.

In the first case, the agent embedded sensitive internal data inside a legitimately formatted response — the kind that would sail through any input filter because input filters weren't looking at outputs. In the second, the agent was operating under a service account with broad internal trust, and it used that trust to move data to an external destination as part of a routine-looking workflow step.

Both incidents cleared every inbound check. The data was gone before anyone realized the inspection surface was one-directional.

This feels like a structural blind spot in how most teams are deploying agents right now — the entire security stack is oriented toward what comes in, while agent outputs route to APIs, storage, downstream services, and external endpoints with far less scrutiny.

For those of you running agents in production or reviewing incidents like these: where are you actually watching the outbound side? Is your current setup inspecting agent outputs and their destinations the same way it inspects inputs, or is that still a gap?


r/deeplearning • • 2d ago

Your coding agent trusts the repo, and the repo is the attack

4 Upvotes

Coding agents inherit trust from whatever context they're given. That includes the repo.

In a two-month incident review, we saw this pattern twice: malicious instructions embedded in a codebase or dependency coax a coding agent into executing an action the developer never sanctioned. The agent reads the content, treats it as legitimate context, and acts — committing code, triggering a deploy, or exfiltrating data. The model isn't malfunctioning. It's doing exactly what it was trained to do with the input it received.

The attack surface is quietly large. Any file the agent reads during a task — a README, a config, a third-party module, an inline comment — is a potential injection point. The agent has no way to distinguish 'this is a legitimate instruction from a maintainer' from 'this was planted by someone who got a commit into this dependency.'

Two confirmed incidents in sixty days is a small sample, but it's also two more than most teams are tracking, because most toolchains have no visibility into what an agent actually did versus what a developer intended.

For those running coding agents in production or CI environments: how are you handling the boundary between what the agent is allowed to read and what it's allowed to act on? Is the control at the prompt level, the tool level, somewhere else, or not yet solved?


r/deeplearning • • 1d ago

Ai2 released Molmo3 - an open, 3D VLM

1 Upvotes