Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137684 | A security flaw has been discovered in eosphoros-ai DB-GPT up to 0.8.3. This affects the function editor_sql_run of the file packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/editor/api_editor_v1.py of the component Editor SQL Run API. Performing a manipulation of the argument db_name results in authorization bypass. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. The pull request to fixCVSS 8.7CVE-2026-137992 | libexpat through 2.11.0 contains a denial of service vulnerability in defineAttribute() of lib/xmlparse.c that fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. Attackers can supply a crafted XML document with repeated ATTLIST declarations in an internal DTD subset to cause quadratic CPU consumption in storeAtts() during parsing.CVSS 8.5CVE-2026-137994 | Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a or element attribute that resolveUa passes to pickle.loads, executing code with user privileges when the outline is opened.CVSS 7.0CVE-2026-137995 | FOG Project before 1.6.0.119 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain host tokens from status/hostgetkey.php by supplying a host MAC address. Attackers can present the token to service/hostinfo.php to retrieve decrypted Active Directory join credentials and Windows product keys during deployment windows.CVSS 6.8CVE-2026-137996 | Zettlr before 4.11.0 fails to validate URI schemes in Markdown link targets, allowing attackers to launch arbitrary registered protocol handlers via Electron shell.openExternal without confirmation. Attackers can craft documents whose Ctrl/Cmd-clicked links use smb:// to leak NTLM credential hashes on Windows or invoke custom protocol handlers with attacker-controlled parameters.CVSS 8.5CVE-2026-137997 | HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.CVSS 8.5CVE-2026-137998 | Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.CVSS 8.5CVE-2026-137999 | JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated __init__ signature, executing injected code when the generated module is imported.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Adam: The Optimization Algorithm That Made LLMs Practical

Hello, I'm Shrijith Venkatramana. I'm building git-lrc, an AI code reviewer that runs on every commit. Star Us to help devs discover the project. Do give it a…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 8 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

Hello, I'm Shrijith Venkatramana. I'm building git-lrc, an AI code reviewer that runs on every commit. Star Us to help devs discover the project. Do give it a try and share your feedback for improving the product.






Without Adam, there's a good chance ChatGPT, Claude, Gemini, Llama, and many of today's large language models would have taken much longer to become reality.



When people talk about the breakthroughs behind modern AI, they usually mention the Transformer, attention, GPUs, or massive datasets.



Rarely does anyone mention the optimizer.



Yet every single gradient update during the training of a modern LLM depends on an optimization algorithm deciding how much every parameter should change. With billions of parameters and trillions of training tokens, that decision becomes one of the most important engineering problems in machine learning.



One optimizer, proposed in 2014, ended up becoming the default choice across much of deep learning:



Adam (Adaptive Moment Estimation).



Let's explore why.






Before Adam: Why Training Neural Networks Was So Difficult



Imagine you're hiking down a mountain in dense fog.



You can only see the slope directly beneath your feet.



The obvious strategy is simple:




Take one step downhill.




This is essentially what gradient descent does.



For a neural network, the gradient tells us which direction reduces the loss.



The update rule is simply:



[

\theta = \theta - \eta \nabla L

]



where





  • θ = model parameters


  • η = learning rate


  • ∇L = gradient



Simple.



Unfortunately, real neural networks don't resemble smooth mountains.



Instead, they're more like:




  • steep cliffs

  • long narrow valleys

  • flat plateaus

  • noisy terrain

  • millions—or billions—of dimensions



The gradient also changes every mini-batch because we only compute it on a small sample of data.



This leads to stochastic gradient descent (SGD).



Instead of walking smoothly downhill, it's like trying to descend while someone randomly shakes the mountain beneath you.





Momentum: Giving Optimization Some Inertia



Researchers realized that humans don't instantly stop and change direction every step.



Instead, we build momentum.



Optimization borrowed the same idea.



Instead of only following today's gradient, momentum also remembers previous gradients.



Imagine pushing a heavy shopping cart.



If you push in roughly the same direction repeatedly, it builds speed.



Small bumps don't immediately change its path.



Mathematically,



[

v_t=\beta v_{t-1}+(1-\beta)g_t

]



where




  • (g_t) is today's gradient

  • (v_t) is the accumulated velocity



Now updates become



[

\theta=\theta-\eta v_t

]



This smooths noisy updates and helps escape shallow local irregularities.



Momentum was already a huge improvement.



But another problem remained.





Different Parameters Learn at Different Speeds



Suppose you're training a neural network with 500 million parameters.



Some parameters receive gradients like




0.00002





Others receive gradients like



45





Using one global learning rate becomes problematic.



If the learning rate is large enough for tiny gradients...



...the large gradients explode.



If it's safe for the large gradients...



...the tiny gradients barely move.



It's like paying every employee in a company exactly the same bonus regardless of performance, seniority, or role.



Some people are overpaid.



Others barely notice the reward.



Optimization needs to adapt individually.



This insight led to algorithms like AdaGrad and RMSProp.



Adam combined the best ideas from both.





Adam: Combining Momentum and Adaptive Learning Rates



In 2014, Diederik P. Kingma and Jimmy Ba introduced Adam in the paper:




Adam: A Method for Stochastic Optimization




The idea is beautifully elegant.



Adam maintains two running statistics for every parameter.



First moment



The average gradient.



Think of this as momentum.



[

m_t

]



Second moment



The average squared gradient.



Think of this as measuring how "volatile" or "uncertain" this parameter's updates have been.



[

v_t

]



The update becomes approximately



[





\theta





\theta



\eta

\frac{m_t}

{\sqrt{v_t}+\epsilon}

]



This produces a fascinating behavior.



If a parameter consistently receives huge gradients,



its denominator becomes larger,



making future updates smaller.



If another parameter rarely changes,



its denominator stays small,



allowing relatively larger updates.



Every parameter effectively receives its own personalized learning rate.





A Back-of-the-Envelope Example



Suppose two parameters have identical momentum:



Parameter A

Average gradient = 2
Average squared gradient = 100







Parameter B

Average gradient = 2
Average squared gradient = 4





Ignoring ε,



Parameter A updates by



2 / √100 = 0.2





Parameter B updates by



2 / √4 = 1





Even though both gradients are identical today,



Adam trusts Parameter B much more because its historical variance is lower.



This automatic scaling is one reason Adam trains deep networks so effectively.





Why Bias Correction Exists



There's one subtle issue.



At the beginning of training,



both moving averages start at zero.



That means early estimates are biased toward zero.



Kingma and Ba introduced bias correction:



[





\hat m_t



\frac{m_t}

{1-\beta_1^t}

]



and



[





\hat v_t



\frac{v_t}

{1-\beta_2^t}

]



These corrections rapidly remove the startup bias.



It's a small mathematical trick that has a surprisingly large practical impact during the first optimization steps.





Why Adam Became So Important for Deep Learning



Consider training GPT-style models.



Modern LLMs easily contain




  • 7 billion parameters

  • 70 billion parameters

  • over a trillion parameters in some research systems



Every optimization step updates every trainable parameter.



Even a modest training run might execute hundreds of thousands of optimization steps.



That means Adam performs on the order of



billions of parameters
×

hundreds of thousands of updates





resulting in quadrillions of parameter update decisions over the course of training.



Without stable optimization,



training would often diverge.



Learning would become painfully slow.



GPU time—costing thousands or even millions of dollars—would be wasted.



Optimization isn't merely a mathematical curiosity.



It's an operations and economics problem.



A 10% improvement in convergence speed on a multi-million-dollar training run can translate into hundreds of thousands of dollars in savings, shorter experimentation cycles, and faster scientific progress. Faster convergence also means researchers can iterate on model architectures more quickly, reducing the opportunity cost of long training jobs.



Adam became popular because it usually works well with relatively little hyperparameter tuning.



Researchers could spend less time adjusting learning rates and more time exploring new model architectures.



That practicality accelerated progress across computer vision, speech recognition, recommendation systems, and eventually large language models.





Adam Isn't Perfect



As influential as Adam has been, researchers have also identified limitations.



Some studies found that vanilla stochastic gradient descent can produce models that generalize better on certain vision tasks.



Others observed convergence issues under specific theoretical settings.



As LLMs grew larger, practitioners developed variants such as:




  • AdamW (decoupled weight decay)

  • AdaFactor (reduced memory footprint)

  • Lion (sign-based optimization)



In fact, many modern Transformer implementations train with AdamW, which separates weight decay from Adam's adaptive updates and often improves regularization.



Engineering rarely ends with one perfect algorithm.



Instead, progress comes through continual refinement.





The Bigger Lesson



When the Transformer paper appeared in 2017, attention deservedly captured the headlines.



But Transformers alone weren't enough.



Modern deep learning stands on layers of innovations:




  • better hardware

  • larger datasets

  • improved initialization

  • normalization methods

  • residual connections

  • efficient optimizers



Adam is one of those foundational technologies.



It's rarely discussed outside machine learning circles, yet it quietly powers the optimization of billions of parameters every day.



Sometimes the biggest breakthroughs aren't new model architectures.



Sometimes they're simply better ways of taking the next step downhill.



Did Adam fundamentally change deep learning, or was it simply the optimizer that happened to arrive at the right time?



I'd love to hear your thoughts—and if you've trained neural networks yourself, have you ever switched away from Adam and seen better results?





*AI agents write code fast. They also silently remove logic, change behavior, and introduce bugs -- without telling you. You often find out in production.



git-lrc fixes this. It hooks into git commit and reviews every diff before it lands. 60-second setup. Completely free.*



Any feedback or contributors are welcome! It's online, source-available, and ready for anyone to use.







GitHub logo

HexmosTech
/
git-lrc



Free, Micro AI Code Reviews That Run on Git Commit












GenAI today is a race car without brakes. It accelerates fast -- you describe something, and large blocks of code appear instantly. But AI agents silently break things: they remove logic, relax constraints, introduce expensive cloud calls, leak credentials, and change behavior -- without telling you. You often find out in production.


git-lrc is your braking system. It hooks into git commit and runs an AI review on every diff before it lands. 60-second setup. Completely free.


In short, git-lrc helps Prevent Outages, Breaches, and Technical Debt Before They Happen


At a glance: 10 risk categories · 100+ failure patterns tracked · every commit…




Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar & Graph

CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

2 Cluster
2 Quellen
CVE-2026-93653 | Red Hat Enterprise Linux/Hardened Images Splash Backend tilingPatternFill denial of service (EUVD-2026-82931)
VulDB Updates vor 47 Min.
1 weitere Quelle
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Adam: The Optimization Algorithm That Made LLMs Practical

Thematisch verwandte Begriffe: Adam, Optimization, Algorithm, That · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag