Associated to an algebraic curve X, there are two canonically constructed homologically trivial algebraic 1-cycles, the Ceresa cycle in the Jacobian of X, and the Gross-Kudla-Schoen modified diagonal cycle in the triple product X×X×X. By a result of Shou-Wu Zhang, one is torsion if and only if the other is. In this paper, we prove that these two cycles associated to a large family of modular curves are non-torsion in the corresponding Chow groups. We obtain the result by relating this problem to the study of special cycles on orthogonal Shimura varieties. As the main ingredient and a result of independent interest, we develop a pullback formula for special divisors on modular curves embedded in their products via the diagonal map.