Supplementary Appendix

TacEvo: Architectural Variants, Prompts & Validation

Appendix A. Architectural Modifications in Force Variants

Variant 1

Variant 2

Variant 3

Variant 4

Appendix B. Architectural Modifications in Grating Variants

Variant 1

Variant 2

Variant 3

Variant 4

Appendix C. List of Prompts Used for Force and Grating Tasks

Force Regression Task Prompts

General Refinement

Width and Channel Adjustments

Component & Parameter Tuning

Layer Addition (Normalization & Regularization)

Structural & Final Layer Changes

Grating Classification Task Prompts

General Refinement

Width and Channel Adjustments

Component & Parameter Tuning

Layer Addition (Normalization & Regularization)

Structural & Final Layer Changes

Appendix D. System Prompts

Force Regression System Prompt

The following system prompt is used to instruct the LLM on how to modify the baseline architecture for the Force Prediction (regression) task.

You are an expert PyTorch programmer specializing in multi layer Convolutional Neural Networks for an image regression task. The network should take a 3-channel image as input and output 3 prediction values. Your task is to modify the following ImageRegressionCNN class according to the specified instruction. The required modification is: {instruction_prompt} CRITICAL: Provide ONLY the complete, new `class ImageRegressionCNN(nn.Module):` block as your output. Do NOT include any markdown formatting, backticks, or code block markers. Start directly with the class definition and end with the closing brace. ### Original Code: ```python {base_net_code} ``` ### New Modified Code: Provide the complete class definition here (no markdown formatting):

Grating Classification System Prompt

The following system prompt is used to instruct the LLM on how to modify the baseline architecture for the Grating Classification task.

You are an expert PyTorch programmer specializing in multi layer Convolutional Neural Networks for a single-label classification task. Your task is to modify the following SingleLabelClassCNN class according to the specified instruction. The required modification is: {instruction_prompt} CRITICAL: Provide ONLY the complete, new `class SingleLabelClassCNN(nn.Module)` block as your output. Do NOT include any markdown formatting, backticks, or code block markers. Start directly with the class definition and end with the closing brace. ### Original Code: ```python {base_net_code} ``` ### New Modified Code: Provide the complete class definition here (no markdown formatting):

Appendix E. Baseline Model Validation on Hardness Prediction Task

The focus of the development of TacEvo in the scope of this project is the application of the pipeline to the Force Regression and Grating Classification tasks. However, these two tasks are relatively easier to be learned when compared to more complex tasks such as Hardness Regression. The main bottleneck in TacEvo's performance on a different task, such as hardness, would be in the robustness of the base architecture (Figure 2) at learning that particular task. After validating the baseline's performance, the TacEvo pipeline performance is not expected to differ significantly from the conducted studies, since generating and evaluating variants would only minimally differ in performance from the baseline performance. Therefore, this is a supplementary evaluation and validation of the model's robustness on the hardness dataset sourced from ViTacTip.

The performance of the baseline model on this Hardness Task is presented without any further involvement in NAS. The baseline model was trained with the same parameters as those presented in Section V-A. The final layer was modified to output a single continuous value corresponding to the hardness of the object in Shore units. In Table III the reported R2 value is 0.990, which means that the model was able to explain 99% of the variance present in the data, indicating that the model has fitted well around the dependent variable (predicted hardness values). Also, since the hardness value labels of the dataset ranged between 17.5 and 30.0 Shores, the model provided test error values that are considerably small compared to the prediction range. The Root Mean Squared Error value reports the error in the same units as the prediction, showing a 0.430 error, indicating that the baseline architecture is capable of generalising to tasks and datasets beyond the two analysed in this study.

Table I: Performance of the baseline regression model on the hardness prediction test set.

Metric Value
Mean Squared Error (MSE)0.1846
Mean Absolute Error (MAE)0.3112
R-squared (R2)0.9902
Root Mean Squared Error (RMSE)0.4297 (Shore)