学习大规模模加法的辅助模数
Learning Large-Scale Modular Addition with an Auxiliary Modulus
AI总结:
本文提出一种无协变量偏移的模加法学习方法,通过引入辅助模数降低循环频率,提升学习效率和准确性,实验显示在大规模输入和大模数下表现优异。
摘要:
学习奇偶函数,即更一般的模加法,是一个具有挑战性的机器学习任务,因其输入敏感性。最近的研究在求和项数量和模数方面显著扩展了模加法学习。其关键思想是增加训练序列中的零,减少有效求和项数量,从而控制训练难度;然而,这会引发训练和测试输入分布之间的协变量偏移。本研究理论和经验分析了这一副作用,并提出一种无协变量偏移的模加法方法。具体来说,我们在训练期间引入辅助模数Kq,这降低了循环频率和问题难度,同时保持训练和测试的输入分布相同。实验表明,该方法具有强扩展性和样本效率:即使在大输入长度N、大模数q和小数据集的情况下,该方法也能达到相等或更好的匹配准确率和放松的τ准确率。例如,在N=64和q=974269时,我们的方法在100K样本上达到97.0%的τ准确率(τ=0.05),而稀疏方法仅能达到9.5%(相同数据量)甚至扩展到1M样本时为93.9%。
英文摘要:
Learning parity functions, more general modular addition, is a challenging machine learning task due to its input sensitivity. A recent study substantially scaled modular addition learning in both the number of summands and the modulus. Its key idea is to increase zeros in training sequences, reducing the effective number of summands and thus controlling training difficulty; however, this induces covariate shift between training and test input distributions. This study theoretically and empirically analyzes this side effect and proposes a covariate-shift-free method for modular addition. Specifically, we introduce an auxiliary modulus $Kq$ during training, which reduces wrap-around frequency and problem difficulty while preserving the same input distribution across training and testing. Experiments show strong scalability and sample efficiency: even for large input length $N$, large modulus $q$, and small datasets -- where the sparse method fails to learn -- our method achieves equal or better match accuracy and relaxed $τ$-accuracy. For example, at $N=64$ and $q=974269$, our method trained on 100K samples achieves $97.0\%$ $τ$-accuracy at $τ=0.05$, while the sparse method achieves only $9.5\%$ with the same data size and $93.9\%$ even when extended to 1M samples.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。