Kairos:面向适用于所有模态的字节级基础模型
Kairos: Toward a Byte-Level Foundation Model for Every Modality
AI总结:
Kairos结合多种技术构建字节级基础模型,通过收敛性检查验证其可优化,计划后续预训练解决泛化等问题,代码与Python包已公开。
摘要:
在单台本地机器上训练的小型语言模型几乎没有架构试错的空间。Kairos结合了双向门控DeltaNet线性注意力、基于共享投影的滑动窗口注意力(LiZAttention2)、分块注意力残差聚合、稀疏混合专家(MoE)前馈层以及多尺度字节级编解码器,在文本、图像、音频、视频、激光雷达和控制流共享的单字节空间上,采用均匀噪声去噪目标进行训练;本报告先探究该组合是否能优化,再探究其是否有用。我们为每个组件提供了源自代码的算法,包括跨会话循环状态记忆门,随后开展收敛性合理性检查:在1至15M参数下,仅针对文本,对单个440字节的句子过拟合,针对编解码器和注意力选择设置3个随机种子,对另外7个因素进行单轮扫描。测试的两种注意力变体(LiZAttention2和单独的窗口注意力)在3000步时达到约10^-3的最小损失。在600步后,平均最小损失范围为0.018(patch编解码器)至0.354(深度卷积编解码器),且在3个随机种子上排名一致。共享注意力投影相较于单独投影的明显优势会随步数增加或数据更丰富而消失,当投影冻结时会反转:这是收敛速度效应,而非容量效应。这些检查表明该实现可优化,但未涉及泛化、多模态训练或与现有模型的比较,计划中的预训练运行旨在解决这些问题。讨论部分从分析角度估算了总规模200M/激活25M的目标,其所有吞吐量数值均未经过测量。代码可在该https URL获取,Python包可在该https URL获取。
英文摘要:
Small language models trained on a single local machine leave little room for architectural trial and error. Kairos combines bidirectional gated-DeltaNet linear attention and sliding-window attention over shared projections (LiZAttention2), block-wise Attention-Residual aggregation, a sparse Mixture-of-Experts (MoE) feed-forward layer and a multi-scale byte-level codec, trained with a uniform-noise denoising objective over one byte space shared by text, image, audio, video, lidar and control streams; this report asks whether the combination optimizes at all before asking whether it is useful. We give code-derived algorithms for each component, including a cross-session recurrent-state memory gate, then run convergence sanity checks: overfittinga single 440-byte sentence at 1--15M parameters, text only, with three seeds for codec and attention choices and single-run sweeps for seven further factors. The two attention variants tested at 3\,000 steps (LiZAttention2 and window attention alone) reach a minimum loss near $10^{-3}$. After 600 steps, the mean minimum loss ranges from 0.018 (patch codec) to 0.354 (depthwise convolutional codec) with an identical ranking on three seeds. An apparent advantage of shared over separate attention projections closes with more steps or more diverse data and reverses when the projections are frozen: it is a convergence-speed effect, not a capacity effect. These checks suggest that the implementation optimizes; they say nothing about generalization, multimodal training or comparison with existing models, which a planned pretraining run is meant to address. The Discussion sizes a 200M-total/25M-active target analytically; none of its throughput figures is measured. Code is available at https://github.com/fabienfrfr/Kairos . Python package at https://pypi.org/project/kairos-fm/ .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。