A surfactant-containing cosmetic, dermatological or pharmaceutical composition which comprises at least one water-soluble or water-swellable copolymer obtainable by free-radical copolymerization of A) acryloyldimethyltaurine and/or acryloyldimethyltaurates, B) if desired, one or more further olefinically unsaturated, noncationic, optionally crosslinking comonomers which have at least one oxygen, nitrogen, sulfur or phosphorus atom and possess a molecular weight of less than 500 g/mol, C) if desired, one or more olefinically unsaturated, cationic comonomers which have at least one oxygen, nitrogen, sulfur or phosphorus atom and possess a molecular weight of less than 500 g/mol, D) one or more silicon-containing components capable of free-radical polymerization and having a functionality of at least one, at least one silicon-containing component being a compound selected from the formulae in which f = 2 to 500, in which f = 2 to 500, and in which f = 2 to 500, E) if desired, one or more fluorine-containing components capable of free-radical polymerization and having a functionality of at least one, F) if desired, one or more olefinically mono- or polyunsaturated, optionally crosslinking macromonomers each possessing at least one oxygen, nitrogen, sulfur or phosphorus atom and having a number-average molecular weight of greater than or equal to 200 g/mol, the macromonomers not being a silicon-containing component D) or fluorine-containing component E), G) the copolymerization taking place in the presence of at least one polymeric additive having number-average molecular weights of from 200 g/mol to 10 9 g/mol, selected from polyvinylpyrrolidones, poly(N-vinylformamides), poly(N-vinylcaprolactams), and copolymers of N-vinylpyrrolidone, N-vinylformamide and/or acrylic acid. A) acryloyldimethyltaurine and/or acryloyldimethyltaurates, B) if desired, one or more further olefinically unsaturated, noncationic, optionally crosslinking comonomers which have at least one oxygen, nitrogen, sulfur or phosphorus atom and possess a molecular weight of less than 500 g/mol, C) if desired, one or more olefinically unsaturated, cationic comonomers which have at least one oxygen, nitrogen, sulfur or phosphorus atom and possess a molecular weight of less than 500 g/mol, D) one or more silicon-containing components capable of free-radical polymerization and having a functionality of at least one, at least one silicon-containing component being a compound selected from the formulae in which f = 2 to 500, in which f = 2 to 500, and in which f = 2 to 500, E) if desired, one or more fluorine-containing components capable of free-radical polymerization and having a functionality of at least one, F) if desired, one or more olefinically mono- or polyunsaturated, optionally crosslinking macromonomers each possessing at least one oxygen, nitrogen, sulfur or phosphorus atom and having a number-average molecular weight of greater than or equal to 200 g/mol, the macromonomers not being a silicon-containing component D) or fluorine-containing component E), G) the copolymerization taking place in the presence of at least one polymeric additive having number-average molecular weights of from 200 g/mol to 10 9 g/mol, selected from polyvinylpyrrolidones, poly(N-vinylformamides), poly(N-vinylcaprolactams), and copolymers of N-vinylpyrrolidone, N-vinylformamide and/or acrylic acid.