Papers › SetLexSem Challenge: Using Set Operations to Evaluate the Lexical and Semantic...

SetLexSem Challenge: Using Set Operations to Evaluate the Lexical and Semantic Robustness of Language Models

11 Nov 2024arXiv:2411.07336archive 2025-07-28

Bardiya Akhbari, Manish Gawali, Nicholas A. Dronen

Set theory is foundational to mathematics and, when sets are finite, to reasoning about the world. An intelligent system should perform set operations consistently, regardless of superficial variations in the operands. Initially designed for semantically-oriented NLP tasks, large language models (LLMs) are now being evaluated on algorithmic tasks. Because sets are comprised of arbitrary symbols (e.g. numbers, words), they provide an opportunity to test, systematically, the invariance of LLMs' algorithmic abilities under simple lexical or semantic variations. To this end, we present the SetLexSem Challenge, a synthetic benchmark that evaluates the performance of LLMs on set operations. SetLexSem assesses the robustness of LLMs' instruction-following abilities under various conditions, focusing on the set operations and the nature and construction of the set members. Evaluating seven LLMs with SetLexSem, we find that they exhibit poor robustness to variation in both operation and operands. We show -- via the framework's systematic sampling of set members along lexical and semantic dimensions -- that LLMs are not only not robust to variation along these dimensions but demonstrate unique failure modes in particular, easy-to-create semantic groupings of "deceptive" sets. We find that rigorously measuring language model robustness to variation in frequency and length is challenging and present an analysis that measures them independently. The code for reproducing the results of this paper, and for generating the SetLexSem Challenge dataset, is available at \href{https://github.com/amazon-science/SetLexSem-Challenge}{https://github.com/amazon-science/SetLexSem-Challenge}.

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="2411.07336")

Code

Syntology Ran 3 of 23 code samples harvested from 1 repository linked to this paper; 20 have no recorded run. Of those that ran: 3 ran · our draft was wrong.

By repository: official repository: 23 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

amazon-science/setlexsem-challenge officialmentioned in paperApache-2.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

23 samples harvested; 3 ran; 0 honoured the contract we drafted; 20 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.

3ran · our draft was wrong
20unverified

Licence: 0 of the 23 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 amazon-science/SetLexSem-Challenge. “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.

astype_set amazon-science/SetLexSem-Challenge/setlexsem/generate/generate_sets.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 6ee8c0ec3ee6a7a3 · report
generate_set_pair amazon-science/SetLexSem-Challenge/setlexsem/generate/generate_sets.py official repository ran · our draft was wrong Apache-2.0 (permissive) · c653593d59f019e1 · report
parse_set_pair amazon-science/SetLexSem-Challenge/setlexsem/generate/generate_sets.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 39c5d1d50694781a · report
agg amazon-science/setlexsem-challenge/setlexsem/analyze/hypothesis_testing_utils.py official repository unverified Apache-2.0 (permissive) · 50791cd8d19ae17c · report
aws_auth amazon-science/setlexsem-challenge/setlexsem/experiment/lmapi.py official repository unverified Apache-2.0 (permissive) · 7ec1a56a7fb2d0a6 · report
calculate_extra_info amazon-science/setlexsem-challenge/setlexsem/analyze/error_analysis.py official repository unverified Apache-2.0 (permissive) · 7a11de2b701c8b62 · report
count_tokens amazon-science/setlexsem-challenge/setlexsem/experiment/lmapi.py official repository unverified Apache-2.0 (permissive) · 912d808705da066a · report
create_single_plot amazon-science/setlexsem-challenge/setlexsem/analyze/visualize.py official repository unverified Apache-2.0 (permissive) · 382682b1f43803e2 · report
create_subplots_1d amazon-science/setlexsem-challenge/setlexsem/analyze/visualize.py official repository unverified Apache-2.0 (permissive) · 01c3ce5d9fb476e6 · report
filter_dataframe amazon-science/setlexsem-challenge/setlexsem/analyze/error_analysis.py official repository unverified Apache-2.0 (permissive) · fea82b54e26300ae · report
filter_words amazon-science/setlexsem-challenge/setlexsem/generate/sample.py official repository unverified Apache-2.0 (permissive) · 8431ddf5ad802651 · report
get_normalized_count amazon-science/setlexsem-challenge/setlexsem/analyze/error_analysis.py official repository unverified Apache-2.0 (permissive) · 600bbee8e77f30f9 · report
get_path_root amazon-science/setlexsem-challenge/setlexsem/constants.py official repository unverified Apache-2.0 (permissive) · 8d9b3e28920892c7 · report
get_stats amazon-science/setlexsem-challenge/setlexsem/analyze/hypothesis_testing_utils.py official repository unverified Apache-2.0 (permissive) · 5afc0bf83778d553 · report
invoke_bedrock amazon-science/setlexsem-challenge/setlexsem/experiment/lmapi.py official repository unverified Apache-2.0 (permissive) · b063a2fc16acb1cd · report
make_english_list amazon-science/setlexsem-challenge/setlexsem/generate/prompt.py official repository unverified Apache-2.0 (permissive) · 642f476d5eddbdcf · report
make_hps_prompt amazon-science/setlexsem-challenge/setlexsem/generate/generate_prompts.py official repository unverified Apache-2.0 (permissive) · f829eb3daa3cf327 · report
make_sampler_name_from_hps amazon-science/setlexsem-challenge/setlexsem/generate/sample.py official repository unverified Apache-2.0 (permissive) · ec9a1efddf07bd2e · report
make_set amazon-science/setlexsem-challenge/setlexsem/generate/prompt.py official repository unverified Apache-2.0 (permissive) · b3f84cf0a92a6cb5 · report
make_verb amazon-science/setlexsem-challenge/setlexsem/generate/prompt.py official repository unverified Apache-2.0 (permissive) · 3992b00cf71e89e3 · report
read_yaml amazon-science/setlexsem-challenge/setlexsem/utils.py official repository unverified Apache-2.0 (permissive) · 493412c498a81a41 · report
replace_none amazon-science/setlexsem-challenge/setlexsem/generate/generate_prompts.py official repository unverified Apache-2.0 (permissive) · 7086c5b67a013729 · report
viz_barplot amazon-science/setlexsem-challenge/setlexsem/analyze/visualize.py official repository unverified Apache-2.0 (permissive) · 7d0543bbfc5e3a17 · report

Tasks

Instruction Following

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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