Even as many agency executives insist that their companies are still the best place for creative minds to shine, they are finding it more difficult to maintain their ranks. Turnover at advertising agencies is higher than in competitive industries like technology and management consulting, and the gap increased 10 percent in the last year, according to a study from LinkedIn and the 4A’s.

A lot is at stake: If agencies cannot recruit and retain top young talent, the craft of traditional advertising — an important part of culture for better or worse — could disappear.

“We have to fill the pipeline with young talent,” said Tony Weisman, chief executive in North America for the agency DigitasLBi. If agencies fail to recruit and keep top young employees, he said, “We’re going to become archaic.”

Losing young talent is a problem other industries face as well. Established news organizations are losing people to relatively new outfits like Vice and BuzzFeed. Investment banks like Goldman Sachs and Bank of America have made sweeping changes to their junior-banker programs in part because ambitious college graduates were turning to Silicon Valley.

But while Wall Street can match the pay at places like Google and Facebook, advertising agencies cannot. So instead, they are trying to match some of the perks.

The creative agency Deutsch offers free snacks and a barista at its New York office and free lunch at its Los Angeles office, moves that Mike Sheldon, the agency’s chief executive in North America, said were modeled after Google. The agency also provides yoga classes, boot camp workout classes and wine tastings. The agency Ogilvy & Mather has beers on the first Friday of every month. McCann allows employees to brew their own beer that is then named after clients. One, named for the military contractor Lockheed Martin, is called Stealth Stout.

Some agencies are also revamping their offices to look more like start-ups, with open seating plans and plush chairs. The agency BBDO has created a separate space in its New York office, called Xlab, where restless minds can experiment with virtual reality and drones. (In a bit of a twist, BBDO also happens to be behind the General Electric campaign aimed at getting young people to work for the company.)