A small cluster of artificial-intelligence stocks has become the engine of the U.S. stock market — and that narrowing leadership is drawing uneasy comparisons to the dot-com bubble of the late 1990s.

According to Yahoo Finance, market data shows AI stocks are driving nearly all of the S&P 500's gains. In other words, the headline index can look healthy on the surface while the strength underneath comes from a handful of names rather than a broad rally across the market.

A separate Yahoo Finance report frames the bigger worry: as market leadership narrows to fewer and fewer AI-related companies, analysts are reaching for the dot-com comparison. During that earlier era, soaring valuations concentrated in a thin slice of technology stocks eventually gave way to a sharp correction.

The concern isn't simply that AI stocks have risen. It's the concentration. When most of an index's gains depend on a few companies, the whole market becomes more exposed to any stumble in that group. Strength that looks like a rising tide can turn out to be a few tall ships — and if they take on water, the index they're propping up can fall with them.

Neither report, as presented, declares that a bubble exists or predicts a crash. The comparison is a caution flag raised by observers watching how lopsided the market's gains have become, not a verdict.

Why it matters: when the value of a major index leans this heavily on one theme, ordinary investors and retirement savers can be far more exposed to an AI-sector downturn than a glance at the headline numbers would suggest.