TL;DR
AdaMenu is a novel approach for using "decision models" (LLMs that output probabilities over a fixed set of options) in large-scale classification tasks. By using a retrieval step to build a small, query-specific "menu" of candidate labels, it avoids the accuracy pitfalls and high token costs of massive menus while outperforming traditional hierarchical classification by up to 34 percentage points.
What Problem Does This Paper Address?
Modern "decision models" (like Jev) are a specialized breed of AI. Unlike standard LLMs that generate text, these models take a query and a list of options—a "menu"—and return the probability for each option. They are fast, cheap, and great for classification.
However, they hit a wall when the number of possible labels (the "label space") gets large. If you try to put 1,000 labels in a single menu, three things happen:
- Accuracy drops: The model gets "distracted" by too many competing options.
- Costs skyrocket: You pay for every token in that menu for every single query.
- Limits are exceeded: Most hosted models have a hard cap on how many options they can process at once (often around 255).
The standard workaround is hierarchical classification—arranging labels into a tree and making a series of smaller decisions. But this creates a "Tree Trap": if the model makes one wrong turn at the root (e.g., misclassifying a "billing" query as "technical support"), it can never recover, leading to unrecoverable errors and high serial latency.
Methods
The authors propose AdaMenu, a three-step workflow that replaces rigid trees with a flexible, query-adaptive candidate list:
- Retrieve: For a new query, the system uses a simple, fast retriever (BM25) to find the most similar examples from a "bank" of previously labeled data.
- Construct the Menu: Instead of just taking the top-N labels, AdaMenu uses an adaptive menu size. It aggregates the retrieval scores for each label and includes enough candidates to meet a specific "score mass" threshold ($\tau$). If the retriever is very confident, the menu is short; if it's uncertain, the menu grows.
- Decide: The query and this compact, custom menu are sent to the decision model in a single request. The model then makes the final call from this refined list.
This approach is "training-free"—it works with off-the-shelf decision models and doesn't require building or maintaining a complex label hierarchy.
Datasets
The researchers evaluated AdaMenu across four English label sets of varying difficulty:
- BANKING77: 77 intent labels for banking queries (no natural hierarchy).
- CLINC150: 150 intents across 10 domains.
- DBpedia: 219 Wikipedia categories across 3 levels.
- O*NET: A massive set of 1,016 job titles, representing a "real-world" large label space challenge.
Key Insights and Ideas
- The "Tree Trap" is Real: The paper demonstrates that most errors in hierarchical models happen at the very first step. AdaMenu bypasses this by allowing the model to see a "flat" but filtered list of the most plausible candidates across the entire space.
- Retrieval as a "Soft" Filter: You don't need the retriever to be perfectly accurate. It just needs to be "good enough" to include the correct label somewhere in the top 10–20 candidates. The decision model then does the heavy lifting of distinguishing between those likely options.
- Adaptive Sizing Matters: By letting the menu size vary based on retrieval confidence, AdaMenu balances cost and coverage. It keeps menus short when possible to save tokens but expands them when the query is ambiguous.
Key Results
- Crushing the Baseline: AdaMenu outperformed the hierarchical "beam-search" baseline on all 16 tested model/dataset pairs, improving accuracy by 16.6 to 34.3 percentage points.
- Efficiency Gains: Compared to sending the "full menu" (where possible), AdaMenu reduced input token usage by factors of 3.2x to 22.9x.
- Scaling to the Impossible: On the ONET dataset (1,016 labels), which is too large for most models to handle in one go, AdaMenu achieved up to 70.1% accuracy* with a single request. The hierarchical baseline struggled to break 45% on the same task.
- Competitive Accuracy: On smaller datasets, AdaMenu's accuracy was often within ±1% of the full-menu approach, and in some cases (like with the Eikos-4B model), it actually improved accuracy by over 7 points by removing distracting, irrelevant labels.
Limitations and Future Work
The primary bottleneck for AdaMenu is candidate coverage. If the retriever fails to include the correct label in the candidate menu, the decision model has zero chance of picking it. The authors noted that on the massive O*NET dataset, if the example bank was too small or sparse, accuracy dropped significantly.
Future work could involve:
- Developing better mechanisms to detect when the correct label is likely missing from the menu.
- Exploring more advanced retrieval methods (like dense embeddings) to improve coverage.
- Testing the approach on even larger, multi-thousand label spaces.
Summary updated