CARF: Contrastive Attraction-Repulsion of Failure-Guided Flow Matching

TL;DR

CARF framework enhances robot learning by attracting progressive and repelling failure-critical behaviors.

cs.RO 🔴 Advanced 2026-09-19 20 views
Shuqi Zhao Bang Du Cheng-En Wu Yichen Xie Yixiao Wang Masayoshi Tomizuka
robot learning failure analysis contrastive learning flow matching data utilization

Key Findings

Methodology

CARF framework introduces a progress-based importance scorer to identify critical behaviors in failed trajectories. This scorer, trained solely on successful expert demonstrations and their perturbations, estimates step-wise contributions to task completion. CARF then employs a unified flow-matching objective to attract policies toward progressive behaviors and repel them from failure-critical ones, enabling comprehensive utilization of imperfect data.

Key Results

  • In both simulation and real-world experiments, CARF outperformed competing baselines across various failure scenarios, achieving over 20% improvement in success rates.
  • Ablation studies validated the effectiveness of the scoring and attraction-repulsion mechanisms, showing more stable policy learning.
  • CARF achieved an average success rate of 70% across different tasks, significantly outperforming baselines using only successful data.

Significance

This research addresses the underutilization of data in robot learning by identifying and leveraging critical behaviors in failed trajectories. The CARF framework not only improves learning efficiency but also reduces risks from unreliable supervision, offering a novel data utilization strategy in the field of robot learning.

Technical Contribution

Building on existing methods, CARF effectively utilizes failure data to extract complementary learning signals, introducing a contrastive attraction-repulsion mechanism that significantly enhances policy learning effectiveness and stability.

Novelty

CARF is the first to apply contrastive learning to failure data analysis, effectively distinguishing and utilizing useful information in failed trajectories. Compared to traditional methods, it offers a more comprehensive data utilization strategy.

Limitations

  • CARF may encounter issues with scoring precision when handling highly complex or dynamically changing tasks.
  • In some cases, a large amount of successful demonstration data may be required to train the scoring mechanism.
  • The method may be sensitive to parameter settings for specific tasks.

Future Work

Future research could explore applying the CARF framework to more complex tasks and further optimizing the scoring mechanism's precision. Additionally, research could investigate dynamically adjusting the attraction-repulsion strategy in real-time environments.

AI Executive Summary

In robot learning, collected data often include both successful and failed demonstrations. Existing methods typically overlook critical behaviors in failed trajectories, while the CARF framework fully utilizes this data through attraction and repulsion of failure segments.

CARF introduces a progress-based scoring mechanism to identify critical behaviors in failed trajectories, guiding policy attraction to progressive behaviors and repulsion from failure-critical ones through a flow-matching objective. Experimental results demonstrate significant improvements in success rates across various tasks, validating its effectiveness.

Despite CARF's breakthroughs in data utilization, challenges remain in handling complex tasks. Future research could further optimize the scoring mechanism and explore real-time applications.

Deep Analysis

Background

The evolution of robot learning has enabled learning from human demonstrations. However, collected data often include both successful and failed demonstrations. Existing methods typically rely on successful data while overlooking information in failed trajectories. Recent studies have begun exploring the use of imperfect data, but challenges remain.

Core Problem

The core problem is effectively utilizing information in failed trajectories. Critical behaviors in failed trajectories may directly lead to task failure, yet existing methods often fail to identify and leverage this information.

Innovation

The CARF framework introduces a progress-based scoring mechanism to identify critical behaviors in failed trajectories. • Scoring Mechanism: Trained solely on successful demonstrations to estimate each step's contribution. • Attraction-Repulsion Mechanism: Guides flow-matching objectives to attract progressive behaviors and repel failure-critical ones.

Methodology

  • �� Data Collection: Extract trajectories from successful and failed demonstrations. • Scoring Mechanism Training: Train a progress-based scorer on successful demonstrations. • Attraction-Repulsion Strategy: Use the scoring mechanism to guide flow-matching objectives, achieving policy attraction and repulsion.

Experiments

Experiments were conducted in both simulation and real-world settings, involving various tasks. The RLBench dataset was used, with baselines including imitation learning using only successful data and flow-matching strategies with classifier guidance.

Results

CARF outperformed baselines across various tasks, achieving over 20% improvement in success rates. Ablation studies validated the effectiveness of the scoring and attraction-repulsion mechanisms, showing more stable policy learning.

Applications

CARF can be applied to robotic manipulation tasks, such as object grasping and placement. Its efficient data utilization makes it suitable for industrial applications requiring high precision and stability.

Limitations & Outlook

CARF may face challenges in handling complex tasks, particularly in scoring precision and parameter settings. Future research could explore optimizing these aspects.

Plain Language Accessible to non-experts

Imagine you're cooking in a kitchen. You have a recipe with both successful and failed steps. The successful steps tell you how to make a delicious dish, while the failed steps show you what mistakes to avoid. CARF is like a smart assistant that helps you identify which steps are crucial and guides you away from the failed ones, improving your cooking success rate.

ELI14 Explained like you're 14

Imagine you're playing a game where you need to pass levels. Each time you fail, the game shows you what went wrong. CARF is like a super-smart game assistant that tells you where to improve and what you did well. This way, you can pass levels faster and become a game master!

Glossary

CARF (Contrastive Attraction-Repulsion Framework)

A framework for learning from imperfect robot data by attracting progressive behaviors and repelling failure-critical ones to enhance learning efficiency.

Used in the paper to analyze and utilize information in failed trajectories.

Flow Matching

A learning strategy that guides policy learning by matching policy flow with target flow.

Used for learning attraction and repulsion strategies.

Progress-based Importance Scorer

A mechanism to estimate each step's contribution to task completion, trained solely on successful demonstrations.

Used to identify critical behaviors in failed trajectories.

Failure-Critical Behaviors

Behaviors that directly lead to task failure and should be repelled during learning.

Identified and repelled in the CARF framework.

Contrastive Learning

A technique that learns by contrasting similarities and differences between samples.

Used to identify and utilize information in failed trajectories.

Open Questions Unanswered questions from this research

  • 1 How can the CARF framework be applied to more complex tasks? Current methods may lack precision in handling dynamically changing tasks.
  • 2 How can the precision of the scoring mechanism be further improved, especially for long-duration tasks?

Applications

Immediate Applications

Industrial Robot Operations

CARF can improve success rates in complex industrial robot tasks, reducing downtime caused by failures.

Long-term Vision

Autonomous Robot Learning

Successful application of CARF could enhance autonomous robots' learning and adaptation in unknown environments, transforming future industrial and service operations.

Abstract

Robot demonstration collection often produces imperfect or failed trajectories in addition to successful demonstrations. Existing methods typically exploit failed trajectories by identifying segments that still make progress toward task completion, but largely overlook \textit{failure-critical behaviors} that directly lead to task failure. Here we argue that these two types of segments provide fundamentally asymmetric supervision: progressive segments should be imitated, whereas failure-critical segments should be explicitly avoided. Based on this observation, we propose CARF, a Contrastive Attraction-Repulsion of Failure-guided framework for learning from imperfect robot data. CARF introduces a progress-based importance scorer, trained solely on successful expert demonstrations and its perturbation results, to estimate step-wise contributions toward task completion and identify informative regions in failed trajectories. These scores guide a unified flow-matching objective that attracts the policy toward progressive behaviors and repels it from failure-critical ones, while excluding ambiguous segments. This enables more comprehensive utilization of imperfect data and avoids unreliable supervision from ambiguous failure segments. Extensive experiments in simulation and the real world demonstrate consistent improvements over competing baselines across diverse failure scenarios, with ablations further validating the effectiveness of the proposed scoring and attraction-repulsion mechanisms. Our website is https://zhao-sq.github.io/carf/#.

cs.RO