Comment by Authors (2/3)
# Representative examples of Flips
Note that all the experiments use Llama3-8B and it's BnB W4A4 version
1. ## **MATH**
* **TABLE 1** - *correct -> incorrect cases (baseline correct, quantized wrong)*
| Question | Baseline Answer | Quantized Answer |
|----------|-----------------|------------------|
| Max must take 10 steps to go the same distance as three of his dad's steps. His dad takes 30 steps to walk down the hall. How many steps must Max take to walk down the same hall? | 100 | 300 |
| Compute $\arccos 1.$ Express your answer in radians. | 0 | \\(\pi/3\\) |
| The Asian elephant has an average gestation period of 609 days. How many weeks is this gestation period? | 87 | 88 |
| How many positive divisors do 48 and 156 have in common? | 6 | 12 |
| What is the largest integer that is a solution of $13x + 8 < 35$? | 2 | 3 |
* **TABLE 2** - *incorrect -> correct cases (baseline wrong, quantized correct)*
| Question | Baseline Answer | Quantized Answer |
|----------|-----------------|------------------|
| Given $\|\mathbf{v}\| = 5$ and $\|\mathbf{w}\| = 8,$ find the largest possible value of $\|\operatorname{proj}_{\mathbf{w}} \mathbf{v}\|$. | 4 | 5 |
| Let $\mathbf{a}$ and $\mathbf{b}$ be two nonzero vectors such that $\mathbf{a} + \mathbf{b}$ and $\mathbf{b}$ are orthogonal, and $\mathbf{a} + 2 \mathbf{b}$ and $\mathbf{a}$ are orthogonal. Find $\frac{\|\mathbf{a}\|}{\|\mathbf{b}\|}.$ | 2 | \\(\sqrt{2}\\) |
| Find $\frac{25}{4}$ divided by $\frac{1}{12}$ | 300 | 75 |
| The combined weight of three basset hounds is $185$ pounds. The two smaller dogs weigh the same. The difference between the larger weight and the smaller weight is $20$ pounds. How many pounds does the largest dog weigh? | 65 | 75 |
| Suppose $z$ is a complex number such that $z^3 = 100+75i$. Find $\|z\|$. | 25 | 5 |
___
2. ## **BFCL**
* **TABLE 1** - *correct -> incorrect cases (baseline correct, quantized wrong)*
| Question (paraphrased) | Baseline Answer | Quantized Answer | Comment |
|------------------------|-----------------|------------------|---------|
| Calculate the electrostatic potential energy of a particle with a charge of 5 coulombs in a field with a 10-volt potential difference. | `calculate_electrostatic_potential_energy(charge=5, voltage=10)` | `calculate_electrostatic_potential_energy({'charge': 5.0, 'voltage': 10.0})` | Incorrect API usage - supplied params as dictionary |
| Calculate the total cost of 101 dumplings at \\$0.10 each and 20 rice bowls at \\$10 each | `order_food(item=['dumplings', 'rice bowls'], quantity=[101, 20], price=[0.1, 10])` | `calculate_total(item=['dumplings', 'rice bowls'], quantities=[101, 20], prices=[0.1, 10])` | Called the wrong API |
|Can you calculate the areas of circles with radii of 5, 10, 15, and 20 ? | `[geometry_area_circle(radius=5), geometry_area_circle(radius=10), geometry_area_circle(radius=15), geometry_area_circle(radius=20)]` | `geometry_area_circle(radius=5, radius=10, radius=15, radius=20)` | Incorrect API usage – to calculate the area of 4 circles, the same API needs to be called 4 times, but the quantized model calls the function once with 4 radii values which is invalid. |
| Please calculate the factorials for 5, 7, 10, and 12 in sequence. | `math_factorial(n=5), math_factorial(n=7), math_factorial(n=10), math_factorial(n=12)` | `math_factorial(n=5), math_factorial(n=6), math_factorial(n=10), math_factorial(n=12)` | Misunderstood the question - Quantized model calculated factorial of 6 but the question asks to do this for 7 instead. |
| Can you align the signs of BigDecimal elements in the durations array from index 2 to 5? | `DurationImpl.alignSigns(buf=durations, start="2", end="5")]` | `DurationImpl.alignSigns("durations", "2", "5")` | Incorrect API usage - the quantized model forgets that *durations* is an array, not a string |
* **TABLE 2** - *incorrect -> correct cases (baseline wrong, quantized correct)*
| Question (paraphrased) | Baseline Answer | Quantized Answer | Comment |
|------------------------|-----------------|------------------|---------|
| Play the Game of Life for 3 rounds starting from an empty board, then play chess where the 1st move is e4 and the 2nd move is e5. | `[chess.play(moves=['e4', 'e5']), game_of_life.play(rounds=3, start_board=[])]` | `[game_of_life.play(rounds=3, start_board=[]), chess.play(moves=['e4', 'e5'])]` | Misunderstood the question - the baseline model forgets that chess needs to be played after Game of Life |
| Find the intersection points of the functions y=3x+2 and y=2x+3. | `functions.intersect(function1='y=3x+2', function2='y=2x+3')` | `functions.intersect(function1='3*x+2', function2='2*x+3')` | Incorrect API usage - 3x+2, 2x+3 are syntactically wrong |