每日基础课

← 返回日报
基础知识 第一则

Cross-Attention:今天真正弄懂

先记住

先记住:一句话定义 + 一句记忆口诀

通俗讲解

一句话定义:Cross-Attention(交叉注意力)是一种让“序列 A”拿着自己的需求,去“序列 B”里动态检索并提取相关信息的机制。

生活类比: 你在做一道菜(模态 A,比如音频),手里有一张“缺料清单”(Query)。你跑到调料仓库(模态 B,比如视频)里,对照着清单去货架标签(Key)上逐个比对,找到最匹配的调料实物(Value)拿回来用。你的产出依然是一道菜,但融入了仓库里的精华。

核心公式: $$\text{Attention}(Q_A, K_B, V_B) = \text{softmax}\left(\frac{Q_A K_B^T}{\sqrt{d_k}}\right) V_B$$

符号逐个拆解: - $Q_A$(Query,查询向量):来自模态 A(或序列 A),代表“我想找什么”。 - $K_B$(Key,键向量):来自模态 B(或序列 B),代表“我这里有什么索引标签”。 - $V_B$(Value,值向量):同样来自模态 B,代表“我这里的具体内容信息”。 - $d_k$:Query 和 Key 的特征维度,除以 $\sqrt{d_k}$ 是为了防止点积数值过大导致 softmax 梯度消失。 - $\text{softmax}(\dots)$:计算 $Q_A$ 和所有 $K_B$ 的匹配度,生成归一化的权重得分(加起来为 1)。 - 输出结果:形状与 $Q_A$ 的时间序列长度完全一致,但内容已经融合了模态 B 的特征。

解决的问题与“没有它会怎样”: - 解决的问题:两个序列长度不同、模态不同(比如 100 帧的视频和 1600 帧的音频),如何精细对齐。 - 没有它会怎样:只能把音频和视频粗暴地做全连接拼起来(Concat)或者按元素相加。这要求两边强行等长,不仅丢失模态间的时序动态对应,还会引入大量无关噪声。

在音视频理解与说话人日志中的实际用法: 1. 音视频发声人定位(Active Speaker Detection):音频特征作为 $Q_A$,候选人脸图像特征作为 $K_B, V_B$。音频拿着当前声音去匹配画面中哪张脸的唇动最符合,输出该人脸的视觉增强表征。 2. 说话人日志(Speaker Diarization / TS-VAD):预设的说话人声纹 profile(或目标说话人 Query)作为 $Q_A$,混合音频的时序特征作为 $K_B, V_B$。模型通过 Cross-Attention 查询“当前说话人在混合音频的哪些时刻开过口”。 3. 想深入实操多模态:在 *Hugging Face Multimodal Tasks* 中可以看视频与音频的实际预处理与联合推理流程;而理解跨模态特征在投影前如何先对齐,可以参考 *Lil’Log:对比学习* 的思路。

先想再展开答案
Q 和 K、V 来自不同模态还是相同模态?
来自不同模态(或不同序列)。Q 来自主导模态/需求方,K 和 V 来自被检索模态/信息提供方。
Cross-Attention 的计算结果,形状和谁保持一致?
和 Query(Q)的 Batch 大小与序列长度保持一致。
公式里为什么除以 $\sqrt{d_k}$?
缩放点积数值,防止维度较大时点积结果过大导致 Softmax 梯度饱和(梯度消失)。
发展脉络 · 现状 · 未来

1. 发展流程: - 过去(2015 前后):直接 Concat/Sum 融合,或使用带有简单对齐向量的 RNN。处理长时序极易遗忘,不同模态强行对齐效果差。 - 演进(Transformer 诞生):Seq2Seq 机器翻译中 Decoder 查询 Encoder 隐状态,这是 Cross-Attention 的雏形。 - 现状(多模态时代):成为所有音视频模型、多模态大模型(如 Flamingo、Whisper 解码器、Perceiver IO)的标准跨模态融合算子。

2. 与相近概念的区别(一分钟厘清): - Self-Attention vs Cross-Attention: - Self-Attention:$Q, K, V$ 全都来自同一序列内部(自己看自己,建立内部依赖)。 - Cross-Attention:$Q$ 来自源 A,$K, V$ 来自源 B(A 看 B,实现跨序列/跨模态融合)。 - Cross-Attention vs Feature Concat: - Concat 是静态、无差别的堆叠;Cross-Attention 是动态权重检索,保留了主序列的时序骨架。

3. 当前局限与未来作用: - 当前局限(客观事实):计算复杂度为 $O(L_A \times L_B)$。如果长音频(几千步)直接与高帧率长视频做 Cross-Attention,显存和算力开销巨大;且单向 Cross-Attention 只由 $Q$ 模态主导输出结构,存在模态偏置。 - 未来作用(技术推测):随着超长音视频分析需求增加,利用固定数量的可学习 Query(如 Perceiver/Q-Former 架构)做两阶段降维检索,会比全局 Cross-Attention 更普及。

自测
  • 为什么 Cross-Attention 的输出序列长度取决于 Q 而不是 K、V?
  • 如果音频特征维度是 512,视频特征维度是 768,能直接做 Cross-Attention 吗?该怎么处理?
  • 在说话人日志中,把说话人声纹设为 Q 和设为 K/V,分别代表什么物理含义?
类比
拿着“点菜单(Q)”去“后厨备料架(K/V)”抓配菜,端出来的还是一盘盘按菜单顺序排好的菜,但里面已经吸饱了后厨的食材。
动手练习 第二则

Cross-Attention:动手实现

练习目标

编写一个独立的 PyTorch `CrossAttention` 模块。模拟一个多模态场景:输入音频特征(作为 Query)去检索视频特征(作为 Key/Value),并打印前后张量形状验证计算流程。

参考实现

实现思路: 1. 模块接收两个输入:`x_q`(来自音频模态)和 `x_kv`(来自视频模态)。 2. 用独立的线性层将 `x_q` 映射为 $Q$,将 `x_kv` 映射为 $K$ 和 $V$。 3. 按照多头注意力机制切分 Heads,计算点积分数、除以 $\sqrt{d_k}$ 并做 Softmax。 4. 乘以 $V$ 后拼接多头,最后经线性层输出。

完整可运行代码

import torch
import torch.nn as nn
import math

class SimpleCrossAttention(nn.Module):
    def __init__(self, d_model_q: int, d_model_kv: int, embed_dim: int, num_heads: int):
        super().__init__()
        assert embed_dim % num_heads == 0, "embed_dim 必须能被 num_heads 整除"
        
        self.embed_dim = embed_dim
        self.num_heads = num_heads
        self.head_dim = embed_dim // num_heads

        # Q 来自模态 A(如音频),K 和 V 来自模态 B(如视频)
        self.q_proj = nn.Linear(d_model_q, embed_dim)
        self.k_proj = nn.Linear(d_model_kv, embed_dim)
        self.v_proj = nn.Linear(d_model_kv, embed_dim)
        self.out_proj = nn.Linear(embed_dim, embed_dim)

    def forward(self, x_q: torch.Tensor, x_kv: torch.Tensor):
        """
        x_q:  [Batch, Seq_Len_Q,  d_model_q]   (例如: 音频特征)
        x_kv: [Batch, Seq_Len_KV, d_model_kv]  (例如: 视频特征)
        """
        B, T_q, _ = x_q.shape
        _, T_kv, _ = x_kv.shape

        # 1. 线性投影并拆分多头 -> [B, num_heads, T, head_dim]
        Q = self.q_proj(x_q).view(B, T_q, self.num_heads, self.head_dim).transpose(1, 2)
        K = self.k_proj(x_kv).view(B, T_kv, self.num_heads, self.head_dim).transpose(1, 2)
        V = self.v_proj(x_kv).view(B, T_kv, self.num_heads, self.head_dim).transpose(1, 2)

        # 2. 计算注意力权重: (Q @ K^T) / sqrt(d_k) -> [B, num_heads, T_q, T_kv]
        scores = torch.matmul(Q, K.transpose(-2, -1)) / math.sqrt(self.head_dim)
        attn_weights = torch.softmax(scores, dim=-1)

        # 3. 聚合 Value 并拼接多头 -> [B, T_q, embed_dim]
        out = torch.matmul(attn_weights, V)  # [B, num_heads, T_q, head_dim]
        out = out.transpose(1, 2).contiguous().view(B, T_q, self.embed_dim)

        # 4. 最终投影
        return self.out_proj(out), attn_weights

if __name__ == "__main__":
    torch.manual_seed(42)

    # 模拟场景:
    # Batch_size = 2
    # 音频输入 (Q): 50 个时间步,特征维度 256
    # 视频输入 (KV): 16 帧画面,特征维度 512
    # 统一投影维度 embed_dim = 128, 4 个注意力头
    B = 2
    T_audio, D_audio = 50, 256
    T_video, D_video = 16, 512
    embed_dim = 128
    num_heads = 4

    audio_feat = torch.randn(B, T_audio, D_audio)
    video_feat = torch.randn(B, T_video, D_video)

    cross_attn = SimpleCrossAttention(
        d_model_q=D_audio, 
        d_model_kv=D_video, 
        embed_dim=embed_dim, 
        num_heads=num_heads
    )

    fused_out, weights = cross_attn(audio_feat, video_feat)

    print(f"音频输入形状: {audio_feat.shape}")
    print(f"视频输入形状: {video_feat.shape}")
    print(f"融合输出形状: {fused_out.shape}  <-- 长度与音频(50)完全一致!")
    print(f"注意力权重形状: {weights.shape} <-- [Batch, Heads, T_audio, T_video]")
代码拆解与真实用法

代码逐段解析: 1. 投影层独立:`q_proj` 接收 `d_model_q`,`k_proj` 和 `v_proj` 接收 `d_model_kv`。这意味着音频和视频在输入阶段不需要相同维度,网络内部会把它们统一投影到 `embed_dim`。 2. 矩阵乘法与形状对应: - $Q \times K^T$:`[B, heads, 50, head_dim]` $\times$ `[B, heads, head_dim, 16]` $\rightarrow$ `[B, heads, 50, 16]`。矩阵每一行代表“某一个音频时间点”对“16个视频帧”的注意力分布。 - `attn_weights @ V`:`[B, heads, 50, 16]` $\times$ `[B, heads, 16, head_dim]` $\rightarrow$ `[B, heads, 50, head_dim]`。结果的序列长度变回了 50。 3. 常见 Bug 预警: - 混淆 `T_q` 和 `T_kv`:计算 Softmax 时必须对最后一维(`dim=-1`,即 `T_kv` 维度)做归一化,代表所有候选帧权重大于等于0且和为1。若误对 `dim=-2` 做 Softmax,物理含义完全错误。 - 忘记 `.contiguous()`:在 `transpose` 调整维度后直接使用 `.view()` 会报错,必须先加 `.contiguous()`。

再练一步
  • 练习 1:为这个模块增加一个布尔参数 `return_attention_map`,控制是否返回权重以节省推理开销。
  • 练习 2:尝试给 `forward` 加入 `key_padding_mask`,屏蔽掉视频中多余的 Padding 帧。
类比
Q 决定输出的长相和骨架,K/V 提供填入骨架的血肉。

往期记录 195 条记录

2026年08月27日分帧、加窗与帧移:今天真正弄懂foundationframingwindowinghop length
2026年08月27日分帧、加窗与帧移:动手实现practicePythonPyTorch分帧、加窗与帧移
2026年08月27日链式法则与梯度:今天真正弄懂foundationchain rulegradientbackpropagation
2026年08月27日链式法则与梯度:动手实现practicePythonPyTorch链式法则与梯度
2026年08月26日广播机制 Broadcasting:今天真正弄懂foundationbroadcastingtensor shapePyTorch
2026年08月26日广播机制 Broadcasting:动手实现practicePythonPyTorch广播机制 Broadcasting
2026年08月25日视频帧与时间维:今天真正弄懂foundationvideo frameFPStemporal dimension
2026年08月25日视频帧与时间维:动手实现practicePythonPyTorch视频帧与时间维
2026年08月24日矩阵乘法的直觉:今天真正弄懂foundationmatrix multiplicationlinear layerprojection
2026年08月24日矩阵乘法的直觉:动手实现practicePythonPyTorch矩阵乘法的直觉
2026年08月23日音频采样与混叠:今天真正弄懂foundationsampling rateNyquistaliasing
2026年08月23日音频采样与混叠:动手实现practicePythonPyTorch音频采样与混叠
2026年08月22日张量、形状与维度:今天真正弄懂foundationtensorshapedimension
2026年08月22日张量、形状与维度:动手实现practicePythonPyTorch张量、形状与维度
2026年08月21日音视频时间对齐:今天真正弄懂foundationaudio-visual alignmentsynchronizationtemporal modeling
2026年08月21日音视频时间对齐:动手实现practicePythonPyTorch音视频时间对齐
2026年08月20日说话人日志基本流程:今天真正弄懂foundationspeaker diarizationVADclustering
2026年08月20日说话人日志基本流程:动手实现practicePythonPyTorch说话人日志基本流程
2026年08月19日说话人嵌入:今天真正弄懂foundationspeaker embeddingx-vectorECAPA-TDNN
2026年08月19日说话人嵌入:动手实现practicePythonPyTorch说话人嵌入
2026年08月18日KV Cache:今天真正弄懂foundationKV cacheinferenceautoregressive
2026年08月18日KV Cache:动手实现practicePythonPyTorchKV Cache
2026年08月18日CTC 损失:今天真正弄懂foundationCTCASRalignment
2026年08月18日CTC 损失:动手实现practicePythonPyTorchCTC 损失
2026年08月17日RoPE 旋转位置编码:今天真正弄懂foundationRoPEposition encodingattention
2026年08月17日RoPE 旋转位置编码:动手实现practicePythonPyTorchRoPE 旋转位置编码
2026年08月16日自注意力机制:今天真正弄懂foundationself-attentionQKVscaled dot product
2026年08月16日自注意力机制:动手实现practicePythonPyTorch自注意力机制
2026年08月15日交叉熵与负对数似然:今天真正弄懂foundationcross entropyNLLclassification
2026年08月15日交叉熵与负对数似然:动手实现practicePythonPyTorch交叉熵与负对数似然
2026年08月14日Softmax 与温度系数:今天真正弄懂foundationsoftmaxtemperaturelogits
2026年08月14日Softmax 与温度系数:动手实现practicePythonPyTorchSoftmax 与温度系数
2026年08月13日残差连接:今天真正弄懂foundationresidual connectiongradient flowResNet
2026年08月13日残差连接:动手实现practicePythonPyTorch残差连接
2026年08月12日LayerNorm 与 Pre-Norm:今天真正弄懂foundationLayerNormPre-Normresidual
2026年08月12日LayerNorm 与 Pre-Norm:动手实现practicePythonPyTorchLayerNorm 与 Pre-Norm
2026年08月11日信息粒缓存编排interviewPrefixDAGMinCostFlowSemanticHash
2026年08月11日表示一个折线图的最少线段数codeGeometryArrayMath
2026年08月11日RMSNorm:今天真正弄懂foundationRMSNormnormalizationLLaMA
2026年08月11日RMSNorm:动手实现practicePythonPyTorchRMSNorm
2026年08月10日长上下文块复用interviewPrefixCachingDynamicProgrammingIntervalScheduling
2026年08月10日到达终点数字codeMathParityGreedy
2026年08月10日多教师蒸馏调度interviewMinCostFlowDynamicProgrammingParetoFrontier
2026年08月10日定长子串中元音的最大数目codeStringSliding WindowTwo Pointers
2026年08月06日长窗注意力稳健化interviewNumericalStabilitySoftmaxPositionBias
2026年08月06日执行操作使数据元素之和大于等于 KcodeGreedyMathEnumeration
2026年08月05日必须拿起的最小连续卡牌数codehashmaparrayslidingwindow
2026年08月04日绝对差不超过限制的最长连续子数组codesliding windowmonotonic queuedeque
2026年08月03日证据路由与采样优化interviewRoutingSubmodularLatency
2026年08月01日查询引导长视频采样interviewSubmodularKnapsackTemporalCoverage
2026年08月01日边界元素是最大值的子数组数目codeStackArrayMonotonicStack
2026年07月30日受限内存推理调度interviewLLM-servingKV-cacheScheduling
2026年07月29日技能感知词元压缩interviewTokenCompressionMultimodalKnapsack
2026年07月27日递归验证预算分配interviewAStarBanditSubmodular
2026年07月26日推理早停预算分配interviewOptimalStoppingSequentialTestCalibration
2026年07月26日二叉树中所有距离为 K 的结点codeTreeBFSDFS
2026年07月25日流式同传轨迹调度interviewStreamingMonotonicAlignmentLatencyControl
2026年07月25日分割回文串codepalindromebacktrackingdynamicprogramming
2026年07月24日最大节点价值之和codeGreedyBitManipulationTree
2026年07月23日长音视频工具调度interviewTool RoutingDAG SchedulingSubmodular Maximization
2026年07月20日流式多模态记忆检索interviewStreaming MemoryMultimodal RetrievalTemporal Indexing
2026年07月20日T 秒后青蛙的位置codeTreeDFSProbability
2026年07月20日约束预算模型路由interviewModel RoutingConstrained OptimizationContextual Bandit
2026年07月20日匹配模式数组的子数组数目 IIcodeArrayKMPStringMatching
2026年07月20日受限显存解码调度interviewLLMCompilerKVCacheScheduling
2026年07月20日填充每个节点的下一个右侧节点指针 IIcodeTreeBFSLinkedList
2026年07月02日变分信息瓶颈Information BottleneckVariational BoundRate-Distortion
2026年07月01日CTC序列对齐算法CTCForward-Backward AlgorithmBlank Token
2026年07月01日故障流行病学Core DumpStatistical DebuggingFault Localization
2026年06月30日哈希嵌入压缩Hash EmbeddingFeature HashingEmbedding Compression
2026年06月29日一致性蒸馏Consistency ModelsProgressive DistillationODE Trajectory
2026年06月29日原生推理引擎Native RuntimeggmlInference Engine
2026年06月28日无分类器引导Classifier-Free GuidanceGuidance ScaleScore Interpolation
2026年06月25日MVDR波束成形MVDR BeamformingSpatial FilteringCovariance Estimation
2026年06月24日神经缩放定律Scaling LawsCompute-Optimal TrainingPower Law
2026年06月23日最小贝叶斯风险解码Minimum Bayes RiskDecision TheoryHypothesis Selection
2026年06月23日PID控制与生成调控PID ControllerFeedback ControlClosed-loop Generation
2026年06月22日生成模型评估度量Frechet Inception DistanceGenerative EvaluationFeature Statistics
2026年06月21日浮点量化收缩偏差FP4 TrainingShrinkage BiasLow-Precision Arithmetic
2026年06月21日模型上线仿真Deployment SimulationShadow TestingOffline Evaluation
2026年06月20日现代联想记忆Hopfield NetworkAssociative MemoryEnergy-Based Model
2026年06月19日离散扩散语言模型Discrete DiffusionAbsorbing StateConcrete Score
2026年06月18日循环变换器架构Looped TransformerWeight TyingAdaptive Computation
2026年06月17日韵律建模演进Prosody PredictionF0 ModelingDuration Prediction
2026年06月16日说话人日志Speaker DiarizationSpeaker EmbeddingEEND
2026年06月15日偏好对齐优化Preference OptimizationDPOReward Modeling
2026年06月14日多令牌并行预测Multi-Token PredictionSpeculative DecodingParallel Decoding
2026年06月13日流匹配生成模型Flow MatchingRectified FlowOptimal Transport Path
2026年06月13日实时管线延迟预算Latency BudgetPipeline OrchestrationTime-to-First-Token
2026年06月12日MoE路由机制Mixture of ExpertsSparse GatingRouter Design
2026年06月11日连续自回归生成Continuous AutoregressiveLatent PredictionAudioVAE
2026年06月10日KV缓存压缩KV Cache CompressionToken EvictionAttention Sparsity
2026年06月09日浏览器端模型推理WebGPUBrowser InferenceClient-side ML
2026年06月02日残差向量量化Residual Vector QuantizationAudio TokenizationNeural Codec
2026年05月31日彩色噪声扩散采样Colored NoiseSpectral BiasSDE Solver
2026年05月31日算子融合编译原理Kernel FusionOperator Fusiontorch.compile
2026年05月20日AI生成内容溯源 (7 chars) ✓Content ProvenanceC2PASynthID
2026年05月19日推理委托设计模式 (8 chars) ✓ Let me now write the full content for both topics. Actually, I realize I should double-check: is "Runtime Abstraction" or "Delegate Pattern" too close to any covered keyword? Looking at the list: Cluster Scheduling, Co-design, Collective Communication, Computational Expressiveness, CUTLASS... No, none of these overlap. OK, let me finalize and write everything out. Let me reconsider the engineering topic one more time. The title "推理委托设计模式" is good but maybe I should make it even more specific and interesting. What about focusing on the "graph partitioning" aspect - how ML runtimes decide which operations to delegate to which backend? This is a more specific and technically interesting angle. No, I think the broader "delegate pattern" is better because it covers the full picture and is more useful to the reader. Let me write it all out now. For the engineering topic, let me think about the history: - Early days: frameworks were monolithic (Caffe, early TensorFlow) - TensorRT (2017): NVIDIA's specialized inference engine, initially standalone - ONNX Runtime (2019): Microsoft introduced "Execution Providers" - the first major delegate-like abstraction - TFLite delegates (2018-2019): TensorFlow Lite introduced delegate API for GPU, NNAPI, etc. - ExecuTorch (2023-2024): PyTorch's answer to edge inference with a clean delegate API - 2025-2026: MLX delegate, Qualcomm AI Engine Direct delegate, etc. This is a rich history. Let me write it up. Actually, I want to make sure I have the dates right: - TensorRT was first released around 2016-2017 - ONNX was announced in 2017 - ONNX Runtime was open-sourced in 2018-2019 - TFLite was released in 2017, delegates came later - ExecuTorch was announced at PyTorch Conference 2023 OK, let me write everything now. I'll be thorough. One more thought: for the MATH section of the engineering topic, I could discuss the graph partitioning problem formally, or I could discuss the cost model for deciding whether to delegate. Let me think... The graph partitioning for delegation can be formalized as: - Given a computation graph $G = (V, E)$ where $V$ is the set of operations and $E$ is data dependencies - And a set of delegates $D = \{d_1, ..., d_m\}$ where each delegate supports a subset of operations $S_i \subseteq V$ - Find a partition $P = \{P_0, P_1, ..., P_m\}$ (where $P_0$ is the fallback/CPU partition) that minimizes total execution time - Subject to: each $
2026年05月17日连续批处理异步化
2026年05月10日连续潜在扩散语言模型Continuous Latent DiffusionNon-autoregressive LMDiffusion Language Model
2026年05月10日零样本跨语言语音克隆Zero-shot Voice CloningCross-lingual TTSIPA Phoneme Representation
2026年05月09日最优传输音频距离Optimal TransportFréchet Audio DistanceRiemannian Metric
2026年05月09日推荐系统推理核内广播优化Intra-kernel BroadcastEmbedding TableRecommendation Inference
2026年05月08日扩散Transformer异常值令牌Outlier TokensDiffusion TransformerAttention Sink
2026年05月08日WebRTC低延迟语音工程WebRTCReal-time AudioJitter Buffer
2026年05月07日音素级深度伪造检测原理Phoneme-level Deepfake DetectionSelf-supervised Speech EmbeddingEmotional Speech Synthesis
2026年05月07日AI训练网络协议工程哲学Multi-path Reliable ConnectionRDMA over EthernetCollective Communication
2026年05月05日对抗解纠缠说话人验证Speaker DisentanglementAdversarial TrainingCross-lingual Verification
2026年05月05日LLM推理为何用语言Chain-of-ThoughtLatent ReasoningToken Space
2026年05月01日跨架构知识蒸馏原理Cross-Architecture DistillationDiffusion LMAutoregressive Teacher
2026年05月01日AI评估计算瓶颈工程LLM Evaluation InfrastructureBenchmark SaturationEval Compute Bottleneck
2026年04月29日平衡传输语音增强Schrödinger BridgeStochastic Differential EquationSpeech Enhancement
2026年04月29日深度学习理论形成Deep Learning TheoryLoss LandscapeNeural Tangent Kernel
2026年04月28日语义进度函数原理Semantic Progress FunctionDiffusion TrajectoryNonlinear Denoising
2026年04月28日大模型OCR选型认知OCR BenchmarkModel Selection BiasCost-Performance Tradeoff
2026年04月27日说话人验证核心原理Speaker Verificationd-vectorECAPA-TDNN
2026年04月27日GPU核函数语言选型GPU Kernel EngineeringCuTe DSLCUTLASS
2026年04月26日时长控制TTS原理Duration ModelingProsody ControlAutoregressive TTS
2026年04月26日AI研究价值评估困境Research EvaluationPublication BiasPeer Review
2026年04月25日全双工对话建模原理Full-Duplex DialogueTurn-TakingVoice Activity Detection
2026年04月25日流式TTS文本规范化Text NormalizationStreaming TTSInverse Text Normalization
2026年04月24日离散扩散语言模型原理Discrete DiffusionMasked Diffusion Language ModelAbsorbing Diffusion
2026年04月24日跟进ML研究的认知工程Information OverloadResearch TriageSpaced Repetition
2026年04月23日一致性正则化ASR原理Consistency RegularizationUnified ASRTransducer
2026年04月23日流式TTS文本规范化工程Text NormalizationStreaming TTSInverse Text Normalization
2026年04月22日神经编码器伪影检测Neural Audio CodecArtifact DetectionForensic Residual
2026年04月22日AI研究复现危机工程Reproducibility CrisisML EngineeringExperimental Rigor
2026年04月21日扩散SNR偏差校正原理Signal-to-Noise RatioDiffusion Timestep BiasScore Matching
2026年04月21日论文复现危机根治工程Reproducibility CrisisAblation StudyExperimental Rigor
2026年04月20日音频时序定位原理Temporal GroundingAudio Event DetectionCross-modal Alignment
2026年04月20日论文复现危机根因Reproducibility CrisisBenchmark OverfittingEvaluation Validity
2026年04月19日流匹配对齐原理Flow Matching AlignmentReward Gradient BackpropagationTrajectory Optimization
2026年04月19日分布式训练任务编排Distributed Training OrchestrationCluster SchedulingFault Tolerance
2026年04月18日最优传输信号融合Optimal TransportWasserstein BarycenterTime-Frequency Resolution
2026年04月18日分布式训练任务调度Distributed Training OrchestrationJob SchedulingCluster Resource Management
2026年04月17日扩散语音识别原理Masked Diffusion Language ModelDiscrete DiffusionASR Decoding
2026年04月17日Mel尺度跨文化偏差Mel ScalePsychoacousticsCultural Bias
2026年04月16日音频水印对抗原理Audio WatermarkingSemi-FragilePsychoacoustic Masking
2026年04月16日推测解码草稿树工程Speculative DecodingDraft TreeBlock Diffusion
2026年04月15日对抗流模型原理Continuous Normalizing FlowAdversarial TrainingFlow Matching
2026年04月15日代理状态可观测性工程Agent ObservabilityDistributed TracingState Machine Debugging
2026年04月14日过程奖励模型原理Process Reward ModelStep-level SupervisionReasoning Chain
2026年04月13日离散令牌音源分离Discrete Token ModelingSource SeparationConditional Generation
2026年04月13日超算API工程哲学Distributed Training OrchestrationSupercomputer API DesignFault Tolerance
2026年04月12日信息瓶颈原理演进Information BottleneckVariational IBDisentanglement
2026年04月12日Safetensors格式工程哲学SafetensorsModel SerializationMemory-Mapped IO
2026年04月11日归一化层演进原理Layer NormalizationRMS NormalizationBatch Normalization
2026年04月11日GEMM自调优后端工程GEMM AutotuningTorchInductorCuteDSL
2026年04月10日多令牌预测原理Multi-Token PredictionSpeculative DecodingMedusa Heads
2026年04月10日ML从业者认知校准Calibration BiasCapability IllusionBenchmark Overfitting
2026年04月09日编码器-解码器LM原理Encoder-Decoder LMCross-Attention ConditioningSequence-to-Sequence
2026年04月09日torch.compile归一化优化torch.compileLayerNormRMSNorm
2026年04月08日KV缓存压缩原理KV Cache CompressionRoPE Position EncodingAttention Score Estimation
2026年04月08日音效基础模型工程Sound Effect GenerationFoundation ModelFoley Synthesis
2026年04月07日可验证奖励强化学习Verifiable RewardRLVRProcess Reward Model
2026年04月07日LLM技能退化认知机制Cognitive OffloadingSkill AtrophyDesirable Difficulty
2026年04月06日音素可解释说话人验证Phoneme-aware Speaker VerificationInterpretable BiometricsLocal Acoustic Evidence
2026年04月06日音频幻觉攻击评估Hallucination AttackAudio Language Model ReliabilityAdversarial Probing
2026年04月05日潜在空间推理原理Latent Space ReasoningContinuous RepresentationToken-Free Inference
2026年04月05日mRNA模型极低成本训练Biology Foundation ModelCross-Species TransferLow-Budget Training
2026年04月04日编码器-解码器TTS原理Encoder-Decoder TTSText ConditioningPositional Capacity
2026年04月04日大模型训练的MXFP8工程MXFP8MicroscalingMixed Precision Training
2026年04月03日在线知识蒸馏原理Online DistillationKnowledge TransferStudent-Teacher
2026年04月03日MoE专家并行调度工程Expert ParallelismMixture of ExpertsAll-to-All Communication
2026年04月02日波形潜空间扩散TTSwaveform latent diffusionnon-autoregressive TTSlatent space acoustic modeling
2026年04月02日波形隐空间扩散原理waveform latent spacediffusion TTSVAE audio codec
2026年04月02日LLM量化权重工程weight quantizationLLM compression4-bit quantization
2026年04月02日扩散语言模型离散生成Discrete DiffusionMasked Diffusion Language ModelNon-autoregressive TTS
2026年04月02日LLM后训练库工程演进RLHF engineeringPPO training stabilityreward hacking
2026年04月02日声学证据瓶颈原理Audio Evidence BottleneckAcoustic GroundingAudio Language Model
2026年04月02日状态空间模型音频建模State Space ModelMambaSelective Scan
2026年04月02日实时语音增强工程选型Real-time Speech EnhancementNoise SuppressionStreaming Inference
2026年04月02日对话上下文压缩原理Context CompressionAbstractive SummarizationCross-Attention Fusion
2026年04月02日说话人匿名化工程Speaker AnonymizationVoice ConversionStreaming Inference
2026年04月02日视听语音识别融合Audio-Visual Speech RecognitionLip ReadingViseme
2026年04月02日GPU训练吞吐加速工程MXFP8MoE TrainingExpert Parallelism
2026年04月01日熵驱动多样性生成diversity samplingtypicality biasrepulsion in latent space
2026年04月01日说话人分割工程选型speaker diarizationbenchmark methodologystreaming ASR pipeline
2026年03月31日转向检测联合建模turn-taking detectionvoice activity detectionjoint acoustic-linguistic modeling
2026年03月31日基准测试的系统性失效benchmark contaminationevaluation validityLLM judge reliability
2026年03月31日扩散模型声学生成diffusion modelscore matchingstochastic differential equation
2026年03月31日TTS开源生态竞争open-weight TTStime-to-first-audiomultilingual speech synthesis
2026年03月30日注意力机制变体演进Multi-Head AttentionGrouped Query AttentionMulti-head Latent Attention
2026年03月30日设备端语音推理架构on-device inferenceExecuTorchvoice agent pipeline
2026年03月29日混合自回归流匹配TTSautoregressive semantic tokensflow matching acoustic decoderhybrid TTS architecture
2026年03月29日NCCL超时诊断方法论NCCL watchdog timeoutdistributed training debuggingcollective communication
2026年03月29日混合架构音频表示Mambastate space modelaudio representation learning
2026年03月29日DeepSeek预训练加速工程MXFP8 trainingexpert parallelismMoE pretraining
2026年03月27日说话人验证度量学习speaker verificationmetric learningcurriculum learning
2026年03月27日MX浮点格式加速训练MXFP8microscalingmixed precision training
2026年03月26日TTS模型极限压缩model compressionknowledge distillationTTS on-device
2026年03月26日小模型极限压缩哲学model compressionknowledge distillationquantization
2026年03月25日流匹配生成原理flow matchingrectified flowODE
2026年03月25日神经音频编解码器neural audio codecresidual vector quantizationEnCodec
2026年03月25日推测解码加速推理speculative decodingdraft modeltoken verification