Humans exhibit remarkable compositional reasoning by integrating knowledge from various sources.New research explores whether Transformers can replicate this skill.The study introduces a synthetic learning task called FTCT.Transformers demonstrate the ability to perform compositional reasoning on FTCT by integrating knowledge fragments.