r/deeplearning • • 14h ago

Blind review exposed how much our rubric depended on the first score

16 Upvotes

We had 480 model outputs reviewed by 3 people, which gave us 1440 total reviews. With prior scores and comments visible on the 2nd and 3rd passes, the report counted 1022 matching judgments across those 1440 reviews. We treated that as solid inter rater agreement and decided the rubric was stable. The scores matched and our human scoring looked calibrated. The agreement chart looked very pleased with itself.

So we reran the same set as a blind review. Matches dropped to 749 and 96 rows showed different readings of the rubric. Watching agreement fall as soon as the prior comments disappeared was a rough meeting. Removing score visibility made reviewer anchoring hard to ignore. Our rubric calibration had trained people to align with an existing judgment and hidden where the criteria were ambiguous. The adjudication queue now holds cases where 1 reviewer marks partial compliance as pass while another marks it as fail. I’m trying to decide whether those 96 rows need rewritten criteria, more calibration examples or fresh reviewers before we trust the next agreement number. 

How are you separating a stable rubric from reviews that only converge after someone sees the 1st score


r/deeplearning • • 1h ago

The Journey into Data Science: Master AI-Assisted Development & Coding (...

Thumbnail youtube.com
• Upvotes

Stop typing boilerplate code and start designing with AI! 🚀

Learn how to optimize your coding workflow with ChatGPT and GitHub Copilot today.

Check out the full guide on my profile!
#AI #Coding #Tech #DataScience


r/deeplearning • • 10h ago

Automatic Model-Agnostic Compression Algorithm

3 Upvotes

I made [Sigularty](https://github.com/DewanshShah/Sigularty), an algorithm that combines multiple compression techniques, takes in any model and chooses which techniques to use, and also finds hyperparameters for a few of the techniques. This is one of my first proper projects, and I would love feedback. It is completely free and open source, and these are a few results the algorithm achieved by itself, without any human fine-tuning

|Model|Acc Drop|Compression Ratio|CQI|Speedup|Size (MB)|Accuracy (%)|Latency (ms)|

|:-|:-|:-|:-|:-|:-|:-|:-|

|`Resnet50`|**2.20%**|**8.00x**|**9.897**|**1.28x**|90.66 -> 11.34|66.60 -> 64.40|6.977 -> 5.451|

|`vit_b_16`|**0.00%**|**4.51×**|**4.526**|**1.00x**|327.59 -> 72.67|77.00 -> 77.00|14.96 -> 14.90|

|`efficientnet_b0`|**2.80%**|**2.61x**|**2.284**|**0.90x**|15.95 -> 6.11|91.80 -> 89.00|8.238 -> 9.124|

|`bert_base`|**4.20%**|**6.61x**|**6.449**|**1.02x**|417.66 -> 67.17|86.20 -> 82.00|10.393 -> 10.209|

|`distilbert`|**5.60%**|**9.55x**|**7.049**|**0.78x**|255.42 -> 26.75|82.40 -> 76.80|5.441 -> 6.957|

|`distilgpt2`|**0.00%**|**2.00x**|**2.903**|**1.45x**|312.48 -> 156.24|87.20 -> 87.20|8.559 -> 5.896|


r/deeplearning • • 7h ago

Self Improvement for AI

Thumbnail
1 Upvotes

r/deeplearning • • 8h ago

why a compressor's error can tell you where data came from

1 Upvotes

I wrote a short technical report and then animated it, hoping it's useful to people learning about autoencoders, OOD detection, or mixture-of-experts.

The idea in three steps:

  1. Prediction ⇔ compression. A model that predicts text well can compress it well.
  2. Corollary: a compressor is only good at the kind of data it was trained on.
  3. So its reconstruction error is a fingerprint. I trained an autoencoder on code that squeezes 512 tokens into 8 vectors. It rebuilds unseen code at 99.47% exact-token accuracy, Wikipedia at 47.76%, and random tokens at 0.57%.

That fingerprint can act as a router between expert models, with no extra gating network to train.

Video: https://www.youtube.com/watch?v=4UhvpIWnOvg Paper: https://arxiv.org/abs/2512.16963


r/deeplearning • • 17h ago

TempoPFN: Synthetic Pre-training of Linear RNNs for Zero-shot Time Series Forecasting [R]

Post image
3 Upvotes

r/deeplearning • • 20h ago

Stationary Alone, Drifting TogetherAdapting to interaction-mediated nonstationarity in multi-agent reinforcement learning.

Enable HLS to view with audio, or disable this notification

6 Upvotes

r/deeplearning • • 23h ago

Table detection/structure recognition in PDFs with classical CV only (morphology + LSD, no DL) – open source, looking for feedback & contributors

7 Upvotes

Hey all. I've been working on table extraction from PDFs without any deep learning, and finally open-sourced it. Thought this sub might find the approach interesting (or tear it apart, which is also useful).

The pipeline, roughly:

- Bordered tables: morphological opening with long horizontal/vertical kernels to isolate ruling lines, then contour analysis on the line mask to find table regions.

- Borderless tables: detected from text alignment instead. Words are grouped into phrases and checked for left/centre/right alignment across consecutive lines. When enough rows and columns line up, I draw "pseudo-boundaries" onto the image so the rest of the pipeline treats it like a bordered table.

- Structure: text is masked out first, then LSD (Line Segment Detector) finds segments, which are clustered and merged into a grid. A spanning cell is recovered from missing line segments: if a separator is absent across part of the grid, those cells merge (union-find over the cells).

- Text: for digital PDFs, characters come straight from the PDF text layer and are mapped onto the cell grid, so there are no OCR errors on part numbers. OCR (Tesseract or a plugin engine) only runs on scanned pages.

- Post-processing: nested header detection, key-value vs normal table classification, and merging tables that continue across pages (by matching column widths and headers).

Everything runs on CPU, roughly 0.3–1.5 s/page on a laptop, and every decision traces back to a threshold you can inspect. All pixel thresholds are defined at 300 DPI and scale with resolution.

Where it struggles:

- skewed scans (no de-skewing yet; the line detector only tolerates ~2 px of drift)

- small borderless blocks where a header row can be mistaken for key-value pairs

- wrapped text in borderless cells sometimes splits into extra rows

Contributions very welcome. MIT licensed, no need to ask first, just fork and PR. Some things I'd love help with:

- de-skew estimation (Hough/projection-based) before detection

- evaluating on ICDAR 2013 / PubTables-1M / FinTabNet with GriTS or TEDS; I don't have a proper benchmark yet, and that's the biggest gap

- better row reconstruction for borderless tables with wrapped cells

- plugging in other OCR engines (there's a plugin interface + EasyOCR example)

Repo: https://github.com/shlok-n/spartan · pip install spartan-tables


r/deeplearning • • 14h ago

From AI anxiety to building my first AI-powered iOS app

Thumbnail
1 Upvotes

r/deeplearning • • 13h ago

Week in review: Hidden implant in Ledger wallets linked to $93M theft, 1,500+ npm packages exposed

0 Upvotes

Over 1,500 npm packages were compromised in a supply-chain attack last week, according to Help Net Security. One infected dependency is enough to execute arbitrary code. AI coding agents and automated pipelines pull these packages as trusted dependencies during normal operation. When an agent installs or executes a tampered package, the payload runs with full session permissions. The agent does not know the package is malicious. The tool call that fetches the dependency is the attack surface.

This is no longer just a developer workstation problem. Autonomous agents run these installs without a human in the loop, at scale, across environments.

How are teams actually handling package execution trust in their agent pipelines right now? Allowlists, sandboxing, something else?


r/deeplearning • • 19h ago

Se você se acha inútil, lembre-se disto:

1 Upvotes

Treinei dois modelos de machine learning:

​Um classificador de sentimentos (positivo, negativo e neutro)

​Um classificador de idiomas com suporte para 59 línguas

​O detalhe? Não lembro a acurácia de nenhum dos dois e ainda perdi o dataset que usei. 🤡

​👉 Acesse os modelos aqui:

​🔗 Classificador de Sentimentos: https://huggingface.co/Rafaelvieira432/LANG-10M

​🔗 Classificador de Idiomas (59 línguas): https://huggingface.co/Rafaelvieira432/SENTIMENT-21M


r/deeplearning • • 20h ago

Local LLMs and LLM Deployment

Thumbnail youtube.com
1 Upvotes

r/deeplearning • • 1d ago

One reference image, any pose: a 6.3M-param network drawing a cartoon character it never trained on (code, weights, live demo)

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/deeplearning • • 1d ago

GPT-2 KV caching experiment: 1,000x fewer estimated FLOPs, about 6x lower per-token latency

1 Upvotes

I implemented GPT-2 small and KV caching in PyTorch to connect the maths with actual inference measurements. I have written up the experiment as the first post on my new blog.

Setup: NVIDIA A40, fp32 with TF32 disabled, batch size 1, greedy decoding, CUDA synchronization around timings, median of five runs per context length. Pretrained weights were loaded and logits checked against Hugging Face; cached and uncached greedy output matched over 200 tokens.

At context length 1,000, my FLOP estimate falls by 1,000x, while per-token latency goes from 29.69 ms to 4.95 ms. Generating 1,016 tokens takes 14.66 s versus 5.03 s. The cached latency is roughly flat, so I want to profile the remaining overhead rather than assume the cause.

The post also covers why a wrong cache order can pass single-token tests, and how a cuBLAS workspace contaminated my memory baseline. After warmup, requested KV bytes match 72 KiB/token; allocator block sizes still produce a separate hump.

Post: https://angry-kratos.github.io/posts/2026-10-kv-cache/

Code: https://github.com/angry-kratos/angry-kratos.github.io/tree/main/code/kv-cache

I am the author and would welcome methodological criticism. What profiling experiment would you prioritize to separate CPU/kernel-launch overhead from GPU memory traffic here? AI assistance was used for editing and tooling; this is an educational experiment, not a claim of a new caching algorithm.


r/deeplearning • • 1d ago

Training GPT2 on my Golf Simulator Machine

Thumbnail
0 Upvotes

r/deeplearning • • 1d ago

The idea behind Adam Optimizer

Thumbnail youtube.com
22 Upvotes

Hi all! I'm AI engineer. This is the first video on my channel. I tried to build Adam from scratch, motivating each step by a concrete problem of the previous one: plain GD, Nesterov, AdaGrad, RMSProp ...

All animations are made with Manim. I'd really appreciate feedback, especially on anything that's mathematically imprecise or unclear.


r/deeplearning • • 1d ago

How it works

Thumbnail gallery
0 Upvotes

r/deeplearning • • 1d ago

Why are scalograms smooth? A complete comparison between real and complex wavelets #wavelet #morlet #dualltree #...

Thumbnail youtube.com
1 Upvotes
  • Description: This video explains why the Morlet wavelet produces a smooth energy map based on the principles of phase and amplitude. It also provides a concise overview of the characteristics, applications, and history of real and complex wavelets.

r/deeplearning • • 1d ago

Frontier AI Broke the Vulnerability Math - Security Boulevard

0 Upvotes

Traditional security math assumes you can stack independent controls and multiply down the risk. Frontier AI broke that assumption.

When a large model processes a request, it pulls context from whatever retrieval layer is in scope — documents, records, API responses — including fields that were never supposed to leave their origin system. The model has no concept of data classification. A social security number and a product SKU look identical to it. Output can contain that field verbatim, paraphrased, or reconstructed from inference. None of those surface reliably in DLP rules built for exact-match or structured-transit detection.

Security Boulevard covered the underlying shift this week: AI systems do not fit the attacker-defender math that security teams have built their models on. A single node that is simultaneously a data aggregator, a reasoning engine, and an unstructured output channel breaks the independence assumption that makes multiplicative risk reduction work. Teams running AI in production with real customer data are discovering control blind spots they did not know existed.

For those actually operating AI pipelines with sensitive customer data: where in the stack are you catching PII that enters model context through retrieval? Pre-inference, post-inference, somewhere else entirely — and are your current tools even visible to the model's output stream?


r/deeplearning • • 1d ago

[R] SANATAN ATTENTION: No Growing KV cache (Standard Attention issue), no context decay (Mamba Issue) binary gate hiding inside i² = −1

Post image
0 Upvotes

The idea in one paragraph: over 2x2 real matrices, i² = −1 has two orthogonal solutions, rotation by +90 and −90 degrees:

i₊ = [[0, −1], [1, 0]], i₋ = [[0, 1], [−1, 0]]

Square either one and you get [[−1, 0], [0, −1]] = −I, so both are genuine square roots of minus one. Their combination is

S(θ) = cosθ · i₊ + sinθ · i₋ = [[0, −(cosθ − sinθ)], [cosθ − sinθ, 0]]

whose off-diagonal entry is

±(cosθ − sinθ)

That ± in front is a binary object sitting inside a smooth formula. SANATAN promotes it into an explicit soft variable:

r = tanh( γ ( cos(θ+ω) − sin(θ+ω) ) ) ≈ ±1

Each token projection u becomes an angle θ = π·u / (1 + |u|), every feature dimension softly picks a root, and the six-channel feature map

Φ(x) = [ 1, cosθ, sinθ, r, r·cosθ, r·sinθ ]

makes the attention score factorize exactly:

⟨Φ(q), Φ(k)⟩ = (1 + r_q r_k)(1 + cos Δθ)

a per-dimension parity gate (0 or 2 for hard roots) times an angular similarity. The GIF above walks through it step by step.

Because the score is an inner product, the p=1 case runs as an exact recurrence with a constant-size state, no KV cache and no decay:

S_t = S_{t−1} + Φ(k_t) v_tᵀ, z_t = z_{t−1} + Φ(k_t), out = ⟨Φ(q), S⟩ / ⟨Φ(q), z⟩

What I measured (184M params, single seeded held-out protocol):

- The recurrence is exact in practice, not just on paper: parallel and recurrent computation of the trained model agree within 1e-4 nats (float32). There is a demo notebook that reproduces this on CPU in about two minutes on a small model (agreement ~4e-6 per logit).

- Quality survives the constant state: 3.951 held-out loss recurrent vs 3.966 for its full parallel parent, via a two-stage recipe (sharpened pretraining, brief p=1 adaptation). Deploying p>1-trained models through the recurrence costs ~5 nats, so that path is dead and the paper says so.

- Decode: fixed 14.4 MB state vs a KV cache that hits 2.4 GB at 32K context; 0.153 ms/token flat vs 0.49 to 7.3 ms/token for softmax decoding (3.2x to 48x from 1K to 32K).

- Ablation: the root-parity gate is worth +0.53 nats over the same angular kernel without it.

Paper (PDF): https://github.com/bhargavpatel431997/sanatan-attention/blob/main/paper/sanatan_v2.pdf

Code + runnable demo notebook: https://github.com/bhargavpatel431997/sanatan-attention

Visual explainer of the idea: https://github.com/bhargavpatel431997/sanatan-attention/blob/main/docs/MOTIVATION.md

Independent researcher, single GPU/TPU budget, so critiques and pointers are genuinely welcome, especially from anyone who has tried interaction-level gating inside linear attention before.

Thanks for reading,

Bhargav Patel

https://www.linkedin.com/in/bhargav-patel-63bb27121/


r/deeplearning • • 2d ago

Mamba2-8B compression research series: 27.18 MiB recurrent cache or 3.141 GB stored model data

Thumbnail
4 Upvotes

r/deeplearning • • 2d ago

Neural Networks Are Already Clean -- A Paradigm Shift in Interpretability Research (with interactive visualizations)

Thumbnail already-clean.goodfire.com
3 Upvotes

r/deeplearning • • 3d ago

Why are people so excited about diffusion LMs? What am I missing?

15 Upvotes

I understand the basic idea of generating text through iterative refinement instead of predicting every next token sequentially. It sounds interesting

But when it comes to reasoning. I am not fully convinced.

Autoregressive LLMs can already use chain of thought, RL, multiple sampling attempts and additional test-time compute to improve their answers. What does diffusion fundamentally give us that these models can not achieve?

Is the real advantage better reasoning through global refinement, faster inference, or something else entirely?

I can see the appeal for code, infilling, and structured generation, but I'm curious whether people expect diffusion LMs to beat autoregressive models at general reasoning, too.

Would love to hear arguments from both sides, especially from people who have actually experimented with these models.


r/deeplearning • • 2d ago

I Finished This Book In April. The Story Didn't Wait

0 Upvotes

A Forbes analysis published this week found that 79% of organizations are running AI agents in production. Only 2% have identity security tooling to govern them.

That 77-point gap is not a planning failure. It is the normal operational state of enterprise AI right now. Most of those agents carry no declared identity, no defined behavioral scope, and no path to revoke access when something goes wrong. They are already running on production systems that nobody officially registered them to touch.

Shadow IT has always existed. But a misconfigured server sits still. An agent with live access to production data does not.

The discovery problem is upstream of everything else. You cannot scope, audit, or revoke what you have not cataloged. Security teams are already stretched before you add the question of finding agents that were never surfaced through any approval process.

For those of you actually working on this: how are you finding the unsanctioned ones? IAM log analysis, network traffic inspection, developer surveys, something else entirely? And how confident are you that your current method catches agents that were spun up outside the normal provisioning path?


r/deeplearning • • 2d ago

Looking for ImageCLEF 2021 DrawnUI Wireframe Dataset

1 Upvotes

Hello everyone!
We are a group of female Computer Science students working on our graduation project.
We are having difficulty finding suitable datasets to train a YOLO model.
We found a dataset called **ImageCLEF 2021 DrawnUI Wireframe Datase https://www.aicrowd.com/challenges/imageclef-2021-drawnui-wireframe?utm\\_source=chatgpt.com\*\*
but unfortunately, it is no longer available for download
**Does anyone have access to this dataset or know how we can obtain it?**
We need it for research purposes only.
Thank you so much to anyone who can help us! ❤️