COE 592Lecture 5.3المحاضرة 5.3Referenceالمرجع
Reference sheetالورقة المرجعية
Quantization (III): PTQ granularity, range clipping, rounding, QAT, binary/ternary and mixed precision compressed onto one page: the definitions, formulas and numbers to have in your head before a quiz or exam.محاضرة «التكميم (Quantization) الجزء الثالث: دقة PTQ، وقص المدى، والتقريب، وQAT، والثنائي والثلاثي، والدقة المختلطة» مضغوطة في صفحة واحدة: التعريفات والمعادلات والأرقام التي يجب أن تكون حاضرة في ذهنك قبل الاختبار القصير أو الامتحان.
Symmetric quantization and granularityالتكميم المتماثل ودرجة التفصيل (granularity)
PTQ picks (S, Z) without retraining in three steps: granularity, range clipping, rounding. Part 01: Per-tensor vs per-channel
يختار PTQ القيم (S, Z) دون إعادة تدريب في ثلاث خطوات: درجة التفصيل (granularity)، ثم قص المدى (range clipping)، ثم التقريب (rounding). الجزء 01: Per-tensor مقابل per-channel
| Granularityدرجة التفصيل | Values sharing one scaleالقيم التي تتشارك scale واحدًا | Number of scalesعدد الـ scales | Weaknessنقطة الضعف |
|---|---|---|---|
| Per-tensorلكل موتر (per-tensor) | The whole weight tensorموتر الأوزان كاملًا | 1 | One outlier sets the step size for everyoneقيمة شاذة واحدة تحدد حجم الخطوة للجميع |
| Per-channelلكل قناة (per-channel) | One output channel (one row of W)قناة خرج واحدة (صف واحد من W) | C_out | Hard to apply to activationsيصعب تطبيقه على التنشيطات |
| Groupبالمجموعات (group) | A block of 16 to 64 elementsكتلة من 16 إلى 64 عنصرًا | (total weights) / G(عدد الأوزان الكلي) / G | More scale storage and logicتخزين أكثر للـscales ومنطق أكثر |
Slides 9 to 13, the running 4 × 4 matrixالشرائح 9 إلى 13، مصفوفة 4 × 4 المستمرة
- Per-tensor, 2 bits
- q_max = 1, S = 2.12, error √5.219 = 2.28q_max = 1، S = 2.12، والخطأ √5.219 = 2.28
- Per-channel, 2 bits
- S = (2.09, 2.12, 1.92, 1.87), one code flips (-1.03 from 0 to -1), error √4.32 = 2.08S = (2.09, 2.12, 1.92, 1.87)، ويتغير رمز واحد (-1.03 من 0 إلى -1)، والخطأ √4.32 = 2.08
- Why output channelsلماذا قنوات الخرج
- y_i = S_i s_x Σ_j q_ij x_j: the scale factors out of the integer dot producty_i = S_i s_x Σ_j q_ij x_j: يخرج الـscale عاملًا مشتركًا من الضرب النقطي الصحيح
Group quantization, VS-Quant and MXالتكميم بالمجموعات (group quantization) وVS-Quant وMX
At 4 bits INT4 has only 15 symmetric levels, so one big weight zeroes most of its channel. Group scales confine the damage. Part 02: Group quantization
عند 4 بتات لا يملك INT4 إلا 15 مستوى متماثلًا، لذلك يكفي وزن كبير واحد ليحوّل معظم قناته إلى أصفار. الـscales على مستوى المجموعة تحصر هذا الضرر. الجزء 02: التكميم بالمجموعات
| Approachالطريقة | Elementالعنصر | L0 scalescale المستوى L0 | L1 scalescale المستوى L1 | Effective bitsالبتات الفعلية |
|---|---|---|---|---|
| Per-channelلكل قناة (per-channel) | INT4 | per channel, FP16لكل قناة، FP16 | noneلا يوجد | 4 |
| VSQ | INT4 | UINT4 per 16UINT4 لكل 16 | FP16 per channelFP16 لكل قناة | 4 + 4/16 = 4.25 |
| MX4 | S1M2 (3) | E1M0 per 2E1M0 لكل 2 | E8M0 per 16E8M0 لكل 16 | 3 + 1/2 + 8/16 = 4 |
| MX6 | S1M4 (5) | E1M0 per 2E1M0 لكل 2 | E8M0 per 16E8M0 لكل 16 | 5 + 1/2 + 8/16 = 6 |
| MX9 | S1M7 (8) | E1M0 per 2E1M0 لكل 2 | E8M0 per 16E8M0 لكل 16 | 8 + 1/2 + 8/16 = 9 |
| Formatالصيغة | Defined byالجهة المعرِّفة | Scalesالـ scales | Effective bitsالبتات الفعلية |
|---|---|---|---|
| MXFP4 | OCP MX v1.0 | E8M0 per 32E8M0 لكل 32 | 4 + 8/32 = 4.25 |
| NVFP4 | NVIDIA Blackwell | FP8 E4M3 per 16, FP32 per tensorFP8 E4M3 لكل 16، وFP32 لكل موتر | about 4.5نحو 4.5 |
Activation range clippingقص مدى التنشيطات (activation range clipping)
Weights are fixed, so their range is read directly. Activations change with every input, so their range is estimated before deployment. Part 03: Activation range clipping
الأوزان ثابتة، لذلك يُقرأ مداها مباشرة. أما التنشيطات (activations) فتتغير مع كل مدخل، لذلك يُقدَّر مداها قبل النشر. الجزء 03: قص مدى التنشيطات
| Methodالطريقة | Whenمتى | Characterالطابع |
|---|---|---|
| EMA (type 1)EMA (النوع 1) | During trainingأثناء التدريب | Smooth observed min and max over stepsتنعيم القيم الصغرى والعظمى المرصودة عبر الخطوات |
| Mean of min/maxمتوسط min/max | Calibration batchesدفعات المعايرة (calibration batches) | Cheap, ignores the shape of the bulkرخيص، ويتجاهل شكل الكتلة الرئيسية من القيم |
| Minimize MSEتقليل MSE | Calibration batchesدفعات المعايرة | Analytical for Laplace or Gaussian, OCTAV for any dataحل تحليلي لتوزيع Laplace أو Gaussian، وOCTAV لأي بيانات |
| Minimize KLتقليل KL | Calibration batchesدفعات المعايرة | Compares histograms, TensorRT entropy calibrationيقارن المدرجات التكرارية (histograms)، وهو معايرة الإنتروبيا في TensorRT |
| Bits Mعدد البتات M | Optimal clipنقطة القص المثلى | Clip at b = 0.2القص عند b = 0.2 | Fraction clippedنسبة القيم المقصوصة |
|---|---|---|---|
| 2 | 2.83b | 0.566 | 5.9% |
| 3 | 3.89b | 0.778 | 2.0% |
| 4 | 5.03b | 1.006 | 0.65% |
- EMA worked step with α = 0.1: max 6.0, then observe 8.0, giving 6.20; then observe 5.0, giving 6.08.خطوة محلولة لـEMA مع α = 0.1: القيمة العظمى 6.0، ثم نرصد 8.0 فنحصل على 6.20، ثم نرصد 5.0 فنحصل على 6.08.
- OCTAV solves the MSE clip with Newton-Raphson in a few iterations. Laplace b = 1, 4 bits: 1.00, 2.00, 2.97, 3.88, 4.59, 4.96, 5.03.يحل OCTAV مسألة نقطة القص المثلى وفق MSE بطريقة Newton-Raphson في عدد قليل من التكرارات. لتوزيع Laplace مع b = 1 و4 بتات: 1.00, 2.00, 2.97, 3.88, 4.59, 4.96, 5.03.
| Networkالشبكة | FP32FP32 | OCTAV int4OCTAV int4 |
|---|---|---|
| ResNet-50 | 76.07 | 75.84 |
| MobileNet-V2 | 71.71 | 70.88 |
| BERT-Large | 91.00 | 87.09 |
AdaRound and PTQ resultsAdaRound ونتائج PTQ
Rounding to nearest minimizes each weight's own error, but correlated errors add up in Wx. Optimize the layer output instead. Part 04: AdaRound and PTQ results
التقريب إلى أقرب قيمة يقلل خطأ كل وزن بمفرده، لكن الأخطاء المترابطة تتراكم في Wx. لذلك حسّن خرج الطبقة بدلًا من ذلك. الجزء 04: AdaRound ونتائج PTQ
AdaRound essentialsأساسيات AdaRound
- Slide 33 exampleمثال الشريحة 33
- [0.3, 0.5, 0.7, 0.2]: nearest gives [0, 1, 1, 0], AdaRound may return [0, 0, 1, 0][0.3, 0.5, 0.7, 0.2]: التقريب إلى الأقرب يعطي [0, 1, 1, 0]، وقد يعيد AdaRound [0, 0, 1, 0]
- V
- A learnable continuous tensor shaped like W, optimized by gradient descent (not random)موتر مستمر قابل للتعلم بشكل W نفسه، يُحسَّن بالانحدار التدرجي (gradient descent) (وليس عشوائيًا)
- h(V)
- Rectified sigmoid into [0, 1], ζ = 1.1, γ = −0.1دالة sigmoid مقوَّمة (rectified sigmoid) إلى [0, 1]، مع ζ = 1.1 وγ = −0.1
- f_reg
- Pushes each h(V) to exactly 0 or 1, with β annealedيدفع كل h(V) ليصبح 0 أو 1 تمامًا، مع تخفيض β تدريجيًا (annealing)
- Resultالنتيجة
- 4-bit ResNet-18: 23.99% (nearest) to 68.71%, FP 69.68%ResNet-18 بـ4 بتات: من 23.99% (التقريب إلى الأقرب) إلى 68.71%، وFP يعطي 69.68%
| Knobمفتاح التحكم | Optionsالخيارات | Question it answersالسؤال الذي يجيب عنه |
|---|---|---|
| Zero pointنقطة الصفر (zero point) | Asymmetric, symmetricغير متماثل، متماثل | Where real 0 sits on the gridأين يقع الصفر الحقيقي 0 على الشبكة |
| Granularityدرجة التفصيل (granularity) | Per-tensor, per-channel, groupper-tensor، per-channel، group | How many values share one Sكم قيمة تتشارك S واحدًا |
| Range clippingقص المدى (range clipping) | EMA, KL, MSEEMA، KL، MSE | Which r_min and r_max set Sأي r_min وr_max يحددان S |
| Roundingالتقريب (rounding) | Nearest, AdaRoundإلى الأقرب، AdaRound | Which grid point each weight takesأي نقطة على الشبكة يأخذها كل وزن |
| Networkالشبكة | Sym per-tensor W, KL actأوزان متماثلة per-tensor، وتنشيطات بمعايرة KL | Sym per-channel W, asym EMA actأوزان متماثلة per-channel، وتنشيطات غير متماثلة بـ EMA |
|---|---|---|
| GoogleNet | −0.45% | 0% |
| ResNet-50 | −0.13% | −0.6% |
| ResNet-152 | −0.08% | −1.8% |
| MobileNetV1 | not reportedغير منشور | −11.8% |
| MobileNetV2 | not reportedغير منشور | −2.1% |
Quantization-aware trainingالتدريب الواعي بالتكميم (quantization-aware training)
Start from a pretrained FP model. Keep an FP copy of W so tiny updates can accumulate until a weight crosses a rounding boundary. Part 05: QAT, fake quantization and STE
ابدأ من نموذج FP مدرّب مسبقًا. احتفظ بنسخة FP من W حتى تتراكم التحديثات الصغيرة إلى أن يعبر الوزن حدًا من حدود التقريب. الجزء 05: QAT والتكميم الزائف وSTE
K-means QATQAT مع K-means
- Ruleالقاعدة
- Group gradients by cluster index, sum, multiply by the learning rate, subtract from the centroidصنّف التدرجات حسب فهرس العنقود، ثم اجمعها، ثم اضربها في معدل التعلم، ثم اطرحها من المركز (centroid)
- Slide 40, lr = 1الشريحة 40، lr = 1
- [2.00, 1.50, 0.00, −1.00] becomes [1.96, 1.48, −0.04, −0.97][2.00, 1.50, 0.00, −1.00] تصبح [1.96, 1.48, −0.04, −0.97]
| Tensor or operationالموتر أو العملية | What happensما يحدث | Value usedالقيمة المستخدمة |
|---|---|---|
| Weights Wالأوزان W | FP copy, updated by the optimizerنسخة FP يحدّثها المُحسِّن (optimizer) | Q(W) = S_W q_W |
| Conv, batch norm, ReLUالالتفاف وbatch norm وReLU | Run in FP on fake-quantized valuesتعمل بدقة FP على قيم مكمَّمة تكميمًا زائفًا | Not quantized insideغير مكمَّمة من الداخل |
| Layer output Yخرج الطبقة Y | FP result of the blockنتيجة الكتلة بدقة FP | Q(Y) = S_Y (q_Y − Z_Y) |
| Networkالشبكة | FPFP | PTQ asym tensorPTQ غير متماثل per-tensor | PTQ sym channelPTQ متماثل per-channel | QAT asym tensorQAT غير متماثل per-tensor | QAT sym channelQAT متماثل per-channel |
|---|---|---|---|---|---|
| MobileNetV1 | 70.9 | 0.1 | 59.1 | 70.0 | 70.7 |
| MobileNetV2 | 71.9 | 0.1 | 69.8 | 70.9 | 71.1 |
| NASNet-Mobile | 74.0 | 72.2 | 72.1 | 73.0 | 73.0 |
Binary weightsالأوزان الثنائية (binary weights)
Weights of ±1 turn multiplies into additions and subtractions. Part 06: Binary weights
الأوزان التي قيمها ±1 تحوّل عمليات الضرب إلى عمليات جمع وطرح. الجزء 06: الأوزان الثنائية
| Deterministicحتمي | Stochastic (BinaryConnect)عشوائي (BinaryConnect) | |
|---|---|---|
| Ruleالقاعدة | q = sign(r) | q = +1 with p = σ(r), else −1q = +1 باحتمال p = σ(r)، وإلا −1 |
| At r = 0عند r = 0 | +1 | ±1, each with p = 0.5±1، لكل منهما احتمال p = 0.5 |
| Expected valueالقيمة المتوقعة | sign(r) | r for |r| ≤ 1r عندما |r| ≤ 1 |
| Hardwareالعتاد | Read the sign bitقراءة بت الإشارة | Needs random bits per weightيحتاج بتات عشوائية لكل وزن |
Slide 54 numbersأرقام الشريحة 54
- Σ|W|
- 16.78 over n = 16 weights16.78 على n = 16 وزنًا
- α
- 16.78 / 16 = 1.04875 (about 1.05)16.78 / 16 = 1.04875 (نحو 1.05)
- Squared errorالخطأ التربيعي
- 9.28 with sign only, 9.245 with α9.28 بالإشارة فقط، و9.245 مع α
- Dot productالضرب النقطي
- [8, −3, 5, −1] · [5, 2, 0, 1] = 33; with signs it is 2, no multiplies[8, −3, 5, −1] · [5, 2, 0, 1] = 33؛ وبالإشارات فقط يساوي 2، دون أي عملية ضرب
XNOR and popcountXNOR وpopcount
Encode +1 as bit 1 and −1 as bit 0. XNOR is then the product. Part 07: XNOR and popcount
رمّز +1 بالبت 1 و−1 بالبت 0. عندها تكون XNOR هي حاصل الضرب. الجزء 07: XNOR وpopcount
| W | x | W × x | XNOR |
|---|---|---|---|
| +1 | +1 | +1 | 1 |
| +1 | −1 | −1 | 0 |
| −1 | −1 | +1 | 1 |
| −1 | +1 | −1 | 0 |
- Slide example: 1010 xnor 1101 = 1000, popcount 1, y = −4 + 2 = −2.مثال الشريحة: 1010 xnor 1101 = 1000، وpopcount يساوي 1، وy = −4 + 2 = −2.
- Exercise n = 8: popcount 5, y = −8 + 10 = 2.تمرين مع n = 8: popcount يساوي 5، وy = −8 + 10 = 2.
- Summing XNOR bits alone counts only matches and gives 1, not −2.جمع بتات XNOR وحدها يعدّ التطابقات فقط ويعطي 1، لا −2.
| Inputالمدخل | Weightالوزن | Operationsالعمليات | Memoryالذاكرة | Computationالحساب |
|---|---|---|---|---|
| Realحقيقي | Realحقيقي | multiply and addضرب وجمع | 1x | 1x |
| Realحقيقي | Binaryثنائي | add and subtractجمع وطرح | ≈32x lessأقل بنحو 32x | ≈2x lessأقل بنحو 2x |
| Binaryثنائي | Binaryثنائي | XNOR and popcountXNOR وpopcount | ≈32x lessأقل بنحو 32x | ≈58x lessأقل بنحو 58x |
Accuracy cost and ternary quantizationتكلفة الدقة والتكميم الثلاثي (ternary quantization)
Scale factors recover about 16 points between BNN and XNOR-Net. Binarizing activations is the expensive step. Part 08: Ternary, TWN and TTQ
تستعيد معاملات التحجيم (scale factors) نحو 16 نقطة بين BNN وXNOR-Net. أما تحويل التنشيطات إلى ثنائية فهو الخطوة المكلفة. الجزء 08: التكميم الثلاثي وTWN وTTQ
| Methodالطريقة | W bitsبتات W | A bitsبتات A | Scale onالـ scale على | Deltaالفرق |
|---|---|---|---|---|
| BWN | 1 | 32 | Weights onlyالأوزان فقط | +0.2 |
| XNOR-Net | 1 | 1 | Weights and activationsالأوزان والتنشيطات | −12.4 |
| BNN | 1 | 1 | Noneلا شيء | −28.7 |
Ternary on the running matrixالتكميم الثلاثي على المصفوفة المستمرة
- Thresholdالعتبة
- Δ = 0.7 × 16.78 / 16 = 0.73Δ = 0.7 × 16.78 / 16 = 0.73
- Survivorsالأوزان الباقية
- Eleven weights above Δ, r_t = 16.50 / 11 = 1.5, five become 0أحد عشر وزنًا فوق Δ، وr_t = 16.50 / 11 = 1.5، وخمسة أوزان تصبح 0
- Squared errorالخطأ التربيعي
- Ternary 2.09 against binary 9.25الثلاثي 2.09 مقابل الثنائي 9.25
- ResNet-18 top-1دقة top-1 لـ ResNet-18
- FP 69.6, BWN 60.8, TWN 65.3, TTQ 66.6FP 69.6، وBWN 60.8، وTWN 65.3، وTTQ 66.6
| TWN | TTQ | |
|---|---|---|
| Valuesالقيم | {-r_t, 0, +r_t} | {-w_n, 0, +w_p} |
| Scaleالـscale | One, computed from the weightsواحد، يُحسب من الأوزان | Two, trained by gradient descentاثنان، يُدرَّبان بالانحدار التدرجي (gradient descent) |
| Thresholdالعتبة | Δ = 0.7 · E(|r|) | Δ = t · max(|r|), t = 0.05 |
| Storageالتخزين | 2 bits + 1 FP scale2 بت + scale واحد بدقة FP | 2 bits + 2 FP scales2 بت + اثنان من الـscales بدقة FP |
| ResNet-18 top-1دقة top-1 لـResNet-18 | 65.3 | 66.6 |
| Familyالعائلة | Storedما يُخزَّن | Arithmeticالحساب | Bits per weightالبتات لكل وزن |
|---|---|---|---|
| Full precisionالدقة الكاملة (full precision) | FP32 weightsأوزان FP32 | Floating pointفاصلة عائمة | 32 |
| K-meansK-means | Integer indices plus FP codebookفهارس صحيحة مع دفتر رموز (codebook) بدقة FP | Floating pointفاصلة عائمة | 2 plus codebook2 مع دفتر الرموز |
| Linearخطي (linear) | Integer weights plus S and Zأوزان صحيحة مع S وZ | Integerأعداد صحيحة | 2 to 8من 2 إلى 8 |
| Binary or ternaryثنائي أو ثلاثي | 1 or 2 bit weights plus a scaleأوزان بـ1 أو 2 بت مع scale | Bit operationsعمليات على البتات | 1 or 21 أو 2 |
Mixed precision and HAQالدقة المختلطة (mixed precision) وHAQ
Each layer picks its own weight and activation width. Part 09: Mixed precision and HAQ
كل طبقة تختار عرض البتات الخاص بها للأوزان وللتنشيطات. الجزء 09: الدقة المختلطة وHAQ
HAQHAQ
- Agentالوكيل
- DDPG actor-critic, one layer per stepنموذج actor-critic من نوع DDPG، طبقة واحدة في كل خطوة
- Stateالحالة
- A 10-feature description of the layerوصف للطبقة من 10 خصائص
- Actionالفعل
- Continuous a_k, rounded to a bit width in [2, 8]قيمة مستمرة a_k تُقرَّب إلى عرض بتات ضمن [2, 8]
- Rewardالمكافأة
- 0.1 × (quantized accuracy − original accuracy)0.1 × (الدقة بعد التكميم − الدقة الأصلية)
- Budgetالميزانية
- Measured latency or energy on the accelerator; bits lowered until the budget is metزمن الاستجابة أو الطاقة المقيسة فعليًا على المسرّع؛ وتُخفَّض البتات حتى تتحقق الميزانية
| Latencyزمن الاستجابة | Uniform 4-bit (PACT)4 بت موحد (PACT) | HAQHAQ |
|---|---|---|
| ≈45.5 ms | 62.44% | 67.40% |
| ≈57.7 ms | 67.00% | 70.58% |
| ≈70 ms | 70.46% | 71.20% |
| Edge (BISMO)طرفي (BISMO) | Cloud (BISMO)سحابي (BISMO) | |
|---|---|---|
| Batch sizeحجم الدفعة (batch size) | 1 | 16 |
| Latency limited byزمن الاستجابة محدود بـ | Memory traffic of depthwise layersحركة الذاكرة في طبقات depthwise | Arithmetic of pointwise layersالعمليات الحسابية في طبقات pointwise |
| Depthwise layersطبقات depthwise | Fewer activation bitsبتات أقل للتنشيطات | More bitsبتات أكثر |
| Pointwise layersطبقات pointwise | More bitsبتات أكثر | Fewer bitsبتات أقل |
Slide errataتصحيحات الشرائح
Answer with the corrected fact, and name the slide if a question depends on it. Each erratum is explained in its part: 01, 02, 03, 04, 05, 06, 07, 08, 09.
أجب بالمعلومة المصححة، واذكر رقم الشريحة إذا كان السؤال يعتمد عليها. كل تصحيح مشروح في الجزء الخاص به: 01، 02، 03، 04، 05، 06، 07، 08، 09.
What the slides get wrongما أخطأت فيه الشرائح
- Slides 7, 37الشريحتان 7 و37
- "Markus et al." is a given name: cite Nagel et al., ICCV 2019."Markus et al." اسم أول وليس اسم عائلة: استشهد بـNagel et al., ICCV 2019.
- Slide 16الشريحة 16
- HGX B200 figures are sparse. FP4 is 144 | 72 PFLOPS (sparse | dense); the 2x ratio holds.أرقام HGX B200 هي أرقام الحساب المتناثر (sparse). أداء FP4 هو 144 | 72 PFLOPS (sparse | dense)؛ ونسبة 2x تبقى صحيحة.
- Slides 20, 21الشريحتان 20 و21
- Drawings are shrunk. Use the table group sizes: L0 16, L1 16.الرسوم مصغّرة. استخدم أحجام المجموعات من الجدول: L0 يساوي 16، وL1 يساوي 16.
- Slide 24الشريحة 24
- α weights the new value, so it must be small (PyTorch 0.01). Jacob et al. say close to 1 for the old value. State your convention.α هو وزن القيمة الجديدة، لذلك يجب أن يكون صغيرًا (PyTorch يستخدم 0.01). أما Jacob et al. فيقولون إنه قريب من 1 لأنهم يجعلونه وزن القيمة القديمة. صرّح بالاصطلاح الذي تستخدمه.
- Slide 29الشريحة 29
- "incpetion" is inception_5a/5x5 and inception_3a/pool."incpetion" المقصود بها inception_5a/5x5 وinception_3a/pool.
- Slide 35الشريحة 35
- V is learned, not random. h() maps into [0, 1], not (0, 1).V متعلَّم وليس عشوائيًا. وh() تنقل القيم إلى [0, 1] وليس إلى (0, 1).
- Slides 37, 38الشريحتان 37 و38
- Typos: "Asymmertric", "presumabley". Per-channel row labels are approximate.أخطاء إملائية: "Asymmertric" و"presumabley". وتسميات صفوف per-channel تقريبية.
- Slide 47الشريحة 47
- NASNet-Mobile FP is 74.0% in the whitepaper, not 74.9%.دقة FP لـNASNet-Mobile هي 74.0% في الورقة البيضاء (whitepaper)، وليست 74.9%.
- Slide 54الشريحة 54
- Error is 9.2452, so 9.25, not 9.24. BWN is +0.2 points, a gain.الخطأ 9.2452، أي 9.25 وليس 9.24. ونتيجة BWN هي +0.2 نقطة، أي تحسن وليست خسارة.
- Slide 55الشريحة 55
- By slide 53, input 0 binarizes to +1, not −1.وفق الشريحة 53، يتحول المدخل 0 إلى +1 لا إلى −1.
- Slides 59, 60الشريحتان 59 و60
- Write −n + (popcount ≪ 1). Without brackets C gives (−4 + 1) × 2 = −6.اكتب −n + (popcount ≪ 1). فبدون الأقواس تحسب لغة C القيمة (−4 + 1) × 2 = −6.
- Slide 61الشريحة 61
- Deltas are percentage points. BWN 56.8 vs FP 56.6 is a gain.الفروق بالنقاط المئوية. وBWN بقيمة 56.8 مقابل FP بقيمة 56.6 تحسن.
- Slide 62الشريحة 62
- The T on W^T means ternary. TWN 65.3 is ResNet-18B; standard ResNet-18 is 61.8.الحرف T في W^T يعني ثلاثي (ternary). ونتيجة TWN البالغة 65.3 هي لـResNet-18B؛ أما ResNet-18 القياسي فيعطي 61.8.
- Slide 64الشريحة 64
- The 0/1 matrix is the binary sign matrix: read 0 as −1.مصفوفة 0/1 هي مصفوفة الإشارات الثنائية: اقرأ 0 على أنها −1.
- Slides 73, 74الشريحتان 73 و74
- The text describes MobileNet-V1; the pictured policy is MobileNet-V2 (HAQ Figure 4).النص يصف MobileNet-V1؛ أما السياسة المرسومة فهي لـMobileNet-V2 (الشكل 4 في HAQ).