Amazon has released its first in-house open-weights model, Amazon Ergo 1.0, and I was so excited about it. I fetched the API key from the third party called coarena.ai. Now I'm not sure whether it is really Ergo but I tried that model to make a small project. So when I was building this project, I got to know that it is a reasoning model. It takes and burns extra tokens to reason for small questions as well.
How it works
Dataset summary → Ergo returns a JSON plan → app validates it → scikit-learn trains the models
I tried it with the Titanic dataset, house price prediction dataset, and Iris dataset. It was doing pretty good but then came a question: what makes it unique as an LLM as a planner?
Test 1: 100% accuracy was the problem
I used a synthetic loan dataset with 1,000 rows. One column, 'recovery_agent_calls', is non-zero only after someone defaults. With rules only, the column stayed in and test accuracy was 100%. With Ergo it was dropped and Ergo's reason said it was likely post-default leakage. Accuracy fell to 90%. Sample values were turned off so Ergo did not see example rows. The lower score is the more honest one.(Always guessing no default would give 70%).
Test 2: three traps
A second synthetic dataset with 1,500 rows
| Column | The trap | What Ergo did |
|---|---|---|
| penalty_charges | Recorded after missed payments | Dropped it |
| previous_defaults | Sounds suspicious, but is known before the loan | Kept it |
| branch_code | A label that looks like a number | Treated it as a category |
Accuracy went from 93.7% **(rules only) to **87.3% (Ergo).
What this doesn't prove
- I was playing with this project and everything was looking nice. I couldn't understand it. What is the use of building this project and experimenting with Amazon Ergo? Synthetic datasets, two of them I made, were built to contain traps.
- Each setting was run only once.
- I did not compare Ergo with other LLMs because I am a bit of an impatient person but this is my little beginning for machine learning projects. The second thing was that the column names were fairly easy to read.
Right now Ergo plans once so this is not really an agent. The next step is a loop: train, send the cross-validation results back to Ergo, let it question anything suspicious, and retrain. It should use cross-validation scores not the test set, and stop after a few rounds.
Hey we deployed it on Hugging Spaces and it's quite working but I would like to know how I can make automated machine learning pipelines so that we can automate this process safely.
GRADIO APP
Top comments (1)
Totally agree with separating architectural planning from raw code generation here, Anushka! Having the model help structure validation checks and experiment steps while keeping pipeline execution deterministic prevents so many silent ML bugs.