ml Computer Science

15 个科学问题 · 计算机 Computer Science

本页目录

什么是模型量化(Quantization)?

What is model quantization?

量化把模型权重从 32 位浮点降到 8 位整数等低精度表示,以少量精度损失换取更小的体积与更快的推理,是端侧部署大模型的常用手段。
Quantization lowers weights from 32-bit float to lower precision like 8-bit integer, trading minor accuracy for smaller size and faster inference—common for on-device LLMs.
难度 专业 · 适合 初中(12-15) CC BY 4.0 · 来源待核验 · Source pending review
来源 · Source

出处备注:此条未指向带版次的可引用著作(通识性内容、机构文件或未展开的英文书名),本库不提供独立书目出处;如需精确引用,需由编辑补全具体篇目与版次。

Jacob 等 2018

Jacob et al. 2018

#ML #压缩

模型蒸馏(Knowledge Distillation)是什么?

What is knowledge distillation?

蒸馏让小型学生模型模仿大型教师模型的输出(包括软标签概率分布),在保持大部分精度的同时大幅压缩模型体积,便于部署到手机等受限设备。
Distillation trains a small student to mimic a large teacher's outputs, including soft probability distributions, preserving most accuracy while shrinking the model for devices like phones.
难度 专业 · 适合 初中(12-15) CC BY 4.0 · 来源待核验 · Source pending review
来源 · Source

出处备注:此条未指向带版次的可引用著作(通识性内容、机构文件或未展开的英文书名),本库不提供独立书目出处;如需精确引用,需由编辑补全具体篇目与版次。

Hinton 等 2015

Hinton et al. 2015

#ML #压缩

什么是神经网络,它为什么能学习?

What is a neural network and why can it learn?

神经网络由多层带权重的神经元组成,前向传播计算输出,反向传播用梯度下降调整权重以最小化损失,从而从数据中拟合复杂模式。
A neural network stacks weighted neurons; forward passes compute outputs and backpropagation uses gradient descent to adjust weights, minimizing loss so it fits complex patterns from data.
难度 专业 · 适合 高中(15-18) CC BY 4.0 · 已核验 · Verified 2026-10-04
来源 · Source

Goodfellow、Bengio 与 Courville,《Deep Learning》,MIT Press,2016

I. Goodfellow, Y. Bengio, A. Courville, Deep Learning, MIT Press, 2016

#AI #神经网络

在端到端语音识别中,CTC 损失是如何解决输入帧序列与输出字符序列长度不一致问题的?引入空白符 blank 的作用是什么?

In end-to-end speech recognition, how does CTC loss resolve the length mismatch between input acoustic frames and output characters, and what role does the blank symbol play?

CTC 把输入帧到输出标签之间所有单调对齐路径的概率求和作为训练目标,从而免去逐帧的人工标注。空白符 blank 用于分隔相邻的重复字符并吸收不发声的帧,使 hello 这类双写字母能被正确展开。训练阶段借助前向-后向动态规划高效累加路径概率,解码阶段则用贪心或前缀束搜索还原最终文本。
CTC sums the probabilities of every monotone alignment between input frames and output labels, removing the need for frame-level transcription targets. The blank symbol separates repeated adjacent characters and absorbs frames that should emit nothing, so doubled letters such as those in hello expand correctly. Training computes this sum efficiently with forward-backward dynamic programming, while decoding applies greedy or prefix beam search to recover the transcript.
难度 专业 · 适合 高中(15-18) CC BY 4.0 · 已核验 · Verified 2026-11-04
来源 · Source

Graves、Fernández、Gomez 与 Schmidhuber,《Connectionist temporal classification》,ICML,2006 (DOI: 10.1145/1143844.1143891)

Graves, Fernández, Gomez & Schmidhuber, 'Connectionist temporal classification', ICML, 2006, DOI: 10.1145/1143844.1143891

#语音识别 #CTC损失

工业推荐系统为何普遍采用召回+排序的两阶段流水线?双塔模型用于召回时的核心权衡是什么?

Why do industrial recommenders standardize on a two-stage retrieve-then-rank pipeline, and what is the core trade-off when two-tower models are used for retrieval?

候选池常达亿级,先用轻量召回把候选裁剪到千级,再交给高容量排序模型打分,才能同时满足效果与毫秒级时延。双塔将用户与物品分别编码为向量,在线通过 HNSW 等近似最近邻检索匹配,但两侧特征不能交叉,表达力受限。实践中常引入难负例采样与多兴趣向量来对抗样本偏差和表征瓶颈。
With candidate pools reaching hundreds of millions, a lightweight retriever first prunes them to the thousands before a high-capacity ranker scores the survivors, meeting both accuracy goals and millisecond latency budgets. Two-tower models encode users and items separately and match online through approximate nearest-neighbor search such as HNSW, but the two sides cannot cross features, limiting expressiveness. Teams commonly add hard-negative sampling and multi-interest vectors to fight sampling bias and the representation bottleneck.
难度 专业 · 适合 高中(15-18) CC BY 4.0 · 已核验 · Verified 2026-11-04
来源 · Source

Covington 等《Deep Neural Networks for YouTube Recommendations》(RecSys 2016);Yi 等《Sampling-Bias-Corrected Neural Modeling for Large Corpus Item Recommendations》(RecSys 2019)

Covington et al., Deep Neural Networks for YouTube Recommendations, RecSys 2016; Yi et al., Sampling-Bias-Corrected Neural Modeling for Large Corpus Item Recommendations, RecSys 2019

#推荐系统 #双塔召回

训练深层神经网络时梯度为什么会越传越小?权重初始化又能帮上什么忙?

Why do gradients shrink as they flow back through deep networks, and how does weight initialization help?

反向传播把各层导数沿路径连乘:只要多数因子小于1,梯度传到靠近输入处便指数式衰减,浅层参数几乎不再更新。sigmoid是典型元凶——导数最大仅0.25,叠加十余层信号趋近于零。Glorot与Bengio指出,初始权重方差尺度不当也会让前向激活与反向梯度逐层放大或湮灭;Xavier初始化按扇入与扇出的均值定标权重方差,He初始化再针对ReLU修正,使各层信号方差大致稳定,深层网络才训练得动。
Backpropagation multiplies layer-wise derivatives along the route from loss back to early layers; whenever most factors fall below one, gradients decay exponentially and input-side parameters receive almost no useful update. Sigmoid is the classic culprit — its derivative peaks at 0.25, so a dozen stacked layers snuff the signal. Glorot and Bengio sharpened the diagnosis: even with healthy derivatives, poorly scaled initial variances amplify or extinguish activations forward and gradients backward. Xavier initialization scales weight variance by the average of fan-in and fan-out, He initialization corrects further for ReLU asymmetry, and stable per-layer signal variance is what makes very deep networks trainable.
难度 专业 · 适合 高中(15-18) CC BY 4.0 · 来源待核验 · Source pending review
来源 · Source

出处备注:此条未指向带版次的可引用著作(通识性内容、机构文件或未展开的英文书名),本库不提供独立书目出处;如需精确引用,需由编辑补全具体篇目与版次。

Glorot 与 Bengio,Understanding the difficulty of training deep feedforward neural networks,AISTATS,2010

X. Glorot and Y. Bengio, Understanding the difficulty of training deep feedforward neural networks, AISTATS, 2010

#反向传播 #梯度消失 #Xavier初始化

卷积神经网络(CNN)为什么擅长处理图像?

Why are CNNs good at image tasks?

CNN 用卷积核在局部窗口上共享权重提取边缘、纹理等空间特征,并通过池化降维,具有平移不变性与参数效率,适合二维图像结构。
CNNs use shared-weight kernels over local windows to extract spatial features like edges and textures, with pooling for downsampling, giving translation invariance and parameter efficiency for images.
难度 进阶 · 适合 小学高段(9-12) CC BY 4.0 · 来源待核验 · Source pending review
来源 · Source

出处备注:此条未指向带版次的可引用著作(通识性内容、机构文件或未展开的英文书名),本库不提供独立书目出处;如需精确引用,需由编辑补全具体篇目与版次。

LeCun 1998

LeCun 1998

#ML #视觉

生成对抗网络(GAN)是如何工作的?

How does a Generative Adversarial Network work?

GAN 由生成器和判别器对抗训练:生成器试图伪造逼真样本,判别器试图分辨真假,二者在极小极大博弈中相互提升,最终生成器能产出以假乱真的数据。
A GAN trains a generator against a discriminator: the generator fakes samples, the discriminator detects fakes, and through a minimax game both improve until the generator produces realistic data.
难度 进阶 · 适合 初中(12-15) CC BY 4.0 · 已核验 · Verified 2026-10-04
来源 · Source

Goodfellow 等 2014

Goodfellow et al. 2014

#ML #生成

什么是 Embedding(嵌入)?

What is an embedding?

Embedding 把离散对象(词、用户、商品)映射为低维稠密向量,使语义相近的对象在向量空间中距离更近,便于相似度计算与下游模型使用。
An embedding maps discrete objects (words, users, items) to low-dimensional dense vectors so semantically similar ones are close in space, easing similarity and downstream models.
难度 进阶 · 适合 大众 CC BY 4.0 · 来源待核验 · Source pending review
来源 · Source

出处备注:此条未指向带版次的可引用著作(通识性内容、机构文件或未展开的英文书名),本库不提供独立书目出处;如需精确引用,需由编辑补全具体篇目与版次。

Mikolov 等 2013

Mikolov et al. 2013

#ML #向量

训练集、验证集和测试集分别有什么用?

What are training, validation and test sets used for?

训练集用来拟合模型参数;验证集用来调超参数和早停,不参与训练;测试集只在最后评估模型真实泛化能力,避免数据泄露。
The training set fits parameters; the validation set tunes hyperparameters and early stopping without training on it; the test set is used only at the end to measure true generalization and avoid leakage.
难度 进阶 · 适合 初中(12-15) CC BY 4.0 · 已核验 · Verified 2026-10-04
来源 · Source

Deep Learning (Goodfellow)

Deep Learning (Goodfellow)

#ML #评估

强化学习的基本思路是什么?

What is the basic idea of reinforcement learning?

智能体在环境中通过试错采取动作,依据奖励信号调整策略以最大化长期回报,核心是权衡探索与利用,典型算法有 Q-learning 和策略梯度。
An agent acts in an environment, adjusting its policy from reward signals to maximize long-term return, balancing exploration vs exploitation; key algorithms include Q-learning and policy gradients.
难度 进阶 · 适合 大众 CC BY 4.0 · 来源待核验 · Source pending review
来源 · Source

出处备注:此条未指向带版次的可引用著作(通识性内容、机构文件或未展开的英文书名),本库不提供独立书目出处;如需精确引用,需由编辑补全具体篇目与版次。

Sutton & Barto

Sutton & Barto

#ML #强化

提取梅尔频率倒谱系数(MFCC)时,为什么要先用梅尔刻度的三角滤波器组对频谱加权,而不是直接在线性频率轴上求倒谱?

When extracting mel-frequency cepstral coefficients (MFCC), why is the spectrum first weighted by a mel-scale triangular filter bank instead of computing cepstra directly on a linear frequency axis?

人耳对频率的分辨能力随频率升高而下降,近似呈对数关系,梅尔刻度正是对这一感知特性的经验映射。滤波器组在梅尔轴上均匀布置三角带通滤波器后再映射回线性频率,使特征能量集中于低频段等判别力强的区域,同时平滑谱包络并压缩相邻频带的冗余。取对数后做离散余弦变换得到倒谱系数,把声道包络与声门激励分离开来,前十余维即可较稳定地表征音素,这也是 MFCC 长期作为抗噪识别基线特征的原因。
Human frequency resolution degrades roughly logarithmically as frequency rises, and the mel scale is the empirical mapping of that perceptual property. The filter bank places triangular bandpass filters uniformly on the mel axis and maps them back to linear frequency, concentrating feature energy in discriminative regions such as the low bands while smoothing the spectral envelope and compressing redundancy between neighboring bands. Log compression followed by a discrete cosine transform yields cepstral coefficients that separate the vocal-tract envelope from glottal excitation, letting the first ten-plus dimensions represent phonemes fairly robustly — the reason MFCCs long served as the baseline feature for noise-robust recognition.
难度 进阶 · 适合 初中(12-15) CC BY 4.0 · 已核验 · Verified 2026-10-04
来源 · Source

D. Jurafsky 与 J. H. Martin,《Speech and Language Processing》,第2版,Prentice Hall,2009年

D. Jurafsky and J. H. Martin, Speech and Language Processing, 2nd edition, Prentice Hall, 2009

#梅尔倒谱系数 #听觉感知刻度

推荐系统中的矩阵分解是如何把用户—物品评分矩阵转化为双方隐向量的?相比基于邻域的协同过滤,它在数据稀疏和规模扩展上有哪些优势?

In recommender systems, how does matrix factorization turn the user-item rating matrix into latent vectors for both sides, and what advantages does it hold over neighborhood-based collaborative filtering under sparse data and at scale?

矩阵分解假设每个用户和物品都能表示为同一低维隐因子空间中的向量,评分被近似为两个隐向量的内积,再用随机梯度下降最小化带正则的训练误差来学出这些向量。其参数量只随用户数与物品数线性增长,且能从极少量的评分中泛化出偏好结构,因此比邻域方法更耐稀疏、也更容易并行化。Koren 等人在 Netflix Prize 期间引入偏置项与隐式反馈信号后,预测精度得到显著提升。
Matrix factorization assumes every user and item can be embedded as a vector in a shared low-dimensional latent space, approximates a rating as the inner product of the two vectors, and learns these vectors by minimizing regularized training error with stochastic gradient descent. Its parameter count grows only linearly with the number of users and items, and preference structure generalizes from very few ratings, so it tolerates sparsity far better than neighborhood methods and parallelizes easily. Koren et al. markedly improved accuracy during the Netflix Prize by adding bias terms and implicit-feedback signals.
难度 进阶 · 适合 初中(12-15) CC BY 4.0 · 来源待核验 · Source pending review
来源 · Source

出处备注:本题原挂出处与答案内容不符,已撤回;具体书目待补,暂不展示来源。

本题原挂出处与答案内容不符,已撤回;具体书目待补。

Previous citation withdrawn as unsupported for this answer; a specific source is pending.

#推荐系统 #矩阵分解

迁移学习有什么价值?

What is the value of transfer learning?

迁移学习把在大规模数据上预训练得到的特征或权重,复用到数据较少的目标任务上,大幅降低标注与算力需求,是视觉与 NLP 大模型的常见范式。
Transfer learning reuses features or weights pretrained on large data for a smaller target task, sharply cutting labeling and compute needs—a standard paradigm in vision and NLP.
难度 入门 · 适合 大众 CC BY 4.0 · 来源待核验 · Source pending review
来源 · Source

出处备注:此条未指向带版次的可引用著作(通识性内容、机构文件或未展开的英文书名),本库不提供独立书目出处;如需精确引用,需由编辑补全具体篇目与版次。

Pan & Yang 2010

Pan & Yang 2010

#ML #预训练

偏差-方差权衡是什么意思?

What does the bias-variance tradeoff mean?

模型偏差高表现为欠拟合(假设太简单),方差高表现为过拟合(对训练噪声敏感);总误差是二者之和加噪声,好的模型要在复杂度上取得平衡。
High bias means underfitting (too simple), high variance means overfitting (sensitive to noise); total error is their sum plus noise, so a good model balances complexity.
难度 入门 · 适合 初中(12-15) CC BY 4.0 · 已核验 · Verified 2026-10-04 · 2 条独立证据
来源 · Source

Hastie、Tibshirani 与 Friedman,《The Elements of Statistical Learning》第2版, Springer, 2009

T. Hastie, R. Tibshirani, J. Friedman, The Elements of Statistical Learning, 2nd ed., Springer, 2009

#ML #理论