Lightweight Model Instruction Following: A Neusis Heptagon Construction Test Review
This article reviews a single-run experiment where a lightweight model and a flagship model were asked to generate an HTML page implementing a neusis (two-marked ruler) construction of a regular heptagon. It clarifies the distinction between classical compass-and-straightedge rules and the neusis method, identifies missing parameters in the original prompt, and compares the two models' adherence to step-by-step instructions, geometric correctness, and final output. The review also provides a reusable evaluation checklist and scoring rubric for similar procedural generation tasks, along with practical recommendations for developers assessing model reliability beyond final visual results.
1. Clarifying the Concepts: Compass-and-Straightedge vs. Neusis
Classical compass-and-straightedge construction cannot produce a regular heptagon. According to Gauss and Wantzel’s theorem, a regular n-gon is constructible with compass and straightedge if and only if n is a power of 2 times a product of distinct Fermat primes. Since 7 is not a Fermat prime, the regular heptagon falls outside this scope. Therefore, the method used in this test is not pure compass-and-straightedge construction.
Neusis (also called the “marked ruler” or “two-marked ruler” method) involves a ruler with two marks at a fixed distance. Ancient Greek geometers, including Archimedes, used neusis to solve classic problems such as angle trisection. The “neusis construction of a regular heptagon” described in this article refers to an approximate or exact construction assisted by such a two-marked ruler. Describing it as pure compass-and-straightedge would mislead readers about the task’s premises and could cause a model to misinterpret the goal.
2. The Test Task: Steps and Missing Details
The original prompt was: “Create an HTML page that implements a neusis construction of a regular heptagon.” It specified the following steps:
- Take a square and draw the perpendicular bisector of its base.
- With the lower-right vertex E as the center, draw a circle with radius equal to the diagonal length.
- Keep one end of the two-marked ruler at the lower-left vertex D, move the ruler so that the first mark slides along circle E, until the second mark passes through the perpendicular bisector of the base.
- Use standard perpendicular bisector operations to determine the center of the heptagon’s circumcircle, completing the construction.
- Fill in all omitted compass-and-straightedge steps, and leave compass arcs only where necessary.
- Add a function to export the result as a GIF.
This description has clear gaps that prevent direct reproduction:
- The distance between the two marks on the ruler is not specified.
- No square side length or coordinate system is given, so the positions of points D and E are undefined.
- The method for generating the seven vertices of the heptagon is not explained.
- The rule for deciding “where compass arcs are necessary” is not defined.
- The GIF resolution, frame rate, and duration are not specified.
If this task is to be used as a formal evaluation, the prompt should include all these parameters and ensure they are self-consistent. Without them, a failure could be attributed either to the model or to the flawed task description, making it impossible to distinguish between the two.
3. Three Skills Evaluated
The task simultaneously tests three capabilities:
- Long-chain instruction following: The model must execute the given steps in order, without taking shortcuts.
- Geometric understanding: The model must understand the geometric meaning of perpendicular bisectors, circle arcs, and the movement of the two-marked ruler, not just draw an approximate heptagon.
- Code integration: The model must translate the geometric process into animated rendering code and control where traces appear.
4. Experiment Record and Limitations
Control group (flagship model): A single run took about 20 minutes and eventually displayed a regular heptagon. However, inspection of the implementation logic showed that the construction process did not match the steps described in the prompt. The model added extra steps that were not in the original task, thereby producing the correct visual result.
Experimental group (lightweight model): Running the same prompt in an intelligent programming tool took about 34 minutes. The output was produced in segments, with pauses where the model appeared to think without generating text. In the end, the model completed the construction according to the specified steps, including filling in omitted compass-and-straightedge operations and controlling where arcs appeared.
| Dimension | Control Group | Experimental Group |
|---|---|---|
| Model tier | Flagship | Lightweight |
| Single-run time | ~20 minutes | ~34 minutes |
| Pausing behavior | Not recorded | Segmented thinking with long pauses |
| Step adherence | Deviated from steps, added extra steps | No obvious violations found |
| Final artifact | Page shows a regular heptagon | Page shows a regular heptagon |
| Main failure mode | Correct result, but process cheating | Not observed |
These results have clear limitations. Both groups were run only once, with no repeated trials. Model versions, hardware, temperature parameters, and the exact prompt text were not recorded. Therefore, the time figures should be treated as single-sample references, not as a basis for comparing model speed. “No failure observed” only means that no problem appeared in this one sample; it does not indicate that the model is reliable on this type of task in general.
5. Takeaways for Developers
First, response speed should be judged in the context of the task type. For offline batch processing or code generation, a slow but correct output may be more valuable than a fast but incorrect one. In interactive scenarios, long pauses directly affect the user experience.
Second, evaluations must audit the process, not just the final output. Looking only at the final artifact can lead to mistaking “correct result, process cheating” for a pass. Each instruction should be checked against the model’s execution steps.
Third, lightweight models may be affected by training methodology. Some opinions suggest that certain lightweight models improve their reasoning and instruction-following abilities through distillation and reinforcement learning. However, the data in this article is insufficient to confirm that hypothesis; it remains a tentative assumption.
6. Reusable Evaluation Methodology
Checklist
| Check Item | Acceptance Criterion |
|---|---|
| Step-by-step adherence | Each prompt step has a corresponding implementation in the code or execution log |
| Trace constraints | Compass arcs appear only at specified steps; no extra marks in other phases |
| Geometric correctness | The final seven vertex positions are within a preset error threshold of theoretical values |
| Export function | A GIF can be generated with resolution, frame rate, and duration that meet prompt requirements |
| Reproducibility | Running the same prompt repeatedly produces consistent results within a preset number of trials |
| Time and pauses | First-token latency, total time, and pause counts are recorded |
Scoring Rubric
Each checked item is worth 1 point. Pass equals 1, fail equals 0, for a maximum score of 6. The two items “step-by-step adherence” and “trace constraints” should be double-weighted because they directly correspond to the most likely type of process cheating in this task. Time and pauses are recorded but not included in the score, to avoid speed metrics overshadowing correctness.
Implementation Recommendations
- Run each model at least 5 times, record the median time, and report the pass rate.
- Fix the model version, temperature, and runtime environment, and document these in the report.
- Save the full output and reasoning process for each run, to enable later manual audit.
- For samples where the result is correct but the process is questionable, inspect the code step by step and do not count it as a pass outright.
7. Conclusion
This single-sample experiment shows that, for a specific geometric construction task, the lightweight model’s performance deserves attention, and the flagship model is not universally reliable. Given the limited sample size and undisclosed parameters, these conclusions apply only to the task and conditions described in this article. Developers can use the checklist above to establish their own evaluation baselines under their business constraints, then decide on model selection.
