Left to Solve
Problems / MathOverflow (not formalized)

Neural network quantization and arithmetic on affine functions

Open, not yet stated in LeanMathOverflow (not formalized)Uncategoriseddifficulty55/100

Statement

I'm trying to understand the basics of quantization in Neural networks. Quantization tries to convert a neural network that uses floating point arithmetic to one that uses a lower precision integer arithmetic (mostly during inference). While searching around about it, I ran into the Gemmlow documentation that gives a good introduction to the concept.

I understood most of what they mention in that documentation except the first sentence of the Quantization as an affine map section that mentions that in order for the arithmetic to map from floating point to integer directly, only affine functions might work.

Now I understand the basics of affine function a bit, but I couldn't really understand why only affine functions make sense. Could someone explain if there's any property of affine functions that might be missing in other types of functions which make this statement true.

Posed by anirudh · quantization, neural-networks

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-418428.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-418428.lean

import Mathlib

/-!
# Neural network quantization and arithmetic on affine functions

Source: https://mathoverflow.net/questions/418428
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_418428

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_418428