Papers
Topics
Authors
Recent
Search
2000 character limit reached

E-CARE: Efficient Commonsense Recommendation

Updated 13 November 2025
  • The paper introduces E-CARE, which shifts LLM-based commonsense reasoning offline to require just one forward pass per query.
  • It employs offline factor graph construction and lightweight adapters to augment queries and products, ensuring low latency and scalability.
  • Empirical results show improvements of up to +12.1 Precision@5 and +2 Macro-F1, highlighting its efficiency and effectiveness.

Efficient Commonsense-Augmented Recommendation Enhancer (E-CARE) is a framework for integrating LLM derived commonsense reasoning into e-commerce recommender systems with maximal inference efficiency. It achieves comparable or superior reasoning performance to prior LLM-augmented approaches while requiring only a single forward pass through the LLM per user query. E-CARE leverages offline factor graph construction and lightweight trainable adapters to enable efficient query and product augmentation, ensuring scalability across large catalogs and low-latency deployment.

1. Motivation and Design Rationale

Recent advances in LLM-based commonsense augmentation for product search and recommendation—such as FolkScope or COSMO—depend on frequent, real-time LLM inference on each query–product pair. This results in prohibitively high serving costs when ranking millions of candidates, due to:

  • Multiple LLM calls per (Q,P) pair (for intention and utility extraction)
  • Intensive utilization of human annotation (for “ground-truth” reasoning triples or supervised fine-tuning)
  • Poor scalability in updating knowledge graphs and recommender fine-tuning

E-CARE is designed to shift almost all LLM reasoning and annotation offline. Its core guiding principles are:

  1. Efficiency: invoke the LLM exactly once per query at inference time.
  2. Scalability: offload graph and factor construction to the offline pipeline.
  3. Retention of reasoning power: use factor graphs distilled from LLM chain-of-thought reasoning, accessed or approximated via adapters and graph lookup at runtime.

2. System Architecture and Workflow

E-CARE is modular and interfaces with any embedding-based or cross-encoder recommender. The system comprises multiple interdependent stages:

Offline (batch, per catalog update):

  • LLM reasoning: for historical positive query–product pairs, the LLM is prompted to produce commonsense factors (user needs, utilities, features).
  • Factor graph construction: A bipartite/multiplex graph G=(V,F)G=(V,F) is built with nodes V=QPCV = Q \cup P \cup C (queries, products, factors), and edges EE representing explanatory relationships.
  • Clustering and filtering: Redundant factors are merged; low-confidence edges removed.
  • Adapter training: Train lightweight adapters (“query adapters,” sometimes “product adapters”) to predict factor nodes relevant for new queries and products based on their LLM embeddings.

Online (inference per (Q, P)):

  • Query embedding: Single call to a frozen LLM model computes vQ=LLM(Q)v_Q = \text{LLM}(Q).
  • Factor retrieval: Adapters (MLPs) project vQv_Q into scores for each factor node, selecting the top-kk factors for the query a(Q)a(Q).
  • Augmentation: Combine query and selected factor texts (Q=Q[a(Q)]Q' = Q \mathbin{\|} [a(Q)]); for candidate product PP, retrieve offline-linked factors P=P[factors(P)]P' = P \mathbin{\|} [\text{factors}(P)].
  • Recommender input: Feed V=QPCV = Q \cup P \cup C0 to a bi-encoder or cross-encoder for ranking or classification.

3. Commonsense Reasoning via Factor Graphs

The factor graph formalism underpins latent reasoning in E-CARE. Its structure is:

  • V=QPCV = Q \cup P \cup C1, V=QPCV = Q \cup P \cup C2, V=QPCV = Q \cup P \cup C3 the set of extracted factor nodes (“needs,” “utilities,” features).
  • Edges V=QPCV = Q \cup P \cup C4 connect queries and products to their explanatory factors.

A compatibility model for binary relevance V=QPCV = Q \cup P \cup C5 (or multiclass) between V=QPCV = Q \cup P \cup C6 is specified as:

V=QPCV = Q \cup P \cup C7

Factor potentials are parameterized by:

V=QPCV = Q \cup P \cup C8

with V=QPCV = Q \cup P \cup C9 typically comprising cosine similarity between LLM embeddings of EE0 and EE1 alongside structural indicators (e.g., EE2 linking to EE3 in EE4).

While the factor graph allows for (approximate) inference methods such as belief propagation or mean-field variational inference, the deployed E-CARE performs a single-pass approximation: summing the log-potentials over shared factors between EE5 and the neighborhood of EE6.

4. Single LLM Forward Pass and Offline Extraction

E-CARE constrains real-time LLM usage to one forward pass per query. The offline pipeline is specified by:

  • A template prompt for historical EE7:

    “Given Q and P+its extracted product features, list: (a) the need n behind Q, (b) the utility u provided by P, under each of the scopes {who, why, where_when}.”

  • LLM output segments EE8 are parsed into factor nodes using chunking tools (e.g., DSPy pipeline).

  • These factors are persistently encoded (embeddings), clustered, and indexed in the graph.

At inference, all factor definitions and relationships have been pre-extracted and adapters trained; no online annotation or chaining of LLM calls occurs.

5. Inference, Scoring, and Integration with Base Models

Approximate graph inference at runtime is described by:

EE9

where vQ=LLM(Q)v_Q = \text{LLM}(Q)0 is the set of factors connected to vQ=LLM(Q)v_Q = \text{LLM}(Q)1 in the graph. This is fused with a base recommender score vQ=LLM(Q)v_Q = \text{LLM}(Q)2 as:

vQ=LLM(Q)v_Q = \text{LLM}(Q)3

In most cases, vQ=LLM(Q)v_Q = \text{LLM}(Q)4. Thus, commonsense augmentation is realized through a weighted sum of LLM embedding similarities over shared explanatory factors.

Adapter Training: For each query vQ=LLM(Q)v_Q = \text{LLM}(Q)5 and factor subset vQ=LLM(Q)v_Q = \text{LLM}(Q)6:

  • Positives: vQ=LLM(Q)v_Q = \text{LLM}(Q)7
  • Negatives: vQ=LLM(Q)v_Q = \text{LLM}(Q)8, sampled.
  • InfoNCE loss employed:

vQ=LLM(Q)v_Q = \text{LLM}(Q)9

The base recommender continues standard cross-entropy or ranking loss training, with frozen factor augmentation.

6. Empirical Evaluation

E-CARE has been evaluated on two downstream tasks:

a) Search Relevance (ESCI, WANDs)

  • Task: classify vQv_Q0 into relevance classes (e.g., Exact/Substitute/Complement/Irrelevant).
  • Baselines: bi-encoder (BERT-large, DeBERTa-v3, gte-Qwen2), cross-encoder, few-shot LLM inference (Llama-3.1-8B), KDD’22 ensemble.
  • Metrics: Macro-F1, Micro-F1.
  • Observed gains: up to +2.02 Macro-F1 on DeBERTa-v3 cross-encoder (59.01→61.03) and +1.71 on gte-Qwen2 bi-encoder (42.95→44.66) for ESCI; smaller gains on WANDs.

b) App Recall (private dataset)

  • Task: recall top-K apps from 66K candidates for each query.
  • Baseline: production recall systems using keyword, semantic, and popularity heuristics.
  • Metric: Recall@5, Precision@5.
  • Gains: Recall@5 improved by +11.1 (51.3→62.4), Precision@5 by +12.1 (41.0→53.1).

Additional ablations include:

  • Circuit graph statistics (node/edge reduction after clustering and filtering).
  • Adapter retrieval quality (cosine similarity up to 0.89 on top-1).
  • Case studies recovering implicit needs/utilities.

7. Efficiency, Cost, and Practical Considerations

E-CARE’s efficiency profile is a distinctive feature:

  • LLM Calls: Exactly one per query; prior methods require vQv_Q1 per query.
  • Latency: Reduced to the time of a single LLM embedding plus adapter inference (≈10 ms) and standard scoring.
  • Serving cost: Lowered by a factor of vQv_Q2 relative to per-pair LLM prompting.
  • Scalability: Factor graph size is vQv_Q3; online cost scales with the number of top retrieved factors and the cost of the base recommender.

Guidelines and Best Practices:

  • Rebuild factor graphs when historical interaction distributions shift.
  • Prefer lightweight, frozen LLMs (e.g., gte-Qwen2) for both embedding extraction and adapter inference.
  • Monitor adapter retrieval accuracy for drift detection.

Representative pseudocode:

vQv_Q7

Hyperparameters include: number of factor subsets (e.g., {who, why, where_when, category, style, usage}); top-vQv_Q4 factors per subset (vQv_Q5 ≈ 5–20); regularization weight vQv_Q6 (0.5–2.0); edge filtering thresholds (0.2–0.5 for contrastive scoring).

E-CARE preserves the multi-hop, interpretive commonsense reasoning of LLMs with single-pass augmentation, yielding up to +12.1 points in precision@5 (app recall), +2 points Macro-F1 (search), and drastic reductions in latency and cost compared to real-time per-candidate LLM prompting.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Efficient Commonsense-Augmented Recommendation Enhancer (E-CARE).