Skip to content

UmdTask919_Blog_Benchmarking_in_agentic_Reasoning_for_Data_science - #997

Open
Under-the-stars wants to merge 12 commits into
masterfrom
UmdTask919_Blog_Benchmarking_in_agentic_Reasoning_for_Data_science
Open

Under-the-stars wants to merge 12 commits into
masterfrom
UmdTask919_Blog_Benchmarking_in_agentic_Reasoning_for_Data_science

Conversation

@Under-the-stars

@Under-the-stars Under-the-stars commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #919

Blog post "We Broke Our Data on Purpose. Here's Who Noticed." and the project behind it.

What this PR has

  • The blog post, with a rendered architecture diagram and a results chart
  • The multi-agent-ds-benchmark/ project: LangGraph pipeline, benchmark code, notebooks, Docker files and results

What the post shows

  • A reviewer agent in a cyclic LangGraph pipeline did not make the pipeline more accurate than a single pass or AutoGluon
  • It caught every impossible value we planted and flagged a planted leak and a real leak (taxi payment type) in 10 of 10 runs, where the other systems reported fake near-perfect scores
  • It missed a weaker leak (total amount), so it is a safety net with holes
  • All systems use the same split, the same corrupted training data and MCC as the main score. AutoGluon was rerun with MCC so the comparison is fair

Checks run

  • prettier (format_blog.sh), mkdocs build --strict and pre-commit all pass
  • Numbers in the post checked against the files in outputs/
  • The fast_tests.no_docker check fails at "Set up Python" because helpers_root/.python-version is missing in CI. This PR does not change helpers_root

@Under-the-stars

Copy link
Copy Markdown
Collaborator Author

What this PR adds

This adds the project folder multi-agent-ds-benchmark/ for the blog "Benchmarking in Agentic Reasoning for Data Science".

Contents

Pipeline code. The LangGraph multi-agent pipeline (agents/, graph/), the benchmark harness agentic_bench.py and agentic_viz.py, and the run scripts for Heart Disease, NYC Taxi and Amazon Reviews, with and without AutoGluon.
Notebooks. full_study.ipynb is the main study. closing_the_gaps.ipynb is the follow-up runs: more splits, natural leaks, AutoGluon best_quality, logged language model answers, and reviewer-settings checks.
Saved results. outputs/ has the CSVs the blog tables come from, so every number can be traced to a file.
Charts. EDA and SHAP images for each dataset.
Docker setup. The Dockerfile and helper scripts, copied from my earlier project repo. The old README was left out on purpose.

Status

The code and the results from the main study are in this PR.
The follow-up runs in closing_the_gaps.ipynb are still running. I will push the new outputs/ files when they finish.
The README in the folder is the older version. It still says AutoGluon was not run on the same splits, which is no longer true. I will replace it after the runs finish, so please don't review it yet.

@Under-the-stars

Copy link
Copy Markdown
Collaborator Author

Blog draft: "We Broke Our Data on Purpose. Here's Who Noticed."

I added the draft blog post in website/docs/blog/posts/, with its chart in draft.benchmarking_in_Agentic_Reasoning_for_Data_Science.md.figs/. It follows the blog guide's front matter and has draft: true.

What the post says

I compared a multi-agent LangGraph pipeline with a reviewer step, a single-pass version, and AutoGluon on three datasets (heart disease, NYC taxi tips, Amazon reviews). Every system got the same splits, the same features and the same corrupted training data. All numbers are the average over 10 splits, scored with MCC.

Accuracy: nobody wins. Heart disease and Amazon are ties. On taxi, AutoGluon is lowest at every noise level (by 0.06 to 0.14 MCC), and the reviewer is a little below the single pass on clean data and at 30% wrong labels.
Where the reviewer helps: it found every impossible value I planted. It caught a planted leaked column in 10 of 10 runs, where the single pass, the plain graph and AutoGluon all reported a fake perfect score of 1.0. It also caught a real leak in the taxi data (payment_type) in 10 of 10 runs, where every other system scored 0.91 against its honest 0.106.
Where it fails: it missed a second, weaker real leak (total_amount) in all 10 runs, and every system scored about 0.75. The post says so.
No false alarms: it dropped no feature on clean data in any of 30 runs.

Checks I ran so the result doesn't depend on one choice

AutoGluon best_quality preset (180 s) on a smaller set of splits: the picture did not change.
Language model picking the retry strategy: 29 prompts, 29 valid answers, 0 different from the rules, and identical MCC on all 20 runs.
Six reviewer settings on heart disease: none made it more accurate than the single pass, and the planted leak was caught in 10 of 10 runs in all of them.

Please check

The front matter keys and draft: true.
The image path (./...md.figs/reviewer_accuracy_vs_leak.png), which follows the other posts.
The author ids: Under-the-stars, linuteresa, gpsaggese.

If the notebook and outputs/ aren't pushed yet, add this line: "The notebook and result CSVs behind every number are in multi-agent-ds-benchmark/."

@Sohail-5678 Sohail-5678 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Under-the-stars Reviewed the blog post (website/docs/blog/posts/draft.benchmarking_in_Agentic_Reasoning_for_Data_Science.md). The story is strong: the "we were ready to call it a win, then we checked" opening, the honest null result on accuracy, and the leak results are exactly what makes it worth reading. The numbers in the text, tables and chart caption are consistent. Below is what needs fixing before it can be published, then a few smaller points.

Needed before merge

  1. Author id: linuteresa should be LinuTeresa (that's the id in website/docs/.authors.yml, and it's case sensitive). Under-the-stars is added correctly in this PR.
  2. The chart will break after publishing. mark_blog_as_ready.py only renames the .md file, not the .md.figs/ folder, and the website build skips draft.* folders. We hit this with "Markdown Viewers on macOS": its images are still broken on the website. Please rename the folder to benchmarking_in_Agentic_Reasoning_for_Data_Science.md.figs/ now and update the image link.
  3. Mermaid diagram: as GP asked on #919, render it with render_images.py -i <post> --action render --run_dockerized, so the website and Substack show a picture instead of code. You can then drop the "In one line: Planner → …" sentence or keep it as the caption.
  4. Project folder: the code is in a new top-level multi-agent-ds-benchmark/ (112 files), while #920 already added the project under research/agentic_benchmark/, where the other research projects are. Please move it under research/ (or replace the #920 folder), so there's one copy. @gpsaggese, OK with that?
  5. Project link (last paragraph) points to the gpsaggese/umd_classes repo on your branch. After merge it should be https://github.com/gpsaggese/gpsaggese.github.io/tree/master/research/<folder>.

Smaller points
6. TL;DR: it's 9 sentences. The other posts use 1-2, and it's also what shows in the blog list and as the Substack preview. Suggestion: "A reviewer agent did not make our data science pipeline more accurate, but it caught every impossible value we planted and flagged leaked columns that made other systems, AutoGluon included, report a fake perfect score." The rest can stay in the opening.
7. "Why this matters" starts with "This matters because…" right under the heading. You can start with "Agent frameworks promise reliability…".
8. The limits paragraph is dense. Consider splitting it into 3-4 bullets (sample sizes, AutoGluon preset check, one small LLM, leaks from one dataset).
9. Date: date: 2026-11-15 is fine for now. mark_blog_as_ready.py sets it on the publication day.

For later (not for this PR): Substack has no tables, so the 3 tables will go as aligned text in code boxes. If you want them to look better there, a chart for the main table would work well.

Once 1-5 are done, ping me and @linuteresa and I'll re-review.

@linuteresa

linuteresa commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

@Under-the-stars

I agree with @Sohail-5678's points 1-5. Below are the things not in his review.

Needed before merge

  1. Files to remove:

    • .ipynb_checkpoints/ (5 files); also add it to .gitignore
    • parallel autogluon.ipynb is an empty notebook, and its name has a space
    • outputs/more_Amazon_Reviews.csv repeats seeds 3-5, which are also in more_Amazon_Reviews_3.csv to _5.csv
    • docker_build.version.log
  2. PR description: it's empty; the details are in the comments. Please move them into the description, starting with Closes #919, and set the PR title to match the branch name (UmdTask919_Blog_Benchmarking_in_agentic_Reasoning_for_Data_science).

  3. Could you double-check a few numbers against outputs/: the reviewer settings paragraph (shifted_cutoffs also removed rows, 0.3 per run), the F1 vs MCC table (it seems to use 3 splits, while the main table uses 10), the "180 second limit" (3 best-quality runs took 763 to 1083 seconds), and the main table header (the noisy rows also have 2% to 5% impossible values)?

  4. The section labels ("What the reviewer checks", "Where the reviewer earns its place", and so on) are bold text, so they won't appear in the table of contents. Consider ### headings.

@Sohail-5678 Sohail-5678 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Under-the-stars Thanks for the update (77dcee4). Re-reviewed the post.

Fixed

    1. The diagram is now an image (architecture.png), and the "In one line" sentence works as its caption
    1. TL;DR is one sentence now
    1. "Why this matters" opens with the point

Still needed before merge

  1. Author id: still linuteresa (line 9). In website/docs/.authors.yml the key is LinuTeresa.
  2. Figs folder: still draft.benchmarking_in_Agentic_Reasoning_for_Data_Science.md.figs/, and it now has 2 images. Please rename it to benchmarking_in_Agentic_Reasoning_for_Data_Science.md.figs/ and update both image links, or both images will break once the post is marked ready.
  3. Project folder: still the top-level multi-agent-ds-benchmark/ (112 files). @gpsaggese can you confirm it should go under research/ (next to research/agentic_benchmark/ from #920)?
  4. Project link (last paragraph): still points to gpsaggese/umd_classes.
  • @linuteresa's points are also still open: .ipynb_checkpoints/ (4 files) and the empty parallel autogluon.ipynb are still in the PR.

New in this version

  • Line 172: "AutoGluon and the reviewer are at or below the single pass at every level". At 0% the reviewer is 0.650 against 0.646, so it is slightly above. Suggest "at or below the single pass from 5% wrong labels on (and within 0.004 at 0%)", or just "within the noise at every level".
  • Limits paragraph (lines 302-317): the best-quality check quotes a single pass of 0.190 on taxi and compares 0.558 with 0.457 on heart disease, while the main table has 0.222 and 0.504. Readers will think the numbers disagree. Please say these are on the smaller set of splits, e.g. "(on the same 2 splits, the single pass scored 0.190)". The paragraph is now about 16 lines; 3-4 bullets would make it much easier to read (point 8 from before).

Once 1, 2, 4 and 5 are done, I'll approve.

Rename figs folder, fix author id and project link, convert section labels to
headings, check numbers against outputs, and remove checkpoint, empty notebook,
duplicate csv and build log files.
@Under-the-stars

Copy link
Copy Markdown
Collaborator Author

Thanks both @linuteresa , @Sohail-5678 . Fixed in c6165ee.

  • Author id is now LinuTeresa.
  • Renamed the figs folder to benchmarking_in_Agentic_Reasoning_for_Data_Science.md.figs/ and updated both image links.
  • The Mermaid diagram is an image. I drew it in mermaid.live because render_images.py could not see Docker on my Mac, so it is not rendered by the script.
  • Project link now points to gpsaggese/gpsaggese.github.io. It is a branch link for now and I will switch it to the final path after merge.
  • Removed .ipynb_checkpoints/ (and added it to .gitignore), parallel autogluon.ipynb, outputs/more_Amazon_Reviews.csv and docker_build.version.log.
  • Checked the numbers against outputs/:
    • the reviewer settings paragraph now says shifted_cutoffs also removed rows (0.3 per run)
    • the F1 vs MCC table now uses all 10 splits (0.895 and 0.221)
    • the main table notes the impossible values (2% to 5%) in the noisy rows
    • the best-quality check now gives the real times (763 to 1,083 seconds for three runs) and the single pass numbers on the same smaller set of splits
  • Fixed the line saying the reviewer is "at or below the single pass at every level".
  • Section labels are ### headings and the limits paragraph is bullets.
  • TL;DR is one sentence.

@gpsaggese: is it OK to move the project under research/, next to research/agentic_benchmark/ from #920? I will do the move once you confirm.

@Under-the-stars Under-the-stars changed the title UmdTask919_blog_benchmarking_in_agentic_reasoning_for_data_science UmdTask919_Blog_Benchmarking_in_agentic_Reasoning_for_Data_science Dec 1, 2026
@Under-the-stars

Copy link
Copy Markdown
Collaborator Author

@Sohail-5678 did you re review?

@linuteresa

Copy link
Copy Markdown
Collaborator

@Under-the-stars I see that most of the comments have been resolved and whats left is confirmation for the move.

@gpsaggese can we move the project under research/, next to research/agentic_benchmark/ from #920?

@Sohail-5678 Sohail-5678 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Under-the-stars Yes, re-reviewed 427f61a. Approving the post: everything from my review is fixed (author id, figs folder and both image links, checkpoints and the empty notebook removed, the "at or below" line, the limits as bullets, one-sentence TL;DR). The numbers I checked match the tables.

Two things left before merge, both small:

  1. Project folder: waiting on @gpsaggese's answer about moving multi-agent-ds-benchmark/ under research/.
  2. Project link: please point it to the master path in this PR (https://github.com/gpsaggese/gpsaggese.github.io/tree/master/<final folder>), not after merge. The branch link breaks once the branch is deleted, and the post may already be on Substack and LinkedIn by then.

Nit (optional): in the best-quality bullet, "on clean data it was a little lower (0.652 against 0.685)": say what 0.685 is (the single pass on the same splits?).

After merge, it goes through mark_blog_as_ready.py on its publication day, and I'll put it on Substack.

@Under-the-stars

Copy link
Copy Markdown
Collaborator Author

Thank You @Sohail-5678 this is amazing. I will make the changes and hopefully we are able to publish it soon. @gpsaggese let us know what to do regarding the project path.

@Under-the-stars

Copy link
Copy Markdown
Collaborator Author

Updated the project link to the master path (.../tree/master/multi-agent-ds-benchmark) in db1103b. If GP wants the folder under research/, I'll update the link to match.

@Sohail-5678 can you check from your end and let me know?

@Sohail-5678

Copy link
Copy Markdown
Collaborator

@Under-the-stars Checked db1103b: the link points to tree/master/multi-agent-ds-benchmark, which matches the folder in this PR, so it will work as soon as the PR is merged. My approval stands. If GP wants the move under research/, just change that one path in the same commit as the move.

The only open item is @gpsaggese's answer on the folder.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blog : Benchmarking-in-Agentic-Reasoning-for-Data-Science- (spring 2026)

3 participants