Papers › LADDER: Language Driven Slice Discovery and Error Rectification

LADDER: Language Driven Slice Discovery and Error Rectification

31 Jul 2024arXiv:2408.07832archive 2025-07-28

Shantanu Ghosh, Rayan Syed, Chenyu Wang, Clare B. Poynton, Shyam Visweswaran, Kayhan Batmanghelich

Error slice discovery is crucial to diagnose and mitigate model errors. Current clustering or discrete attribute-based slice discovery methods face key limitations: 1) clustering results in incoherent slices, while assigning discrete attributes to slices leads to incomplete coverage of error patterns due to missing or insufficient attributes; 2) these methods lack complex reasoning, preventing them from fully explaining model biases; 3) they fail to integrate \textit{domain knowledge}, limiting their usage in specialized fields \eg radiology. We propose\ladder (\underline{La}nguage-\underline{D}riven \underline{D}iscovery and \underline{E}rror \underline{R}ectification), to address the limitations by: (1) leveraging the flexibility of natural language to address incompleteness, (2) employing LLM's latent \textit{domain knowledge} and advanced reasoning to analyze sentences and derive testable hypotheses directly, identifying biased attributes, and form coherent error slices without clustering. Existing mitigation methods typically address only the worst-performing group, often amplifying errors in other subgroups. In contrast,\ladder generates pseudo attributes from the discovered hypotheses to mitigate errors across all biases without explicit attribute annotations or prior knowledge of bias. Rigorous evaluations on 6 datasets spanning natural and medical images -- comparing 200+ classifiers with diverse architectures, pretraining strategies, and LLMs -- show that\ladder consistently outperforms existing baselines in discovering and mitigating biases.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2408.07832")

Code

Syntology Ran 15 of 17 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 15 ran with no contract checked.

By repository: community (archive-listed): 17 samples from 1 repository, 15 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

batmanlab/Ladder mentioned on GitHubpytorchCC-BY-4.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 15 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

15ran
2unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from batmanlab/Ladder. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_AUC batmanlab/Ladder/src/codebase/metrics.py community (archive-listed) ran CC-BY-4.0 · pointer only · 688ce138721d837e · report
compute_accuracy batmanlab/Ladder/src/codebase/metrics.py community (archive-listed) ran fingerprinted CC-BY-4.0 · pointer only · 8f49eb5b19d3ac4e · report
compute_auprc batmanlab/Ladder/src/codebase/metrics.py community (archive-listed) ran fingerprinted CC-BY-4.0 · pointer only · 896063eb2a6b5fdd · report
custom_collate batmanlab/Ladder/src/codebase/caption_images.py community (archive-listed) ran CC-BY-4.0 · pointer only · 0dbfc40c7885054d · report
generate_ds_last_layer_retrain batmanlab/Ladder/src/codebase/mitigate_error_slices.py community (archive-listed) ran CC-BY-4.0 · pointer only · 8c7e7d4a40a6ed72 · report
get_Paths batmanlab/Ladder/src/codebase/utils.py community (archive-listed) ran CC-BY-4.0 · pointer only · 3b0e08bad449b6ab · report
get_device batmanlab/Ladder/src/codebase/utils.py community (archive-listed) ran CC-BY-4.0 · pointer only · 45216ce5a16d2a2e · report
get_hypothesis_from_llama batmanlab/Ladder/src/codebase/validate_error_slices_w_LLM.py community (archive-listed) ran CC-BY-4.0 · pointer only · 6af797ee849743d4 · report
init_additional_info batmanlab/Ladder/src/codebase/save_img_reps.py community (archive-listed) ran fingerprinted CC-BY-4.0 · pointer only · 2058541939bc9d91 · report
init_path batmanlab/Ladder/src/codebase/learn_aligner.py community (archive-listed) ran CC-BY-4.0 · pointer only · 559c536421e60ded · report
load_model_with_retries batmanlab/Ladder/src/codebase/caption_images.py community (archive-listed) ran CC-BY-4.0 · pointer only · 9d091c247f43d1f2 · report
process_batch batmanlab/Ladder/src/codebase/save_img_reps.py community (archive-listed) ran CC-BY-4.0 · pointer only · 2da591b7c5b0cc23 · report
resize_and_encode_image batmanlab/Ladder/src/codebase/caption_images_gpt_4.py community (archive-listed) ran CC-BY-4.0 · pointer only · 3a2653bc82bd52d6 · report
stratified_sample batmanlab/Ladder/src/codebase/utils.py community (archive-listed) ran CC-BY-4.0 · pointer only · b29a01fd0e697f3d · report
update_additional_info batmanlab/Ladder/src/codebase/save_img_reps.py community (archive-listed) ran CC-BY-4.0 · pointer only · 54000d2c28a0531d · report
caption_image batmanlab/Ladder/src/codebase/caption_images_gpt_4.py community (archive-listed) unverified CC-BY-4.0 · pointer only · 4ffff391e5439ad1 · report
get_hypothesis_from_GPT batmanlab/Ladder/src/codebase/validate_error_slices_w_LLM.py community (archive-listed) unverified CC-BY-4.0 · pointer only · 8c7dfc479e1f9844 · report

Tasks

AttributeClusteringImage ClassificationLanguage ModellingLarge Language ModelSlice Discovery

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections